Files
mermaid-live-editor/_app/chunks/vendor-672e8a2e.js
T
2022-01-20 16:57:28 +00:00

1194 lines
1.2 MiB
Plaintext

function au(){}const o7=r=>r;function X9(r,s){for(const o in s)r[o]=s[o];return r}function s7(r){return r()}function c7(){return Object.create(null)}function jd(r){r.forEach(s7)}function Y6(r){return typeof r=="function"}function K9(r,s){return r!=r?s==s:r!==s||r&&typeof r=="object"||typeof r=="function"}function Q9(r){return Object.keys(r).length===0}function j6(r,...s){if(r==null)return au;const o=r.subscribe(...s);return o.unsubscribe?()=>o.unsubscribe():o}function JN(r){let s;return j6(r,o=>s=o)(),s}function tO(r,s,o){r.$$.on_destroy.push(j6(s,o))}function eO(r,s,o,h){if(r){const c=u7(r,s,o,h);return r[0](c)}}function u7(r,s,o,h){return r[1]&&h?X9(o.ctx.slice(),r[1](h(s))):o.ctx}function nO(r,s,o,h){if(r[2]&&h){const c=r[2](h(o));if(s.dirty===void 0)return c;if(typeof c=="object"){const y=[],p=Math.max(s.dirty.length,c.length);for(let b=0;b<p;b+=1)y[b]=s.dirty[b]|c[b];return y}return s.dirty|c}return s.dirty}function rO(r,s,o,h,c,y){if(c){const p=u7(s,o,h,y);r.p(p,c)}}function iO(r){if(r.ctx.length>32){const s=[],o=r.ctx.length/32;for(let h=0;h<o;h++)s[h]=-1;return s}return-1}function aO(r){return r==null?"":r}function oO(r,s,o){return r.set(o),s}const l7=typeof window!="undefined";let J9=l7?()=>window.performance.now():()=>Date.now(),z6=l7?r=>requestAnimationFrame(r):au;const Ip=new Set;function h7(r){Ip.forEach(s=>{s.c(r)||(Ip.delete(s),s.f())}),Ip.size!==0&&z6(h7)}function tT(r){let s;return Ip.size===0&&z6(h7),{promise:new Promise(o=>{Ip.add(s={c:r,f:o})}),abort(){Ip.delete(s)}}}let D4=!1;function eT(){D4=!0}function nT(){D4=!1}function rT(r,s,o,h){for(;r<s;){const c=r+(s-r>>1);o(c)<=h?r=c+1:s=c}return r}function iT(r){if(r.hydrate_init)return;r.hydrate_init=!0;let s=r.childNodes;if(r.nodeName==="HEAD"){const T=[];for(let k=0;k<s.length;k++){const D=s[k];D.claim_order!==void 0&&T.push(D)}s=T}const o=new Int32Array(s.length+1),h=new Int32Array(s.length);o[0]=-1;let c=0;for(let T=0;T<s.length;T++){const k=s[T].claim_order,D=(c>0&&s[o[c]].claim_order<=k?c+1:rT(1,c,I=>s[o[I]].claim_order,k))-1;h[T]=o[D]+1;const O=D+1;o[O]=T,c=Math.max(O,c)}const y=[],p=[];let b=s.length-1;for(let T=o[c]+1;T!=0;T=h[T-1]){for(y.push(s[T-1]);b>=T;b--)p.push(s[b]);b--}for(;b>=0;b--)p.push(s[b]);y.reverse(),p.sort((T,k)=>T.claim_order-k.claim_order);for(let T=0,k=0;T<p.length;T++){for(;k<y.length&&p[T].claim_order>=y[k].claim_order;)k++;const D=k<y.length?y[k]:null;r.insertBefore(p[T],D)}}function aT(r,s){r.appendChild(s)}function f7(r){if(!r)return document;const s=r.getRootNode?r.getRootNode():r.ownerDocument;return s&&s.host?s:r.ownerDocument}function oT(r){const s=d7("style");return sT(f7(r),s),s.sheet}function sT(r,s){aT(r.head||r,s)}function cT(r,s){if(D4){for(iT(r),(r.actual_end_child===void 0||r.actual_end_child!==null&&r.actual_end_child.parentElement!==r)&&(r.actual_end_child=r.firstChild);r.actual_end_child!==null&&r.actual_end_child.claim_order===void 0;)r.actual_end_child=r.actual_end_child.nextSibling;s!==r.actual_end_child?(s.claim_order!==void 0||s.parentNode!==r)&&r.insertBefore(s,r.actual_end_child):r.actual_end_child=s.nextSibling}else(s.parentNode!==r||s.nextSibling!==null)&&r.appendChild(s)}function sO(r,s,o){D4&&!o?cT(r,s):(s.parentNode!==r||s.nextSibling!=o)&&r.insertBefore(s,o||null)}function uT(r){r.parentNode.removeChild(r)}function cO(r,s){for(let o=0;o<r.length;o+=1)r[o]&&r[o].d(s)}function d7(r){return document.createElement(r)}function lT(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function U6(r){return document.createTextNode(r)}function uO(){return U6(" ")}function lO(){return U6("")}function hO(r,s,o,h){return r.addEventListener(s,o,h),()=>r.removeEventListener(s,o,h)}function fO(r){return function(s){return s.stopPropagation(),r.call(this,s)}}function dO(r,s,o){o==null?r.removeAttribute(s):r.getAttribute(s)!==o&&r.setAttribute(s,o)}function pO(r){return r===""?null:+r}function hT(r){return Array.from(r.childNodes)}function fT(r){r.claim_info===void 0&&(r.claim_info={last_index:0,total_claimed:0})}function p7(r,s,o,h,c=!1){fT(r);const y=(()=>{for(let p=r.claim_info.last_index;p<r.length;p++){const b=r[p];if(s(b)){const T=o(b);return T===void 0?r.splice(p,1):r[p]=T,c||(r.claim_info.last_index=p),b}}for(let p=r.claim_info.last_index-1;p>=0;p--){const b=r[p];if(s(b)){const T=o(b);return T===void 0?r.splice(p,1):r[p]=T,c?T===void 0&&r.claim_info.last_index--:r.claim_info.last_index=p,b}}return h()})();return y.claim_order=r.claim_info.total_claimed,r.claim_info.total_claimed+=1,y}function g7(r,s,o,h){return p7(r,c=>c.nodeName===s,c=>{const y=[];for(let p=0;p<c.attributes.length;p++){const b=c.attributes[p];o[b.name]||y.push(b.name)}y.forEach(p=>c.removeAttribute(p))},()=>h(s))}function gO(r,s,o){return g7(r,s,o,d7)}function yO(r,s,o){return g7(r,s,o,lT)}function dT(r,s){return p7(r,o=>o.nodeType===3,o=>{const h=""+s;if(o.data.startsWith(h)){if(o.data.length!==h.length)return o.splitText(h.length)}else o.data=h},()=>U6(s),!0)}function mO(r){return dT(r," ")}function vO(r,s){s=""+s,r.wholeText!==s&&(r.data=s)}function _O(r,s){r.value=s==null?"":s}function bO(r,s,o,h){o===null?r.style.removeProperty(s):r.style.setProperty(s,o,h?"important":"")}function wO(r,s,o){r.classList[o?"add":"remove"](s)}function y7(r,s,o=!1){const h=document.createEvent("CustomEvent");return h.initCustomEvent(r,o,!1,s),h}const N4=new Map;let O4=0;function pT(r){let s=5381,o=r.length;for(;o--;)s=(s<<5)-s^r.charCodeAt(o);return s>>>0}function gT(r,s){const o={stylesheet:oT(s),rules:{}};return N4.set(r,o),o}function m7(r,s,o,h,c,y,p,b=0){const T=16.666/h;let k=`{
`;for(let V=0;V<=1;V+=T){const X=s+(o-s)*y(V);k+=V*100+`%{${p(X,1-X)}}
`}const D=k+`100% {${p(o,1-o)}}
}`,O=`__svelte_${pT(D)}_${b}`,I=f7(r),{stylesheet:z,rules:H}=N4.get(I)||gT(I,r);H[O]||(H[O]=!0,z.insertRule(`@keyframes ${O} ${D}`,z.cssRules.length));const q=r.style.animation||"";return r.style.animation=`${q?`${q}, `:""}${O} ${h}ms linear ${c}ms 1 both`,O4+=1,O}function yT(r,s){const o=(r.style.animation||"").split(", "),h=o.filter(s?y=>y.indexOf(s)<0:y=>y.indexOf("__svelte")===-1),c=o.length-h.length;c&&(r.style.animation=h.join(", "),O4-=c,O4||mT())}function mT(){z6(()=>{O4||(N4.forEach(r=>{const{stylesheet:s}=r;let o=s.cssRules.length;for(;o--;)s.deleteRule(o);r.rules={}}),N4.clear())})}let Lm;function Bm(r){Lm=r}function L4(){if(!Lm)throw new Error("Function called outside component initialization");return Lm}function xO(r){L4().$$.on_mount.push(r)}function kO(r){L4().$$.after_update.push(r)}function TO(){const r=L4();return(s,o)=>{const h=r.$$.callbacks[s];if(h){const c=y7(s,o);h.slice().forEach(y=>{y.call(r,c)})}}}function EO(r,s){L4().$$.context.set(r,s)}function SO(r,s){const o=r.$$.callbacks[s.type];o&&o.slice().forEach(h=>h.call(this,s))}const Rm=[],v7=[],B4=[],H6=[],_7=Promise.resolve();let $6=!1;function b7(){$6||($6=!0,_7.then(w7))}function CO(){return b7(),_7}function R4(r){B4.push(r)}function MO(r){H6.push(r)}const W6=new Set;let I4=0;function w7(){const r=Lm;do{for(;I4<Rm.length;){const s=Rm[I4];I4++,Bm(s),vT(s.$$)}for(Bm(null),Rm.length=0,I4=0;v7.length;)v7.pop()();for(let s=0;s<B4.length;s+=1){const o=B4[s];W6.has(o)||(W6.add(o),o())}B4.length=0}while(Rm.length);for(;H6.length;)H6.pop()();$6=!1,W6.clear(),Bm(r)}function vT(r){if(r.fragment!==null){r.update(),jd(r.before_update);const s=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,s),r.after_update.forEach(R4)}}let Im;function _T(){return Im||(Im=Promise.resolve(),Im.then(()=>{Im=null})),Im}function q6(r,s,o){r.dispatchEvent(y7(`${s?"intro":"outro"}${o}`))}const F4=new Set;let il;function AO(){il={r:0,c:[],p:il}}function DO(){il.r||jd(il.c),il=il.p}function bT(r,s){r&&r.i&&(F4.delete(r),r.i(s))}function NO(r,s,o,h){if(r&&r.o){if(F4.has(r))return;F4.add(r),il.c.push(()=>{F4.delete(r),h&&(o&&r.d(1),h())}),r.o(s)}}const wT={duration:0};function OO(r,s,o,h){let c=s(r,o),y=h?0:1,p=null,b=null,T=null;function k(){T&&yT(r,T)}function D(I,z){const H=I.b-y;return z*=Math.abs(H),{a:y,b:I.b,d:H,duration:z,start:I.start,end:I.start+z,group:I.group}}function O(I){const{delay:z=0,duration:H=300,easing:q=o7,tick:V=au,css:X}=c||wT,it={start:J9()+z,b:I};I||(it.group=il,il.r+=1),p||b?b=it:(X&&(k(),T=m7(r,y,I,H,z,q,X)),I&&V(0,1),p=D(it,H),R4(()=>q6(r,I,"start")),tT(tt=>{if(b&&tt>b.start&&(p=D(b,H),b=null,q6(r,p.b,"start"),X&&(k(),T=m7(r,y,p.b,p.duration,0,q,c.css))),p){if(tt>=p.end)V(y=p.b,1-y),q6(r,p.b,"end"),b||(p.b?k():--p.group.r||jd(p.group.c)),p=null;else if(tt>=p.start){const rt=tt-p.start;y=p.a+p.d*q(rt/p.duration),V(y,1-y)}}return!!(p||b)}))}return{run(I){Y6(c)?_T().then(()=>{c=c(),O(I)}):O(I)},end(){k(),p=b=null}}}function LO(r,s){const o={},h={},c={$$scope:1};let y=r.length;for(;y--;){const p=r[y],b=s[y];if(b){for(const T in p)T in b||(h[T]=1);for(const T in b)c[T]||(o[T]=b[T],c[T]=1);r[y]=b}else for(const T in p)c[T]=1}for(const p in h)p in o||(o[p]=void 0);return o}function BO(r){return typeof r=="object"&&r!==null?r:{}}function RO(r,s,o){const h=r.$$.props[s];h!==void 0&&(r.$$.bound[h]=o,o(r.$$.ctx[h]))}function IO(r){r&&r.c()}function FO(r,s){r&&r.l(s)}function xT(r,s,o,h){const{fragment:c,on_mount:y,on_destroy:p,after_update:b}=r.$$;c&&c.m(s,o),h||R4(()=>{const T=y.map(s7).filter(Y6);p?p.push(...T):jd(T),r.$$.on_mount=[]}),b.forEach(R4)}function kT(r,s){const o=r.$$;o.fragment!==null&&(jd(o.on_destroy),o.fragment&&o.fragment.d(s),o.on_destroy=o.fragment=null,o.ctx=[])}function TT(r,s){r.$$.dirty[0]===-1&&(Rm.push(r),b7(),r.$$.dirty.fill(0)),r.$$.dirty[s/31|0]|=1<<s%31}function PO(r,s,o,h,c,y,p,b=[-1]){const T=Lm;Bm(r);const k=r.$$={fragment:null,ctx:null,props:y,update:au,not_equal:c,bound:c7(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(T?T.$$.context:[])),callbacks:c7(),dirty:b,skip_bound:!1,root:s.target||T.$$.root};p&&p(k.root);let D=!1;if(k.ctx=o?o(r,s.props||{},(O,I,...z)=>{const H=z.length?z[0]:I;return k.ctx&&c(k.ctx[O],k.ctx[O]=H)&&(!k.skip_bound&&k.bound[O]&&k.bound[O](H),D&&TT(r,O)),I}):[],k.update(),D=!0,jd(k.before_update),k.fragment=h?h(k.ctx):!1,s.target){if(s.hydrate){eT();const O=hT(s.target);k.fragment&&k.fragment.l(O),O.forEach(uT)}else k.fragment&&k.fragment.c();s.intro&&bT(r.$$.fragment),xT(r,s.target,s.anchor,s.customElement),nT(),w7()}Bm(T)}class YO{$destroy(){kT(this,1),this.$destroy=au}$on(s,o){const h=this.$$.callbacks[s]||(this.$$.callbacks[s]=[]);return h.push(o),()=>{const c=h.indexOf(o);c!==-1&&h.splice(c,1)}}$set(s){this.$$set&&!Q9(s)&&(this.$$.skip_bound=!0,this.$$set(s),this.$$.skip_bound=!1)}}const Fp=[];function ET(r,s){return{subscribe:ST(r,s).subscribe}}function ST(r,s=au){let o;const h=new Set;function c(b){if(K9(r,b)&&(r=b,o)){const T=!Fp.length;for(const k of h)k[1](),Fp.push(k,r);if(T){for(let k=0;k<Fp.length;k+=2)Fp[k][0](Fp[k+1]);Fp.length=0}}}function y(b){c(b(r))}function p(b,T=au){const k=[b,T];return h.add(k),h.size===1&&(o=s(c)||au),b(r),()=>{h.delete(k),h.size===0&&(o(),o=null)}}return{set:c,update:y,subscribe:p}}function jO(r,s,o){const h=!Array.isArray(r),c=h?[r]:r,y=s.length<2;return ET(o,p=>{let b=!1;const T=[];let k=0,D=au;const O=()=>{if(k)return;D();const z=s(h?T[0]:T,p);y?p(z):D=Y6(z)?z:au},I=c.map((z,H)=>j6(z,q=>{T[H]=q,k&=~(1<<H),b&&O()},()=>{k|=1<<H}));return b=!0,O(),function(){jd(I),D()}})}var CT={};(function(r){r.defaults={},r.set=function(s,o,h){var c=h||{},y=r.defaults,p=c.expires||y.expires,b=c.domain||y.domain,T=c.path!==void 0?c.path:y.path!==void 0?y.path:"/",k=c.secure!==void 0?c.secure:y.secure,D=c.httponly!==void 0?c.httponly:y.httponly,O=c.samesite!==void 0?c.samesite:y.samesite,I=p?new Date(typeof p=="number"?new Date().getTime()+p*864e5:p):0;document.cookie=s.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+o.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(I&&I.getTime()>=0?";expires="+I.toUTCString():"")+(b?";domain="+b:"")+(T?";path="+T:"")+(k?";secure":"")+(D?";httponly":"")+(O?";samesite="+O:"")},r.get=function(s){for(var o=document.cookie.split(";");o.length;){var h=o.pop(),c=h.indexOf("=");c=c<0?h.length:c;var y=decodeURIComponent(h.slice(0,c).replace(/^\s+/,""));if(y===s)return decodeURIComponent(h.slice(c+1))}return null},r.erase=function(s,o){r.set(s,"",{expires:-1,domain:o&&o.domain,path:o&&o.path,secure:0,httponly:0})},r.all=function(){for(var s={},o=document.cookie.split(";");o.length;){var h=o.pop(),c=h.indexOf("=");c=c<0?h.length:c;var y=decodeURIComponent(h.slice(0,c).replace(/^\s+/,""));s[y]=decodeURIComponent(h.slice(c+1))}return s}})(CT);function zO(r,s,o){const h=s.getValue(o);return h!==null&&r.set(h),s.addListener&&s.addListener(o,c=>{r.set(c)}),r.subscribe(c=>{s.setValue(o,c)}),Object.assign(Object.assign({},r),{delete(){s.deleteValue(o)}})}function MT(r,s=!1){const o=[],h=p=>{const b=p.key;p.storageArea===r&&o.filter(({key:T})=>T===b).forEach(({listener:T})=>{let k=p.newValue;try{k=JSON.parse(p.newValue)}catch{}T(k)})},c=()=>{s&&typeof window!="undefined"&&(window==null?void 0:window.addEventListener)&&window.addEventListener("storage",h)},y=()=>{s&&typeof window!="undefined"&&(window==null?void 0:window.removeEventListener)&&window.removeEventListener("storage",h)};return{addListener(p,b){o.push({key:p,listener:b}),o.length===1&&c()},removeListener(p,b){const T=o.indexOf({key:p,listener:b});T!==-1&&o.splice(T,1),o.length===0&&y()},getValue(p){let b=r.getItem(p);if(b!=null)try{b=JSON.parse(b)}catch{}return b},deleteValue(p){r.removeItem(p)},setValue(p,b){r.setItem(p,JSON.stringify(b))}}}function UO(r=!1){return typeof window!="undefined"&&(window==null?void 0:window.localStorage)?MT(window.localStorage,r):(console.warn("Unable to find the localStorage. No data will be persisted."),AT())}function AT(){return{getValue(){return null},deleteValue(){},setValue(){}}}const DT=typeof atob=="function",NT=typeof btoa=="function",Pp=typeof Buffer=="function",x7=typeof TextDecoder=="function"?new TextDecoder:void 0,k7=typeof TextEncoder=="function"?new TextEncoder:void 0,OT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Fm=Array.prototype.slice.call(OT),P4=(r=>{let s={};return r.forEach((o,h)=>s[o]=h),s})(Fm),LT=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Ra=String.fromCharCode.bind(String),T7=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):(r,s=o=>o)=>new Uint8Array(Array.prototype.slice.call(r,0).map(s)),BT=r=>r.replace(/=/g,"").replace(/[+\/]/g,s=>s=="+"?"-":"_"),E7=r=>r.replace(/[^A-Za-z0-9\+\/]/g,""),RT=r=>{let s,o,h,c,y="";const p=r.length%3;for(let b=0;b<r.length;){if((o=r.charCodeAt(b++))>255||(h=r.charCodeAt(b++))>255||(c=r.charCodeAt(b++))>255)throw new TypeError("invalid character found");s=o<<16|h<<8|c,y+=Fm[s>>18&63]+Fm[s>>12&63]+Fm[s>>6&63]+Fm[s&63]}return p?y.slice(0,p-3)+"===".substring(p):y},S7=NT?r=>btoa(r):Pp?r=>Buffer.from(r,"binary").toString("base64"):RT,IT=Pp?r=>Buffer.from(r).toString("base64"):r=>{const s=4096;let o=[];for(let h=0,c=r.length;h<c;h+=s)o.push(Ra.apply(null,r.subarray(h,h+s)));return S7(o.join(""))},FT=r=>{if(r.length<2){var s=r.charCodeAt(0);return s<128?r:s<2048?Ra(192|s>>>6)+Ra(128|s&63):Ra(224|s>>>12&15)+Ra(128|s>>>6&63)+Ra(128|s&63)}else{var s=65536+(r.charCodeAt(0)-55296)*1024+(r.charCodeAt(1)-56320);return Ra(240|s>>>18&7)+Ra(128|s>>>12&63)+Ra(128|s>>>6&63)+Ra(128|s&63)}},PT=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,YT=r=>r.replace(PT,FT),C7=Pp?r=>Buffer.from(r,"utf8").toString("base64"):k7?r=>IT(k7.encode(r)):r=>S7(YT(r)),HO=(r,s=!1)=>s?BT(C7(r)):C7(r),jT=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,zT=r=>{switch(r.length){case 4:var s=(7&r.charCodeAt(0))<<18|(63&r.charCodeAt(1))<<12|(63&r.charCodeAt(2))<<6|63&r.charCodeAt(3),o=s-65536;return Ra((o>>>10)+55296)+Ra((o&1023)+56320);case 3:return Ra((15&r.charCodeAt(0))<<12|(63&r.charCodeAt(1))<<6|63&r.charCodeAt(2));default:return Ra((31&r.charCodeAt(0))<<6|63&r.charCodeAt(1))}},UT=r=>r.replace(jT,zT),HT=r=>{if(r=r.replace(/\s+/g,""),!LT.test(r))throw new TypeError("malformed base64.");r+="==".slice(2-(r.length&3));let s,o="",h,c;for(let y=0;y<r.length;)s=P4[r.charAt(y++)]<<18|P4[r.charAt(y++)]<<12|(h=P4[r.charAt(y++)])<<6|(c=P4[r.charAt(y++)]),o+=h===64?Ra(s>>16&255):c===64?Ra(s>>16&255,s>>8&255):Ra(s>>16&255,s>>8&255,s&255);return o},M7=DT?r=>atob(E7(r)):Pp?r=>Buffer.from(r,"base64").toString("binary"):HT,$T=Pp?r=>T7(Buffer.from(r,"base64")):r=>T7(M7(r),s=>s.charCodeAt(0)),WT=Pp?r=>Buffer.from(r,"base64").toString("utf8"):x7?r=>x7.decode($T(r)):r=>UT(M7(r)),qT=r=>E7(r.replace(/[-_]/g,s=>s=="-"?"+":"/")),$O=r=>WT(qT(r)),WO="8.13.9";function VT(r){const s=r-1;return s*s*s+1}function qO(r,{delay:s=0,duration:o=400,easing:h=o7}={}){const c=+getComputedStyle(r).opacity;return{delay:s,duration:o,easing:h,css:y=>`opacity: ${y*c}`}}function VO(r,{delay:s=0,duration:o=400,easing:h=VT}={}){const c=getComputedStyle(r),y=+c.opacity,p=parseFloat(c.height),b=parseFloat(c.paddingTop),T=parseFloat(c.paddingBottom),k=parseFloat(c.marginTop),D=parseFloat(c.marginBottom),O=parseFloat(c.borderTopWidth),I=parseFloat(c.borderBottomWidth);return{delay:s,duration:o,easing:h,css:z=>`overflow: hidden;opacity: ${Math.min(z*20,1)*y};height: ${z*p}px;padding-top: ${z*b}px;padding-bottom: ${z*T}px;margin-top: ${z*k}px;margin-bottom: ${z*D}px;border-top-width: ${z*O}px;border-bottom-width: ${z*I}px;`}}//! moment.js
//! version : 2.29.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var A7;function rn(){return A7.apply(null,arguments)}function GT(r){A7=r}function yc(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function zd(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function Mr(r,s){return Object.prototype.hasOwnProperty.call(r,s)}function V6(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var s;for(s in r)if(Mr(r,s))return!1;return!0}function Ao(r){return r===void 0}function al(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function Pm(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function D7(r,s){var o=[],h;for(h=0;h<r.length;++h)o.push(s(r[h],h));return o}function Yh(r,s){for(var o in s)Mr(s,o)&&(r[o]=s[o]);return Mr(s,"toString")&&(r.toString=s.toString),Mr(s,"valueOf")&&(r.valueOf=s.valueOf),r}function ou(r,s,o,h){return nk(r,s,o,h,!0).utc()}function ZT(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function or(r){return r._pf==null&&(r._pf=ZT()),r._pf}var G6;Array.prototype.some?G6=Array.prototype.some:G6=function(r){var s=Object(this),o=s.length>>>0,h;for(h=0;h<o;h++)if(h in s&&r.call(this,s[h],h,s))return!0;return!1};function Z6(r){if(r._isValid==null){var s=or(r),o=G6.call(s.parsedDateParts,function(c){return c!=null}),h=!isNaN(r._d.getTime())&&s.overflow<0&&!s.empty&&!s.invalidEra&&!s.invalidMonth&&!s.invalidWeekday&&!s.weekdayMismatch&&!s.nullInput&&!s.invalidFormat&&!s.userInvalidated&&(!s.meridiem||s.meridiem&&o);if(r._strict&&(h=h&&s.charsLeftOver===0&&s.unusedTokens.length===0&&s.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(r))r._isValid=h;else return h}return r._isValid}function Y4(r){var s=ou(NaN);return r!=null?Yh(or(s),r):or(s).userInvalidated=!0,s}var X6=rn.momentProperties=[],K6=!1;function Q6(r,s){var o,h,c;if(Ao(s._isAMomentObject)||(r._isAMomentObject=s._isAMomentObject),Ao(s._i)||(r._i=s._i),Ao(s._f)||(r._f=s._f),Ao(s._l)||(r._l=s._l),Ao(s._strict)||(r._strict=s._strict),Ao(s._tzm)||(r._tzm=s._tzm),Ao(s._isUTC)||(r._isUTC=s._isUTC),Ao(s._offset)||(r._offset=s._offset),Ao(s._pf)||(r._pf=or(s)),Ao(s._locale)||(r._locale=s._locale),X6.length>0)for(o=0;o<X6.length;o++)h=X6[o],c=s[h],Ao(c)||(r[h]=c);return r}function Ym(r){Q6(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),K6===!1&&(K6=!0,rn.updateOffset(this),K6=!1)}function mc(r){return r instanceof Ym||r!=null&&r._isAMomentObject!=null}function N7(r){rn.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+r)}function Is(r,s){var o=!0;return Yh(function(){if(rn.deprecationHandler!=null&&rn.deprecationHandler(null,r),o){var h=[],c,y,p;for(y=0;y<arguments.length;y++){if(c="",typeof arguments[y]=="object"){c+=`
[`+y+"] ";for(p in arguments[0])Mr(arguments[0],p)&&(c+=p+": "+arguments[0][p]+", ");c=c.slice(0,-2)}else c=arguments[y];h.push(c)}N7(r+`
Arguments: `+Array.prototype.slice.call(h).join("")+`
`+new Error().stack),o=!1}return s.apply(this,arguments)},s)}var O7={};function L7(r,s){rn.deprecationHandler!=null&&rn.deprecationHandler(r,s),O7[r]||(N7(s),O7[r]=!0)}rn.suppressDeprecationWarnings=!1;rn.deprecationHandler=null;function su(r){return typeof Function!="undefined"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function XT(r){var s,o;for(o in r)Mr(r,o)&&(s=r[o],su(s)?this[o]=s:this["_"+o]=s);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function J6(r,s){var o=Yh({},r),h;for(h in s)Mr(s,h)&&(zd(r[h])&&zd(s[h])?(o[h]={},Yh(o[h],r[h]),Yh(o[h],s[h])):s[h]!=null?o[h]=s[h]:delete o[h]);for(h in r)Mr(r,h)&&!Mr(s,h)&&zd(r[h])&&(o[h]=Yh({},o[h]));return o}function t8(r){r!=null&&this.set(r)}var e8;Object.keys?e8=Object.keys:e8=function(r){var s,o=[];for(s in r)Mr(r,s)&&o.push(s);return o};var KT={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function QT(r,s,o){var h=this._calendar[r]||this._calendar.sameElse;return su(h)?h.call(s,o):h}function cu(r,s,o){var h=""+Math.abs(r),c=s-h.length,y=r>=0;return(y?o?"+":"":"-")+Math.pow(10,Math.max(0,c)).toString().substr(1)+h}var n8=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j4=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,r8={},Yp={};function Mn(r,s,o,h){var c=h;typeof h=="string"&&(c=function(){return this[h]()}),r&&(Yp[r]=c),s&&(Yp[s[0]]=function(){return cu(c.apply(this,arguments),s[1],s[2])}),o&&(Yp[o]=function(){return this.localeData().ordinal(c.apply(this,arguments),r)})}function JT(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function tE(r){var s=r.match(n8),o,h;for(o=0,h=s.length;o<h;o++)Yp[s[o]]?s[o]=Yp[s[o]]:s[o]=JT(s[o]);return function(c){var y="",p;for(p=0;p<h;p++)y+=su(s[p])?s[p].call(c,r):s[p];return y}}function z4(r,s){return r.isValid()?(s=B7(s,r.localeData()),r8[s]=r8[s]||tE(s),r8[s](r)):r.localeData().invalidDate()}function B7(r,s){var o=5;function h(c){return s.longDateFormat(c)||c}for(j4.lastIndex=0;o>=0&&j4.test(r);)r=r.replace(j4,h),j4.lastIndex=0,o-=1;return r}var eE={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function nE(r){var s=this._longDateFormat[r],o=this._longDateFormat[r.toUpperCase()];return s||!o?s:(this._longDateFormat[r]=o.match(n8).map(function(h){return h==="MMMM"||h==="MM"||h==="DD"||h==="dddd"?h.slice(1):h}).join(""),this._longDateFormat[r])}var rE="Invalid date";function iE(){return this._invalidDate}var aE="%d",oE=/\d{1,2}/;function sE(r){return this._ordinal.replace("%d",r)}var cE={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function uE(r,s,o,h){var c=this._relativeTime[o];return su(c)?c(r,s,o,h):c.replace(/%d/i,r)}function lE(r,s){var o=this._relativeTime[r>0?"future":"past"];return su(o)?o(s):o.replace(/%s/i,s)}var jm={};function Va(r,s){var o=r.toLowerCase();jm[o]=jm[o+"s"]=jm[s]=r}function Fs(r){return typeof r=="string"?jm[r]||jm[r.toLowerCase()]:void 0}function i8(r){var s={},o,h;for(h in r)Mr(r,h)&&(o=Fs(h),o&&(s[o]=r[h]));return s}var R7={};function Ga(r,s){R7[r]=s}function hE(r){var s=[],o;for(o in r)Mr(r,o)&&s.push({unit:o,priority:R7[o]});return s.sort(function(h,c){return h.priority-c.priority}),s}function U4(r){return r%4==0&&r%100!=0||r%400==0}function Ps(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function hr(r){var s=+r,o=0;return s!==0&&isFinite(s)&&(o=Ps(s)),o}function jp(r,s){return function(o){return o!=null?(I7(this,r,o),rn.updateOffset(this,s),this):H4(this,r)}}function H4(r,s){return r.isValid()?r._d["get"+(r._isUTC?"UTC":"")+s]():NaN}function I7(r,s,o){r.isValid()&&!isNaN(o)&&(s==="FullYear"&&U4(r.year())&&r.month()===1&&r.date()===29?(o=hr(o),r._d["set"+(r._isUTC?"UTC":"")+s](o,r.month(),X4(o,r.month()))):r._d["set"+(r._isUTC?"UTC":"")+s](o))}function fE(r){return r=Fs(r),su(this[r])?this[r]():this}function dE(r,s){if(typeof r=="object"){r=i8(r);var o=hE(r),h;for(h=0;h<o.length;h++)this[o[h].unit](r[o[h].unit])}else if(r=Fs(r),su(this[r]))return this[r](s);return this}var F7=/\d/,os=/\d\d/,P7=/\d{3}/,a8=/\d{4}/,$4=/[+-]?\d{6}/,li=/\d\d?/,Y7=/\d\d\d\d?/,j7=/\d\d\d\d\d\d?/,W4=/\d{1,3}/,o8=/\d{1,4}/,q4=/[+-]?\d{1,6}/,zp=/\d+/,V4=/[+-]?\d+/,pE=/Z|[+-]\d\d:?\d\d/gi,G4=/Z|[+-]\d\d(?::?\d\d)?/gi,gE=/[+-]?\d+(\.\d{1,3})?/,zm=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Z4;Z4={};function sn(r,s,o){Z4[r]=su(s)?s:function(h,c){return h&&o?o:s}}function yE(r,s){return Mr(Z4,r)?Z4[r](s._strict,s._locale):new RegExp(mE(r))}function mE(r){return ss(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(s,o,h,c,y){return o||h||c||y}))}function ss(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var s8={};function Gr(r,s){var o,h=s;for(typeof r=="string"&&(r=[r]),al(s)&&(h=function(c,y){y[s]=hr(c)}),o=0;o<r.length;o++)s8[r[o]]=h}function Um(r,s){Gr(r,function(o,h,c,y){c._w=c._w||{},s(o,c._w,c,y)})}function vE(r,s,o){s!=null&&Mr(s8,r)&&s8[r](s,o._a,o,r)}var Za=0,ol=1,uu=2,ha=3,vc=4,sl=5,Ud=6,_E=7,bE=8;function wE(r,s){return(r%s+s)%s}var qi;Array.prototype.indexOf?qi=Array.prototype.indexOf:qi=function(r){var s;for(s=0;s<this.length;++s)if(this[s]===r)return s;return-1};function X4(r,s){if(isNaN(r)||isNaN(s))return NaN;var o=wE(s,12);return r+=(s-o)/12,o===1?U4(r)?29:28:31-o%7%2}Mn("M",["MM",2],"Mo",function(){return this.month()+1});Mn("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)});Mn("MMMM",0,0,function(r){return this.localeData().months(this,r)});Va("month","M");Ga("month",8);sn("M",li);sn("MM",li,os);sn("MMM",function(r,s){return s.monthsShortRegex(r)});sn("MMMM",function(r,s){return s.monthsRegex(r)});Gr(["M","MM"],function(r,s){s[ol]=hr(r)-1});Gr(["MMM","MMMM"],function(r,s,o,h){var c=o._locale.monthsParse(r,h,o._strict);c!=null?s[ol]=c:or(o).invalidMonth=r});var xE="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),z7="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),U7=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,kE=zm,TE=zm;function EE(r,s){return r?yc(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||U7).test(s)?"format":"standalone"][r.month()]:yc(this._months)?this._months:this._months.standalone}function SE(r,s){return r?yc(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[U7.test(s)?"format":"standalone"][r.month()]:yc(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function CE(r,s,o){var h,c,y,p=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],h=0;h<12;++h)y=ou([2e3,h]),this._shortMonthsParse[h]=this.monthsShort(y,"").toLocaleLowerCase(),this._longMonthsParse[h]=this.months(y,"").toLocaleLowerCase();return o?s==="MMM"?(c=qi.call(this._shortMonthsParse,p),c!==-1?c:null):(c=qi.call(this._longMonthsParse,p),c!==-1?c:null):s==="MMM"?(c=qi.call(this._shortMonthsParse,p),c!==-1?c:(c=qi.call(this._longMonthsParse,p),c!==-1?c:null)):(c=qi.call(this._longMonthsParse,p),c!==-1?c:(c=qi.call(this._shortMonthsParse,p),c!==-1?c:null))}function ME(r,s,o){var h,c,y;if(this._monthsParseExact)return CE.call(this,r,s,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),h=0;h<12;h++){if(c=ou([2e3,h]),o&&!this._longMonthsParse[h]&&(this._longMonthsParse[h]=new RegExp("^"+this.months(c,"").replace(".","")+"$","i"),this._shortMonthsParse[h]=new RegExp("^"+this.monthsShort(c,"").replace(".","")+"$","i")),!o&&!this._monthsParse[h]&&(y="^"+this.months(c,"")+"|^"+this.monthsShort(c,""),this._monthsParse[h]=new RegExp(y.replace(".",""),"i")),o&&s==="MMMM"&&this._longMonthsParse[h].test(r))return h;if(o&&s==="MMM"&&this._shortMonthsParse[h].test(r))return h;if(!o&&this._monthsParse[h].test(r))return h}}function H7(r,s){var o;if(!r.isValid())return r;if(typeof s=="string"){if(/^\d+$/.test(s))s=hr(s);else if(s=r.localeData().monthsParse(s),!al(s))return r}return o=Math.min(r.date(),X4(r.year(),s)),r._d["set"+(r._isUTC?"UTC":"")+"Month"](s,o),r}function $7(r){return r!=null?(H7(this,r),rn.updateOffset(this,!0),this):H4(this,"Month")}function AE(){return X4(this.year(),this.month())}function DE(r){return this._monthsParseExact?(Mr(this,"_monthsRegex")||W7.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(Mr(this,"_monthsShortRegex")||(this._monthsShortRegex=kE),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function NE(r){return this._monthsParseExact?(Mr(this,"_monthsRegex")||W7.call(this),r?this._monthsStrictRegex:this._monthsRegex):(Mr(this,"_monthsRegex")||(this._monthsRegex=TE),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function W7(){function r(p,b){return b.length-p.length}var s=[],o=[],h=[],c,y;for(c=0;c<12;c++)y=ou([2e3,c]),s.push(this.monthsShort(y,"")),o.push(this.months(y,"")),h.push(this.months(y,"")),h.push(this.monthsShort(y,""));for(s.sort(r),o.sort(r),h.sort(r),c=0;c<12;c++)s[c]=ss(s[c]),o[c]=ss(o[c]);for(c=0;c<24;c++)h[c]=ss(h[c]);this._monthsRegex=new RegExp("^("+h.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}Mn("Y",0,0,function(){var r=this.year();return r<=9999?cu(r,4):"+"+r});Mn(0,["YY",2],0,function(){return this.year()%100});Mn(0,["YYYY",4],0,"year");Mn(0,["YYYYY",5],0,"year");Mn(0,["YYYYYY",6,!0],0,"year");Va("year","y");Ga("year",1);sn("Y",V4);sn("YY",li,os);sn("YYYY",o8,a8);sn("YYYYY",q4,$4);sn("YYYYYY",q4,$4);Gr(["YYYYY","YYYYYY"],Za);Gr("YYYY",function(r,s){s[Za]=r.length===2?rn.parseTwoDigitYear(r):hr(r)});Gr("YY",function(r,s){s[Za]=rn.parseTwoDigitYear(r)});Gr("Y",function(r,s){s[Za]=parseInt(r,10)});function Hm(r){return U4(r)?366:365}rn.parseTwoDigitYear=function(r){return hr(r)+(hr(r)>68?1900:2e3)};var q7=jp("FullYear",!0);function OE(){return U4(this.year())}function LE(r,s,o,h,c,y,p){var b;return r<100&&r>=0?(b=new Date(r+400,s,o,h,c,y,p),isFinite(b.getFullYear())&&b.setFullYear(r)):b=new Date(r,s,o,h,c,y,p),b}function $m(r){var s,o;return r<100&&r>=0?(o=Array.prototype.slice.call(arguments),o[0]=r+400,s=new Date(Date.UTC.apply(null,o)),isFinite(s.getUTCFullYear())&&s.setUTCFullYear(r)):s=new Date(Date.UTC.apply(null,arguments)),s}function K4(r,s,o){var h=7+s-o,c=(7+$m(r,0,h).getUTCDay()-s)%7;return-c+h-1}function V7(r,s,o,h,c){var y=(7+o-h)%7,p=K4(r,h,c),b=1+7*(s-1)+y+p,T,k;return b<=0?(T=r-1,k=Hm(T)+b):b>Hm(r)?(T=r+1,k=b-Hm(r)):(T=r,k=b),{year:T,dayOfYear:k}}function Wm(r,s,o){var h=K4(r.year(),s,o),c=Math.floor((r.dayOfYear()-h-1)/7)+1,y,p;return c<1?(p=r.year()-1,y=c+cl(p,s,o)):c>cl(r.year(),s,o)?(y=c-cl(r.year(),s,o),p=r.year()+1):(p=r.year(),y=c),{week:y,year:p}}function cl(r,s,o){var h=K4(r,s,o),c=K4(r+1,s,o);return(Hm(r)-h+c)/7}Mn("w",["ww",2],"wo","week");Mn("W",["WW",2],"Wo","isoWeek");Va("week","w");Va("isoWeek","W");Ga("week",5);Ga("isoWeek",5);sn("w",li);sn("ww",li,os);sn("W",li);sn("WW",li,os);Um(["w","ww","W","WW"],function(r,s,o,h){s[h.substr(0,1)]=hr(r)});function BE(r){return Wm(r,this._week.dow,this._week.doy).week}var RE={dow:0,doy:6};function IE(){return this._week.dow}function FE(){return this._week.doy}function PE(r){var s=this.localeData().week(this);return r==null?s:this.add((r-s)*7,"d")}function YE(r){var s=Wm(this,1,4).week;return r==null?s:this.add((r-s)*7,"d")}Mn("d",0,"do","day");Mn("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)});Mn("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)});Mn("dddd",0,0,function(r){return this.localeData().weekdays(this,r)});Mn("e",0,0,"weekday");Mn("E",0,0,"isoWeekday");Va("day","d");Va("weekday","e");Va("isoWeekday","E");Ga("day",11);Ga("weekday",11);Ga("isoWeekday",11);sn("d",li);sn("e",li);sn("E",li);sn("dd",function(r,s){return s.weekdaysMinRegex(r)});sn("ddd",function(r,s){return s.weekdaysShortRegex(r)});sn("dddd",function(r,s){return s.weekdaysRegex(r)});Um(["dd","ddd","dddd"],function(r,s,o,h){var c=o._locale.weekdaysParse(r,h,o._strict);c!=null?s.d=c:or(o).invalidWeekday=r});Um(["d","e","E"],function(r,s,o,h){s[h]=hr(r)});function jE(r,s){return typeof r!="string"?r:isNaN(r)?(r=s.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function zE(r,s){return typeof r=="string"?s.weekdaysParse(r)%7||7:isNaN(r)?null:r}function c8(r,s){return r.slice(s,7).concat(r.slice(0,s))}var UE="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),G7="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),HE="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$E=zm,WE=zm,qE=zm;function VE(r,s){var o=yc(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(s)?"format":"standalone"];return r===!0?c8(o,this._week.dow):r?o[r.day()]:o}function GE(r){return r===!0?c8(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function ZE(r){return r===!0?c8(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function XE(r,s,o){var h,c,y,p=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],h=0;h<7;++h)y=ou([2e3,1]).day(h),this._minWeekdaysParse[h]=this.weekdaysMin(y,"").toLocaleLowerCase(),this._shortWeekdaysParse[h]=this.weekdaysShort(y,"").toLocaleLowerCase(),this._weekdaysParse[h]=this.weekdays(y,"").toLocaleLowerCase();return o?s==="dddd"?(c=qi.call(this._weekdaysParse,p),c!==-1?c:null):s==="ddd"?(c=qi.call(this._shortWeekdaysParse,p),c!==-1?c:null):(c=qi.call(this._minWeekdaysParse,p),c!==-1?c:null):s==="dddd"?(c=qi.call(this._weekdaysParse,p),c!==-1||(c=qi.call(this._shortWeekdaysParse,p),c!==-1)?c:(c=qi.call(this._minWeekdaysParse,p),c!==-1?c:null)):s==="ddd"?(c=qi.call(this._shortWeekdaysParse,p),c!==-1||(c=qi.call(this._weekdaysParse,p),c!==-1)?c:(c=qi.call(this._minWeekdaysParse,p),c!==-1?c:null)):(c=qi.call(this._minWeekdaysParse,p),c!==-1||(c=qi.call(this._weekdaysParse,p),c!==-1)?c:(c=qi.call(this._shortWeekdaysParse,p),c!==-1?c:null))}function KE(r,s,o){var h,c,y;if(this._weekdaysParseExact)return XE.call(this,r,s,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),h=0;h<7;h++){if(c=ou([2e3,1]).day(h),o&&!this._fullWeekdaysParse[h]&&(this._fullWeekdaysParse[h]=new RegExp("^"+this.weekdays(c,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[h]=new RegExp("^"+this.weekdaysShort(c,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[h]=new RegExp("^"+this.weekdaysMin(c,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[h]||(y="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[h]=new RegExp(y.replace(".",""),"i")),o&&s==="dddd"&&this._fullWeekdaysParse[h].test(r))return h;if(o&&s==="ddd"&&this._shortWeekdaysParse[h].test(r))return h;if(o&&s==="dd"&&this._minWeekdaysParse[h].test(r))return h;if(!o&&this._weekdaysParse[h].test(r))return h}}function QE(r){if(!this.isValid())return r!=null?this:NaN;var s=this._isUTC?this._d.getUTCDay():this._d.getDay();return r!=null?(r=jE(r,this.localeData()),this.add(r-s,"d")):s}function JE(r){if(!this.isValid())return r!=null?this:NaN;var s=(this.day()+7-this.localeData()._week.dow)%7;return r==null?s:this.add(r-s,"d")}function tS(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var s=zE(r,this.localeData());return this.day(this.day()%7?s:s-7)}else return this.day()||7}function eS(r){return this._weekdaysParseExact?(Mr(this,"_weekdaysRegex")||u8.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(Mr(this,"_weekdaysRegex")||(this._weekdaysRegex=$E),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function nS(r){return this._weekdaysParseExact?(Mr(this,"_weekdaysRegex")||u8.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Mr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=WE),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function rS(r){return this._weekdaysParseExact?(Mr(this,"_weekdaysRegex")||u8.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Mr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qE),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function u8(){function r(D,O){return O.length-D.length}var s=[],o=[],h=[],c=[],y,p,b,T,k;for(y=0;y<7;y++)p=ou([2e3,1]).day(y),b=ss(this.weekdaysMin(p,"")),T=ss(this.weekdaysShort(p,"")),k=ss(this.weekdays(p,"")),s.push(b),o.push(T),h.push(k),c.push(b),c.push(T),c.push(k);s.sort(r),o.sort(r),h.sort(r),c.sort(r),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function l8(){return this.hours()%12||12}function iS(){return this.hours()||24}Mn("H",["HH",2],0,"hour");Mn("h",["hh",2],0,l8);Mn("k",["kk",2],0,iS);Mn("hmm",0,0,function(){return""+l8.apply(this)+cu(this.minutes(),2)});Mn("hmmss",0,0,function(){return""+l8.apply(this)+cu(this.minutes(),2)+cu(this.seconds(),2)});Mn("Hmm",0,0,function(){return""+this.hours()+cu(this.minutes(),2)});Mn("Hmmss",0,0,function(){return""+this.hours()+cu(this.minutes(),2)+cu(this.seconds(),2)});function Z7(r,s){Mn(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),s)})}Z7("a",!0);Z7("A",!1);Va("hour","h");Ga("hour",13);function X7(r,s){return s._meridiemParse}sn("a",X7);sn("A",X7);sn("H",li);sn("h",li);sn("k",li);sn("HH",li,os);sn("hh",li,os);sn("kk",li,os);sn("hmm",Y7);sn("hmmss",j7);sn("Hmm",Y7);sn("Hmmss",j7);Gr(["H","HH"],ha);Gr(["k","kk"],function(r,s,o){var h=hr(r);s[ha]=h===24?0:h});Gr(["a","A"],function(r,s,o){o._isPm=o._locale.isPM(r),o._meridiem=r});Gr(["h","hh"],function(r,s,o){s[ha]=hr(r),or(o).bigHour=!0});Gr("hmm",function(r,s,o){var h=r.length-2;s[ha]=hr(r.substr(0,h)),s[vc]=hr(r.substr(h)),or(o).bigHour=!0});Gr("hmmss",function(r,s,o){var h=r.length-4,c=r.length-2;s[ha]=hr(r.substr(0,h)),s[vc]=hr(r.substr(h,2)),s[sl]=hr(r.substr(c)),or(o).bigHour=!0});Gr("Hmm",function(r,s,o){var h=r.length-2;s[ha]=hr(r.substr(0,h)),s[vc]=hr(r.substr(h))});Gr("Hmmss",function(r,s,o){var h=r.length-4,c=r.length-2;s[ha]=hr(r.substr(0,h)),s[vc]=hr(r.substr(h,2)),s[sl]=hr(r.substr(c))});function aS(r){return(r+"").toLowerCase().charAt(0)==="p"}var oS=/[ap]\.?m?\.?/i,sS=jp("Hours",!0);function cS(r,s,o){return r>11?o?"pm":"PM":o?"am":"AM"}var K7={calendar:KT,longDateFormat:eE,invalidDate:rE,ordinal:aE,dayOfMonthOrdinalParse:oE,relativeTime:cE,months:xE,monthsShort:z7,week:RE,weekdays:UE,weekdaysMin:HE,weekdaysShort:G7,meridiemParse:oS},bi={},qm={},Vm;function uS(r,s){var o,h=Math.min(r.length,s.length);for(o=0;o<h;o+=1)if(r[o]!==s[o])return o;return h}function Q7(r){return r&&r.toLowerCase().replace("_","-")}function lS(r){for(var s=0,o,h,c,y;s<r.length;){for(y=Q7(r[s]).split("-"),o=y.length,h=Q7(r[s+1]),h=h?h.split("-"):null;o>0;){if(c=Q4(y.slice(0,o).join("-")),c)return c;if(h&&h.length>=o&&uS(y,h)>=o-1)break;o--}s++}return Vm}function Q4(r){var s=null,o;if(bi[r]===void 0&&typeof module!="undefined"&&module&&module.exports)try{s=Vm._abbr,o=require,o("./locale/"+r),jh(s)}catch{bi[r]=null}return bi[r]}function jh(r,s){var o;return r&&(Ao(s)?o=ul(r):o=h8(r,s),o?Vm=o:typeof console!="undefined"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),Vm._abbr}function h8(r,s){if(s!==null){var o,h=K7;if(s.abbr=r,bi[r]!=null)L7("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),h=bi[r]._config;else if(s.parentLocale!=null)if(bi[s.parentLocale]!=null)h=bi[s.parentLocale]._config;else if(o=Q4(s.parentLocale),o!=null)h=o._config;else return qm[s.parentLocale]||(qm[s.parentLocale]=[]),qm[s.parentLocale].push({name:r,config:s}),null;return bi[r]=new t8(J6(h,s)),qm[r]&&qm[r].forEach(function(c){h8(c.name,c.config)}),jh(r),bi[r]}else return delete bi[r],null}function hS(r,s){if(s!=null){var o,h,c=K7;bi[r]!=null&&bi[r].parentLocale!=null?bi[r].set(J6(bi[r]._config,s)):(h=Q4(r),h!=null&&(c=h._config),s=J6(c,s),h==null&&(s.abbr=r),o=new t8(s),o.parentLocale=bi[r],bi[r]=o),jh(r)}else bi[r]!=null&&(bi[r].parentLocale!=null?(bi[r]=bi[r].parentLocale,r===jh()&&jh(r)):bi[r]!=null&&delete bi[r]);return bi[r]}function ul(r){var s;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return Vm;if(!yc(r)){if(s=Q4(r),s)return s;r=[r]}return lS(r)}function fS(){return e8(bi)}function f8(r){var s,o=r._a;return o&&or(r).overflow===-2&&(s=o[ol]<0||o[ol]>11?ol:o[uu]<1||o[uu]>X4(o[Za],o[ol])?uu:o[ha]<0||o[ha]>24||o[ha]===24&&(o[vc]!==0||o[sl]!==0||o[Ud]!==0)?ha:o[vc]<0||o[vc]>59?vc:o[sl]<0||o[sl]>59?sl:o[Ud]<0||o[Ud]>999?Ud:-1,or(r)._overflowDayOfYear&&(s<Za||s>uu)&&(s=uu),or(r)._overflowWeeks&&s===-1&&(s=_E),or(r)._overflowWeekday&&s===-1&&(s=bE),or(r).overflow=s),r}var dS=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pS=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gS=/Z|[+-]\d\d(?::?\d\d)?/,J4=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],d8=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yS=/^\/?Date\((-?\d+)/i,mS=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vS={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function J7(r){var s,o,h=r._i,c=dS.exec(h)||pS.exec(h),y,p,b,T;if(c){for(or(r).iso=!0,s=0,o=J4.length;s<o;s++)if(J4[s][1].exec(c[1])){p=J4[s][0],y=J4[s][2]!==!1;break}if(p==null){r._isValid=!1;return}if(c[3]){for(s=0,o=d8.length;s<o;s++)if(d8[s][1].exec(c[3])){b=(c[2]||" ")+d8[s][0];break}if(b==null){r._isValid=!1;return}}if(!y&&b!=null){r._isValid=!1;return}if(c[4])if(gS.exec(c[4]))T="Z";else{r._isValid=!1;return}r._f=p+(b||"")+(T||""),g8(r)}else r._isValid=!1}function _S(r,s,o,h,c,y){var p=[bS(r),z7.indexOf(s),parseInt(o,10),parseInt(h,10),parseInt(c,10)];return y&&p.push(parseInt(y,10)),p}function bS(r){var s=parseInt(r,10);return s<=49?2e3+s:s<=999?1900+s:s}function wS(r){return r.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function xS(r,s,o){if(r){var h=G7.indexOf(r),c=new Date(s[0],s[1],s[2]).getDay();if(h!==c)return or(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function kS(r,s,o){if(r)return vS[r];if(s)return 0;var h=parseInt(o,10),c=h%100,y=(h-c)/100;return y*60+c}function tk(r){var s=mS.exec(wS(r._i)),o;if(s){if(o=_S(s[4],s[3],s[2],s[5],s[6],s[7]),!xS(s[1],o,r))return;r._a=o,r._tzm=kS(s[8],s[9],s[10]),r._d=$m.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),or(r).rfc2822=!0}else r._isValid=!1}function TS(r){var s=yS.exec(r._i);if(s!==null){r._d=new Date(+s[1]);return}if(J7(r),r._isValid===!1)delete r._isValid;else return;if(tk(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:rn.createFromInputFallback(r)}rn.createFromInputFallback=Is("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(r){r._d=new Date(r._i+(r._useUTC?" UTC":""))});function Up(r,s,o){return r!=null?r:s!=null?s:o}function ES(r){var s=new Date(rn.now());return r._useUTC?[s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()]:[s.getFullYear(),s.getMonth(),s.getDate()]}function p8(r){var s,o,h=[],c,y,p;if(!r._d){for(c=ES(r),r._w&&r._a[uu]==null&&r._a[ol]==null&&SS(r),r._dayOfYear!=null&&(p=Up(r._a[Za],c[Za]),(r._dayOfYear>Hm(p)||r._dayOfYear===0)&&(or(r)._overflowDayOfYear=!0),o=$m(p,0,r._dayOfYear),r._a[ol]=o.getUTCMonth(),r._a[uu]=o.getUTCDate()),s=0;s<3&&r._a[s]==null;++s)r._a[s]=h[s]=c[s];for(;s<7;s++)r._a[s]=h[s]=r._a[s]==null?s===2?1:0:r._a[s];r._a[ha]===24&&r._a[vc]===0&&r._a[sl]===0&&r._a[Ud]===0&&(r._nextDay=!0,r._a[ha]=0),r._d=(r._useUTC?$m:LE).apply(null,h),y=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[ha]=24),r._w&&typeof r._w.d!="undefined"&&r._w.d!==y&&(or(r).weekdayMismatch=!0)}}function SS(r){var s,o,h,c,y,p,b,T,k;s=r._w,s.GG!=null||s.W!=null||s.E!=null?(y=1,p=4,o=Up(s.GG,r._a[Za],Wm(hi(),1,4).year),h=Up(s.W,1),c=Up(s.E,1),(c<1||c>7)&&(T=!0)):(y=r._locale._week.dow,p=r._locale._week.doy,k=Wm(hi(),y,p),o=Up(s.gg,r._a[Za],k.year),h=Up(s.w,k.week),s.d!=null?(c=s.d,(c<0||c>6)&&(T=!0)):s.e!=null?(c=s.e+y,(s.e<0||s.e>6)&&(T=!0)):c=y),h<1||h>cl(o,y,p)?or(r)._overflowWeeks=!0:T!=null?or(r)._overflowWeekday=!0:(b=V7(o,h,c,y,p),r._a[Za]=b.year,r._dayOfYear=b.dayOfYear)}rn.ISO_8601=function(){};rn.RFC_2822=function(){};function g8(r){if(r._f===rn.ISO_8601){J7(r);return}if(r._f===rn.RFC_2822){tk(r);return}r._a=[],or(r).empty=!0;var s=""+r._i,o,h,c,y,p,b=s.length,T=0,k;for(c=B7(r._f,r._locale).match(n8)||[],o=0;o<c.length;o++)y=c[o],h=(s.match(yE(y,r))||[])[0],h&&(p=s.substr(0,s.indexOf(h)),p.length>0&&or(r).unusedInput.push(p),s=s.slice(s.indexOf(h)+h.length),T+=h.length),Yp[y]?(h?or(r).empty=!1:or(r).unusedTokens.push(y),vE(y,h,r)):r._strict&&!h&&or(r).unusedTokens.push(y);or(r).charsLeftOver=b-T,s.length>0&&or(r).unusedInput.push(s),r._a[ha]<=12&&or(r).bigHour===!0&&r._a[ha]>0&&(or(r).bigHour=void 0),or(r).parsedDateParts=r._a.slice(0),or(r).meridiem=r._meridiem,r._a[ha]=CS(r._locale,r._a[ha],r._meridiem),k=or(r).era,k!==null&&(r._a[Za]=r._locale.erasConvertYear(k,r._a[Za])),p8(r),f8(r)}function CS(r,s,o){var h;return o==null?s:r.meridiemHour!=null?r.meridiemHour(s,o):(r.isPM!=null&&(h=r.isPM(o),h&&s<12&&(s+=12),!h&&s===12&&(s=0)),s)}function MS(r){var s,o,h,c,y,p,b=!1;if(r._f.length===0){or(r).invalidFormat=!0,r._d=new Date(NaN);return}for(c=0;c<r._f.length;c++)y=0,p=!1,s=Q6({},r),r._useUTC!=null&&(s._useUTC=r._useUTC),s._f=r._f[c],g8(s),Z6(s)&&(p=!0),y+=or(s).charsLeftOver,y+=or(s).unusedTokens.length*10,or(s).score=y,b?y<h&&(h=y,o=s):(h==null||y<h||p)&&(h=y,o=s,p&&(b=!0));Yh(r,o||s)}function AS(r){if(!r._d){var s=i8(r._i),o=s.day===void 0?s.date:s.day;r._a=D7([s.year,s.month,o,s.hour,s.minute,s.second,s.millisecond],function(h){return h&&parseInt(h,10)}),p8(r)}}function DS(r){var s=new Ym(f8(ek(r)));return s._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function ek(r){var s=r._i,o=r._f;return r._locale=r._locale||ul(r._l),s===null||o===void 0&&s===""?Y4({nullInput:!0}):(typeof s=="string"&&(r._i=s=r._locale.preparse(s)),mc(s)?new Ym(f8(s)):(Pm(s)?r._d=s:yc(o)?MS(r):o?g8(r):NS(r),Z6(r)||(r._d=null),r))}function NS(r){var s=r._i;Ao(s)?r._d=new Date(rn.now()):Pm(s)?r._d=new Date(s.valueOf()):typeof s=="string"?TS(r):yc(s)?(r._a=D7(s.slice(0),function(o){return parseInt(o,10)}),p8(r)):zd(s)?AS(r):al(s)?r._d=new Date(s):rn.createFromInputFallback(r)}function nk(r,s,o,h,c){var y={};return(s===!0||s===!1)&&(h=s,s=void 0),(o===!0||o===!1)&&(h=o,o=void 0),(zd(r)&&V6(r)||yc(r)&&r.length===0)&&(r=void 0),y._isAMomentObject=!0,y._useUTC=y._isUTC=c,y._l=o,y._i=r,y._f=s,y._strict=h,DS(y)}function hi(r,s,o,h){return nk(r,s,o,h,!1)}var OS=Is("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=hi.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:Y4()}),LS=Is("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=hi.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:Y4()});function rk(r,s){var o,h;if(s.length===1&&yc(s[0])&&(s=s[0]),!s.length)return hi();for(o=s[0],h=1;h<s.length;++h)(!s[h].isValid()||s[h][r](o))&&(o=s[h]);return o}function BS(){var r=[].slice.call(arguments,0);return rk("isBefore",r)}function RS(){var r=[].slice.call(arguments,0);return rk("isAfter",r)}var IS=function(){return Date.now?Date.now():+new Date},Gm=["year","quarter","month","week","day","hour","minute","second","millisecond"];function FS(r){var s,o=!1,h;for(s in r)if(Mr(r,s)&&!(qi.call(Gm,s)!==-1&&(r[s]==null||!isNaN(r[s]))))return!1;for(h=0;h<Gm.length;++h)if(r[Gm[h]]){if(o)return!1;parseFloat(r[Gm[h]])!==hr(r[Gm[h]])&&(o=!0)}return!0}function PS(){return this._isValid}function YS(){return _c(NaN)}function t5(r){var s=i8(r),o=s.year||0,h=s.quarter||0,c=s.month||0,y=s.week||s.isoWeek||0,p=s.day||0,b=s.hour||0,T=s.minute||0,k=s.second||0,D=s.millisecond||0;this._isValid=FS(s),this._milliseconds=+D+k*1e3+T*6e4+b*1e3*60*60,this._days=+p+y*7,this._months=+c+h*3+o*12,this._data={},this._locale=ul(),this._bubble()}function e5(r){return r instanceof t5}function y8(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function jS(r,s,o){var h=Math.min(r.length,s.length),c=Math.abs(r.length-s.length),y=0,p;for(p=0;p<h;p++)(o&&r[p]!==s[p]||!o&&hr(r[p])!==hr(s[p]))&&y++;return y+c}function ik(r,s){Mn(r,0,0,function(){var o=this.utcOffset(),h="+";return o<0&&(o=-o,h="-"),h+cu(~~(o/60),2)+s+cu(~~o%60,2)})}ik("Z",":");ik("ZZ","");sn("Z",G4);sn("ZZ",G4);Gr(["Z","ZZ"],function(r,s,o){o._useUTC=!0,o._tzm=m8(G4,r)});var zS=/([\+\-]|\d\d)/gi;function m8(r,s){var o=(s||"").match(r),h,c,y;return o===null?null:(h=o[o.length-1]||[],c=(h+"").match(zS)||["-",0,0],y=+(c[1]*60)+hr(c[2]),y===0?0:c[0]==="+"?y:-y)}function v8(r,s){var o,h;return s._isUTC?(o=s.clone(),h=(mc(r)||Pm(r)?r.valueOf():hi(r).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+h),rn.updateOffset(o,!1),o):hi(r).local()}function _8(r){return-Math.round(r._d.getTimezoneOffset())}rn.updateOffset=function(){};function US(r,s,o){var h=this._offset||0,c;if(!this.isValid())return r!=null?this:NaN;if(r!=null){if(typeof r=="string"){if(r=m8(G4,r),r===null)return this}else Math.abs(r)<16&&!o&&(r=r*60);return!this._isUTC&&s&&(c=_8(this)),this._offset=r,this._isUTC=!0,c!=null&&this.add(c,"m"),h!==r&&(!s||this._changeInProgress?ck(this,_c(r-h,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,rn.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?h:_8(this)}function HS(r,s){return r!=null?(typeof r!="string"&&(r=-r),this.utcOffset(r,s),this):-this.utcOffset()}function $S(r){return this.utcOffset(0,r)}function WS(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(_8(this),"m")),this}function qS(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=m8(pE,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function VS(r){return this.isValid()?(r=r?hi(r).utcOffset():0,(this.utcOffset()-r)%60==0):!1}function GS(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ZS(){if(!Ao(this._isDSTShifted))return this._isDSTShifted;var r={},s;return Q6(r,this),r=ek(r),r._a?(s=r._isUTC?ou(r._a):hi(r._a),this._isDSTShifted=this.isValid()&&jS(r._a,s.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function XS(){return this.isValid()?!this._isUTC:!1}function KS(){return this.isValid()?this._isUTC:!1}function ak(){return this.isValid()?this._isUTC&&this._offset===0:!1}var QS=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,JS=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _c(r,s){var o=r,h=null,c,y,p;return e5(r)?o={ms:r._milliseconds,d:r._days,M:r._months}:al(r)||!isNaN(+r)?(o={},s?o[s]=+r:o.milliseconds=+r):(h=QS.exec(r))?(c=h[1]==="-"?-1:1,o={y:0,d:hr(h[uu])*c,h:hr(h[ha])*c,m:hr(h[vc])*c,s:hr(h[sl])*c,ms:hr(y8(h[Ud]*1e3))*c}):(h=JS.exec(r))?(c=h[1]==="-"?-1:1,o={y:Hd(h[2],c),M:Hd(h[3],c),w:Hd(h[4],c),d:Hd(h[5],c),h:Hd(h[6],c),m:Hd(h[7],c),s:Hd(h[8],c)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(p=tC(hi(o.from),hi(o.to)),o={},o.ms=p.milliseconds,o.M=p.months),y=new t5(o),e5(r)&&Mr(r,"_locale")&&(y._locale=r._locale),e5(r)&&Mr(r,"_isValid")&&(y._isValid=r._isValid),y}_c.fn=t5.prototype;_c.invalid=YS;function Hd(r,s){var o=r&&parseFloat(r.replace(",","."));return(isNaN(o)?0:o)*s}function ok(r,s){var o={};return o.months=s.month()-r.month()+(s.year()-r.year())*12,r.clone().add(o.months,"M").isAfter(s)&&--o.months,o.milliseconds=+s-+r.clone().add(o.months,"M"),o}function tC(r,s){var o;return r.isValid()&&s.isValid()?(s=v8(s,r),r.isBefore(s)?o=ok(r,s):(o=ok(s,r),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function sk(r,s){return function(o,h){var c,y;return h!==null&&!isNaN(+h)&&(L7(s,"moment()."+s+"(period, number) is deprecated. Please use moment()."+s+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),y=o,o=h,h=y),c=_c(o,h),ck(this,c,r),this}}function ck(r,s,o,h){var c=s._milliseconds,y=y8(s._days),p=y8(s._months);!r.isValid()||(h=h==null?!0:h,p&&H7(r,H4(r,"Month")+p*o),y&&I7(r,"Date",H4(r,"Date")+y*o),c&&r._d.setTime(r._d.valueOf()+c*o),h&&rn.updateOffset(r,y||p))}var eC=sk(1,"add"),nC=sk(-1,"subtract");function uk(r){return typeof r=="string"||r instanceof String}function rC(r){return mc(r)||Pm(r)||uk(r)||al(r)||aC(r)||iC(r)||r===null||r===void 0}function iC(r){var s=zd(r)&&!V6(r),o=!1,h=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c,y;for(c=0;c<h.length;c+=1)y=h[c],o=o||Mr(r,y);return s&&o}function aC(r){var s=yc(r),o=!1;return s&&(o=r.filter(function(h){return!al(h)&&uk(r)}).length===0),s&&o}function oC(r){var s=zd(r)&&!V6(r),o=!1,h=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],c,y;for(c=0;c<h.length;c+=1)y=h[c],o=o||Mr(r,y);return s&&o}function sC(r,s){var o=r.diff(s,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function cC(r,s){arguments.length===1&&(arguments[0]?rC(arguments[0])?(r=arguments[0],s=void 0):oC(arguments[0])&&(s=arguments[0],r=void 0):(r=void 0,s=void 0));var o=r||hi(),h=v8(o,this).startOf("day"),c=rn.calendarFormat(this,h)||"sameElse",y=s&&(su(s[c])?s[c].call(this,o):s[c]);return this.format(y||this.localeData().calendar(c,this,hi(o)))}function uC(){return new Ym(this)}function lC(r,s){var o=mc(r)?r:hi(r);return this.isValid()&&o.isValid()?(s=Fs(s)||"millisecond",s==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(s).valueOf()):!1}function hC(r,s){var o=mc(r)?r:hi(r);return this.isValid()&&o.isValid()?(s=Fs(s)||"millisecond",s==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(s).valueOf()<o.valueOf()):!1}function fC(r,s,o,h){var c=mc(r)?r:hi(r),y=mc(s)?s:hi(s);return this.isValid()&&c.isValid()&&y.isValid()?(h=h||"()",(h[0]==="("?this.isAfter(c,o):!this.isBefore(c,o))&&(h[1]===")"?this.isBefore(y,o):!this.isAfter(y,o))):!1}function dC(r,s){var o=mc(r)?r:hi(r),h;return this.isValid()&&o.isValid()?(s=Fs(s)||"millisecond",s==="millisecond"?this.valueOf()===o.valueOf():(h=o.valueOf(),this.clone().startOf(s).valueOf()<=h&&h<=this.clone().endOf(s).valueOf())):!1}function pC(r,s){return this.isSame(r,s)||this.isAfter(r,s)}function gC(r,s){return this.isSame(r,s)||this.isBefore(r,s)}function yC(r,s,o){var h,c,y;if(!this.isValid())return NaN;if(h=v8(r,this),!h.isValid())return NaN;switch(c=(h.utcOffset()-this.utcOffset())*6e4,s=Fs(s),s){case"year":y=n5(this,h)/12;break;case"month":y=n5(this,h);break;case"quarter":y=n5(this,h)/3;break;case"second":y=(this-h)/1e3;break;case"minute":y=(this-h)/6e4;break;case"hour":y=(this-h)/36e5;break;case"day":y=(this-h-c)/864e5;break;case"week":y=(this-h-c)/6048e5;break;default:y=this-h}return o?y:Ps(y)}function n5(r,s){if(r.date()<s.date())return-n5(s,r);var o=(s.year()-r.year())*12+(s.month()-r.month()),h=r.clone().add(o,"months"),c,y;return s-h<0?(c=r.clone().add(o-1,"months"),y=(s-h)/(h-c)):(c=r.clone().add(o+1,"months"),y=(s-h)/(c-h)),-(o+y)||0}rn.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";rn.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function mC(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function vC(r){if(!this.isValid())return null;var s=r!==!0,o=s?this.clone().utc():this;return o.year()<0||o.year()>9999?z4(o,s?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):su(Date.prototype.toISOString)?s?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",z4(o,"Z")):z4(o,s?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _C(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",s="",o,h,c,y;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",s="Z"),o="["+r+'("]',h=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",c="-MM-DD[T]HH:mm:ss.SSS",y=s+'[")]',this.format(o+h+c+y)}function bC(r){r||(r=this.isUtc()?rn.defaultFormatUtc:rn.defaultFormat);var s=z4(this,r);return this.localeData().postformat(s)}function wC(r,s){return this.isValid()&&(mc(r)&&r.isValid()||hi(r).isValid())?_c({to:this,from:r}).locale(this.locale()).humanize(!s):this.localeData().invalidDate()}function xC(r){return this.from(hi(),r)}function kC(r,s){return this.isValid()&&(mc(r)&&r.isValid()||hi(r).isValid())?_c({from:this,to:r}).locale(this.locale()).humanize(!s):this.localeData().invalidDate()}function TC(r){return this.to(hi(),r)}function lk(r){var s;return r===void 0?this._locale._abbr:(s=ul(r),s!=null&&(this._locale=s),this)}var hk=Is("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function fk(){return this._locale}var r5=1e3,Hp=60*r5,i5=60*Hp,dk=(365*400+97)*24*i5;function $p(r,s){return(r%s+s)%s}function pk(r,s,o){return r<100&&r>=0?new Date(r+400,s,o)-dk:new Date(r,s,o).valueOf()}function gk(r,s,o){return r<100&&r>=0?Date.UTC(r+400,s,o)-dk:Date.UTC(r,s,o)}function EC(r){var s,o;if(r=Fs(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?gk:pk,r){case"year":s=o(this.year(),0,1);break;case"quarter":s=o(this.year(),this.month()-this.month()%3,1);break;case"month":s=o(this.year(),this.month(),1);break;case"week":s=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":s=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":s=o(this.year(),this.month(),this.date());break;case"hour":s=this._d.valueOf(),s-=$p(s+(this._isUTC?0:this.utcOffset()*Hp),i5);break;case"minute":s=this._d.valueOf(),s-=$p(s,Hp);break;case"second":s=this._d.valueOf(),s-=$p(s,r5);break}return this._d.setTime(s),rn.updateOffset(this,!0),this}function SC(r){var s,o;if(r=Fs(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?gk:pk,r){case"year":s=o(this.year()+1,0,1)-1;break;case"quarter":s=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":s=o(this.year(),this.month()+1,1)-1;break;case"week":s=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":s=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":s=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":s=this._d.valueOf(),s+=i5-$p(s+(this._isUTC?0:this.utcOffset()*Hp),i5)-1;break;case"minute":s=this._d.valueOf(),s+=Hp-$p(s,Hp)-1;break;case"second":s=this._d.valueOf(),s+=r5-$p(s,r5)-1;break}return this._d.setTime(s),rn.updateOffset(this,!0),this}function CC(){return this._d.valueOf()-(this._offset||0)*6e4}function MC(){return Math.floor(this.valueOf()/1e3)}function AC(){return new Date(this.valueOf())}function DC(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function NC(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function OC(){return this.isValid()?this.toISOString():null}function LC(){return Z6(this)}function BC(){return Yh({},or(this))}function RC(){return or(this).overflow}function IC(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Mn("N",0,0,"eraAbbr");Mn("NN",0,0,"eraAbbr");Mn("NNN",0,0,"eraAbbr");Mn("NNNN",0,0,"eraName");Mn("NNNNN",0,0,"eraNarrow");Mn("y",["y",1],"yo","eraYear");Mn("y",["yy",2],0,"eraYear");Mn("y",["yyy",3],0,"eraYear");Mn("y",["yyyy",4],0,"eraYear");sn("N",b8);sn("NN",b8);sn("NNN",b8);sn("NNNN",VC);sn("NNNNN",GC);Gr(["N","NN","NNN","NNNN","NNNNN"],function(r,s,o,h){var c=o._locale.erasParse(r,h,o._strict);c?or(o).era=c:or(o).invalidEra=r});sn("y",zp);sn("yy",zp);sn("yyy",zp);sn("yyyy",zp);sn("yo",ZC);Gr(["y","yy","yyy","yyyy"],Za);Gr(["yo"],function(r,s,o,h){var c;o._locale._eraYearOrdinalRegex&&(c=r.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?s[Za]=o._locale.eraYearOrdinalParse(r,c):s[Za]=parseInt(r,10)});function FC(r,s){var o,h,c,y=this._eras||ul("en")._eras;for(o=0,h=y.length;o<h;++o){switch(typeof y[o].since){case"string":c=rn(y[o].since).startOf("day"),y[o].since=c.valueOf();break}switch(typeof y[o].until){case"undefined":y[o].until=1/0;break;case"string":c=rn(y[o].until).startOf("day").valueOf(),y[o].until=c.valueOf();break}}return y}function PC(r,s,o){var h,c,y=this.eras(),p,b,T;for(r=r.toUpperCase(),h=0,c=y.length;h<c;++h)if(p=y[h].name.toUpperCase(),b=y[h].abbr.toUpperCase(),T=y[h].narrow.toUpperCase(),o)switch(s){case"N":case"NN":case"NNN":if(b===r)return y[h];break;case"NNNN":if(p===r)return y[h];break;case"NNNNN":if(T===r)return y[h];break}else if([p,b,T].indexOf(r)>=0)return y[h]}function YC(r,s){var o=r.since<=r.until?1:-1;return s===void 0?rn(r.since).year():rn(r.since).year()+(s-r.offset)*o}function jC(){var r,s,o,h=this.localeData().eras();for(r=0,s=h.length;r<s;++r)if(o=this.clone().startOf("day").valueOf(),h[r].since<=o&&o<=h[r].until||h[r].until<=o&&o<=h[r].since)return h[r].name;return""}function zC(){var r,s,o,h=this.localeData().eras();for(r=0,s=h.length;r<s;++r)if(o=this.clone().startOf("day").valueOf(),h[r].since<=o&&o<=h[r].until||h[r].until<=o&&o<=h[r].since)return h[r].narrow;return""}function UC(){var r,s,o,h=this.localeData().eras();for(r=0,s=h.length;r<s;++r)if(o=this.clone().startOf("day").valueOf(),h[r].since<=o&&o<=h[r].until||h[r].until<=o&&o<=h[r].since)return h[r].abbr;return""}function HC(){var r,s,o,h,c=this.localeData().eras();for(r=0,s=c.length;r<s;++r)if(o=c[r].since<=c[r].until?1:-1,h=this.clone().startOf("day").valueOf(),c[r].since<=h&&h<=c[r].until||c[r].until<=h&&h<=c[r].since)return(this.year()-rn(c[r].since).year())*o+c[r].offset;return this.year()}function $C(r){return Mr(this,"_erasNameRegex")||w8.call(this),r?this._erasNameRegex:this._erasRegex}function WC(r){return Mr(this,"_erasAbbrRegex")||w8.call(this),r?this._erasAbbrRegex:this._erasRegex}function qC(r){return Mr(this,"_erasNarrowRegex")||w8.call(this),r?this._erasNarrowRegex:this._erasRegex}function b8(r,s){return s.erasAbbrRegex(r)}function VC(r,s){return s.erasNameRegex(r)}function GC(r,s){return s.erasNarrowRegex(r)}function ZC(r,s){return s._eraYearOrdinalRegex||zp}function w8(){var r=[],s=[],o=[],h=[],c,y,p=this.eras();for(c=0,y=p.length;c<y;++c)s.push(ss(p[c].name)),r.push(ss(p[c].abbr)),o.push(ss(p[c].narrow)),h.push(ss(p[c].name)),h.push(ss(p[c].abbr)),h.push(ss(p[c].narrow));this._erasRegex=new RegExp("^("+h.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}Mn(0,["gg",2],0,function(){return this.weekYear()%100});Mn(0,["GG",2],0,function(){return this.isoWeekYear()%100});function a5(r,s){Mn(0,[r,r.length],0,s)}a5("gggg","weekYear");a5("ggggg","weekYear");a5("GGGG","isoWeekYear");a5("GGGGG","isoWeekYear");Va("weekYear","gg");Va("isoWeekYear","GG");Ga("weekYear",1);Ga("isoWeekYear",1);sn("G",V4);sn("g",V4);sn("GG",li,os);sn("gg",li,os);sn("GGGG",o8,a8);sn("gggg",o8,a8);sn("GGGGG",q4,$4);sn("ggggg",q4,$4);Um(["gggg","ggggg","GGGG","GGGGG"],function(r,s,o,h){s[h.substr(0,2)]=hr(r)});Um(["gg","GG"],function(r,s,o,h){s[h]=rn.parseTwoDigitYear(r)});function XC(r){return yk.call(this,r,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function KC(r){return yk.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function QC(){return cl(this.year(),1,4)}function JC(){return cl(this.isoWeekYear(),1,4)}function tM(){var r=this.localeData()._week;return cl(this.year(),r.dow,r.doy)}function eM(){var r=this.localeData()._week;return cl(this.weekYear(),r.dow,r.doy)}function yk(r,s,o,h,c){var y;return r==null?Wm(this,h,c).year:(y=cl(r,h,c),s>y&&(s=y),nM.call(this,r,s,o,h,c))}function nM(r,s,o,h,c){var y=V7(r,s,o,h,c),p=$m(y.year,0,y.dayOfYear);return this.year(p.getUTCFullYear()),this.month(p.getUTCMonth()),this.date(p.getUTCDate()),this}Mn("Q",0,"Qo","quarter");Va("quarter","Q");Ga("quarter",7);sn("Q",F7);Gr("Q",function(r,s){s[ol]=(hr(r)-1)*3});function rM(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}Mn("D",["DD",2],"Do","date");Va("date","D");Ga("date",9);sn("D",li);sn("DD",li,os);sn("Do",function(r,s){return r?s._dayOfMonthOrdinalParse||s._ordinalParse:s._dayOfMonthOrdinalParseLenient});Gr(["D","DD"],uu);Gr("Do",function(r,s){s[uu]=hr(r.match(li)[0])});var mk=jp("Date",!0);Mn("DDD",["DDDD",3],"DDDo","dayOfYear");Va("dayOfYear","DDD");Ga("dayOfYear",4);sn("DDD",W4);sn("DDDD",P7);Gr(["DDD","DDDD"],function(r,s,o){o._dayOfYear=hr(r)});function iM(r){var s=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"d")}Mn("m",["mm",2],0,"minute");Va("minute","m");Ga("minute",14);sn("m",li);sn("mm",li,os);Gr(["m","mm"],vc);var aM=jp("Minutes",!1);Mn("s",["ss",2],0,"second");Va("second","s");Ga("second",15);sn("s",li);sn("ss",li,os);Gr(["s","ss"],sl);var oM=jp("Seconds",!1);Mn("S",0,0,function(){return~~(this.millisecond()/100)});Mn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Mn(0,["SSS",3],0,"millisecond");Mn(0,["SSSS",4],0,function(){return this.millisecond()*10});Mn(0,["SSSSS",5],0,function(){return this.millisecond()*100});Mn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Mn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Mn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Mn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Va("millisecond","ms");Ga("millisecond",16);sn("S",W4,F7);sn("SS",W4,os);sn("SSS",W4,P7);var zh,vk;for(zh="SSSS";zh.length<=9;zh+="S")sn(zh,zp);function sM(r,s){s[Ud]=hr(("0."+r)*1e3)}for(zh="S";zh.length<=9;zh+="S")Gr(zh,sM);vk=jp("Milliseconds",!1);Mn("z",0,0,"zoneAbbr");Mn("zz",0,0,"zoneName");function cM(){return this._isUTC?"UTC":""}function uM(){return this._isUTC?"Coordinated Universal Time":""}var Re=Ym.prototype;Re.add=eC;Re.calendar=cC;Re.clone=uC;Re.diff=yC;Re.endOf=SC;Re.format=bC;Re.from=wC;Re.fromNow=xC;Re.to=kC;Re.toNow=TC;Re.get=fE;Re.invalidAt=RC;Re.isAfter=lC;Re.isBefore=hC;Re.isBetween=fC;Re.isSame=dC;Re.isSameOrAfter=pC;Re.isSameOrBefore=gC;Re.isValid=LC;Re.lang=hk;Re.locale=lk;Re.localeData=fk;Re.max=LS;Re.min=OS;Re.parsingFlags=BC;Re.set=dE;Re.startOf=EC;Re.subtract=nC;Re.toArray=DC;Re.toObject=NC;Re.toDate=AC;Re.toISOString=vC;Re.inspect=_C;typeof Symbol!="undefined"&&Symbol.for!=null&&(Re[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Re.toJSON=OC;Re.toString=mC;Re.unix=MC;Re.valueOf=CC;Re.creationData=IC;Re.eraName=jC;Re.eraNarrow=zC;Re.eraAbbr=UC;Re.eraYear=HC;Re.year=q7;Re.isLeapYear=OE;Re.weekYear=XC;Re.isoWeekYear=KC;Re.quarter=Re.quarters=rM;Re.month=$7;Re.daysInMonth=AE;Re.week=Re.weeks=PE;Re.isoWeek=Re.isoWeeks=YE;Re.weeksInYear=tM;Re.weeksInWeekYear=eM;Re.isoWeeksInYear=QC;Re.isoWeeksInISOWeekYear=JC;Re.date=mk;Re.day=Re.days=QE;Re.weekday=JE;Re.isoWeekday=tS;Re.dayOfYear=iM;Re.hour=Re.hours=sS;Re.minute=Re.minutes=aM;Re.second=Re.seconds=oM;Re.millisecond=Re.milliseconds=vk;Re.utcOffset=US;Re.utc=$S;Re.local=WS;Re.parseZone=qS;Re.hasAlignedHourOffset=VS;Re.isDST=GS;Re.isLocal=XS;Re.isUtcOffset=KS;Re.isUtc=ak;Re.isUTC=ak;Re.zoneAbbr=cM;Re.zoneName=uM;Re.dates=Is("dates accessor is deprecated. Use date instead.",mk);Re.months=Is("months accessor is deprecated. Use month instead",$7);Re.years=Is("years accessor is deprecated. Use year instead",q7);Re.zone=Is("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",HS);Re.isDSTShifted=Is("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ZS);function lM(r){return hi(r*1e3)}function hM(){return hi.apply(null,arguments).parseZone()}function _k(r){return r}var Ar=t8.prototype;Ar.calendar=QT;Ar.longDateFormat=nE;Ar.invalidDate=iE;Ar.ordinal=sE;Ar.preparse=_k;Ar.postformat=_k;Ar.relativeTime=uE;Ar.pastFuture=lE;Ar.set=XT;Ar.eras=FC;Ar.erasParse=PC;Ar.erasConvertYear=YC;Ar.erasAbbrRegex=WC;Ar.erasNameRegex=$C;Ar.erasNarrowRegex=qC;Ar.months=EE;Ar.monthsShort=SE;Ar.monthsParse=ME;Ar.monthsRegex=NE;Ar.monthsShortRegex=DE;Ar.week=BE;Ar.firstDayOfYear=FE;Ar.firstDayOfWeek=IE;Ar.weekdays=VE;Ar.weekdaysMin=ZE;Ar.weekdaysShort=GE;Ar.weekdaysParse=KE;Ar.weekdaysRegex=eS;Ar.weekdaysShortRegex=nS;Ar.weekdaysMinRegex=rS;Ar.isPM=aS;Ar.meridiem=cS;function o5(r,s,o,h){var c=ul(),y=ou().set(h,s);return c[o](y,r)}function bk(r,s,o){if(al(r)&&(s=r,r=void 0),r=r||"",s!=null)return o5(r,s,o,"month");var h,c=[];for(h=0;h<12;h++)c[h]=o5(r,h,o,"month");return c}function x8(r,s,o,h){typeof r=="boolean"?(al(s)&&(o=s,s=void 0),s=s||""):(s=r,o=s,r=!1,al(s)&&(o=s,s=void 0),s=s||"");var c=ul(),y=r?c._week.dow:0,p,b=[];if(o!=null)return o5(s,(o+y)%7,h,"day");for(p=0;p<7;p++)b[p]=o5(s,(p+y)%7,h,"day");return b}function fM(r,s){return bk(r,s,"months")}function dM(r,s){return bk(r,s,"monthsShort")}function pM(r,s,o){return x8(r,s,o,"weekdays")}function gM(r,s,o){return x8(r,s,o,"weekdaysShort")}function yM(r,s,o){return x8(r,s,o,"weekdaysMin")}jh("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var s=r%10,o=hr(r%100/10)===1?"th":s===1?"st":s===2?"nd":s===3?"rd":"th";return r+o}});rn.lang=Is("moment.lang is deprecated. Use moment.locale instead.",jh);rn.langData=Is("moment.langData is deprecated. Use moment.localeData instead.",ul);var ll=Math.abs;function mM(){var r=this._data;return this._milliseconds=ll(this._milliseconds),this._days=ll(this._days),this._months=ll(this._months),r.milliseconds=ll(r.milliseconds),r.seconds=ll(r.seconds),r.minutes=ll(r.minutes),r.hours=ll(r.hours),r.months=ll(r.months),r.years=ll(r.years),this}function wk(r,s,o,h){var c=_c(s,o);return r._milliseconds+=h*c._milliseconds,r._days+=h*c._days,r._months+=h*c._months,r._bubble()}function vM(r,s){return wk(this,r,s,1)}function _M(r,s){return wk(this,r,s,-1)}function xk(r){return r<0?Math.floor(r):Math.ceil(r)}function bM(){var r=this._milliseconds,s=this._days,o=this._months,h=this._data,c,y,p,b,T;return r>=0&&s>=0&&o>=0||r<=0&&s<=0&&o<=0||(r+=xk(k8(o)+s)*864e5,s=0,o=0),h.milliseconds=r%1e3,c=Ps(r/1e3),h.seconds=c%60,y=Ps(c/60),h.minutes=y%60,p=Ps(y/60),h.hours=p%24,s+=Ps(p/24),T=Ps(kk(s)),o+=T,s-=xk(k8(T)),b=Ps(o/12),o%=12,h.days=s,h.months=o,h.years=b,this}function kk(r){return r*4800/146097}function k8(r){return r*146097/4800}function wM(r){if(!this.isValid())return NaN;var s,o,h=this._milliseconds;if(r=Fs(r),r==="month"||r==="quarter"||r==="year")switch(s=this._days+h/864e5,o=this._months+kk(s),r){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(s=this._days+Math.round(k8(this._months)),r){case"week":return s/7+h/6048e5;case"day":return s+h/864e5;case"hour":return s*24+h/36e5;case"minute":return s*1440+h/6e4;case"second":return s*86400+h/1e3;case"millisecond":return Math.floor(s*864e5)+h;default:throw new Error("Unknown unit "+r)}}function xM(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+hr(this._months/12)*31536e6:NaN}function hl(r){return function(){return this.as(r)}}var kM=hl("ms"),TM=hl("s"),EM=hl("m"),SM=hl("h"),CM=hl("d"),MM=hl("w"),AM=hl("M"),DM=hl("Q"),NM=hl("y");function OM(){return _c(this)}function LM(r){return r=Fs(r),this.isValid()?this[r+"s"]():NaN}function $d(r){return function(){return this.isValid()?this._data[r]:NaN}}var BM=$d("milliseconds"),RM=$d("seconds"),IM=$d("minutes"),FM=$d("hours"),PM=$d("days"),YM=$d("months"),jM=$d("years");function zM(){return Ps(this.days()/7)}var fl=Math.round,Wp={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function UM(r,s,o,h,c){return c.relativeTime(s||1,!!o,r,h)}function HM(r,s,o,h){var c=_c(r).abs(),y=fl(c.as("s")),p=fl(c.as("m")),b=fl(c.as("h")),T=fl(c.as("d")),k=fl(c.as("M")),D=fl(c.as("w")),O=fl(c.as("y")),I=y<=o.ss&&["s",y]||y<o.s&&["ss",y]||p<=1&&["m"]||p<o.m&&["mm",p]||b<=1&&["h"]||b<o.h&&["hh",b]||T<=1&&["d"]||T<o.d&&["dd",T];return o.w!=null&&(I=I||D<=1&&["w"]||D<o.w&&["ww",D]),I=I||k<=1&&["M"]||k<o.M&&["MM",k]||O<=1&&["y"]||["yy",O],I[2]=s,I[3]=+r>0,I[4]=h,UM.apply(null,I)}function $M(r){return r===void 0?fl:typeof r=="function"?(fl=r,!0):!1}function WM(r,s){return Wp[r]===void 0?!1:s===void 0?Wp[r]:(Wp[r]=s,r==="s"&&(Wp.ss=s-1),!0)}function qM(r,s){if(!this.isValid())return this.localeData().invalidDate();var o=!1,h=Wp,c,y;return typeof r=="object"&&(s=r,r=!1),typeof r=="boolean"&&(o=r),typeof s=="object"&&(h=Object.assign({},Wp,s),s.s!=null&&s.ss==null&&(h.ss=s.s-1)),c=this.localeData(),y=HM(this,!o,h,c),o&&(y=c.pastFuture(+this,y)),c.postformat(y)}var T8=Math.abs;function qp(r){return(r>0)-(r<0)||+r}function s5(){if(!this.isValid())return this.localeData().invalidDate();var r=T8(this._milliseconds)/1e3,s=T8(this._days),o=T8(this._months),h,c,y,p,b=this.asSeconds(),T,k,D,O;return b?(h=Ps(r/60),c=Ps(h/60),r%=60,h%=60,y=Ps(o/12),o%=12,p=r?r.toFixed(3).replace(/\.?0+$/,""):"",T=b<0?"-":"",k=qp(this._months)!==qp(b)?"-":"",D=qp(this._days)!==qp(b)?"-":"",O=qp(this._milliseconds)!==qp(b)?"-":"",T+"P"+(y?k+y+"Y":"")+(o?k+o+"M":"")+(s?D+s+"D":"")+(c||h||r?"T":"")+(c?O+c+"H":"")+(h?O+h+"M":"")+(r?O+p+"S":"")):"P0D"}var Sr=t5.prototype;Sr.isValid=PS;Sr.abs=mM;Sr.add=vM;Sr.subtract=_M;Sr.as=wM;Sr.asMilliseconds=kM;Sr.asSeconds=TM;Sr.asMinutes=EM;Sr.asHours=SM;Sr.asDays=CM;Sr.asWeeks=MM;Sr.asMonths=AM;Sr.asQuarters=DM;Sr.asYears=NM;Sr.valueOf=xM;Sr._bubble=bM;Sr.clone=OM;Sr.get=LM;Sr.milliseconds=BM;Sr.seconds=RM;Sr.minutes=IM;Sr.hours=FM;Sr.days=PM;Sr.weeks=zM;Sr.months=YM;Sr.years=jM;Sr.humanize=qM;Sr.toISOString=s5;Sr.toString=s5;Sr.toJSON=s5;Sr.locale=lk;Sr.localeData=fk;Sr.toIsoString=Is("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",s5);Sr.lang=hk;Mn("X",0,0,"unix");Mn("x",0,0,"valueOf");sn("x",V4);sn("X",gE);Gr("X",function(r,s,o){o._d=new Date(parseFloat(r)*1e3)});Gr("x",function(r,s,o){o._d=new Date(hr(r))});//! moment.js
rn.version="2.29.1";GT(hi);rn.fn=Re;rn.min=BS;rn.max=RS;rn.now=IS;rn.utc=ou;rn.unix=lM;rn.months=fM;rn.isDate=Pm;rn.locale=jh;rn.invalid=Y4;rn.duration=_c;rn.isMoment=mc;rn.weekdays=pM;rn.parseZone=hM;rn.localeData=ul;rn.isDuration=e5;rn.monthsShort=dM;rn.weekdaysMin=yM;rn.defineLocale=h8;rn.updateLocale=hS;rn.locales=fS;rn.weekdaysShort=gM;rn.normalizeUnits=Fs;rn.relativeTimeRounding=$M;rn.relativeTimeThreshold=WM;rn.calendarFormat=sC;rn.prototype=Re;rn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */const VM=4,Tk=0,Ek=1,GM=2;function Vp(r){let s=r.length;for(;--s>=0;)r[s]=0}const ZM=0,Sk=1,XM=2,KM=3,QM=258,E8=29,Zm=256,Xm=Zm+1+E8,Gp=30,S8=19,Ck=2*Xm+1,Wd=15,C8=16,JM=7,M8=256,Mk=16,Ak=17,Dk=18,A8=new Uint8Array([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]),c5=new Uint8Array([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]),tA=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Nk=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),eA=512,dl=new Array((Xm+2)*2);Vp(dl);const Km=new Array(Gp*2);Vp(Km);const Qm=new Array(eA);Vp(Qm);const Jm=new Array(QM-KM+1);Vp(Jm);const D8=new Array(E8);Vp(D8);const u5=new Array(Gp);Vp(u5);function N8(r,s,o,h,c){this.static_tree=r,this.extra_bits=s,this.extra_base=o,this.elems=h,this.max_length=c,this.has_stree=r&&r.length}let Ok,Lk,Bk;function O8(r,s){this.dyn_tree=r,this.max_code=0,this.stat_desc=s}const Rk=r=>r<256?Qm[r]:Qm[256+(r>>>7)],tv=(r,s)=>{r.pending_buf[r.pending++]=s&255,r.pending_buf[r.pending++]=s>>>8&255},Do=(r,s,o)=>{r.bi_valid>C8-o?(r.bi_buf|=s<<r.bi_valid&65535,tv(r,r.bi_buf),r.bi_buf=s>>C8-r.bi_valid,r.bi_valid+=o-C8):(r.bi_buf|=s<<r.bi_valid&65535,r.bi_valid+=o)},lu=(r,s,o)=>{Do(r,o[s*2],o[s*2+1])},Ik=(r,s)=>{let o=0;do o|=r&1,r>>>=1,o<<=1;while(--s>0);return o>>>1},nA=r=>{r.bi_valid===16?(tv(r,r.bi_buf),r.bi_buf=0,r.bi_valid=0):r.bi_valid>=8&&(r.pending_buf[r.pending++]=r.bi_buf&255,r.bi_buf>>=8,r.bi_valid-=8)},rA=(r,s)=>{const o=s.dyn_tree,h=s.max_code,c=s.stat_desc.static_tree,y=s.stat_desc.has_stree,p=s.stat_desc.extra_bits,b=s.stat_desc.extra_base,T=s.stat_desc.max_length;let k,D,O,I,z,H,q=0;for(I=0;I<=Wd;I++)r.bl_count[I]=0;for(o[r.heap[r.heap_max]*2+1]=0,k=r.heap_max+1;k<Ck;k++)D=r.heap[k],I=o[o[D*2+1]*2+1]+1,I>T&&(I=T,q++),o[D*2+1]=I,!(D>h)&&(r.bl_count[I]++,z=0,D>=b&&(z=p[D-b]),H=o[D*2],r.opt_len+=H*(I+z),y&&(r.static_len+=H*(c[D*2+1]+z)));if(q!==0){do{for(I=T-1;r.bl_count[I]===0;)I--;r.bl_count[I]--,r.bl_count[I+1]+=2,r.bl_count[T]--,q-=2}while(q>0);for(I=T;I!==0;I--)for(D=r.bl_count[I];D!==0;)O=r.heap[--k],!(O>h)&&(o[O*2+1]!==I&&(r.opt_len+=(I-o[O*2+1])*o[O*2],o[O*2+1]=I),D--)}},Fk=(r,s,o)=>{const h=new Array(Wd+1);let c=0,y,p;for(y=1;y<=Wd;y++)h[y]=c=c+o[y-1]<<1;for(p=0;p<=s;p++){let b=r[p*2+1];b!==0&&(r[p*2]=Ik(h[b]++,b))}},iA=()=>{let r,s,o,h,c;const y=new Array(Wd+1);for(o=0,h=0;h<E8-1;h++)for(D8[h]=o,r=0;r<1<<A8[h];r++)Jm[o++]=h;for(Jm[o-1]=h,c=0,h=0;h<16;h++)for(u5[h]=c,r=0;r<1<<c5[h];r++)Qm[c++]=h;for(c>>=7;h<Gp;h++)for(u5[h]=c<<7,r=0;r<1<<c5[h]-7;r++)Qm[256+c++]=h;for(s=0;s<=Wd;s++)y[s]=0;for(r=0;r<=143;)dl[r*2+1]=8,r++,y[8]++;for(;r<=255;)dl[r*2+1]=9,r++,y[9]++;for(;r<=279;)dl[r*2+1]=7,r++,y[7]++;for(;r<=287;)dl[r*2+1]=8,r++,y[8]++;for(Fk(dl,Xm+1,y),r=0;r<Gp;r++)Km[r*2+1]=5,Km[r*2]=Ik(r,5);Ok=new N8(dl,A8,Zm+1,Xm,Wd),Lk=new N8(Km,c5,0,Gp,Wd),Bk=new N8(new Array(0),tA,0,S8,JM)},Pk=r=>{let s;for(s=0;s<Xm;s++)r.dyn_ltree[s*2]=0;for(s=0;s<Gp;s++)r.dyn_dtree[s*2]=0;for(s=0;s<S8;s++)r.bl_tree[s*2]=0;r.dyn_ltree[M8*2]=1,r.opt_len=r.static_len=0,r.last_lit=r.matches=0},Yk=r=>{r.bi_valid>8?tv(r,r.bi_buf):r.bi_valid>0&&(r.pending_buf[r.pending++]=r.bi_buf),r.bi_buf=0,r.bi_valid=0},aA=(r,s,o,h)=>{Yk(r),h&&(tv(r,o),tv(r,~o)),r.pending_buf.set(r.window.subarray(s,s+o),r.pending),r.pending+=o},jk=(r,s,o,h)=>{const c=s*2,y=o*2;return r[c]<r[y]||r[c]===r[y]&&h[s]<=h[o]},L8=(r,s,o)=>{const h=r.heap[o];let c=o<<1;for(;c<=r.heap_len&&(c<r.heap_len&&jk(s,r.heap[c+1],r.heap[c],r.depth)&&c++,!jk(s,h,r.heap[c],r.depth));)r.heap[o]=r.heap[c],o=c,c<<=1;r.heap[o]=h},zk=(r,s,o)=>{let h,c,y=0,p,b;if(r.last_lit!==0)do h=r.pending_buf[r.d_buf+y*2]<<8|r.pending_buf[r.d_buf+y*2+1],c=r.pending_buf[r.l_buf+y],y++,h===0?lu(r,c,s):(p=Jm[c],lu(r,p+Zm+1,s),b=A8[p],b!==0&&(c-=D8[p],Do(r,c,b)),h--,p=Rk(h),lu(r,p,o),b=c5[p],b!==0&&(h-=u5[p],Do(r,h,b)));while(y<r.last_lit);lu(r,M8,s)},B8=(r,s)=>{const o=s.dyn_tree,h=s.stat_desc.static_tree,c=s.stat_desc.has_stree,y=s.stat_desc.elems;let p,b,T=-1,k;for(r.heap_len=0,r.heap_max=Ck,p=0;p<y;p++)o[p*2]!==0?(r.heap[++r.heap_len]=T=p,r.depth[p]=0):o[p*2+1]=0;for(;r.heap_len<2;)k=r.heap[++r.heap_len]=T<2?++T:0,o[k*2]=1,r.depth[k]=0,r.opt_len--,c&&(r.static_len-=h[k*2+1]);for(s.max_code=T,p=r.heap_len>>1;p>=1;p--)L8(r,o,p);k=y;do p=r.heap[1],r.heap[1]=r.heap[r.heap_len--],L8(r,o,1),b=r.heap[1],r.heap[--r.heap_max]=p,r.heap[--r.heap_max]=b,o[k*2]=o[p*2]+o[b*2],r.depth[k]=(r.depth[p]>=r.depth[b]?r.depth[p]:r.depth[b])+1,o[p*2+1]=o[b*2+1]=k,r.heap[1]=k++,L8(r,o,1);while(r.heap_len>=2);r.heap[--r.heap_max]=r.heap[1],rA(r,s),Fk(o,T,r.bl_count)},Uk=(r,s,o)=>{let h,c=-1,y,p=s[0*2+1],b=0,T=7,k=4;for(p===0&&(T=138,k=3),s[(o+1)*2+1]=65535,h=0;h<=o;h++)y=p,p=s[(h+1)*2+1],!(++b<T&&y===p)&&(b<k?r.bl_tree[y*2]+=b:y!==0?(y!==c&&r.bl_tree[y*2]++,r.bl_tree[Mk*2]++):b<=10?r.bl_tree[Ak*2]++:r.bl_tree[Dk*2]++,b=0,c=y,p===0?(T=138,k=3):y===p?(T=6,k=3):(T=7,k=4))},Hk=(r,s,o)=>{let h,c=-1,y,p=s[0*2+1],b=0,T=7,k=4;for(p===0&&(T=138,k=3),h=0;h<=o;h++)if(y=p,p=s[(h+1)*2+1],!(++b<T&&y===p)){if(b<k)do lu(r,y,r.bl_tree);while(--b!=0);else y!==0?(y!==c&&(lu(r,y,r.bl_tree),b--),lu(r,Mk,r.bl_tree),Do(r,b-3,2)):b<=10?(lu(r,Ak,r.bl_tree),Do(r,b-3,3)):(lu(r,Dk,r.bl_tree),Do(r,b-11,7));b=0,c=y,p===0?(T=138,k=3):y===p?(T=6,k=3):(T=7,k=4)}},oA=r=>{let s;for(Uk(r,r.dyn_ltree,r.l_desc.max_code),Uk(r,r.dyn_dtree,r.d_desc.max_code),B8(r,r.bl_desc),s=S8-1;s>=3&&r.bl_tree[Nk[s]*2+1]===0;s--);return r.opt_len+=3*(s+1)+5+5+4,s},sA=(r,s,o,h)=>{let c;for(Do(r,s-257,5),Do(r,o-1,5),Do(r,h-4,4),c=0;c<h;c++)Do(r,r.bl_tree[Nk[c]*2+1],3);Hk(r,r.dyn_ltree,s-1),Hk(r,r.dyn_dtree,o-1)},cA=r=>{let s=4093624447,o;for(o=0;o<=31;o++,s>>>=1)if(s&1&&r.dyn_ltree[o*2]!==0)return Tk;if(r.dyn_ltree[9*2]!==0||r.dyn_ltree[10*2]!==0||r.dyn_ltree[13*2]!==0)return Ek;for(o=32;o<Zm;o++)if(r.dyn_ltree[o*2]!==0)return Ek;return Tk};let $k=!1;const uA=r=>{$k||(iA(),$k=!0),r.l_desc=new O8(r.dyn_ltree,Ok),r.d_desc=new O8(r.dyn_dtree,Lk),r.bl_desc=new O8(r.bl_tree,Bk),r.bi_buf=0,r.bi_valid=0,Pk(r)},Wk=(r,s,o,h)=>{Do(r,(ZM<<1)+(h?1:0),3),aA(r,s,o,!0)},lA=r=>{Do(r,Sk<<1,3),lu(r,M8,dl),nA(r)},hA=(r,s,o,h)=>{let c,y,p=0;r.level>0?(r.strm.data_type===GM&&(r.strm.data_type=cA(r)),B8(r,r.l_desc),B8(r,r.d_desc),p=oA(r),c=r.opt_len+3+7>>>3,y=r.static_len+3+7>>>3,y<=c&&(c=y)):c=y=o+5,o+4<=c&&s!==-1?Wk(r,s,o,h):r.strategy===VM||y===c?(Do(r,(Sk<<1)+(h?1:0),3),zk(r,dl,Km)):(Do(r,(XM<<1)+(h?1:0),3),sA(r,r.l_desc.max_code+1,r.d_desc.max_code+1,p+1),zk(r,r.dyn_ltree,r.dyn_dtree)),Pk(r),h&&Yk(r)},fA=(r,s,o)=>(r.pending_buf[r.d_buf+r.last_lit*2]=s>>>8&255,r.pending_buf[r.d_buf+r.last_lit*2+1]=s&255,r.pending_buf[r.l_buf+r.last_lit]=o&255,r.last_lit++,s===0?r.dyn_ltree[o*2]++:(r.matches++,s--,r.dyn_ltree[(Jm[o]+Zm+1)*2]++,r.dyn_dtree[Rk(s)*2]++),r.last_lit===r.lit_bufsize-1);var dA=uA,pA=Wk,gA=hA,yA=fA,mA=lA,vA={_tr_init:dA,_tr_stored_block:pA,_tr_flush_block:gA,_tr_tally:yA,_tr_align:mA};const _A=(r,s,o,h)=>{let c=r&65535|0,y=r>>>16&65535|0,p=0;for(;o!==0;){p=o>2e3?2e3:o,o-=p;do c=c+s[h++]|0,y=y+c|0;while(--p);c%=65521,y%=65521}return c|y<<16|0};var ev=_A;const bA=()=>{let r,s=[];for(var o=0;o<256;o++){r=o;for(var h=0;h<8;h++)r=r&1?3988292384^r>>>1:r>>>1;s[o]=r}return s},wA=new Uint32Array(bA()),xA=(r,s,o,h)=>{const c=wA,y=h+o;r^=-1;for(let p=h;p<y;p++)r=r>>>8^c[(r^s[p])&255];return r^-1};var ma=xA,qd={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Vd={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:kA,_tr_stored_block:TA,_tr_flush_block:EA,_tr_tally:Uh,_tr_align:SA}=vA,{Z_NO_FLUSH:Gd,Z_PARTIAL_FLUSH:CA,Z_FULL_FLUSH:MA,Z_FINISH:Hh,Z_BLOCK:qk,Z_OK:hu,Z_STREAM_END:Vk,Z_STREAM_ERROR:Ys,Z_DATA_ERROR:AA,Z_BUF_ERROR:R8,Z_DEFAULT_COMPRESSION:DA,Z_FILTERED:NA,Z_HUFFMAN_ONLY:l5,Z_RLE:OA,Z_FIXED:LA,Z_DEFAULT_STRATEGY:BA,Z_UNKNOWN:RA,Z_DEFLATED:h5}=Vd,IA=9,FA=15,PA=8,YA=29,jA=256,I8=jA+1+YA,zA=30,UA=19,HA=2*I8+1,$A=15,_r=3,$h=258,bc=$h+_r+1,WA=32,f5=42,F8=69,d5=73,p5=91,g5=103,Zd=113,nv=666,fa=1,rv=2,Xd=3,Zp=4,qA=3,Wh=(r,s)=>(r.msg=qd[s],s),Gk=r=>(r<<1)-(r>4?9:0),qh=r=>{let s=r.length;for(;--s>=0;)r[s]=0};let VA=(r,s,o)=>(s<<r.hash_shift^o)&r.hash_mask,Vh=VA;const Gh=r=>{const s=r.state;let o=s.pending;o>r.avail_out&&(o=r.avail_out),o!==0&&(r.output.set(s.pending_buf.subarray(s.pending_out,s.pending_out+o),r.next_out),r.next_out+=o,s.pending_out+=o,r.total_out+=o,r.avail_out-=o,s.pending-=o,s.pending===0&&(s.pending_out=0))},Ia=(r,s)=>{EA(r,r.block_start>=0?r.block_start:-1,r.strstart-r.block_start,s),r.block_start=r.strstart,Gh(r.strm)},Dr=(r,s)=>{r.pending_buf[r.pending++]=s},iv=(r,s)=>{r.pending_buf[r.pending++]=s>>>8&255,r.pending_buf[r.pending++]=s&255},GA=(r,s,o,h)=>{let c=r.avail_in;return c>h&&(c=h),c===0?0:(r.avail_in-=c,s.set(r.input.subarray(r.next_in,r.next_in+c),o),r.state.wrap===1?r.adler=ev(r.adler,s,c,o):r.state.wrap===2&&(r.adler=ma(r.adler,s,c,o)),r.next_in+=c,r.total_in+=c,c)},Zk=(r,s)=>{let o=r.max_chain_length,h=r.strstart,c,y,p=r.prev_length,b=r.nice_match;const T=r.strstart>r.w_size-bc?r.strstart-(r.w_size-bc):0,k=r.window,D=r.w_mask,O=r.prev,I=r.strstart+$h;let z=k[h+p-1],H=k[h+p];r.prev_length>=r.good_match&&(o>>=2),b>r.lookahead&&(b=r.lookahead);do if(c=s,!(k[c+p]!==H||k[c+p-1]!==z||k[c]!==k[h]||k[++c]!==k[h+1])){h+=2,c++;do;while(k[++h]===k[++c]&&k[++h]===k[++c]&&k[++h]===k[++c]&&k[++h]===k[++c]&&k[++h]===k[++c]&&k[++h]===k[++c]&&k[++h]===k[++c]&&k[++h]===k[++c]&&h<I);if(y=$h-(I-h),h=I-$h,y>p){if(r.match_start=s,p=y,y>=b)break;z=k[h+p-1],H=k[h+p]}}while((s=O[s&D])>T&&--o!=0);return p<=r.lookahead?p:r.lookahead},Kd=r=>{const s=r.w_size;let o,h,c,y,p;do{if(y=r.window_size-r.lookahead-r.strstart,r.strstart>=s+(s-bc)){r.window.set(r.window.subarray(s,s+s),0),r.match_start-=s,r.strstart-=s,r.block_start-=s,h=r.hash_size,o=h;do c=r.head[--o],r.head[o]=c>=s?c-s:0;while(--h);h=s,o=h;do c=r.prev[--o],r.prev[o]=c>=s?c-s:0;while(--h);y+=s}if(r.strm.avail_in===0)break;if(h=GA(r.strm,r.window,r.strstart+r.lookahead,y),r.lookahead+=h,r.lookahead+r.insert>=_r)for(p=r.strstart-r.insert,r.ins_h=r.window[p],r.ins_h=Vh(r,r.ins_h,r.window[p+1]);r.insert&&(r.ins_h=Vh(r,r.ins_h,r.window[p+_r-1]),r.prev[p&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=p,p++,r.insert--,!(r.lookahead+r.insert<_r)););}while(r.lookahead<bc&&r.strm.avail_in!==0)},ZA=(r,s)=>{let o=65535;for(o>r.pending_buf_size-5&&(o=r.pending_buf_size-5);;){if(r.lookahead<=1){if(Kd(r),r.lookahead===0&&s===Gd)return fa;if(r.lookahead===0)break}r.strstart+=r.lookahead,r.lookahead=0;const h=r.block_start+o;if((r.strstart===0||r.strstart>=h)&&(r.lookahead=r.strstart-h,r.strstart=h,Ia(r,!1),r.strm.avail_out===0)||r.strstart-r.block_start>=r.w_size-bc&&(Ia(r,!1),r.strm.avail_out===0))return fa}return r.insert=0,s===Hh?(Ia(r,!0),r.strm.avail_out===0?Xd:Zp):(r.strstart>r.block_start&&(Ia(r,!1),r.strm.avail_out===0),fa)},P8=(r,s)=>{let o,h;for(;;){if(r.lookahead<bc){if(Kd(r),r.lookahead<bc&&s===Gd)return fa;if(r.lookahead===0)break}if(o=0,r.lookahead>=_r&&(r.ins_h=Vh(r,r.ins_h,r.window[r.strstart+_r-1]),o=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),o!==0&&r.strstart-o<=r.w_size-bc&&(r.match_length=Zk(r,o)),r.match_length>=_r)if(h=Uh(r,r.strstart-r.match_start,r.match_length-_r),r.lookahead-=r.match_length,r.match_length<=r.max_lazy_match&&r.lookahead>=_r){r.match_length--;do r.strstart++,r.ins_h=Vh(r,r.ins_h,r.window[r.strstart+_r-1]),o=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart;while(--r.match_length!=0);r.strstart++}else r.strstart+=r.match_length,r.match_length=0,r.ins_h=r.window[r.strstart],r.ins_h=Vh(r,r.ins_h,r.window[r.strstart+1]);else h=Uh(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++;if(h&&(Ia(r,!1),r.strm.avail_out===0))return fa}return r.insert=r.strstart<_r-1?r.strstart:_r-1,s===Hh?(Ia(r,!0),r.strm.avail_out===0?Xd:Zp):r.last_lit&&(Ia(r,!1),r.strm.avail_out===0)?fa:rv},Xp=(r,s)=>{let o,h,c;for(;;){if(r.lookahead<bc){if(Kd(r),r.lookahead<bc&&s===Gd)return fa;if(r.lookahead===0)break}if(o=0,r.lookahead>=_r&&(r.ins_h=Vh(r,r.ins_h,r.window[r.strstart+_r-1]),o=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),r.prev_length=r.match_length,r.prev_match=r.match_start,r.match_length=_r-1,o!==0&&r.prev_length<r.max_lazy_match&&r.strstart-o<=r.w_size-bc&&(r.match_length=Zk(r,o),r.match_length<=5&&(r.strategy===NA||r.match_length===_r&&r.strstart-r.match_start>4096)&&(r.match_length=_r-1)),r.prev_length>=_r&&r.match_length<=r.prev_length){c=r.strstart+r.lookahead-_r,h=Uh(r,r.strstart-1-r.prev_match,r.prev_length-_r),r.lookahead-=r.prev_length-1,r.prev_length-=2;do++r.strstart<=c&&(r.ins_h=Vh(r,r.ins_h,r.window[r.strstart+_r-1]),o=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart);while(--r.prev_length!=0);if(r.match_available=0,r.match_length=_r-1,r.strstart++,h&&(Ia(r,!1),r.strm.avail_out===0))return fa}else if(r.match_available){if(h=Uh(r,0,r.window[r.strstart-1]),h&&Ia(r,!1),r.strstart++,r.lookahead--,r.strm.avail_out===0)return fa}else r.match_available=1,r.strstart++,r.lookahead--}return r.match_available&&(h=Uh(r,0,r.window[r.strstart-1]),r.match_available=0),r.insert=r.strstart<_r-1?r.strstart:_r-1,s===Hh?(Ia(r,!0),r.strm.avail_out===0?Xd:Zp):r.last_lit&&(Ia(r,!1),r.strm.avail_out===0)?fa:rv},XA=(r,s)=>{let o,h,c,y;const p=r.window;for(;;){if(r.lookahead<=$h){if(Kd(r),r.lookahead<=$h&&s===Gd)return fa;if(r.lookahead===0)break}if(r.match_length=0,r.lookahead>=_r&&r.strstart>0&&(c=r.strstart-1,h=p[c],h===p[++c]&&h===p[++c]&&h===p[++c])){y=r.strstart+$h;do;while(h===p[++c]&&h===p[++c]&&h===p[++c]&&h===p[++c]&&h===p[++c]&&h===p[++c]&&h===p[++c]&&h===p[++c]&&c<y);r.match_length=$h-(y-c),r.match_length>r.lookahead&&(r.match_length=r.lookahead)}if(r.match_length>=_r?(o=Uh(r,1,r.match_length-_r),r.lookahead-=r.match_length,r.strstart+=r.match_length,r.match_length=0):(o=Uh(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++),o&&(Ia(r,!1),r.strm.avail_out===0))return fa}return r.insert=0,s===Hh?(Ia(r,!0),r.strm.avail_out===0?Xd:Zp):r.last_lit&&(Ia(r,!1),r.strm.avail_out===0)?fa:rv},KA=(r,s)=>{let o;for(;;){if(r.lookahead===0&&(Kd(r),r.lookahead===0)){if(s===Gd)return fa;break}if(r.match_length=0,o=Uh(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++,o&&(Ia(r,!1),r.strm.avail_out===0))return fa}return r.insert=0,s===Hh?(Ia(r,!0),r.strm.avail_out===0?Xd:Zp):r.last_lit&&(Ia(r,!1),r.strm.avail_out===0)?fa:rv};function fu(r,s,o,h,c){this.good_length=r,this.max_lazy=s,this.nice_length=o,this.max_chain=h,this.func=c}const av=[new fu(0,0,0,0,ZA),new fu(4,4,8,4,P8),new fu(4,5,16,8,P8),new fu(4,6,32,32,P8),new fu(4,4,16,16,Xp),new fu(8,16,32,32,Xp),new fu(8,16,128,128,Xp),new fu(8,32,128,256,Xp),new fu(32,128,258,1024,Xp),new fu(32,258,258,4096,Xp)],QA=r=>{r.window_size=2*r.w_size,qh(r.head),r.max_lazy_match=av[r.level].max_lazy,r.good_match=av[r.level].good_length,r.nice_match=av[r.level].nice_length,r.max_chain_length=av[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=_r-1,r.match_available=0,r.ins_h=0};function JA(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=h5,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HA*2),this.dyn_dtree=new Uint16Array((2*zA+1)*2),this.bl_tree=new Uint16Array((2*UA+1)*2),qh(this.dyn_ltree),qh(this.dyn_dtree),qh(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array($A+1),this.heap=new Uint16Array(2*I8+1),qh(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*I8+1),qh(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Xk=r=>{if(!r||!r.state)return Wh(r,Ys);r.total_in=r.total_out=0,r.data_type=RA;const s=r.state;return s.pending=0,s.pending_out=0,s.wrap<0&&(s.wrap=-s.wrap),s.status=s.wrap?f5:Zd,r.adler=s.wrap===2?0:1,s.last_flush=Gd,kA(s),hu},Kk=r=>{const s=Xk(r);return s===hu&&QA(r.state),s},tD=(r,s)=>!r||!r.state||r.state.wrap!==2?Ys:(r.state.gzhead=s,hu),Qk=(r,s,o,h,c,y)=>{if(!r)return Ys;let p=1;if(s===DA&&(s=6),h<0?(p=0,h=-h):h>15&&(p=2,h-=16),c<1||c>IA||o!==h5||h<8||h>15||s<0||s>9||y<0||y>LA)return Wh(r,Ys);h===8&&(h=9);const b=new JA;return r.state=b,b.strm=r,b.wrap=p,b.gzhead=null,b.w_bits=h,b.w_size=1<<b.w_bits,b.w_mask=b.w_size-1,b.hash_bits=c+7,b.hash_size=1<<b.hash_bits,b.hash_mask=b.hash_size-1,b.hash_shift=~~((b.hash_bits+_r-1)/_r),b.window=new Uint8Array(b.w_size*2),b.head=new Uint16Array(b.hash_size),b.prev=new Uint16Array(b.w_size),b.lit_bufsize=1<<c+6,b.pending_buf_size=b.lit_bufsize*4,b.pending_buf=new Uint8Array(b.pending_buf_size),b.d_buf=1*b.lit_bufsize,b.l_buf=(1+2)*b.lit_bufsize,b.level=s,b.strategy=y,b.method=o,Kk(r)},eD=(r,s)=>Qk(r,s,h5,FA,PA,BA),nD=(r,s)=>{let o,h;if(!r||!r.state||s>qk||s<0)return r?Wh(r,Ys):Ys;const c=r.state;if(!r.output||!r.input&&r.avail_in!==0||c.status===nv&&s!==Hh)return Wh(r,r.avail_out===0?R8:Ys);c.strm=r;const y=c.last_flush;if(c.last_flush=s,c.status===f5)if(c.wrap===2)r.adler=0,Dr(c,31),Dr(c,139),Dr(c,8),c.gzhead?(Dr(c,(c.gzhead.text?1:0)+(c.gzhead.hcrc?2:0)+(c.gzhead.extra?4:0)+(c.gzhead.name?8:0)+(c.gzhead.comment?16:0)),Dr(c,c.gzhead.time&255),Dr(c,c.gzhead.time>>8&255),Dr(c,c.gzhead.time>>16&255),Dr(c,c.gzhead.time>>24&255),Dr(c,c.level===9?2:c.strategy>=l5||c.level<2?4:0),Dr(c,c.gzhead.os&255),c.gzhead.extra&&c.gzhead.extra.length&&(Dr(c,c.gzhead.extra.length&255),Dr(c,c.gzhead.extra.length>>8&255)),c.gzhead.hcrc&&(r.adler=ma(r.adler,c.pending_buf,c.pending,0)),c.gzindex=0,c.status=F8):(Dr(c,0),Dr(c,0),Dr(c,0),Dr(c,0),Dr(c,0),Dr(c,c.level===9?2:c.strategy>=l5||c.level<2?4:0),Dr(c,qA),c.status=Zd);else{let p=h5+(c.w_bits-8<<4)<<8,b=-1;c.strategy>=l5||c.level<2?b=0:c.level<6?b=1:c.level===6?b=2:b=3,p|=b<<6,c.strstart!==0&&(p|=WA),p+=31-p%31,c.status=Zd,iv(c,p),c.strstart!==0&&(iv(c,r.adler>>>16),iv(c,r.adler&65535)),r.adler=1}if(c.status===F8)if(c.gzhead.extra){for(o=c.pending;c.gzindex<(c.gzhead.extra.length&65535)&&!(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>o&&(r.adler=ma(r.adler,c.pending_buf,c.pending-o,o)),Gh(r),o=c.pending,c.pending===c.pending_buf_size));)Dr(c,c.gzhead.extra[c.gzindex]&255),c.gzindex++;c.gzhead.hcrc&&c.pending>o&&(r.adler=ma(r.adler,c.pending_buf,c.pending-o,o)),c.gzindex===c.gzhead.extra.length&&(c.gzindex=0,c.status=d5)}else c.status=d5;if(c.status===d5)if(c.gzhead.name){o=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>o&&(r.adler=ma(r.adler,c.pending_buf,c.pending-o,o)),Gh(r),o=c.pending,c.pending===c.pending_buf_size)){h=1;break}c.gzindex<c.gzhead.name.length?h=c.gzhead.name.charCodeAt(c.gzindex++)&255:h=0,Dr(c,h)}while(h!==0);c.gzhead.hcrc&&c.pending>o&&(r.adler=ma(r.adler,c.pending_buf,c.pending-o,o)),h===0&&(c.gzindex=0,c.status=p5)}else c.status=p5;if(c.status===p5)if(c.gzhead.comment){o=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>o&&(r.adler=ma(r.adler,c.pending_buf,c.pending-o,o)),Gh(r),o=c.pending,c.pending===c.pending_buf_size)){h=1;break}c.gzindex<c.gzhead.comment.length?h=c.gzhead.comment.charCodeAt(c.gzindex++)&255:h=0,Dr(c,h)}while(h!==0);c.gzhead.hcrc&&c.pending>o&&(r.adler=ma(r.adler,c.pending_buf,c.pending-o,o)),h===0&&(c.status=g5)}else c.status=g5;if(c.status===g5&&(c.gzhead.hcrc?(c.pending+2>c.pending_buf_size&&Gh(r),c.pending+2<=c.pending_buf_size&&(Dr(c,r.adler&255),Dr(c,r.adler>>8&255),r.adler=0,c.status=Zd)):c.status=Zd),c.pending!==0){if(Gh(r),r.avail_out===0)return c.last_flush=-1,hu}else if(r.avail_in===0&&Gk(s)<=Gk(y)&&s!==Hh)return Wh(r,R8);if(c.status===nv&&r.avail_in!==0)return Wh(r,R8);if(r.avail_in!==0||c.lookahead!==0||s!==Gd&&c.status!==nv){let p=c.strategy===l5?KA(c,s):c.strategy===OA?XA(c,s):av[c.level].func(c,s);if((p===Xd||p===Zp)&&(c.status=nv),p===fa||p===Xd)return r.avail_out===0&&(c.last_flush=-1),hu;if(p===rv&&(s===CA?SA(c):s!==qk&&(TA(c,0,0,!1),s===MA&&(qh(c.head),c.lookahead===0&&(c.strstart=0,c.block_start=0,c.insert=0))),Gh(r),r.avail_out===0))return c.last_flush=-1,hu}return s!==Hh?hu:c.wrap<=0?Vk:(c.wrap===2?(Dr(c,r.adler&255),Dr(c,r.adler>>8&255),Dr(c,r.adler>>16&255),Dr(c,r.adler>>24&255),Dr(c,r.total_in&255),Dr(c,r.total_in>>8&255),Dr(c,r.total_in>>16&255),Dr(c,r.total_in>>24&255)):(iv(c,r.adler>>>16),iv(c,r.adler&65535)),Gh(r),c.wrap>0&&(c.wrap=-c.wrap),c.pending!==0?hu:Vk)},rD=r=>{if(!r||!r.state)return Ys;const s=r.state.status;return s!==f5&&s!==F8&&s!==d5&&s!==p5&&s!==g5&&s!==Zd&&s!==nv?Wh(r,Ys):(r.state=null,s===Zd?Wh(r,AA):hu)},iD=(r,s)=>{let o=s.length;if(!r||!r.state)return Ys;const h=r.state,c=h.wrap;if(c===2||c===1&&h.status!==f5||h.lookahead)return Ys;if(c===1&&(r.adler=ev(r.adler,s,o,0)),h.wrap=0,o>=h.w_size){c===0&&(qh(h.head),h.strstart=0,h.block_start=0,h.insert=0);let T=new Uint8Array(h.w_size);T.set(s.subarray(o-h.w_size,o),0),s=T,o=h.w_size}const y=r.avail_in,p=r.next_in,b=r.input;for(r.avail_in=o,r.next_in=0,r.input=s,Kd(h);h.lookahead>=_r;){let T=h.strstart,k=h.lookahead-(_r-1);do h.ins_h=Vh(h,h.ins_h,h.window[T+_r-1]),h.prev[T&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=T,T++;while(--k);h.strstart=T,h.lookahead=_r-1,Kd(h)}return h.strstart+=h.lookahead,h.block_start=h.strstart,h.insert=h.lookahead,h.lookahead=0,h.match_length=h.prev_length=_r-1,h.match_available=0,r.next_in=p,r.input=b,r.avail_in=y,h.wrap=c,hu};var aD=eD,oD=Qk,sD=Kk,cD=Xk,uD=tD,lD=nD,hD=rD,fD=iD,dD="pako deflate (from Nodeca project)",ov={deflateInit:aD,deflateInit2:oD,deflateReset:sD,deflateResetKeep:cD,deflateSetHeader:uD,deflate:lD,deflateEnd:hD,deflateSetDictionary:fD,deflateInfo:dD};const pD=(r,s)=>Object.prototype.hasOwnProperty.call(r,s);var gD=function(r){const s=Array.prototype.slice.call(arguments,1);for(;s.length;){const o=s.shift();if(!!o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(const h in o)pD(o,h)&&(r[h]=o[h])}}return r},yD=r=>{let s=0;for(let h=0,c=r.length;h<c;h++)s+=r[h].length;const o=new Uint8Array(s);for(let h=0,c=0,y=r.length;h<y;h++){let p=r[h];o.set(p,c),c+=p.length}return o},y5={assign:gD,flattenChunks:yD};let Jk=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Jk=!1}const sv=new Uint8Array(256);for(let r=0;r<256;r++)sv[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;sv[254]=sv[254]=1;var mD=r=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(r);let s,o,h,c,y,p=r.length,b=0;for(c=0;c<p;c++)o=r.charCodeAt(c),(o&64512)==55296&&c+1<p&&(h=r.charCodeAt(c+1),(h&64512)==56320&&(o=65536+(o-55296<<10)+(h-56320),c++)),b+=o<128?1:o<2048?2:o<65536?3:4;for(s=new Uint8Array(b),y=0,c=0;y<b;c++)o=r.charCodeAt(c),(o&64512)==55296&&c+1<p&&(h=r.charCodeAt(c+1),(h&64512)==56320&&(o=65536+(o-55296<<10)+(h-56320),c++)),o<128?s[y++]=o:o<2048?(s[y++]=192|o>>>6,s[y++]=128|o&63):o<65536?(s[y++]=224|o>>>12,s[y++]=128|o>>>6&63,s[y++]=128|o&63):(s[y++]=240|o>>>18,s[y++]=128|o>>>12&63,s[y++]=128|o>>>6&63,s[y++]=128|o&63);return s};const vD=(r,s)=>{if(s<65534&&r.subarray&&Jk)return String.fromCharCode.apply(null,r.length===s?r:r.subarray(0,s));let o="";for(let h=0;h<s;h++)o+=String.fromCharCode(r[h]);return o};var _D=(r,s)=>{const o=s||r.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(r.subarray(0,s));let h,c;const y=new Array(o*2);for(c=0,h=0;h<o;){let p=r[h++];if(p<128){y[c++]=p;continue}let b=sv[p];if(b>4){y[c++]=65533,h+=b-1;continue}for(p&=b===2?31:b===3?15:7;b>1&&h<o;)p=p<<6|r[h++]&63,b--;if(b>1){y[c++]=65533;continue}p<65536?y[c++]=p:(p-=65536,y[c++]=55296|p>>10&1023,y[c++]=56320|p&1023)}return vD(y,c)},bD=(r,s)=>{s=s||r.length,s>r.length&&(s=r.length);let o=s-1;for(;o>=0&&(r[o]&192)==128;)o--;return o<0||o===0?s:o+sv[r[o]]>s?o:s},cv={string2buf:mD,buf2string:_D,utf8border:bD};function wD(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var t9=wD;const e9=Object.prototype.toString,{Z_NO_FLUSH:xD,Z_SYNC_FLUSH:kD,Z_FULL_FLUSH:TD,Z_FINISH:ED,Z_OK:m5,Z_STREAM_END:SD,Z_DEFAULT_COMPRESSION:CD,Z_DEFAULT_STRATEGY:MD,Z_DEFLATED:AD}=Vd;function uv(r){this.options=y5.assign({level:CD,method:AD,chunkSize:16384,windowBits:15,memLevel:8,strategy:MD},r||{});let s=this.options;s.raw&&s.windowBits>0?s.windowBits=-s.windowBits:s.gzip&&s.windowBits>0&&s.windowBits<16&&(s.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new t9,this.strm.avail_out=0;let o=ov.deflateInit2(this.strm,s.level,s.method,s.windowBits,s.memLevel,s.strategy);if(o!==m5)throw new Error(qd[o]);if(s.header&&ov.deflateSetHeader(this.strm,s.header),s.dictionary){let h;if(typeof s.dictionary=="string"?h=cv.string2buf(s.dictionary):e9.call(s.dictionary)==="[object ArrayBuffer]"?h=new Uint8Array(s.dictionary):h=s.dictionary,o=ov.deflateSetDictionary(this.strm,h),o!==m5)throw new Error(qd[o]);this._dict_set=!0}}uv.prototype.push=function(r,s){const o=this.strm,h=this.options.chunkSize;let c,y;if(this.ended)return!1;for(s===~~s?y=s:y=s===!0?ED:xD,typeof r=="string"?o.input=cv.string2buf(r):e9.call(r)==="[object ArrayBuffer]"?o.input=new Uint8Array(r):o.input=r,o.next_in=0,o.avail_in=o.input.length;;){if(o.avail_out===0&&(o.output=new Uint8Array(h),o.next_out=0,o.avail_out=h),(y===kD||y===TD)&&o.avail_out<=6){this.onData(o.output.subarray(0,o.next_out)),o.avail_out=0;continue}if(c=ov.deflate(o,y),c===SD)return o.next_out>0&&this.onData(o.output.subarray(0,o.next_out)),c=ov.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===m5;if(o.avail_out===0){this.onData(o.output);continue}if(y>0&&o.next_out>0){this.onData(o.output.subarray(0,o.next_out)),o.avail_out=0;continue}if(o.avail_in===0)break}return!0};uv.prototype.onData=function(r){this.chunks.push(r)};uv.prototype.onEnd=function(r){r===m5&&(this.result=y5.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function Y8(r,s){const o=new uv(s);if(o.push(r,!0),o.err)throw o.msg||qd[o.err];return o.result}function DD(r,s){return s=s||{},s.raw=!0,Y8(r,s)}function ND(r,s){return s=s||{},s.gzip=!0,Y8(r,s)}var OD=uv,LD=Y8,BD=DD,RD=ND,ID=Vd,FD={Deflate:OD,deflate:LD,deflateRaw:BD,gzip:RD,constants:ID};const v5=30,PD=12;var YD=function(s,o){let h,c,y,p,b,T,k,D,O,I,z,H,q,V,X,it,tt,rt,ut,Ct,et,K,ht,xt;const St=s.state;h=s.next_in,ht=s.input,c=h+(s.avail_in-5),y=s.next_out,xt=s.output,p=y-(o-s.avail_out),b=y+(s.avail_out-257),T=St.dmax,k=St.wsize,D=St.whave,O=St.wnext,I=St.window,z=St.hold,H=St.bits,q=St.lencode,V=St.distcode,X=(1<<St.lenbits)-1,it=(1<<St.distbits)-1;t:do{H<15&&(z+=ht[h++]<<H,H+=8,z+=ht[h++]<<H,H+=8),tt=q[z&X];e:for(;;){if(rt=tt>>>24,z>>>=rt,H-=rt,rt=tt>>>16&255,rt===0)xt[y++]=tt&65535;else if(rt&16){ut=tt&65535,rt&=15,rt&&(H<rt&&(z+=ht[h++]<<H,H+=8),ut+=z&(1<<rt)-1,z>>>=rt,H-=rt),H<15&&(z+=ht[h++]<<H,H+=8,z+=ht[h++]<<H,H+=8),tt=V[z&it];n:for(;;){if(rt=tt>>>24,z>>>=rt,H-=rt,rt=tt>>>16&255,rt&16){if(Ct=tt&65535,rt&=15,H<rt&&(z+=ht[h++]<<H,H+=8,H<rt&&(z+=ht[h++]<<H,H+=8)),Ct+=z&(1<<rt)-1,Ct>T){s.msg="invalid distance too far back",St.mode=v5;break t}if(z>>>=rt,H-=rt,rt=y-p,Ct>rt){if(rt=Ct-rt,rt>D&&St.sane){s.msg="invalid distance too far back",St.mode=v5;break t}if(et=0,K=I,O===0){if(et+=k-rt,rt<ut){ut-=rt;do xt[y++]=I[et++];while(--rt);et=y-Ct,K=xt}}else if(O<rt){if(et+=k+O-rt,rt-=O,rt<ut){ut-=rt;do xt[y++]=I[et++];while(--rt);if(et=0,O<ut){rt=O,ut-=rt;do xt[y++]=I[et++];while(--rt);et=y-Ct,K=xt}}}else if(et+=O-rt,rt<ut){ut-=rt;do xt[y++]=I[et++];while(--rt);et=y-Ct,K=xt}for(;ut>2;)xt[y++]=K[et++],xt[y++]=K[et++],xt[y++]=K[et++],ut-=3;ut&&(xt[y++]=K[et++],ut>1&&(xt[y++]=K[et++]))}else{et=y-Ct;do xt[y++]=xt[et++],xt[y++]=xt[et++],xt[y++]=xt[et++],ut-=3;while(ut>2);ut&&(xt[y++]=xt[et++],ut>1&&(xt[y++]=xt[et++]))}}else if((rt&64)==0){tt=V[(tt&65535)+(z&(1<<rt)-1)];continue n}else{s.msg="invalid distance code",St.mode=v5;break t}break}}else if((rt&64)==0){tt=q[(tt&65535)+(z&(1<<rt)-1)];continue e}else if(rt&32){St.mode=PD;break t}else{s.msg="invalid literal/length code",St.mode=v5;break t}break}}while(h<c&&y<b);ut=H>>3,h-=ut,H-=ut<<3,z&=(1<<H)-1,s.next_in=h,s.next_out=y,s.avail_in=h<c?5+(c-h):5-(h-c),s.avail_out=y<b?257+(b-y):257-(y-b),St.hold=z,St.bits=H};const Kp=15,n9=852,r9=592,i9=0,j8=1,a9=2,jD=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),zD=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),UD=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),HD=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),$D=(r,s,o,h,c,y,p,b)=>{const T=b.bits;let k=0,D=0,O=0,I=0,z=0,H=0,q=0,V=0,X=0,it=0,tt,rt,ut,Ct,et,K=null,ht=0,xt;const St=new Uint16Array(Kp+1),pt=new Uint16Array(Kp+1);let wt=null,Ht=0,Pt,ge,pe;for(k=0;k<=Kp;k++)St[k]=0;for(D=0;D<h;D++)St[s[o+D]]++;for(z=T,I=Kp;I>=1&&St[I]===0;I--);if(z>I&&(z=I),I===0)return c[y++]=1<<24|64<<16|0,c[y++]=1<<24|64<<16|0,b.bits=1,0;for(O=1;O<I&&St[O]===0;O++);for(z<O&&(z=O),V=1,k=1;k<=Kp;k++)if(V<<=1,V-=St[k],V<0)return-1;if(V>0&&(r===i9||I!==1))return-1;for(pt[1]=0,k=1;k<Kp;k++)pt[k+1]=pt[k]+St[k];for(D=0;D<h;D++)s[o+D]!==0&&(p[pt[s[o+D]]++]=D);if(r===i9?(K=wt=p,xt=19):r===j8?(K=jD,ht-=257,wt=zD,Ht-=257,xt=256):(K=UD,wt=HD,xt=-1),it=0,D=0,k=O,et=y,H=z,q=0,ut=-1,X=1<<z,Ct=X-1,r===j8&&X>n9||r===a9&&X>r9)return 1;for(;;){Pt=k-q,p[D]<xt?(ge=0,pe=p[D]):p[D]>xt?(ge=wt[Ht+p[D]],pe=K[ht+p[D]]):(ge=32+64,pe=0),tt=1<<k-q,rt=1<<H,O=rt;do rt-=tt,c[et+(it>>q)+rt]=Pt<<24|ge<<16|pe|0;while(rt!==0);for(tt=1<<k-1;it&tt;)tt>>=1;if(tt!==0?(it&=tt-1,it+=tt):it=0,D++,--St[k]==0){if(k===I)break;k=s[o+p[D]]}if(k>z&&(it&Ct)!==ut){for(q===0&&(q=z),et+=O,H=k-q,V=1<<H;H+q<I&&(V-=St[H+q],!(V<=0));)H++,V<<=1;if(X+=1<<H,r===j8&&X>n9||r===a9&&X>r9)return 1;ut=it&Ct,c[ut]=z<<24|H<<16|et-y|0}}return it!==0&&(c[et+it]=k-q<<24|64<<16|0),b.bits=z,0};var lv=$D;const WD=0,o9=1,s9=2,{Z_FINISH:c9,Z_BLOCK:qD,Z_TREES:_5,Z_OK:Qd,Z_STREAM_END:VD,Z_NEED_DICT:GD,Z_STREAM_ERROR:js,Z_DATA_ERROR:u9,Z_MEM_ERROR:l9,Z_BUF_ERROR:ZD,Z_DEFLATED:h9}=Vd,f9=1,d9=2,p9=3,g9=4,y9=5,m9=6,v9=7,_9=8,b9=9,w9=10,b5=11,pl=12,z8=13,x9=14,U8=15,k9=16,T9=17,E9=18,S9=19,w5=20,x5=21,C9=22,M9=23,A9=24,D9=25,N9=26,H8=27,O9=28,L9=29,wi=30,B9=31,XD=32,KD=852,QD=592,JD=15,tN=JD,R9=r=>(r>>>24&255)+(r>>>8&65280)+((r&65280)<<8)+((r&255)<<24);function eN(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const I9=r=>{if(!r||!r.state)return js;const s=r.state;return r.total_in=r.total_out=s.total=0,r.msg="",s.wrap&&(r.adler=s.wrap&1),s.mode=f9,s.last=0,s.havedict=0,s.dmax=32768,s.head=null,s.hold=0,s.bits=0,s.lencode=s.lendyn=new Int32Array(KD),s.distcode=s.distdyn=new Int32Array(QD),s.sane=1,s.back=-1,Qd},F9=r=>{if(!r||!r.state)return js;const s=r.state;return s.wsize=0,s.whave=0,s.wnext=0,I9(r)},P9=(r,s)=>{let o;if(!r||!r.state)return js;const h=r.state;return s<0?(o=0,s=-s):(o=(s>>4)+1,s<48&&(s&=15)),s&&(s<8||s>15)?js:(h.window!==null&&h.wbits!==s&&(h.window=null),h.wrap=o,h.wbits=s,F9(r))},Y9=(r,s)=>{if(!r)return js;const o=new eN;r.state=o,o.window=null;const h=P9(r,s);return h!==Qd&&(r.state=null),h},nN=r=>Y9(r,tN);let j9=!0,$8,W8;const rN=r=>{if(j9){$8=new Int32Array(512),W8=new Int32Array(32);let s=0;for(;s<144;)r.lens[s++]=8;for(;s<256;)r.lens[s++]=9;for(;s<280;)r.lens[s++]=7;for(;s<288;)r.lens[s++]=8;for(lv(o9,r.lens,0,288,$8,0,r.work,{bits:9}),s=0;s<32;)r.lens[s++]=5;lv(s9,r.lens,0,32,W8,0,r.work,{bits:5}),j9=!1}r.lencode=$8,r.lenbits=9,r.distcode=W8,r.distbits=5},z9=(r,s,o,h)=>{let c;const y=r.state;return y.window===null&&(y.wsize=1<<y.wbits,y.wnext=0,y.whave=0,y.window=new Uint8Array(y.wsize)),h>=y.wsize?(y.window.set(s.subarray(o-y.wsize,o),0),y.wnext=0,y.whave=y.wsize):(c=y.wsize-y.wnext,c>h&&(c=h),y.window.set(s.subarray(o-h,o-h+c),y.wnext),h-=c,h?(y.window.set(s.subarray(o-h,o),0),y.wnext=h,y.whave=y.wsize):(y.wnext+=c,y.wnext===y.wsize&&(y.wnext=0),y.whave<y.wsize&&(y.whave+=c))),0},iN=(r,s)=>{let o,h,c,y,p,b,T,k,D,O,I,z,H,q,V=0,X,it,tt,rt,ut,Ct,et,K;const ht=new Uint8Array(4);let xt,St;const pt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!r||!r.state||!r.output||!r.input&&r.avail_in!==0)return js;o=r.state,o.mode===pl&&(o.mode=z8),p=r.next_out,c=r.output,T=r.avail_out,y=r.next_in,h=r.input,b=r.avail_in,k=o.hold,D=o.bits,O=b,I=T,K=Qd;t:for(;;)switch(o.mode){case f9:if(o.wrap===0){o.mode=z8;break}for(;D<16;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}if(o.wrap&2&&k===35615){o.check=0,ht[0]=k&255,ht[1]=k>>>8&255,o.check=ma(o.check,ht,2,0),k=0,D=0,o.mode=d9;break}if(o.flags=0,o.head&&(o.head.done=!1),!(o.wrap&1)||(((k&255)<<8)+(k>>8))%31){r.msg="incorrect header check",o.mode=wi;break}if((k&15)!==h9){r.msg="unknown compression method",o.mode=wi;break}if(k>>>=4,D-=4,et=(k&15)+8,o.wbits===0)o.wbits=et;else if(et>o.wbits){r.msg="invalid window size",o.mode=wi;break}o.dmax=1<<o.wbits,r.adler=o.check=1,o.mode=k&512?w9:pl,k=0,D=0;break;case d9:for(;D<16;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}if(o.flags=k,(o.flags&255)!==h9){r.msg="unknown compression method",o.mode=wi;break}if(o.flags&57344){r.msg="unknown header flags set",o.mode=wi;break}o.head&&(o.head.text=k>>8&1),o.flags&512&&(ht[0]=k&255,ht[1]=k>>>8&255,o.check=ma(o.check,ht,2,0)),k=0,D=0,o.mode=p9;case p9:for(;D<32;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}o.head&&(o.head.time=k),o.flags&512&&(ht[0]=k&255,ht[1]=k>>>8&255,ht[2]=k>>>16&255,ht[3]=k>>>24&255,o.check=ma(o.check,ht,4,0)),k=0,D=0,o.mode=g9;case g9:for(;D<16;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}o.head&&(o.head.xflags=k&255,o.head.os=k>>8),o.flags&512&&(ht[0]=k&255,ht[1]=k>>>8&255,o.check=ma(o.check,ht,2,0)),k=0,D=0,o.mode=y9;case y9:if(o.flags&1024){for(;D<16;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}o.length=k,o.head&&(o.head.extra_len=k),o.flags&512&&(ht[0]=k&255,ht[1]=k>>>8&255,o.check=ma(o.check,ht,2,0)),k=0,D=0}else o.head&&(o.head.extra=null);o.mode=m9;case m9:if(o.flags&1024&&(z=o.length,z>b&&(z=b),z&&(o.head&&(et=o.head.extra_len-o.length,o.head.extra||(o.head.extra=new Uint8Array(o.head.extra_len)),o.head.extra.set(h.subarray(y,y+z),et)),o.flags&512&&(o.check=ma(o.check,h,z,y)),b-=z,y+=z,o.length-=z),o.length))break t;o.length=0,o.mode=v9;case v9:if(o.flags&2048){if(b===0)break t;z=0;do et=h[y+z++],o.head&&et&&o.length<65536&&(o.head.name+=String.fromCharCode(et));while(et&&z<b);if(o.flags&512&&(o.check=ma(o.check,h,z,y)),b-=z,y+=z,et)break t}else o.head&&(o.head.name=null);o.length=0,o.mode=_9;case _9:if(o.flags&4096){if(b===0)break t;z=0;do et=h[y+z++],o.head&&et&&o.length<65536&&(o.head.comment+=String.fromCharCode(et));while(et&&z<b);if(o.flags&512&&(o.check=ma(o.check,h,z,y)),b-=z,y+=z,et)break t}else o.head&&(o.head.comment=null);o.mode=b9;case b9:if(o.flags&512){for(;D<16;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}if(k!==(o.check&65535)){r.msg="header crc mismatch",o.mode=wi;break}k=0,D=0}o.head&&(o.head.hcrc=o.flags>>9&1,o.head.done=!0),r.adler=o.check=0,o.mode=pl;break;case w9:for(;D<32;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}r.adler=o.check=R9(k),k=0,D=0,o.mode=b5;case b5:if(o.havedict===0)return r.next_out=p,r.avail_out=T,r.next_in=y,r.avail_in=b,o.hold=k,o.bits=D,GD;r.adler=o.check=1,o.mode=pl;case pl:if(s===qD||s===_5)break t;case z8:if(o.last){k>>>=D&7,D-=D&7,o.mode=H8;break}for(;D<3;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}switch(o.last=k&1,k>>>=1,D-=1,k&3){case 0:o.mode=x9;break;case 1:if(rN(o),o.mode=w5,s===_5){k>>>=2,D-=2;break t}break;case 2:o.mode=T9;break;case 3:r.msg="invalid block type",o.mode=wi}k>>>=2,D-=2;break;case x9:for(k>>>=D&7,D-=D&7;D<32;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}if((k&65535)!=(k>>>16^65535)){r.msg="invalid stored block lengths",o.mode=wi;break}if(o.length=k&65535,k=0,D=0,o.mode=U8,s===_5)break t;case U8:o.mode=k9;case k9:if(z=o.length,z){if(z>b&&(z=b),z>T&&(z=T),z===0)break t;c.set(h.subarray(y,y+z),p),b-=z,y+=z,T-=z,p+=z,o.length-=z;break}o.mode=pl;break;case T9:for(;D<14;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}if(o.nlen=(k&31)+257,k>>>=5,D-=5,o.ndist=(k&31)+1,k>>>=5,D-=5,o.ncode=(k&15)+4,k>>>=4,D-=4,o.nlen>286||o.ndist>30){r.msg="too many length or distance symbols",o.mode=wi;break}o.have=0,o.mode=E9;case E9:for(;o.have<o.ncode;){for(;D<3;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}o.lens[pt[o.have++]]=k&7,k>>>=3,D-=3}for(;o.have<19;)o.lens[pt[o.have++]]=0;if(o.lencode=o.lendyn,o.lenbits=7,xt={bits:o.lenbits},K=lv(WD,o.lens,0,19,o.lencode,0,o.work,xt),o.lenbits=xt.bits,K){r.msg="invalid code lengths set",o.mode=wi;break}o.have=0,o.mode=S9;case S9:for(;o.have<o.nlen+o.ndist;){for(;V=o.lencode[k&(1<<o.lenbits)-1],X=V>>>24,it=V>>>16&255,tt=V&65535,!(X<=D);){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}if(tt<16)k>>>=X,D-=X,o.lens[o.have++]=tt;else{if(tt===16){for(St=X+2;D<St;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}if(k>>>=X,D-=X,o.have===0){r.msg="invalid bit length repeat",o.mode=wi;break}et=o.lens[o.have-1],z=3+(k&3),k>>>=2,D-=2}else if(tt===17){for(St=X+3;D<St;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}k>>>=X,D-=X,et=0,z=3+(k&7),k>>>=3,D-=3}else{for(St=X+7;D<St;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}k>>>=X,D-=X,et=0,z=11+(k&127),k>>>=7,D-=7}if(o.have+z>o.nlen+o.ndist){r.msg="invalid bit length repeat",o.mode=wi;break}for(;z--;)o.lens[o.have++]=et}}if(o.mode===wi)break;if(o.lens[256]===0){r.msg="invalid code -- missing end-of-block",o.mode=wi;break}if(o.lenbits=9,xt={bits:o.lenbits},K=lv(o9,o.lens,0,o.nlen,o.lencode,0,o.work,xt),o.lenbits=xt.bits,K){r.msg="invalid literal/lengths set",o.mode=wi;break}if(o.distbits=6,o.distcode=o.distdyn,xt={bits:o.distbits},K=lv(s9,o.lens,o.nlen,o.ndist,o.distcode,0,o.work,xt),o.distbits=xt.bits,K){r.msg="invalid distances set",o.mode=wi;break}if(o.mode=w5,s===_5)break t;case w5:o.mode=x5;case x5:if(b>=6&&T>=258){r.next_out=p,r.avail_out=T,r.next_in=y,r.avail_in=b,o.hold=k,o.bits=D,YD(r,I),p=r.next_out,c=r.output,T=r.avail_out,y=r.next_in,h=r.input,b=r.avail_in,k=o.hold,D=o.bits,o.mode===pl&&(o.back=-1);break}for(o.back=0;V=o.lencode[k&(1<<o.lenbits)-1],X=V>>>24,it=V>>>16&255,tt=V&65535,!(X<=D);){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}if(it&&(it&240)==0){for(rt=X,ut=it,Ct=tt;V=o.lencode[Ct+((k&(1<<rt+ut)-1)>>rt)],X=V>>>24,it=V>>>16&255,tt=V&65535,!(rt+X<=D);){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}k>>>=rt,D-=rt,o.back+=rt}if(k>>>=X,D-=X,o.back+=X,o.length=tt,it===0){o.mode=N9;break}if(it&32){o.back=-1,o.mode=pl;break}if(it&64){r.msg="invalid literal/length code",o.mode=wi;break}o.extra=it&15,o.mode=C9;case C9:if(o.extra){for(St=o.extra;D<St;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}o.length+=k&(1<<o.extra)-1,k>>>=o.extra,D-=o.extra,o.back+=o.extra}o.was=o.length,o.mode=M9;case M9:for(;V=o.distcode[k&(1<<o.distbits)-1],X=V>>>24,it=V>>>16&255,tt=V&65535,!(X<=D);){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}if((it&240)==0){for(rt=X,ut=it,Ct=tt;V=o.distcode[Ct+((k&(1<<rt+ut)-1)>>rt)],X=V>>>24,it=V>>>16&255,tt=V&65535,!(rt+X<=D);){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}k>>>=rt,D-=rt,o.back+=rt}if(k>>>=X,D-=X,o.back+=X,it&64){r.msg="invalid distance code",o.mode=wi;break}o.offset=tt,o.extra=it&15,o.mode=A9;case A9:if(o.extra){for(St=o.extra;D<St;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}o.offset+=k&(1<<o.extra)-1,k>>>=o.extra,D-=o.extra,o.back+=o.extra}if(o.offset>o.dmax){r.msg="invalid distance too far back",o.mode=wi;break}o.mode=D9;case D9:if(T===0)break t;if(z=I-T,o.offset>z){if(z=o.offset-z,z>o.whave&&o.sane){r.msg="invalid distance too far back",o.mode=wi;break}z>o.wnext?(z-=o.wnext,H=o.wsize-z):H=o.wnext-z,z>o.length&&(z=o.length),q=o.window}else q=c,H=p-o.offset,z=o.length;z>T&&(z=T),T-=z,o.length-=z;do c[p++]=q[H++];while(--z);o.length===0&&(o.mode=x5);break;case N9:if(T===0)break t;c[p++]=o.length,T--,o.mode=x5;break;case H8:if(o.wrap){for(;D<32;){if(b===0)break t;b--,k|=h[y++]<<D,D+=8}if(I-=T,r.total_out+=I,o.total+=I,I&&(r.adler=o.check=o.flags?ma(o.check,c,I,p-I):ev(o.check,c,I,p-I)),I=T,(o.flags?k:R9(k))!==o.check){r.msg="incorrect data check",o.mode=wi;break}k=0,D=0}o.mode=O9;case O9:if(o.wrap&&o.flags){for(;D<32;){if(b===0)break t;b--,k+=h[y++]<<D,D+=8}if(k!==(o.total&4294967295)){r.msg="incorrect length check",o.mode=wi;break}k=0,D=0}o.mode=L9;case L9:K=VD;break t;case wi:K=u9;break t;case B9:return l9;case XD:default:return js}return r.next_out=p,r.avail_out=T,r.next_in=y,r.avail_in=b,o.hold=k,o.bits=D,(o.wsize||I!==r.avail_out&&o.mode<wi&&(o.mode<H8||s!==c9))&&z9(r,r.output,r.next_out,I-r.avail_out),O-=r.avail_in,I-=r.avail_out,r.total_in+=O,r.total_out+=I,o.total+=I,o.wrap&&I&&(r.adler=o.check=o.flags?ma(o.check,c,I,r.next_out-I):ev(o.check,c,I,r.next_out-I)),r.data_type=o.bits+(o.last?64:0)+(o.mode===pl?128:0)+(o.mode===w5||o.mode===U8?256:0),(O===0&&I===0||s===c9)&&K===Qd&&(K=ZD),K},aN=r=>{if(!r||!r.state)return js;let s=r.state;return s.window&&(s.window=null),r.state=null,Qd},oN=(r,s)=>{if(!r||!r.state)return js;const o=r.state;return(o.wrap&2)==0?js:(o.head=s,s.done=!1,Qd)},sN=(r,s)=>{const o=s.length;let h,c,y;return!r||!r.state||(h=r.state,h.wrap!==0&&h.mode!==b5)?js:h.mode===b5&&(c=1,c=ev(c,s,o,0),c!==h.check)?u9:(y=z9(r,s,o,o),y?(h.mode=B9,l9):(h.havedict=1,Qd))};var cN=F9,uN=P9,lN=I9,hN=nN,fN=Y9,dN=iN,pN=aN,gN=oN,yN=sN,mN="pako inflate (from Nodeca project)",gl={inflateReset:cN,inflateReset2:uN,inflateResetKeep:lN,inflateInit:hN,inflateInit2:fN,inflate:dN,inflateEnd:pN,inflateGetHeader:gN,inflateSetDictionary:yN,inflateInfo:mN};function vN(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var _N=vN;const U9=Object.prototype.toString,{Z_NO_FLUSH:bN,Z_FINISH:wN,Z_OK:hv,Z_STREAM_END:q8,Z_NEED_DICT:V8,Z_STREAM_ERROR:xN,Z_DATA_ERROR:H9,Z_MEM_ERROR:kN}=Vd;function fv(r){this.options=y5.assign({chunkSize:1024*64,windowBits:15,to:""},r||{});const s=this.options;s.raw&&s.windowBits>=0&&s.windowBits<16&&(s.windowBits=-s.windowBits,s.windowBits===0&&(s.windowBits=-15)),s.windowBits>=0&&s.windowBits<16&&!(r&&r.windowBits)&&(s.windowBits+=32),s.windowBits>15&&s.windowBits<48&&(s.windowBits&15)==0&&(s.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new t9,this.strm.avail_out=0;let o=gl.inflateInit2(this.strm,s.windowBits);if(o!==hv)throw new Error(qd[o]);if(this.header=new _N,gl.inflateGetHeader(this.strm,this.header),s.dictionary&&(typeof s.dictionary=="string"?s.dictionary=cv.string2buf(s.dictionary):U9.call(s.dictionary)==="[object ArrayBuffer]"&&(s.dictionary=new Uint8Array(s.dictionary)),s.raw&&(o=gl.inflateSetDictionary(this.strm,s.dictionary),o!==hv)))throw new Error(qd[o])}fv.prototype.push=function(r,s){const o=this.strm,h=this.options.chunkSize,c=this.options.dictionary;let y,p,b;if(this.ended)return!1;for(s===~~s?p=s:p=s===!0?wN:bN,U9.call(r)==="[object ArrayBuffer]"?o.input=new Uint8Array(r):o.input=r,o.next_in=0,o.avail_in=o.input.length;;){for(o.avail_out===0&&(o.output=new Uint8Array(h),o.next_out=0,o.avail_out=h),y=gl.inflate(o,p),y===V8&&c&&(y=gl.inflateSetDictionary(o,c),y===hv?y=gl.inflate(o,p):y===H9&&(y=V8));o.avail_in>0&&y===q8&&o.state.wrap>0&&r[o.next_in]!==0;)gl.inflateReset(o),y=gl.inflate(o,p);switch(y){case xN:case H9:case V8:case kN:return this.onEnd(y),this.ended=!0,!1}if(b=o.avail_out,o.next_out&&(o.avail_out===0||y===q8))if(this.options.to==="string"){let T=cv.utf8border(o.output,o.next_out),k=o.next_out-T,D=cv.buf2string(o.output,T);o.next_out=k,o.avail_out=h-k,k&&o.output.set(o.output.subarray(T,T+k),0),this.onData(D)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(!(y===hv&&b===0)){if(y===q8)return y=gl.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,!0;if(o.avail_in===0)break}}return!0};fv.prototype.onData=function(r){this.chunks.push(r)};fv.prototype.onEnd=function(r){r===hv&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=y5.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function G8(r,s){const o=new fv(s);if(o.push(r),o.err)throw o.msg||qd[o.err];return o.result}function TN(r,s){return s=s||{},s.raw=!0,G8(r,s)}var EN=fv,SN=G8,CN=TN,MN=G8,AN=Vd,DN={Inflate:EN,inflate:SN,inflateRaw:CN,ungzip:MN,constants:AN};const{Deflate:NN,deflate:ON,deflateRaw:LN,gzip:BN}=FD,{Inflate:RN,inflate:IN,inflateRaw:FN,ungzip:PN}=DN;var YN=NN,jN=ON,zN=LN,UN=BN,HN=RN,$N=IN,WN=FN,qN=PN,VN=Vd,GO={Deflate:YN,deflate:jN,deflateRaw:zN,gzip:UN,Inflate:HN,inflate:$N,inflateRaw:WN,ungzip:qN,constants:VN};/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var GN={1362:(r,s,o)=>{r=o.nmd(r);var h=function(){var c=function(Yt,Kt,ct,ee){for(ct=ct||{},ee=Yt.length;ee--;ct[Yt[ee]]=Kt);return ct},y=[1,6],p=[1,7],b=[1,8],T=[1,9],k=[1,12],D=[1,11],O=[1,15,24],I=[1,19],z=[1,31],H=[1,34],q=[1,32],V=[1,33],X=[1,35],it=[1,36],tt=[1,37],rt=[1,38],ut=[1,41],Ct=[1,42],et=[1,43],K=[1,44],ht=[15,24],xt=[1,56],St=[1,57],pt=[1,58],wt=[1,59],Ht=[1,60],Pt=[1,61],ge=[15,24,31,38,39,47,50,51,52,53,54,55,60,62],pe=[15,24,29,31,38,39,43,47,50,51,52,53,54,55,60,62,77,78,79,80],de=[7,8,9,10,15,18,22,24],Rt=[47,77,78,79,80],Gt=[47,54,55,77,78,79,80],oe=[47,50,51,52,53,77,78,79,80],le=[15,24,31],ye=[1,93],It={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,CLASS_DIAGRAM:22,statements:23,EOF:24,statement:25,className:26,alphaNumToken:27,classLiteralName:28,GENERICTYPE:29,relationStatement:30,LABEL:31,classStatement:32,methodStatement:33,annotationStatement:34,clickStatement:35,cssClassStatement:36,CLASS:37,STYLE_SEPARATOR:38,STRUCT_START:39,members:40,STRUCT_STOP:41,ANNOTATION_START:42,ANNOTATION_END:43,MEMBER:44,SEPARATOR:45,relation:46,STR:47,relationType:48,lineType:49,AGGREGATION:50,EXTENSION:51,COMPOSITION:52,DEPENDENCY:53,LINE:54,DOTTED_LINE:55,CALLBACK:56,LINK:57,LINK_TARGET:58,CLICK:59,CALLBACK_NAME:60,CALLBACK_ARGS:61,HREF:62,CSSCLASS:63,commentToken:64,textToken:65,graphCodeTokens:66,textNoTagsToken:67,TAGSTART:68,TAGEND:69,"==":70,"--":71,PCT:72,DEFAULT:73,SPACE:74,MINUS:75,keywords:76,UNICODE_TEXT:77,NUM:78,ALPHA:79,BQUOTE_STR:80,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"CLASS_DIAGRAM",24:"EOF",29:"GENERICTYPE",31:"LABEL",37:"CLASS",38:"STYLE_SEPARATOR",39:"STRUCT_START",41:"STRUCT_STOP",42:"ANNOTATION_START",43:"ANNOTATION_END",44:"MEMBER",45:"SEPARATOR",47:"STR",50:"AGGREGATION",51:"EXTENSION",52:"COMPOSITION",53:"DEPENDENCY",54:"LINE",55:"DOTTED_LINE",56:"CALLBACK",57:"LINK",58:"LINK_TARGET",59:"CLICK",60:"CALLBACK_NAME",61:"CALLBACK_ARGS",62:"HREF",63:"CSSCLASS",66:"graphCodeTokens",68:"TAGSTART",69:"TAGEND",70:"==",71:"--",72:"PCT",73:"DEFAULT",74:"SPACE",75:"MINUS",76:"keywords",77:"UNICODE_TEXT",78:"NUM",79:"ALPHA",80:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[23,1],[23,2],[23,3],[26,1],[26,1],[26,2],[26,2],[26,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[32,2],[32,4],[32,5],[32,7],[34,4],[40,1],[40,2],[33,1],[33,2],[33,1],[33,1],[30,3],[30,4],[30,4],[30,5],[46,3],[46,2],[46,2],[46,1],[48,1],[48,1],[48,1],[48,1],[49,1],[49,1],[35,3],[35,4],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[36,3],[64,1],[64,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[67,1],[67,1],[67,1],[67,1],[27,1],[27,1],[27,1],[28,1]],performAction:function(Yt,Kt,ct,ee,Nt,Vt,Ut){var Ot=Vt.length-1;switch(Nt){case 4:ee.setDirection("TB");break;case 5:ee.setDirection("BT");break;case 6:ee.setDirection("RL");break;case 7:ee.setDirection("LR");break;case 11:ee.parseDirective("%%{","open_directive");break;case 12:ee.parseDirective(Vt[Ot],"type_directive");break;case 13:Vt[Ot]=Vt[Ot].trim().replace(/'/g,'"'),ee.parseDirective(Vt[Ot],"arg_directive");break;case 14:ee.parseDirective("}%%","close_directive","class");break;case 19:case 20:this.$=Vt[Ot];break;case 21:this.$=Vt[Ot-1]+Vt[Ot];break;case 22:case 23:this.$=Vt[Ot-1]+"~"+Vt[Ot];break;case 24:ee.addRelation(Vt[Ot]);break;case 25:Vt[Ot-1].title=ee.cleanupLabel(Vt[Ot]),ee.addRelation(Vt[Ot-1]);break;case 33:ee.addClass(Vt[Ot]);break;case 34:ee.addClass(Vt[Ot-2]),ee.setCssClass(Vt[Ot-2],Vt[Ot]);break;case 35:ee.addClass(Vt[Ot-3]),ee.addMembers(Vt[Ot-3],Vt[Ot-1]);break;case 36:ee.addClass(Vt[Ot-5]),ee.setCssClass(Vt[Ot-5],Vt[Ot-3]),ee.addMembers(Vt[Ot-5],Vt[Ot-1]);break;case 37:ee.addAnnotation(Vt[Ot],Vt[Ot-2]);break;case 38:this.$=[Vt[Ot]];break;case 39:Vt[Ot].push(Vt[Ot-1]),this.$=Vt[Ot];break;case 40:case 42:case 43:break;case 41:ee.addMember(Vt[Ot-1],ee.cleanupLabel(Vt[Ot]));break;case 44:this.$={id1:Vt[Ot-2],id2:Vt[Ot],relation:Vt[Ot-1],relationTitle1:"none",relationTitle2:"none"};break;case 45:this.$={id1:Vt[Ot-3],id2:Vt[Ot],relation:Vt[Ot-1],relationTitle1:Vt[Ot-2],relationTitle2:"none"};break;case 46:this.$={id1:Vt[Ot-3],id2:Vt[Ot],relation:Vt[Ot-2],relationTitle1:"none",relationTitle2:Vt[Ot-1]};break;case 47:this.$={id1:Vt[Ot-4],id2:Vt[Ot],relation:Vt[Ot-2],relationTitle1:Vt[Ot-3],relationTitle2:Vt[Ot-1]};break;case 48:this.$={type1:Vt[Ot-2],type2:Vt[Ot],lineType:Vt[Ot-1]};break;case 49:this.$={type1:"none",type2:Vt[Ot],lineType:Vt[Ot-1]};break;case 50:this.$={type1:Vt[Ot-1],type2:"none",lineType:Vt[Ot]};break;case 51:this.$={type1:"none",type2:"none",lineType:Vt[Ot]};break;case 52:this.$=ee.relationType.AGGREGATION;break;case 53:this.$=ee.relationType.EXTENSION;break;case 54:this.$=ee.relationType.COMPOSITION;break;case 55:this.$=ee.relationType.DEPENDENCY;break;case 56:this.$=ee.lineType.LINE;break;case 57:this.$=ee.lineType.DOTTED_LINE;break;case 58:case 64:this.$=Vt[Ot-2],ee.setClickEvent(Vt[Ot-1],Vt[Ot]);break;case 59:case 65:this.$=Vt[Ot-3],ee.setClickEvent(Vt[Ot-2],Vt[Ot-1]),ee.setTooltip(Vt[Ot-2],Vt[Ot]);break;case 60:case 68:this.$=Vt[Ot-2],ee.setLink(Vt[Ot-1],Vt[Ot]);break;case 61:case 69:this.$=Vt[Ot-3],ee.setLink(Vt[Ot-2],Vt[Ot-1],Vt[Ot]);break;case 62:case 70:this.$=Vt[Ot-3],ee.setLink(Vt[Ot-2],Vt[Ot-1]),ee.setTooltip(Vt[Ot-2],Vt[Ot]);break;case 63:case 71:this.$=Vt[Ot-4],ee.setLink(Vt[Ot-3],Vt[Ot-2],Vt[Ot]),ee.setTooltip(Vt[Ot-3],Vt[Ot-1]);break;case 66:this.$=Vt[Ot-3],ee.setClickEvent(Vt[Ot-2],Vt[Ot-1],Vt[Ot]);break;case 67:this.$=Vt[Ot-4],ee.setClickEvent(Vt[Ot-3],Vt[Ot-2],Vt[Ot-1]),ee.setTooltip(Vt[Ot-3],Vt[Ot]);break;case 72:ee.setCssClass(Vt[Ot-1],Vt[Ot])}},table:[{3:1,4:2,5:3,6:4,7:y,8:p,9:b,10:T,11:5,12:10,18:k,22:D},{1:[3]},{1:[2,1]},{1:[2,2]},{3:13,4:2,5:3,6:4,7:y,8:p,9:b,10:T,11:5,12:10,18:k,22:D},{1:[2,8]},c(O,[2,4]),c(O,[2,5]),c(O,[2,6]),c(O,[2,7]),{13:14,19:[1,15]},{15:[1,16]},{19:[2,11]},{1:[2,3]},{14:17,16:[1,18],21:I},c([16,21],[2,12]),{5:29,6:28,7:y,8:p,9:b,10:T,12:10,18:k,23:20,25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:z,42:H,44:q,45:V,56:X,57:it,59:tt,63:rt,77:ut,78:Ct,79:et,80:K},{15:[1,45]},{17:46,20:[1,47]},{15:[2,14]},{24:[1,48]},{15:[1,49],24:[2,16]},c(ht,[2,24],{31:[1,50]}),c(ht,[2,26]),c(ht,[2,27]),c(ht,[2,28]),c(ht,[2,29]),c(ht,[2,30]),c(ht,[2,31]),c(ht,[2,32]),c(ht,[2,40],{46:51,48:54,49:55,31:[1,53],47:[1,52],50:xt,51:St,52:pt,53:wt,54:Ht,55:Pt}),{26:62,27:39,28:40,77:ut,78:Ct,79:et,80:K},c(ht,[2,42]),c(ht,[2,43]),{27:63,77:ut,78:Ct,79:et},{26:64,27:39,28:40,77:ut,78:Ct,79:et,80:K},{26:65,27:39,28:40,77:ut,78:Ct,79:et,80:K},{26:66,27:39,28:40,77:ut,78:Ct,79:et,80:K},{47:[1,67]},c(ge,[2,19],{27:39,28:40,26:68,29:[1,69],77:ut,78:Ct,79:et,80:K}),c(ge,[2,20],{29:[1,70]}),c(pe,[2,86]),c(pe,[2,87]),c(pe,[2,88]),c([15,24,29,31,38,39,47,50,51,52,53,54,55,60,62],[2,89]),c(de,[2,9]),{14:71,21:I},{21:[2,13]},{1:[2,15]},{5:29,6:28,7:y,8:p,9:b,10:T,12:10,18:k,23:72,24:[2,17],25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:z,42:H,44:q,45:V,56:X,57:it,59:tt,63:rt,77:ut,78:Ct,79:et,80:K},c(ht,[2,25]),{26:73,27:39,28:40,47:[1,74],77:ut,78:Ct,79:et,80:K},{46:75,48:54,49:55,50:xt,51:St,52:pt,53:wt,54:Ht,55:Pt},c(ht,[2,41]),{49:76,54:Ht,55:Pt},c(Rt,[2,51],{48:77,50:xt,51:St,52:pt,53:wt}),c(Gt,[2,52]),c(Gt,[2,53]),c(Gt,[2,54]),c(Gt,[2,55]),c(oe,[2,56]),c(oe,[2,57]),c(ht,[2,33],{38:[1,78],39:[1,79]}),{43:[1,80]},{47:[1,81]},{47:[1,82]},{60:[1,83],62:[1,84]},{27:85,77:ut,78:Ct,79:et},c(ge,[2,21]),c(ge,[2,22]),c(ge,[2,23]),{15:[1,86]},{24:[2,18]},c(le,[2,44]),{26:87,27:39,28:40,77:ut,78:Ct,79:et,80:K},{26:88,27:39,28:40,47:[1,89],77:ut,78:Ct,79:et,80:K},c(Rt,[2,50],{48:90,50:xt,51:St,52:pt,53:wt}),c(Rt,[2,49]),{27:91,77:ut,78:Ct,79:et},{40:92,44:ye},{26:94,27:39,28:40,77:ut,78:Ct,79:et,80:K},c(ht,[2,58],{47:[1,95]}),c(ht,[2,60],{47:[1,97],58:[1,96]}),c(ht,[2,64],{47:[1,98],61:[1,99]}),c(ht,[2,68],{47:[1,101],58:[1,100]}),c(ht,[2,72]),c(de,[2,10]),c(le,[2,46]),c(le,[2,45]),{26:102,27:39,28:40,77:ut,78:Ct,79:et,80:K},c(Rt,[2,48]),c(ht,[2,34],{39:[1,103]}),{41:[1,104]},{40:105,41:[2,38],44:ye},c(ht,[2,37]),c(ht,[2,59]),c(ht,[2,61]),c(ht,[2,62],{58:[1,106]}),c(ht,[2,65]),c(ht,[2,66],{47:[1,107]}),c(ht,[2,69]),c(ht,[2,70],{58:[1,108]}),c(le,[2,47]),{40:109,44:ye},c(ht,[2,35]),{41:[2,39]},c(ht,[2,63]),c(ht,[2,67]),c(ht,[2,71]),{41:[1,110]},c(ht,[2,36])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],12:[2,11],13:[2,3],19:[2,14],47:[2,13],48:[2,15],72:[2,18],105:[2,39]},parseError:function(Yt,Kt){if(!Kt.recoverable){var ct=new Error(Yt);throw ct.hash=Kt,ct}this.trace(Yt)},parse:function(Yt){var Kt=this,ct=[0],ee=[],Nt=[null],Vt=[],Ut=this.table,Ot="",ae=0,Qe=0,_e=0,Ce=2,un=1,Ve=Vt.slice.call(arguments,1),Le=Object.create(this.lexer),ke={yy:{}};for(var Je in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Je)&&(ke.yy[Je]=this.yy[Je]);Le.setInput(Yt,ke.yy),ke.yy.lexer=Le,ke.yy.parser=this,Le.yylloc===void 0&&(Le.yylloc={});var Ye=Le.yylloc;Vt.push(Ye);var Ge=Le.options&&Le.options.ranges;function Ze(){var Cn;return typeof(Cn=ee.pop()||Le.lex()||un)!="number"&&(Cn instanceof Array&&(Cn=(ee=Cn).pop()),Cn=Kt.symbols_[Cn]||Cn),Cn}typeof ke.yy.parseError=="function"?this.parseError=ke.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ne,Un,Te,tn,vn,Ir,_n,tr,cn,gn={};;){if(Te=ct[ct.length-1],this.defaultActions[Te]?tn=this.defaultActions[Te]:(Ne==null&&(Ne=Ze()),tn=Ut[Te]&&Ut[Te][Ne]),tn===void 0||!tn.length||!tn[0]){var Xe="";for(Ir in cn=[],Ut[Te])this.terminals_[Ir]&&Ir>Ce&&cn.push("'"+this.terminals_[Ir]+"'");Xe=Le.showPosition?"Parse error on line "+(ae+1)+`:
`+Le.showPosition()+`
Expecting `+cn.join(", ")+", got '"+(this.terminals_[Ne]||Ne)+"'":"Parse error on line "+(ae+1)+": Unexpected "+(Ne==un?"end of input":"'"+(this.terminals_[Ne]||Ne)+"'"),this.parseError(Xe,{text:Le.match,token:this.terminals_[Ne]||Ne,line:Le.yylineno,loc:Ye,expected:cn})}if(tn[0]instanceof Array&&tn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Te+", token: "+Ne);switch(tn[0]){case 1:ct.push(Ne),Nt.push(Le.yytext),Vt.push(Le.yylloc),ct.push(tn[1]),Ne=null,Un?(Ne=Un,Un=null):(Qe=Le.yyleng,Ot=Le.yytext,ae=Le.yylineno,Ye=Le.yylloc,_e>0);break;case 2:if(_n=this.productions_[tn[1]][1],gn.$=Nt[Nt.length-_n],gn._$={first_line:Vt[Vt.length-(_n||1)].first_line,last_line:Vt[Vt.length-1].last_line,first_column:Vt[Vt.length-(_n||1)].first_column,last_column:Vt[Vt.length-1].last_column},Ge&&(gn._$.range=[Vt[Vt.length-(_n||1)].range[0],Vt[Vt.length-1].range[1]]),(vn=this.performAction.apply(gn,[Ot,Qe,ae,ke.yy,tn[1],Nt,Vt].concat(Ve)))!==void 0)return vn;_n&&(ct=ct.slice(0,-1*_n*2),Nt=Nt.slice(0,-1*_n),Vt=Vt.slice(0,-1*_n)),ct.push(this.productions_[tn[1]][0]),Nt.push(gn.$),Vt.push(gn._$),tr=Ut[ct[ct.length-2]][ct[ct.length-1]],ct.push(tr);break;case 3:return!0}}return!0}},$e={EOF:1,parseError:function(Yt,Kt){if(!this.yy.parser)throw new Error(Yt);this.yy.parser.parseError(Yt,Kt)},setInput:function(Yt,Kt){return this.yy=Kt||this.yy||{},this._input=Yt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Yt=this._input[0];return this.yytext+=Yt,this.yyleng++,this.offset++,this.match+=Yt,this.matched+=Yt,Yt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Yt},unput:function(Yt){var Kt=Yt.length,ct=Yt.split(/(?:\r\n?|\n)/g);this._input=Yt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Kt),this.offset-=Kt;var ee=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ct.length-1&&(this.yylineno-=ct.length-1);var Nt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ct?(ct.length===ee.length?this.yylloc.first_column:0)+ee[ee.length-ct.length].length-ct[0].length:this.yylloc.first_column-Kt},this.options.ranges&&(this.yylloc.range=[Nt[0],Nt[0]+this.yyleng-Kt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Yt){this.unput(this.match.slice(Yt))},pastInput:function(){var Yt=this.matched.substr(0,this.matched.length-this.match.length);return(Yt.length>20?"...":"")+Yt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Yt=this.match;return Yt.length<20&&(Yt+=this._input.substr(0,20-Yt.length)),(Yt.substr(0,20)+(Yt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Yt=this.pastInput(),Kt=new Array(Yt.length+1).join("-");return Yt+this.upcomingInput()+`
`+Kt+"^"},test_match:function(Yt,Kt){var ct,ee,Nt;if(this.options.backtrack_lexer&&(Nt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Nt.yylloc.range=this.yylloc.range.slice(0))),(ee=Yt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ee.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ee?ee[ee.length-1].length-ee[ee.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Yt[0].length},this.yytext+=Yt[0],this.match+=Yt[0],this.matches=Yt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Yt[0].length),this.matched+=Yt[0],ct=this.performAction.call(this,this.yy,this,Kt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ct)return ct;if(this._backtrack){for(var Vt in Nt)this[Vt]=Nt[Vt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Yt,Kt,ct,ee;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Nt=this._currentRules(),Vt=0;Vt<Nt.length;Vt++)if((ct=this._input.match(this.rules[Nt[Vt]]))&&(!Kt||ct[0].length>Kt[0].length)){if(Kt=ct,ee=Vt,this.options.backtrack_lexer){if((Yt=this.test_match(ct,Nt[Vt]))!==!1)return Yt;if(this._backtrack){Kt=!1;continue}return!1}if(!this.options.flex)break}return Kt?(Yt=this.test_match(Kt,Nt[ee]))!==!1&&Yt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Yt){this.conditionStack.push(Yt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Yt){return(Yt=this.conditionStack.length-1-Math.abs(Yt||0))>=0?this.conditionStack[Yt]:"INITIAL"},pushState:function(Yt){this.begin(Yt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Yt,Kt,ct,ee){switch(ct){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:case 10:case 12:case 19:break;case 11:return 15;case 13:case 14:return 22;case 15:return this.begin("struct"),39;case 16:return"EOF_IN_STRUCT";case 17:return"OPEN_IN_STRUCT";case 18:return this.popState(),41;case 20:return"MEMBER";case 21:return 37;case 22:return 63;case 23:return 56;case 24:return 57;case 25:return 59;case 26:return 42;case 27:return 43;case 28:this.begin("generic");break;case 29:case 32:case 35:case 38:case 41:case 44:this.popState();break;case 30:return"GENERICTYPE";case 31:this.begin("string");break;case 33:return"STR";case 34:this.begin("bqstring");break;case 36:return"BQUOTE_STR";case 37:this.begin("href");break;case 39:return 62;case 40:this.begin("callback_name");break;case 42:this.popState(),this.begin("callback_args");break;case 43:return 60;case 45:return 61;case 46:case 47:case 48:case 49:return 58;case 50:case 51:return 51;case 52:case 53:return 53;case 54:return 52;case 55:return 50;case 56:return 54;case 57:return 55;case 58:return 31;case 59:return 38;case 60:return 75;case 61:return"DOT";case 62:return"PLUS";case 63:return 72;case 64:case 65:return"EQUALS";case 66:return 79;case 67:return"PUNCTUATION";case 68:return 78;case 69:return 77;case 70:return 74;case 71:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[44,45],inclusive:!1},callback_name:{rules:[41,42,43],inclusive:!1},href:{rules:[38,39],inclusive:!1},struct:{rules:[16,17,18,19,20],inclusive:!1},generic:{rules:[29,30],inclusive:!1},bqstring:{rules:[35,36],inclusive:!1},string:{rules:[32,33],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,13,14,15,21,22,23,24,25,26,27,28,31,34,37,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71],inclusive:!0}}};function he(){this.yy={}}return It.lexer=$e,he.prototype=It,It.Parser=he,new he}();s.parser=h,s.Parser=h.Parser,s.parse=function(){return h.parse.apply(h,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(8218).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},5890:(r,s,o)=>{r=o.nmd(r);var h=function(){var c=function(et,K,ht,xt){for(ht=ht||{},xt=et.length;xt--;ht[et[xt]]=K);return ht},y=[1,2],p=[1,5],b=[6,9,11,23,41],T=[1,17],k=[1,20],D=[1,25],O=[1,26],I=[1,27],z=[1,28],H=[1,37],q=[23,38,39],V=[4,6,9,11,23,41],X=[34,35,36,37],it=[22,29],tt=[1,55],rt={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,ALPHANUM:23,attribute:24,attributeType:25,attributeName:26,attributeKeyType:27,attributeComment:28,ATTRIBUTE_WORD:29,ATTRIBUTE_KEY:30,COMMENT:31,cardinality:32,relType:33,ZERO_OR_ONE:34,ZERO_OR_MORE:35,ONE_OR_MORE:36,ONLY_ONE:37,NON_IDENTIFYING:38,IDENTIFYING:39,WORD:40,open_directive:41,type_directive:42,arg_directive:43,close_directive:44,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"ALPHANUM",29:"ATTRIBUTE_WORD",30:"ATTRIBUTE_KEY",31:"COMMENT",34:"ZERO_OR_ONE",35:"ZERO_OR_MORE",36:"ONE_OR_MORE",37:"ONLY_ONE",38:"NON_IDENTIFYING",39:"IDENTIFYING",40:"WORD",41:"open_directive",42:"type_directive",43:"arg_directive",44:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[17,1],[21,1],[21,2],[24,2],[24,3],[24,3],[24,4],[25,1],[26,1],[27,1],[28,1],[18,3],[32,1],[32,1],[32,1],[32,1],[33,1],[33,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(et,K,ht,xt,St,pt,wt){var Ht=pt.length-1;switch(St){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:pt[Ht-1].push(pt[Ht]),this.$=pt[Ht-1];break;case 5:case 6:case 16:case 23:case 24:case 25:case 35:this.$=pt[Ht];break;case 12:xt.addEntity(pt[Ht-4]),xt.addEntity(pt[Ht-2]),xt.addRelationship(pt[Ht-4],pt[Ht],pt[Ht-2],pt[Ht-3]);break;case 13:xt.addEntity(pt[Ht-3]),xt.addAttributes(pt[Ht-3],pt[Ht-1]);break;case 14:xt.addEntity(pt[Ht-2]);break;case 15:xt.addEntity(pt[Ht]);break;case 17:this.$=[pt[Ht]];break;case 18:pt[Ht].push(pt[Ht-1]),this.$=pt[Ht];break;case 19:this.$={attributeType:pt[Ht-1],attributeName:pt[Ht]};break;case 20:this.$={attributeType:pt[Ht-2],attributeName:pt[Ht-1],attributeKeyType:pt[Ht]};break;case 21:this.$={attributeType:pt[Ht-2],attributeName:pt[Ht-1],attributeComment:pt[Ht]};break;case 22:this.$={attributeType:pt[Ht-3],attributeName:pt[Ht-2],attributeKeyType:pt[Ht-1],attributeComment:pt[Ht]};break;case 26:case 34:this.$=pt[Ht].replace(/"/g,"");break;case 27:this.$={cardA:pt[Ht],relType:pt[Ht-1],cardB:pt[Ht-2]};break;case 28:this.$=xt.Cardinality.ZERO_OR_ONE;break;case 29:this.$=xt.Cardinality.ZERO_OR_MORE;break;case 30:this.$=xt.Cardinality.ONE_OR_MORE;break;case 31:this.$=xt.Cardinality.ONLY_ONE;break;case 32:this.$=xt.Identification.NON_IDENTIFYING;break;case 33:this.$=xt.Identification.IDENTIFYING;break;case 36:xt.parseDirective("%%{","open_directive");break;case 37:xt.parseDirective(pt[Ht],"type_directive");break;case 38:pt[Ht]=pt[Ht].trim().replace(/'/g,'"'),xt.parseDirective(pt[Ht],"arg_directive");break;case 39:xt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:y,7:3,12:4,41:p},{1:[3]},c(b,[2,3],{5:6}),{3:7,4:y,7:3,12:4,41:p},{13:8,42:[1,9]},{42:[2,36]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:T,41:p},{1:[2,2]},{14:18,15:[1,19],44:k},c([15,44],[2,37]),c(b,[2,8],{1:[2,1]}),c(b,[2,4]),{7:15,10:21,12:4,17:16,23:T,41:p},c(b,[2,6]),c(b,[2,7]),c(b,[2,11]),c(b,[2,15],{18:22,32:24,20:[1,23],34:D,35:O,36:I,37:z}),c([6,9,11,15,20,23,34,35,36,37,41],[2,16]),{11:[1,29]},{16:30,43:[1,31]},{11:[2,39]},c(b,[2,5]),{17:32,23:T},{21:33,22:[1,34],24:35,25:36,29:H},{33:38,38:[1,39],39:[1,40]},c(q,[2,28]),c(q,[2,29]),c(q,[2,30]),c(q,[2,31]),c(V,[2,9]),{14:41,44:k},{44:[2,38]},{15:[1,42]},{22:[1,43]},c(b,[2,14]),{21:44,22:[2,17],24:35,25:36,29:H},{26:45,29:[1,46]},{29:[2,23]},{32:47,34:D,35:O,36:I,37:z},c(X,[2,32]),c(X,[2,33]),{11:[1,48]},{19:49,23:[1,51],40:[1,50]},c(b,[2,13]),{22:[2,18]},c(it,[2,19],{27:52,28:53,30:[1,54],31:tt}),c([22,29,30,31],[2,24]),{23:[2,27]},c(V,[2,10]),c(b,[2,12]),c(b,[2,34]),c(b,[2,35]),c(it,[2,20],{28:56,31:tt}),c(it,[2,21]),c([22,29,31],[2,25]),c(it,[2,26]),c(it,[2,22])],defaultActions:{5:[2,36],7:[2,2],20:[2,39],31:[2,38],37:[2,23],44:[2,18],47:[2,27]},parseError:function(et,K){if(!K.recoverable){var ht=new Error(et);throw ht.hash=K,ht}this.trace(et)},parse:function(et){var K=this,ht=[0],xt=[],St=[null],pt=[],wt=this.table,Ht="",Pt=0,ge=0,pe=0,de=2,Rt=1,Gt=pt.slice.call(arguments,1),oe=Object.create(this.lexer),le={yy:{}};for(var ye in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ye)&&(le.yy[ye]=this.yy[ye]);oe.setInput(et,le.yy),le.yy.lexer=oe,le.yy.parser=this,oe.yylloc===void 0&&(oe.yylloc={});var It=oe.yylloc;pt.push(It);var $e=oe.options&&oe.options.ranges;function he(){var Ce;return typeof(Ce=xt.pop()||oe.lex()||Rt)!="number"&&(Ce instanceof Array&&(Ce=(xt=Ce).pop()),Ce=K.symbols_[Ce]||Ce),Ce}typeof le.yy.parseError=="function"?this.parseError=le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Yt,Kt,ct,ee,Nt,Vt,Ut,Ot,ae,Qe={};;){if(ct=ht[ht.length-1],this.defaultActions[ct]?ee=this.defaultActions[ct]:(Yt==null&&(Yt=he()),ee=wt[ct]&&wt[ct][Yt]),ee===void 0||!ee.length||!ee[0]){var _e="";for(Vt in ae=[],wt[ct])this.terminals_[Vt]&&Vt>de&&ae.push("'"+this.terminals_[Vt]+"'");_e=oe.showPosition?"Parse error on line "+(Pt+1)+`:
`+oe.showPosition()+`
Expecting `+ae.join(", ")+", got '"+(this.terminals_[Yt]||Yt)+"'":"Parse error on line "+(Pt+1)+": Unexpected "+(Yt==Rt?"end of input":"'"+(this.terminals_[Yt]||Yt)+"'"),this.parseError(_e,{text:oe.match,token:this.terminals_[Yt]||Yt,line:oe.yylineno,loc:It,expected:ae})}if(ee[0]instanceof Array&&ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ct+", token: "+Yt);switch(ee[0]){case 1:ht.push(Yt),St.push(oe.yytext),pt.push(oe.yylloc),ht.push(ee[1]),Yt=null,Kt?(Yt=Kt,Kt=null):(ge=oe.yyleng,Ht=oe.yytext,Pt=oe.yylineno,It=oe.yylloc,pe>0);break;case 2:if(Ut=this.productions_[ee[1]][1],Qe.$=St[St.length-Ut],Qe._$={first_line:pt[pt.length-(Ut||1)].first_line,last_line:pt[pt.length-1].last_line,first_column:pt[pt.length-(Ut||1)].first_column,last_column:pt[pt.length-1].last_column},$e&&(Qe._$.range=[pt[pt.length-(Ut||1)].range[0],pt[pt.length-1].range[1]]),(Nt=this.performAction.apply(Qe,[Ht,ge,Pt,le.yy,ee[1],St,pt].concat(Gt)))!==void 0)return Nt;Ut&&(ht=ht.slice(0,-1*Ut*2),St=St.slice(0,-1*Ut),pt=pt.slice(0,-1*Ut)),ht.push(this.productions_[ee[1]][0]),St.push(Qe.$),pt.push(Qe._$),Ot=wt[ht[ht.length-2]][ht[ht.length-1]],ht.push(Ot);break;case 3:return!0}}return!0}},ut={EOF:1,parseError:function(et,K){if(!this.yy.parser)throw new Error(et);this.yy.parser.parseError(et,K)},setInput:function(et,K){return this.yy=K||this.yy||{},this._input=et,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var et=this._input[0];return this.yytext+=et,this.yyleng++,this.offset++,this.match+=et,this.matched+=et,et.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),et},unput:function(et){var K=et.length,ht=et.split(/(?:\r\n?|\n)/g);this._input=et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-K),this.offset-=K;var xt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ht.length-1&&(this.yylineno-=ht.length-1);var St=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ht?(ht.length===xt.length?this.yylloc.first_column:0)+xt[xt.length-ht.length].length-ht[0].length:this.yylloc.first_column-K},this.options.ranges&&(this.yylloc.range=[St[0],St[0]+this.yyleng-K]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(et){this.unput(this.match.slice(et))},pastInput:function(){var et=this.matched.substr(0,this.matched.length-this.match.length);return(et.length>20?"...":"")+et.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var et=this.match;return et.length<20&&(et+=this._input.substr(0,20-et.length)),(et.substr(0,20)+(et.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var et=this.pastInput(),K=new Array(et.length+1).join("-");return et+this.upcomingInput()+`
`+K+"^"},test_match:function(et,K){var ht,xt,St;if(this.options.backtrack_lexer&&(St={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(St.yylloc.range=this.yylloc.range.slice(0))),(xt=et[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=xt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:xt?xt[xt.length-1].length-xt[xt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+et[0].length},this.yytext+=et[0],this.match+=et[0],this.matches=et,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(et[0].length),this.matched+=et[0],ht=this.performAction.call(this,this.yy,this,K,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ht)return ht;if(this._backtrack){for(var pt in St)this[pt]=St[pt];return!1}return!1},next:function(){if(this.done)return this.EOF;var et,K,ht,xt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var St=this._currentRules(),pt=0;pt<St.length;pt++)if((ht=this._input.match(this.rules[St[pt]]))&&(!K||ht[0].length>K[0].length)){if(K=ht,xt=pt,this.options.backtrack_lexer){if((et=this.test_match(ht,St[pt]))!==!1)return et;if(this._backtrack){K=!1;continue}return!1}if(!this.options.flex)break}return K?(et=this.test_match(K,St[xt]))!==!1&&et:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(et){this.conditionStack.push(et)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(et){return(et=this.conditionStack.length-1-Math.abs(et||0))>=0?this.conditionStack[et]:"INITIAL"},pushState:function(et){this.begin(et)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(et,K,ht,xt){switch(ht){case 0:return this.begin("open_directive"),41;case 1:return this.begin("type_directive"),42;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),44;case 4:return 43;case 5:case 6:case 8:case 13:case 17:break;case 7:return 11;case 9:return 9;case 10:return 40;case 11:return 4;case 12:return this.begin("block"),20;case 14:return 30;case 15:return 29;case 16:return 31;case 18:return this.popState(),22;case 19:case 32:return K.yytext[0];case 20:case 24:return 34;case 21:case 25:return 35;case 22:case 26:return 36;case 23:return 37;case 27:case 29:case 30:return 38;case 28:return 39;case 31:return 23;case 33:return 6}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:(?:PK)|(?:FK))/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},block:{rules:[13,14,15,16,17,18,19],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,20,21,22,23,24,25,26,27,28,29,30,31,32,33],inclusive:!0}}};function Ct(){this.yy={}}return rt.lexer=ut,Ct.prototype=rt,rt.Parser=Ct,new Ct}();s.parser=h,s.Parser=h.Parser,s.parse=function(){return h.parse.apply(h,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(8009).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},3602:(r,s,o)=>{r=o.nmd(r);var h=function(){var c=function(en,Xn,An,Be){for(An=An||{},Be=en.length;Be--;An[en[Be]]=Xn);return An},y=[1,9],p=[1,7],b=[1,6],T=[1,8],k=[1,20,21,22,23,38,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],D=[2,10],O=[1,20],I=[1,21],z=[1,22],H=[1,23],q=[1,30],V=[1,59],X=[1,45],it=[1,49],tt=[1,33],rt=[1,34],ut=[1,35],Ct=[1,36],et=[1,37],K=[1,53],ht=[1,60],xt=[1,48],St=[1,50],pt=[1,52],wt=[1,56],Ht=[1,57],Pt=[1,38],ge=[1,39],pe=[1,40],de=[1,41],Rt=[1,58],Gt=[1,47],oe=[1,51],le=[1,54],ye=[1,55],It=[1,46],$e=[1,63],he=[1,68],Yt=[1,20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],Kt=[1,72],ct=[1,71],ee=[1,73],Nt=[20,21,23,74,75],Vt=[1,94],Ut=[1,99],Ot=[1,102],ae=[1,103],Qe=[1,96],_e=[1,101],Ce=[1,104],un=[1,97],Ve=[1,109],Le=[1,108],ke=[1,98],Je=[1,100],Ye=[1,105],Ge=[1,106],Ze=[1,107],Ne=[1,110],Un=[20,21,22,23,74,75],Te=[20,21,22,23,48,74,75],tn=[20,21,22,23,40,47,48,50,52,54,56,58,59,60,62,64,66,67,69,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],vn=[20,21,23],Ir=[20,21,23,47,59,60,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],_n=[1,12,20,21,22,23,24,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],tr=[47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],cn=[1,143],gn=[1,151],Xe=[1,152],Cn=[1,153],Tn=[1,154],Hn=[1,138],$n=[1,139],Nr=[1,135],En=[1,146],qn=[1,147],Yn=[1,148],Gn=[1,149],Zn=[1,150],er=[1,155],On=[1,156],Bn=[1,141],ln=[1,144],jn=[1,140],yn=[1,137],ai=[20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],gr=[1,159],ea=[20,21,22,23,26,47,59,60,84,98,99,102,104,105,115,116,117,118,119,120],Rn=[20,21,22,23,24,26,38,40,41,42,47,51,53,55,57,59,60,61,63,65,66,68,70,74,75,79,80,81,82,83,84,85,88,98,99,102,104,105,106,107,115,116,117,118,119,120],No=[12,21,22,24],va=[22,99],oi=[1,242],Fr=[1,237],Ur=[1,238],Zr=[1,246],Jr=[1,243],Or=[1,240],ti=[1,239],Pr=[1,241],Fi=[1,244],fi=[1,245],nr=[1,247],qr=[1,265],_a=[20,21,23,99],ei=[20,21,22,23,59,60,79,95,98,99,102,103,104,105,106],ba={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,link:44,node:45,vertex:46,AMP:47,STYLE_SEPARATOR:48,idString:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,ALPHA:59,COLON:60,PIPE:61,CYLINDERSTART:62,CYLINDEREND:63,DIAMOND_START:64,DIAMOND_STOP:65,TAGEND:66,TRAPSTART:67,TRAPEND:68,INVTRAPSTART:69,INVTRAPEND:70,linkStatement:71,arrowText:72,TESTSTR:73,START_LINK:74,LINK:75,textToken:76,STR:77,keywords:78,STYLE:79,LINKSTYLE:80,CLASSDEF:81,CLASS:82,CLICK:83,DOWN:84,UP:85,textNoTags:86,textNoTagsToken:87,DEFAULT:88,stylesOpt:89,alphaNum:90,CALLBACKNAME:91,CALLBACKARGS:92,HREF:93,LINK_TARGET:94,HEX:95,numList:96,INTERPOLATE:97,NUM:98,COMMA:99,style:100,styleComponent:101,MINUS:102,UNIT:103,BRKT:104,DOT:105,PCT:106,TAGSTART:107,alphaNumToken:108,idStringToken:109,alphaNumStatement:110,direction_tb:111,direction_bt:112,direction_rl:113,direction_lr:114,PUNCTUATION:115,UNICODE_TEXT:116,PLUS:117,EQUALS:118,MULT:119,UNDERSCORE:120,graphCodeTokens:121,ARROW_CROSS:122,ARROW_POINT:123,ARROW_CIRCLE:124,ARROW_OPEN:125,QUOTE:126,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",47:"AMP",48:"STYLE_SEPARATOR",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"ALPHA",60:"COLON",61:"PIPE",62:"CYLINDERSTART",63:"CYLINDEREND",64:"DIAMOND_START",65:"DIAMOND_STOP",66:"TAGEND",67:"TRAPSTART",68:"TRAPEND",69:"INVTRAPSTART",70:"INVTRAPEND",73:"TESTSTR",74:"START_LINK",75:"LINK",77:"STR",79:"STYLE",80:"LINKSTYLE",81:"CLASSDEF",82:"CLASS",83:"CLICK",84:"DOWN",85:"UP",88:"DEFAULT",91:"CALLBACKNAME",92:"CALLBACKARGS",93:"HREF",94:"LINK_TARGET",95:"HEX",97:"INTERPOLATE",98:"NUM",99:"COMMA",102:"MINUS",103:"UNIT",104:"BRKT",105:"DOT",106:"PCT",107:"TAGSTART",111:"direction_tb",112:"direction_bt",113:"direction_rl",114:"direction_lr",115:"PUNCTUATION",116:"UNICODE_TEXT",117:"PLUS",118:"EQUALS",119:"MULT",120:"UNDERSCORE",122:"ARROW_CROSS",123:"ARROW_POINT",124:"ARROW_CIRCLE",125:"ARROW_OPEN",126:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[45,1],[45,5],[45,3],[46,4],[46,6],[46,4],[46,4],[46,4],[46,8],[46,4],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,4],[46,4],[46,1],[44,2],[44,3],[44,3],[44,1],[44,3],[71,1],[72,3],[39,1],[39,2],[39,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[86,1],[86,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[96,1],[96,3],[89,1],[89,3],[100,1],[100,2],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[87,1],[87,1],[87,1],[87,1],[49,1],[49,2],[90,1],[90,2],[110,1],[110,1],[110,1],[110,1],[43,1],[43,1],[43,1],[43,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1]],performAction:function(en,Xn,An,Be,Kn,mt,Xr){var Xt=mt.length-1;switch(Kn){case 5:Be.parseDirective("%%{","open_directive");break;case 6:Be.parseDirective(mt[Xt],"type_directive");break;case 7:mt[Xt]=mt[Xt].trim().replace(/'/g,'"'),Be.parseDirective(mt[Xt],"arg_directive");break;case 8:Be.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:mt[Xt]!==[]&&mt[Xt-1].push(mt[Xt]),this.$=mt[Xt-1];break;case 12:case 78:case 80:case 92:case 148:case 150:case 151:case 74:case 146:this.$=mt[Xt];break;case 19:Be.setDirection("TB"),this.$="TB";break;case 20:Be.setDirection(mt[Xt-1]),this.$=mt[Xt-1];break;case 35:this.$=mt[Xt-1].nodes;break;case 41:this.$=Be.addSubGraph(mt[Xt-6],mt[Xt-1],mt[Xt-4]);break;case 42:this.$=Be.addSubGraph(mt[Xt-3],mt[Xt-1],mt[Xt-3]);break;case 43:this.$=Be.addSubGraph(void 0,mt[Xt-1],void 0);break;case 48:Be.addLink(mt[Xt-2].stmt,mt[Xt],mt[Xt-1]),this.$={stmt:mt[Xt],nodes:mt[Xt].concat(mt[Xt-2].nodes)};break;case 49:Be.addLink(mt[Xt-3].stmt,mt[Xt-1],mt[Xt-2]),this.$={stmt:mt[Xt-1],nodes:mt[Xt-1].concat(mt[Xt-3].nodes)};break;case 50:this.$={stmt:mt[Xt-1],nodes:mt[Xt-1]};break;case 51:this.$={stmt:mt[Xt],nodes:mt[Xt]};break;case 52:case 119:case 121:this.$=[mt[Xt]];break;case 53:this.$=mt[Xt-4].concat(mt[Xt]);break;case 54:this.$=[mt[Xt-2]],Be.setClass(mt[Xt-2],mt[Xt]);break;case 55:this.$=mt[Xt-3],Be.addVertex(mt[Xt-3],mt[Xt-1],"square");break;case 56:this.$=mt[Xt-5],Be.addVertex(mt[Xt-5],mt[Xt-2],"circle");break;case 57:this.$=mt[Xt-3],Be.addVertex(mt[Xt-3],mt[Xt-1],"ellipse");break;case 58:this.$=mt[Xt-3],Be.addVertex(mt[Xt-3],mt[Xt-1],"stadium");break;case 59:this.$=mt[Xt-3],Be.addVertex(mt[Xt-3],mt[Xt-1],"subroutine");break;case 60:this.$=mt[Xt-7],Be.addVertex(mt[Xt-7],mt[Xt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[mt[Xt-5],mt[Xt-3]]]));break;case 61:this.$=mt[Xt-3],Be.addVertex(mt[Xt-3],mt[Xt-1],"cylinder");break;case 62:this.$=mt[Xt-3],Be.addVertex(mt[Xt-3],mt[Xt-1],"round");break;case 63:this.$=mt[Xt-3],Be.addVertex(mt[Xt-3],mt[Xt-1],"diamond");break;case 64:this.$=mt[Xt-5],Be.addVertex(mt[Xt-5],mt[Xt-2],"hexagon");break;case 65:this.$=mt[Xt-3],Be.addVertex(mt[Xt-3],mt[Xt-1],"odd");break;case 66:this.$=mt[Xt-3],Be.addVertex(mt[Xt-3],mt[Xt-1],"trapezoid");break;case 67:this.$=mt[Xt-3],Be.addVertex(mt[Xt-3],mt[Xt-1],"inv_trapezoid");break;case 68:this.$=mt[Xt-3],Be.addVertex(mt[Xt-3],mt[Xt-1],"lean_right");break;case 69:this.$=mt[Xt-3],Be.addVertex(mt[Xt-3],mt[Xt-1],"lean_left");break;case 70:this.$=mt[Xt],Be.addVertex(mt[Xt]);break;case 71:mt[Xt-1].text=mt[Xt],this.$=mt[Xt-1];break;case 72:case 73:mt[Xt-2].text=mt[Xt-1],this.$=mt[Xt-2];break;case 75:var Pi=Be.destructLink(mt[Xt],mt[Xt-2]);this.$={type:Pi.type,stroke:Pi.stroke,length:Pi.length,text:mt[Xt-1]};break;case 76:Pi=Be.destructLink(mt[Xt]),this.$={type:Pi.type,stroke:Pi.stroke,length:Pi.length};break;case 77:this.$=mt[Xt-1];break;case 79:case 93:case 149:case 147:this.$=mt[Xt-1]+""+mt[Xt];break;case 94:case 95:this.$=mt[Xt-4],Be.addClass(mt[Xt-2],mt[Xt]);break;case 96:this.$=mt[Xt-4],Be.setClass(mt[Xt-2],mt[Xt]);break;case 97:case 105:this.$=mt[Xt-1],Be.setClickEvent(mt[Xt-1],mt[Xt]);break;case 98:case 106:this.$=mt[Xt-3],Be.setClickEvent(mt[Xt-3],mt[Xt-2]),Be.setTooltip(mt[Xt-3],mt[Xt]);break;case 99:this.$=mt[Xt-2],Be.setClickEvent(mt[Xt-2],mt[Xt-1],mt[Xt]);break;case 100:this.$=mt[Xt-4],Be.setClickEvent(mt[Xt-4],mt[Xt-3],mt[Xt-2]),Be.setTooltip(mt[Xt-4],mt[Xt]);break;case 101:case 107:this.$=mt[Xt-1],Be.setLink(mt[Xt-1],mt[Xt]);break;case 102:case 108:this.$=mt[Xt-3],Be.setLink(mt[Xt-3],mt[Xt-2]),Be.setTooltip(mt[Xt-3],mt[Xt]);break;case 103:case 109:this.$=mt[Xt-3],Be.setLink(mt[Xt-3],mt[Xt-2],mt[Xt]);break;case 104:case 110:this.$=mt[Xt-5],Be.setLink(mt[Xt-5],mt[Xt-4],mt[Xt]),Be.setTooltip(mt[Xt-5],mt[Xt-2]);break;case 111:this.$=mt[Xt-4],Be.addVertex(mt[Xt-2],void 0,void 0,mt[Xt]);break;case 112:case 114:this.$=mt[Xt-4],Be.updateLink(mt[Xt-2],mt[Xt]);break;case 113:this.$=mt[Xt-4],Be.updateLink([mt[Xt-2]],mt[Xt]);break;case 115:this.$=mt[Xt-8],Be.updateLinkInterpolate([mt[Xt-6]],mt[Xt-2]),Be.updateLink([mt[Xt-6]],mt[Xt]);break;case 116:this.$=mt[Xt-8],Be.updateLinkInterpolate(mt[Xt-6],mt[Xt-2]),Be.updateLink(mt[Xt-6],mt[Xt]);break;case 117:this.$=mt[Xt-6],Be.updateLinkInterpolate([mt[Xt-4]],mt[Xt]);break;case 118:this.$=mt[Xt-6],Be.updateLinkInterpolate(mt[Xt-4],mt[Xt]);break;case 120:case 122:mt[Xt-2].push(mt[Xt]),this.$=mt[Xt-2];break;case 124:this.$=mt[Xt-1]+mt[Xt];break;case 152:this.$="v";break;case 153:this.$="-";break;case 154:this.$={stmt:"dir",value:"TB"};break;case 155:this.$={stmt:"dir",value:"BT"};break;case 156:this.$={stmt:"dir",value:"RL"};break;case 157:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:y,16:4,21:p,22:b,24:T},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:y,16:4,21:p,22:b,24:T},c(k,D,{17:11}),{7:12,13:[1,13]},{16:14,21:p,22:b,24:T},{16:15,21:p,22:b,24:T},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:O,21:I,22:z,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:q,43:31,45:32,46:42,47:V,49:43,59:X,60:it,79:tt,80:rt,81:ut,82:Ct,83:et,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,109:44,111:Pt,112:ge,113:pe,114:de,115:Rt,116:Gt,117:oe,118:le,119:ye,120:It},{8:61,10:[1,62],15:$e},c([10,15],[2,6]),c(k,[2,17]),c(k,[2,18]),c(k,[2,19]),{20:[1,65],21:[1,66],22:he,27:64,30:67},c(Yt,[2,11]),c(Yt,[2,12]),c(Yt,[2,13]),c(Yt,[2,14]),c(Yt,[2,15]),c(Yt,[2,16]),{9:69,20:Kt,21:ct,23:ee,44:70,71:74,74:[1,75],75:[1,76]},{9:77,20:Kt,21:ct,23:ee},{9:78,20:Kt,21:ct,23:ee},{9:79,20:Kt,21:ct,23:ee},{9:80,20:Kt,21:ct,23:ee},{9:81,20:Kt,21:ct,23:ee},{9:83,20:Kt,21:ct,22:[1,82],23:ee},c(Yt,[2,44]),c(Nt,[2,51],{30:84,22:he}),{22:[1,85]},{22:[1,86]},{22:[1,87]},{22:[1,88]},{26:Vt,47:Ut,59:Ot,60:ae,77:[1,92],84:Qe,90:91,91:[1,89],93:[1,90],98:_e,99:Ce,102:un,104:Ve,105:Le,108:95,110:93,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},c(Yt,[2,154]),c(Yt,[2,155]),c(Yt,[2,156]),c(Yt,[2,157]),c(Un,[2,52],{48:[1,111]}),c(Te,[2,70],{109:123,40:[1,112],47:V,50:[1,113],52:[1,114],54:[1,115],56:[1,116],58:[1,117],59:X,60:it,62:[1,118],64:[1,119],66:[1,120],67:[1,121],69:[1,122],84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,115:Rt,116:Gt,117:oe,118:le,119:ye,120:It}),c(tn,[2,146]),c(tn,[2,171]),c(tn,[2,172]),c(tn,[2,173]),c(tn,[2,174]),c(tn,[2,175]),c(tn,[2,176]),c(tn,[2,177]),c(tn,[2,178]),c(tn,[2,179]),c(tn,[2,180]),c(tn,[2,181]),c(tn,[2,182]),c(tn,[2,183]),c(tn,[2,184]),c(tn,[2,185]),c(tn,[2,186]),{9:124,20:Kt,21:ct,23:ee},{11:125,14:[1,126]},c(vn,[2,8]),c(k,[2,20]),c(k,[2,26]),c(k,[2,27]),{21:[1,127]},c(Ir,[2,34],{30:128,22:he}),c(Yt,[2,35]),{45:129,46:42,47:V,49:43,59:X,60:it,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,109:44,115:Rt,116:Gt,117:oe,118:le,119:ye,120:It},c(_n,[2,45]),c(_n,[2,46]),c(_n,[2,47]),c(tr,[2,74],{72:130,61:[1,132],73:[1,131]}),{22:cn,24:gn,26:Xe,38:Cn,39:133,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},c([47,59,60,61,73,84,88,98,99,102,104,105,115,116,117,118,119,120],[2,76]),c(Yt,[2,36]),c(Yt,[2,37]),c(Yt,[2,38]),c(Yt,[2,39]),c(Yt,[2,40]),{22:cn,24:gn,26:Xe,38:Cn,39:157,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},c(ai,D,{17:158}),c(Nt,[2,50],{47:gr}),{26:Vt,47:Ut,59:Ot,60:ae,84:Qe,90:160,95:[1,161],98:_e,99:Ce,102:un,104:Ve,105:Le,108:95,110:93,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{88:[1,162],96:163,98:[1,164]},{26:Vt,47:Ut,59:Ot,60:ae,84:Qe,88:[1,165],90:166,98:_e,99:Ce,102:un,104:Ve,105:Le,108:95,110:93,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{26:Vt,47:Ut,59:Ot,60:ae,84:Qe,90:167,98:_e,99:Ce,102:un,104:Ve,105:Le,108:95,110:93,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},c(vn,[2,97],{22:[1,168],92:[1,169]}),c(vn,[2,101],{22:[1,170]}),c(vn,[2,105],{108:95,110:172,22:[1,171],26:Vt,47:Ut,59:Ot,60:ae,84:Qe,98:_e,99:Ce,102:un,104:Ve,105:Le,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne}),c(vn,[2,107],{22:[1,173]}),c(ea,[2,148]),c(ea,[2,150]),c(ea,[2,151]),c(ea,[2,152]),c(ea,[2,153]),c(Rn,[2,158]),c(Rn,[2,159]),c(Rn,[2,160]),c(Rn,[2,161]),c(Rn,[2,162]),c(Rn,[2,163]),c(Rn,[2,164]),c(Rn,[2,165]),c(Rn,[2,166]),c(Rn,[2,167]),c(Rn,[2,168]),c(Rn,[2,169]),c(Rn,[2,170]),{47:V,49:174,59:X,60:it,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,109:44,115:Rt,116:Gt,117:oe,118:le,119:ye,120:It},{22:cn,24:gn,26:Xe,38:Cn,39:175,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,39:177,42:Tn,47:Ut,50:[1,176],59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,39:178,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,39:179,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,39:180,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{59:[1,181]},{22:cn,24:gn,26:Xe,38:Cn,39:182,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,39:183,42:Tn,47:Ut,59:Ot,60:ae,64:[1,184],66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,39:185,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,39:186,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,39:187,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},c(tn,[2,147]),c(No,[2,3]),{8:188,15:$e},{15:[2,7]},c(k,[2,28]),c(Ir,[2,33]),c(Nt,[2,48],{30:189,22:he}),c(tr,[2,71],{22:[1,190]}),{22:[1,191]},{22:cn,24:gn,26:Xe,38:Cn,39:192,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,75:[1,193],76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},c(Rn,[2,78]),c(Rn,[2,80]),c(Rn,[2,136]),c(Rn,[2,137]),c(Rn,[2,138]),c(Rn,[2,139]),c(Rn,[2,140]),c(Rn,[2,141]),c(Rn,[2,142]),c(Rn,[2,143]),c(Rn,[2,144]),c(Rn,[2,145]),c(Rn,[2,81]),c(Rn,[2,82]),c(Rn,[2,83]),c(Rn,[2,84]),c(Rn,[2,85]),c(Rn,[2,86]),c(Rn,[2,87]),c(Rn,[2,88]),c(Rn,[2,89]),c(Rn,[2,90]),c(Rn,[2,91]),{9:196,20:Kt,21:ct,22:cn,23:ee,24:gn,26:Xe,38:Cn,40:[1,195],42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{18:18,19:19,20:O,21:I,22:z,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:q,42:[1,197],43:31,45:32,46:42,47:V,49:43,59:X,60:it,79:tt,80:rt,81:ut,82:Ct,83:et,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,109:44,111:Pt,112:ge,113:pe,114:de,115:Rt,116:Gt,117:oe,118:le,119:ye,120:It},{22:he,30:198},{22:[1,199],26:Vt,47:Ut,59:Ot,60:ae,84:Qe,98:_e,99:Ce,102:un,104:Ve,105:Le,108:95,110:172,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:[1,200]},{22:[1,201]},{22:[1,202],99:[1,203]},c(va,[2,119]),{22:[1,204]},{22:[1,205],26:Vt,47:Ut,59:Ot,60:ae,84:Qe,98:_e,99:Ce,102:un,104:Ve,105:Le,108:95,110:172,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:[1,206],26:Vt,47:Ut,59:Ot,60:ae,84:Qe,98:_e,99:Ce,102:un,104:Ve,105:Le,108:95,110:172,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{77:[1,207]},c(vn,[2,99],{22:[1,208]}),{77:[1,209],94:[1,210]},{77:[1,211]},c(ea,[2,149]),{77:[1,212],94:[1,213]},c(Un,[2,54],{109:123,47:V,59:X,60:it,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,115:Rt,116:Gt,117:oe,118:le,119:ye,120:It}),{22:cn,24:gn,26:Xe,38:Cn,41:[1,214],42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,39:215,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,42:Tn,47:Ut,51:[1,216],59:Ot,60:ae,66:Hn,74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,42:Tn,47:Ut,53:[1,217],59:Ot,60:ae,66:Hn,74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,42:Tn,47:Ut,55:[1,218],59:Ot,60:ae,66:Hn,74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,42:Tn,47:Ut,57:[1,219],59:Ot,60:ae,66:Hn,74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{60:[1,220]},{22:cn,24:gn,26:Xe,38:Cn,42:Tn,47:Ut,59:Ot,60:ae,63:[1,221],66:Hn,74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,42:Tn,47:Ut,59:Ot,60:ae,65:[1,222],66:Hn,74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,39:223,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,41:[1,224],42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,68:[1,225],70:[1,226],74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{22:cn,24:gn,26:Xe,38:Cn,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,68:[1,228],70:[1,227],74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{9:229,20:Kt,21:ct,23:ee},c(Nt,[2,49],{47:gr}),c(tr,[2,73]),c(tr,[2,72]),{22:cn,24:gn,26:Xe,38:Cn,42:Tn,47:Ut,59:Ot,60:ae,61:[1,230],66:Hn,74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},c(tr,[2,75]),c(Rn,[2,79]),{22:cn,24:gn,26:Xe,38:Cn,39:231,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},c(ai,D,{17:232}),c(Yt,[2,43]),{46:233,47:V,49:43,59:X,60:it,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,109:44,115:Rt,116:Gt,117:oe,118:le,119:ye,120:It},{22:oi,59:Fr,60:Ur,79:Zr,89:234,95:Jr,98:Or,100:235,101:236,102:ti,103:Pr,104:Fi,105:fi,106:nr},{22:oi,59:Fr,60:Ur,79:Zr,89:248,95:Jr,98:Or,100:235,101:236,102:ti,103:Pr,104:Fi,105:fi,106:nr},{22:oi,59:Fr,60:Ur,79:Zr,89:249,95:Jr,97:[1,250],98:Or,100:235,101:236,102:ti,103:Pr,104:Fi,105:fi,106:nr},{22:oi,59:Fr,60:Ur,79:Zr,89:251,95:Jr,97:[1,252],98:Or,100:235,101:236,102:ti,103:Pr,104:Fi,105:fi,106:nr},{98:[1,253]},{22:oi,59:Fr,60:Ur,79:Zr,89:254,95:Jr,98:Or,100:235,101:236,102:ti,103:Pr,104:Fi,105:fi,106:nr},{22:oi,59:Fr,60:Ur,79:Zr,89:255,95:Jr,98:Or,100:235,101:236,102:ti,103:Pr,104:Fi,105:fi,106:nr},{26:Vt,47:Ut,59:Ot,60:ae,84:Qe,90:256,98:_e,99:Ce,102:un,104:Ve,105:Le,108:95,110:93,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},c(vn,[2,98]),{77:[1,257]},c(vn,[2,102],{22:[1,258]}),c(vn,[2,103]),c(vn,[2,106]),c(vn,[2,108],{22:[1,259]}),c(vn,[2,109]),c(Te,[2,55]),{22:cn,24:gn,26:Xe,38:Cn,42:Tn,47:Ut,51:[1,260],59:Ot,60:ae,66:Hn,74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},c(Te,[2,62]),c(Te,[2,57]),c(Te,[2,58]),c(Te,[2,59]),{59:[1,261]},c(Te,[2,61]),c(Te,[2,63]),{22:cn,24:gn,26:Xe,38:Cn,42:Tn,47:Ut,59:Ot,60:ae,65:[1,262],66:Hn,74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},c(Te,[2,65]),c(Te,[2,66]),c(Te,[2,68]),c(Te,[2,67]),c(Te,[2,69]),c(No,[2,4]),c([22,47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],[2,77]),{22:cn,24:gn,26:Xe,38:Cn,41:[1,263],42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{18:18,19:19,20:O,21:I,22:z,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:q,42:[1,264],43:31,45:32,46:42,47:V,49:43,59:X,60:it,79:tt,80:rt,81:ut,82:Ct,83:et,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,109:44,111:Pt,112:ge,113:pe,114:de,115:Rt,116:Gt,117:oe,118:le,119:ye,120:It},c(Un,[2,53]),c(vn,[2,111],{99:qr}),c(_a,[2,121],{101:266,22:oi,59:Fr,60:Ur,79:Zr,95:Jr,98:Or,102:ti,103:Pr,104:Fi,105:fi,106:nr}),c(ei,[2,123]),c(ei,[2,125]),c(ei,[2,126]),c(ei,[2,127]),c(ei,[2,128]),c(ei,[2,129]),c(ei,[2,130]),c(ei,[2,131]),c(ei,[2,132]),c(ei,[2,133]),c(ei,[2,134]),c(ei,[2,135]),c(vn,[2,112],{99:qr}),c(vn,[2,113],{99:qr}),{22:[1,267]},c(vn,[2,114],{99:qr}),{22:[1,268]},c(va,[2,120]),c(vn,[2,94],{99:qr}),c(vn,[2,95],{99:qr}),c(vn,[2,96],{108:95,110:172,26:Vt,47:Ut,59:Ot,60:ae,84:Qe,98:_e,99:Ce,102:un,104:Ve,105:Le,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne}),c(vn,[2,100]),{94:[1,269]},{94:[1,270]},{51:[1,271]},{61:[1,272]},{65:[1,273]},{9:274,20:Kt,21:ct,23:ee},c(Yt,[2,42]),{22:oi,59:Fr,60:Ur,79:Zr,95:Jr,98:Or,100:275,101:236,102:ti,103:Pr,104:Fi,105:fi,106:nr},c(ei,[2,124]),{26:Vt,47:Ut,59:Ot,60:ae,84:Qe,90:276,98:_e,99:Ce,102:un,104:Ve,105:Le,108:95,110:93,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{26:Vt,47:Ut,59:Ot,60:ae,84:Qe,90:277,98:_e,99:Ce,102:un,104:Ve,105:Le,108:95,110:93,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},c(vn,[2,104]),c(vn,[2,110]),c(Te,[2,56]),{22:cn,24:gn,26:Xe,38:Cn,39:278,42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:134,77:Nr,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},c(Te,[2,64]),c(ai,D,{17:279}),c(_a,[2,122],{101:266,22:oi,59:Fr,60:Ur,79:Zr,95:Jr,98:Or,102:ti,103:Pr,104:Fi,105:fi,106:nr}),c(vn,[2,117],{108:95,110:172,22:[1,280],26:Vt,47:Ut,59:Ot,60:ae,84:Qe,98:_e,99:Ce,102:un,104:Ve,105:Le,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne}),c(vn,[2,118],{108:95,110:172,22:[1,281],26:Vt,47:Ut,59:Ot,60:ae,84:Qe,98:_e,99:Ce,102:un,104:Ve,105:Le,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne}),{22:cn,24:gn,26:Xe,38:Cn,41:[1,282],42:Tn,47:Ut,59:Ot,60:ae,66:Hn,74:$n,76:194,78:145,79:En,80:qn,81:Yn,82:Gn,83:Zn,84:er,85:On,87:136,88:Bn,98:_e,99:Ce,102:ln,104:Ve,105:Le,106:jn,107:yn,108:142,115:ke,116:Je,117:Ye,118:Ge,119:Ze,120:Ne},{18:18,19:19,20:O,21:I,22:z,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:q,42:[1,283],43:31,45:32,46:42,47:V,49:43,59:X,60:it,79:tt,80:rt,81:ut,82:Ct,83:et,84:K,88:ht,98:xt,99:St,102:pt,104:wt,105:Ht,109:44,111:Pt,112:ge,113:pe,114:de,115:Rt,116:Gt,117:oe,118:le,119:ye,120:It},{22:oi,59:Fr,60:Ur,79:Zr,89:284,95:Jr,98:Or,100:235,101:236,102:ti,103:Pr,104:Fi,105:fi,106:nr},{22:oi,59:Fr,60:Ur,79:Zr,89:285,95:Jr,98:Or,100:235,101:236,102:ti,103:Pr,104:Fi,105:fi,106:nr},c(Te,[2,60]),c(Yt,[2,41]),c(vn,[2,115],{99:qr}),c(vn,[2,116],{99:qr})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],126:[2,7]},parseError:function(en,Xn){if(!Xn.recoverable){var An=new Error(en);throw An.hash=Xn,An}this.trace(en)},parse:function(en){var Xn=this,An=[0],Be=[],Kn=[null],mt=[],Xr=this.table,Xt="",Pi=0,da=0,Xa=0,vo=2,Oo=1,Lo=mt.slice.call(arguments,1),Vr=Object.create(this.lexer),na={yy:{}};for(var Dn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Dn)&&(na.yy[Dn]=this.yy[Dn]);Vr.setInput(en,na.yy),na.yy.lexer=Vr,na.yy.parser=this,Vr.yylloc===void 0&&(Vr.yylloc={});var Fa=Vr.yylloc;mt.push(Fa);var Ka=Vr.options&&Vr.options.ranges;function yr(){var Ft;return typeof(Ft=Be.pop()||Vr.lex()||Oo)!="number"&&(Ft instanceof Array&&(Ft=(Be=Ft).pop()),Ft=Xn.symbols_[Ft]||Ft),Ft}typeof na.yy.parseError=="function"?this.parseError=na.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Cr,xi,ni,Hr,$r,pi,Kr,ra,Vi,Yi={};;){if(ni=An[An.length-1],this.defaultActions[ni]?Hr=this.defaultActions[ni]:(Cr==null&&(Cr=yr()),Hr=Xr[ni]&&Xr[ni][Cr]),Hr===void 0||!Hr.length||!Hr[0]){var _o="";for(pi in Vi=[],Xr[ni])this.terminals_[pi]&&pi>vo&&Vi.push("'"+this.terminals_[pi]+"'");_o=Vr.showPosition?"Parse error on line "+(Pi+1)+`:
`+Vr.showPosition()+`
Expecting `+Vi.join(", ")+", got '"+(this.terminals_[Cr]||Cr)+"'":"Parse error on line "+(Pi+1)+": Unexpected "+(Cr==Oo?"end of input":"'"+(this.terminals_[Cr]||Cr)+"'"),this.parseError(_o,{text:Vr.match,token:this.terminals_[Cr]||Cr,line:Vr.yylineno,loc:Fa,expected:Vi})}if(Hr[0]instanceof Array&&Hr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ni+", token: "+Cr);switch(Hr[0]){case 1:An.push(Cr),Kn.push(Vr.yytext),mt.push(Vr.yylloc),An.push(Hr[1]),Cr=null,xi?(Cr=xi,xi=null):(da=Vr.yyleng,Xt=Vr.yytext,Pi=Vr.yylineno,Fa=Vr.yylloc,Xa>0);break;case 2:if(Kr=this.productions_[Hr[1]][1],Yi.$=Kn[Kn.length-Kr],Yi._$={first_line:mt[mt.length-(Kr||1)].first_line,last_line:mt[mt.length-1].last_line,first_column:mt[mt.length-(Kr||1)].first_column,last_column:mt[mt.length-1].last_column},Ka&&(Yi._$.range=[mt[mt.length-(Kr||1)].range[0],mt[mt.length-1].range[1]]),($r=this.performAction.apply(Yi,[Xt,da,Pi,na.yy,Hr[1],Kn,mt].concat(Lo)))!==void 0)return $r;Kr&&(An=An.slice(0,-1*Kr*2),Kn=Kn.slice(0,-1*Kr),mt=mt.slice(0,-1*Kr)),An.push(this.productions_[Hr[1]][0]),Kn.push(Yi.$),mt.push(Yi._$),ra=Xr[An[An.length-2]][An[An.length-1]],An.push(ra);break;case 3:return!0}}return!0}},mo={EOF:1,parseError:function(en,Xn){if(!this.yy.parser)throw new Error(en);this.yy.parser.parseError(en,Xn)},setInput:function(en,Xn){return this.yy=Xn||this.yy||{},this._input=en,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var en=this._input[0];return this.yytext+=en,this.yyleng++,this.offset++,this.match+=en,this.matched+=en,en.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),en},unput:function(en){var Xn=en.length,An=en.split(/(?:\r\n?|\n)/g);this._input=en+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Xn),this.offset-=Xn;var Be=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),An.length-1&&(this.yylineno-=An.length-1);var Kn=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:An?(An.length===Be.length?this.yylloc.first_column:0)+Be[Be.length-An.length].length-An[0].length:this.yylloc.first_column-Xn},this.options.ranges&&(this.yylloc.range=[Kn[0],Kn[0]+this.yyleng-Xn]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(en){this.unput(this.match.slice(en))},pastInput:function(){var en=this.matched.substr(0,this.matched.length-this.match.length);return(en.length>20?"...":"")+en.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var en=this.match;return en.length<20&&(en+=this._input.substr(0,20-en.length)),(en.substr(0,20)+(en.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var en=this.pastInput(),Xn=new Array(en.length+1).join("-");return en+this.upcomingInput()+`
`+Xn+"^"},test_match:function(en,Xn){var An,Be,Kn;if(this.options.backtrack_lexer&&(Kn={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Kn.yylloc.range=this.yylloc.range.slice(0))),(Be=en[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Be.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Be?Be[Be.length-1].length-Be[Be.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+en[0].length},this.yytext+=en[0],this.match+=en[0],this.matches=en,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(en[0].length),this.matched+=en[0],An=this.performAction.call(this,this.yy,this,Xn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),An)return An;if(this._backtrack){for(var mt in Kn)this[mt]=Kn[mt];return!1}return!1},next:function(){if(this.done)return this.EOF;var en,Xn,An,Be;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Kn=this._currentRules(),mt=0;mt<Kn.length;mt++)if((An=this._input.match(this.rules[Kn[mt]]))&&(!Xn||An[0].length>Xn[0].length)){if(Xn=An,Be=mt,this.options.backtrack_lexer){if((en=this.test_match(An,Kn[mt]))!==!1)return en;if(this._backtrack){Xn=!1;continue}return!1}if(!this.options.flex)break}return Xn?(en=this.test_match(Xn,Kn[Be]))!==!1&&en:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(en){this.conditionStack.push(en)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(en){return(en=this.conditionStack.length-1-Math.abs(en||0))>=0?this.conditionStack[en]:"INITIAL"},pushState:function(en){this.begin(en)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(en,Xn,An,Be){switch(An){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:this.begin("string");break;case 8:case 17:case 20:case 23:case 26:this.popState();break;case 9:return"STR";case 10:return 79;case 11:return 88;case 12:return 80;case 13:return 97;case 14:return 81;case 15:return 82;case 16:this.begin("href");break;case 18:return 93;case 19:this.begin("callbackname");break;case 21:this.popState(),this.begin("callbackargs");break;case 22:return 91;case 24:return 92;case 25:this.begin("click");break;case 27:return 83;case 28:case 29:return en.lex.firstGraph()&&this.begin("dir"),24;case 30:return 38;case 31:return 42;case 32:case 33:case 34:case 35:return 94;case 36:return this.popState(),25;case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:return this.popState(),26;case 47:return 111;case 48:return 112;case 49:return 113;case 50:return 114;case 51:return 98;case 52:return 104;case 53:return 48;case 54:return 60;case 55:return 47;case 56:return 20;case 57:return 99;case 58:return 119;case 59:case 60:case 61:return 75;case 62:case 63:case 64:return 74;case 65:return 52;case 66:return 53;case 67:return 54;case 68:return 55;case 69:return 56;case 70:return 57;case 71:return 58;case 72:return 62;case 73:return 63;case 74:return 102;case 75:return 105;case 76:return 120;case 77:return 117;case 78:return 106;case 79:case 80:return 118;case 81:return 107;case 82:return 66;case 83:return 85;case 84:return"SEP";case 85:return 84;case 86:return 59;case 87:return 68;case 88:return 67;case 89:return 70;case 90:return 69;case 91:return 115;case 92:return 116;case 93:return 61;case 94:return 50;case 95:return 51;case 96:return 40;case 97:return 41;case 98:return 64;case 99:return 65;case 100:return 126;case 101:return 21;case 102:return 22;case 103:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[23,24],inclusive:!1},callbackname:{rules:[20,21,22],inclusive:!1},href:{rules:[17,18],inclusive:!1},click:{rules:[26,27],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[36,37,38,39,40,41,42,43,44,45,46],inclusive:!1},string:{rules:[8,9],inclusive:!1},INITIAL:{rules:[0,5,6,7,10,11,12,13,14,15,16,19,25,28,29,30,31,32,33,34,35,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],inclusive:!0}}};function di(){this.yy={}}return ba.lexer=mo,di.prototype=ba,ba.Parser=di,new di}();s.parser=h,s.Parser=h.Parser,s.parse=function(){return h.parse.apply(h,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(5354).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},9959:(r,s,o)=>{r=o.nmd(r);var h=function(){var c=function(K,ht,xt,St){for(xt=xt||{},St=K.length;St--;xt[K[St]]=ht);return xt},y=[1,3],p=[1,5],b=[7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],T=[1,15],k=[1,16],D=[1,17],O=[1,18],I=[1,19],z=[1,20],H=[1,21],q=[1,22],V=[1,23],X=[1,25],it=[1,27],tt=[1,30],rt=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],ut={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,includes:17,todayMarker:18,title:19,section:20,clickStatement:21,taskTxt:22,taskData:23,openDirective:24,typeDirective:25,closeDirective:26,":":27,argDirective:28,click:29,callbackname:30,callbackargs:31,href:32,clickStatementDebug:33,open_directive:34,type_directive:35,arg_directive:36,close_directive:37,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"excludes",17:"includes",18:"todayMarker",19:"title",20:"section",22:"taskTxt",23:"taskData",27:":",29:"click",30:"callbackname",31:"callbackargs",32:"href",34:"open_directive",35:"type_directive",36:"arg_directive",37:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[21,2],[21,3],[21,3],[21,4],[21,3],[21,4],[21,2],[33,2],[33,3],[33,3],[33,4],[33,3],[33,4],[33,2],[24,1],[25,1],[28,1],[26,1]],performAction:function(K,ht,xt,St,pt,wt,Ht){var Pt=wt.length-1;switch(pt){case 2:return wt[Pt-1];case 3:case 7:case 8:this.$=[];break;case 4:wt[Pt-1].push(wt[Pt]),this.$=wt[Pt-1];break;case 5:case 6:this.$=wt[Pt];break;case 9:St.setDateFormat(wt[Pt].substr(11)),this.$=wt[Pt].substr(11);break;case 10:St.enableInclusiveEndDates(),this.$=wt[Pt].substr(18);break;case 11:St.TopAxis(),this.$=wt[Pt].substr(8);break;case 12:St.setAxisFormat(wt[Pt].substr(11)),this.$=wt[Pt].substr(11);break;case 13:St.setExcludes(wt[Pt].substr(9)),this.$=wt[Pt].substr(9);break;case 14:St.setIncludes(wt[Pt].substr(9)),this.$=wt[Pt].substr(9);break;case 15:St.setTodayMarker(wt[Pt].substr(12)),this.$=wt[Pt].substr(12);break;case 16:St.setTitle(wt[Pt].substr(6)),this.$=wt[Pt].substr(6);break;case 17:St.addSection(wt[Pt].substr(8)),this.$=wt[Pt].substr(8);break;case 19:St.addTask(wt[Pt-1],wt[Pt]),this.$="task";break;case 23:this.$=wt[Pt-1],St.setClickEvent(wt[Pt-1],wt[Pt],null);break;case 24:this.$=wt[Pt-2],St.setClickEvent(wt[Pt-2],wt[Pt-1],wt[Pt]);break;case 25:this.$=wt[Pt-2],St.setClickEvent(wt[Pt-2],wt[Pt-1],null),St.setLink(wt[Pt-2],wt[Pt]);break;case 26:this.$=wt[Pt-3],St.setClickEvent(wt[Pt-3],wt[Pt-2],wt[Pt-1]),St.setLink(wt[Pt-3],wt[Pt]);break;case 27:this.$=wt[Pt-2],St.setClickEvent(wt[Pt-2],wt[Pt],null),St.setLink(wt[Pt-2],wt[Pt-1]);break;case 28:this.$=wt[Pt-3],St.setClickEvent(wt[Pt-3],wt[Pt-1],wt[Pt]),St.setLink(wt[Pt-3],wt[Pt-2]);break;case 29:this.$=wt[Pt-1],St.setLink(wt[Pt-1],wt[Pt]);break;case 30:case 36:this.$=wt[Pt-1]+" "+wt[Pt];break;case 31:case 32:case 34:this.$=wt[Pt-2]+" "+wt[Pt-1]+" "+wt[Pt];break;case 33:case 35:this.$=wt[Pt-3]+" "+wt[Pt-2]+" "+wt[Pt-1]+" "+wt[Pt];break;case 37:St.parseDirective("%%{","open_directive");break;case 38:St.parseDirective(wt[Pt],"type_directive");break;case 39:wt[Pt]=wt[Pt].trim().replace(/'/g,'"'),St.parseDirective(wt[Pt],"arg_directive");break;case 40:St.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:y,24:4,34:p},{1:[3]},{3:6,4:2,5:y,24:4,34:p},c(b,[2,3],{6:7}),{25:8,35:[1,9]},{35:[2,37]},{1:[2,1]},{4:26,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:T,13:k,14:D,15:O,16:I,17:z,18:H,19:q,20:V,21:24,22:X,24:4,29:it,34:p},{26:28,27:[1,29],37:tt},c([27,37],[2,38]),c(b,[2,8],{1:[2,2]}),c(b,[2,4]),{4:26,10:31,12:T,13:k,14:D,15:O,16:I,17:z,18:H,19:q,20:V,21:24,22:X,24:4,29:it,34:p},c(b,[2,6]),c(b,[2,7]),c(b,[2,9]),c(b,[2,10]),c(b,[2,11]),c(b,[2,12]),c(b,[2,13]),c(b,[2,14]),c(b,[2,15]),c(b,[2,16]),c(b,[2,17]),c(b,[2,18]),{23:[1,32]},c(b,[2,20]),{30:[1,33],32:[1,34]},{11:[1,35]},{28:36,36:[1,37]},{11:[2,40]},c(b,[2,5]),c(b,[2,19]),c(b,[2,23],{31:[1,38],32:[1,39]}),c(b,[2,29],{30:[1,40]}),c(rt,[2,21]),{26:41,37:tt},{37:[2,39]},c(b,[2,24],{32:[1,42]}),c(b,[2,25]),c(b,[2,27],{31:[1,43]}),{11:[1,44]},c(b,[2,26]),c(b,[2,28]),c(rt,[2,22])],defaultActions:{5:[2,37],6:[2,1],30:[2,40],37:[2,39]},parseError:function(K,ht){if(!ht.recoverable){var xt=new Error(K);throw xt.hash=ht,xt}this.trace(K)},parse:function(K){var ht=this,xt=[0],St=[],pt=[null],wt=[],Ht=this.table,Pt="",ge=0,pe=0,de=0,Rt=2,Gt=1,oe=wt.slice.call(arguments,1),le=Object.create(this.lexer),ye={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(ye.yy[It]=this.yy[It]);le.setInput(K,ye.yy),ye.yy.lexer=le,ye.yy.parser=this,le.yylloc===void 0&&(le.yylloc={});var $e=le.yylloc;wt.push($e);var he=le.options&&le.options.ranges;function Yt(){var un;return typeof(un=St.pop()||le.lex()||Gt)!="number"&&(un instanceof Array&&(un=(St=un).pop()),un=ht.symbols_[un]||un),un}typeof ye.yy.parseError=="function"?this.parseError=ye.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Kt,ct,ee,Nt,Vt,Ut,Ot,ae,Qe,_e={};;){if(ee=xt[xt.length-1],this.defaultActions[ee]?Nt=this.defaultActions[ee]:(Kt==null&&(Kt=Yt()),Nt=Ht[ee]&&Ht[ee][Kt]),Nt===void 0||!Nt.length||!Nt[0]){var Ce="";for(Ut in Qe=[],Ht[ee])this.terminals_[Ut]&&Ut>Rt&&Qe.push("'"+this.terminals_[Ut]+"'");Ce=le.showPosition?"Parse error on line "+(ge+1)+`:
`+le.showPosition()+`
Expecting `+Qe.join(", ")+", got '"+(this.terminals_[Kt]||Kt)+"'":"Parse error on line "+(ge+1)+": Unexpected "+(Kt==Gt?"end of input":"'"+(this.terminals_[Kt]||Kt)+"'"),this.parseError(Ce,{text:le.match,token:this.terminals_[Kt]||Kt,line:le.yylineno,loc:$e,expected:Qe})}if(Nt[0]instanceof Array&&Nt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ee+", token: "+Kt);switch(Nt[0]){case 1:xt.push(Kt),pt.push(le.yytext),wt.push(le.yylloc),xt.push(Nt[1]),Kt=null,ct?(Kt=ct,ct=null):(pe=le.yyleng,Pt=le.yytext,ge=le.yylineno,$e=le.yylloc,de>0);break;case 2:if(Ot=this.productions_[Nt[1]][1],_e.$=pt[pt.length-Ot],_e._$={first_line:wt[wt.length-(Ot||1)].first_line,last_line:wt[wt.length-1].last_line,first_column:wt[wt.length-(Ot||1)].first_column,last_column:wt[wt.length-1].last_column},he&&(_e._$.range=[wt[wt.length-(Ot||1)].range[0],wt[wt.length-1].range[1]]),(Vt=this.performAction.apply(_e,[Pt,pe,ge,ye.yy,Nt[1],pt,wt].concat(oe)))!==void 0)return Vt;Ot&&(xt=xt.slice(0,-1*Ot*2),pt=pt.slice(0,-1*Ot),wt=wt.slice(0,-1*Ot)),xt.push(this.productions_[Nt[1]][0]),pt.push(_e.$),wt.push(_e._$),ae=Ht[xt[xt.length-2]][xt[xt.length-1]],xt.push(ae);break;case 3:return!0}}return!0}},Ct={EOF:1,parseError:function(K,ht){if(!this.yy.parser)throw new Error(K);this.yy.parser.parseError(K,ht)},setInput:function(K,ht){return this.yy=ht||this.yy||{},this._input=K,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var K=this._input[0];return this.yytext+=K,this.yyleng++,this.offset++,this.match+=K,this.matched+=K,K.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),K},unput:function(K){var ht=K.length,xt=K.split(/(?:\r\n?|\n)/g);this._input=K+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ht),this.offset-=ht;var St=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),xt.length-1&&(this.yylineno-=xt.length-1);var pt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:xt?(xt.length===St.length?this.yylloc.first_column:0)+St[St.length-xt.length].length-xt[0].length:this.yylloc.first_column-ht},this.options.ranges&&(this.yylloc.range=[pt[0],pt[0]+this.yyleng-ht]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(K){this.unput(this.match.slice(K))},pastInput:function(){var K=this.matched.substr(0,this.matched.length-this.match.length);return(K.length>20?"...":"")+K.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var K=this.match;return K.length<20&&(K+=this._input.substr(0,20-K.length)),(K.substr(0,20)+(K.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var K=this.pastInput(),ht=new Array(K.length+1).join("-");return K+this.upcomingInput()+`
`+ht+"^"},test_match:function(K,ht){var xt,St,pt;if(this.options.backtrack_lexer&&(pt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(pt.yylloc.range=this.yylloc.range.slice(0))),(St=K[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=St.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:St?St[St.length-1].length-St[St.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+K[0].length},this.yytext+=K[0],this.match+=K[0],this.matches=K,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(K[0].length),this.matched+=K[0],xt=this.performAction.call(this,this.yy,this,ht,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),xt)return xt;if(this._backtrack){for(var wt in pt)this[wt]=pt[wt];return!1}return!1},next:function(){if(this.done)return this.EOF;var K,ht,xt,St;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var pt=this._currentRules(),wt=0;wt<pt.length;wt++)if((xt=this._input.match(this.rules[pt[wt]]))&&(!ht||xt[0].length>ht[0].length)){if(ht=xt,St=wt,this.options.backtrack_lexer){if((K=this.test_match(xt,pt[wt]))!==!1)return K;if(this._backtrack){ht=!1;continue}return!1}if(!this.options.flex)break}return ht?(K=this.test_match(ht,pt[St]))!==!1&&K:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(K){this.conditionStack.push(K)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(K){return(K=this.conditionStack.length-1-Math.abs(K||0))>=0?this.conditionStack[K]:"INITIAL"},pushState:function(K){this.begin(K)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(K,ht,xt,St){switch(xt){case 0:return this.begin("open_directive"),34;case 1:return this.begin("type_directive"),35;case 2:return this.popState(),this.begin("arg_directive"),27;case 3:return this.popState(),this.popState(),37;case 4:return 36;case 5:case 6:case 7:case 9:case 10:case 11:break;case 8:return 11;case 12:this.begin("href");break;case 13:case 16:case 19:case 22:this.popState();break;case 14:return 32;case 15:this.begin("callbackname");break;case 17:this.popState(),this.begin("callbackargs");break;case 18:return 30;case 20:return 31;case 21:this.begin("click");break;case 23:return 29;case 24:return 5;case 25:return 12;case 26:return 13;case 27:return 14;case 28:return 15;case 29:return 17;case 30:return 16;case 31:return 18;case 32:return"date";case 33:return 19;case 34:return 20;case 35:return 22;case 36:return 23;case 37:return 27;case 38:return 7;case 39:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[19,20],inclusive:!1},callbackname:{rules:[16,17,18],inclusive:!1},href:{rules:[13,14],inclusive:!1},click:{rules:[22,23],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};function et(){this.yy={}}return ut.lexer=Ct,et.prototype=ut,ut.Parser=et,new et}();s.parser=h,s.Parser=h.Parser,s.parse=function(){return h.parse.apply(h,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(6878).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},2553:(r,s,o)=>{r=o.nmd(r);var h=function(){var c=function(H,q,V,X){for(V=V||{},X=H.length;X--;V[H[X]]=q);return V},y=[2,3],p=[1,7],b=[7,12,15,17,19,20,21],T=[7,11,12,15,17,19,20,21],k=[2,20],D=[1,32],O={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,":":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:"error",4:"GG",5:":",7:"EOF",8:"DIR",11:"OPT",12:"NL",15:"COMMIT",17:"BRANCH",18:"ID",19:"CHECKOUT",20:"MERGE",21:"RESET",23:"STR",24:"HEAD",26:"CARET"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function(H,q,V,X,it,tt,rt){var ut=tt.length-1;switch(it){case 1:return tt[ut-1];case 2:return X.setDirection(tt[ut-3]),tt[ut-1];case 4:X.setOptions(tt[ut-1]),this.$=tt[ut];break;case 5:tt[ut-1]+=tt[ut],this.$=tt[ut-1];break;case 7:this.$=[];break;case 8:tt[ut-1].push(tt[ut]),this.$=tt[ut-1];break;case 9:this.$=tt[ut-1];break;case 11:X.commit(tt[ut]);break;case 12:X.branch(tt[ut]);break;case 13:X.checkout(tt[ut]);break;case 14:X.merge(tt[ut]);break;case 15:X.reset(tt[ut]);break;case 16:this.$="";break;case 17:this.$=tt[ut];break;case 18:this.$=tt[ut-1]+":"+tt[ut];break;case 19:this.$=tt[ut-1]+":"+X.count,X.count=0;break;case 20:X.count=0;break;case 21:X.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:y,9:6,12:p},{5:[1,8]},{7:[1,9]},c(b,[2,7],{10:10,11:[1,11]}),c(T,[2,6]),{6:12,7:y,9:6,12:p},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},c(T,[2,5]),{7:[1,21]},c(b,[2,8]),{12:[1,22]},c(b,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},c(b,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:k,25:31,26:D},{12:k,25:33,26:D},{12:[2,18]},{12:k,25:34,26:D},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function(H,q){if(!q.recoverable){var V=new Error(H);throw V.hash=q,V}this.trace(H)},parse:function(H){var q=this,V=[0],X=[],it=[null],tt=[],rt=this.table,ut="",Ct=0,et=0,K=0,ht=2,xt=1,St=tt.slice.call(arguments,1),pt=Object.create(this.lexer),wt={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(wt.yy[Ht]=this.yy[Ht]);pt.setInput(H,wt.yy),wt.yy.lexer=pt,wt.yy.parser=this,pt.yylloc===void 0&&(pt.yylloc={});var Pt=pt.yylloc;tt.push(Pt);var ge=pt.options&&pt.options.ranges;function pe(){var ct;return typeof(ct=X.pop()||pt.lex()||xt)!="number"&&(ct instanceof Array&&(ct=(X=ct).pop()),ct=q.symbols_[ct]||ct),ct}typeof wt.yy.parseError=="function"?this.parseError=wt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var de,Rt,Gt,oe,le,ye,It,$e,he,Yt={};;){if(Gt=V[V.length-1],this.defaultActions[Gt]?oe=this.defaultActions[Gt]:(de==null&&(de=pe()),oe=rt[Gt]&&rt[Gt][de]),oe===void 0||!oe.length||!oe[0]){var Kt="";for(ye in he=[],rt[Gt])this.terminals_[ye]&&ye>ht&&he.push("'"+this.terminals_[ye]+"'");Kt=pt.showPosition?"Parse error on line "+(Ct+1)+`:
`+pt.showPosition()+`
Expecting `+he.join(", ")+", got '"+(this.terminals_[de]||de)+"'":"Parse error on line "+(Ct+1)+": Unexpected "+(de==xt?"end of input":"'"+(this.terminals_[de]||de)+"'"),this.parseError(Kt,{text:pt.match,token:this.terminals_[de]||de,line:pt.yylineno,loc:Pt,expected:he})}if(oe[0]instanceof Array&&oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Gt+", token: "+de);switch(oe[0]){case 1:V.push(de),it.push(pt.yytext),tt.push(pt.yylloc),V.push(oe[1]),de=null,Rt?(de=Rt,Rt=null):(et=pt.yyleng,ut=pt.yytext,Ct=pt.yylineno,Pt=pt.yylloc,K>0);break;case 2:if(It=this.productions_[oe[1]][1],Yt.$=it[it.length-It],Yt._$={first_line:tt[tt.length-(It||1)].first_line,last_line:tt[tt.length-1].last_line,first_column:tt[tt.length-(It||1)].first_column,last_column:tt[tt.length-1].last_column},ge&&(Yt._$.range=[tt[tt.length-(It||1)].range[0],tt[tt.length-1].range[1]]),(le=this.performAction.apply(Yt,[ut,et,Ct,wt.yy,oe[1],it,tt].concat(St)))!==void 0)return le;It&&(V=V.slice(0,-1*It*2),it=it.slice(0,-1*It),tt=tt.slice(0,-1*It)),V.push(this.productions_[oe[1]][0]),it.push(Yt.$),tt.push(Yt._$),$e=rt[V[V.length-2]][V[V.length-1]],V.push($e);break;case 3:return!0}}return!0}},I={EOF:1,parseError:function(H,q){if(!this.yy.parser)throw new Error(H);this.yy.parser.parseError(H,q)},setInput:function(H,q){return this.yy=q||this.yy||{},this._input=H,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var H=this._input[0];return this.yytext+=H,this.yyleng++,this.offset++,this.match+=H,this.matched+=H,H.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),H},unput:function(H){var q=H.length,V=H.split(/(?:\r\n?|\n)/g);this._input=H+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-q),this.offset-=q;var X=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),V.length-1&&(this.yylineno-=V.length-1);var it=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:V?(V.length===X.length?this.yylloc.first_column:0)+X[X.length-V.length].length-V[0].length:this.yylloc.first_column-q},this.options.ranges&&(this.yylloc.range=[it[0],it[0]+this.yyleng-q]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(H){this.unput(this.match.slice(H))},pastInput:function(){var H=this.matched.substr(0,this.matched.length-this.match.length);return(H.length>20?"...":"")+H.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var H=this.match;return H.length<20&&(H+=this._input.substr(0,20-H.length)),(H.substr(0,20)+(H.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var H=this.pastInput(),q=new Array(H.length+1).join("-");return H+this.upcomingInput()+`
`+q+"^"},test_match:function(H,q){var V,X,it;if(this.options.backtrack_lexer&&(it={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(it.yylloc.range=this.yylloc.range.slice(0))),(X=H[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=X.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:X?X[X.length-1].length-X[X.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+H[0].length},this.yytext+=H[0],this.match+=H[0],this.matches=H,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(H[0].length),this.matched+=H[0],V=this.performAction.call(this,this.yy,this,q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),V)return V;if(this._backtrack){for(var tt in it)this[tt]=it[tt];return!1}return!1},next:function(){if(this.done)return this.EOF;var H,q,V,X;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var it=this._currentRules(),tt=0;tt<it.length;tt++)if((V=this._input.match(this.rules[it[tt]]))&&(!q||V[0].length>q[0].length)){if(q=V,X=tt,this.options.backtrack_lexer){if((H=this.test_match(V,it[tt]))!==!1)return H;if(this._backtrack){q=!1;continue}return!1}if(!this.options.flex)break}return q?(H=this.test_match(q,it[X]))!==!1&&H:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(H){this.conditionStack.push(H)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(H){return(H=this.conditionStack.length-1-Math.abs(H||0))>=0?this.conditionStack[H]:"INITIAL"},pushState:function(H){this.begin(H)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(H,q,V,X){switch(V){case 0:return 12;case 1:case 2:case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin("options");break;case 15:case 18:this.popState();break;case 16:return 11;case 17:this.begin("string");break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:reset\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};function z(){this.yy={}}return O.lexer=I,z.prototype=O,O.Parser=z,new z}();s.parser=h,s.Parser=h.Parser,s.parse=function(){return h.parse.apply(h,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(8183).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},6765:(r,s,o)=>{r=o.nmd(r);var h=function(){var c=function(k,D,O,I){for(O=O||{},I=k.length;I--;O[k[I]]=D);return O},y=[6,9,10],p={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(k,D,O,I,z,H,q){switch(H.length,z){case 1:return I;case 4:break;case 6:I.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},c(y,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},c(y,[2,3]),c(y,[2,4]),c(y,[2,5]),c(y,[2,6])],defaultActions:{4:[2,1]},parseError:function(k,D){if(!D.recoverable){var O=new Error(k);throw O.hash=D,O}this.trace(k)},parse:function(k){var D=this,O=[0],I=[],z=[null],H=[],q=this.table,V="",X=0,it=0,tt=0,rt=2,ut=1,Ct=H.slice.call(arguments,1),et=Object.create(this.lexer),K={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&(K.yy[ht]=this.yy[ht]);et.setInput(k,K.yy),K.yy.lexer=et,K.yy.parser=this,et.yylloc===void 0&&(et.yylloc={});var xt=et.yylloc;H.push(xt);var St=et.options&&et.options.ranges;function pt(){var It;return typeof(It=I.pop()||et.lex()||ut)!="number"&&(It instanceof Array&&(It=(I=It).pop()),It=D.symbols_[It]||It),It}typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var wt,Ht,Pt,ge,pe,de,Rt,Gt,oe,le={};;){if(Pt=O[O.length-1],this.defaultActions[Pt]?ge=this.defaultActions[Pt]:(wt==null&&(wt=pt()),ge=q[Pt]&&q[Pt][wt]),ge===void 0||!ge.length||!ge[0]){var ye="";for(de in oe=[],q[Pt])this.terminals_[de]&&de>rt&&oe.push("'"+this.terminals_[de]+"'");ye=et.showPosition?"Parse error on line "+(X+1)+`:
`+et.showPosition()+`
Expecting `+oe.join(", ")+", got '"+(this.terminals_[wt]||wt)+"'":"Parse error on line "+(X+1)+": Unexpected "+(wt==ut?"end of input":"'"+(this.terminals_[wt]||wt)+"'"),this.parseError(ye,{text:et.match,token:this.terminals_[wt]||wt,line:et.yylineno,loc:xt,expected:oe})}if(ge[0]instanceof Array&&ge.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Pt+", token: "+wt);switch(ge[0]){case 1:O.push(wt),z.push(et.yytext),H.push(et.yylloc),O.push(ge[1]),wt=null,Ht?(wt=Ht,Ht=null):(it=et.yyleng,V=et.yytext,X=et.yylineno,xt=et.yylloc,tt>0);break;case 2:if(Rt=this.productions_[ge[1]][1],le.$=z[z.length-Rt],le._$={first_line:H[H.length-(Rt||1)].first_line,last_line:H[H.length-1].last_line,first_column:H[H.length-(Rt||1)].first_column,last_column:H[H.length-1].last_column},St&&(le._$.range=[H[H.length-(Rt||1)].range[0],H[H.length-1].range[1]]),(pe=this.performAction.apply(le,[V,it,X,K.yy,ge[1],z,H].concat(Ct)))!==void 0)return pe;Rt&&(O=O.slice(0,-1*Rt*2),z=z.slice(0,-1*Rt),H=H.slice(0,-1*Rt)),O.push(this.productions_[ge[1]][0]),z.push(le.$),H.push(le._$),Gt=q[O[O.length-2]][O[O.length-1]],O.push(Gt);break;case 3:return!0}}return!0}},b={EOF:1,parseError:function(k,D){if(!this.yy.parser)throw new Error(k);this.yy.parser.parseError(k,D)},setInput:function(k,D){return this.yy=D||this.yy||{},this._input=k,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var k=this._input[0];return this.yytext+=k,this.yyleng++,this.offset++,this.match+=k,this.matched+=k,k.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),k},unput:function(k){var D=k.length,O=k.split(/(?:\r\n?|\n)/g);this._input=k+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-D),this.offset-=D;var I=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),O.length-1&&(this.yylineno-=O.length-1);var z=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:O?(O.length===I.length?this.yylloc.first_column:0)+I[I.length-O.length].length-O[0].length:this.yylloc.first_column-D},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-D]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(k){this.unput(this.match.slice(k))},pastInput:function(){var k=this.matched.substr(0,this.matched.length-this.match.length);return(k.length>20?"...":"")+k.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var k=this.match;return k.length<20&&(k+=this._input.substr(0,20-k.length)),(k.substr(0,20)+(k.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var k=this.pastInput(),D=new Array(k.length+1).join("-");return k+this.upcomingInput()+`
`+D+"^"},test_match:function(k,D){var O,I,z;if(this.options.backtrack_lexer&&(z={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(z.yylloc.range=this.yylloc.range.slice(0))),(I=k[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=I.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:I?I[I.length-1].length-I[I.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+k[0].length},this.yytext+=k[0],this.match+=k[0],this.matches=k,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(k[0].length),this.matched+=k[0],O=this.performAction.call(this,this.yy,this,D,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O)return O;if(this._backtrack){for(var H in z)this[H]=z[H];return!1}return!1},next:function(){if(this.done)return this.EOF;var k,D,O,I;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var z=this._currentRules(),H=0;H<z.length;H++)if((O=this._input.match(this.rules[z[H]]))&&(!D||O[0].length>D[0].length)){if(D=O,I=H,this.options.backtrack_lexer){if((k=this.test_match(O,z[H]))!==!1)return k;if(this._backtrack){D=!1;continue}return!1}if(!this.options.flex)break}return D?(k=this.test_match(D,z[I]))!==!1&&k:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(k){this.conditionStack.push(k)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(k){return(k=this.conditionStack.length-1-Math.abs(k||0))>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(k,D,O,I){switch(O){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function T(){this.yy={}}return p.lexer=b,T.prototype=p,p.Parser=T,new T}();s.parser=h,s.Parser=h.Parser,s.parse=function(){return h.parse.apply(h,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(1428).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},7062:(r,s,o)=>{r=o.nmd(r);var h=function(){var c=function(Ct,et,K,ht){for(K=K||{},ht=Ct.length;ht--;K[Ct[ht]]=et);return K},y=[1,4],p=[1,5],b=[1,6],T=[1,7],k=[1,9],D=[1,11,13,20,21,22,23],O=[2,5],I=[1,6,11,13,20,21,22,23],z=[20,21,22],H=[2,8],q=[1,18],V=[1,19],X=[1,24],it=[6,20,21,22,23],tt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,openDirective:15,typeDirective:16,closeDirective:17,":":18,argDirective:19,NEWLINE:20,";":21,EOF:22,open_directive:23,type_directive:24,arg_directive:25,close_directive:26,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",18:":",20:"NEWLINE",21:";",22:"EOF",23:"open_directive",24:"type_directive",25:"arg_directive",26:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[15,1],[16,1],[19,1],[17,1]],performAction:function(Ct,et,K,ht,xt,St,pt){var wt=St.length-1;switch(xt){case 4:ht.setShowData(!0);break;case 7:this.$=St[wt-1];break;case 9:ht.addSection(St[wt-1],ht.cleanupValue(St[wt]));break;case 10:this.$=St[wt].trim(),ht.setTitle(this.$);break;case 17:ht.parseDirective("%%{","open_directive");break;case 18:ht.parseDirective(St[wt],"type_directive");break;case 19:St[wt]=St[wt].trim().replace(/'/g,'"'),ht.parseDirective(St[wt],"arg_directive");break;case 20:ht.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:y,15:8,20:p,21:b,22:T,23:k},{1:[3]},{3:10,4:2,5:3,6:y,15:8,20:p,21:b,22:T,23:k},{3:11,4:2,5:3,6:y,15:8,20:p,21:b,22:T,23:k},c(D,O,{7:12,8:[1,13]}),c(I,[2,14]),c(I,[2,15]),c(I,[2,16]),{16:14,24:[1,15]},{24:[2,17]},{1:[2,1]},{1:[2,2]},c(z,H,{15:8,9:16,10:17,5:20,1:[2,3],11:q,13:V,23:k}),c(D,O,{7:21}),{17:22,18:[1,23],26:X},c([18,26],[2,18]),c(D,[2,6]),{4:25,20:p,21:b,22:T},{12:[1,26]},{14:[1,27]},c(z,[2,11]),c(z,H,{15:8,9:16,10:17,5:20,1:[2,4],11:q,13:V,23:k}),c(it,[2,12]),{19:28,25:[1,29]},c(it,[2,20]),c(D,[2,7]),c(z,[2,9]),c(z,[2,10]),{17:30,26:X},{26:[2,19]},c(it,[2,13])],defaultActions:{9:[2,17],10:[2,1],11:[2,2],29:[2,19]},parseError:function(Ct,et){if(!et.recoverable){var K=new Error(Ct);throw K.hash=et,K}this.trace(Ct)},parse:function(Ct){var et=this,K=[0],ht=[],xt=[null],St=[],pt=this.table,wt="",Ht=0,Pt=0,ge=0,pe=2,de=1,Rt=St.slice.call(arguments,1),Gt=Object.create(this.lexer),oe={yy:{}};for(var le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(oe.yy[le]=this.yy[le]);Gt.setInput(Ct,oe.yy),oe.yy.lexer=Gt,oe.yy.parser=this,Gt.yylloc===void 0&&(Gt.yylloc={});var ye=Gt.yylloc;St.push(ye);var It=Gt.options&&Gt.options.ranges;function $e(){var _e;return typeof(_e=ht.pop()||Gt.lex()||de)!="number"&&(_e instanceof Array&&(_e=(ht=_e).pop()),_e=et.symbols_[_e]||_e),_e}typeof oe.yy.parseError=="function"?this.parseError=oe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var he,Yt,Kt,ct,ee,Nt,Vt,Ut,Ot,ae={};;){if(Kt=K[K.length-1],this.defaultActions[Kt]?ct=this.defaultActions[Kt]:(he==null&&(he=$e()),ct=pt[Kt]&&pt[Kt][he]),ct===void 0||!ct.length||!ct[0]){var Qe="";for(Nt in Ot=[],pt[Kt])this.terminals_[Nt]&&Nt>pe&&Ot.push("'"+this.terminals_[Nt]+"'");Qe=Gt.showPosition?"Parse error on line "+(Ht+1)+`:
`+Gt.showPosition()+`
Expecting `+Ot.join(", ")+", got '"+(this.terminals_[he]||he)+"'":"Parse error on line "+(Ht+1)+": Unexpected "+(he==de?"end of input":"'"+(this.terminals_[he]||he)+"'"),this.parseError(Qe,{text:Gt.match,token:this.terminals_[he]||he,line:Gt.yylineno,loc:ye,expected:Ot})}if(ct[0]instanceof Array&&ct.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Kt+", token: "+he);switch(ct[0]){case 1:K.push(he),xt.push(Gt.yytext),St.push(Gt.yylloc),K.push(ct[1]),he=null,Yt?(he=Yt,Yt=null):(Pt=Gt.yyleng,wt=Gt.yytext,Ht=Gt.yylineno,ye=Gt.yylloc,ge>0);break;case 2:if(Vt=this.productions_[ct[1]][1],ae.$=xt[xt.length-Vt],ae._$={first_line:St[St.length-(Vt||1)].first_line,last_line:St[St.length-1].last_line,first_column:St[St.length-(Vt||1)].first_column,last_column:St[St.length-1].last_column},It&&(ae._$.range=[St[St.length-(Vt||1)].range[0],St[St.length-1].range[1]]),(ee=this.performAction.apply(ae,[wt,Pt,Ht,oe.yy,ct[1],xt,St].concat(Rt)))!==void 0)return ee;Vt&&(K=K.slice(0,-1*Vt*2),xt=xt.slice(0,-1*Vt),St=St.slice(0,-1*Vt)),K.push(this.productions_[ct[1]][0]),xt.push(ae.$),St.push(ae._$),Ut=pt[K[K.length-2]][K[K.length-1]],K.push(Ut);break;case 3:return!0}}return!0}},rt={EOF:1,parseError:function(Ct,et){if(!this.yy.parser)throw new Error(Ct);this.yy.parser.parseError(Ct,et)},setInput:function(Ct,et){return this.yy=et||this.yy||{},this._input=Ct,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ct=this._input[0];return this.yytext+=Ct,this.yyleng++,this.offset++,this.match+=Ct,this.matched+=Ct,Ct.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ct},unput:function(Ct){var et=Ct.length,K=Ct.split(/(?:\r\n?|\n)/g);this._input=Ct+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-et),this.offset-=et;var ht=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),K.length-1&&(this.yylineno-=K.length-1);var xt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:K?(K.length===ht.length?this.yylloc.first_column:0)+ht[ht.length-K.length].length-K[0].length:this.yylloc.first_column-et},this.options.ranges&&(this.yylloc.range=[xt[0],xt[0]+this.yyleng-et]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Ct){this.unput(this.match.slice(Ct))},pastInput:function(){var Ct=this.matched.substr(0,this.matched.length-this.match.length);return(Ct.length>20?"...":"")+Ct.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ct=this.match;return Ct.length<20&&(Ct+=this._input.substr(0,20-Ct.length)),(Ct.substr(0,20)+(Ct.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ct=this.pastInput(),et=new Array(Ct.length+1).join("-");return Ct+this.upcomingInput()+`
`+et+"^"},test_match:function(Ct,et){var K,ht,xt;if(this.options.backtrack_lexer&&(xt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(xt.yylloc.range=this.yylloc.range.slice(0))),(ht=Ct[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ht.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ht?ht[ht.length-1].length-ht[ht.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ct[0].length},this.yytext+=Ct[0],this.match+=Ct[0],this.matches=Ct,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ct[0].length),this.matched+=Ct[0],K=this.performAction.call(this,this.yy,this,et,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),K)return K;if(this._backtrack){for(var St in xt)this[St]=xt[St];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ct,et,K,ht;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var xt=this._currentRules(),St=0;St<xt.length;St++)if((K=this._input.match(this.rules[xt[St]]))&&(!et||K[0].length>et[0].length)){if(et=K,ht=St,this.options.backtrack_lexer){if((Ct=this.test_match(K,xt[St]))!==!1)return Ct;if(this._backtrack){et=!1;continue}return!1}if(!this.options.flex)break}return et?(Ct=this.test_match(et,xt[ht]))!==!1&&Ct:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Ct){this.conditionStack.push(Ct)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ct){return(Ct=this.conditionStack.length-1-Math.abs(Ct||0))>=0?this.conditionStack[Ct]:"INITIAL"},pushState:function(Ct){this.begin(Ct)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ct,et,K,ht){switch(K){case 0:return this.begin("open_directive"),23;case 1:return this.begin("type_directive"),24;case 2:return this.popState(),this.begin("arg_directive"),18;case 3:return this.popState(),this.popState(),26;case 4:return 25;case 5:case 6:case 8:case 9:break;case 7:return 20;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:this.begin("string");break;case 13:this.popState();break;case 14:return"txt";case 15:return 6;case 16:return 8;case 17:return"value";case 18:return 22}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,15,16,17,18],inclusive:!0}}};function ut(){this.yy={}}return tt.lexer=rt,ut.prototype=tt,tt.Parser=ut,new ut}();s.parser=h,s.Parser=h.Parser,s.parse=function(){return h.parse.apply(h,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(4551).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},3176:(r,s,o)=>{r=o.nmd(r);var h=function(){var c=function(Kt,ct,ee,Nt){for(ee=ee||{},Nt=Kt.length;Nt--;ee[Kt[Nt]]=ct);return ee},y=[1,3],p=[1,5],b=[1,17],T=[2,10],k=[1,21],D=[1,22],O=[1,23],I=[1,24],z=[1,25],H=[1,26],q=[1,19],V=[1,27],X=[1,28],it=[1,31],tt=[66,67],rt=[5,8,14,35,36,37,38,39,40,48,55,57,66,67],ut=[5,6,8,14,35,36,37,38,39,40,48,66,67],Ct=[1,51],et=[1,52],K=[1,53],ht=[1,54],xt=[1,55],St=[1,56],pt=[1,57],wt=[57,58],Ht=[1,69],Pt=[1,65],ge=[1,66],pe=[1,67],de=[1,68],Rt=[1,70],Gt=[1,74],oe=[1,75],le=[1,72],ye=[1,73],It=[5,8,14,35,36,37,38,39,40,48,66,67],$e={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,open_directive:14,type_directive:15,arg_directive:16,close_directive:17,requirementDef:18,elementDef:19,relationshipDef:20,requirementType:21,requirementName:22,STRUCT_START:23,requirementBody:24,ID:25,COLONSEP:26,id:27,TEXT:28,text:29,RISK:30,riskLevel:31,VERIFYMTHD:32,verifyType:33,STRUCT_STOP:34,REQUIREMENT:35,FUNCTIONAL_REQUIREMENT:36,INTERFACE_REQUIREMENT:37,PERFORMANCE_REQUIREMENT:38,PHYSICAL_REQUIREMENT:39,DESIGN_CONSTRAINT:40,LOW_RISK:41,MED_RISK:42,HIGH_RISK:43,VERIFY_ANALYSIS:44,VERIFY_DEMONSTRATION:45,VERIFY_INSPECTION:46,VERIFY_TEST:47,ELEMENT:48,elementName:49,elementBody:50,TYPE:51,type:52,DOCREF:53,ref:54,END_ARROW_L:55,relationship:56,LINE:57,END_ARROW_R:58,CONTAINS:59,COPIES:60,DERIVES:61,SATISFIES:62,VERIFIES:63,REFINES:64,TRACES:65,unqString:66,qString:67,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"open_directive",15:"type_directive",16:"arg_directive",17:"close_directive",23:"STRUCT_START",25:"ID",26:"COLONSEP",28:"TEXT",30:"RISK",32:"VERIFYMTHD",34:"STRUCT_STOP",35:"REQUIREMENT",36:"FUNCTIONAL_REQUIREMENT",37:"INTERFACE_REQUIREMENT",38:"PERFORMANCE_REQUIREMENT",39:"PHYSICAL_REQUIREMENT",40:"DESIGN_CONSTRAINT",41:"LOW_RISK",42:"MED_RISK",43:"HIGH_RISK",44:"VERIFY_ANALYSIS",45:"VERIFY_DEMONSTRATION",46:"VERIFY_INSPECTION",47:"VERIFY_TEST",48:"ELEMENT",51:"TYPE",53:"DOCREF",55:"END_ARROW_L",57:"LINE",58:"END_ARROW_R",59:"CONTAINS",60:"COPIES",61:"DERIVES",62:"SATISFIES",63:"VERIFIES",64:"REFINES",65:"TRACES",66:"unqString",67:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[18,5],[24,5],[24,5],[24,5],[24,5],[24,2],[24,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[31,1],[31,1],[31,1],[33,1],[33,1],[33,1],[33,1],[19,5],[50,5],[50,5],[50,2],[50,1],[20,5],[20,5],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[22,1],[22,1],[27,1],[27,1],[29,1],[29,1],[49,1],[49,1],[52,1],[52,1],[54,1],[54,1]],performAction:function(Kt,ct,ee,Nt,Vt,Ut,Ot){var ae=Ut.length-1;switch(Vt){case 6:Nt.parseDirective("%%{","open_directive");break;case 7:Nt.parseDirective(Ut[ae],"type_directive");break;case 8:Ut[ae]=Ut[ae].trim().replace(/'/g,'"'),Nt.parseDirective(Ut[ae],"arg_directive");break;case 9:Nt.parseDirective("}%%","close_directive","pie");break;case 10:this.$=[];break;case 16:Nt.addRequirement(Ut[ae-3],Ut[ae-4]);break;case 17:Nt.setNewReqId(Ut[ae-2]);break;case 18:Nt.setNewReqText(Ut[ae-2]);break;case 19:Nt.setNewReqRisk(Ut[ae-2]);break;case 20:Nt.setNewReqVerifyMethod(Ut[ae-2]);break;case 23:this.$=Nt.RequirementType.REQUIREMENT;break;case 24:this.$=Nt.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 25:this.$=Nt.RequirementType.INTERFACE_REQUIREMENT;break;case 26:this.$=Nt.RequirementType.PERFORMANCE_REQUIREMENT;break;case 27:this.$=Nt.RequirementType.PHYSICAL_REQUIREMENT;break;case 28:this.$=Nt.RequirementType.DESIGN_CONSTRAINT;break;case 29:this.$=Nt.RiskLevel.LOW_RISK;break;case 30:this.$=Nt.RiskLevel.MED_RISK;break;case 31:this.$=Nt.RiskLevel.HIGH_RISK;break;case 32:this.$=Nt.VerifyType.VERIFY_ANALYSIS;break;case 33:this.$=Nt.VerifyType.VERIFY_DEMONSTRATION;break;case 34:this.$=Nt.VerifyType.VERIFY_INSPECTION;break;case 35:this.$=Nt.VerifyType.VERIFY_TEST;break;case 36:Nt.addElement(Ut[ae-3]);break;case 37:Nt.setNewElementType(Ut[ae-2]);break;case 38:Nt.setNewElementDocRef(Ut[ae-2]);break;case 41:Nt.addRelationship(Ut[ae-2],Ut[ae],Ut[ae-4]);break;case 42:Nt.addRelationship(Ut[ae-2],Ut[ae-4],Ut[ae]);break;case 43:this.$=Nt.Relationships.CONTAINS;break;case 44:this.$=Nt.Relationships.COPIES;break;case 45:this.$=Nt.Relationships.DERIVES;break;case 46:this.$=Nt.Relationships.SATISFIES;break;case 47:this.$=Nt.Relationships.VERIFIES;break;case 48:this.$=Nt.Relationships.REFINES;break;case 49:this.$=Nt.Relationships.TRACES}},table:[{3:1,4:2,6:y,9:4,14:p},{1:[3]},{3:7,4:2,5:[1,6],6:y,9:4,14:p},{5:[1,8]},{10:9,15:[1,10]},{15:[2,6]},{3:11,4:2,6:y,9:4,14:p},{1:[2,2]},{4:16,5:b,7:12,8:T,9:4,14:p,18:13,19:14,20:15,21:18,27:20,35:k,36:D,37:O,38:I,39:z,40:H,48:q,66:V,67:X},{11:29,12:[1,30],17:it},c([12,17],[2,7]),{1:[2,1]},{8:[1,32]},{4:16,5:b,7:33,8:T,9:4,14:p,18:13,19:14,20:15,21:18,27:20,35:k,36:D,37:O,38:I,39:z,40:H,48:q,66:V,67:X},{4:16,5:b,7:34,8:T,9:4,14:p,18:13,19:14,20:15,21:18,27:20,35:k,36:D,37:O,38:I,39:z,40:H,48:q,66:V,67:X},{4:16,5:b,7:35,8:T,9:4,14:p,18:13,19:14,20:15,21:18,27:20,35:k,36:D,37:O,38:I,39:z,40:H,48:q,66:V,67:X},{4:16,5:b,7:36,8:T,9:4,14:p,18:13,19:14,20:15,21:18,27:20,35:k,36:D,37:O,38:I,39:z,40:H,48:q,66:V,67:X},{4:16,5:b,7:37,8:T,9:4,14:p,18:13,19:14,20:15,21:18,27:20,35:k,36:D,37:O,38:I,39:z,40:H,48:q,66:V,67:X},{22:38,66:[1,39],67:[1,40]},{49:41,66:[1,42],67:[1,43]},{55:[1,44],57:[1,45]},c(tt,[2,23]),c(tt,[2,24]),c(tt,[2,25]),c(tt,[2,26]),c(tt,[2,27]),c(tt,[2,28]),c(rt,[2,52]),c(rt,[2,53]),c(ut,[2,4]),{13:46,16:[1,47]},c(ut,[2,9]),{1:[2,3]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{23:[1,48]},{23:[2,50]},{23:[2,51]},{23:[1,49]},{23:[2,56]},{23:[2,57]},{56:50,59:Ct,60:et,61:K,62:ht,63:xt,64:St,65:pt},{56:58,59:Ct,60:et,61:K,62:ht,63:xt,64:St,65:pt},{11:59,17:it},{17:[2,8]},{5:[1,60]},{5:[1,61]},{57:[1,62]},c(wt,[2,43]),c(wt,[2,44]),c(wt,[2,45]),c(wt,[2,46]),c(wt,[2,47]),c(wt,[2,48]),c(wt,[2,49]),{58:[1,63]},c(ut,[2,5]),{5:Ht,24:64,25:Pt,28:ge,30:pe,32:de,34:Rt},{5:Gt,34:oe,50:71,51:le,53:ye},{27:76,66:V,67:X},{27:77,66:V,67:X},c(It,[2,16]),{26:[1,78]},{26:[1,79]},{26:[1,80]},{26:[1,81]},{5:Ht,24:82,25:Pt,28:ge,30:pe,32:de,34:Rt},c(It,[2,22]),c(It,[2,36]),{26:[1,83]},{26:[1,84]},{5:Gt,34:oe,50:85,51:le,53:ye},c(It,[2,40]),c(It,[2,41]),c(It,[2,42]),{27:86,66:V,67:X},{29:87,66:[1,88],67:[1,89]},{31:90,41:[1,91],42:[1,92],43:[1,93]},{33:94,44:[1,95],45:[1,96],46:[1,97],47:[1,98]},c(It,[2,21]),{52:99,66:[1,100],67:[1,101]},{54:102,66:[1,103],67:[1,104]},c(It,[2,39]),{5:[1,105]},{5:[1,106]},{5:[2,54]},{5:[2,55]},{5:[1,107]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[1,108]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[2,35]},{5:[1,109]},{5:[2,58]},{5:[2,59]},{5:[1,110]},{5:[2,60]},{5:[2,61]},{5:Ht,24:111,25:Pt,28:ge,30:pe,32:de,34:Rt},{5:Ht,24:112,25:Pt,28:ge,30:pe,32:de,34:Rt},{5:Ht,24:113,25:Pt,28:ge,30:pe,32:de,34:Rt},{5:Ht,24:114,25:Pt,28:ge,30:pe,32:de,34:Rt},{5:Gt,34:oe,50:115,51:le,53:ye},{5:Gt,34:oe,50:116,51:le,53:ye},c(It,[2,17]),c(It,[2,18]),c(It,[2,19]),c(It,[2,20]),c(It,[2,37]),c(It,[2,38])],defaultActions:{5:[2,6],7:[2,2],11:[2,1],32:[2,3],33:[2,11],34:[2,12],35:[2,13],36:[2,14],37:[2,15],39:[2,50],40:[2,51],42:[2,56],43:[2,57],47:[2,8],88:[2,54],89:[2,55],91:[2,29],92:[2,30],93:[2,31],95:[2,32],96:[2,33],97:[2,34],98:[2,35],100:[2,58],101:[2,59],103:[2,60],104:[2,61]},parseError:function(Kt,ct){if(!ct.recoverable){var ee=new Error(Kt);throw ee.hash=ct,ee}this.trace(Kt)},parse:function(Kt){var ct=this,ee=[0],Nt=[],Vt=[null],Ut=[],Ot=this.table,ae="",Qe=0,_e=0,Ce=0,un=2,Ve=1,Le=Ut.slice.call(arguments,1),ke=Object.create(this.lexer),Je={yy:{}};for(var Ye in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ye)&&(Je.yy[Ye]=this.yy[Ye]);ke.setInput(Kt,Je.yy),Je.yy.lexer=ke,Je.yy.parser=this,ke.yylloc===void 0&&(ke.yylloc={});var Ge=ke.yylloc;Ut.push(Ge);var Ze=ke.options&&ke.options.ranges;function Ne(){var Tn;return typeof(Tn=Nt.pop()||ke.lex()||Ve)!="number"&&(Tn instanceof Array&&(Tn=(Nt=Tn).pop()),Tn=ct.symbols_[Tn]||Tn),Tn}typeof Je.yy.parseError=="function"?this.parseError=Je.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Un,Te,tn,vn,Ir,_n,tr,cn,gn,Xe={};;){if(tn=ee[ee.length-1],this.defaultActions[tn]?vn=this.defaultActions[tn]:(Un==null&&(Un=Ne()),vn=Ot[tn]&&Ot[tn][Un]),vn===void 0||!vn.length||!vn[0]){var Cn="";for(_n in gn=[],Ot[tn])this.terminals_[_n]&&_n>un&&gn.push("'"+this.terminals_[_n]+"'");Cn=ke.showPosition?"Parse error on line "+(Qe+1)+`:
`+ke.showPosition()+`
Expecting `+gn.join(", ")+", got '"+(this.terminals_[Un]||Un)+"'":"Parse error on line "+(Qe+1)+": Unexpected "+(Un==Ve?"end of input":"'"+(this.terminals_[Un]||Un)+"'"),this.parseError(Cn,{text:ke.match,token:this.terminals_[Un]||Un,line:ke.yylineno,loc:Ge,expected:gn})}if(vn[0]instanceof Array&&vn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+tn+", token: "+Un);switch(vn[0]){case 1:ee.push(Un),Vt.push(ke.yytext),Ut.push(ke.yylloc),ee.push(vn[1]),Un=null,Te?(Un=Te,Te=null):(_e=ke.yyleng,ae=ke.yytext,Qe=ke.yylineno,Ge=ke.yylloc,Ce>0);break;case 2:if(tr=this.productions_[vn[1]][1],Xe.$=Vt[Vt.length-tr],Xe._$={first_line:Ut[Ut.length-(tr||1)].first_line,last_line:Ut[Ut.length-1].last_line,first_column:Ut[Ut.length-(tr||1)].first_column,last_column:Ut[Ut.length-1].last_column},Ze&&(Xe._$.range=[Ut[Ut.length-(tr||1)].range[0],Ut[Ut.length-1].range[1]]),(Ir=this.performAction.apply(Xe,[ae,_e,Qe,Je.yy,vn[1],Vt,Ut].concat(Le)))!==void 0)return Ir;tr&&(ee=ee.slice(0,-1*tr*2),Vt=Vt.slice(0,-1*tr),Ut=Ut.slice(0,-1*tr)),ee.push(this.productions_[vn[1]][0]),Vt.push(Xe.$),Ut.push(Xe._$),cn=Ot[ee[ee.length-2]][ee[ee.length-1]],ee.push(cn);break;case 3:return!0}}return!0}},he={EOF:1,parseError:function(Kt,ct){if(!this.yy.parser)throw new Error(Kt);this.yy.parser.parseError(Kt,ct)},setInput:function(Kt,ct){return this.yy=ct||this.yy||{},this._input=Kt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Kt=this._input[0];return this.yytext+=Kt,this.yyleng++,this.offset++,this.match+=Kt,this.matched+=Kt,Kt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Kt},unput:function(Kt){var ct=Kt.length,ee=Kt.split(/(?:\r\n?|\n)/g);this._input=Kt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ct),this.offset-=ct;var Nt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ee.length-1&&(this.yylineno-=ee.length-1);var Vt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ee?(ee.length===Nt.length?this.yylloc.first_column:0)+Nt[Nt.length-ee.length].length-ee[0].length:this.yylloc.first_column-ct},this.options.ranges&&(this.yylloc.range=[Vt[0],Vt[0]+this.yyleng-ct]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Kt){this.unput(this.match.slice(Kt))},pastInput:function(){var Kt=this.matched.substr(0,this.matched.length-this.match.length);return(Kt.length>20?"...":"")+Kt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Kt=this.match;return Kt.length<20&&(Kt+=this._input.substr(0,20-Kt.length)),(Kt.substr(0,20)+(Kt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Kt=this.pastInput(),ct=new Array(Kt.length+1).join("-");return Kt+this.upcomingInput()+`
`+ct+"^"},test_match:function(Kt,ct){var ee,Nt,Vt;if(this.options.backtrack_lexer&&(Vt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Vt.yylloc.range=this.yylloc.range.slice(0))),(Nt=Kt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Nt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Nt?Nt[Nt.length-1].length-Nt[Nt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Kt[0].length},this.yytext+=Kt[0],this.match+=Kt[0],this.matches=Kt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Kt[0].length),this.matched+=Kt[0],ee=this.performAction.call(this,this.yy,this,ct,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ee)return ee;if(this._backtrack){for(var Ut in Vt)this[Ut]=Vt[Ut];return!1}return!1},next:function(){if(this.done)return this.EOF;var Kt,ct,ee,Nt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Vt=this._currentRules(),Ut=0;Ut<Vt.length;Ut++)if((ee=this._input.match(this.rules[Vt[Ut]]))&&(!ct||ee[0].length>ct[0].length)){if(ct=ee,Nt=Ut,this.options.backtrack_lexer){if((Kt=this.test_match(ee,Vt[Ut]))!==!1)return Kt;if(this._backtrack){ct=!1;continue}return!1}if(!this.options.flex)break}return ct?(Kt=this.test_match(ct,Vt[Nt]))!==!1&&Kt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Kt){this.conditionStack.push(Kt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Kt){return(Kt=this.conditionStack.length-1-Math.abs(Kt||0))>=0?this.conditionStack[Kt]:"INITIAL"},pushState:function(Kt){this.begin(Kt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Kt,ct,ee,Nt){switch(ee){case 0:return this.begin("open_directive"),14;case 1:return this.begin("type_directive"),15;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),17;case 4:return 16;case 5:return 5;case 6:case 7:case 8:break;case 9:return 8;case 10:return 6;case 11:return 23;case 12:return 34;case 13:return 26;case 14:return 25;case 15:return 28;case 16:return 30;case 17:return 32;case 18:return 35;case 19:return 36;case 20:return 37;case 21:return 38;case 22:return 39;case 23:return 40;case 24:return 41;case 25:return 42;case 26:return 43;case 27:return 44;case 28:return 45;case 29:return 46;case 30:return 47;case 31:return 48;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 62;case 36:return 63;case 37:return 64;case 38:return 65;case 39:return 51;case 40:return 53;case 41:return 55;case 42:return 58;case 43:return 57;case 44:this.begin("string");break;case 45:this.popState();break;case 46:return"qString";case 47:return ct.yytext=ct.yytext.trim(),66}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[45,46],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,47],inclusive:!0}}};function Yt(){this.yy={}}return $e.lexer=he,Yt.prototype=$e,$e.Parser=Yt,new Yt}();s.parser=h,s.Parser=h.Parser,s.parse=function(){return h.parse.apply(h,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(8800).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},6876:(r,s,o)=>{r=o.nmd(r);var h=function(){var c=function(It,$e,he,Yt){for(he=he||{},Yt=It.length;Yt--;he[It[Yt]]=$e);return he},y=[1,2],p=[1,3],b=[1,5],T=[1,7],k=[2,5],D=[1,15],O=[1,17],I=[1,18],z=[1,19],H=[1,21],q=[1,22],V=[1,23],X=[1,29],it=[1,30],tt=[1,31],rt=[1,32],ut=[1,33],Ct=[1,34],et=[1,37],K=[1,38],ht=[1,39],xt=[1,40],St=[1,41],pt=[1,42],wt=[1,45],Ht=[1,4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],Pt=[1,58],ge=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,42,46,47,48,49,57,67],pe=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,41,42,46,47,48,49,57,67],de=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,42,46,47,48,49,57,67],Rt=[55,56,57],Gt=[1,4,5,7,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],oe={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,activate:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,text2:31,loop:32,end:33,rect:34,opt:35,alt:36,else_sections:37,par:38,par_sections:39,and:40,else:41,note:42,placement:43,over:44,actor_pair:45,links:46,link:47,properties:48,details:49,spaceList:50,",":51,left_of:52,right_of:53,signaltype:54,"+":55,"-":56,ACTOR:57,SOLID_OPEN_ARROW:58,DOTTED_OPEN_ARROW:59,SOLID_ARROW:60,DOTTED_ARROW:61,SOLID_CROSS:62,DOTTED_CROSS:63,SOLID_POINT:64,DOTTED_POINT:65,TXT:66,open_directive:67,type_directive:68,arg_directive:69,close_directive:70,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",20:"participant_actor",22:"autonumber",23:"activate",24:"deactivate",30:"title",32:"loop",33:"end",34:"rect",35:"opt",36:"alt",38:"par",40:"and",41:"else",42:"note",44:"over",46:"links",47:"link",48:"properties",49:"details",51:",",52:"left_of",53:"right_of",55:"+",56:"-",57:"ACTOR",58:"SOLID_OPEN_ARROW",59:"DOTTED_OPEN_ARROW",60:"SOLID_ARROW",61:"DOTTED_ARROW",62:"SOLID_CROSS",63:"DOTTED_CROSS",64:"SOLID_POINT",65:"DOTTED_POINT",66:"TXT",67:"open_directive",68:"type_directive",69:"arg_directive",70:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[39,1],[39,4],[37,1],[37,4],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[50,2],[50,1],[45,3],[45,1],[43,1],[43,1],[21,5],[21,5],[21,4],[17,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[31,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(It,$e,he,Yt,Kt,ct,ee){var Nt=ct.length-1;switch(Kt){case 4:return Yt.apply(ct[Nt]),ct[Nt];case 5:case 9:this.$=[];break;case 6:ct[Nt-1].push(ct[Nt]),this.$=ct[Nt-1];break;case 7:case 8:case 45:this.$=ct[Nt];break;case 12:ct[Nt-3].type="addParticipant",ct[Nt-3].description=Yt.parseMessage(ct[Nt-1]),this.$=ct[Nt-3];break;case 13:ct[Nt-1].type="addParticipant",this.$=ct[Nt-1];break;case 14:ct[Nt-3].type="addActor",ct[Nt-3].description=Yt.parseMessage(ct[Nt-1]),this.$=ct[Nt-3];break;case 15:ct[Nt-1].type="addActor",this.$=ct[Nt-1];break;case 17:Yt.enableSequenceNumbers();break;case 18:this.$={type:"activeStart",signalType:Yt.LINETYPE.ACTIVE_START,actor:ct[Nt-1]};break;case 19:this.$={type:"activeEnd",signalType:Yt.LINETYPE.ACTIVE_END,actor:ct[Nt-1]};break;case 25:this.$=[{type:"setTitle",text:ct[Nt-1]}];break;case 26:ct[Nt-1].unshift({type:"loopStart",loopText:Yt.parseMessage(ct[Nt-2]),signalType:Yt.LINETYPE.LOOP_START}),ct[Nt-1].push({type:"loopEnd",loopText:ct[Nt-2],signalType:Yt.LINETYPE.LOOP_END}),this.$=ct[Nt-1];break;case 27:ct[Nt-1].unshift({type:"rectStart",color:Yt.parseMessage(ct[Nt-2]),signalType:Yt.LINETYPE.RECT_START}),ct[Nt-1].push({type:"rectEnd",color:Yt.parseMessage(ct[Nt-2]),signalType:Yt.LINETYPE.RECT_END}),this.$=ct[Nt-1];break;case 28:ct[Nt-1].unshift({type:"optStart",optText:Yt.parseMessage(ct[Nt-2]),signalType:Yt.LINETYPE.OPT_START}),ct[Nt-1].push({type:"optEnd",optText:Yt.parseMessage(ct[Nt-2]),signalType:Yt.LINETYPE.OPT_END}),this.$=ct[Nt-1];break;case 29:ct[Nt-1].unshift({type:"altStart",altText:Yt.parseMessage(ct[Nt-2]),signalType:Yt.LINETYPE.ALT_START}),ct[Nt-1].push({type:"altEnd",signalType:Yt.LINETYPE.ALT_END}),this.$=ct[Nt-1];break;case 30:ct[Nt-1].unshift({type:"parStart",parText:Yt.parseMessage(ct[Nt-2]),signalType:Yt.LINETYPE.PAR_START}),ct[Nt-1].push({type:"parEnd",signalType:Yt.LINETYPE.PAR_END}),this.$=ct[Nt-1];break;case 33:this.$=ct[Nt-3].concat([{type:"and",parText:Yt.parseMessage(ct[Nt-1]),signalType:Yt.LINETYPE.PAR_AND},ct[Nt]]);break;case 35:this.$=ct[Nt-3].concat([{type:"else",altText:Yt.parseMessage(ct[Nt-1]),signalType:Yt.LINETYPE.ALT_ELSE},ct[Nt]]);break;case 36:this.$=[ct[Nt-1],{type:"addNote",placement:ct[Nt-2],actor:ct[Nt-1].actor,text:ct[Nt]}];break;case 37:ct[Nt-2]=[].concat(ct[Nt-1],ct[Nt-1]).slice(0,2),ct[Nt-2][0]=ct[Nt-2][0].actor,ct[Nt-2][1]=ct[Nt-2][1].actor,this.$=[ct[Nt-1],{type:"addNote",placement:Yt.PLACEMENT.OVER,actor:ct[Nt-2].slice(0,2),text:ct[Nt]}];break;case 38:this.$=[ct[Nt-1],{type:"addLinks",actor:ct[Nt-1].actor,text:ct[Nt]}];break;case 39:this.$=[ct[Nt-1],{type:"addALink",actor:ct[Nt-1].actor,text:ct[Nt]}];break;case 40:this.$=[ct[Nt-1],{type:"addProperties",actor:ct[Nt-1].actor,text:ct[Nt]}];break;case 41:this.$=[ct[Nt-1],{type:"addDetails",actor:ct[Nt-1].actor,text:ct[Nt]}];break;case 44:this.$=[ct[Nt-2],ct[Nt]];break;case 46:this.$=Yt.PLACEMENT.LEFTOF;break;case 47:this.$=Yt.PLACEMENT.RIGHTOF;break;case 48:this.$=[ct[Nt-4],ct[Nt-1],{type:"addMessage",from:ct[Nt-4].actor,to:ct[Nt-1].actor,signalType:ct[Nt-3],msg:ct[Nt]},{type:"activeStart",signalType:Yt.LINETYPE.ACTIVE_START,actor:ct[Nt-1]}];break;case 49:this.$=[ct[Nt-4],ct[Nt-1],{type:"addMessage",from:ct[Nt-4].actor,to:ct[Nt-1].actor,signalType:ct[Nt-3],msg:ct[Nt]},{type:"activeEnd",signalType:Yt.LINETYPE.ACTIVE_END,actor:ct[Nt-4]}];break;case 50:this.$=[ct[Nt-3],ct[Nt-1],{type:"addMessage",from:ct[Nt-3].actor,to:ct[Nt-1].actor,signalType:ct[Nt-2],msg:ct[Nt]}];break;case 51:this.$={type:"addParticipant",actor:ct[Nt]};break;case 52:this.$=Yt.LINETYPE.SOLID_OPEN;break;case 53:this.$=Yt.LINETYPE.DOTTED_OPEN;break;case 54:this.$=Yt.LINETYPE.SOLID;break;case 55:this.$=Yt.LINETYPE.DOTTED;break;case 56:this.$=Yt.LINETYPE.SOLID_CROSS;break;case 57:this.$=Yt.LINETYPE.DOTTED_CROSS;break;case 58:this.$=Yt.LINETYPE.SOLID_POINT;break;case 59:this.$=Yt.LINETYPE.DOTTED_POINT;break;case 60:this.$=Yt.parseMessage(ct[Nt].trim().substring(1));break;case 61:Yt.parseDirective("%%{","open_directive");break;case 62:Yt.parseDirective(ct[Nt],"type_directive");break;case 63:ct[Nt]=ct[Nt].trim().replace(/'/g,'"'),Yt.parseDirective(ct[Nt],"arg_directive");break;case 64:Yt.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:y,5:p,6:4,7:b,11:6,67:T},{1:[3]},{3:8,4:y,5:p,6:4,7:b,11:6,67:T},{3:9,4:y,5:p,6:4,7:b,11:6,67:T},{3:10,4:y,5:p,6:4,7:b,11:6,67:T},c([1,4,5,16,20,22,23,24,30,32,34,35,36,38,42,46,47,48,49,57,67],k,{8:11}),{12:12,68:[1,13]},{68:[2,61]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:D,5:O,6:35,9:14,10:16,11:6,16:I,17:36,20:z,21:20,22:H,23:q,24:V,25:24,26:25,27:26,28:27,29:28,30:X,32:it,34:tt,35:rt,36:ut,38:Ct,42:et,46:K,47:ht,48:xt,49:St,57:pt,67:T},{13:43,14:[1,44],70:wt},c([14,70],[2,62]),c(Ht,[2,6]),{6:35,10:46,11:6,16:I,17:36,20:z,21:20,22:H,23:q,24:V,25:24,26:25,27:26,28:27,29:28,30:X,32:it,34:tt,35:rt,36:ut,38:Ct,42:et,46:K,47:ht,48:xt,49:St,57:pt,67:T},c(Ht,[2,8]),c(Ht,[2,9]),{17:47,57:pt},{17:48,57:pt},{5:[1,49]},c(Ht,[2,17]),{17:50,57:pt},{17:51,57:pt},{5:[1,52]},{5:[1,53]},{5:[1,54]},{5:[1,55]},{5:[1,56]},{31:57,66:Pt},{19:[1,59]},{19:[1,60]},{19:[1,61]},{19:[1,62]},{19:[1,63]},c(Ht,[2,31]),{54:64,58:[1,65],59:[1,66],60:[1,67],61:[1,68],62:[1,69],63:[1,70],64:[1,71],65:[1,72]},{43:73,44:[1,74],52:[1,75],53:[1,76]},{17:77,57:pt},{17:78,57:pt},{17:79,57:pt},{17:80,57:pt},c([5,18,51,58,59,60,61,62,63,64,65,66],[2,51]),{5:[1,81]},{15:82,69:[1,83]},{5:[2,64]},c(Ht,[2,7]),{5:[1,85],18:[1,84]},{5:[1,87],18:[1,86]},c(Ht,[2,16]),{5:[1,88]},{5:[1,89]},c(Ht,[2,20]),c(Ht,[2,21]),c(Ht,[2,22]),c(Ht,[2,23]),c(Ht,[2,24]),{5:[1,90]},{5:[2,60]},c(ge,k,{8:91}),c(ge,k,{8:92}),c(ge,k,{8:93}),c(pe,k,{37:94,8:95}),c(de,k,{39:96,8:97}),{17:100,55:[1,98],56:[1,99],57:pt},c(Rt,[2,52]),c(Rt,[2,53]),c(Rt,[2,54]),c(Rt,[2,55]),c(Rt,[2,56]),c(Rt,[2,57]),c(Rt,[2,58]),c(Rt,[2,59]),{17:101,57:pt},{17:103,45:102,57:pt},{57:[2,46]},{57:[2,47]},{31:104,66:Pt},{31:105,66:Pt},{31:106,66:Pt},{31:107,66:Pt},c(Gt,[2,10]),{13:108,70:wt},{70:[2,63]},{19:[1,109]},c(Ht,[2,13]),{19:[1,110]},c(Ht,[2,15]),c(Ht,[2,18]),c(Ht,[2,19]),c(Ht,[2,25]),{4:D,5:O,6:35,9:14,10:16,11:6,16:I,17:36,20:z,21:20,22:H,23:q,24:V,25:24,26:25,27:26,28:27,29:28,30:X,32:it,33:[1,111],34:tt,35:rt,36:ut,38:Ct,42:et,46:K,47:ht,48:xt,49:St,57:pt,67:T},{4:D,5:O,6:35,9:14,10:16,11:6,16:I,17:36,20:z,21:20,22:H,23:q,24:V,25:24,26:25,27:26,28:27,29:28,30:X,32:it,33:[1,112],34:tt,35:rt,36:ut,38:Ct,42:et,46:K,47:ht,48:xt,49:St,57:pt,67:T},{4:D,5:O,6:35,9:14,10:16,11:6,16:I,17:36,20:z,21:20,22:H,23:q,24:V,25:24,26:25,27:26,28:27,29:28,30:X,32:it,33:[1,113],34:tt,35:rt,36:ut,38:Ct,42:et,46:K,47:ht,48:xt,49:St,57:pt,67:T},{33:[1,114]},{4:D,5:O,6:35,9:14,10:16,11:6,16:I,17:36,20:z,21:20,22:H,23:q,24:V,25:24,26:25,27:26,28:27,29:28,30:X,32:it,33:[2,34],34:tt,35:rt,36:ut,38:Ct,41:[1,115],42:et,46:K,47:ht,48:xt,49:St,57:pt,67:T},{33:[1,116]},{4:D,5:O,6:35,9:14,10:16,11:6,16:I,17:36,20:z,21:20,22:H,23:q,24:V,25:24,26:25,27:26,28:27,29:28,30:X,32:it,33:[2,32],34:tt,35:rt,36:ut,38:Ct,40:[1,117],42:et,46:K,47:ht,48:xt,49:St,57:pt,67:T},{17:118,57:pt},{17:119,57:pt},{31:120,66:Pt},{31:121,66:Pt},{31:122,66:Pt},{51:[1,123],66:[2,45]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},{5:[1,124]},{5:[1,125]},{5:[1,126]},c(Ht,[2,26]),c(Ht,[2,27]),c(Ht,[2,28]),c(Ht,[2,29]),{19:[1,127]},c(Ht,[2,30]),{19:[1,128]},{31:129,66:Pt},{31:130,66:Pt},{5:[2,50]},{5:[2,36]},{5:[2,37]},{17:131,57:pt},c(Gt,[2,11]),c(Ht,[2,12]),c(Ht,[2,14]),c(pe,k,{8:95,37:132}),c(de,k,{8:97,39:133}),{5:[2,48]},{5:[2,49]},{66:[2,44]},{33:[2,35]},{33:[2,33]}],defaultActions:{7:[2,61],8:[2,1],9:[2,2],10:[2,3],45:[2,64],58:[2,60],75:[2,46],76:[2,47],83:[2,63],104:[2,38],105:[2,39],106:[2,40],107:[2,41],120:[2,50],121:[2,36],122:[2,37],129:[2,48],130:[2,49],131:[2,44],132:[2,35],133:[2,33]},parseError:function(It,$e){if(!$e.recoverable){var he=new Error(It);throw he.hash=$e,he}this.trace(It)},parse:function(It){var $e=this,he=[0],Yt=[],Kt=[null],ct=[],ee=this.table,Nt="",Vt=0,Ut=0,Ot=0,ae=2,Qe=1,_e=ct.slice.call(arguments,1),Ce=Object.create(this.lexer),un={yy:{}};for(var Ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ve)&&(un.yy[Ve]=this.yy[Ve]);Ce.setInput(It,un.yy),un.yy.lexer=Ce,un.yy.parser=this,Ce.yylloc===void 0&&(Ce.yylloc={});var Le=Ce.yylloc;ct.push(Le);var ke=Ce.options&&Ce.options.ranges;function Je(){var cn;return typeof(cn=Yt.pop()||Ce.lex()||Qe)!="number"&&(cn instanceof Array&&(cn=(Yt=cn).pop()),cn=$e.symbols_[cn]||cn),cn}typeof un.yy.parseError=="function"?this.parseError=un.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ye,Ge,Ze,Ne,Un,Te,tn,vn,Ir,_n={};;){if(Ze=he[he.length-1],this.defaultActions[Ze]?Ne=this.defaultActions[Ze]:(Ye==null&&(Ye=Je()),Ne=ee[Ze]&&ee[Ze][Ye]),Ne===void 0||!Ne.length||!Ne[0]){var tr="";for(Te in Ir=[],ee[Ze])this.terminals_[Te]&&Te>ae&&Ir.push("'"+this.terminals_[Te]+"'");tr=Ce.showPosition?"Parse error on line "+(Vt+1)+`:
`+Ce.showPosition()+`
Expecting `+Ir.join(", ")+", got '"+(this.terminals_[Ye]||Ye)+"'":"Parse error on line "+(Vt+1)+": Unexpected "+(Ye==Qe?"end of input":"'"+(this.terminals_[Ye]||Ye)+"'"),this.parseError(tr,{text:Ce.match,token:this.terminals_[Ye]||Ye,line:Ce.yylineno,loc:Le,expected:Ir})}if(Ne[0]instanceof Array&&Ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ze+", token: "+Ye);switch(Ne[0]){case 1:he.push(Ye),Kt.push(Ce.yytext),ct.push(Ce.yylloc),he.push(Ne[1]),Ye=null,Ge?(Ye=Ge,Ge=null):(Ut=Ce.yyleng,Nt=Ce.yytext,Vt=Ce.yylineno,Le=Ce.yylloc,Ot>0);break;case 2:if(tn=this.productions_[Ne[1]][1],_n.$=Kt[Kt.length-tn],_n._$={first_line:ct[ct.length-(tn||1)].first_line,last_line:ct[ct.length-1].last_line,first_column:ct[ct.length-(tn||1)].first_column,last_column:ct[ct.length-1].last_column},ke&&(_n._$.range=[ct[ct.length-(tn||1)].range[0],ct[ct.length-1].range[1]]),(Un=this.performAction.apply(_n,[Nt,Ut,Vt,un.yy,Ne[1],Kt,ct].concat(_e)))!==void 0)return Un;tn&&(he=he.slice(0,-1*tn*2),Kt=Kt.slice(0,-1*tn),ct=ct.slice(0,-1*tn)),he.push(this.productions_[Ne[1]][0]),Kt.push(_n.$),ct.push(_n._$),vn=ee[he[he.length-2]][he[he.length-1]],he.push(vn);break;case 3:return!0}}return!0}},le={EOF:1,parseError:function(It,$e){if(!this.yy.parser)throw new Error(It);this.yy.parser.parseError(It,$e)},setInput:function(It,$e){return this.yy=$e||this.yy||{},this._input=It,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var It=this._input[0];return this.yytext+=It,this.yyleng++,this.offset++,this.match+=It,this.matched+=It,It.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),It},unput:function(It){var $e=It.length,he=It.split(/(?:\r\n?|\n)/g);this._input=It+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-$e),this.offset-=$e;var Yt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),he.length-1&&(this.yylineno-=he.length-1);var Kt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:he?(he.length===Yt.length?this.yylloc.first_column:0)+Yt[Yt.length-he.length].length-he[0].length:this.yylloc.first_column-$e},this.options.ranges&&(this.yylloc.range=[Kt[0],Kt[0]+this.yyleng-$e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(It){this.unput(this.match.slice(It))},pastInput:function(){var It=this.matched.substr(0,this.matched.length-this.match.length);return(It.length>20?"...":"")+It.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var It=this.match;return It.length<20&&(It+=this._input.substr(0,20-It.length)),(It.substr(0,20)+(It.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var It=this.pastInput(),$e=new Array(It.length+1).join("-");return It+this.upcomingInput()+`
`+$e+"^"},test_match:function(It,$e){var he,Yt,Kt;if(this.options.backtrack_lexer&&(Kt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Kt.yylloc.range=this.yylloc.range.slice(0))),(Yt=It[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Yt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Yt?Yt[Yt.length-1].length-Yt[Yt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+It[0].length},this.yytext+=It[0],this.match+=It[0],this.matches=It,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(It[0].length),this.matched+=It[0],he=this.performAction.call(this,this.yy,this,$e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),he)return he;if(this._backtrack){for(var ct in Kt)this[ct]=Kt[ct];return!1}return!1},next:function(){if(this.done)return this.EOF;var It,$e,he,Yt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Kt=this._currentRules(),ct=0;ct<Kt.length;ct++)if((he=this._input.match(this.rules[Kt[ct]]))&&(!$e||he[0].length>$e[0].length)){if($e=he,Yt=ct,this.options.backtrack_lexer){if((It=this.test_match(he,Kt[ct]))!==!1)return It;if(this._backtrack){$e=!1;continue}return!1}if(!this.options.flex)break}return $e?(It=this.test_match($e,Kt[Yt]))!==!1&&It:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(It){this.conditionStack.push(It)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(It){return(It=this.conditionStack.length-1-Math.abs(It||0))>=0?this.conditionStack[It]:"INITIAL"},pushState:function(It){this.begin(It)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(It,$e,he,Yt){switch(he){case 0:return this.begin("open_directive"),67;case 1:return this.begin("type_directive"),68;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),70;case 4:return 69;case 5:case 39:case 52:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return this.begin("ID"),16;case 12:return this.begin("ID"),20;case 13:return $e.yytext=$e.yytext.trim(),this.begin("ALIAS"),57;case 14:return this.popState(),this.popState(),this.begin("LINE"),18;case 15:return this.popState(),this.popState(),5;case 16:return this.begin("LINE"),32;case 17:return this.begin("LINE"),34;case 18:return this.begin("LINE"),35;case 19:return this.begin("LINE"),36;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),38;case 22:return this.begin("LINE"),40;case 23:return this.popState(),19;case 24:return 33;case 25:return 52;case 26:return 53;case 27:return 46;case 28:return 47;case 29:return 48;case 30:return 49;case 31:return 44;case 32:return 42;case 33:return this.begin("ID"),23;case 34:return this.begin("ID"),24;case 35:return 30;case 36:return 7;case 37:return 22;case 38:return 51;case 40:return $e.yytext=$e.yytext.trim(),57;case 41:return 60;case 42:return 61;case 43:return 58;case 44:return 59;case 45:return 62;case 46:return 63;case 47:return 64;case 48:return 65;case 49:return 66;case 50:return 55;case 51:return 56;case 53:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,13],inclusive:!1},ALIAS:{rules:[7,8,14,15],inclusive:!1},LINE:{rules:[7,8,23],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,16,17,18,19,20,21,22,24,25,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,52,53],inclusive:!0}}};function ye(){this.yy={}}return oe.lexer=le,ye.prototype=oe,oe.Parser=ye,new ye}();s.parser=h,s.Parser=h.Parser,s.parse=function(){return h.parse.apply(h,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(1993).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},3584:(r,s,o)=>{r=o.nmd(r);var h=function(){var c=function(Rt,Gt,oe,le){for(oe=oe||{},le=Rt.length;le--;oe[Rt[le]]=Gt);return oe},y=[1,2],p=[1,3],b=[1,5],T=[1,7],k=[2,5],D=[1,15],O=[1,17],I=[1,19],z=[1,20],H=[1,21],q=[1,22],V=[1,30],X=[1,23],it=[1,24],tt=[1,25],rt=[1,26],ut=[1,27],Ct=[1,32],et=[1,33],K=[1,34],ht=[1,35],xt=[1,31],St=[1,38],pt=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],wt=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],Ht=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],Pt=[4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],ge={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"-->":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CHOICE:25,CONCURRENT:26,note:27,notePosition:28,NOTE_TEXT:29,direction:30,openDirective:31,typeDirective:32,closeDirective:33,":":34,argDirective:35,direction_tb:36,direction_bt:37,direction_rl:38,direction_lr:39,eol:40,";":41,EDGE_STATE:42,left_of:43,right_of:44,open_directive:45,type_directive:46,arg_directive:47,close_directive:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"-->",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CHOICE",26:"CONCURRENT",27:"note",29:"NOTE_TEXT",34:":",36:"direction_tb",37:"direction_bt",38:"direction_rl",39:"direction_lr",41:";",42:"EDGE_STATE",43:"left_of",44:"right_of",45:"open_directive",46:"type_directive",47:"arg_directive",48:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[40,1],[40,1],[11,1],[11,1],[28,1],[28,1],[31,1],[32,1],[35,1],[33,1]],performAction:function(Rt,Gt,oe,le,ye,It,$e){var he=It.length-1;switch(ye){case 4:return le.setRootDoc(It[he]),It[he];case 5:this.$=[];break;case 6:It[he]!="nl"&&(It[he-1].push(It[he]),this.$=It[he-1]);break;case 7:case 8:case 36:case 37:this.$=It[he];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:It[he],type:"default",description:""};break;case 11:this.$={stmt:"state",id:It[he-1],type:"default",description:le.trimColon(It[he])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:It[he-2],type:"default",description:""},state2:{stmt:"state",id:It[he],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:It[he-3],type:"default",description:""},state2:{stmt:"state",id:It[he-1],type:"default",description:""},description:It[he].substr(1).trim()};break;case 17:this.$={stmt:"state",id:It[he-3],type:"default",description:"",doc:It[he-1]};break;case 18:var Yt=It[he],Kt=It[he-2].trim();if(It[he].match(":")){var ct=It[he].split(":");Yt=ct[0],Kt=[Kt,ct[1]]}this.$={stmt:"state",id:Yt,type:"default",description:Kt};break;case 19:this.$={stmt:"state",id:It[he-3],type:"default",description:It[he-5],doc:It[he-1]};break;case 20:this.$={stmt:"state",id:It[he],type:"fork"};break;case 21:this.$={stmt:"state",id:It[he],type:"join"};break;case 22:this.$={stmt:"state",id:It[he],type:"choice"};break;case 23:this.$={stmt:"state",id:le.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:It[he-1].trim(),note:{position:It[he-2].trim(),text:It[he].trim()}};break;case 30:le.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 31:le.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 32:le.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 33:le.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:le.parseDirective("%%{","open_directive");break;case 41:le.parseDirective(It[he],"type_directive");break;case 42:It[he]=It[he].trim().replace(/'/g,'"'),le.parseDirective(It[he],"arg_directive");break;case 43:le.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:y,5:p,6:4,7:b,31:6,45:T},{1:[3]},{3:8,4:y,5:p,6:4,7:b,31:6,45:T},{3:9,4:y,5:p,6:4,7:b,31:6,45:T},{3:10,4:y,5:p,6:4,7:b,31:6,45:T},c([1,4,5,14,15,17,20,22,23,24,25,26,27,36,37,38,39,42,45],k,{8:11}),{32:12,46:[1,13]},{46:[2,40]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:D,5:O,6:28,9:14,10:16,11:18,14:I,15:z,17:H,20:q,22:V,23:X,24:it,25:tt,26:rt,27:ut,30:29,31:6,36:Ct,37:et,38:K,39:ht,42:xt,45:T},{33:36,34:[1,37],48:St},c([34,48],[2,41]),c(pt,[2,6]),{6:28,10:39,11:18,14:I,15:z,17:H,20:q,22:V,23:X,24:it,25:tt,26:rt,27:ut,30:29,31:6,36:Ct,37:et,38:K,39:ht,42:xt,45:T},c(pt,[2,8]),c(pt,[2,9]),c(pt,[2,10],{12:[1,40],13:[1,41]}),c(pt,[2,14]),{16:[1,42]},c(pt,[2,16],{18:[1,43]}),{21:[1,44]},c(pt,[2,20]),c(pt,[2,21]),c(pt,[2,22]),c(pt,[2,23]),{28:45,29:[1,46],43:[1,47],44:[1,48]},c(pt,[2,26]),c(pt,[2,27]),c(wt,[2,36]),c(wt,[2,37]),c(pt,[2,30]),c(pt,[2,31]),c(pt,[2,32]),c(pt,[2,33]),c(Ht,[2,28]),{35:49,47:[1,50]},c(Ht,[2,43]),c(pt,[2,7]),c(pt,[2,11]),{11:51,22:V,42:xt},c(pt,[2,15]),c(Pt,k,{8:52}),{22:[1,53]},{22:[1,54]},{21:[1,55]},{22:[2,38]},{22:[2,39]},{33:56,48:St},{48:[2,42]},c(pt,[2,12],{12:[1,57]}),{4:D,5:O,6:28,9:14,10:16,11:18,14:I,15:z,17:H,19:[1,58],20:q,22:V,23:X,24:it,25:tt,26:rt,27:ut,30:29,31:6,36:Ct,37:et,38:K,39:ht,42:xt,45:T},c(pt,[2,18],{18:[1,59]}),{29:[1,60]},{22:[1,61]},c(Ht,[2,29]),c(pt,[2,13]),c(pt,[2,17]),c(Pt,k,{8:62}),c(pt,[2,24]),c(pt,[2,25]),{4:D,5:O,6:28,9:14,10:16,11:18,14:I,15:z,17:H,19:[1,63],20:q,22:V,23:X,24:it,25:tt,26:rt,27:ut,30:29,31:6,36:Ct,37:et,38:K,39:ht,42:xt,45:T},c(pt,[2,19])],defaultActions:{7:[2,40],8:[2,1],9:[2,2],10:[2,3],47:[2,38],48:[2,39],50:[2,42]},parseError:function(Rt,Gt){if(!Gt.recoverable){var oe=new Error(Rt);throw oe.hash=Gt,oe}this.trace(Rt)},parse:function(Rt){var Gt=this,oe=[0],le=[],ye=[null],It=[],$e=this.table,he="",Yt=0,Kt=0,ct=0,ee=2,Nt=1,Vt=It.slice.call(arguments,1),Ut=Object.create(this.lexer),Ot={yy:{}};for(var ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ae)&&(Ot.yy[ae]=this.yy[ae]);Ut.setInput(Rt,Ot.yy),Ot.yy.lexer=Ut,Ot.yy.parser=this,Ut.yylloc===void 0&&(Ut.yylloc={});var Qe=Ut.yylloc;It.push(Qe);var _e=Ut.options&&Ut.options.ranges;function Ce(){var tn;return typeof(tn=le.pop()||Ut.lex()||Nt)!="number"&&(tn instanceof Array&&(tn=(le=tn).pop()),tn=Gt.symbols_[tn]||tn),tn}typeof Ot.yy.parseError=="function"?this.parseError=Ot.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var un,Ve,Le,ke,Je,Ye,Ge,Ze,Ne,Un={};;){if(Le=oe[oe.length-1],this.defaultActions[Le]?ke=this.defaultActions[Le]:(un==null&&(un=Ce()),ke=$e[Le]&&$e[Le][un]),ke===void 0||!ke.length||!ke[0]){var Te="";for(Ye in Ne=[],$e[Le])this.terminals_[Ye]&&Ye>ee&&Ne.push("'"+this.terminals_[Ye]+"'");Te=Ut.showPosition?"Parse error on line "+(Yt+1)+`:
`+Ut.showPosition()+`
Expecting `+Ne.join(", ")+", got '"+(this.terminals_[un]||un)+"'":"Parse error on line "+(Yt+1)+": Unexpected "+(un==Nt?"end of input":"'"+(this.terminals_[un]||un)+"'"),this.parseError(Te,{text:Ut.match,token:this.terminals_[un]||un,line:Ut.yylineno,loc:Qe,expected:Ne})}if(ke[0]instanceof Array&&ke.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Le+", token: "+un);switch(ke[0]){case 1:oe.push(un),ye.push(Ut.yytext),It.push(Ut.yylloc),oe.push(ke[1]),un=null,Ve?(un=Ve,Ve=null):(Kt=Ut.yyleng,he=Ut.yytext,Yt=Ut.yylineno,Qe=Ut.yylloc,ct>0);break;case 2:if(Ge=this.productions_[ke[1]][1],Un.$=ye[ye.length-Ge],Un._$={first_line:It[It.length-(Ge||1)].first_line,last_line:It[It.length-1].last_line,first_column:It[It.length-(Ge||1)].first_column,last_column:It[It.length-1].last_column},_e&&(Un._$.range=[It[It.length-(Ge||1)].range[0],It[It.length-1].range[1]]),(Je=this.performAction.apply(Un,[he,Kt,Yt,Ot.yy,ke[1],ye,It].concat(Vt)))!==void 0)return Je;Ge&&(oe=oe.slice(0,-1*Ge*2),ye=ye.slice(0,-1*Ge),It=It.slice(0,-1*Ge)),oe.push(this.productions_[ke[1]][0]),ye.push(Un.$),It.push(Un._$),Ze=$e[oe[oe.length-2]][oe[oe.length-1]],oe.push(Ze);break;case 3:return!0}}return!0}},pe={EOF:1,parseError:function(Rt,Gt){if(!this.yy.parser)throw new Error(Rt);this.yy.parser.parseError(Rt,Gt)},setInput:function(Rt,Gt){return this.yy=Gt||this.yy||{},this._input=Rt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Rt=this._input[0];return this.yytext+=Rt,this.yyleng++,this.offset++,this.match+=Rt,this.matched+=Rt,Rt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Rt},unput:function(Rt){var Gt=Rt.length,oe=Rt.split(/(?:\r\n?|\n)/g);this._input=Rt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Gt),this.offset-=Gt;var le=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),oe.length-1&&(this.yylineno-=oe.length-1);var ye=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:oe?(oe.length===le.length?this.yylloc.first_column:0)+le[le.length-oe.length].length-oe[0].length:this.yylloc.first_column-Gt},this.options.ranges&&(this.yylloc.range=[ye[0],ye[0]+this.yyleng-Gt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Rt){this.unput(this.match.slice(Rt))},pastInput:function(){var Rt=this.matched.substr(0,this.matched.length-this.match.length);return(Rt.length>20?"...":"")+Rt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Rt=this.match;return Rt.length<20&&(Rt+=this._input.substr(0,20-Rt.length)),(Rt.substr(0,20)+(Rt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Rt=this.pastInput(),Gt=new Array(Rt.length+1).join("-");return Rt+this.upcomingInput()+`
`+Gt+"^"},test_match:function(Rt,Gt){var oe,le,ye;if(this.options.backtrack_lexer&&(ye={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ye.yylloc.range=this.yylloc.range.slice(0))),(le=Rt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=le.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:le?le[le.length-1].length-le[le.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Rt[0].length},this.yytext+=Rt[0],this.match+=Rt[0],this.matches=Rt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Rt[0].length),this.matched+=Rt[0],oe=this.performAction.call(this,this.yy,this,Gt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),oe)return oe;if(this._backtrack){for(var It in ye)this[It]=ye[It];return!1}return!1},next:function(){if(this.done)return this.EOF;var Rt,Gt,oe,le;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ye=this._currentRules(),It=0;It<ye.length;It++)if((oe=this._input.match(this.rules[ye[It]]))&&(!Gt||oe[0].length>Gt[0].length)){if(Gt=oe,le=It,this.options.backtrack_lexer){if((Rt=this.test_match(oe,ye[It]))!==!1)return Rt;if(this._backtrack){Gt=!1;continue}return!1}if(!this.options.flex)break}return Gt?(Rt=this.test_match(Gt,ye[le]))!==!1&&Rt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Rt){this.conditionStack.push(Rt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Rt){return(Rt=this.conditionStack.length-1-Math.abs(Rt||0))>=0?this.conditionStack[Rt]:"INITIAL"},pushState:function(Rt){this.begin(Rt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Rt,Gt,oe,le){switch(oe){case 0:case 26:return 36;case 1:case 27:return 37;case 2:case 28:return 38;case 3:case 29:return 39;case 4:return this.begin("open_directive"),45;case 5:return this.begin("type_directive"),46;case 6:return this.popState(),this.begin("arg_directive"),34;case 7:return this.popState(),this.popState(),48;case 8:return 47;case 9:case 10:case 12:case 13:case 14:case 15:case 39:case 45:break;case 11:case 59:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 33:case 36:this.popState();break;case 19:this.pushState("STATE");break;case 20:case 23:return this.popState(),Gt.yytext=Gt.yytext.slice(0,-8).trim(),23;case 21:case 24:return this.popState(),Gt.yytext=Gt.yytext.slice(0,-8).trim(),24;case 22:case 25:return this.popState(),Gt.yytext=Gt.yytext.slice(0,-10).trim(),25;case 30:this.begin("STATE_STRING");break;case 31:return this.popState(),this.pushState("STATE_ID"),"AS";case 32:case 47:return this.popState(),"ID";case 34:return"STATE_DESCR";case 35:return 17;case 37:return this.popState(),this.pushState("struct"),18;case 38:return this.popState(),19;case 40:return this.begin("NOTE"),27;case 41:return this.popState(),this.pushState("NOTE_ID"),43;case 42:return this.popState(),this.pushState("NOTE_ID"),44;case 43:this.popState(),this.pushState("FLOATING_NOTE");break;case 44:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 46:return"NOTE_TEXT";case 48:return this.popState(),this.pushState("NOTE_TEXT"),22;case 49:return this.popState(),Gt.yytext=Gt.yytext.substr(2).trim(),29;case 50:return this.popState(),Gt.yytext=Gt.yytext.slice(0,-8).trim(),29;case 51:case 52:return 7;case 53:return 14;case 54:return 42;case 55:return 22;case 56:return Gt.yytext=Gt.yytext.trim(),12;case 57:return 13;case 58:return 26;case 60:return"INVALID"}},rules:[/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,19,26,27,28,29,38,39,40,54,55,56,57,58],inclusive:!1},FLOATING_NOTE_ID:{rules:[47],inclusive:!1},FLOATING_NOTE:{rules:[44,45,46],inclusive:!1},NOTE_TEXT:{rules:[49,50],inclusive:!1},NOTE_ID:{rules:[48],inclusive:!1},NOTE:{rules:[41,42,43],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[32],inclusive:!1},STATE_STRING:{rules:[33,34],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,20,21,22,23,24,25,30,31,35,36,37],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,37,40,51,52,53,54,55,56,57,59,60],inclusive:!0}}};function de(){this.yy={}}return ge.lexer=pe,de.prototype=ge,ge.Parser=de,new de}();s.parser=h,s.Parser=h.Parser,s.parse=function(){return h.parse.apply(h,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(3069).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},9763:(r,s,o)=>{r=o.nmd(r);var h=function(){var c=function(V,X,it,tt){for(it=it||{},tt=V.length;tt--;it[V[tt]]=X);return it},y=[1,2],p=[1,5],b=[6,9,11,17,18,19,21],T=[1,15],k=[1,16],D=[1,17],O=[1,21],I=[4,6,9,11,17,18,19,21],z={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,section:18,taskName:19,taskData:20,open_directive:21,type_directive:22,arg_directive:23,close_directive:24,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"section",19:"taskName",20:"taskData",21:"open_directive",22:"type_directive",23:"arg_directive",24:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(V,X,it,tt,rt,ut,Ct){var et=ut.length-1;switch(rt){case 1:return ut[et-1];case 3:case 7:case 8:this.$=[];break;case 4:ut[et-1].push(ut[et]),this.$=ut[et-1];break;case 5:case 6:this.$=ut[et];break;case 11:tt.setTitle(ut[et].substr(6)),this.$=ut[et].substr(6);break;case 12:tt.addSection(ut[et].substr(8)),this.$=ut[et].substr(8);break;case 13:tt.addTask(ut[et-1],ut[et]),this.$="task";break;case 15:tt.parseDirective("%%{","open_directive");break;case 16:tt.parseDirective(ut[et],"type_directive");break;case 17:ut[et]=ut[et].trim().replace(/'/g,'"'),tt.parseDirective(ut[et],"arg_directive");break;case 18:tt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:y,7:3,12:4,21:p},{1:[3]},c(b,[2,3],{5:6}),{3:7,4:y,7:3,12:4,21:p},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:T,18:k,19:D,21:p},{1:[2,2]},{14:19,15:[1,20],24:O},c([15,24],[2,16]),c(b,[2,8],{1:[2,1]}),c(b,[2,4]),{7:18,10:22,12:4,17:T,18:k,19:D,21:p},c(b,[2,6]),c(b,[2,7]),c(b,[2,11]),c(b,[2,12]),{20:[1,23]},c(b,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},c(b,[2,5]),c(b,[2,13]),c(I,[2,9]),{14:27,24:O},{24:[2,17]},{11:[1,28]},c(I,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(V,X){if(!X.recoverable){var it=new Error(V);throw it.hash=X,it}this.trace(V)},parse:function(V){var X=this,it=[0],tt=[],rt=[null],ut=[],Ct=this.table,et="",K=0,ht=0,xt=0,St=2,pt=1,wt=ut.slice.call(arguments,1),Ht=Object.create(this.lexer),Pt={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(Pt.yy[ge]=this.yy[ge]);Ht.setInput(V,Pt.yy),Pt.yy.lexer=Ht,Pt.yy.parser=this,Ht.yylloc===void 0&&(Ht.yylloc={});var pe=Ht.yylloc;ut.push(pe);var de=Ht.options&&Ht.options.ranges;function Rt(){var Nt;return typeof(Nt=tt.pop()||Ht.lex()||pt)!="number"&&(Nt instanceof Array&&(Nt=(tt=Nt).pop()),Nt=X.symbols_[Nt]||Nt),Nt}typeof Pt.yy.parseError=="function"?this.parseError=Pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Gt,oe,le,ye,It,$e,he,Yt,Kt,ct={};;){if(le=it[it.length-1],this.defaultActions[le]?ye=this.defaultActions[le]:(Gt==null&&(Gt=Rt()),ye=Ct[le]&&Ct[le][Gt]),ye===void 0||!ye.length||!ye[0]){var ee="";for($e in Kt=[],Ct[le])this.terminals_[$e]&&$e>St&&Kt.push("'"+this.terminals_[$e]+"'");ee=Ht.showPosition?"Parse error on line "+(K+1)+`:
`+Ht.showPosition()+`
Expecting `+Kt.join(", ")+", got '"+(this.terminals_[Gt]||Gt)+"'":"Parse error on line "+(K+1)+": Unexpected "+(Gt==pt?"end of input":"'"+(this.terminals_[Gt]||Gt)+"'"),this.parseError(ee,{text:Ht.match,token:this.terminals_[Gt]||Gt,line:Ht.yylineno,loc:pe,expected:Kt})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+le+", token: "+Gt);switch(ye[0]){case 1:it.push(Gt),rt.push(Ht.yytext),ut.push(Ht.yylloc),it.push(ye[1]),Gt=null,oe?(Gt=oe,oe=null):(ht=Ht.yyleng,et=Ht.yytext,K=Ht.yylineno,pe=Ht.yylloc,xt>0);break;case 2:if(he=this.productions_[ye[1]][1],ct.$=rt[rt.length-he],ct._$={first_line:ut[ut.length-(he||1)].first_line,last_line:ut[ut.length-1].last_line,first_column:ut[ut.length-(he||1)].first_column,last_column:ut[ut.length-1].last_column},de&&(ct._$.range=[ut[ut.length-(he||1)].range[0],ut[ut.length-1].range[1]]),(It=this.performAction.apply(ct,[et,ht,K,Pt.yy,ye[1],rt,ut].concat(wt)))!==void 0)return It;he&&(it=it.slice(0,-1*he*2),rt=rt.slice(0,-1*he),ut=ut.slice(0,-1*he)),it.push(this.productions_[ye[1]][0]),rt.push(ct.$),ut.push(ct._$),Yt=Ct[it[it.length-2]][it[it.length-1]],it.push(Yt);break;case 3:return!0}}return!0}},H={EOF:1,parseError:function(V,X){if(!this.yy.parser)throw new Error(V);this.yy.parser.parseError(V,X)},setInput:function(V,X){return this.yy=X||this.yy||{},this._input=V,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var V=this._input[0];return this.yytext+=V,this.yyleng++,this.offset++,this.match+=V,this.matched+=V,V.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),V},unput:function(V){var X=V.length,it=V.split(/(?:\r\n?|\n)/g);this._input=V+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-X),this.offset-=X;var tt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),it.length-1&&(this.yylineno-=it.length-1);var rt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:it?(it.length===tt.length?this.yylloc.first_column:0)+tt[tt.length-it.length].length-it[0].length:this.yylloc.first_column-X},this.options.ranges&&(this.yylloc.range=[rt[0],rt[0]+this.yyleng-X]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(V){this.unput(this.match.slice(V))},pastInput:function(){var V=this.matched.substr(0,this.matched.length-this.match.length);return(V.length>20?"...":"")+V.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var V=this.match;return V.length<20&&(V+=this._input.substr(0,20-V.length)),(V.substr(0,20)+(V.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var V=this.pastInput(),X=new Array(V.length+1).join("-");return V+this.upcomingInput()+`
`+X+"^"},test_match:function(V,X){var it,tt,rt;if(this.options.backtrack_lexer&&(rt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(rt.yylloc.range=this.yylloc.range.slice(0))),(tt=V[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=tt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:tt?tt[tt.length-1].length-tt[tt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+V[0].length},this.yytext+=V[0],this.match+=V[0],this.matches=V,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(V[0].length),this.matched+=V[0],it=this.performAction.call(this,this.yy,this,X,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),it)return it;if(this._backtrack){for(var ut in rt)this[ut]=rt[ut];return!1}return!1},next:function(){if(this.done)return this.EOF;var V,X,it,tt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var rt=this._currentRules(),ut=0;ut<rt.length;ut++)if((it=this._input.match(this.rules[rt[ut]]))&&(!X||it[0].length>X[0].length)){if(X=it,tt=ut,this.options.backtrack_lexer){if((V=this.test_match(it,rt[ut]))!==!1)return V;if(this._backtrack){X=!1;continue}return!1}if(!this.options.flex)break}return X?(V=this.test_match(X,rt[tt]))!==!1&&V:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(V){this.conditionStack.push(V)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(V){return(V=this.conditionStack.length-1-Math.abs(V||0))>=0?this.conditionStack[V]:"INITIAL"},pushState:function(V){this.begin(V)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(V,X,it,tt){switch(it){case 0:return this.begin("open_directive"),21;case 1:return this.begin("type_directive"),22;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),24;case 4:return 23;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return 18;case 13:return 19;case 14:return 20;case 15:return 15;case 16:return 6;case 17:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};function q(){this.yy={}}return z.lexer=H,q.prototype=z,z.Parser=q,new q}();s.parser=h,s.Parser=h.Parser,s.parse=function(){return h.parse.apply(h,arguments)},s.main=function(c){c[1]||(console.log("Usage: "+c[0]+" FILE"),process.exit(1));var y=o(9143).readFileSync(o(6470).normalize(c[1]),"utf8");return s.parser.parse(y)},o.c[o.s]===r&&s.main(process.argv.slice(1))},9609:r=>{var s=/^(%20|\s)*(javascript|data)/im,o=/[^\x20-\x7E]/gim,h=/^([^:]+):/gm,c=[".","/"];r.exports={sanitizeUrl:function(y){if(!y)return"about:blank";var p,b,T=y.replace(o,"").trim();return function(k){return c.indexOf(k[0])>-1}(T)?T:(b=T.match(h))?(p=b[0],s.test(p)?"about:blank":T):"about:blank"}}},3841:r=>{r.exports=function(s,o){return s.intersect(o)}},7458:(r,s,o)=>{o.d(s,{Z:()=>Z9});var h=o(1941),c=o.n(h),y={debug:1,info:2,warn:3,error:4,fatal:5},p={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},b=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(t)&&(t=t.toLowerCase(),y[t]!==void 0&&(t=y[t])),p.trace=function(){},p.debug=function(){},p.info=function(){},p.warn=function(){},p.error=function(){},p.fatal=function(){},t<=y.fatal&&(p.fatal=console.error?console.error.bind(console,T("FATAL"),"color: orange"):console.log.bind(console,"",T("FATAL"))),t<=y.error&&(p.error=console.error?console.error.bind(console,T("ERROR"),"color: orange"):console.log.bind(console,"",T("ERROR"))),t<=y.warn&&(p.warn=console.warn?console.warn.bind(console,T("WARN"),"color: orange"):console.log.bind(console,"",T("WARN"))),t<=y.info&&(p.info=console.info?console.info.bind(console,T("INFO"),"color: lightblue"):console.log.bind(console,"",T("INFO"))),t<=y.debug&&(p.debug=console.debug?console.debug.bind(console,T("DEBUG"),"color: lightgreen"):console.log.bind(console,"",T("DEBUG")))},T=function(t){var e=c()().format("ss.SSS");return"%c".concat(e," : ").concat(t," : ")};function k(t,e){let i;if(e===void 0)for(const u of t)u!=null&&(i<u||i===void 0&&u>=u)&&(i=u);else{let u=-1;for(let d of t)(d=e(d,++u,t))!=null&&(i<d||i===void 0&&d>=d)&&(i=d)}return i}function D(t,e){let i;if(e===void 0)for(const u of t)u!=null&&(i>u||i===void 0&&u>=u)&&(i=u);else{let u=-1;for(let d of t)(d=e(d,++u,t))!=null&&(i>d||i===void 0&&d>=d)&&(i=d)}return i}function O(t){return t}var I=1e-6;function z(t){return"translate("+t+",0)"}function H(t){return"translate(0,"+t+")"}function q(t){return e=>+t(e)}function V(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),i=>+t(i)+e}function X(){return!this.__axis}function it(t,e){var i=[],u=null,d=null,g=6,v=6,w=3,C=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,S=t===1||t===4?-1:1,B=t===4||t===2?"x":"y",j=t===1||t===3?z:H;function P(U){var ot=u==null?e.ticks?e.ticks.apply(e,i):e.domain():u,vt=d==null?e.tickFormat?e.tickFormat.apply(e,i):O:d,bt=Math.max(g,0)+w,kt=e.range(),_t=+kt[0]+C,lt=+kt[kt.length-1]+C,$t=(e.bandwidth?V:q)(e.copy(),C),Lt=U.selection?U.selection():U,gt=Lt.selectAll(".domain").data([null]),Bt=Lt.selectAll(".tick").data(ot,e).order(),ne=Bt.exit(),At=Bt.enter().append("g").attr("class","tick"),Tt=Bt.select("line"),jt=Bt.select("text");gt=gt.merge(gt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Bt=Bt.merge(At),Tt=Tt.merge(At.append("line").attr("stroke","currentColor").attr(B+"2",S*g)),jt=jt.merge(At.append("text").attr("fill","currentColor").attr(B,S*bt).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),U!==Lt&&(gt=gt.transition(U),Bt=Bt.transition(U),Tt=Tt.transition(U),jt=jt.transition(U),ne=ne.transition(U).attr("opacity",I).attr("transform",function(Dt){return isFinite(Dt=$t(Dt))?j(Dt+C):this.getAttribute("transform")}),At.attr("opacity",I).attr("transform",function(Dt){var te=this.parentNode.__axis;return j((te&&isFinite(te=te(Dt))?te:$t(Dt))+C)})),ne.remove(),gt.attr("d",t===4||t===2?v?"M"+S*v+","+_t+"H"+C+"V"+lt+"H"+S*v:"M"+C+","+_t+"V"+lt:v?"M"+_t+","+S*v+"V"+C+"H"+lt+"V"+S*v:"M"+_t+","+C+"H"+lt),Bt.attr("opacity",1).attr("transform",function(Dt){return j($t(Dt)+C)}),Tt.attr(B+"2",S*g),jt.attr(B,S*bt).text(vt),Lt.filter(X).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===2?"start":t===4?"end":"middle"),Lt.each(function(){this.__axis=$t})}return P.scale=function(U){return arguments.length?(e=U,P):e},P.ticks=function(){return i=Array.from(arguments),P},P.tickArguments=function(U){return arguments.length?(i=U==null?[]:Array.from(U),P):i.slice()},P.tickValues=function(U){return arguments.length?(u=U==null?null:Array.from(U),P):u&&u.slice()},P.tickFormat=function(U){return arguments.length?(d=U,P):d},P.tickSize=function(U){return arguments.length?(g=v=+U,P):g},P.tickSizeInner=function(U){return arguments.length?(g=+U,P):g},P.tickSizeOuter=function(U){return arguments.length?(v=+U,P):v},P.tickPadding=function(U){return arguments.length?(w=+U,P):w},P.offset=function(U){return arguments.length?(C=+U,P):C},P}function tt(){}function rt(t){return t==null?tt:function(){return this.querySelector(t)}}function ut(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Ct(){return[]}function et(t){return t==null?Ct:function(){return this.querySelectorAll(t)}}function K(t){return function(){return this.matches(t)}}function ht(t){return function(e){return e.matches(t)}}var xt=Array.prototype.find;function St(){return this.firstElementChild}var pt=Array.prototype.filter;function wt(){return Array.from(this.children)}function Ht(t){return new Array(t.length)}function Pt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ge(t){return function(){return t}}function pe(t,e,i,u,d,g){for(var v,w=0,C=e.length,S=g.length;w<S;++w)(v=e[w])?(v.__data__=g[w],u[w]=v):i[w]=new Pt(t,g[w]);for(;w<C;++w)(v=e[w])&&(d[w]=v)}function de(t,e,i,u,d,g,v){var w,C,S,B=new Map,j=e.length,P=g.length,U=new Array(j);for(w=0;w<j;++w)(C=e[w])&&(U[w]=S=v.call(C,C.__data__,w,e)+"",B.has(S)?d[w]=C:B.set(S,C));for(w=0;w<P;++w)S=v.call(t,g[w],w,g)+"",(C=B.get(S))?(u[w]=C,C.__data__=g[w],B.delete(S)):i[w]=new Pt(t,g[w]);for(w=0;w<j;++w)(C=e[w])&&B.get(U[w])===C&&(d[w]=C)}function Rt(t){return t.__data__}function Gt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function oe(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Pt.prototype={constructor:Pt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var le="http://www.w3.org/1999/xhtml";const ye={svg:"http://www.w3.org/2000/svg",xhtml:le,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function It(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),ye.hasOwnProperty(e)?{space:ye[e],local:t}:t}function $e(t){return function(){this.removeAttribute(t)}}function he(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Yt(t,e){return function(){this.setAttribute(t,e)}}function Kt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ct(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function ee(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Nt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Vt(t){return function(){this.style.removeProperty(t)}}function Ut(t,e,i){return function(){this.style.setProperty(t,e,i)}}function Ot(t,e,i){return function(){var u=e.apply(this,arguments);u==null?this.style.removeProperty(t):this.style.setProperty(t,u,i)}}function ae(t,e){return t.style.getPropertyValue(e)||Nt(t).getComputedStyle(t,null).getPropertyValue(e)}function Qe(t){return function(){delete this[t]}}function _e(t,e){return function(){this[t]=e}}function Ce(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function un(t){return t.trim().split(/^|\s+/)}function Ve(t){return t.classList||new Le(t)}function Le(t){this._node=t,this._names=un(t.getAttribute("class")||"")}function ke(t,e){for(var i=Ve(t),u=-1,d=e.length;++u<d;)i.add(e[u])}function Je(t,e){for(var i=Ve(t),u=-1,d=e.length;++u<d;)i.remove(e[u])}function Ye(t){return function(){ke(this,t)}}function Ge(t){return function(){Je(this,t)}}function Ze(t,e){return function(){(e.apply(this,arguments)?ke:Je)(this,t)}}function Ne(){this.textContent=""}function Un(t){return function(){this.textContent=t}}function Te(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function tn(){this.innerHTML=""}function vn(t){return function(){this.innerHTML=t}}function Ir(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function _n(){this.nextSibling&&this.parentNode.appendChild(this)}function tr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cn(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===le&&e.documentElement.namespaceURI===le?e.createElement(t):e.createElementNS(i,t)}}function gn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Xe(t){var e=It(t);return(e.local?gn:cn)(e)}function Cn(){return null}function Tn(){var t=this.parentNode;t&&t.removeChild(this)}function Hn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function $n(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Nr(t){return t.trim().split(/^|\s+/).map(function(e){var i="",u=e.indexOf(".");return u>=0&&(i=e.slice(u+1),e=e.slice(0,u)),{type:e,name:i}})}function En(t){return function(){var e=this.__on;if(e){for(var i,u=0,d=-1,g=e.length;u<g;++u)i=e[u],t.type&&i.type!==t.type||i.name!==t.name?e[++d]=i:this.removeEventListener(i.type,i.listener,i.options);++d?e.length=d:delete this.__on}}}function qn(t,e,i){return function(){var u,d=this.__on,g=function(C){return function(S){C.call(this,S,this.__data__)}}(e);if(d){for(var v=0,w=d.length;v<w;++v)if((u=d[v]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.options),this.addEventListener(u.type,u.listener=g,u.options=i),void(u.value=e)}this.addEventListener(t.type,g,i),u={type:t.type,name:t.name,value:e,listener:g,options:i},d?d.push(u):this.__on=[u]}}function Yn(t,e,i){var u=Nt(t),d=u.CustomEvent;typeof d=="function"?d=new d(e,i):(d=u.document.createEvent("Event"),i?(d.initEvent(e,i.bubbles,i.cancelable),d.detail=i.detail):d.initEvent(e,!1,!1)),t.dispatchEvent(d)}function Gn(t,e){return function(){return Yn(this,t,e)}}function Zn(t,e){return function(){return Yn(this,t,e.apply(this,arguments))}}Le.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var er=[null];function On(t,e){this._groups=t,this._parents=e}function Bn(){return new On([[document.documentElement]],er)}On.prototype=Bn.prototype={constructor:On,select:function(t){typeof t!="function"&&(t=rt(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v,w=e[d],C=w.length,S=u[d]=new Array(C),B=0;B<C;++B)(g=w[B])&&(v=t.call(g,g.__data__,B,w))&&("__data__"in g&&(v.__data__=g.__data__),S[B]=v);return new On(u,this._parents)},selectAll:function(t){t=typeof t=="function"?function(B){return function(){return ut(B.apply(this,arguments))}}(t):et(t);for(var e=this._groups,i=e.length,u=[],d=[],g=0;g<i;++g)for(var v,w=e[g],C=w.length,S=0;S<C;++S)(v=w[S])&&(u.push(t.call(v,v.__data__,S,w)),d.push(v));return new On(u,d)},selectChild:function(t){return this.select(t==null?St:function(e){return function(){return xt.call(this.children,e)}}(typeof t=="function"?t:ht(t)))},selectChildren:function(t){return this.selectAll(t==null?wt:function(e){return function(){return pt.call(this.children,e)}}(typeof t=="function"?t:ht(t)))},filter:function(t){typeof t!="function"&&(t=K(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v=e[d],w=v.length,C=u[d]=[],S=0;S<w;++S)(g=v[S])&&t.call(g,g.__data__,S,v)&&C.push(g);return new On(u,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Rt);var i=e?de:pe,u=this._parents,d=this._groups;typeof t!="function"&&(t=ge(t));for(var g=d.length,v=new Array(g),w=new Array(g),C=new Array(g),S=0;S<g;++S){var B=u[S],j=d[S],P=j.length,U=Gt(t.call(B,B&&B.__data__,S,u)),ot=U.length,vt=w[S]=new Array(ot),bt=v[S]=new Array(ot),kt=C[S]=new Array(P);i(B,j,vt,bt,kt,U,e);for(var _t,lt,$t=0,Lt=0;$t<ot;++$t)if(_t=vt[$t]){for($t>=Lt&&(Lt=$t+1);!(lt=bt[Lt])&&++Lt<ot;);_t._next=lt||null}}return(v=new On(v,u))._enter=w,v._exit=C,v},enter:function(){return new On(this._enter||this._groups.map(Ht),this._parents)},exit:function(){return new On(this._exit||this._groups.map(Ht),this._parents)},join:function(t,e,i){var u=this.enter(),d=this,g=this.exit();return typeof t=="function"?(u=t(u))&&(u=u.selection()):u=u.append(t+""),e!=null&&(d=e(d))&&(d=d.selection()),i==null?g.remove():i(g),u&&d?u.merge(d).order():d},merge:function(t){for(var e=t.selection?t.selection():t,i=this._groups,u=e._groups,d=i.length,g=u.length,v=Math.min(d,g),w=new Array(d),C=0;C<v;++C)for(var S,B=i[C],j=u[C],P=B.length,U=w[C]=new Array(P),ot=0;ot<P;++ot)(S=B[ot]||j[ot])&&(U[ot]=S);for(;C<d;++C)w[C]=i[C];return new On(w,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var u,d=t[e],g=d.length-1,v=d[g];--g>=0;)(u=d[g])&&(v&&4^u.compareDocumentPosition(v)&&v.parentNode.insertBefore(u,v),v=u);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=oe);for(var i=this._groups,u=i.length,d=new Array(u),g=0;g<u;++g){for(var v,w=i[g],C=w.length,S=d[g]=new Array(C),B=0;B<C;++B)(v=w[B])&&(S[B]=v);S.sort(e)}return new On(d,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var u=t[e],d=0,g=u.length;d<g;++d){var v=u[d];if(v)return v}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,i=0,u=e.length;i<u;++i)for(var d,g=e[i],v=0,w=g.length;v<w;++v)(d=g[v])&&t.call(d,d.__data__,v,g);return this},attr:function(t,e){var i=It(t);if(arguments.length<2){var u=this.node();return i.local?u.getAttributeNS(i.space,i.local):u.getAttribute(i)}return this.each((e==null?i.local?he:$e:typeof e=="function"?i.local?ee:ct:i.local?Kt:Yt)(i,e))},style:function(t,e,i){return arguments.length>1?this.each((e==null?Vt:typeof e=="function"?Ot:Ut)(t,e,i==null?"":i)):ae(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?Qe:typeof e=="function"?Ce:_e)(t,e)):this.node()[t]},classed:function(t,e){var i=un(t+"");if(arguments.length<2){for(var u=Ve(this.node()),d=-1,g=i.length;++d<g;)if(!u.contains(i[d]))return!1;return!0}return this.each((typeof e=="function"?Ze:e?Ye:Ge)(i,e))},text:function(t){return arguments.length?this.each(t==null?Ne:(typeof t=="function"?Te:Un)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?tn:(typeof t=="function"?Ir:vn)(t)):this.node().innerHTML},raise:function(){return this.each(_n)},lower:function(){return this.each(tr)},append:function(t){var e=typeof t=="function"?t:Xe(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var i=typeof t=="function"?t:Xe(t),u=e==null?Cn:typeof e=="function"?e:rt(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(Tn)},clone:function(t){return this.select(t?$n:Hn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,i){var u,d,g=Nr(t+""),v=g.length;if(!(arguments.length<2)){for(w=e?qn:En,u=0;u<v;++u)this.each(w(g[u],e,i));return this}var w=this.node().__on;if(w){for(var C,S=0,B=w.length;S<B;++S)for(u=0,C=w[S];u<v;++u)if((d=g[u]).type===C.type&&d.name===C.name)return C.value}},dispatch:function(t,e){return this.each((typeof e=="function"?Zn:Gn)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var u,d=t[e],g=0,v=d.length;g<v;++g)(u=d[g])&&(yield u)}};const ln=Bn;var jn={value:()=>{}};function yn(){for(var t,e=0,i=arguments.length,u={};e<i;++e){if(!(t=arguments[e]+"")||t in u||/[\s.]/.test(t))throw new Error("illegal type: "+t);u[t]=[]}return new ai(u)}function ai(t){this._=t}function gr(t,e){return t.trim().split(/^|\s+/).map(function(i){var u="",d=i.indexOf(".");if(d>=0&&(u=i.slice(d+1),i=i.slice(0,d)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:u}})}function ea(t,e){for(var i,u=0,d=t.length;u<d;++u)if((i=t[u]).name===e)return i.value}function Rn(t,e,i){for(var u=0,d=t.length;u<d;++u)if(t[u].name===e){t[u]=jn,t=t.slice(0,u).concat(t.slice(u+1));break}return i!=null&&t.push({name:e,value:i}),t}ai.prototype=yn.prototype={constructor:ai,on:function(t,e){var i,u=this._,d=gr(t+"",u),g=-1,v=d.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++g<v;)if(i=(t=d[g]).type)u[i]=Rn(u[i],t.name,e);else if(e==null)for(i in u)u[i]=Rn(u[i],t.name,null);return this}for(;++g<v;)if((i=(t=d[g]).type)&&(i=ea(u[i],t.name)))return i},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new ai(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,u,d=new Array(i),g=0;g<i;++g)d[g]=arguments[g+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(g=0,i=(u=this._[t]).length;g<i;++g)u[g].value.apply(e,d)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var u=this._[t],d=0,g=u.length;d<g;++d)u[d].value.apply(e,i)}};const No=yn;var va,oi,Fr=0,Ur=0,Zr=0,Jr=0,Or=0,ti=0,Pr=typeof performance=="object"&&performance.now?performance:Date,Fi=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function fi(){return Or||(Fi(nr),Or=Pr.now()+ti)}function nr(){Or=0}function qr(){this._call=this._time=this._next=null}function _a(t,e,i){var u=new qr;return u.restart(t,e,i),u}function ei(){Or=(Jr=Pr.now())+ti,Fr=Ur=0;try{(function(){fi(),++Fr;for(var t,e=va;e;)(t=Or-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Fr})()}finally{Fr=0,function(){for(var t,e,i=va,u=1/0;i;)i._call?(u>i._time&&(u=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:va=e);oi=t,mo(u)}(),Or=0}}function ba(){var t=Pr.now(),e=t-Jr;e>1e3&&(ti-=e,Jr=t)}function mo(t){Fr||(Ur&&(Ur=clearTimeout(Ur)),t-Or>24?(t<1/0&&(Ur=setTimeout(ei,t-Pr.now()-ti)),Zr&&(Zr=clearInterval(Zr))):(Zr||(Jr=Pr.now(),Zr=setInterval(ba,1e3)),Fr=1,Fi(ei)))}function di(t,e,i){var u=new qr;return e=e==null?0:+e,u.restart(d=>{u.stop(),t(d+e)},e,i),u}qr.prototype=_a.prototype={constructor:qr,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?fi():+i)+(e==null?0:+e),this._next||oi===this||(oi?oi._next=this:va=this,oi=this),this._call=t,this._time=i,mo()},stop:function(){this._call&&(this._call=null,this._time=1/0,mo())}};var en=No("start","end","cancel","interrupt"),Xn=[];function An(t,e,i,u,d,g){var v=t.__transition;if(v){if(i in v)return}else t.__transition={};(function(w,C,S){var B,j=w.__transition;function P(vt){var bt,kt,_t,lt;if(S.state!==1)return ot();for(bt in j)if((lt=j[bt]).name===S.name){if(lt.state===3)return di(P);lt.state===4?(lt.state=6,lt.timer.stop(),lt.on.call("interrupt",w,w.__data__,lt.index,lt.group),delete j[bt]):+bt<C&&(lt.state=6,lt.timer.stop(),lt.on.call("cancel",w,w.__data__,lt.index,lt.group),delete j[bt])}if(di(function(){S.state===3&&(S.state=4,S.timer.restart(U,S.delay,S.time),U(vt))}),S.state=2,S.on.call("start",w,w.__data__,S.index,S.group),S.state===2){for(S.state=3,B=new Array(_t=S.tween.length),bt=0,kt=-1;bt<_t;++bt)(lt=S.tween[bt].value.call(w,w.__data__,S.index,S.group))&&(B[++kt]=lt);B.length=kt+1}}function U(vt){for(var bt=vt<S.duration?S.ease.call(null,vt/S.duration):(S.timer.restart(ot),S.state=5,1),kt=-1,_t=B.length;++kt<_t;)B[kt].call(w,bt);S.state===5&&(S.on.call("end",w,w.__data__,S.index,S.group),ot())}function ot(){for(var vt in S.state=6,S.timer.stop(),delete j[C],j)return;delete w.__transition}j[C]=S,S.timer=_a(function(vt){S.state=1,S.timer.restart(P,S.delay,S.time),S.delay<=vt&&P(vt-S.delay)},0,S.time)})(t,i,{name:e,index:u,group:d,on:en,tween:Xn,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:0})}function Be(t,e){var i=mt(t,e);if(i.state>0)throw new Error("too late; already scheduled");return i}function Kn(t,e){var i=mt(t,e);if(i.state>3)throw new Error("too late; already running");return i}function mt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Xr(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Xt,Pi=180/Math.PI,da={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Xa(t,e,i,u,d,g){var v,w,C;return(v=Math.sqrt(t*t+e*e))&&(t/=v,e/=v),(C=t*i+e*u)&&(i-=t*C,u-=e*C),(w=Math.sqrt(i*i+u*u))&&(i/=w,u/=w,C/=w),t*u<e*i&&(t=-t,e=-e,C=-C,v=-v),{translateX:d,translateY:g,rotate:Math.atan2(e,t)*Pi,skewX:Math.atan(C)*Pi,scaleX:v,scaleY:w}}function vo(t,e,i,u){function d(g){return g.length?g.pop()+" ":""}return function(g,v){var w=[],C=[];return g=t(g),v=t(v),function(S,B,j,P,U,ot){if(S!==j||B!==P){var vt=U.push("translate(",null,e,null,i);ot.push({i:vt-4,x:Xr(S,j)},{i:vt-2,x:Xr(B,P)})}else(j||P)&&U.push("translate("+j+e+P+i)}(g.translateX,g.translateY,v.translateX,v.translateY,w,C),function(S,B,j,P){S!==B?(S-B>180?B+=360:B-S>180&&(S+=360),P.push({i:j.push(d(j)+"rotate(",null,u)-2,x:Xr(S,B)})):B&&j.push(d(j)+"rotate("+B+u)}(g.rotate,v.rotate,w,C),function(S,B,j,P){S!==B?P.push({i:j.push(d(j)+"skewX(",null,u)-2,x:Xr(S,B)}):B&&j.push(d(j)+"skewX("+B+u)}(g.skewX,v.skewX,w,C),function(S,B,j,P,U,ot){if(S!==j||B!==P){var vt=U.push(d(U)+"scale(",null,",",null,")");ot.push({i:vt-4,x:Xr(S,j)},{i:vt-2,x:Xr(B,P)})}else j===1&&P===1||U.push(d(U)+"scale("+j+","+P+")")}(g.scaleX,g.scaleY,v.scaleX,v.scaleY,w,C),g=v=null,function(S){for(var B,j=-1,P=C.length;++j<P;)w[(B=C[j]).i]=B.x(S);return w.join("")}}}var Oo=vo(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?da:Xa(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Lo=vo(function(t){return t==null?da:(Xt||(Xt=document.createElementNS("http://www.w3.org/2000/svg","g")),Xt.setAttribute("transform",t),(t=Xt.transform.baseVal.consolidate())?Xa((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):da)},", ",")",")");function Vr(t,e){var i,u;return function(){var d=Kn(this,t),g=d.tween;if(g!==i){for(var v=0,w=(u=i=g).length;v<w;++v)if(u[v].name===e){(u=u.slice()).splice(v,1);break}}d.tween=u}}function na(t,e,i){var u,d;if(typeof i!="function")throw new Error;return function(){var g=Kn(this,t),v=g.tween;if(v!==u){d=(u=v).slice();for(var w={name:e,value:i},C=0,S=d.length;C<S;++C)if(d[C].name===e){d[C]=w;break}C===S&&d.push(w)}g.tween=d}}function Dn(t,e,i){var u=t._id;return t.each(function(){var d=Kn(this,u);(d.value||(d.value={}))[e]=i.apply(this,arguments)}),function(d){return mt(d,u).value[e]}}function Fa(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function Ka(t,e){var i=Object.create(t.prototype);for(var u in e)i[u]=e[u];return i}function yr(){}var Cr=.7,xi=1/Cr,ni="\\s*([+-]?\\d+)\\s*",Hr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",$r="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pi=/^#([0-9a-f]{3,8})$/,Kr=new RegExp("^rgb\\("+[ni,ni,ni]+"\\)$"),ra=new RegExp("^rgb\\("+[$r,$r,$r]+"\\)$"),Vi=new RegExp("^rgba\\("+[ni,ni,ni,Hr]+"\\)$"),Yi=new RegExp("^rgba\\("+[$r,$r,$r,Hr]+"\\)$"),_o=new RegExp("^hsl\\("+[Hr,$r,$r]+"\\)$"),Ft=new RegExp("^hsla\\("+[Hr,$r,$r,Hr]+"\\)$"),je={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Fe(){return this.rgb().formatHex()}function mr(){return this.rgb().formatRgb()}function br(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=pi.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?ki(e):i===3?new Ni(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):i===8?ri(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):i===4?ri(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Kr.exec(t))?new Ni(e[1],e[2],e[3],1):(e=ra.exec(t))?new Ni(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Vi.exec(t))?ri(e[1],e[2],e[3],e[4]):(e=Yi.exec(t))?ri(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=_o.exec(t))?bo(e[1],e[2]/100,e[3]/100,1):(e=Ft.exec(t))?bo(e[1],e[2]/100,e[3]/100,e[4]):je.hasOwnProperty(t)?ki(je[t]):t==="transparent"?new Ni(NaN,NaN,NaN,0):null}function ki(t){return new Ni(t>>16&255,t>>8&255,255&t,1)}function ri(t,e,i,u){return u<=0&&(t=e=i=NaN),new Ni(t,e,i,u)}function wc(t){return t instanceof yr||(t=br(t)),t?new Ni((t=t.rgb()).r,t.g,t.b,t.opacity):new Ni}function Ti(t,e,i,u){return arguments.length===1?wc(t):new Ni(t,e,i,u==null?1:u)}function Ni(t,e,i,u){this.r=+t,this.g=+e,this.b=+i,this.opacity=+u}function xc(){return"#"+du(this.r)+du(this.g)+du(this.b)}function Qa(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function du(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function bo(t,e,i,u){return u<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Gi(t,e,i,u)}function pu(t){if(t instanceof Gi)return new Gi(t.h,t.s,t.l,t.opacity);if(t instanceof yr||(t=br(t)),!t)return new Gi;if(t instanceof Gi)return t;var e=(t=t.rgb()).r/255,i=t.g/255,u=t.b/255,d=Math.min(e,i,u),g=Math.max(e,i,u),v=NaN,w=g-d,C=(g+d)/2;return w?(v=e===g?(i-u)/w+6*(i<u):i===g?(u-e)/w+2:(e-i)/w+4,w/=C<.5?g+d:2-g-d,v*=60):w=C>0&&C<1?0:v,new Gi(v,w,C,t.opacity)}function Gi(t,e,i,u){this.h=+t,this.s=+e,this.l=+i,this.opacity=+u}function ii(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}Fa(yr,br,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Fe,formatHex:Fe,formatHsl:function(){return pu(this).formatHsl()},formatRgb:mr,toString:mr}),Fa(Ni,Ti,Ka(yr,{brighter:function(t){return t=t==null?xi:Math.pow(xi,t),new Ni(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Cr:Math.pow(Cr,t),new Ni(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xc,formatHex:xc,formatRgb:Qa,toString:Qa})),Fa(Gi,function(t,e,i,u){return arguments.length===1?pu(t):new Gi(t,e,i,u==null?1:u)},Ka(yr,{brighter:function(t){return t=t==null?xi:Math.pow(xi,t),new Gi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Cr:Math.pow(Cr,t),new Gi(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,u=i+(i<.5?i:1-i)*e,d=2*i-u;return new Ni(ii(t>=240?t-240:t+120,d,u),ii(t,d,u),ii(t<120?t+240:t-120,d,u),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const yl=t=>()=>t;function ml(t,e){var i=e-t;return i?function(u,d){return function(g){return u+g*d}}(t,i):yl(isNaN(t)?e:t)}const vl=function t(e){var i=function(d){return(d=+d)==1?ml:function(g,v){return v-g?function(w,C,S){return w=Math.pow(w,S),C=Math.pow(C,S)-w,S=1/S,function(B){return Math.pow(w+B*C,S)}}(g,v,d):yl(isNaN(g)?v:g)}}(e);function u(d,g){var v=i((d=Ti(d)).r,(g=Ti(g)).r),w=i(d.g,g.g),C=i(d.b,g.b),S=ml(d.opacity,g.opacity);return function(B){return d.r=v(B),d.g=w(B),d.b=C(B),d.opacity=S(B),d+""}}return u.gamma=t,u}(1);var Ja=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_l=new RegExp(Ja.source,"g");function bl(t,e){var i,u,d,g=Ja.lastIndex=_l.lastIndex=0,v=-1,w=[],C=[];for(t+="",e+="";(i=Ja.exec(t))&&(u=_l.exec(e));)(d=u.index)>g&&(d=e.slice(g,d),w[v]?w[v]+=d:w[++v]=d),(i=i[0])===(u=u[0])?w[v]?w[v]+=u:w[++v]=u:(w[++v]=null,C.push({i:v,x:Xr(i,u)})),g=_l.lastIndex;return g<e.length&&(d=e.slice(g),w[v]?w[v]+=d:w[++v]=d),w.length<2?C[0]?function(S){return function(B){return S(B)+""}}(C[0].x):function(S){return function(){return S}}(e):(e=C.length,function(S){for(var B,j=0;j<e;++j)w[(B=C[j]).i]=B.x(S);return w.join("")})}function to(t,e){var i;return(typeof e=="number"?Xr:e instanceof br?vl:(i=br(e))?(e=i,vl):bl)(t,e)}function Ie(t){return function(){this.removeAttribute(t)}}function Zh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Lr(t,e,i){var u,d,g=i+"";return function(){var v=this.getAttribute(t);return v===g?null:v===u?d:d=e(u=v,i)}}function gu(t,e,i){var u,d,g=i+"";return function(){var v=this.getAttributeNS(t.space,t.local);return v===g?null:v===u?d:d=e(u=v,i)}}function yu(t,e,i){var u,d,g;return function(){var v,w,C=i(this);if(C!=null)return(v=this.getAttribute(t))===(w=C+"")?null:v===u&&w===d?g:(d=w,g=e(u=v,C));this.removeAttribute(t)}}function wl(t,e,i){var u,d,g;return function(){var v,w,C=i(this);if(C!=null)return(v=this.getAttributeNS(t.space,t.local))===(w=C+"")?null:v===u&&w===d?g:(d=w,g=e(u=v,C));this.removeAttributeNS(t.space,t.local)}}function Pa(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function Ei(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function kc(t,e){var i,u;function d(){var g=e.apply(this,arguments);return g!==u&&(i=(u=g)&&Ei(t,g)),i}return d._value=e,d}function Xh(t,e){var i,u;function d(){var g=e.apply(this,arguments);return g!==u&&(i=(u=g)&&Pa(t,g)),i}return d._value=e,d}function xl(t,e){return function(){Be(this,t).delay=+e.apply(this,arguments)}}function Bo(t,e){return e=+e,function(){Be(this,t).delay=e}}function Kh(t,e){return function(){Kn(this,t).duration=+e.apply(this,arguments)}}function Jd(t,e){return e=+e,function(){Kn(this,t).duration=e}}function Qp(t,e){if(typeof e!="function")throw new Error;return function(){Kn(this,t).ease=e}}function t0(t,e,i){var u,d,g=function(v){return(v+"").trim().split(/^|\s+/).every(function(w){var C=w.indexOf(".");return C>=0&&(w=w.slice(0,C)),!w||w==="start"})}(e)?Be:Kn;return function(){var v=g(this,t),w=v.on;w!==u&&(d=(u=w).copy()).on(e,i),v.on=d}}var e0=ln.prototype.constructor;function wa(t){return function(){this.style.removeProperty(t)}}function n0(t,e,i){return function(u){this.style.setProperty(t,e.call(this,u),i)}}function Qh(t,e,i){var u,d;function g(){var v=e.apply(this,arguments);return v!==d&&(u=(d=v)&&n0(t,v,i)),u}return g._value=e,g}function Jh(t){return function(e){this.textContent=t.call(this,e)}}function Ro(t){var e,i;function u(){var d=t.apply(this,arguments);return d!==i&&(e=(i=d)&&Jh(d)),e}return u._value=t,u}var mu=0;function eo(t,e,i,u){this._groups=t,this._parents=e,this._name=i,this._id=u}function vu(){return++mu}var xa=ln.prototype;eo.prototype={constructor:eo,select:function(t){var e=this._name,i=this._id;typeof t!="function"&&(t=rt(t));for(var u=this._groups,d=u.length,g=new Array(d),v=0;v<d;++v)for(var w,C,S=u[v],B=S.length,j=g[v]=new Array(B),P=0;P<B;++P)(w=S[P])&&(C=t.call(w,w.__data__,P,S))&&("__data__"in w&&(C.__data__=w.__data__),j[P]=C,An(j[P],e,i,P,j,mt(w,i)));return new eo(g,this._parents,e,i)},selectAll:function(t){var e=this._name,i=this._id;typeof t!="function"&&(t=et(t));for(var u=this._groups,d=u.length,g=[],v=[],w=0;w<d;++w)for(var C,S=u[w],B=S.length,j=0;j<B;++j)if(C=S[j]){for(var P,U=t.call(C,C.__data__,j,S),ot=mt(C,i),vt=0,bt=U.length;vt<bt;++vt)(P=U[vt])&&An(P,e,i,vt,U,ot);g.push(U),v.push(C)}return new eo(g,v,e,i)},selectChild:xa.selectChild,selectChildren:xa.selectChildren,filter:function(t){typeof t!="function"&&(t=K(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v=e[d],w=v.length,C=u[d]=[],S=0;S<w;++S)(g=v[S])&&t.call(g,g.__data__,S,v)&&C.push(g);return new eo(u,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,u=e.length,d=i.length,g=Math.min(u,d),v=new Array(u),w=0;w<g;++w)for(var C,S=e[w],B=i[w],j=S.length,P=v[w]=new Array(j),U=0;U<j;++U)(C=S[U]||B[U])&&(P[U]=C);for(;w<u;++w)v[w]=e[w];return new eo(v,this._parents,this._name,this._id)},selection:function(){return new e0(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,i=vu(),u=this._groups,d=u.length,g=0;g<d;++g)for(var v,w=u[g],C=w.length,S=0;S<C;++S)if(v=w[S]){var B=mt(v,e);An(v,t,i,S,w,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new eo(u,this._parents,t,i)},call:xa.call,nodes:xa.nodes,node:xa.node,size:xa.size,empty:xa.empty,each:xa.each,on:function(t,e){var i=this._id;return arguments.length<2?mt(this.node(),i).on.on(t):this.each(t0(i,t,e))},attr:function(t,e){var i=It(t),u=i==="transform"?Lo:to;return this.attrTween(t,typeof e=="function"?(i.local?wl:yu)(i,u,Dn(this,"attr."+t,e)):e==null?(i.local?Zh:Ie)(i):(i.local?gu:Lr)(i,u,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var u=It(t);return this.tween(i,(u.local?kc:Xh)(u,e))},style:function(t,e,i){var u=(t+="")=="transform"?Oo:to;return e==null?this.styleTween(t,function(d,g){var v,w,C;return function(){var S=ae(this,d),B=(this.style.removeProperty(d),ae(this,d));return S===B?null:S===v&&B===w?C:C=g(v=S,w=B)}}(t,u)).on("end.style."+t,wa(t)):typeof e=="function"?this.styleTween(t,function(d,g,v){var w,C,S;return function(){var B=ae(this,d),j=v(this),P=j+"";return j==null&&(this.style.removeProperty(d),P=j=ae(this,d)),B===P?null:B===w&&P===C?S:(C=P,S=g(w=B,j))}}(t,u,Dn(this,"style."+t,e))).each(function(d,g){var v,w,C,S,B="style."+g,j="end."+B;return function(){var P=Kn(this,d),U=P.on,ot=P.value[B]==null?S||(S=wa(g)):void 0;U===v&&C===ot||(w=(v=U).copy()).on(j,C=ot),P.on=w}}(this._id,t)):this.styleTween(t,function(d,g,v){var w,C,S=v+"";return function(){var B=ae(this,d);return B===S?null:B===w?C:C=g(w=B,v)}}(t,u,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var u="style."+(t+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(e==null)return this.tween(u,null);if(typeof e!="function")throw new Error;return this.tween(u,Qh(t,e,i==null?"":i))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var i=e(this);this.textContent=i==null?"":i}}(Dn(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Ro(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var u,d=mt(this.node(),i).tween,g=0,v=d.length;g<v;++g)if((u=d[g]).name===t)return u.value;return null}return this.each((e==null?Vr:na)(i,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?xl:Bo)(e,t)):mt(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Kh:Jd)(e,t)):mt(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Qp(e,t)):mt(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,i){return function(){var u=i.apply(this,arguments);if(typeof u!="function")throw new Error;Kn(this,e).ease=u}}(this._id,t))},end:function(){var t,e,i=this,u=i._id,d=i.size();return new Promise(function(g,v){var w={value:v},C={value:function(){--d==0&&g()}};i.each(function(){var S=Kn(this,u),B=S.on;B!==t&&((e=(t=B).copy())._.cancel.push(w),e._.interrupt.push(w),e._.end.push(C)),S.on=e}),d===0&&g()})},[Symbol.iterator]:xa[Symbol.iterator]};var zs={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function kl(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}ln.prototype.interrupt=function(t){return this.each(function(){(function(e,i){var u,d,g,v=e.__transition,w=!0;if(v){for(g in i=i==null?null:i+"",v)(u=v[g]).name===i?(d=u.state>2&&u.state<5,u.state=6,u.timer.stop(),u.on.call(d?"interrupt":"cancel",e,e.__data__,u.index,u.group),delete v[g]):w=!1;w&&delete e.__transition}})(this,t)})},ln.prototype.transition=function(t){var e,i;t instanceof eo?(e=t._id,t=t._name):(e=vu(),(i=zs).time=fi(),t=t==null?null:t+"");for(var u=this._groups,d=u.length,g=0;g<d;++g)for(var v,w=u[g],C=w.length,S=0;S<C;++S)(v=w[S])&&An(v,t,e,S,w,i||kl(v,e));return new eo(u,this._parents,t,e)};function Io(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function Zi(t,e){var i=Object.create(t.prototype);for(var u in e)i[u]=e[u];return i}function gi(){}var no=.7,Ya=1/no,ia="\\s*([+-]?\\d+)\\s*",Wn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",A="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",F=/^#([0-9a-f]{3,8})$/,G=new RegExp("^rgb\\("+[ia,ia,ia]+"\\)$"),st=new RegExp("^rgb\\("+[A,A,A]+"\\)$"),qt=new RegExp("^rgba\\("+[ia,ia,ia,Wn]+"\\)$"),fe=new RegExp("^rgba\\("+[A,A,A,Wn]+"\\)$"),we=new RegExp("^hsl\\("+[Wn,A,A]+"\\)$"),Ee=new RegExp("^hsla\\("+[Wn,A,A,Wn]+"\\)$"),Me={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Pe(){return this.rgb().formatHex()}function We(){return this.rgb().formatRgb()}function kn(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=F.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?pn(e):i===3?new cr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):i===8?lr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):i===4?lr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=G.exec(t))?new cr(e[1],e[2],e[3],1):(e=st.exec(t))?new cr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=qt.exec(t))?lr(e[1],e[2],e[3],e[4]):(e=fe.exec(t))?lr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=we.exec(t))?Jp(e[1],e[2]/100,e[3]/100,1):(e=Ee.exec(t))?Jp(e[1],e[2]/100,e[3]/100,e[4]):Me.hasOwnProperty(t)?pn(Me[t]):t==="transparent"?new cr(NaN,NaN,NaN,0):null}function pn(t){return new cr(t>>16&255,t>>8&255,255&t,1)}function lr(t,e,i,u){return u<=0&&(t=e=i=NaN),new cr(t,e,i,u)}function fr(t){return t instanceof gi||(t=kn(t)),t?new cr((t=t.rgb()).r,t.g,t.b,t.opacity):new cr}function Br(t,e,i,u){return arguments.length===1?fr(t):new cr(t,e,i,u==null?1:u)}function cr(t,e,i,u){this.r=+t,this.g=+e,this.b=+i,this.opacity=+u}function ka(){return"#"+tf(this.r)+tf(this.g)+tf(this.b)}function Us(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function tf(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Jp(t,e,i,u){return u<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Fo(t,e,i,u)}function ef(t){if(t instanceof Fo)return new Fo(t.h,t.s,t.l,t.opacity);if(t instanceof gi||(t=kn(t)),!t)return new Fo;if(t instanceof Fo)return t;var e=(t=t.rgb()).r/255,i=t.g/255,u=t.b/255,d=Math.min(e,i,u),g=Math.max(e,i,u),v=NaN,w=g-d,C=(g+d)/2;return w?(v=e===g?(i-u)/w+6*(i<u):i===g?(u-e)/w+2:(e-i)/w+4,w/=C<.5?g+d:2-g-d,v*=60):w=C>0&&C<1?0:v,new Fo(v,w,C,t.opacity)}function Fo(t,e,i,u){this.h=+t,this.s=+e,this.l=+i,this.opacity=+u}function nf(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}Io(gi,kn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Pe,formatHex:Pe,formatHsl:function(){return ef(this).formatHsl()},formatRgb:We,toString:We}),Io(cr,Br,Zi(gi,{brighter:function(t){return t=t==null?Ya:Math.pow(Ya,t),new cr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?no:Math.pow(no,t),new cr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ka,formatHex:ka,formatRgb:Us,toString:Us})),Io(Fo,function(t,e,i,u){return arguments.length===1?ef(t):new Fo(t,e,i,u==null?1:u)},Zi(gi,{brighter:function(t){return t=t==null?Ya:Math.pow(Ya,t),new Fo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?no:Math.pow(no,t),new Fo(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,u=i+(i<.5?i:1-i)*e,d=2*i-u;return new cr(nf(t>=240?t-240:t+120,d,u),nf(t,d,u),nf(t<120?t+240:t-120,d,u),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const pv=Math.PI/180,gv=180/Math.PI,tg=.96422,eg=.82521,yv=4/29,ng=6/29,r0=3*ng*ng;function rg(t){if(t instanceof us)return new us(t.l,t.a,t.b,t.opacity);if(t instanceof Hs)return mv(t);t instanceof cr||(t=fr(t));var e,i,u=sg(t.r),d=sg(t.g),g=sg(t.b),v=ig((.2225045*u+.7168786*d+.0606169*g)/1);return u===d&&d===g?e=i=v:(e=ig((.4360747*u+.3850649*d+.1430804*g)/tg),i=ig((.0139322*u+.0971045*d+.7141733*g)/eg)),new us(116*v-16,500*(e-v),200*(v-i),t.opacity)}function us(t,e,i,u){this.l=+t,this.a=+e,this.b=+i,this.opacity=+u}function ig(t){return t>.008856451679035631?Math.pow(t,1/3):t/r0+yv}function ag(t){return t>ng?t*t*t:r0*(t-yv)}function og(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function sg(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function E5(t){if(t instanceof Hs)return new Hs(t.h,t.c,t.l,t.opacity);if(t instanceof us||(t=rg(t)),t.a===0&&t.b===0)return new Hs(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*gv;return new Hs(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function cg(t,e,i,u){return arguments.length===1?E5(t):new Hs(t,e,i,u==null?1:u)}function Hs(t,e,i,u){this.h=+t,this.c=+e,this.l=+i,this.opacity=+u}function mv(t){if(isNaN(t.h))return new us(t.l,0,0,t.opacity);var e=t.h*pv;return new us(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Io(us,function(t,e,i,u){return arguments.length===1?rg(t):new us(t,e,i,u==null?1:u)},Zi(gi,{brighter:function(t){return new us(this.l+18*(t==null?1:t),this.a,this.b,this.opacity)},darker:function(t){return new us(this.l-18*(t==null?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return new cr(og(3.1338561*(e=tg*ag(e))-1.6168667*(t=1*ag(t))-.4906146*(i=eg*ag(i))),og(-.9787684*e+1.9161415*t+.033454*i),og(.0719453*e-.2289914*t+1.4052427*i),this.opacity)}})),Io(Hs,cg,Zi(gi,{brighter:function(t){return new Hs(this.h,this.c,this.l+18*(t==null?1:t),this.opacity)},darker:function(t){return new Hs(this.h,this.c,this.l-18*(t==null?1:t),this.opacity)},rgb:function(){return mv(this).rgb()}}));const ug=t=>()=>t;function vv(t,e){return function(i){return t+i*e}}function rf(t,e){var i=e-t;return i?vv(t,i):ug(isNaN(t)?e:t)}function S5(t){return function(e,i){var u=t((e=cg(e)).h,(i=cg(i)).h),d=rf(e.c,i.c),g=rf(e.l,i.l),v=rf(e.opacity,i.opacity);return function(w){return e.h=u(w),e.c=d(w),e.l=g(w),e.opacity=v(w),e+""}}}const C5=S5(function(t,e){var i=e-t;return i?vv(t,i>180||i<-180?i-360*Math.round(i/360):i):ug(isNaN(t)?e:t)});var lg=Math.sqrt(50),hg=Math.sqrt(10),fg=Math.sqrt(2);function dg(t,e,i){var u=(e-t)/Math.max(0,i),d=Math.floor(Math.log(u)/Math.LN10),g=u/Math.pow(10,d);return d>=0?(g>=lg?10:g>=hg?5:g>=fg?2:1)*Math.pow(10,d):-Math.pow(10,-d)/(g>=lg?10:g>=hg?5:g>=fg?2:1)}function pg(t,e,i){var u=Math.abs(e-t)/Math.max(0,i),d=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),g=u/d;return g>=lg?d*=10:g>=hg?d*=5:g>=fg&&(d*=2),e<t?-d:d}function gg(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function yg(t){let e=t,i=t,u=t;function d(g,v,w=0,C=g.length){if(w<C){if(i(v,v)!==0)return C;do{const S=w+C>>>1;u(g[S],v)<0?w=S+1:C=S}while(w<C)}return w}return t.length!==2&&(e=(g,v)=>t(g)-v,i=gg,u=(g,v)=>gg(t(g),v)),{left:d,center:function(g,v,w=0,C=g.length){const S=d(g,v,w,C-1);return S>w&&e(g[S-1],v)>-e(g[S],v)?S-1:S},right:function(g,v,w=0,C=g.length){if(w<C){if(i(v,v)!==0)return C;do{const S=w+C>>>1;u(g[S],v)<=0?w=S+1:C=S}while(w<C)}return w}}}const M5=yg(gg),A5=M5.right,ls=(yg(function(t){return t===null?NaN:+t}).center,A5);function i0(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function mg(t,e){var i=Object.create(t.prototype);for(var u in e)i[u]=e[u];return i}function hs(){}var a0=.7,o0=1.4285714285714286,Tc="\\s*([+-]?\\d+)\\s*",_u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",fs="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",D5=/^#([0-9a-f]{3,8})$/,N5=new RegExp("^rgb\\("+[Tc,Tc,Tc]+"\\)$"),vg=new RegExp("^rgb\\("+[fs,fs,fs]+"\\)$"),O5=new RegExp("^rgba\\("+[Tc,Tc,Tc,_u]+"\\)$"),_v=new RegExp("^rgba\\("+[fs,fs,fs,_u]+"\\)$"),_g=new RegExp("^hsl\\("+[_u,fs,fs]+"\\)$"),bv=new RegExp("^hsla\\("+[_u,fs,fs,_u]+"\\)$"),s0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function bu(){return this.rgb().formatHex()}function wu(){return this.rgb().formatRgb()}function Tl(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=D5.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?c0(e):i===3?new ro(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):i===8?u0(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):i===4?u0(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=N5.exec(t))?new ro(e[1],e[2],e[3],1):(e=vg.exec(t))?new ro(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=O5.exec(t))?u0(e[1],e[2],e[3],e[4]):(e=_v.exec(t))?u0(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=_g.exec(t))?wv(e[1],e[2]/100,e[3]/100,1):(e=bv.exec(t))?wv(e[1],e[2]/100,e[3]/100,e[4]):s0.hasOwnProperty(t)?c0(s0[t]):t==="transparent"?new ro(NaN,NaN,NaN,0):null}function c0(t){return new ro(t>>16&255,t>>8&255,255&t,1)}function u0(t,e,i,u){return u<=0&&(t=e=i=NaN),new ro(t,e,i,u)}function l0(t){return t instanceof hs||(t=Tl(t)),t?new ro((t=t.rgb()).r,t.g,t.b,t.opacity):new ro}function El(t,e,i,u){return arguments.length===1?l0(t):new ro(t,e,i,u==null?1:u)}function ro(t,e,i,u){this.r=+t,this.g=+e,this.b=+i,this.opacity=+u}function ds(){return"#"+h0(this.r)+h0(this.g)+h0(this.b)}function bg(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function h0(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function wv(t,e,i,u){return u<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new ja(t,e,i,u)}function xv(t){if(t instanceof ja)return new ja(t.h,t.s,t.l,t.opacity);if(t instanceof hs||(t=Tl(t)),!t)return new ja;if(t instanceof ja)return t;var e=(t=t.rgb()).r/255,i=t.g/255,u=t.b/255,d=Math.min(e,i,u),g=Math.max(e,i,u),v=NaN,w=g-d,C=(g+d)/2;return w?(v=e===g?(i-u)/w+6*(i<u):i===g?(u-e)/w+2:(e-i)/w+4,w/=C<.5?g+d:2-g-d,v*=60):w=C>0&&C<1?0:v,new ja(v,w,C,t.opacity)}function ja(t,e,i,u){this.h=+t,this.s=+e,this.l=+i,this.opacity=+u}function wg(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}i0(hs,Tl,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:bu,formatHex:bu,formatHsl:function(){return xv(this).formatHsl()},formatRgb:wu,toString:wu}),i0(ro,El,mg(hs,{brighter:function(t){return t=t==null?o0:Math.pow(o0,t),new ro(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?a0:Math.pow(a0,t),new ro(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ds,formatHex:ds,formatRgb:bg,toString:bg})),i0(ja,function(t,e,i,u){return arguments.length===1?xv(t):new ja(t,e,i,u==null?1:u)},mg(hs,{brighter:function(t){return t=t==null?o0:Math.pow(o0,t),new ja(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?a0:Math.pow(a0,t),new ja(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,u=i+(i<.5?i:1-i)*e,d=2*i-u;return new ro(wg(t>=240?t-240:t+120,d,u),wg(t,d,u),wg(t<120?t+240:t-120,d,u),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const xg=t=>()=>t;function kv(t,e){var i=e-t;return i?function(u,d){return function(g){return u+g*d}}(t,i):xg(isNaN(t)?e:t)}const f0=function t(e){var i=function(d){return(d=+d)==1?kv:function(g,v){return v-g?function(w,C,S){return w=Math.pow(w,S),C=Math.pow(C,S)-w,S=1/S,function(B){return Math.pow(w+B*C,S)}}(g,v,d):xg(isNaN(g)?v:g)}}(e);function u(d,g){var v=i((d=El(d)).r,(g=El(g)).r),w=i(d.g,g.g),C=i(d.b,g.b),S=kv(d.opacity,g.opacity);return function(B){return d.r=v(B),d.g=w(B),d.b=C(B),d.opacity=S(B),d+""}}return u.gamma=t,u}(1);function L5(t,e){var i,u=e?e.length:0,d=t?Math.min(u,t.length):0,g=new Array(d),v=new Array(u);for(i=0;i<d;++i)g[i]=p0(t[i],e[i]);for(;i<u;++i)v[i]=e[i];return function(w){for(i=0;i<d;++i)v[i]=g[i](w);return v}}function B5(t,e){var i=new Date;return t=+t,e=+e,function(u){return i.setTime(t*(1-u)+e*u),i}}function d0(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}function R5(t,e){var i,u={},d={};for(i in t!==null&&typeof t=="object"||(t={}),e!==null&&typeof e=="object"||(e={}),e)i in t?u[i]=p0(t[i],e[i]):d[i]=e[i];return function(g){for(i in u)d[i]=u[i](g);return d}}var kg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,af=new RegExp(kg.source,"g");function Tv(t,e){var i,u,d,g=kg.lastIndex=af.lastIndex=0,v=-1,w=[],C=[];for(t+="",e+="";(i=kg.exec(t))&&(u=af.exec(e));)(d=u.index)>g&&(d=e.slice(g,d),w[v]?w[v]+=d:w[++v]=d),(i=i[0])===(u=u[0])?w[v]?w[v]+=u:w[++v]=u:(w[++v]=null,C.push({i:v,x:d0(i,u)})),g=af.lastIndex;return g<e.length&&(d=e.slice(g),w[v]?w[v]+=d:w[++v]=d),w.length<2?C[0]?function(S){return function(B){return S(B)+""}}(C[0].x):function(S){return function(){return S}}(e):(e=C.length,function(S){for(var B,j=0;j<e;++j)w[(B=C[j]).i]=B.x(S);return w.join("")})}function Ev(t,e){e||(e=[]);var i,u=t?Math.min(e.length,t.length):0,d=e.slice();return function(g){for(i=0;i<u;++i)d[i]=t[i]*(1-g)+e[i]*g;return d}}function p0(t,e){var i,u,d=typeof e;return e==null||d==="boolean"?xg(e):(d==="number"?d0:d==="string"?(i=Tl(e))?(e=i,f0):Tv:e instanceof Tl?f0:e instanceof Date?B5:(u=e,!ArrayBuffer.isView(u)||u instanceof DataView?Array.isArray(e)?L5:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?R5:d0:Ev))(t,e)}function g0(t,e){return t=+t,e=+e,function(i){return Math.round(t*(1-i)+e*i)}}function Sv(t){return+t}var Tg=[0,1];function Sl(t){return t}function Eg(t,e){return(e-=t=+t)?function(u){return(u-t)/e}:(i=isNaN(e)?NaN:.5,function(){return i});var i}function I5(t,e,i){var u=t[0],d=t[1],g=e[0],v=e[1];return d<u?(u=Eg(d,u),g=i(v,g)):(u=Eg(u,d),g=i(g,v)),function(w){return g(u(w))}}function Sg(t,e,i){var u=Math.min(t.length,e.length)-1,d=new Array(u),g=new Array(u),v=-1;for(t[u]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++v<u;)d[v]=Eg(t[v],t[v+1]),g[v]=i(e[v],e[v+1]);return function(w){var C=ls(t,w,1,u)-1;return g[C](d[C](w))}}function y0(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function m0(){return function(){var t,e,i,u,d,g,v=Tg,w=Tg,C=p0,S=Sl;function B(){var P,U,ot,vt=Math.min(v.length,w.length);return S!==Sl&&(P=v[0],U=v[vt-1],P>U&&(ot=P,P=U,U=ot),S=function(bt){return Math.max(P,Math.min(U,bt))}),u=vt>2?Sg:I5,d=g=null,j}function j(P){return P==null||isNaN(P=+P)?i:(d||(d=u(v.map(t),w,C)))(t(S(P)))}return j.invert=function(P){return S(e((g||(g=u(w,v.map(t),d0)))(P)))},j.domain=function(P){return arguments.length?(v=Array.from(P,Sv),B()):v.slice()},j.range=function(P){return arguments.length?(w=Array.from(P),B()):w.slice()},j.rangeRound=function(P){return w=Array.from(P),C=g0,B()},j.clamp=function(P){return arguments.length?(S=!!P||Sl,B()):S!==Sl},j.interpolate=function(P){return arguments.length?(C=P,B()):C},j.unknown=function(P){return arguments.length?(i=P,j):i},function(P,U){return t=P,e=U,B()}}()(Sl,Sl)}function $s(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Cv,Cg=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function of(t){if(!(e=Cg.exec(t)))throw new Error("invalid format: "+t);var e;return new Ws({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Ws(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}function v0(t,e){if((i=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var i,u=t.slice(0,i);return[u.length>1?u[0]+u.slice(2):u,+t.slice(i+1)]}function Cl(t){return(t=v0(Math.abs(t)))?t[1]:NaN}function Mv(t,e){var i=v0(t,e);if(!i)return t+"";var u=i[0],d=i[1];return d<0?"0."+new Array(-d).join("0")+u:u.length>d+1?u.slice(0,d+1)+"."+u.slice(d+1):u+new Array(d-u.length+2).join("0")}of.prototype=Ws.prototype,Ws.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Av={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Mv(100*t,e),r:Mv,s:function(t,e){var i=v0(t,e);if(!i)return t+"";var u=i[0],d=i[1],g=d-(Cv=3*Math.max(-8,Math.min(8,Math.floor(d/3))))+1,v=u.length;return g===v?u:g>v?u+new Array(g-v+1).join("0"):g>0?u.slice(0,g)+"."+u.slice(g):"0."+new Array(1-g).join("0")+v0(t,Math.max(0,e+g-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Dv(t){return t}var Mg,io,sf,Ag=Array.prototype.map,qs=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function F5(t){var e=t.domain;return t.ticks=function(i){var u=e();return function(d,g,v){var w,C,S,B,j=-1;if(v=+v,(d=+d)==(g=+g)&&v>0)return[d];if((w=g<d)&&(C=d,d=g,g=C),(B=dg(d,g,v))===0||!isFinite(B))return[];if(B>0){let P=Math.round(d/B),U=Math.round(g/B);for(P*B<d&&++P,U*B>g&&--U,S=new Array(C=U-P+1);++j<C;)S[j]=(P+j)*B}else{B=-B;let P=Math.round(d*B),U=Math.round(g*B);for(P/B<d&&++P,U/B>g&&--U,S=new Array(C=U-P+1);++j<C;)S[j]=(P+j)/B}return w&&S.reverse(),S}(u[0],u[u.length-1],i==null?10:i)},t.tickFormat=function(i,u){var d=e();return function(g,v,w,C){var S,B=pg(g,v,w);switch((C=of(C==null?",f":C)).type){case"s":var j=Math.max(Math.abs(g),Math.abs(v));return C.precision!=null||isNaN(S=function(P,U){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Cl(U)/3)))-Cl(Math.abs(P)))}(B,j))||(C.precision=S),sf(C,j);case"":case"e":case"g":case"p":case"r":C.precision!=null||isNaN(S=function(P,U){return P=Math.abs(P),U=Math.abs(U)-P,Math.max(0,Cl(U)-Cl(P))+1}(B,Math.max(Math.abs(g),Math.abs(v))))||(C.precision=S-(C.type==="e"));break;case"f":case"%":C.precision!=null||isNaN(S=function(P){return Math.max(0,-Cl(Math.abs(P)))}(B))||(C.precision=S-2*(C.type==="%"))}return io(C)}(d[0],d[d.length-1],i==null?10:i,u)},t.nice=function(i){i==null&&(i=10);var u,d,g=e(),v=0,w=g.length-1,C=g[v],S=g[w],B=10;for(S<C&&(d=C,C=S,S=d,d=v,v=w,w=d);B-- >0;){if((d=dg(C,S,i))===u)return g[v]=C,g[w]=S,e(g);if(d>0)C=Math.floor(C/d)*d,S=Math.ceil(S/d)*d;else{if(!(d<0))break;C=Math.ceil(C*d)/d,S=Math.floor(S*d)/d}u=d}return t},t}function Nv(){var t=m0();return t.copy=function(){return y0(t,Nv())},$s.apply(t,arguments),F5(t)}Mg=function(t){var e,i,u=t.grouping===void 0||t.thousands===void 0?Dv:(e=Ag.call(t.grouping,Number),i=t.thousands+"",function(P,U){for(var ot=P.length,vt=[],bt=0,kt=e[0],_t=0;ot>0&&kt>0&&(_t+kt+1>U&&(kt=Math.max(1,U-_t)),vt.push(P.substring(ot-=kt,ot+kt)),!((_t+=kt+1)>U));)kt=e[bt=(bt+1)%e.length];return vt.reverse().join(i)}),d=t.currency===void 0?"":t.currency[0]+"",g=t.currency===void 0?"":t.currency[1]+"",v=t.decimal===void 0?".":t.decimal+"",w=t.numerals===void 0?Dv:function(P){return function(U){return U.replace(/[0-9]/g,function(ot){return P[+ot]})}}(Ag.call(t.numerals,String)),C=t.percent===void 0?"%":t.percent+"",S=t.minus===void 0?"\u2212":t.minus+"",B=t.nan===void 0?"NaN":t.nan+"";function j(P){var U=(P=of(P)).fill,ot=P.align,vt=P.sign,bt=P.symbol,kt=P.zero,_t=P.width,lt=P.comma,$t=P.precision,Lt=P.trim,gt=P.type;gt==="n"?(lt=!0,gt="g"):Av[gt]||($t===void 0&&($t=12),Lt=!0,gt="g"),(kt||U==="0"&&ot==="=")&&(kt=!0,U="0",ot="=");var Bt=bt==="$"?d:bt==="#"&&/[boxX]/.test(gt)?"0"+gt.toLowerCase():"",ne=bt==="$"?g:/[%p]/.test(gt)?C:"",At=Av[gt],Tt=/[defgprs%]/.test(gt);function jt(Dt){var te,yt,ue,ve=Bt,me=ne;if(gt==="c")me=At(Dt)+me,Dt="";else{var De=(Dt=+Dt)<0||1/Dt<0;if(Dt=isNaN(Dt)?B:At(Math.abs(Dt),$t),Lt&&(Dt=function(fn){t:for(var Oe,Pn=fn.length,Sn=1,dn=-1;Sn<Pn;++Sn)switch(fn[Sn]){case".":dn=Oe=Sn;break;case"0":dn===0&&(dn=Sn),Oe=Sn;break;default:if(!+fn[Sn])break t;dn>0&&(dn=0)}return dn>0?fn.slice(0,dn)+fn.slice(Oe+1):fn}(Dt)),De&&+Dt==0&&vt!=="+"&&(De=!1),ve=(De?vt==="("?vt:S:vt==="-"||vt==="("?"":vt)+ve,me=(gt==="s"?qs[8+Cv/3]:"")+me+(De&&vt==="("?")":""),Tt){for(te=-1,yt=Dt.length;++te<yt;)if(48>(ue=Dt.charCodeAt(te))||ue>57){me=(ue===46?v+Dt.slice(te+1):Dt.slice(te))+me,Dt=Dt.slice(0,te);break}}}lt&&!kt&&(Dt=u(Dt,1/0));var He=ve.length+Dt.length+me.length,ze=He<_t?new Array(_t-He+1).join(U):"";switch(lt&&kt&&(Dt=u(ze+Dt,ze.length?_t-me.length:1/0),ze=""),ot){case"<":Dt=ve+Dt+me+ze;break;case"=":Dt=ve+ze+Dt+me;break;case"^":Dt=ze.slice(0,He=ze.length>>1)+ve+Dt+me+ze.slice(He);break;default:Dt=ze+ve+Dt+me}return w(Dt)}return $t=$t===void 0?6:/[gprs]/.test(gt)?Math.max(1,Math.min(21,$t)):Math.max(0,Math.min(20,$t)),jt.toString=function(){return P+""},jt}return{format:j,formatPrefix:function(P,U){var ot=j(((P=of(P)).type="f",P)),vt=3*Math.max(-8,Math.min(8,Math.floor(Cl(U)/3))),bt=Math.pow(10,-vt),kt=qs[8+vt/3];return function(_t){return ot(bt*_t)+kt}}}}({thousands:",",grouping:[3],currency:["$",""]}),io=Mg.format,sf=Mg.formatPrefix;class Ov extends Map{constructor(e,i=Lv){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),e!=null)for(const[u,d]of e)this.set(u,d)}get(e){return super.get(Dg(this,e))}has(e){return super.has(Dg(this,e))}set(e,i){return super.set(function({_intern:u,_key:d},g){const v=d(g);return u.has(v)?u.get(v):(u.set(v,g),g)}(this,e),i)}delete(e){return super.delete(function({_intern:i,_key:u},d){const g=u(d);return i.has(g)&&(d=i.get(g),i.delete(g)),d}(this,e))}}function Dg({_intern:t,_key:e},i){const u=e(i);return t.has(u)?t.get(u):i}function Lv(t){return t!==null&&typeof t=="object"?t.valueOf():t}const cf=Symbol("implicit");function Ec(){var t=new Ov,e=[],i=[],u=cf;function d(g){let v=t.get(g);if(v===void 0){if(u!==cf)return u;t.set(g,v=e.push(g)-1)}return i[v%i.length]}return d.domain=function(g){if(!arguments.length)return e.slice();e=[],t=new Ov;for(const v of g)t.has(v)||t.set(v,e.push(v)-1);return d},d.range=function(g){return arguments.length?(i=Array.from(g),d):i.slice()},d.unknown=function(g){return arguments.length?(u=g,d):u},d.copy=function(){return Ec(e,i).unknown(u)},$s.apply(d,arguments),d}const Ml=1e3,Sc=6e4,uf=36e5,Ng=864e5,Og=6048e5,_0=31536e6;var b0=new Date,w0=new Date;function ji(t,e,i,u){function d(g){return t(g=arguments.length===0?new Date:new Date(+g)),g}return d.floor=function(g){return t(g=new Date(+g)),g},d.ceil=function(g){return t(g=new Date(g-1)),e(g,1),t(g),g},d.round=function(g){var v=d(g),w=d.ceil(g);return g-v<w-g?v:w},d.offset=function(g,v){return e(g=new Date(+g),v==null?1:Math.floor(v)),g},d.range=function(g,v,w){var C,S=[];if(g=d.ceil(g),w=w==null?1:Math.floor(w),!(g<v&&w>0))return S;do S.push(C=new Date(+g)),e(g,w),t(g);while(C<g&&g<v);return S},d.filter=function(g){return ji(function(v){if(v>=v)for(;t(v),!g(v);)v.setTime(v-1)},function(v,w){if(v>=v)if(w<0)for(;++w<=0;)for(;e(v,-1),!g(v););else for(;--w>=0;)for(;e(v,1),!g(v););})},i&&(d.count=function(g,v){return b0.setTime(+g),w0.setTime(+v),t(b0),t(w0),Math.floor(i(b0,w0))},d.every=function(g){return g=Math.floor(g),isFinite(g)&&g>0?g>1?d.filter(u?function(v){return u(v)%g==0}:function(v){return d.count(0,v)%g==0}):d:null}),d}var x0=ji(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});x0.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ji(function(e){e.setTime(Math.floor(e/t)*t)},function(e,i){e.setTime(+e+i*t)},function(e,i){return(i-e)/t}):x0:null};const Lg=x0;var Bv=ji(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Ml)},function(t,e){return(e-t)/Ml},function(t){return t.getUTCSeconds()});const Al=Bv;var P5=ji(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ml)},function(t,e){t.setTime(+t+e*Sc)},function(t,e){return(e-t)/Sc},function(t){return t.getMinutes()});const lf=P5;var Po=ji(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ml-t.getMinutes()*Sc)},function(t,e){t.setTime(+t+e*uf)},function(t,e){return(e-t)/uf},function(t){return t.getHours()});const k0=Po;var Bg=ji(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Sc)/Ng,t=>t.getDate()-1);const Dl=Bg;function Vs(t){return ji(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,i){e.setDate(e.getDate()+7*i)},function(e,i){return(i-e-(i.getTimezoneOffset()-e.getTimezoneOffset())*Sc)/Og})}var T0=Vs(0),Rg=Vs(1);Vs(2),Vs(3);var Cc=Vs(4);Vs(5),Vs(6);var ps=ji(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});const Ig=ps;var Fg=ji(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Fg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ji(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,i){e.setFullYear(e.getFullYear()+i*t)}):null};const Gs=Fg;ji(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*Sc)},function(t,e){return(e-t)/Sc},function(t){return t.getUTCMinutes()}),ji(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*uf)},function(t,e){return(e-t)/uf},function(t){return t.getUTCHours()});var Pg=ji(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Ng},function(t){return t.getUTCDate()-1});const hf=Pg;function Yo(t){return ji(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCDate(e.getUTCDate()+7*i)},function(e,i){return(i-e)/Og})}var Rv=Yo(0),E0=Yo(1);Yo(2),Yo(3);var Nl=Yo(4);Yo(5),Yo(6),ji(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});var Iv=ji(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Iv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ji(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCFullYear(e.getUTCFullYear()+i*t)}):null};const Ta=Iv;function xu(t,e,i,u,d,g){const v=[[Al,1,Ml],[Al,5,5e3],[Al,15,15e3],[Al,30,3e4],[g,1,Sc],[g,5,3e5],[g,15,9e5],[g,30,18e5],[d,1,uf],[d,3,108e5],[d,6,216e5],[d,12,432e5],[u,1,Ng],[u,2,1728e5],[i,1,Og],[e,1,2592e6],[e,3,7776e6],[t,1,_0]];function w(C,S,B){const j=Math.abs(S-C)/B,P=yg(([,,vt])=>vt).right(v,j);if(P===v.length)return t.every(pg(C/_0,S/_0,B));if(P===0)return Lg.every(Math.max(pg(C,S,B),1));const[U,ot]=v[j/v[P-1][2]<v[P][2]/j?P-1:P];return U.every(ot)}return[function(C,S,B){const j=S<C;j&&([C,S]=[S,C]);const P=B&&typeof B.range=="function"?B:w(C,S,B),U=P?P.range(C,+S+1):[];return j?U.reverse():U},w]}const[Fv,Y5]=xu(Gs,Ig,T0,Dl,k0,lf);function gs(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Yg(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ff(t,e,i){return{y:t,m:e,d:i,H:0,M:0,S:0,L:0}}var df,Pv,ys={"-":"",_:" ",0:"0"},zi=/^\s*\d+/,jg=/^%/,zg=/[\\^$*+?|[\]().{}]/g;function wr(t,e,i){var u=t<0?"-":"",d=(u?-t:t)+"",g=d.length;return u+(g<i?new Array(i-g+1).join(e)+d:d)}function j5(t){return t.replace(zg,"\\$&")}function pf(t){return new RegExp("^(?:"+t.map(j5).join("|")+")","i")}function gf(t){return new Map(t.map((e,i)=>[e.toLowerCase(),i]))}function S0(t,e,i){var u=zi.exec(e.slice(i,i+1));return u?(t.w=+u[0],i+u[0].length):-1}function Ug(t,e,i){var u=zi.exec(e.slice(i,i+1));return u?(t.u=+u[0],i+u[0].length):-1}function z5(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.U=+u[0],i+u[0].length):-1}function U5(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.V=+u[0],i+u[0].length):-1}function H5(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.W=+u[0],i+u[0].length):-1}function Yv(t,e,i){var u=zi.exec(e.slice(i,i+4));return u?(t.y=+u[0],i+u[0].length):-1}function jv(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.y=+u[0]+(+u[0]>68?1900:2e3),i+u[0].length):-1}function zv(t,e,i){var u=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(i,i+6));return u?(t.Z=u[1]?0:-(u[2]+(u[3]||"00")),i+u[0].length):-1}function Hg(t,e,i){var u=zi.exec(e.slice(i,i+1));return u?(t.q=3*u[0]-3,i+u[0].length):-1}function Uv(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.m=u[0]-1,i+u[0].length):-1}function $g(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.d=+u[0],i+u[0].length):-1}function za(t,e,i){var u=zi.exec(e.slice(i,i+3));return u?(t.m=0,t.d=+u[0],i+u[0].length):-1}function yf(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.H=+u[0],i+u[0].length):-1}function ku(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.M=+u[0],i+u[0].length):-1}function Hv(t,e,i){var u=zi.exec(e.slice(i,i+2));return u?(t.S=+u[0],i+u[0].length):-1}function $5(t,e,i){var u=zi.exec(e.slice(i,i+3));return u?(t.L=+u[0],i+u[0].length):-1}function W5(t,e,i){var u=zi.exec(e.slice(i,i+6));return u?(t.L=Math.floor(u[0]/1e3),i+u[0].length):-1}function q5(t,e,i){var u=jg.exec(e.slice(i,i+1));return u?i+u[0].length:-1}function V5(t,e,i){var u=zi.exec(e.slice(i));return u?(t.Q=+u[0],i+u[0].length):-1}function G5(t,e,i){var u=zi.exec(e.slice(i));return u?(t.s=+u[0],i+u[0].length):-1}function $v(t,e){return wr(t.getDate(),e,2)}function Tu(t,e){return wr(t.getHours(),e,2)}function Wv(t,e){return wr(t.getHours()%12||12,e,2)}function Z5(t,e){return wr(1+Dl.count(Gs(t),t),e,3)}function qv(t,e){return wr(t.getMilliseconds(),e,3)}function X5(t,e){return qv(t,e)+"000"}function K5(t,e){return wr(t.getMonth()+1,e,2)}function Q5(t,e){return wr(t.getMinutes(),e,2)}function J5(t,e){return wr(t.getSeconds(),e,2)}function tw(t){var e=t.getDay();return e===0?7:e}function ew(t,e){return wr(T0.count(Gs(t)-1,t),e,2)}function Vv(t){var e=t.getDay();return e>=4||e===0?Cc(t):Cc.ceil(t)}function nw(t,e){return t=Vv(t),wr(Cc.count(Gs(t),t)+(Gs(t).getDay()===4),e,2)}function rw(t){return t.getDay()}function Gv(t,e){return wr(Rg.count(Gs(t)-1,t),e,2)}function iw(t,e){return wr(t.getFullYear()%100,e,2)}function aw(t,e){return wr((t=Vv(t)).getFullYear()%100,e,2)}function Zv(t,e){return wr(t.getFullYear()%1e4,e,4)}function Xv(t,e){var i=t.getDay();return wr((t=i>=4||i===0?Cc(t):Cc.ceil(t)).getFullYear()%1e4,e,4)}function Kv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+wr(e/60|0,"0",2)+wr(e%60,"0",2)}function Qv(t,e){return wr(t.getUTCDate(),e,2)}function ow(t,e){return wr(t.getUTCHours(),e,2)}function Jv(t,e){return wr(t.getUTCHours()%12||12,e,2)}function Mc(t,e){return wr(1+hf.count(Ta(t),t),e,3)}function t_(t,e){return wr(t.getUTCMilliseconds(),e,3)}function sw(t,e){return t_(t,e)+"000"}function e_(t,e){return wr(t.getUTCMonth()+1,e,2)}function cw(t,e){return wr(t.getUTCMinutes(),e,2)}function uw(t,e){return wr(t.getUTCSeconds(),e,2)}function n_(t){var e=t.getUTCDay();return e===0?7:e}function C0(t,e){return wr(Rv.count(Ta(t)-1,t),e,2)}function r_(t){var e=t.getUTCDay();return e>=4||e===0?Nl(t):Nl.ceil(t)}function mf(t,e){return t=r_(t),wr(Nl.count(Ta(t),t)+(Ta(t).getUTCDay()===4),e,2)}function lw(t){return t.getUTCDay()}function Wg(t,e){return wr(E0.count(Ta(t)-1,t),e,2)}function hw(t,e){return wr(t.getUTCFullYear()%100,e,2)}function fw(t,e){return wr((t=r_(t)).getUTCFullYear()%100,e,2)}function i_(t,e){return wr(t.getUTCFullYear()%1e4,e,4)}function Ol(t,e){var i=t.getUTCDay();return wr((t=i>=4||i===0?Nl(t):Nl.ceil(t)).getUTCFullYear()%1e4,e,4)}function dw(){return"+0000"}function qg(){return"%"}function a_(t){return+t}function o_(t){return Math.floor(+t/1e3)}function pw(t){return new Date(t)}function gw(t){return t instanceof Date?+t:+new Date(+t)}function s_(t,e,i,u,d,g,v,w,C,S){var B=m0(),j=B.invert,P=B.domain,U=S(".%L"),ot=S(":%S"),vt=S("%I:%M"),bt=S("%I %p"),kt=S("%a %d"),_t=S("%b %d"),lt=S("%B"),$t=S("%Y");function Lt(gt){return(C(gt)<gt?U:w(gt)<gt?ot:v(gt)<gt?vt:g(gt)<gt?bt:u(gt)<gt?d(gt)<gt?kt:_t:i(gt)<gt?lt:$t)(gt)}return B.invert=function(gt){return new Date(j(gt))},B.domain=function(gt){return arguments.length?P(Array.from(gt,gw)):P().map(pw)},B.ticks=function(gt){var Bt=P();return t(Bt[0],Bt[Bt.length-1],gt==null?10:gt)},B.tickFormat=function(gt,Bt){return Bt==null?Lt:S(Bt)},B.nice=function(gt){var Bt=P();return gt&&typeof gt.range=="function"||(gt=e(Bt[0],Bt[Bt.length-1],gt==null?10:gt)),gt?P(function(ne,At){var Tt,jt=0,Dt=(ne=ne.slice()).length-1,te=ne[jt],yt=ne[Dt];return yt<te&&(Tt=jt,jt=Dt,Dt=Tt,Tt=te,te=yt,yt=Tt),ne[jt]=At.floor(te),ne[Dt]=At.ceil(yt),ne}(Bt,gt)):B},B.copy=function(){return y0(B,s_(t,e,i,u,d,g,v,w,C,S))},B}function yw(){}function Ll(t){return t==null?yw:function(){return this.querySelector(t)}}function Vg(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function mw(){return[]}function c_(t){return t==null?mw:function(){return this.querySelectorAll(t)}}function u_(t){return function(){return this.matches(t)}}function l_(t){return function(e){return e.matches(t)}}df=function(t){var e=t.dateTime,i=t.date,u=t.time,d=t.periods,g=t.days,v=t.shortDays,w=t.months,C=t.shortMonths,S=pf(d),B=gf(d),j=pf(g),P=gf(g),U=pf(v),ot=gf(v),vt=pf(w),bt=gf(w),kt=pf(C),_t=gf(C),lt={a:function(At){return v[At.getDay()]},A:function(At){return g[At.getDay()]},b:function(At){return C[At.getMonth()]},B:function(At){return w[At.getMonth()]},c:null,d:$v,e:$v,f:X5,g:aw,G:Xv,H:Tu,I:Wv,j:Z5,L:qv,m:K5,M:Q5,p:function(At){return d[+(At.getHours()>=12)]},q:function(At){return 1+~~(At.getMonth()/3)},Q:a_,s:o_,S:J5,u:tw,U:ew,V:nw,w:rw,W:Gv,x:null,X:null,y:iw,Y:Zv,Z:Kv,"%":qg},$t={a:function(At){return v[At.getUTCDay()]},A:function(At){return g[At.getUTCDay()]},b:function(At){return C[At.getUTCMonth()]},B:function(At){return w[At.getUTCMonth()]},c:null,d:Qv,e:Qv,f:sw,g:fw,G:Ol,H:ow,I:Jv,j:Mc,L:t_,m:e_,M:cw,p:function(At){return d[+(At.getUTCHours()>=12)]},q:function(At){return 1+~~(At.getUTCMonth()/3)},Q:a_,s:o_,S:uw,u:n_,U:C0,V:mf,w:lw,W:Wg,x:null,X:null,y:hw,Y:i_,Z:dw,"%":qg},Lt={a:function(At,Tt,jt){var Dt=U.exec(Tt.slice(jt));return Dt?(At.w=ot.get(Dt[0].toLowerCase()),jt+Dt[0].length):-1},A:function(At,Tt,jt){var Dt=j.exec(Tt.slice(jt));return Dt?(At.w=P.get(Dt[0].toLowerCase()),jt+Dt[0].length):-1},b:function(At,Tt,jt){var Dt=kt.exec(Tt.slice(jt));return Dt?(At.m=_t.get(Dt[0].toLowerCase()),jt+Dt[0].length):-1},B:function(At,Tt,jt){var Dt=vt.exec(Tt.slice(jt));return Dt?(At.m=bt.get(Dt[0].toLowerCase()),jt+Dt[0].length):-1},c:function(At,Tt,jt){return ne(At,e,Tt,jt)},d:$g,e:$g,f:W5,g:jv,G:Yv,H:yf,I:yf,j:za,L:$5,m:Uv,M:ku,p:function(At,Tt,jt){var Dt=S.exec(Tt.slice(jt));return Dt?(At.p=B.get(Dt[0].toLowerCase()),jt+Dt[0].length):-1},q:Hg,Q:V5,s:G5,S:Hv,u:Ug,U:z5,V:U5,w:S0,W:H5,x:function(At,Tt,jt){return ne(At,i,Tt,jt)},X:function(At,Tt,jt){return ne(At,u,Tt,jt)},y:jv,Y:Yv,Z:zv,"%":q5};function gt(At,Tt){return function(jt){var Dt,te,yt,ue=[],ve=-1,me=0,De=At.length;for(jt instanceof Date||(jt=new Date(+jt));++ve<De;)At.charCodeAt(ve)===37&&(ue.push(At.slice(me,ve)),(te=ys[Dt=At.charAt(++ve)])!=null?Dt=At.charAt(++ve):te=Dt==="e"?" ":"0",(yt=Tt[Dt])&&(Dt=yt(jt,te)),ue.push(Dt),me=ve+1);return ue.push(At.slice(me,ve)),ue.join("")}}function Bt(At,Tt){return function(jt){var Dt,te,yt=ff(1900,void 0,1);if(ne(yt,At,jt+="",0)!=jt.length)return null;if("Q"in yt)return new Date(yt.Q);if("s"in yt)return new Date(1e3*yt.s+("L"in yt?yt.L:0));if(Tt&&!("Z"in yt)&&(yt.Z=0),"p"in yt&&(yt.H=yt.H%12+12*yt.p),yt.m===void 0&&(yt.m="q"in yt?yt.q:0),"V"in yt){if(yt.V<1||yt.V>53)return null;"w"in yt||(yt.w=1),"Z"in yt?(te=(Dt=Yg(ff(yt.y,0,1))).getUTCDay(),Dt=te>4||te===0?E0.ceil(Dt):E0(Dt),Dt=hf.offset(Dt,7*(yt.V-1)),yt.y=Dt.getUTCFullYear(),yt.m=Dt.getUTCMonth(),yt.d=Dt.getUTCDate()+(yt.w+6)%7):(te=(Dt=gs(ff(yt.y,0,1))).getDay(),Dt=te>4||te===0?Rg.ceil(Dt):Rg(Dt),Dt=Dl.offset(Dt,7*(yt.V-1)),yt.y=Dt.getFullYear(),yt.m=Dt.getMonth(),yt.d=Dt.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),te="Z"in yt?Yg(ff(yt.y,0,1)).getUTCDay():gs(ff(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(te+5)%7:yt.w+7*yt.U-(te+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,Yg(yt)):gs(yt)}}function ne(At,Tt,jt,Dt){for(var te,yt,ue=0,ve=Tt.length,me=jt.length;ue<ve;){if(Dt>=me)return-1;if((te=Tt.charCodeAt(ue++))===37){if(te=Tt.charAt(ue++),!(yt=Lt[te in ys?Tt.charAt(ue++):te])||(Dt=yt(At,jt,Dt))<0)return-1}else if(te!=jt.charCodeAt(Dt++))return-1}return Dt}return lt.x=gt(i,lt),lt.X=gt(u,lt),lt.c=gt(e,lt),$t.x=gt(i,$t),$t.X=gt(u,$t),$t.c=gt(e,$t),{format:function(At){var Tt=gt(At+="",lt);return Tt.toString=function(){return At},Tt},parse:function(At){var Tt=Bt(At+="",!1);return Tt.toString=function(){return At},Tt},utcFormat:function(At){var Tt=gt(At+="",$t);return Tt.toString=function(){return At},Tt},utcParse:function(At){var Tt=Bt(At+="",!0);return Tt.toString=function(){return At},Tt}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Pv=df.format,df.parse,df.utcFormat,df.utcParse;var vw=Array.prototype.find;function _w(){return this.firstElementChild}var Gg=Array.prototype.filter;function bw(){return Array.from(this.children)}function h_(t){return new Array(t.length)}function M0(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ww(t){return function(){return t}}function Ui(t,e,i,u,d,g){for(var v,w=0,C=e.length,S=g.length;w<S;++w)(v=e[w])?(v.__data__=g[w],u[w]=v):i[w]=new M0(t,g[w]);for(;w<C;++w)(v=e[w])&&(d[w]=v)}function Ac(t,e,i,u,d,g,v){var w,C,S,B=new Map,j=e.length,P=g.length,U=new Array(j);for(w=0;w<j;++w)(C=e[w])&&(U[w]=S=v.call(C,C.__data__,w,e)+"",B.has(S)?d[w]=C:B.set(S,C));for(w=0;w<P;++w)S=v.call(t,g[w],w,g)+"",(C=B.get(S))?(u[w]=C,C.__data__=g[w],B.delete(S)):i[w]=new M0(t,g[w]);for(w=0;w<j;++w)(C=e[w])&&B.get(U[w])===C&&(d[w]=C)}function f_(t){return t.__data__}function Ea(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function xw(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}M0.prototype={constructor:M0,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Zg="http://www.w3.org/1999/xhtml";const vf={svg:"http://www.w3.org/2000/svg",xhtml:Zg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Bl(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),vf.hasOwnProperty(e)?{space:vf[e],local:t}:t}function d_(t){return function(){this.removeAttribute(t)}}function Sa(t){return function(){this.removeAttributeNS(t.space,t.local)}}function kw(t,e){return function(){this.setAttribute(t,e)}}function Tw(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ew(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function Sw(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Xg(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Cw(t){return function(){this.style.removeProperty(t)}}function Mw(t,e,i){return function(){this.style.setProperty(t,e,i)}}function Aw(t,e,i){return function(){var u=e.apply(this,arguments);u==null?this.style.removeProperty(t):this.style.setProperty(t,u,i)}}function Rl(t,e){return t.style.getPropertyValue(e)||Xg(t).getComputedStyle(t,null).getPropertyValue(e)}function Dw(t){return function(){delete this[t]}}function Nw(t,e){return function(){this[t]=e}}function Ow(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function p_(t){return t.trim().split(/^|\s+/)}function Kg(t){return t.classList||new _f(t)}function _f(t){this._node=t,this._names=p_(t.getAttribute("class")||"")}function Eu(t,e){for(var i=Kg(t),u=-1,d=e.length;++u<d;)i.add(e[u])}function Qg(t,e){for(var i=Kg(t),u=-1,d=e.length;++u<d;)i.remove(e[u])}function Lw(t){return function(){Eu(this,t)}}function bf(t){return function(){Qg(this,t)}}function A0(t,e){return function(){(e.apply(this,arguments)?Eu:Qg)(this,t)}}function g_(){this.textContent=""}function y_(t){return function(){this.textContent=t}}function m_(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function D0(){this.innerHTML=""}function N0(t){return function(){this.innerHTML=t}}function Jg(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function v_(){this.nextSibling&&this.parentNode.appendChild(this)}function __(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function b_(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===Zg&&e.documentElement.namespaceURI===Zg?e.createElement(t):e.createElementNS(i,t)}}function w_(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function t2(t){var e=Bl(t);return(e.local?w_:b_)(e)}function x_(){return null}function k_(){var t=this.parentNode;t&&t.removeChild(this)}function Dc(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function O0(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function L0(t){return t.trim().split(/^|\s+/).map(function(e){var i="",u=e.indexOf(".");return u>=0&&(i=e.slice(u+1),e=e.slice(0,u)),{type:e,name:i}})}function T_(t){return function(){var e=this.__on;if(e){for(var i,u=0,d=-1,g=e.length;u<g;++u)i=e[u],t.type&&i.type!==t.type||i.name!==t.name?e[++d]=i:this.removeEventListener(i.type,i.listener,i.options);++d?e.length=d:delete this.__on}}}function In(t,e,i){return function(){var u,d=this.__on,g=function(C){return function(S){C.call(this,S,this.__data__)}}(e);if(d){for(var v=0,w=d.length;v<w;++v)if((u=d[v]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.options),this.addEventListener(u.type,u.listener=g,u.options=i),void(u.value=e)}this.addEventListener(t.type,g,i),u={type:t.type,name:t.name,value:e,listener:g,options:i},d?d.push(u):this.__on=[u]}}function wf(t,e,i){var u=Xg(t),d=u.CustomEvent;typeof d=="function"?d=new d(e,i):(d=u.document.createEvent("Event"),i?(d.initEvent(e,i.bubbles,i.cancelable),d.detail=i.detail):d.initEvent(e,!1,!1)),t.dispatchEvent(d)}function rr(t,e){return function(){return wf(this,t,e)}}function yi(t,e){return function(){return wf(this,t,e.apply(this,arguments))}}_f.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Il=[null];function Rr(t,e){this._groups=t,this._parents=e}function Yr(){return new Rr([[document.documentElement]],Il)}Rr.prototype=Yr.prototype={constructor:Rr,select:function(t){typeof t!="function"&&(t=Ll(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v,w=e[d],C=w.length,S=u[d]=new Array(C),B=0;B<C;++B)(g=w[B])&&(v=t.call(g,g.__data__,B,w))&&("__data__"in g&&(v.__data__=g.__data__),S[B]=v);return new Rr(u,this._parents)},selectAll:function(t){t=typeof t=="function"?function(B){return function(){return Vg(B.apply(this,arguments))}}(t):c_(t);for(var e=this._groups,i=e.length,u=[],d=[],g=0;g<i;++g)for(var v,w=e[g],C=w.length,S=0;S<C;++S)(v=w[S])&&(u.push(t.call(v,v.__data__,S,w)),d.push(v));return new Rr(u,d)},selectChild:function(t){return this.select(t==null?_w:function(e){return function(){return vw.call(this.children,e)}}(typeof t=="function"?t:l_(t)))},selectChildren:function(t){return this.selectAll(t==null?bw:function(e){return function(){return Gg.call(this.children,e)}}(typeof t=="function"?t:l_(t)))},filter:function(t){typeof t!="function"&&(t=u_(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v=e[d],w=v.length,C=u[d]=[],S=0;S<w;++S)(g=v[S])&&t.call(g,g.__data__,S,v)&&C.push(g);return new Rr(u,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,f_);var i=e?Ac:Ui,u=this._parents,d=this._groups;typeof t!="function"&&(t=ww(t));for(var g=d.length,v=new Array(g),w=new Array(g),C=new Array(g),S=0;S<g;++S){var B=u[S],j=d[S],P=j.length,U=Ea(t.call(B,B&&B.__data__,S,u)),ot=U.length,vt=w[S]=new Array(ot),bt=v[S]=new Array(ot),kt=C[S]=new Array(P);i(B,j,vt,bt,kt,U,e);for(var _t,lt,$t=0,Lt=0;$t<ot;++$t)if(_t=vt[$t]){for($t>=Lt&&(Lt=$t+1);!(lt=bt[Lt])&&++Lt<ot;);_t._next=lt||null}}return(v=new Rr(v,u))._enter=w,v._exit=C,v},enter:function(){return new Rr(this._enter||this._groups.map(h_),this._parents)},exit:function(){return new Rr(this._exit||this._groups.map(h_),this._parents)},join:function(t,e,i){var u=this.enter(),d=this,g=this.exit();return typeof t=="function"?(u=t(u))&&(u=u.selection()):u=u.append(t+""),e!=null&&(d=e(d))&&(d=d.selection()),i==null?g.remove():i(g),u&&d?u.merge(d).order():d},merge:function(t){for(var e=t.selection?t.selection():t,i=this._groups,u=e._groups,d=i.length,g=u.length,v=Math.min(d,g),w=new Array(d),C=0;C<v;++C)for(var S,B=i[C],j=u[C],P=B.length,U=w[C]=new Array(P),ot=0;ot<P;++ot)(S=B[ot]||j[ot])&&(U[ot]=S);for(;C<d;++C)w[C]=i[C];return new Rr(w,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var u,d=t[e],g=d.length-1,v=d[g];--g>=0;)(u=d[g])&&(v&&4^u.compareDocumentPosition(v)&&v.parentNode.insertBefore(u,v),v=u);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=xw);for(var i=this._groups,u=i.length,d=new Array(u),g=0;g<u;++g){for(var v,w=i[g],C=w.length,S=d[g]=new Array(C),B=0;B<C;++B)(v=w[B])&&(S[B]=v);S.sort(e)}return new Rr(d,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var u=t[e],d=0,g=u.length;d<g;++d){var v=u[d];if(v)return v}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,i=0,u=e.length;i<u;++i)for(var d,g=e[i],v=0,w=g.length;v<w;++v)(d=g[v])&&t.call(d,d.__data__,v,g);return this},attr:function(t,e){var i=Bl(t);if(arguments.length<2){var u=this.node();return i.local?u.getAttributeNS(i.space,i.local):u.getAttribute(i)}return this.each((e==null?i.local?Sa:d_:typeof e=="function"?i.local?Sw:Ew:i.local?Tw:kw)(i,e))},style:function(t,e,i){return arguments.length>1?this.each((e==null?Cw:typeof e=="function"?Aw:Mw)(t,e,i==null?"":i)):Rl(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?Dw:typeof e=="function"?Ow:Nw)(t,e)):this.node()[t]},classed:function(t,e){var i=p_(t+"");if(arguments.length<2){for(var u=Kg(this.node()),d=-1,g=i.length;++d<g;)if(!u.contains(i[d]))return!1;return!0}return this.each((typeof e=="function"?A0:e?Lw:bf)(i,e))},text:function(t){return arguments.length?this.each(t==null?g_:(typeof t=="function"?m_:y_)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?D0:(typeof t=="function"?Jg:N0)(t)):this.node().innerHTML},raise:function(){return this.each(v_)},lower:function(){return this.each(__)},append:function(t){var e=typeof t=="function"?t:t2(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var i=typeof t=="function"?t:t2(t),u=e==null?x_:typeof e=="function"?e:Ll(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(k_)},clone:function(t){return this.select(t?O0:Dc)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,i){var u,d,g=L0(t+""),v=g.length;if(!(arguments.length<2)){for(w=e?In:T_,u=0;u<v;++u)this.each(w(g[u],e,i));return this}var w=this.node().__on;if(w){for(var C,S=0,B=w.length;S<B;++S)for(u=0,C=w[S];u<v;++u)if((d=g[u]).type===C.type&&d.name===C.name)return C.value}},dispatch:function(t,e){return this.each((typeof e=="function"?yi:rr)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var u,d=t[e],g=0,v=d.length;g<v;++g)(u=d[g])&&(yield u)}};const wn=Yr;function Se(t){return typeof t=="string"?new Rr([[document.querySelector(t)]],[document.documentElement]):new Rr([[t]],Il)}function Nc(t){return typeof t=="string"?new Rr([document.querySelectorAll(t)],[document.documentElement]):new Rr([Vg(t)],Il)}const aa=Math.PI,hn=2*aa,ms=1e-6,E_=hn-ms;function Fl(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function B0(){return new Fl}Fl.prototype=B0.prototype={constructor:Fl,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,u){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+u)},bezierCurveTo:function(t,e,i,u,d,g){this._+="C"+ +t+","+ +e+","+ +i+","+ +u+","+(this._x1=+d)+","+(this._y1=+g)},arcTo:function(t,e,i,u,d){t=+t,e=+e,i=+i,u=+u,d=+d;var g=this._x1,v=this._y1,w=i-t,C=u-e,S=g-t,B=v-e,j=S*S+B*B;if(d<0)throw new Error("negative radius: "+d);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(j>ms)if(Math.abs(B*w-C*S)>ms&&d){var P=i-g,U=u-v,ot=w*w+C*C,vt=P*P+U*U,bt=Math.sqrt(ot),kt=Math.sqrt(j),_t=d*Math.tan((aa-Math.acos((ot+j-vt)/(2*bt*kt)))/2),lt=_t/kt,$t=_t/bt;Math.abs(lt-1)>ms&&(this._+="L"+(t+lt*S)+","+(e+lt*B)),this._+="A"+d+","+d+",0,0,"+ +(B*P>S*U)+","+(this._x1=t+$t*w)+","+(this._y1=e+$t*C)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,i,u,d,g){t=+t,e=+e,g=!!g;var v=(i=+i)*Math.cos(u),w=i*Math.sin(u),C=t+v,S=e+w,B=1^g,j=g?u-d:d-u;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+C+","+S:(Math.abs(this._x1-C)>ms||Math.abs(this._y1-S)>ms)&&(this._+="L"+C+","+S),i&&(j<0&&(j=j%hn+hn),j>E_?this._+="A"+i+","+i+",0,1,"+B+","+(t-v)+","+(e-w)+"A"+i+","+i+",0,1,"+B+","+(this._x1=C)+","+(this._y1=S):j>ms&&(this._+="A"+i+","+i+",0,"+ +(j>=aa)+","+B+","+(this._x1=t+i*Math.cos(d))+","+(this._y1=e+i*Math.sin(d))))},rect:function(t,e,i,u){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +u+"h"+-i+"Z"},toString:function(){return this._}};const an=B0;function xr(t){return function(){return t}}var Si=Math.abs,Xi=Math.atan2,Oc=Math.cos,Ca=Math.max,R0=Math.min,kr=Math.sin,Zs=Math.sqrt,Ma=1e-12,Pl=Math.PI,Yl=Pl/2,xf=2*Pl;function jo(t){return t>1?0:t<-1?Pl:Math.acos(t)}function e2(t){return t>=1?Yl:t<=-1?-Yl:Math.asin(t)}function S_(t){return t.innerRadius}function n2(t){return t.outerRadius}function r2(t){return t.startAngle}function i2(t){return t.endAngle}function I0(t){return t&&t.padAngle}function F0(t,e,i,u,d,g,v,w){var C=i-t,S=u-e,B=v-d,j=w-g,P=j*C-B*S;if(!(P*P<Ma))return[t+(P=(B*(e-g)-j*(t-d))/P)*C,e+P*S]}function ao(t,e,i,u,d,g,v){var w=t-i,C=e-u,S=(v?g:-g)/Zs(w*w+C*C),B=S*C,j=-S*w,P=t+B,U=e+j,ot=i+B,vt=u+j,bt=(P+ot)/2,kt=(U+vt)/2,_t=ot-P,lt=vt-U,$t=_t*_t+lt*lt,Lt=d-g,gt=P*vt-ot*U,Bt=(lt<0?-1:1)*Zs(Ca(0,Lt*Lt*$t-gt*gt)),ne=(gt*lt-_t*Bt)/$t,At=(-gt*_t-lt*Bt)/$t,Tt=(gt*lt+_t*Bt)/$t,jt=(-gt*_t+lt*Bt)/$t,Dt=ne-bt,te=At-kt,yt=Tt-bt,ue=jt-kt;return Dt*Dt+te*te>yt*yt+ue*ue&&(ne=Tt,At=jt),{cx:ne,cy:At,x01:-B,y01:-j,x11:ne*(d/Lt-1),y11:At*(d/Lt-1)}}function a2(){var t=S_,e=n2,i=xr(0),u=null,d=r2,g=i2,v=I0,w=null;function C(){var S,B,j=+t.apply(this,arguments),P=+e.apply(this,arguments),U=d.apply(this,arguments)-Yl,ot=g.apply(this,arguments)-Yl,vt=Si(ot-U),bt=ot>U;if(w||(w=S=an()),P<j&&(B=P,P=j,j=B),P>Ma)if(vt>xf-Ma)w.moveTo(P*Oc(U),P*kr(U)),w.arc(0,0,P,U,ot,!bt),j>Ma&&(w.moveTo(j*Oc(ot),j*kr(ot)),w.arc(0,0,j,ot,U,bt));else{var kt,_t,lt=U,$t=ot,Lt=U,gt=ot,Bt=vt,ne=vt,At=v.apply(this,arguments)/2,Tt=At>Ma&&(u?+u.apply(this,arguments):Zs(j*j+P*P)),jt=R0(Si(P-j)/2,+i.apply(this,arguments)),Dt=jt,te=jt;if(Tt>Ma){var yt=e2(Tt/j*kr(At)),ue=e2(Tt/P*kr(At));(Bt-=2*yt)>Ma?(Lt+=yt*=bt?1:-1,gt-=yt):(Bt=0,Lt=gt=(U+ot)/2),(ne-=2*ue)>Ma?(lt+=ue*=bt?1:-1,$t-=ue):(ne=0,lt=$t=(U+ot)/2)}var ve=P*Oc(lt),me=P*kr(lt),De=j*Oc(gt),He=j*kr(gt);if(jt>Ma){var ze,fn=P*Oc($t),Oe=P*kr($t),Pn=j*Oc(Lt),Sn=j*kr(Lt);if(vt<Pl&&(ze=F0(ve,me,Pn,Sn,fn,Oe,De,He))){var dn=ve-ze[0],mn=me-ze[1],on=fn-ze[0],Qr=Oe-ze[1],bn=1/kr(jo((dn*on+mn*Qr)/(Zs(dn*dn+mn*mn)*Zs(on*on+Qr*Qr)))/2),ar=Zs(ze[0]*ze[0]+ze[1]*ze[1]);Dt=R0(jt,(j-ar)/(bn-1)),te=R0(jt,(P-ar)/(bn+1))}}ne>Ma?te>Ma?(kt=ao(Pn,Sn,ve,me,P,te,bt),_t=ao(fn,Oe,De,He,P,te,bt),w.moveTo(kt.cx+kt.x01,kt.cy+kt.y01),te<jt?w.arc(kt.cx,kt.cy,te,Xi(kt.y01,kt.x01),Xi(_t.y01,_t.x01),!bt):(w.arc(kt.cx,kt.cy,te,Xi(kt.y01,kt.x01),Xi(kt.y11,kt.x11),!bt),w.arc(0,0,P,Xi(kt.cy+kt.y11,kt.cx+kt.x11),Xi(_t.cy+_t.y11,_t.cx+_t.x11),!bt),w.arc(_t.cx,_t.cy,te,Xi(_t.y11,_t.x11),Xi(_t.y01,_t.x01),!bt))):(w.moveTo(ve,me),w.arc(0,0,P,lt,$t,!bt)):w.moveTo(ve,me),j>Ma&&Bt>Ma?Dt>Ma?(kt=ao(De,He,fn,Oe,j,-Dt,bt),_t=ao(ve,me,Pn,Sn,j,-Dt,bt),w.lineTo(kt.cx+kt.x01,kt.cy+kt.y01),Dt<jt?w.arc(kt.cx,kt.cy,Dt,Xi(kt.y01,kt.x01),Xi(_t.y01,_t.x01),!bt):(w.arc(kt.cx,kt.cy,Dt,Xi(kt.y01,kt.x01),Xi(kt.y11,kt.x11),!bt),w.arc(0,0,j,Xi(kt.cy+kt.y11,kt.cx+kt.x11),Xi(_t.cy+_t.y11,_t.cx+_t.x11),bt),w.arc(_t.cx,_t.cy,Dt,Xi(_t.y11,_t.x11),Xi(_t.y01,_t.x01),!bt))):w.arc(0,0,j,gt,Lt,bt):w.lineTo(De,He)}else w.moveTo(0,0);if(w.closePath(),S)return w=null,S+""||null}return C.centroid=function(){var S=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,B=(+d.apply(this,arguments)+ +g.apply(this,arguments))/2-Pl/2;return[Oc(B)*S,kr(B)*S]},C.innerRadius=function(S){return arguments.length?(t=typeof S=="function"?S:xr(+S),C):t},C.outerRadius=function(S){return arguments.length?(e=typeof S=="function"?S:xr(+S),C):e},C.cornerRadius=function(S){return arguments.length?(i=typeof S=="function"?S:xr(+S),C):i},C.padRadius=function(S){return arguments.length?(u=S==null?null:typeof S=="function"?S:xr(+S),C):u},C.startAngle=function(S){return arguments.length?(d=typeof S=="function"?S:xr(+S),C):d},C.endAngle=function(S){return arguments.length?(g=typeof S=="function"?S:xr(+S),C):g},C.padAngle=function(S){return arguments.length?(v=typeof S=="function"?S:xr(+S),C):v},C.context=function(S){return arguments.length?(w=S==null?null:S,C):w},C}function C_(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function M_(t){this._context=t}function wo(t){return new M_(t)}function Bw(t){return t[0]}function P0(t){return t[1]}function xo(t,e){var i=xr(!0),u=null,d=wo,g=null;function v(w){var C,S,B,j=(w=C_(w)).length,P=!1;for(u==null&&(g=d(B=an())),C=0;C<=j;++C)!(C<j&&i(S=w[C],C,w))===P&&((P=!P)?g.lineStart():g.lineEnd()),P&&g.point(+t(S,C,w),+e(S,C,w));if(B)return g=null,B+""||null}return t=typeof t=="function"?t:t===void 0?Bw:xr(t),e=typeof e=="function"?e:e===void 0?P0:xr(e),v.x=function(w){return arguments.length?(t=typeof w=="function"?w:xr(+w),v):t},v.y=function(w){return arguments.length?(e=typeof w=="function"?w:xr(+w),v):e},v.defined=function(w){return arguments.length?(i=typeof w=="function"?w:xr(!!w),v):i},v.curve=function(w){return arguments.length?(d=w,u!=null&&(g=d(u)),v):d},v.context=function(w){return arguments.length?(w==null?u=g=null:g=d(u=w),v):u},v}function Y0(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function jl(t){return t}function zl(){}function Su(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function kf(t){this._context=t}function jr(t){return new kf(t)}function Aa(t){this._context=t}function si(t){this._context=t}function Ua(t){this._context=t}function Lc(t){return t<0?-1:1}function o2(t,e,i){var u=t._x1-t._x0,d=e-t._x1,g=(t._y1-t._y0)/(u||d<0&&-0),v=(i-t._y1)/(d||u<0&&-0),w=(g*d+v*u)/(u+d);return(Lc(g)+Lc(v))*Math.min(Math.abs(g),Math.abs(v),.5*Math.abs(w))||0}function s2(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function Bc(t,e,i){var u=t._x0,d=t._y0,g=t._x1,v=t._y1,w=(g-u)/3;t._context.bezierCurveTo(u+w,d+w*e,g-w,v-w*i,g,v)}function zo(t){this._context=t}function vs(t){this._context=new Ul(t)}function Ul(t){this._context=t}function Tf(t){this._context=t}function Ef(t){var e,i,u=t.length-1,d=new Array(u),g=new Array(u),v=new Array(u);for(d[0]=0,g[0]=2,v[0]=t[0]+2*t[1],e=1;e<u-1;++e)d[e]=1,g[e]=4,v[e]=4*t[e]+2*t[e+1];for(d[u-1]=2,g[u-1]=7,v[u-1]=8*t[u-1]+t[u],e=1;e<u;++e)i=d[e]/g[e-1],g[e]-=i,v[e]-=i*v[e-1];for(d[u-1]=v[u-1]/g[u-1],e=u-2;e>=0;--e)d[e]=(v[e]-d[e+1])/g[e];for(g[u-1]=(t[u]+d[u-1])/2,e=0;e<u-1;++e)g[e]=2*t[e+1]-d[e+1];return[d,g]}function Cu(t,e){this._context=t,this._t=e}M_.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},kf.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:Su(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:Su(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Aa.prototype={areaStart:zl,areaEnd:zl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Su(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},si.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,u=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,u):this._context.moveTo(i,u);break;case 3:this._point=4;default:Su(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ua.prototype={areaStart:zl,areaEnd:zl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},zo.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:Bc(this,this._t0,s2(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Bc(this,s2(this,i=o2(this,t,e)),i);break;default:Bc(this,this._t0,i=o2(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}},(vs.prototype=Object.create(zo.prototype)).point=function(t,e){zo.prototype.point.call(this,e,t)},Ul.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,u,d,g){this._context.bezierCurveTo(e,t,u,i,g,d)}},Tf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var u=Ef(t),d=Ef(e),g=0,v=1;v<i;++g,++v)this._context.bezierCurveTo(u[0][g],d[0][g],u[1][g],d[1][g],t[v],e[v]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Cu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};var Hl=new Date,$l=new Date;function ko(t,e,i,u){function d(g){return t(g=arguments.length===0?new Date:new Date(+g)),g}return d.floor=function(g){return t(g=new Date(+g)),g},d.ceil=function(g){return t(g=new Date(g-1)),e(g,1),t(g),g},d.round=function(g){var v=d(g),w=d.ceil(g);return g-v<w-g?v:w},d.offset=function(g,v){return e(g=new Date(+g),v==null?1:Math.floor(v)),g},d.range=function(g,v,w){var C,S=[];if(g=d.ceil(g),w=w==null?1:Math.floor(w),!(g<v&&w>0))return S;do S.push(C=new Date(+g)),e(g,w),t(g);while(C<g&&g<v);return S},d.filter=function(g){return ko(function(v){if(v>=v)for(;t(v),!g(v);)v.setTime(v-1)},function(v,w){if(v>=v)if(w<0)for(;++w<=0;)for(;e(v,-1),!g(v););else for(;--w>=0;)for(;e(v,1),!g(v););})},i&&(d.count=function(g,v){return Hl.setTime(+g),$l.setTime(+v),t(Hl),t($l),Math.floor(i(Hl,$l))},d.every=function(g){return g=Math.floor(g),isFinite(g)&&g>0?g>1?d.filter(u?function(v){return u(v)%g==0}:function(v){return d.count(0,v)%g==0}):d:null}),d}const Sf=864e5,j0=6048e5;function Xs(t){return ko(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCDate(e.getUTCDate()+7*i)},function(e,i){return(i-e)/j0})}var c2=Xs(0),z0=Xs(1);Xs(2),Xs(3);var Wl=Xs(4);Xs(5),Xs(6);var Da=ko(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Sf},function(t){return t.getUTCDate()-1});const pa=Da;function Ci(t){return ko(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,i){e.setDate(e.getDate()+7*i)},function(e,i){return(i-e-6e4*(i.getTimezoneOffset()-e.getTimezoneOffset()))/j0})}var Cf=Ci(0),Uo=Ci(1);Ci(2),Ci(3);var Mu=Ci(4);Ci(5),Ci(6);var A_=ko(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/Sf,t=>t.getDate()-1);const u2=A_;var l2=ko(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});l2.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ko(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,i){e.setFullYear(e.getFullYear()+i*t)}):null};const ql=l2;var D_=ko(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});D_.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ko(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCFullYear(e.getUTCFullYear()+i*t)}):null};const Mf=D_;function Na(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function h2(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Vl(t,e,i){return{y:t,m:e,d:i,H:0,M:0,S:0,L:0}}var Af,oo,U0={"-":"",_:" ",0:"0"},mi=/^\s*\d+/,N_=/^%/,Rw=/[\\^$*+?|[\]().{}]/g;function Tr(t,e,i){var u=t<0?"-":"",d=(u?-t:t)+"",g=d.length;return u+(g<i?new Array(i-g+1).join(e)+d:d)}function O_(t){return t.replace(Rw,"\\$&")}function Df(t){return new RegExp("^(?:"+t.map(O_).join("|")+")","i")}function Nf(t){return new Map(t.map((e,i)=>[e.toLowerCase(),i]))}function Iw(t,e,i){var u=mi.exec(e.slice(i,i+1));return u?(t.w=+u[0],i+u[0].length):-1}function L_(t,e,i){var u=mi.exec(e.slice(i,i+1));return u?(t.u=+u[0],i+u[0].length):-1}function Fw(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.U=+u[0],i+u[0].length):-1}function Gl(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.V=+u[0],i+u[0].length):-1}function f2(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.W=+u[0],i+u[0].length):-1}function H0(t,e,i){var u=mi.exec(e.slice(i,i+4));return u?(t.y=+u[0],i+u[0].length):-1}function $0(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.y=+u[0]+(+u[0]>68?1900:2e3),i+u[0].length):-1}function B_(t,e,i){var u=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(i,i+6));return u?(t.Z=u[1]?0:-(u[2]+(u[3]||"00")),i+u[0].length):-1}function R_(t,e,i){var u=mi.exec(e.slice(i,i+1));return u?(t.q=3*u[0]-3,i+u[0].length):-1}function I_(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.m=u[0]-1,i+u[0].length):-1}function d2(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.d=+u[0],i+u[0].length):-1}function F_(t,e,i){var u=mi.exec(e.slice(i,i+3));return u?(t.m=0,t.d=+u[0],i+u[0].length):-1}function p2(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.H=+u[0],i+u[0].length):-1}function Pw(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.M=+u[0],i+u[0].length):-1}function P_(t,e,i){var u=mi.exec(e.slice(i,i+2));return u?(t.S=+u[0],i+u[0].length):-1}function W0(t,e,i){var u=mi.exec(e.slice(i,i+3));return u?(t.L=+u[0],i+u[0].length):-1}function q0(t,e,i){var u=mi.exec(e.slice(i,i+6));return u?(t.L=Math.floor(u[0]/1e3),i+u[0].length):-1}function Y_(t,e,i){var u=N_.exec(e.slice(i,i+1));return u?i+u[0].length:-1}function j_(t,e,i){var u=mi.exec(e.slice(i));return u?(t.Q=+u[0],i+u[0].length):-1}function g2(t,e,i){var u=mi.exec(e.slice(i));return u?(t.s=+u[0],i+u[0].length):-1}function V0(t,e){return Tr(t.getDate(),e,2)}function z_(t,e){return Tr(t.getHours(),e,2)}function U_(t,e){return Tr(t.getHours()%12||12,e,2)}function Yw(t,e){return Tr(1+u2.count(ql(t),t),e,3)}function H_(t,e){return Tr(t.getMilliseconds(),e,3)}function y2(t,e){return H_(t,e)+"000"}function $_(t,e){return Tr(t.getMonth()+1,e,2)}function Of(t,e){return Tr(t.getMinutes(),e,2)}function G0(t,e){return Tr(t.getSeconds(),e,2)}function Z0(t){var e=t.getDay();return e===0?7:e}function jw(t,e){return Tr(Cf.count(ql(t)-1,t),e,2)}function X0(t){var e=t.getDay();return e>=4||e===0?Mu(t):Mu.ceil(t)}function K0(t,e){return t=X0(t),Tr(Mu.count(ql(t),t)+(ql(t).getDay()===4),e,2)}function Q0(t){return t.getDay()}function m2(t,e){return Tr(Uo.count(ql(t)-1,t),e,2)}function Zl(t,e){return Tr(t.getFullYear()%100,e,2)}function zw(t,e){return Tr((t=X0(t)).getFullYear()%100,e,2)}function Uw(t,e){return Tr(t.getFullYear()%1e4,e,4)}function Hw(t,e){var i=t.getDay();return Tr((t=i>=4||i===0?Mu(t):Mu.ceil(t)).getFullYear()%1e4,e,4)}function W_(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Tr(e/60|0,"0",2)+Tr(e%60,"0",2)}function J0(t,e){return Tr(t.getUTCDate(),e,2)}function $w(t,e){return Tr(t.getUTCHours(),e,2)}function t1(t,e){return Tr(t.getUTCHours()%12||12,e,2)}function q_(t,e){return Tr(1+pa.count(Mf(t),t),e,3)}function v2(t,e){return Tr(t.getUTCMilliseconds(),e,3)}function e1(t,e){return v2(t,e)+"000"}function V_(t,e){return Tr(t.getUTCMonth()+1,e,2)}function G_(t,e){return Tr(t.getUTCMinutes(),e,2)}function Z_(t,e){return Tr(t.getUTCSeconds(),e,2)}function Ww(t){var e=t.getUTCDay();return e===0?7:e}function X_(t,e){return Tr(c2.count(Mf(t)-1,t),e,2)}function K_(t){var e=t.getUTCDay();return e>=4||e===0?Wl(t):Wl.ceil(t)}function Q_(t,e){return t=K_(t),Tr(Wl.count(Mf(t),t)+(Mf(t).getUTCDay()===4),e,2)}function J_(t){return t.getUTCDay()}function tb(t,e){return Tr(z0.count(Mf(t)-1,t),e,2)}function qw(t,e){return Tr(t.getUTCFullYear()%100,e,2)}function Vw(t,e){return Tr((t=K_(t)).getUTCFullYear()%100,e,2)}function Lf(t,e){return Tr(t.getUTCFullYear()%1e4,e,4)}function eb(t,e){var i=t.getUTCDay();return Tr((t=i>=4||i===0?Wl(t):Wl.ceil(t)).getUTCFullYear()%1e4,e,4)}function nb(){return"+0000"}function n1(){return"%"}function r1(t){return+t}function i1(t){return Math.floor(+t/1e3)}Af=function(t){var e=t.dateTime,i=t.date,u=t.time,d=t.periods,g=t.days,v=t.shortDays,w=t.months,C=t.shortMonths,S=Df(d),B=Nf(d),j=Df(g),P=Nf(g),U=Df(v),ot=Nf(v),vt=Df(w),bt=Nf(w),kt=Df(C),_t=Nf(C),lt={a:function(At){return v[At.getDay()]},A:function(At){return g[At.getDay()]},b:function(At){return C[At.getMonth()]},B:function(At){return w[At.getMonth()]},c:null,d:V0,e:V0,f:y2,g:zw,G:Hw,H:z_,I:U_,j:Yw,L:H_,m:$_,M:Of,p:function(At){return d[+(At.getHours()>=12)]},q:function(At){return 1+~~(At.getMonth()/3)},Q:r1,s:i1,S:G0,u:Z0,U:jw,V:K0,w:Q0,W:m2,x:null,X:null,y:Zl,Y:Uw,Z:W_,"%":n1},$t={a:function(At){return v[At.getUTCDay()]},A:function(At){return g[At.getUTCDay()]},b:function(At){return C[At.getUTCMonth()]},B:function(At){return w[At.getUTCMonth()]},c:null,d:J0,e:J0,f:e1,g:Vw,G:eb,H:$w,I:t1,j:q_,L:v2,m:V_,M:G_,p:function(At){return d[+(At.getUTCHours()>=12)]},q:function(At){return 1+~~(At.getUTCMonth()/3)},Q:r1,s:i1,S:Z_,u:Ww,U:X_,V:Q_,w:J_,W:tb,x:null,X:null,y:qw,Y:Lf,Z:nb,"%":n1},Lt={a:function(At,Tt,jt){var Dt=U.exec(Tt.slice(jt));return Dt?(At.w=ot.get(Dt[0].toLowerCase()),jt+Dt[0].length):-1},A:function(At,Tt,jt){var Dt=j.exec(Tt.slice(jt));return Dt?(At.w=P.get(Dt[0].toLowerCase()),jt+Dt[0].length):-1},b:function(At,Tt,jt){var Dt=kt.exec(Tt.slice(jt));return Dt?(At.m=_t.get(Dt[0].toLowerCase()),jt+Dt[0].length):-1},B:function(At,Tt,jt){var Dt=vt.exec(Tt.slice(jt));return Dt?(At.m=bt.get(Dt[0].toLowerCase()),jt+Dt[0].length):-1},c:function(At,Tt,jt){return ne(At,e,Tt,jt)},d:d2,e:d2,f:q0,g:$0,G:H0,H:p2,I:p2,j:F_,L:W0,m:I_,M:Pw,p:function(At,Tt,jt){var Dt=S.exec(Tt.slice(jt));return Dt?(At.p=B.get(Dt[0].toLowerCase()),jt+Dt[0].length):-1},q:R_,Q:j_,s:g2,S:P_,u:L_,U:Fw,V:Gl,w:Iw,W:f2,x:function(At,Tt,jt){return ne(At,i,Tt,jt)},X:function(At,Tt,jt){return ne(At,u,Tt,jt)},y:$0,Y:H0,Z:B_,"%":Y_};function gt(At,Tt){return function(jt){var Dt,te,yt,ue=[],ve=-1,me=0,De=At.length;for(jt instanceof Date||(jt=new Date(+jt));++ve<De;)At.charCodeAt(ve)===37&&(ue.push(At.slice(me,ve)),(te=U0[Dt=At.charAt(++ve)])!=null?Dt=At.charAt(++ve):te=Dt==="e"?" ":"0",(yt=Tt[Dt])&&(Dt=yt(jt,te)),ue.push(Dt),me=ve+1);return ue.push(At.slice(me,ve)),ue.join("")}}function Bt(At,Tt){return function(jt){var Dt,te,yt=Vl(1900,void 0,1);if(ne(yt,At,jt+="",0)!=jt.length)return null;if("Q"in yt)return new Date(yt.Q);if("s"in yt)return new Date(1e3*yt.s+("L"in yt?yt.L:0));if(Tt&&!("Z"in yt)&&(yt.Z=0),"p"in yt&&(yt.H=yt.H%12+12*yt.p),yt.m===void 0&&(yt.m="q"in yt?yt.q:0),"V"in yt){if(yt.V<1||yt.V>53)return null;"w"in yt||(yt.w=1),"Z"in yt?(te=(Dt=h2(Vl(yt.y,0,1))).getUTCDay(),Dt=te>4||te===0?z0.ceil(Dt):z0(Dt),Dt=pa.offset(Dt,7*(yt.V-1)),yt.y=Dt.getUTCFullYear(),yt.m=Dt.getUTCMonth(),yt.d=Dt.getUTCDate()+(yt.w+6)%7):(te=(Dt=Na(Vl(yt.y,0,1))).getDay(),Dt=te>4||te===0?Uo.ceil(Dt):Uo(Dt),Dt=u2.offset(Dt,7*(yt.V-1)),yt.y=Dt.getFullYear(),yt.m=Dt.getMonth(),yt.d=Dt.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),te="Z"in yt?h2(Vl(yt.y,0,1)).getUTCDay():Na(Vl(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(te+5)%7:yt.w+7*yt.U-(te+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,h2(yt)):Na(yt)}}function ne(At,Tt,jt,Dt){for(var te,yt,ue=0,ve=Tt.length,me=jt.length;ue<ve;){if(Dt>=me)return-1;if((te=Tt.charCodeAt(ue++))===37){if(te=Tt.charAt(ue++),!(yt=Lt[te in U0?Tt.charAt(ue++):te])||(Dt=yt(At,jt,Dt))<0)return-1}else if(te!=jt.charCodeAt(Dt++))return-1}return Dt}return lt.x=gt(i,lt),lt.X=gt(u,lt),lt.c=gt(e,lt),$t.x=gt(i,$t),$t.X=gt(u,$t),$t.c=gt(e,$t),{format:function(At){var Tt=gt(At+="",lt);return Tt.toString=function(){return At},Tt},parse:function(At){var Tt=Bt(At+="",!1);return Tt.toString=function(){return At},Tt},utcFormat:function(At){var Tt=gt(At+="",$t);return Tt.toString=function(){return At},Tt},utcParse:function(At){var Tt=Bt(At+="",!0);return Tt.toString=function(){return At},Tt}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),oo=Af.format,Af.parse,Af.utcFormat,Af.utcParse;var _2={value:()=>{}};function Ks(){for(var t,e=0,i=arguments.length,u={};e<i;++e){if(!(t=arguments[e]+"")||t in u||/[\s.]/.test(t))throw new Error("illegal type: "+t);u[t]=[]}return new a1(u)}function a1(t){this._=t}function Gw(t,e){return t.trim().split(/^|\s+/).map(function(i){var u="",d=i.indexOf(".");if(d>=0&&(u=i.slice(d+1),i=i.slice(0,d)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:u}})}function rb(t,e){for(var i,u=0,d=t.length;u<d;++u)if((i=t[u]).name===e)return i.value}function ib(t,e,i){for(var u=0,d=t.length;u<d;++u)if(t[u].name===e){t[u]=_2,t=t.slice(0,u).concat(t.slice(u+1));break}return i!=null&&t.push({name:e,value:i}),t}a1.prototype=Ks.prototype={constructor:a1,on:function(t,e){var i,u=this._,d=Gw(t+"",u),g=-1,v=d.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++g<v;)if(i=(t=d[g]).type)u[i]=ib(u[i],t.name,e);else if(e==null)for(i in u)u[i]=ib(u[i],t.name,null);return this}for(;++g<v;)if((i=(t=d[g]).type)&&(i=rb(u[i],t.name)))return i},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new a1(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,u,d=new Array(i),g=0;g<i;++g)d[g]=arguments[g+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(g=0,i=(u=this._[t]).length;g<i;++g)u[g].value.apply(e,d)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var u=this._[t],d=0,g=u.length;d<g;++d)u[d].value.apply(e,i)}};const ab=Ks;var Qs,Rc,_s=0,Ic=0,Bf=0,Au=0,Fc=0,Rf=0,Ha=typeof performance=="object"&&performance.now?performance:Date,Ho=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function If(){return Fc||(Ho(b2),Fc=Ha.now()+Rf)}function b2(){Fc=0}function Pc(){this._call=this._time=this._next=null}function Ff(t,e,i){var u=new Pc;return u.restart(t,e,i),u}function Pf(){Fc=(Au=Ha.now())+Rf,_s=Ic=0;try{(function(){If(),++_s;for(var t,e=Qs;e;)(t=Fc-e._time)>=0&&e._call.call(void 0,t),e=e._next;--_s})()}finally{_s=0,function(){for(var t,e,i=Qs,u=1/0;i;)i._call?(u>i._time&&(u=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:Qs=e);Rc=t,Yf(u)}(),Fc=0}}function Xl(){var t=Ha.now(),e=t-Au;e>1e3&&(Rf-=e,Au=t)}function Yf(t){_s||(Ic&&(Ic=clearTimeout(Ic)),t-Fc>24?(t<1/0&&(Ic=setTimeout(Pf,t-Ha.now()-Rf)),Bf&&(Bf=clearInterval(Bf))):(Bf||(Au=Ha.now(),Bf=setInterval(Xl,1e3)),_s=1,Ho(Pf)))}function o1(t,e,i){var u=new Pc;return e=e==null?0:+e,u.restart(d=>{u.stop(),t(d+e)},e,i),u}Pc.prototype=Ff.prototype={constructor:Pc,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?If():+i)+(e==null?0:+e),this._next||Rc===this||(Rc?Rc._next=this:Qs=this,Rc=this),this._call=t,this._time=i,Yf()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yf())}};var jf=ab("start","end","cancel","interrupt"),$o=[];function bs(t,e,i,u,d,g){var v=t.__transition;if(v){if(i in v)return}else t.__transition={};(function(w,C,S){var B,j=w.__transition;function P(vt){var bt,kt,_t,lt;if(S.state!==1)return ot();for(bt in j)if((lt=j[bt]).name===S.name){if(lt.state===3)return o1(P);lt.state===4?(lt.state=6,lt.timer.stop(),lt.on.call("interrupt",w,w.__data__,lt.index,lt.group),delete j[bt]):+bt<C&&(lt.state=6,lt.timer.stop(),lt.on.call("cancel",w,w.__data__,lt.index,lt.group),delete j[bt])}if(o1(function(){S.state===3&&(S.state=4,S.timer.restart(U,S.delay,S.time),U(vt))}),S.state=2,S.on.call("start",w,w.__data__,S.index,S.group),S.state===2){for(S.state=3,B=new Array(_t=S.tween.length),bt=0,kt=-1;bt<_t;++bt)(lt=S.tween[bt].value.call(w,w.__data__,S.index,S.group))&&(B[++kt]=lt);B.length=kt+1}}function U(vt){for(var bt=vt<S.duration?S.ease.call(null,vt/S.duration):(S.timer.restart(ot),S.state=5,1),kt=-1,_t=B.length;++kt<_t;)B[kt].call(w,bt);S.state===5&&(S.on.call("end",w,w.__data__,S.index,S.group),ot())}function ot(){for(var vt in S.state=6,S.timer.stop(),delete j[C],j)return;delete w.__transition}j[C]=S,S.timer=Ff(function(vt){S.state=1,S.timer.restart(P,S.delay,S.time),S.delay<=vt&&P(vt-S.delay)},0,S.time)})(t,i,{name:e,index:u,group:d,on:jf,tween:$o,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:0})}function s1(t,e){var i=Wo(t,e);if(i.state>0)throw new Error("too late; already scheduled");return i}function ws(t,e){var i=Wo(t,e);if(i.state>3)throw new Error("too late; already running");return i}function Wo(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Js(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var c1,ob=180/Math.PI,w2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function x2(t,e,i,u,d,g){var v,w,C;return(v=Math.sqrt(t*t+e*e))&&(t/=v,e/=v),(C=t*i+e*u)&&(i-=t*C,u-=e*C),(w=Math.sqrt(i*i+u*u))&&(i/=w,u/=w,C/=w),t*u<e*i&&(t=-t,e=-e,C=-C,v=-v),{translateX:d,translateY:g,rotate:Math.atan2(e,t)*ob,skewX:Math.atan(C)*ob,scaleX:v,scaleY:w}}function k2(t,e,i,u){function d(g){return g.length?g.pop()+" ":""}return function(g,v){var w=[],C=[];return g=t(g),v=t(v),function(S,B,j,P,U,ot){if(S!==j||B!==P){var vt=U.push("translate(",null,e,null,i);ot.push({i:vt-4,x:Js(S,j)},{i:vt-2,x:Js(B,P)})}else(j||P)&&U.push("translate("+j+e+P+i)}(g.translateX,g.translateY,v.translateX,v.translateY,w,C),function(S,B,j,P){S!==B?(S-B>180?B+=360:B-S>180&&(S+=360),P.push({i:j.push(d(j)+"rotate(",null,u)-2,x:Js(S,B)})):B&&j.push(d(j)+"rotate("+B+u)}(g.rotate,v.rotate,w,C),function(S,B,j,P){S!==B?P.push({i:j.push(d(j)+"skewX(",null,u)-2,x:Js(S,B)}):B&&j.push(d(j)+"skewX("+B+u)}(g.skewX,v.skewX,w,C),function(S,B,j,P,U,ot){if(S!==j||B!==P){var vt=U.push(d(U)+"scale(",null,",",null,")");ot.push({i:vt-4,x:Js(S,j)},{i:vt-2,x:Js(B,P)})}else j===1&&P===1||U.push(d(U)+"scale("+j+","+P+")")}(g.scaleX,g.scaleY,v.scaleX,v.scaleY,w,C),g=v=null,function(S){for(var B,j=-1,P=C.length;++j<P;)w[(B=C[j]).i]=B.x(S);return w.join("")}}}var sb=k2(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?w2:x2(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),T2=k2(function(t){return t==null?w2:(c1||(c1=document.createElementNS("http://www.w3.org/2000/svg","g")),c1.setAttribute("transform",t),(t=c1.transform.baseVal.consolidate())?x2((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):w2)},", ",")",")");function cb(t,e){var i,u;return function(){var d=ws(this,t),g=d.tween;if(g!==i){for(var v=0,w=(u=i=g).length;v<w;++v)if(u[v].name===e){(u=u.slice()).splice(v,1);break}}d.tween=u}}function ub(t,e,i){var u,d;if(typeof i!="function")throw new Error;return function(){var g=ws(this,t),v=g.tween;if(v!==u){d=(u=v).slice();for(var w={name:e,value:i},C=0,S=d.length;C<S;++C)if(d[C].name===e){d[C]=w;break}C===S&&d.push(w)}g.tween=d}}function Du(t,e,i){var u=t._id;return t.each(function(){var d=ws(this,u);(d.value||(d.value={}))[e]=i.apply(this,arguments)}),function(d){return Wo(d,u).value[e]}}const Kl=function t(e){var i=function(d){return(d=+d)==1?rf:function(g,v){return v-g?function(w,C,S){return w=Math.pow(w,S),C=Math.pow(C,S)-w,S=1/S,function(B){return Math.pow(w+B*C,S)}}(g,v,d):ug(isNaN(g)?v:g)}}(e);function u(d,g){var v=i((d=Br(d)).r,(g=Br(g)).r),w=i(d.g,g.g),C=i(d.b,g.b),S=rf(d.opacity,g.opacity);return function(B){return d.r=v(B),d.g=w(B),d.b=C(B),d.opacity=S(B),d+""}}return u.gamma=t,u}(1);var zf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ql=new RegExp(zf.source,"g");function Zw(t,e){var i,u,d,g=zf.lastIndex=Ql.lastIndex=0,v=-1,w=[],C=[];for(t+="",e+="";(i=zf.exec(t))&&(u=Ql.exec(e));)(d=u.index)>g&&(d=e.slice(g,d),w[v]?w[v]+=d:w[++v]=d),(i=i[0])===(u=u[0])?w[v]?w[v]+=u:w[++v]=u:(w[++v]=null,C.push({i:v,x:Js(i,u)})),g=Ql.lastIndex;return g<e.length&&(d=e.slice(g),w[v]?w[v]+=d:w[++v]=d),w.length<2?C[0]?function(S){return function(B){return S(B)+""}}(C[0].x):function(S){return function(){return S}}(e):(e=C.length,function(S){for(var B,j=0;j<e;++j)w[(B=C[j]).i]=B.x(S);return w.join("")})}function E2(t,e){var i;return(typeof e=="number"?Js:e instanceof kn?Kl:(i=kn(e))?(e=i,Kl):Zw)(t,e)}function lb(t){return function(){this.removeAttribute(t)}}function hb(t){return function(){this.removeAttributeNS(t.space,t.local)}}function fb(t,e,i){var u,d,g=i+"";return function(){var v=this.getAttribute(t);return v===g?null:v===u?d:d=e(u=v,i)}}function Xw(t,e,i){var u,d,g=i+"";return function(){var v=this.getAttributeNS(t.space,t.local);return v===g?null:v===u?d:d=e(u=v,i)}}function Kw(t,e,i){var u,d,g;return function(){var v,w,C=i(this);if(C!=null)return(v=this.getAttribute(t))===(w=C+"")?null:v===u&&w===d?g:(d=w,g=e(u=v,C));this.removeAttribute(t)}}function Uf(t,e,i){var u,d,g;return function(){var v,w,C=i(this);if(C!=null)return(v=this.getAttributeNS(t.space,t.local))===(w=C+"")?null:v===u&&w===d?g:(d=w,g=e(u=v,C));this.removeAttributeNS(t.space,t.local)}}function S2(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function C2(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function u1(t,e){var i,u;function d(){var g=e.apply(this,arguments);return g!==u&&(i=(u=g)&&C2(t,g)),i}return d._value=e,d}function M2(t,e){var i,u;function d(){var g=e.apply(this,arguments);return g!==u&&(i=(u=g)&&S2(t,g)),i}return d._value=e,d}function A2(t,e){return function(){s1(this,t).delay=+e.apply(this,arguments)}}function D2(t,e){return e=+e,function(){s1(this,t).delay=e}}function Qw(t,e){return function(){ws(this,t).duration=+e.apply(this,arguments)}}function db(t,e){return e=+e,function(){ws(this,t).duration=e}}function Jw(t,e){if(typeof e!="function")throw new Error;return function(){ws(this,t).ease=e}}function tx(t,e,i){var u,d,g=function(v){return(v+"").trim().split(/^|\s+/).every(function(w){var C=w.indexOf(".");return C>=0&&(w=w.slice(0,C)),!w||w==="start"})}(e)?s1:ws;return function(){var v=g(this,t),w=v.on;w!==u&&(d=(u=w).copy()).on(e,i),v.on=d}}var pb=wn.prototype.constructor;function qo(t){return function(){this.style.removeProperty(t)}}function N2(t,e,i){return function(u){this.style.setProperty(t,e.call(this,u),i)}}function O2(t,e,i){var u,d;function g(){var v=e.apply(this,arguments);return v!==d&&(u=(d=v)&&N2(t,v,i)),u}return g._value=e,g}function gb(t){return function(e){this.textContent=t.call(this,e)}}function l1(t){var e,i;function u(){var d=t.apply(this,arguments);return d!==i&&(e=(i=d)&&gb(d)),e}return u._value=t,u}var yb=0;function tc(t,e,i,u){this._groups=t,this._parents=e,this._name=i,this._id=u}function L2(){return++yb}var so=wn.prototype;tc.prototype={constructor:tc,select:function(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Ll(t));for(var u=this._groups,d=u.length,g=new Array(d),v=0;v<d;++v)for(var w,C,S=u[v],B=S.length,j=g[v]=new Array(B),P=0;P<B;++P)(w=S[P])&&(C=t.call(w,w.__data__,P,S))&&("__data__"in w&&(C.__data__=w.__data__),j[P]=C,bs(j[P],e,i,P,j,Wo(w,i)));return new tc(g,this._parents,e,i)},selectAll:function(t){var e=this._name,i=this._id;typeof t!="function"&&(t=c_(t));for(var u=this._groups,d=u.length,g=[],v=[],w=0;w<d;++w)for(var C,S=u[w],B=S.length,j=0;j<B;++j)if(C=S[j]){for(var P,U=t.call(C,C.__data__,j,S),ot=Wo(C,i),vt=0,bt=U.length;vt<bt;++vt)(P=U[vt])&&bs(P,e,i,vt,U,ot);g.push(U),v.push(C)}return new tc(g,v,e,i)},selectChild:so.selectChild,selectChildren:so.selectChildren,filter:function(t){typeof t!="function"&&(t=u_(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v=e[d],w=v.length,C=u[d]=[],S=0;S<w;++S)(g=v[S])&&t.call(g,g.__data__,S,v)&&C.push(g);return new tc(u,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,u=e.length,d=i.length,g=Math.min(u,d),v=new Array(u),w=0;w<g;++w)for(var C,S=e[w],B=i[w],j=S.length,P=v[w]=new Array(j),U=0;U<j;++U)(C=S[U]||B[U])&&(P[U]=C);for(;w<u;++w)v[w]=e[w];return new tc(v,this._parents,this._name,this._id)},selection:function(){return new pb(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,i=L2(),u=this._groups,d=u.length,g=0;g<d;++g)for(var v,w=u[g],C=w.length,S=0;S<C;++S)if(v=w[S]){var B=Wo(v,e);bs(v,t,i,S,w,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new tc(u,this._parents,t,i)},call:so.call,nodes:so.nodes,node:so.node,size:so.size,empty:so.empty,each:so.each,on:function(t,e){var i=this._id;return arguments.length<2?Wo(this.node(),i).on.on(t):this.each(tx(i,t,e))},attr:function(t,e){var i=Bl(t),u=i==="transform"?T2:E2;return this.attrTween(t,typeof e=="function"?(i.local?Uf:Kw)(i,u,Du(this,"attr."+t,e)):e==null?(i.local?hb:lb)(i):(i.local?Xw:fb)(i,u,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var u=Bl(t);return this.tween(i,(u.local?u1:M2)(u,e))},style:function(t,e,i){var u=(t+="")=="transform"?sb:E2;return e==null?this.styleTween(t,function(d,g){var v,w,C;return function(){var S=Rl(this,d),B=(this.style.removeProperty(d),Rl(this,d));return S===B?null:S===v&&B===w?C:C=g(v=S,w=B)}}(t,u)).on("end.style."+t,qo(t)):typeof e=="function"?this.styleTween(t,function(d,g,v){var w,C,S;return function(){var B=Rl(this,d),j=v(this),P=j+"";return j==null&&(this.style.removeProperty(d),P=j=Rl(this,d)),B===P?null:B===w&&P===C?S:(C=P,S=g(w=B,j))}}(t,u,Du(this,"style."+t,e))).each(function(d,g){var v,w,C,S,B="style."+g,j="end."+B;return function(){var P=ws(this,d),U=P.on,ot=P.value[B]==null?S||(S=qo(g)):void 0;U===v&&C===ot||(w=(v=U).copy()).on(j,C=ot),P.on=w}}(this._id,t)):this.styleTween(t,function(d,g,v){var w,C,S=v+"";return function(){var B=Rl(this,d);return B===S?null:B===w?C:C=g(w=B,v)}}(t,u,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var u="style."+(t+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(e==null)return this.tween(u,null);if(typeof e!="function")throw new Error;return this.tween(u,O2(t,e,i==null?"":i))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var i=e(this);this.textContent=i==null?"":i}}(Du(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,l1(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var u,d=Wo(this.node(),i).tween,g=0,v=d.length;g<v;++g)if((u=d[g]).name===t)return u.value;return null}return this.each((e==null?cb:ub)(i,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?A2:D2)(e,t)):Wo(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Qw:db)(e,t)):Wo(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Jw(e,t)):Wo(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,i){return function(){var u=i.apply(this,arguments);if(typeof u!="function")throw new Error;ws(this,e).ease=u}}(this._id,t))},end:function(){var t,e,i=this,u=i._id,d=i.size();return new Promise(function(g,v){var w={value:v},C={value:function(){--d==0&&g()}};i.each(function(){var S=ws(this,u),B=S.on;B!==t&&((e=(t=B).copy())._.cancel.push(w),e._.interrupt.push(w),e._.end.push(C)),S.on=e}),d===0&&g()})},[Symbol.iterator]:so[Symbol.iterator]};var B2={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function ex(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function R2(){}function I2(t){return t==null?R2:function(){return this.querySelector(t)}}function Hf(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function nx(){return[]}function F2(t){return t==null?nx:function(){return this.querySelectorAll(t)}}function $f(t){return function(){return this.matches(t)}}function P2(t){return function(e){return e.matches(t)}}wn.prototype.interrupt=function(t){return this.each(function(){(function(e,i){var u,d,g,v=e.__transition,w=!0;if(v){for(g in i=i==null?null:i+"",v)(u=v[g]).name===i?(d=u.state>2&&u.state<5,u.state=6,u.timer.stop(),u.on.call(d?"interrupt":"cancel",e,e.__data__,u.index,u.group),delete v[g]):w=!1;w&&delete e.__transition}})(this,t)})},wn.prototype.transition=function(t){var e,i;t instanceof tc?(e=t._id,t=t._name):(e=L2(),(i=B2).time=If(),t=t==null?null:t+"");for(var u=this._groups,d=u.length,g=0;g<d;++g)for(var v,w=u[g],C=w.length,S=0;S<C;++S)(v=w[S])&&bs(v,t,e,S,w,i||ex(v,e));return new tc(u,this._parents,t,e)};var rx=Array.prototype.find;function Wf(){return this.firstElementChild}var ix=Array.prototype.filter;function mb(){return Array.from(this.children)}function vb(t){return new Array(t.length)}function Yc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function qf(t){return function(){return t}}function Vf(t,e,i,u,d,g){for(var v,w=0,C=e.length,S=g.length;w<S;++w)(v=e[w])?(v.__data__=g[w],u[w]=v):i[w]=new Yc(t,g[w]);for(;w<C;++w)(v=e[w])&&(d[w]=v)}function Gf(t,e,i,u,d,g,v){var w,C,S,B=new Map,j=e.length,P=g.length,U=new Array(j);for(w=0;w<j;++w)(C=e[w])&&(U[w]=S=v.call(C,C.__data__,w,e)+"",B.has(S)?d[w]=C:B.set(S,C));for(w=0;w<P;++w)S=v.call(t,g[w],w,g)+"",(C=B.get(S))?(u[w]=C,C.__data__=g[w],B.delete(S)):i[w]=new Yc(t,g[w]);for(w=0;w<j;++w)(C=e[w])&&B.get(U[w])===C&&(d[w]=C)}function h1(t){return t.__data__}function Y2(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ax(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Yc.prototype={constructor:Yc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Zf="http://www.w3.org/1999/xhtml";const _b={svg:"http://www.w3.org/2000/svg",xhtml:Zf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function f1(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),_b.hasOwnProperty(e)?{space:_b[e],local:t}:t}function j2(t){return function(){this.removeAttribute(t)}}function ox(t){return function(){this.removeAttributeNS(t.space,t.local)}}function z2(t,e){return function(){this.setAttribute(t,e)}}function sx(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function U2(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function cx(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function d1(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ux(t){return function(){this.style.removeProperty(t)}}function lx(t,e,i){return function(){this.style.setProperty(t,e,i)}}function hx(t,e,i){return function(){var u=e.apply(this,arguments);u==null?this.style.removeProperty(t):this.style.setProperty(t,u,i)}}function Jl(t,e){return t.style.getPropertyValue(e)||d1(t).getComputedStyle(t,null).getPropertyValue(e)}function fx(t){return function(){delete this[t]}}function dx(t,e){return function(){this[t]=e}}function H2(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function bb(t){return t.trim().split(/^|\s+/)}function $2(t){return t.classList||new W2(t)}function W2(t){this._node=t,this._names=bb(t.getAttribute("class")||"")}function Nu(t,e){for(var i=$2(t),u=-1,d=e.length;++u<d;)i.add(e[u])}function wb(t,e){for(var i=$2(t),u=-1,d=e.length;++u<d;)i.remove(e[u])}function xb(t){return function(){Nu(this,t)}}function px(t){return function(){wb(this,t)}}function p1(t,e){return function(){(e.apply(this,arguments)?Nu:wb)(this,t)}}function kb(){this.textContent=""}function q2(t){return function(){this.textContent=t}}function gx(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Xf(){this.innerHTML=""}function Tb(t){return function(){this.innerHTML=t}}function Eb(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Sb(){this.nextSibling&&this.parentNode.appendChild(this)}function Cb(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function g1(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===Zf&&e.documentElement.namespaceURI===Zf?e.createElement(t):e.createElementNS(i,t)}}function Mb(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ab(t){var e=f1(t);return(e.local?Mb:g1)(e)}function yx(){return null}function y1(){var t=this.parentNode;t&&t.removeChild(this)}function Ou(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function th(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function mx(t){return t.trim().split(/^|\s+/).map(function(e){var i="",u=e.indexOf(".");return u>=0&&(i=e.slice(u+1),e=e.slice(0,u)),{type:e,name:i}})}function vx(t){return function(){var e=this.__on;if(e){for(var i,u=0,d=-1,g=e.length;u<g;++u)i=e[u],t.type&&i.type!==t.type||i.name!==t.name?e[++d]=i:this.removeEventListener(i.type,i.listener,i.options);++d?e.length=d:delete this.__on}}}function Db(t,e,i){return function(){var u,d=this.__on,g=function(C){return function(S){C.call(this,S,this.__data__)}}(e);if(d){for(var v=0,w=d.length;v<w;++v)if((u=d[v]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.options),this.addEventListener(u.type,u.listener=g,u.options=i),void(u.value=e)}this.addEventListener(t.type,g,i),u={type:t.type,name:t.name,value:e,listener:g,options:i},d?d.push(u):this.__on=[u]}}function m1(t,e,i){var u=d1(t),d=u.CustomEvent;typeof d=="function"?d=new d(e,i):(d=u.document.createEvent("Event"),i?(d.initEvent(e,i.bubbles,i.cancelable),d.detail=i.detail):d.initEvent(e,!1,!1)),t.dispatchEvent(d)}function Nb(t,e){return function(){return m1(this,t,e)}}function Ob(t,e){return function(){return m1(this,t,e.apply(this,arguments))}}W2.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Kf=[null];function Vo(t,e){this._groups=t,this._parents=e}function Lb(){return new Vo([[document.documentElement]],Kf)}Vo.prototype=Lb.prototype={constructor:Vo,select:function(t){typeof t!="function"&&(t=I2(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v,w=e[d],C=w.length,S=u[d]=new Array(C),B=0;B<C;++B)(g=w[B])&&(v=t.call(g,g.__data__,B,w))&&("__data__"in g&&(v.__data__=g.__data__),S[B]=v);return new Vo(u,this._parents)},selectAll:function(t){t=typeof t=="function"?function(B){return function(){return Hf(B.apply(this,arguments))}}(t):F2(t);for(var e=this._groups,i=e.length,u=[],d=[],g=0;g<i;++g)for(var v,w=e[g],C=w.length,S=0;S<C;++S)(v=w[S])&&(u.push(t.call(v,v.__data__,S,w)),d.push(v));return new Vo(u,d)},selectChild:function(t){return this.select(t==null?Wf:function(e){return function(){return rx.call(this.children,e)}}(typeof t=="function"?t:P2(t)))},selectChildren:function(t){return this.selectAll(t==null?mb:function(e){return function(){return ix.call(this.children,e)}}(typeof t=="function"?t:P2(t)))},filter:function(t){typeof t!="function"&&(t=$f(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v=e[d],w=v.length,C=u[d]=[],S=0;S<w;++S)(g=v[S])&&t.call(g,g.__data__,S,v)&&C.push(g);return new Vo(u,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,h1);var i=e?Gf:Vf,u=this._parents,d=this._groups;typeof t!="function"&&(t=qf(t));for(var g=d.length,v=new Array(g),w=new Array(g),C=new Array(g),S=0;S<g;++S){var B=u[S],j=d[S],P=j.length,U=Y2(t.call(B,B&&B.__data__,S,u)),ot=U.length,vt=w[S]=new Array(ot),bt=v[S]=new Array(ot),kt=C[S]=new Array(P);i(B,j,vt,bt,kt,U,e);for(var _t,lt,$t=0,Lt=0;$t<ot;++$t)if(_t=vt[$t]){for($t>=Lt&&(Lt=$t+1);!(lt=bt[Lt])&&++Lt<ot;);_t._next=lt||null}}return(v=new Vo(v,u))._enter=w,v._exit=C,v},enter:function(){return new Vo(this._enter||this._groups.map(vb),this._parents)},exit:function(){return new Vo(this._exit||this._groups.map(vb),this._parents)},join:function(t,e,i){var u=this.enter(),d=this,g=this.exit();return typeof t=="function"?(u=t(u))&&(u=u.selection()):u=u.append(t+""),e!=null&&(d=e(d))&&(d=d.selection()),i==null?g.remove():i(g),u&&d?u.merge(d).order():d},merge:function(t){for(var e=t.selection?t.selection():t,i=this._groups,u=e._groups,d=i.length,g=u.length,v=Math.min(d,g),w=new Array(d),C=0;C<v;++C)for(var S,B=i[C],j=u[C],P=B.length,U=w[C]=new Array(P),ot=0;ot<P;++ot)(S=B[ot]||j[ot])&&(U[ot]=S);for(;C<d;++C)w[C]=i[C];return new Vo(w,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var u,d=t[e],g=d.length-1,v=d[g];--g>=0;)(u=d[g])&&(v&&4^u.compareDocumentPosition(v)&&v.parentNode.insertBefore(u,v),v=u);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=ax);for(var i=this._groups,u=i.length,d=new Array(u),g=0;g<u;++g){for(var v,w=i[g],C=w.length,S=d[g]=new Array(C),B=0;B<C;++B)(v=w[B])&&(S[B]=v);S.sort(e)}return new Vo(d,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var u=t[e],d=0,g=u.length;d<g;++d){var v=u[d];if(v)return v}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,i=0,u=e.length;i<u;++i)for(var d,g=e[i],v=0,w=g.length;v<w;++v)(d=g[v])&&t.call(d,d.__data__,v,g);return this},attr:function(t,e){var i=f1(t);if(arguments.length<2){var u=this.node();return i.local?u.getAttributeNS(i.space,i.local):u.getAttribute(i)}return this.each((e==null?i.local?ox:j2:typeof e=="function"?i.local?cx:U2:i.local?sx:z2)(i,e))},style:function(t,e,i){return arguments.length>1?this.each((e==null?ux:typeof e=="function"?hx:lx)(t,e,i==null?"":i)):Jl(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?fx:typeof e=="function"?H2:dx)(t,e)):this.node()[t]},classed:function(t,e){var i=bb(t+"");if(arguments.length<2){for(var u=$2(this.node()),d=-1,g=i.length;++d<g;)if(!u.contains(i[d]))return!1;return!0}return this.each((typeof e=="function"?p1:e?xb:px)(i,e))},text:function(t){return arguments.length?this.each(t==null?kb:(typeof t=="function"?gx:q2)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?Xf:(typeof t=="function"?Eb:Tb)(t)):this.node().innerHTML},raise:function(){return this.each(Sb)},lower:function(){return this.each(Cb)},append:function(t){var e=typeof t=="function"?t:Ab(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var i=typeof t=="function"?t:Ab(t),u=e==null?yx:typeof e=="function"?e:I2(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(y1)},clone:function(t){return this.select(t?th:Ou)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,i){var u,d,g=mx(t+""),v=g.length;if(!(arguments.length<2)){for(w=e?Db:vx,u=0;u<v;++u)this.each(w(g[u],e,i));return this}var w=this.node().__on;if(w){for(var C,S=0,B=w.length;S<B;++S)for(u=0,C=w[S];u<v;++u)if((d=g[u]).type===C.type&&d.name===C.name)return C.value}},dispatch:function(t,e){return this.each((typeof e=="function"?Ob:Nb)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var u,d=t[e],g=0,v=d.length;g<v;++g)(u=d[g])&&(yield u)}};const Qf=Lb;var _x={value:()=>{}};function Bb(){for(var t,e=0,i=arguments.length,u={};e<i;++e){if(!(t=arguments[e]+"")||t in u||/[\s.]/.test(t))throw new Error("illegal type: "+t);u[t]=[]}return new v1(u)}function v1(t){this._=t}function bx(t,e){return t.trim().split(/^|\s+/).map(function(i){var u="",d=i.indexOf(".");if(d>=0&&(u=i.slice(d+1),i=i.slice(0,d)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:u}})}function V2(t,e){for(var i,u=0,d=t.length;u<d;++u)if((i=t[u]).name===e)return i.value}function _1(t,e,i){for(var u=0,d=t.length;u<d;++u)if(t[u].name===e){t[u]=_x,t=t.slice(0,u).concat(t.slice(u+1));break}return i!=null&&t.push({name:e,value:i}),t}v1.prototype=Bb.prototype={constructor:v1,on:function(t,e){var i,u=this._,d=bx(t+"",u),g=-1,v=d.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++g<v;)if(i=(t=d[g]).type)u[i]=_1(u[i],t.name,e);else if(e==null)for(i in u)u[i]=_1(u[i],t.name,null);return this}for(;++g<v;)if((i=(t=d[g]).type)&&(i=V2(u[i],t.name)))return i},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new v1(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,u,d=new Array(i),g=0;g<i;++g)d[g]=arguments[g+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(g=0,i=(u=this._[t]).length;g<i;++g)u[g].value.apply(e,d)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var u=this._[t],d=0,g=u.length;d<g;++d)u[d].value.apply(e,i)}};const wx=Bb;var b1,jc,eh=0,zc=0,nh=0,Jf=0,Uc=0,w1=0,td=typeof performance=="object"&&performance.now?performance:Date,Rb=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function G2(){return Uc||(Rb(xx),Uc=td.now()+w1)}function xx(){Uc=0}function x1(){this._call=this._time=this._next=null}function Z2(t,e,i){var u=new x1;return u.restart(t,e,i),u}function rh(){Uc=(Jf=td.now())+w1,eh=zc=0;try{(function(){G2(),++eh;for(var t,e=b1;e;)(t=Uc-e._time)>=0&&e._call.call(void 0,t),e=e._next;--eh})()}finally{eh=0,function(){for(var t,e,i=b1,u=1/0;i;)i._call?(u>i._time&&(u=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:b1=e);jc=t,k1(u)}(),Uc=0}}function Ib(){var t=td.now(),e=t-Jf;e>1e3&&(w1-=e,Jf=t)}function k1(t){eh||(zc&&(zc=clearTimeout(zc)),t-Uc>24?(t<1/0&&(zc=setTimeout(rh,t-td.now()-w1)),nh&&(nh=clearInterval(nh))):(nh||(Jf=td.now(),nh=setInterval(Ib,1e3)),eh=1,Rb(rh)))}function X2(t,e,i){var u=new x1;return e=e==null?0:+e,u.restart(d=>{u.stop(),t(d+e)},e,i),u}x1.prototype=Z2.prototype={constructor:x1,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?G2():+i)+(e==null?0:+e),this._next||jc===this||(jc?jc._next=this:b1=this,jc=this),this._call=t,this._time=i,k1()},stop:function(){this._call&&(this._call=null,this._time=1/0,k1())}};var kx=wx("start","end","cancel","interrupt"),Tx=[];function T1(t,e,i,u,d,g){var v=t.__transition;if(v){if(i in v)return}else t.__transition={};(function(w,C,S){var B,j=w.__transition;function P(vt){var bt,kt,_t,lt;if(S.state!==1)return ot();for(bt in j)if((lt=j[bt]).name===S.name){if(lt.state===3)return X2(P);lt.state===4?(lt.state=6,lt.timer.stop(),lt.on.call("interrupt",w,w.__data__,lt.index,lt.group),delete j[bt]):+bt<C&&(lt.state=6,lt.timer.stop(),lt.on.call("cancel",w,w.__data__,lt.index,lt.group),delete j[bt])}if(X2(function(){S.state===3&&(S.state=4,S.timer.restart(U,S.delay,S.time),U(vt))}),S.state=2,S.on.call("start",w,w.__data__,S.index,S.group),S.state===2){for(S.state=3,B=new Array(_t=S.tween.length),bt=0,kt=-1;bt<_t;++bt)(lt=S.tween[bt].value.call(w,w.__data__,S.index,S.group))&&(B[++kt]=lt);B.length=kt+1}}function U(vt){for(var bt=vt<S.duration?S.ease.call(null,vt/S.duration):(S.timer.restart(ot),S.state=5,1),kt=-1,_t=B.length;++kt<_t;)B[kt].call(w,bt);S.state===5&&(S.on.call("end",w,w.__data__,S.index,S.group),ot())}function ot(){for(var vt in S.state=6,S.timer.stop(),delete j[C],j)return;delete w.__transition}j[C]=S,S.timer=Z2(function(vt){S.state=1,S.timer.restart(P,S.delay,S.time),S.delay<=vt&&P(vt-S.delay)},0,S.time)})(t,i,{name:e,index:u,group:d,on:kx,tween:Tx,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:0})}function E1(t,e){var i=Go(t,e);if(i.state>0)throw new Error("too late; already scheduled");return i}function xs(t,e){var i=Go(t,e);if(i.state>3)throw new Error("too late; already running");return i}function Go(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function ec(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var S1,ed=180/Math.PI,K2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Fb(t,e,i,u,d,g){var v,w,C;return(v=Math.sqrt(t*t+e*e))&&(t/=v,e/=v),(C=t*i+e*u)&&(i-=t*C,u-=e*C),(w=Math.sqrt(i*i+u*u))&&(i/=w,u/=w,C/=w),t*u<e*i&&(t=-t,e=-e,C=-C,v=-v),{translateX:d,translateY:g,rotate:Math.atan2(e,t)*ed,skewX:Math.atan(C)*ed,scaleX:v,scaleY:w}}function Pb(t,e,i,u){function d(g){return g.length?g.pop()+" ":""}return function(g,v){var w=[],C=[];return g=t(g),v=t(v),function(S,B,j,P,U,ot){if(S!==j||B!==P){var vt=U.push("translate(",null,e,null,i);ot.push({i:vt-4,x:ec(S,j)},{i:vt-2,x:ec(B,P)})}else(j||P)&&U.push("translate("+j+e+P+i)}(g.translateX,g.translateY,v.translateX,v.translateY,w,C),function(S,B,j,P){S!==B?(S-B>180?B+=360:B-S>180&&(S+=360),P.push({i:j.push(d(j)+"rotate(",null,u)-2,x:ec(S,B)})):B&&j.push(d(j)+"rotate("+B+u)}(g.rotate,v.rotate,w,C),function(S,B,j,P){S!==B?P.push({i:j.push(d(j)+"skewX(",null,u)-2,x:ec(S,B)}):B&&j.push(d(j)+"skewX("+B+u)}(g.skewX,v.skewX,w,C),function(S,B,j,P,U,ot){if(S!==j||B!==P){var vt=U.push(d(U)+"scale(",null,",",null,")");ot.push({i:vt-4,x:ec(S,j)},{i:vt-2,x:ec(B,P)})}else j===1&&P===1||U.push(d(U)+"scale("+j+","+P+")")}(g.scaleX,g.scaleY,v.scaleX,v.scaleY,w,C),g=v=null,function(S){for(var B,j=-1,P=C.length;++j<P;)w[(B=C[j]).i]=B.x(S);return w.join("")}}}var Ex=Pb(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?K2:Fb(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Sx=Pb(function(t){return t==null?K2:(S1||(S1=document.createElementNS("http://www.w3.org/2000/svg","g")),S1.setAttribute("transform",t),(t=S1.transform.baseVal.consolidate())?Fb((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):K2)},", ",")",")");function Cx(t,e){var i,u;return function(){var d=xs(this,t),g=d.tween;if(g!==i){for(var v=0,w=(u=i=g).length;v<w;++v)if(u[v].name===e){(u=u.slice()).splice(v,1);break}}d.tween=u}}function Yb(t,e,i){var u,d;if(typeof i!="function")throw new Error;return function(){var g=xs(this,t),v=g.tween;if(v!==u){d=(u=v).slice();for(var w={name:e,value:i},C=0,S=d.length;C<S;++C)if(d[C].name===e){d[C]=w;break}C===S&&d.push(w)}g.tween=d}}function Q2(t,e,i){var u=t._id;return t.each(function(){var d=xs(this,u);(d.value||(d.value={}))[e]=i.apply(this,arguments)}),function(d){return Go(d,u).value[e]}}function J2(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function jb(t,e){var i=Object.create(t.prototype);for(var u in e)i[u]=e[u];return i}function ks(){}var C1=.7,nd=1.4285714285714286,ih="\\s*([+-]?\\d+)\\s*",ah="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ts="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mx=/^#([0-9a-f]{3,8})$/,Zo=new RegExp("^rgb\\("+[ih,ih,ih]+"\\)$"),nc=new RegExp("^rgb\\("+[Ts,Ts,Ts]+"\\)$"),zb=new RegExp("^rgba\\("+[ih,ih,ih,ah]+"\\)$"),M1=new RegExp("^rgba\\("+[Ts,Ts,Ts,ah]+"\\)$"),Lu=new RegExp("^hsl\\("+[ah,Ts,Ts]+"\\)$"),ty=new RegExp("^hsla\\("+[ah,Ts,Ts,ah]+"\\)$"),A1={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function D1(){return this.rgb().formatHex()}function ey(){return this.rgb().formatRgb()}function rd(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Mx.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?N1(e):i===3?new $a(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):i===8?id(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):i===4?id(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Zo.exec(t))?new $a(e[1],e[2],e[3],1):(e=nc.exec(t))?new $a(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=zb.exec(t))?id(e[1],e[2],e[3],e[4]):(e=M1.exec(t))?id(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Lu.exec(t))?od(e[1],e[2]/100,e[3]/100,1):(e=ty.exec(t))?od(e[1],e[2]/100,e[3]/100,e[4]):A1.hasOwnProperty(t)?N1(A1[t]):t==="transparent"?new $a(NaN,NaN,NaN,0):null}function N1(t){return new $a(t>>16&255,t>>8&255,255&t,1)}function id(t,e,i,u){return u<=0&&(t=e=i=NaN),new $a(t,e,i,u)}function oa(t){return t instanceof ks||(t=rd(t)),t?new $a((t=t.rgb()).r,t.g,t.b,t.opacity):new $a}function ad(t,e,i,u){return arguments.length===1?oa(t):new $a(t,e,i,u==null?1:u)}function $a(t,e,i,u){this.r=+t,this.g=+e,this.b=+i,this.opacity=+u}function Ub(){return"#"+Bu(this.r)+Bu(this.g)+Bu(this.b)}function Hb(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Bu(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function od(t,e,i,u){return u<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Xo(t,e,i,u)}function ny(t){if(t instanceof Xo)return new Xo(t.h,t.s,t.l,t.opacity);if(t instanceof ks||(t=rd(t)),!t)return new Xo;if(t instanceof Xo)return t;var e=(t=t.rgb()).r/255,i=t.g/255,u=t.b/255,d=Math.min(e,i,u),g=Math.max(e,i,u),v=NaN,w=g-d,C=(g+d)/2;return w?(v=e===g?(i-u)/w+6*(i<u):i===g?(u-e)/w+2:(e-i)/w+4,w/=C<.5?g+d:2-g-d,v*=60):w=C>0&&C<1?0:v,new Xo(v,w,C,t.opacity)}function Xo(t,e,i,u){this.h=+t,this.s=+e,this.l=+i,this.opacity=+u}function rc(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}J2(ks,rd,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:D1,formatHex:D1,formatHsl:function(){return ny(this).formatHsl()},formatRgb:ey,toString:ey}),J2($a,ad,jb(ks,{brighter:function(t){return t=t==null?nd:Math.pow(nd,t),new $a(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?C1:Math.pow(C1,t),new $a(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ub,formatHex:Ub,formatRgb:Hb,toString:Hb})),J2(Xo,function(t,e,i,u){return arguments.length===1?ny(t):new Xo(t,e,i,u==null?1:u)},jb(ks,{brighter:function(t){return t=t==null?nd:Math.pow(nd,t),new Xo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?C1:Math.pow(C1,t),new Xo(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,u=i+(i<.5?i:1-i)*e,d=2*i-u;return new $a(rc(t>=240?t-240:t+120,d,u),rc(t,d,u),rc(t<120?t+240:t-120,d,u),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const ry=t=>()=>t;function iy(t,e){var i=e-t;return i?function(u,d){return function(g){return u+g*d}}(t,i):ry(isNaN(t)?e:t)}const ay=function t(e){var i=function(d){return(d=+d)==1?iy:function(g,v){return v-g?function(w,C,S){return w=Math.pow(w,S),C=Math.pow(C,S)-w,S=1/S,function(B){return Math.pow(w+B*C,S)}}(g,v,d):ry(isNaN(g)?v:g)}}(e);function u(d,g){var v=i((d=ad(d)).r,(g=ad(g)).r),w=i(d.g,g.g),C=i(d.b,g.b),S=iy(d.opacity,g.opacity);return function(B){return d.r=v(B),d.g=w(B),d.b=C(B),d.opacity=S(B),d+""}}return u.gamma=t,u}(1);var O1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,L1=new RegExp(O1.source,"g");function Ax(t,e){var i,u,d,g=O1.lastIndex=L1.lastIndex=0,v=-1,w=[],C=[];for(t+="",e+="";(i=O1.exec(t))&&(u=L1.exec(e));)(d=u.index)>g&&(d=e.slice(g,d),w[v]?w[v]+=d:w[++v]=d),(i=i[0])===(u=u[0])?w[v]?w[v]+=u:w[++v]=u:(w[++v]=null,C.push({i:v,x:ec(i,u)})),g=L1.lastIndex;return g<e.length&&(d=e.slice(g),w[v]?w[v]+=d:w[++v]=d),w.length<2?C[0]?function(S){return function(B){return S(B)+""}}(C[0].x):function(S){return function(){return S}}(e):(e=C.length,function(S){for(var B,j=0;j<e;++j)w[(B=C[j]).i]=B.x(S);return w.join("")})}function $b(t,e){var i;return(typeof e=="number"?ec:e instanceof rd?ay:(i=rd(e))?(e=i,ay):Ax)(t,e)}function Dx(t){return function(){this.removeAttribute(t)}}function Wb(t){return function(){this.removeAttributeNS(t.space,t.local)}}function oy(t,e,i){var u,d,g=i+"";return function(){var v=this.getAttribute(t);return v===g?null:v===u?d:d=e(u=v,i)}}function qb(t,e,i){var u,d,g=i+"";return function(){var v=this.getAttributeNS(t.space,t.local);return v===g?null:v===u?d:d=e(u=v,i)}}function Vb(t,e,i){var u,d,g;return function(){var v,w,C=i(this);if(C!=null)return(v=this.getAttribute(t))===(w=C+"")?null:v===u&&w===d?g:(d=w,g=e(u=v,C));this.removeAttribute(t)}}function Gb(t,e,i){var u,d,g;return function(){var v,w,C=i(this);if(C!=null)return(v=this.getAttributeNS(t.space,t.local))===(w=C+"")?null:v===u&&w===d?g:(d=w,g=e(u=v,C));this.removeAttributeNS(t.space,t.local)}}function sy(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function Zb(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function Xb(t,e){var i,u;function d(){var g=e.apply(this,arguments);return g!==u&&(i=(u=g)&&Zb(t,g)),i}return d._value=e,d}function Nx(t,e){var i,u;function d(){var g=e.apply(this,arguments);return g!==u&&(i=(u=g)&&sy(t,g)),i}return d._value=e,d}function Ox(t,e){return function(){E1(this,t).delay=+e.apply(this,arguments)}}function cy(t,e){return e=+e,function(){E1(this,t).delay=e}}function uy(t,e){return function(){xs(this,t).duration=+e.apply(this,arguments)}}function Lx(t,e){return e=+e,function(){xs(this,t).duration=e}}function Kb(t,e){if(typeof e!="function")throw new Error;return function(){xs(this,t).ease=e}}function Qb(t,e,i){var u,d,g=function(v){return(v+"").trim().split(/^|\s+/).every(function(w){var C=w.indexOf(".");return C>=0&&(w=w.slice(0,C)),!w||w==="start"})}(e)?E1:xs;return function(){var v=g(this,t),w=v.on;w!==u&&(d=(u=w).copy()).on(e,i),v.on=d}}var Jb=Qf.prototype.constructor;function B1(t){return function(){this.style.removeProperty(t)}}function ly(t,e,i){return function(u){this.style.setProperty(t,e.call(this,u),i)}}function Hi(t,e,i){var u,d;function g(){var v=e.apply(this,arguments);return v!==d&&(u=(d=v)&&ly(t,v,i)),u}return g._value=e,g}function hy(t){return function(e){this.textContent=t.call(this,e)}}function Ru(t){var e,i;function u(){var d=t.apply(this,arguments);return d!==i&&(e=(i=d)&&hy(d)),e}return u._value=t,u}var Bx=0;function Es(t,e,i,u){this._groups=t,this._parents=e,this._name=i,this._id=u}function fy(){return++Bx}var ic=Qf.prototype;Es.prototype={constructor:Es,select:function(t){var e=this._name,i=this._id;typeof t!="function"&&(t=I2(t));for(var u=this._groups,d=u.length,g=new Array(d),v=0;v<d;++v)for(var w,C,S=u[v],B=S.length,j=g[v]=new Array(B),P=0;P<B;++P)(w=S[P])&&(C=t.call(w,w.__data__,P,S))&&("__data__"in w&&(C.__data__=w.__data__),j[P]=C,T1(j[P],e,i,P,j,Go(w,i)));return new Es(g,this._parents,e,i)},selectAll:function(t){var e=this._name,i=this._id;typeof t!="function"&&(t=F2(t));for(var u=this._groups,d=u.length,g=[],v=[],w=0;w<d;++w)for(var C,S=u[w],B=S.length,j=0;j<B;++j)if(C=S[j]){for(var P,U=t.call(C,C.__data__,j,S),ot=Go(C,i),vt=0,bt=U.length;vt<bt;++vt)(P=U[vt])&&T1(P,e,i,vt,U,ot);g.push(U),v.push(C)}return new Es(g,v,e,i)},selectChild:ic.selectChild,selectChildren:ic.selectChildren,filter:function(t){typeof t!="function"&&(t=$f(t));for(var e=this._groups,i=e.length,u=new Array(i),d=0;d<i;++d)for(var g,v=e[d],w=v.length,C=u[d]=[],S=0;S<w;++S)(g=v[S])&&t.call(g,g.__data__,S,v)&&C.push(g);return new Es(u,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,u=e.length,d=i.length,g=Math.min(u,d),v=new Array(u),w=0;w<g;++w)for(var C,S=e[w],B=i[w],j=S.length,P=v[w]=new Array(j),U=0;U<j;++U)(C=S[U]||B[U])&&(P[U]=C);for(;w<u;++w)v[w]=e[w];return new Es(v,this._parents,this._name,this._id)},selection:function(){return new Jb(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,i=fy(),u=this._groups,d=u.length,g=0;g<d;++g)for(var v,w=u[g],C=w.length,S=0;S<C;++S)if(v=w[S]){var B=Go(v,e);T1(v,t,i,S,w,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new Es(u,this._parents,t,i)},call:ic.call,nodes:ic.nodes,node:ic.node,size:ic.size,empty:ic.empty,each:ic.each,on:function(t,e){var i=this._id;return arguments.length<2?Go(this.node(),i).on.on(t):this.each(Qb(i,t,e))},attr:function(t,e){var i=f1(t),u=i==="transform"?Sx:$b;return this.attrTween(t,typeof e=="function"?(i.local?Gb:Vb)(i,u,Q2(this,"attr."+t,e)):e==null?(i.local?Wb:Dx)(i):(i.local?qb:oy)(i,u,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var u=f1(t);return this.tween(i,(u.local?Xb:Nx)(u,e))},style:function(t,e,i){var u=(t+="")=="transform"?Ex:$b;return e==null?this.styleTween(t,function(d,g){var v,w,C;return function(){var S=Jl(this,d),B=(this.style.removeProperty(d),Jl(this,d));return S===B?null:S===v&&B===w?C:C=g(v=S,w=B)}}(t,u)).on("end.style."+t,B1(t)):typeof e=="function"?this.styleTween(t,function(d,g,v){var w,C,S;return function(){var B=Jl(this,d),j=v(this),P=j+"";return j==null&&(this.style.removeProperty(d),P=j=Jl(this,d)),B===P?null:B===w&&P===C?S:(C=P,S=g(w=B,j))}}(t,u,Q2(this,"style."+t,e))).each(function(d,g){var v,w,C,S,B="style."+g,j="end."+B;return function(){var P=xs(this,d),U=P.on,ot=P.value[B]==null?S||(S=B1(g)):void 0;U===v&&C===ot||(w=(v=U).copy()).on(j,C=ot),P.on=w}}(this._id,t)):this.styleTween(t,function(d,g,v){var w,C,S=v+"";return function(){var B=Jl(this,d);return B===S?null:B===w?C:C=g(w=B,v)}}(t,u,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var u="style."+(t+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(e==null)return this.tween(u,null);if(typeof e!="function")throw new Error;return this.tween(u,Hi(t,e,i==null?"":i))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var i=e(this);this.textContent=i==null?"":i}}(Q2(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Ru(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var u,d=Go(this.node(),i).tween,g=0,v=d.length;g<v;++g)if((u=d[g]).name===t)return u.value;return null}return this.each((e==null?Cx:Yb)(i,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Ox:cy)(e,t)):Go(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?uy:Lx)(e,t)):Go(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Kb(e,t)):Go(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,i){return function(){var u=i.apply(this,arguments);if(typeof u!="function")throw new Error;xs(this,e).ease=u}}(this._id,t))},end:function(){var t,e,i=this,u=i._id,d=i.size();return new Promise(function(g,v){var w={value:v},C={value:function(){--d==0&&g()}};i.each(function(){var S=xs(this,u),B=S.on;B!==t&&((e=(t=B).copy())._.cancel.push(w),e._.interrupt.push(w),e._.end.push(C)),S.on=e}),d===0&&g()})},[Symbol.iterator]:ic[Symbol.iterator]};var R1={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Iu(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}Qf.prototype.interrupt=function(t){return this.each(function(){(function(e,i){var u,d,g,v=e.__transition,w=!0;if(v){for(g in i=i==null?null:i+"",v)(u=v[g]).name===i?(d=u.state>2&&u.state<5,u.state=6,u.timer.stop(),u.on.call(d?"interrupt":"cancel",e,e.__data__,u.index,u.group),delete v[g]):w=!1;w&&delete e.__transition}})(this,t)})},Qf.prototype.transition=function(t){var e,i;t instanceof Es?(e=t._id,t=t._name):(e=fy(),(i=R1).time=G2(),t=t==null?null:t+"");for(var u=this._groups,d=u.length,g=0;g<d;++g)for(var v,w=u[g],C=w.length,S=0;S<C;++S)(v=w[S])&&T1(v,t,e,S,w,i||Iu(v,e));return new Es(u,this._parents,t,e)};var sd="comm",dy="rule",py="decl",Fu=Math.abs,Pu=String.fromCharCode;function oh(t){return t.trim()}function I1(t,e,i){return t.replace(e,i)}function t3(t,e){return t.indexOf(e)}function ac(t,e){return 0|t.charCodeAt(e)}function sh(t,e,i){return t.slice(e,i)}function oc(t){return t.length}function gy(t){return t.length}function F1(t,e){return e.push(t),t}function yy(t,e){for(var i="",u=gy(t),d=0;d<u;d++)i+=e(t[d],d,t,e)||"";return i}function Rx(t,e,i,u){switch(t.type){case"@import":case py:return t.return=t.return||t.value;case sd:return"";case"@keyframes":return t.return=t.value+"{"+yy(t.children,u)+"}";case dy:t.value=t.props.join(",")}return oc(i=yy(t.children,u))?t.return=t.value+"{"+i+"}":""}var P1=1,ch=1,e3=0,co=0,ci=0,uh="";function Y1(t,e,i,u,d,g,v){return{value:t,root:e,parent:i,type:u,props:d,children:g,line:P1,column:ch,length:v,return:""}}function n3(){return ci=co>0?ac(uh,--co):0,ch--,ci===10&&(ch=1,P1--),ci}function Ko(){return ci=co<e3?ac(uh,co++):0,ch++,ci===10&&(ch=1,P1++),ci}function Hc(){return ac(uh,co)}function cd(){return co}function j1(t,e){return sh(uh,t,e)}function z1(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function lh(t){return oh(j1(co-1,hh(t===91?t+2:t===40?t+1:t)))}function r3(t){for(;(ci=Hc())&&ci<33;)Ko();return z1(t)>2||z1(ci)>3?"":" "}function U1(t,e){for(;--e&&Ko()&&!(ci<48||ci>102||ci>57&&ci<65||ci>70&&ci<97););return j1(t,cd()+(e<6&&Hc()==32&&Ko()==32))}function hh(t){for(;Ko();)switch(ci){case t:return co;case 34:case 39:t!==34&&t!==39&&hh(ci);break;case 40:t===41&&hh(t);break;case 92:Ko()}return co}function i3(t,e){for(;Ko()&&t+ci!==57&&(t+ci!==84||Hc()!==47););return"/*"+j1(e,co-1)+"*"+Pu(t===47?t:Ko())}function Yu(t){for(;!z1(Hc());)Ko();return j1(t,co)}function ud(t){return function(e){return uh="",e}($c("",null,null,null,[""],t=function(e){return P1=ch=1,e3=oc(uh=e),co=0,[]}(t),0,[0],t))}function $c(t,e,i,u,d,g,v,w,C){for(var S=0,B=0,j=v,P=0,U=0,ot=0,vt=1,bt=1,kt=1,_t=0,lt="",$t=d,Lt=g,gt=u,Bt=lt;bt;)switch(ot=_t,_t=Ko()){case 40:if(ot!=108&&Bt.charCodeAt(j-1)==58){t3(Bt+=I1(lh(_t),"&","&\f"),"&\f")!=-1&&(kt=-1);break}case 34:case 39:case 91:Bt+=lh(_t);break;case 9:case 10:case 13:case 32:Bt+=r3(ot);break;case 92:Bt+=U1(cd()-1,7);continue;case 47:switch(Hc()){case 42:case 47:F1(a3(i3(Ko(),cd()),e,i),C);break;default:Bt+="/"}break;case 123*vt:w[S++]=oc(Bt)*kt;case 125*vt:case 59:case 0:switch(_t){case 0:case 125:bt=0;case 59+B:U>0&&oc(Bt)-j&&F1(U>32?Wc(Bt+";",u,i,j-1):Wc(I1(Bt," ","")+";",u,i,j-2),C);break;case 59:Bt+=";";default:if(F1(gt=my(Bt,e,i,S,B,d,w,lt,$t=[],Lt=[],j),g),_t===123)if(B===0)$c(Bt,e,gt,gt,$t,g,j,w,Lt);else switch(P){case 100:case 109:case 115:$c(t,gt,gt,u&&F1(my(t,gt,gt,0,0,d,w,lt,d,$t=[],j),Lt),d,Lt,j,w,u?$t:Lt);break;default:$c(Bt,gt,gt,gt,[""],Lt,0,w,Lt)}}S=B=U=0,vt=kt=1,lt=Bt="",j=v;break;case 58:j=1+oc(Bt),U=ot;default:if(vt<1){if(_t==123)--vt;else if(_t==125&&vt++==0&&n3()==125)continue}switch(Bt+=Pu(_t),_t*vt){case 38:kt=B>0?1:(Bt+="\f",-1);break;case 44:w[S++]=(oc(Bt)-1)*kt,kt=1;break;case 64:Hc()===45&&(Bt+=lh(Ko())),P=Hc(),B=j=oc(lt=Bt+=Yu(cd())),_t++;break;case 45:ot===45&&oc(Bt)==2&&(vt=0)}}return g}function my(t,e,i,u,d,g,v,w,C,S,B){for(var j=d-1,P=d===0?g:[""],U=gy(P),ot=0,vt=0,bt=0;ot<u;++ot)for(var kt=0,_t=sh(t,j+1,j=Fu(vt=v[ot])),lt=t;kt<U;++kt)(lt=oh(vt>0?P[kt]+" "+_t:I1(_t,/&\f/g,P[kt])))&&(C[bt++]=lt);return Y1(t,e,i,d===0?dy:w,C,S,B)}function a3(t,e,i){return Y1(t,e,i,sd,Pu(ci),sh(t,2,-2),0)}function Wc(t,e,i,u){return Y1(t,e,i,py,sh(t,0,u),sh(t,u+1,-1),u)}const vy="8.13.9";var ju=o(9609),o3=o(7856),Ix=o.n(o3),s3=function(t){var e=t.replace(/\\u[\dA-F]{4}/gi,function(i){return String.fromCharCode(parseInt(i.replace(/\\u/g,""),16))});return console.log(e),e=(e=(e=e.replace(/\\x([0-9a-f]{2})/gi,function(i,u){return String.fromCharCode(parseInt(u,16))})).replace(/\\[\d\d\d]{3}/gi,function(i){return String.fromCharCode(parseInt(i.replace(/\\/g,""),8))})).replace(/\\[\d\d\d]{2}/gi,function(i){return String.fromCharCode(parseInt(i.replace(/\\/g,""),8))})},c3=function(t){for(var e="",i=0;i>=0;){if(!((i=t.indexOf("<script"))>=0)){e+=t,i=-1;break}e+=t.substr(0,i),(i=(t=t.substr(i+1)).indexOf("<\/script>"))>=0&&(i+=9,t=t.substr(i))}var u=s3(e);return(u=(u=(u=u.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/<iframe/gi,"")},zu=function(t,e){if(!t)return t;var i=Ix().sanitize(function(u,d){var g=u,v=!0;if(!d.flowchart||d.flowchart.htmlLabels!==!1&&d.flowchart.htmlLabels!=="false"||(v=!1),v){var w=d.securityLevel;w==="antiscript"||w==="strict"?g=c3(g):w!=="loose"&&(g=(g=(g=_y(g)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),g=Fx(g))}return g}(t,e));return i},H1=/<br\s*\/?>/gi,Fx=function(t){return t.replace(/#br#/g,"<br/>")},_y=function(t){return t.replace(H1,"#br#")},Oi=function(t){return t!=="false"&&t!==!1};const vr={getRows:function(t){if(!t)return 1;var e=_y(t);return(e=e.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:zu,sanitizeTextOrArray:function(t,e){return typeof t=="string"?zu(t,e):t.flat().map(function(i){return zu(i,e)})},hasBreaks:function(t){return H1.test(t)},splitBreaks:function(t){return t.split(H1)},lineBreakRegex:H1,removeScript:c3,getUrl:function(t){var e="";return t&&(e=(e=(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),e},evaluate:Oi,removeEscapes:s3};var xe=o(8613),vi=function(t,e){return e?(0,xe.adjust)(t,{s:-40,l:10}):(0,xe.adjust)(t,{s:-40,l:-10})};function by(t){return by=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},by(t)}function wy(t,e){for(var i=0;i<e.length;i++){var u=e[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}var xy=function(){function t(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var e,i;return e=t,i=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#ddd":"#333"),this.secondaryColor=this.secondaryColor||(0,xe.adjust)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,xe.adjust)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,xe.invert)(this.tertiaryColor),this.lineColor=this.lineColor||(0,xe.invert)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,xe.darken)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,xe.darken)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,xe.invert)(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,xe.lighten)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||(0,xe.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,xe.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,xe.adjust)(this.secondaryColor,{l:-10}),this.pie6=this.pie6||(0,xe.adjust)(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||(0,xe.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,xe.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,xe.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,xe.adjust)(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||(0,xe.adjust)(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||(0,xe.adjust)(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,xe.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(u){var d=this;if(by(u)==="object"){var g=Object.keys(u);g.forEach(function(v){d[v]=u[v]}),this.updateColors(),g.forEach(function(v){d[v]=u[v]})}else this.updateColors()}}],i&&wy(e.prototype,i),t}();function Uu(t){return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uu(t)}function u3(t,e){for(var i=0;i<e.length;i++){var u=e[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}var fh=function(){function t(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,xe.lighten)(this.primaryColor,16),this.tertiaryColor=(0,xe.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=vi(this.primaryColor,this.darkMode),this.secondaryBorderColor=vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,xe.invert)(this.primaryColor),this.secondaryTextColor=(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=(0,xe.invert)(this.tertiaryColor),this.lineColor=(0,xe.invert)(this.background),this.textColor=(0,xe.invert)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,xe.lighten)((0,xe.invert)("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,xe.rgba)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,xe.darken)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=(0,xe.rgba)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,xe.rgba)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var e,i;return e=t,i=[{key:"updateColors",value:function(){this.secondBkg=(0,xe.lighten)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,xe.lighten)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,xe.lighten)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,xe.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#0b0000",this.pie2=this.pie2||"#4d1037",this.pie3=this.pie3||"#3f5258",this.pie4=this.pie4||"#4f2f1b",this.pie5=this.pie5||"#6e0a0a",this.pie6=this.pie6||"#3b0048",this.pie7=this.pie7||"#995a01",this.pie8=this.pie8||"#154706",this.pie9=this.pie9||"#161722",this.pie10=this.pie10||"#00296f",this.pie11=this.pie11||"#01629c",this.pie12=this.pie12||"#010029",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,xe.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(u){var d=this;if(Uu(u)==="object"){var g=Object.keys(u);g.forEach(function(v){d[v]=u[v]}),this.updateColors(),g.forEach(function(v){d[v]=u[v]})}else this.updateColors()}}],i&&u3(e.prototype,i),t}();function ld(t){return ld=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ld(t)}function l3(t,e){for(var i=0;i<e.length;i++){var u=e[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}var $1=function(){function t(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=(0,xe.adjust)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=(0,xe.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=vi(this.primaryColor,this.darkMode),this.secondaryBorderColor=vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,xe.invert)(this.primaryColor),this.secondaryTextColor=(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=(0,xe.invert)(this.tertiaryColor),this.lineColor=(0,xe.invert)(this.background),this.textColor=(0,xe.invert)(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,xe.rgba)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var e,i;return e=t,i=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=(0,xe.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,xe.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||(0,xe.adjust)(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||(0,xe.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,xe.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,xe.adjust)(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||(0,xe.adjust)(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||(0,xe.adjust)(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||(0,xe.adjust)(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||(0,xe.adjust)(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||(0,xe.adjust)(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||(0,xe.adjust)(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(u){var d=this;if(ld(u)==="object"){var g=Object.keys(u);g.forEach(function(v){d[v]=u[v]}),this.updateColors(),g.forEach(function(v){d[v]=u[v]})}else this.updateColors()}}],i&&l3(e.prototype,i),t}();function hd(t){return hd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hd(t)}function h3(t,e){for(var i=0;i<e.length;i++){var u=e[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}var Ki=function(){function t(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,xe.lighten)("#cde498",10),this.primaryBorderColor=vi(this.primaryColor,this.darkMode),this.secondaryBorderColor=vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,xe.invert)(this.primaryColor),this.secondaryTextColor=(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=(0,xe.invert)(this.primaryColor),this.lineColor=(0,xe.invert)(this.background),this.textColor=(0,xe.invert)(this.background),this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,i;return e=t,i=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=(0,xe.darken)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,xe.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,xe.adjust)(this.primaryColor,{l:-30}),this.pie5=this.pie5||(0,xe.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,xe.adjust)(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||(0,xe.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,xe.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,xe.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,xe.adjust)(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||(0,xe.adjust)(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||(0,xe.adjust)(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(u){var d=this;if(hd(u)==="object"){var g=Object.keys(u);g.forEach(function(v){d[v]=u[v]}),this.updateColors(),g.forEach(function(v){d[v]=u[v]})}else this.updateColors()}}],i&&h3(e.prototype,i),t}();function ky(t){return ky=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ky(t)}function Px(t,e){for(var i=0;i<e.length;i++){var u=e[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}var Er=function(){function t(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,t),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,xe.lighten)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=(0,xe.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=vi(this.primaryColor,this.darkMode),this.secondaryBorderColor=vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,xe.invert)(this.primaryColor),this.secondaryTextColor=(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=(0,xe.invert)(this.tertiaryColor),this.lineColor=(0,xe.invert)(this.background),this.textColor=(0,xe.invert)(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,i;return e=t,i=[{key:"updateColors",value:function(){this.secondBkg=(0,xe.lighten)(this.contrast,55),this.border2=this.contrast,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=(0,xe.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=(0,xe.lighten)(this.contrast,30),this.sectionBkgColor2=(0,xe.lighten)(this.contrast,30),this.taskBorderColor=(0,xe.darken)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,xe.lighten)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,xe.darken)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,xe.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#F4F4F4",this.pie2=this.pie2||"#555",this.pie3=this.pie3||"#BBB",this.pie4=this.pie4||"#777",this.pie5=this.pie5||"#999",this.pie6=this.pie6||"#DDD",this.pie7=this.pie7||"#FFF",this.pie8=this.pie8||"#DDD",this.pie9=this.pie9||"#BBB",this.pie10=this.pie10||"#999",this.pie11=this.pie11||"#777",this.pie12=this.pie12||"#555",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(u){var d=this;if(ky(u)==="object"){var g=Object.keys(u);g.forEach(function(v){d[v]=u[v]}),this.updateColors(),g.forEach(function(v){d[v]=u[v]})}else this.updateColors()}}],i&&Px(e.prototype,i),t}();const dh={base:{getThemeVariables:function(t){var e=new xy;return e.calculate(t),e}},dark:{getThemeVariables:function(t){var e=new fh;return e.calculate(t),e}},default:{getThemeVariables:function(t){var e=new $1;return e.calculate(t),e}},forest:{getThemeVariables:function(t){var e=new Ki;return e.calculate(t),e}},neutral:{getThemeVariables:function(t){var e=new Er;return e.calculate(t),e}}};function Hu(t){return function(e){if(Array.isArray(e))return $u(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,i){if(e){if(typeof e=="string")return $u(e,i);var u=Object.prototype.toString.call(e).slice(8,-1);return u==="Object"&&e.constructor&&(u=e.constructor.name),u==="Map"||u==="Set"?Array.from(e):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?$u(e,i):void 0}}(t)||function(){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 $u(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,u=new Array(e);i<e;i++)u[i]=t[i];return u}function Ty(t){return Ty=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ty(t)}var ph={theme:"default",themeVariables:dh.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-d3"},sequence:{activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open-Sans", "sans-serif"',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open-Sans", "sans-serif"',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{arrowMarkerAbsolute:!1,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},git:{arrowMarkerAbsolute:!1,useWidth:void 0,useMaxWidth:!0},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20}};ph.class.arrowMarkerAbsolute=ph.arrowMarkerAbsolute,ph.git.arrowMarkerAbsolute=ph.arrowMarkerAbsolute;var Yx=function t(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(e).reduce(function(u,d){return Array.isArray(e[d])?u:Ty(e[d])==="object"&&e[d]!==null?[].concat(Hu(u),[i+d],Hu(t(e[d],""))):[].concat(Hu(u),[i+d])},[])}(ph,"");const jx=ph;var zx=void 0;function f3(t,e){for(var i=0;i<e.length;i++){var u=e[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function Ey(t,e){var i=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=p3(t))||e&&t&&typeof t.length=="number"){i&&(t=i);var u=0,d=function(){};return{s:d,n:function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}},e:function(C){throw C},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,v=!0,w=!1;return{s:function(){i=i.call(t)},n:function(){var C=i.next();return v=C.done,C},e:function(C){w=!0,g=C},f:function(){try{v||i.return==null||i.return()}finally{if(w)throw g}}}}function To(t){return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},To(t)}function d3(t){return function(e){if(Array.isArray(e))return W1(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||p3(t)||function(){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 p3(t,e){if(t){if(typeof t=="string")return W1(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set"?Array.from(t):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?W1(t,e):void 0}}function W1(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,u=new Array(e);i<e;i++)u[i]=t[i];return u}var q1,g3={curveBasis:jr,curveBasisClosed:function(t){return new Aa(t)},curveBasisOpen:function(t){return new si(t)},curveLinear:wo,curveLinearClosed:function(t){return new Ua(t)},curveMonotoneX:function(t){return new zo(t)},curveMonotoneY:function(t){return new vs(t)},curveNatural:function(t){return new Tf(t)},curveStep:function(t){return new Cu(t,.5)},curveStepAfter:function(t){return new Cu(t,1)},curveStepBefore:function(t){return new Cu(t,0)}},V1=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Ux=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Hx=/\s*%%.*\n/gm,y3=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var i=new RegExp("[%]{2}(?![{]".concat(Ux.source,`)(?=[}][%]{2}).*
`),"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),p.debug("Detecting diagram directive".concat(e!==null?" type:"+e:""," based on the text:").concat(t));for(var u,d=[];(u=V1.exec(t))!==null;)if(u.index===V1.lastIndex&&V1.lastIndex++,u&&!e||e&&u[1]&&u[1].match(e)||e&&u[2]&&u[2].match(e)){var g=u[1]?u[1]:u[2],v=u[3]?u[3].trim():u[4]?JSON.parse(u[4].trim()):null;d.push({type:g,args:v})}return d.length===0&&d.push({type:t,args:null}),d.length===1?d[0]:d}catch(w){return p.error("ERROR: ".concat(w.message,` - Unable to parse directive
`).concat(e!==null?" type:"+e:""," based on the text:").concat(t)),{type:null,args:null}}},m3=function(t,e){return(t=t.replace(V1,"").replace(Hx,`
`)).match(/^\s*sequenceDiagram/)?"sequence":t.match(/^\s*gantt/)?"gantt":t.match(/^\s*classDiagram-v2/)?"classDiagram":t.match(/^\s*classDiagram/)?e&&e.class&&e.class.defaultRenderer==="dagre-wrapper"?"classDiagram":"class":t.match(/^\s*stateDiagram-v2/)?"stateDiagram":t.match(/^\s*stateDiagram/)?e&&e.class&&e.state.defaultRenderer==="dagre-wrapper"?"stateDiagram":"state":t.match(/^\s*gitGraph/)?"git":t.match(/^\s*flowchart/)?"flowchart-v2":t.match(/^\s*info/)?"info":t.match(/^\s*pie/)?"pie":t.match(/^\s*erDiagram/)?"er":t.match(/^\s*journey/)?"journey":t.match(/^\s*requirement/)||t.match(/^\s*requirementDiagram/)?"requirement":e&&e.flowchart&&e.flowchart.defaultRenderer==="dagre-wrapper"?"flowchart-v2":"flowchart"},G1=function(t,e){var i={};return function(){for(var u=arguments.length,d=new Array(u),g=0;g<u;g++)d[g]=arguments[g];var v=e?e.apply(zx,d):d[0];if(v in i)return i[v];var w=t.apply(void 0,d);return i[v]=w,w}},Qo=function(t,e){if(!t)return e;var i="curve".concat(t.charAt(0).toUpperCase()+t.slice(1));return g3[i]||e},Wu=function(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},qc=function(t){for(var e="",i="",u=0;u<t.length;u++)t[u]!==void 0&&(t[u].startsWith("color:")||t[u].startsWith("text-align:")?i=i+t[u]+";":e=e+t[u]+";");return{style:e,labelStyle:i}},v3=0,_3=function(){return v3++,"id-"+Math.random().toString(36).substr(2,12)+"-"+v3},Sy=function(t){return function(e){for(var i="",u="0123456789abcdef",d=u.length,g=0;g<e;g++)i+=u.charAt(Math.floor(Math.random()*d));return i}(t.length)},Qi=function t(e,i,u){var d=Object.assign({depth:2,clobber:!1},u),g=d.depth,v=d.clobber;return Array.isArray(i)&&!Array.isArray(e)?(i.forEach(function(w){return t(e,w,u)}),e):Array.isArray(i)&&Array.isArray(e)?(i.forEach(function(w){e.indexOf(w)===-1&&e.push(w)}),e):e===void 0||g<=0?e!=null&&To(e)==="object"&&To(i)==="object"?Object.assign(e,i):i:(i!==void 0&&To(e)==="object"&&To(i)==="object"&&Object.keys(i).forEach(function(w){To(i[w])!=="object"||e[w]!==void 0&&To(e[w])!=="object"?(v||To(e[w])!=="object"&&To(i[w])!=="object")&&(e[w]=i[w]):(e[w]===void 0&&(e[w]=Array.isArray(i[w])?[]:{}),e[w]=t(e[w],i[w],{depth:g-1,clobber:v}))}),e)},$x=function(t,e){var i=e.text.replace(vr.lineBreakRegex," "),u=t.append("text");u.attr("x",e.x),u.attr("y",e.y),u.style("text-anchor",e.anchor),u.style("font-family",e.fontFamily),u.style("font-size",e.fontSize),u.style("font-weight",e.fontWeight),u.attr("fill",e.fill),e.class!==void 0&&u.attr("class",e.class);var d=u.append("tspan");return d.attr("x",e.x+2*e.textMargin),d.attr("fill",e.fill),d.text(i),u},Wx=G1(function(t,e,i){if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),vr.lineBreakRegex.test(t)))return t;var u=t.split(" "),d=[],g="";return u.forEach(function(v,w){var C=Z1("".concat(v," "),i),S=Z1(g,i);if(C>e){var B=qx(v,e,"-",i),j=B.hyphenatedStrings,P=B.remainingWord;d.push.apply(d,[g].concat(d3(j))),g=P}else S+C>=e?(d.push(g),g=v):g=[g,v].filter(Boolean).join(" ");w+1===u.length&&d.push(g)}),d.filter(function(v){return v!==""}).join(i.joinWith)},function(t,e,i){return"".concat(t,"-").concat(e,"-").concat(i.fontSize,"-").concat(i.fontWeight,"-").concat(i.fontFamily,"-").concat(i.joinWith)}),qx=G1(function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",u=arguments.length>3?arguments[3]:void 0;u=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},u);var d=t.split(""),g=[],v="";return d.forEach(function(w,C){var S="".concat(v).concat(w);if(Z1(S,u)>=e){var B=C+1,j=d.length===B,P="".concat(S).concat(i);g.push(j?S:P),v=""}else v=S}),{hyphenatedStrings:g,remainingWord:v}},function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",u=arguments.length>3?arguments[3]:void 0;return"".concat(t,"-").concat(e,"-").concat(i,"-").concat(u.fontSize,"-").concat(u.fontWeight,"-").concat(u.fontFamily)}),Z1=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),Cy(t,e).width},Cy=G1(function(t,e){var i=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),u=i.fontSize,d=i.fontFamily,g=i.fontWeight;if(!t)return{width:0,height:0};var v=["sans-serif",d],w=t.split(vr.lineBreakRegex),C=[],S=Se("body");if(!S.remove)return{width:0,height:0,lineHeight:0};for(var B=S.append("svg"),j=0,P=v;j<P.length;j++){var U,ot=P[j],vt=0,bt={width:0,height:0,lineHeight:0},kt=Ey(w);try{for(kt.s();!(U=kt.n()).done;){var _t=U.value,lt={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};lt.text=_t;var $t=$x(B,lt).style("font-size",u).style("font-weight",g).style("font-family",ot),Lt=($t._groups||$t)[0][0].getBBox();bt.width=Math.round(Math.max(bt.width,Lt.width)),vt=Math.round(Lt.height),bt.height+=vt,bt.lineHeight=Math.round(Math.max(bt.lineHeight,vt))}}catch(gt){kt.e(gt)}finally{kt.f()}C.push(bt)}return B.remove(),C[isNaN(C[1].height)||isNaN(C[1].width)||isNaN(C[1].lineHeight)||C[0].height>C[1].height&&C[0].width>C[1].width&&C[0].lineHeight>C[1].lineHeight?0:1]},function(t,e){return"".concat(t,"-").concat(e.fontSize,"-").concat(e.fontWeight,"-").concat(e.fontFamily)}),My=function(t,e,i){var u=new Map;return u.set("height",t),i?(u.set("width","100%"),u.set("style","max-width: ".concat(e,"px;"))):u.set("width",e),u},uo=function(t,e,i,u){(function(d,g){var v,w=Ey(g);try{for(w.s();!(v=w.n()).done;){var C=v.value;d.attr(C[0],C[1])}}catch(S){w.e(S)}finally{w.f()}})(t,My(e,i,u))},X1=function t(e){p.debug("directiveSanitizer called with",e),To(e)==="object"&&(e.length?e.forEach(function(i){return t(i)}):Object.keys(e).forEach(function(i){p.debug("Checking key",i),i.indexOf("__")===0&&(p.debug("sanitize deleting __ option",i),delete e[i]),i.indexOf("proto")>=0&&(p.debug("sanitize deleting proto option",i),delete e[i]),i.indexOf("constr")>=0&&(p.debug("sanitize deleting constr option",i),delete e[i]),i.indexOf("themeCSS")>=0&&(p.debug("sanitizing themeCss option"),e[i]=b3(e[i])),Yx.indexOf(i)<0?(p.debug("sanitize deleting option",i),delete e[i]):To(e[i])==="object"&&(p.debug("sanitize deleting object",i),t(e[i]))}))},b3=function(t){return(t.match(/\{/g)||[]).length!==(t.match(/\}/g)||[]).length?"{ /* ERROR: Unbalanced CSS */ }":t};const Qn={assignWithDepth:Qi,wrapLabel:Wx,calculateTextHeight:function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),Cy(t,e).height},calculateTextWidth:Z1,calculateTextDimensions:Cy,calculateSvgSizeAttrs:My,configureSvgSize:uo,detectInit:function(t,e){var i=y3(t,/(?:init\b)|(?:initialize\b)/),u={};if(Array.isArray(i)){var d=i.map(function(v){return v.args});X1(d),u=Qi(u,d3(d))}else u=i.args;if(u){var g=m3(t,e);["config"].forEach(function(v){u[v]!==void 0&&(g==="flowchart-v2"&&(g="flowchart"),u[g]=u[v],delete u[v])})}return u},detectDirective:y3,detectType:m3,isSubstringInArray:function(t,e){for(var i=0;i<e.length;i++)if(e[i].match(t))return i;return-1},interpolateToCurve:Qo,calcLabelPosition:function(t){return function(e){var i,u=0;e.forEach(function(v){u+=Wu(v,i),i=v});var d=u/2,g=void 0;return i=void 0,e.forEach(function(v){if(i&&!g){var w=Wu(v,i);if(w<d)d-=w;else{var C=d/w;C<=0&&(g=i),C>=1&&(g={x:v.x,y:v.y}),C>0&&C<1&&(g={x:(1-C)*i.x+C*v.x,y:(1-C)*i.y+C*v.y})}}i=v}),g}(t)},calcCardinalityPosition:function(t,e,i){var u;p.info("our points",e),e[0]!==i&&(e=e.reverse()),e.forEach(function(S){Wu(S,u),u=S});var d,g=25;u=void 0,e.forEach(function(S){if(u&&!d){var B=Wu(S,u);if(B<g)g-=B;else{var j=g/B;j<=0&&(d=u),j>=1&&(d={x:S.x,y:S.y}),j>0&&j<1&&(d={x:(1-j)*u.x+j*S.x,y:(1-j)*u.y+j*S.y})}}u=S});var v=t?10:5,w=Math.atan2(e[0].y-d.y,e[0].x-d.x),C={x:0,y:0};return C.x=Math.sin(w)*v+(e[0].x+d.x)/2,C.y=-Math.cos(w)*v+(e[0].y+d.y)/2,C},calcTerminalLabelPosition:function(t,e,i){var u,d=JSON.parse(JSON.stringify(i));p.info("our points",d),e!=="start_left"&&e!=="start_right"&&(d=d.reverse()),d.forEach(function(B){Wu(B,u),u=B});var g,v=25+t;u=void 0,d.forEach(function(B){if(u&&!g){var j=Wu(B,u);if(j<v)v-=j;else{var P=v/j;P<=0&&(g=u),P>=1&&(g={x:B.x,y:B.y}),P>0&&P<1&&(g={x:(1-P)*u.x+P*B.x,y:(1-P)*u.y+P*B.y})}}u=B});var w=10+.5*t,C=Math.atan2(d[0].y-g.y,d[0].x-g.x),S={x:0,y:0};return S.x=Math.sin(C)*w+(d[0].x+g.x)/2,S.y=-Math.cos(C)*w+(d[0].y+g.y)/2,e==="start_left"&&(S.x=Math.sin(C+Math.PI)*w+(d[0].x+g.x)/2,S.y=-Math.cos(C+Math.PI)*w+(d[0].y+g.y)/2),e==="end_right"&&(S.x=Math.sin(C-Math.PI)*w+(d[0].x+g.x)/2-5,S.y=-Math.cos(C-Math.PI)*w+(d[0].y+g.y)/2-5),e==="end_left"&&(S.x=Math.sin(C)*w+(d[0].x+g.x)/2-5,S.y=-Math.cos(C)*w+(d[0].y+g.y)/2-5),S},formatUrl:function(t,e){var i=t.trim();if(i)return e.securityLevel!=="loose"?(0,ju.sanitizeUrl)(i):i},getStylesFromArray:qc,generateId:_3,random:Sy,memoize:G1,runFunc:function(t){for(var e,i=t.split("."),u=i.length-1,d=i[u],g=window,v=0;v<u;v++)if(!(g=g[i[v]]))return;for(var w=arguments.length,C=new Array(w>1?w-1:0),S=1;S<w;S++)C[S-1]=arguments[S];(e=g)[d].apply(e,C)},entityDecode:function(t){return q1=q1||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),q1.innerHTML=t,unescape(q1.textContent)},initIdGeneratior:function(){function t(u,d){(function(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")})(this,t),this.deterministic=u,this.seed=d,this.count=d?d.length:0}var e,i;return e=t,(i=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&f3(e.prototype,i),t}(),directiveSanitizer:X1,sanitizeCss:b3};function Ay(t){return Ay=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ay(t)}var w3,fd=Object.freeze(jx),Ji=Qi({},fd),gh=[],K1=Qi({},fd),Q1=function(t,e){for(var i=Qi({},t),u={},d=0;d<e.length;d++){var g=e[d];Vx(g),u=Qi(u,g)}if(i=Qi(i,u),u.theme){var v=Qi({},w3),w=Qi(v.themeVariables||{},u.themeVariables);i.themeVariables=dh[i.theme].getThemeVariables(w)}return K1=i,i},x3=function(){return Qi({},Ji)},se=function(){return Qi({},K1)},Vx=function t(e){Object.keys(Ji.secure).forEach(function(i){e[Ji.secure[i]]!==void 0&&(p.debug("Denied attempt to modify a secure key ".concat(Ji.secure[i]),e[Ji.secure[i]]),delete e[Ji.secure[i]])}),Object.keys(e).forEach(function(i){i.indexOf("__")===0&&delete e[i]}),Object.keys(e).forEach(function(i){typeof e[i]=="string"&&(e[i].indexOf("<")>-1||e[i].indexOf(">")>-1||e[i].indexOf("url(data:")>-1)&&delete e[i],Ay(e[i])==="object"&&t(e[i])})},k3=function(t){t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),gh.push(t),Q1(Ji,gh)},J1=function(){Q1(Ji,gh=[])};function Dy(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,u=new Array(e);i<e;i++)u[i]=t[i];return u}var Ny="classid-",Oy=[],$i={},T3=0,tp=[],dd=function(t){var e="",i=t;if(t.indexOf("~")>0){var u=t.split("~");i=u[0],e=vr.sanitizeText(u[1],se())}return{className:i,type:e}},Ly=function(t){var e=dd(t);$i[e.className]===void 0&&($i[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:Ny+e.className+"-"+T3},T3++)},ep=function(t){for(var e=Object.keys($i),i=0;i<e.length;i++)if($i[e[i]].id===t)return $i[e[i]].domId},E3=function(t,e){var i=dd(t).className,u=$i[i];if(typeof e=="string"){var d=e.trim();d.startsWith("<<")&&d.endsWith(">>")?u.annotations.push(d.substring(2,d.length-2)):d.indexOf(")")>0?u.methods.push(d):d&&u.members.push(d)}},By=function(t,e){t.split(",").forEach(function(i){var u=i;i[0].match(/\d/)&&(u=Ny+u),$i[u]!==void 0&&$i[u].cssClasses.push(e)})},Gx=function(t,e,i){var u=se(),d=t,g=ep(d);if(u.securityLevel==="loose"&&e!==void 0&&$i[d]!==void 0){var v=[];if(typeof i=="string"){v=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var w=0;w<v.length;w++){var C=v[w].trim();C.charAt(0)==='"'&&C.charAt(C.length-1)==='"'&&(C=C.substr(1,C.length-2)),v[w]=C}}v.length===0&&v.push(g),tp.push(function(){var S=document.querySelector('[id="'.concat(g,'"]'));S!==null&&S.addEventListener("click",function(){var B;Qn.runFunc.apply(Qn,[e].concat(function(j){if(Array.isArray(j))return Dy(j)}(B=v)||function(j){if(typeof Symbol!="undefined"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}(B)||function(j,P){if(j){if(typeof j=="string")return Dy(j,P);var U=Object.prototype.toString.call(j).slice(8,-1);return U==="Object"&&j.constructor&&(U=j.constructor.name),U==="Map"||U==="Set"?Array.from(j):U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U)?Dy(j,P):void 0}}(B)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)})}},yh={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},Ry=function(t){var e=Se(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Se("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Se(t).select("svg").selectAll("g.node").on("mouseover",function(){var i=Se(this);if(i.attr("title")!==null){var u=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(i.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.top-14+document.body.scrollTop+"px"),i.classed("hover",!0)}}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),Se(this).classed("hover",!1)})};tp.push(Ry);var Iy="TB";const Jo={parseDirective:function(t,e,i){la.parseDirective(this,t,e,i)},getConfig:function(){return se().class},addClass:Ly,bindFunctions:function(t){tp.forEach(function(e){e(t)})},clear:function(){Oy=[],$i={},(tp=[]).push(Ry)},getClass:function(t){return $i[t]},getClasses:function(){return $i},addAnnotation:function(t,e){var i=dd(t).className;$i[i].annotations.push(e)},getRelations:function(){return Oy},addRelation:function(t){p.debug("Adding relation: "+JSON.stringify(t)),Ly(t.id1),Ly(t.id2),t.id1=dd(t.id1).className,t.id2=dd(t.id2).className,t.relationTitle1=vr.sanitizeText(t.relationTitle1.trim(),se()),t.relationTitle2=vr.sanitizeText(t.relationTitle2.trim(),se()),Oy.push(t)},getDirection:function(){return Iy},setDirection:function(t){Iy=t},addMember:E3,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(function(i){return E3(t,i)}))},cleanupLabel:function(t){return t.substring(0,1)===":"?vr.sanitizeText(t.substr(1).trim(),se()):t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:yh,setClickEvent:function(t,e,i){t.split(",").forEach(function(u){Gx(u,e,i),$i[u].haveCallback=!0}),By(t,"clickable")},setCssClass:By,setLink:function(t,e,i){var u=se();t.split(",").forEach(function(d){var g=d;d[0].match(/\d/)&&(g=Ny+g),$i[g]!==void 0&&($i[g].link=Qn.formatUrl(e,u),$i[g].linkTarget=typeof i=="string"?i:"_blank")}),By(t,"clickable")},setTooltip:function(t,e){var i=se();t.split(",").forEach(function(u){e!==void 0&&($i[u].tooltip=vr.sanitizeText(e,i))})},lookUpDomId:ep};var Fy=o(681),pd=o.n(Fy),Zx=o(8282),Mi=o.n(Zx),mh=o(1362),S3=o.n(mh),Py=0,Yy=function(t){var e=t.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),i=t.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return e&&!i?C3(e):i?M3(i):Xx(t)},C3=function(t){var e="",i="";try{var u=t[1]?t[1].trim():"",d=t[2]?t[2].trim():"",g=t[3]?qu(t[3].trim()):"",v=t[4]?t[4].trim():"",w=t[5]?t[5].trim():"";i=u+d+g+" "+v,e=zy(w)}catch{i=t}return{displayText:i,cssStyle:e}},M3=function(t){var e="",i="";try{var u=t[1]?t[1].trim():"",d=t[2]?t[2].trim():"",g=t[3]?qu(t[3].trim()):"",v=t[4]?t[4].trim():"";i=u+d+"("+g+")"+(t[5]?" : "+qu(t[5]).trim():""),e=zy(v)}catch{i=t}return{displayText:i,cssStyle:e}},Xx=function(t){var e="",i="",u="",d=t.indexOf("("),g=t.indexOf(")");if(d>1&&g>d&&g<=t.length){var v="",w="",C=t.substring(0,1);C.match(/\w/)?w=t.substring(0,d).trim():(C.match(/\+|-|~|#/)&&(v=C),w=t.substring(1,d).trim());var S=t.substring(d+1,g),B=t.substring(g+1,1);i=zy(B),e=v+w+"("+qu(S.trim())+")",g<"".length&&(u=t.substring(g+2).trim())!==""&&(u=" : "+qu(u))}else e=qu(t);return{displayText:e,cssStyle:i}},jy=function(t,e,i,u){var d=Yy(e),g=t.append("tspan").attr("x",u.padding).text(d.displayText);d.cssStyle!==""&&g.attr("style",d.cssStyle),i||g.attr("dy",u.textHeight)},qu=function t(e){var i=e;return e.indexOf("~")!=-1?t(i=(i=i.replace("~","<")).replace("~",">")):i},zy=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const Kx=function(t,e,i){p.info("Rendering class "+e);var u,d=e.id,g={id:d,label:e.id,width:0,height:0},v=t.append("g").attr("id",ep(d)).attr("class","classGroup");u=e.link?v.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",i.textHeight+i.padding).attr("x",0):v.append("text").attr("y",i.textHeight+i.padding).attr("x",0);var w=!0;e.annotations.forEach(function(lt){var $t=u.append("tspan").text("\xAB"+lt+"\xBB");w||$t.attr("dy",i.textHeight),w=!1});var C=e.id;e.type!==void 0&&e.type!==""&&(C+="<"+e.type+">");var S=u.append("tspan").text(C).attr("class","title");w||S.attr("dy",i.textHeight);var B=u.node().getBBox().height,j=v.append("line").attr("x1",0).attr("y1",i.padding+B+i.dividerMargin/2).attr("y2",i.padding+B+i.dividerMargin/2),P=v.append("text").attr("x",i.padding).attr("y",B+i.dividerMargin+i.textHeight).attr("fill","white").attr("class","classText");w=!0,e.members.forEach(function(lt){jy(P,lt,w,i),w=!1});var U=P.node().getBBox(),ot=v.append("line").attr("x1",0).attr("y1",i.padding+B+i.dividerMargin+U.height).attr("y2",i.padding+B+i.dividerMargin+U.height),vt=v.append("text").attr("x",i.padding).attr("y",B+2*i.dividerMargin+U.height+i.textHeight).attr("fill","white").attr("class","classText");w=!0,e.methods.forEach(function(lt){jy(vt,lt,w,i),w=!1});var bt=v.node().getBBox(),kt=" ";e.cssClasses.length>0&&(kt+=e.cssClasses.join(" "));var _t=v.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",bt.width+2*i.padding).attr("height",bt.height+i.padding+.5*i.dividerMargin).attr("class",kt).node().getBBox().width;return u.node().childNodes.forEach(function(lt){lt.setAttribute("x",(_t-lt.getBBox().width)/2)}),e.tooltip&&u.insert("title").text(e.tooltip),j.attr("x2",_t),ot.attr("x2",_t),g.width=_t,g.height=bt.height+i.padding+.5*i.dividerMargin,g};mh.parser.yy=Jo;var vh={},ts={dividerMargin:10,padding:5,textHeight:10},gd=function(t){var e=Object.entries(vh).find(function(i){return i[1].label===t});if(e)return e[0]};const Uy=function(t){Object.keys(t).forEach(function(e){ts[e]=t[e]})},A3=function(t,e){vh={},mh.parser.yy.clear(),mh.parser.parse(t),p.info("Rendering diagram "+t);var i,u=Se("[id='".concat(e,"']"));u.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(i=u).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");var d=new(Mi()).Graph({multigraph:!0});d.setGraph({isMultiGraph:!0}),d.setDefaultEdgeLabel(function(){return{}});for(var g=Jo.getClasses(),v=Object.keys(g),w=0;w<v.length;w++){var C=g[v[w]],S=Kx(u,C,ts);vh[S.id]=S,d.setNode(S.id,S),p.info("Org height: "+S.height)}Jo.getRelations().forEach(function(ot){p.info("tjoho"+gd(ot.id1)+gd(ot.id2)+JSON.stringify(ot)),d.setEdge(gd(ot.id1),gd(ot.id2),{relation:ot},ot.title||"DEFAULT")}),pd().layout(d),d.nodes().forEach(function(ot){ot!==void 0&&d.node(ot)!==void 0&&(p.debug("Node "+ot+": "+JSON.stringify(d.node(ot))),Se("#"+ep(ot)).attr("transform","translate("+(d.node(ot).x-d.node(ot).width/2)+","+(d.node(ot).y-d.node(ot).height/2)+" )"))}),d.edges().forEach(function(ot){ot!==void 0&&d.edge(ot)!==void 0&&(p.debug("Edge "+ot.v+" -> "+ot.w+": "+JSON.stringify(d.edge(ot))),function(vt,bt,kt,_t){var lt=function(fn){switch(fn){case yh.AGGREGATION:return"aggregation";case yh.EXTENSION:return"extension";case yh.COMPOSITION:return"composition";case yh.DEPENDENCY:return"dependency"}};bt.points=bt.points.filter(function(fn){return!Number.isNaN(fn.y)});var $t,Lt,gt=bt.points,Bt=xo().x(function(fn){return fn.x}).y(function(fn){return fn.y}).curve(jr),ne=vt.append("path").attr("d",Bt(gt)).attr("id","edge"+Py).attr("class","relation"),At="";_t.arrowMarkerAbsolute&&(At=(At=(At=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),kt.relation.lineType==1&&ne.attr("class","relation dashed-line"),kt.relation.type1!=="none"&&ne.attr("marker-start","url("+At+"#"+lt(kt.relation.type1)+"Start)"),kt.relation.type2!=="none"&&ne.attr("marker-end","url("+At+"#"+lt(kt.relation.type2)+"End)");var Tt,jt,Dt,te,yt=bt.points.length,ue=Qn.calcLabelPosition(bt.points);if($t=ue.x,Lt=ue.y,yt%2!=0&&yt>1){var ve=Qn.calcCardinalityPosition(kt.relation.type1!=="none",bt.points,bt.points[0]),me=Qn.calcCardinalityPosition(kt.relation.type2!=="none",bt.points,bt.points[yt-1]);p.debug("cardinality_1_point "+JSON.stringify(ve)),p.debug("cardinality_2_point "+JSON.stringify(me)),Tt=ve.x,jt=ve.y,Dt=me.x,te=me.y}if(kt.title!==void 0){var De=vt.append("g").attr("class","classLabel"),He=De.append("text").attr("class","label").attr("x",$t).attr("y",Lt).attr("fill","red").attr("text-anchor","middle").text(kt.title);window.label=He;var ze=He.node().getBBox();De.insert("rect",":first-child").attr("class","box").attr("x",ze.x-_t.padding/2).attr("y",ze.y-_t.padding/2).attr("width",ze.width+_t.padding).attr("height",ze.height+_t.padding)}p.info("Rendering relation "+JSON.stringify(kt)),kt.relationTitle1!==void 0&&kt.relationTitle1!=="none"&&vt.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",Tt).attr("y",jt).attr("fill","black").attr("font-size","6").text(kt.relationTitle1),kt.relationTitle2!==void 0&&kt.relationTitle2!=="none"&&vt.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",Dt).attr("y",te).attr("fill","black").attr("font-size","6").text(kt.relationTitle2),Py++}(u,d.edge(ot),d.edge(ot).relation,ts))});var B=u.node().getBBox(),j=B.width+40,P=B.height+40;uo(u,P,j,ts.useMaxWidth);var U="".concat(B.x-20," ").concat(B.y-20," ").concat(j," ").concat(P);p.debug("viewBox ".concat(U)),u.attr("viewBox",U)};var Hy={extension:function(t,e,i){p.trace("Making markers for ",i),t.append("defs").append("marker").attr("id",e+"-extensionStart").attr("class","marker extension "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(t,e){t.append("defs").append("marker").attr("id",e+"-compositionStart").attr("class","marker composition "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(t,e){t.append("defs").append("marker").attr("id",e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(t,e){t.append("defs").append("marker").attr("id",e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},point:function(t,e){t.append("marker").attr("id",e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(t,e){t.append("marker").attr("id",e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(t,e){t.append("marker").attr("id",e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(t,e){t.append("defs").append("marker").attr("id",e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}};const Qx=function(t,e,i,u){e.forEach(function(d){Hy[d](t,i,u)})};function np(t){return np=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},np(t)}const sa=function(t,e,i,u){var d,g,v,w,C,S,B=t||"";if(np(B)==="object"&&(B=B[0]),Oi(se().flowchart.htmlLabels))return B=B.replace(/\\n|\n/g,"<br />"),p.info("vertexText"+B),d={isNode:u,label:B.replace(/fa[lrsb]?:fa-[\w-]+/g,function(vt){return"<i class='".concat(vt.replace(":"," "),"'></i>")}),labelStyle:e.replace("fill:","color:")},v=Se(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),w=v.append("xhtml:div"),C=d.label,S=d.isNode?"nodeLabel":"edgeLabel",w.html('<span class="'+S+'" '+(d.labelStyle?'style="'+d.labelStyle+'"':"")+">"+C+"</span>"),(g=d.labelStyle)&&w.attr("style",g),w.style("display","inline-block"),w.style("white-space","nowrap"),w.attr("xmlns","http://www.w3.org/1999/xhtml"),v.node();var j=document.createElementNS("http://www.w3.org/2000/svg","text");j.setAttribute("style",e.replace("color:","fill:"));var P=[];P=typeof B=="string"?B.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(B)?B:[];for(var U=0;U<P.length;U++){var ot=document.createElementNS("http://www.w3.org/2000/svg","tspan");ot.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ot.setAttribute("dy","1em"),ot.setAttribute("x","0"),i?ot.setAttribute("class","title-row"):ot.setAttribute("class","row"),ot.textContent=P[U].trim(),j.appendChild(ot)}return j};var Oa=function(t,e,i,u){var d;d=i||"node default";var g=t.insert("g").attr("class",d).attr("id",e.domId||e.id),v=g.insert("g").attr("class","label").attr("style",e.labelStyle),w=typeof e.labelText=="string"?e.labelText:e.labelText[0],C=v.node().appendChild(sa(zu(J8(w),se()),e.labelStyle,!1,u)),S=C.getBBox();if(Oi(se().flowchart.htmlLabels)){var B=C.children[0],j=Se(C);S=B.getBoundingClientRect(),j.attr("width",S.width),j.attr("height",S.height)}var P=e.padding/2;return v.attr("transform","translate("+-S.width/2+", "+-S.height/2+")"),{shapeSvg:g,bbox:S,halfPadding:P,label:v}},Li=function(t,e){var i=e.node().getBBox();t.width=i.width,t.height=i.height};function Ss(t,e,i,u){return t.insert("polygon",":first-child").attr("points",u.map(function(d){return d.x+","+d.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+i/2+")")}var dr={},es={},Vn={},rp=function(t,e){return p.trace("In isDecendant",e," ",t," = ",es[e].indexOf(t)>=0),es[e].indexOf(t)>=0},Jx=function t(e,i,u,d){p.warn("Copying children of ",e,"root",d,"data",i.node(e),d);var g=i.children(e)||[];e!==d&&g.push(e),p.warn("Copying (nodes) clusterId",e,"nodes",g),g.forEach(function(v){if(i.children(v).length>0)t(v,i,u,d);else{var w=i.node(v);p.info("cp ",v," to ",d," with parent ",e),u.setNode(v,w),d!==i.parent(v)&&(p.warn("Setting parent",v,i.parent(v)),u.setParent(v,i.parent(v))),e!==d&&v!==e?(p.debug("Setting parent",v,e),u.setParent(v,e)):(p.info("In copy ",e,"root",d,"data",i.node(e),d),p.debug("Not Setting parent for node=",v,"cluster!==rootId",e!==d,"node!==clusterId",v!==e));var C=i.edges(v);p.debug("Copying Edges",C),C.forEach(function(S){p.info("Edge",S);var B=i.edge(S.v,S.w,S.name);p.info("Edge data",B,d);try{(function(j,P){return p.info("Decendants of ",P," is ",es[P]),p.info("Edge is ",j),j.v!==P&&j.w!==P&&(es[P]?(p.info("Here "),es[P].indexOf(j.v)>=0||!!rp(j.v,P)||!!rp(j.w,P)||es[P].indexOf(j.w)>=0):(p.debug("Tilt, ",P,",not in decendants"),!1))})(S,d)?(p.info("Copying as ",S.v,S.w,B,S.name),u.setEdge(S.v,S.w,B,S.name),p.info("newGraph edges ",u.edges(),u.edge(u.edges()[0]))):p.info("Skipping copy of edge ",S.v,"-->",S.w," rootId: ",d," clusterId:",e)}catch(j){p.error(j)}})}p.debug("Removing node",v),i.removeNode(v)})},t6=function t(e,i){for(var u=i.children(e),d=[].concat(u),g=0;g<u.length;g++)Vn[u[g]]=e,d=d.concat(t(u[g],i));return d},ip=function t(e,i){p.trace("Searching",e);var u=i.children(e);if(p.trace("Searching children of id ",e,u),u.length<1)return p.trace("This is a valid node",e),e;for(var d=0;d<u.length;d++){var g=t(u[d],i);if(g)return p.trace("Found replacement for",e," => ",g),g}},D3=function(t){return dr[t]&&dr[t].externalConnections&&dr[t]?dr[t].id:t},e6=function(t,e){!t||e>10?p.debug("Opting out, no graph "):(p.debug("Opting in, graph "),t.nodes().forEach(function(i){t.children(i).length>0&&(p.warn("Cluster identified",i," Replacement id in edges: ",ip(i,t)),es[i]=t6(i,t),dr[i]={id:ip(i,t),clusterData:t.node(i)})}),t.nodes().forEach(function(i){var u=t.children(i),d=t.edges();u.length>0?(p.debug("Cluster identified",i,es),d.forEach(function(g){g.v!==i&&g.w!==i&&rp(g.v,i)^rp(g.w,i)&&(p.warn("Edge: ",g," leaves cluster ",i),p.warn("Decendants of XXX ",i,": ",es[i]),dr[i].externalConnections=!0)})):p.debug("Not a cluster ",i,es)}),t.edges().forEach(function(i){var u=t.edge(i);p.warn("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(i)),p.warn("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(t.edge(i)));var d=i.v,g=i.w;p.warn("Fix XXX",dr,"ids:",i.v,i.w,"Translateing: ",dr[i.v]," --- ",dr[i.w]),(dr[i.v]||dr[i.w])&&(p.warn("Fixing and trixing - removing XXX",i.v,i.w,i.name),d=D3(i.v),g=D3(i.w),t.removeEdge(i.v,i.w,i.name),d!==i.v&&(u.fromCluster=i.v),g!==i.w&&(u.toCluster=i.w),p.warn("Fix Replacing with XXX",d,g,i.name),t.setEdge(d,g,u,i.name))}),p.warn("Adjusted Graph",Mi().json.write(t)),n6(t,0),p.trace(dr))},n6=function t(e,i){if(p.warn("extractor - ",i,Mi().json.write(e),e.children("D")),i>10)p.error("Bailing out");else{for(var u=e.nodes(),d=!1,g=0;g<u.length;g++){var v=u[g],w=e.children(v);d=d||w.length>0}if(d){p.debug("Nodes = ",u,i);for(var C=0;C<u.length;C++){var S=u[C];if(p.debug("Extracting node",S,dr,dr[S]&&!dr[S].externalConnections,!e.parent(S),e.node(S),e.children("D")," Depth ",i),dr[S])if(!dr[S].externalConnections&&e.children(S)&&e.children(S).length>0){p.warn("Cluster without external connections, without a parent and with children",S,i);var B=e.graph().rankdir==="TB"?"LR":"TB";dr[S]&&dr[S].clusterData&&dr[S].clusterData.dir&&(B=dr[S].clusterData.dir,p.warn("Fixing dir",dr[S].clusterData.dir,B));var j=new(Mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:B,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});p.warn("Old graph before copy",Mi().json.write(e)),Jx(S,e,j,S),e.setNode(S,{clusterNode:!0,id:S,clusterData:dr[S].clusterData,labelText:dr[S].labelText,graph:j}),p.warn("New graph after copy node: (",S,")",Mi().json.write(j)),p.debug("Old graph after copy",Mi().json.write(e))}else p.warn("Cluster ** ",S," **not meeting the criteria !externalConnections:",!dr[S].externalConnections," no parent: ",!e.parent(S)," children ",e.children(S)&&e.children(S).length>0,e.children("D"),i),p.debug(dr);else p.debug("Not a cluster",S,i)}u=e.nodes(),p.warn("New list of nodes",u);for(var P=0;P<u.length;P++){var U=u[P],ot=e.node(U);p.warn(" Now next level",U,ot),ot.clusterNode&&t(ot.graph,i+1)}}else p.debug("Done, no node has children",e.nodes())}},r6=function t(e,i){if(i.length===0)return[];var u=Object.assign(i);return i.forEach(function(d){var g=e.children(d),v=t(e,g);u=u.concat(v)}),u},i6=function(t){return r6(t,t.children())},a6=o(3841);const Wr=function(t,e,i,u){var d=t.x,g=t.y,v=d-u.x,w=g-u.y,C=Math.sqrt(e*e*w*w+i*i*v*v),S=Math.abs(e*i*v/C);u.x<d&&(S=-S);var B=Math.abs(e*i*w/C);return u.y<g&&(B=-B),{x:d+S,y:g+B}};function $y(t,e){return t*e>0}const o6=function(t,e,i,u){var d,g,v,w,C,S,B,j,P,U,ot,vt,bt;if(d=e.y-t.y,v=t.x-e.x,C=e.x*t.y-t.x*e.y,P=d*i.x+v*i.y+C,U=d*u.x+v*u.y+C,!(P!==0&&U!==0&&$y(P,U)||(g=u.y-i.y,w=i.x-u.x,S=u.x*i.y-i.x*u.y,B=g*t.x+w*t.y+S,j=g*e.x+w*e.y+S,B!==0&&j!==0&&$y(B,j)||(ot=d*w-g*v)==0)))return vt=Math.abs(ot/2),{x:(bt=v*S-w*C)<0?(bt-vt)/ot:(bt+vt)/ot,y:(bt=g*C-d*S)<0?(bt-vt)/ot:(bt+vt)/ot}},_h=function(t,e){var i,u,d=t.x,g=t.y,v=e.x-d,w=e.y-g,C=t.width/2,S=t.height/2;return Math.abs(w)*C>Math.abs(v)*S?(w<0&&(S=-S),i=w===0?0:S*v/w,u=S):(v<0&&(C=-C),i=C,u=v===0?0:C*w/v),{x:d+i,y:g+u}},ap=(o.n(a6)(),function(t,e,i){return Wr(t,e,e,i)}),Cs=function(t,e,i){var u=t.x,d=t.y,g=[],v=Number.POSITIVE_INFINITY,w=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(ot){v=Math.min(v,ot.x),w=Math.min(w,ot.y)}):(v=Math.min(v,e.x),w=Math.min(w,e.y));for(var C=u-t.width/2-v,S=d-t.height/2-w,B=0;B<e.length;B++){var j=e[B],P=e[B<e.length-1?B+1:0],U=o6(t,i,{x:C+j.x,y:S+j.y},{x:C+P.x,y:S+P.y});U&&g.push(U)}return g.length?(g.length>1&&g.sort(function(ot,vt){var bt=ot.x-i.x,kt=ot.y-i.y,_t=Math.sqrt(bt*bt+kt*kt),lt=vt.x-i.x,$t=vt.y-i.y,Lt=Math.sqrt(lt*lt+$t*$t);return _t<Lt?-1:_t===Lt?0:1}),g[0]):t},Vu=_h;function yd(t){return yd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yd(t)}var N3=function(t,e,i){var u=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),d=70,g=10;i==="LR"&&(d=10,g=70);var v=u.append("rect").attr("x",-1*d/2).attr("y",-1*g/2).attr("width",d).attr("height",g).attr("class","fork-join");return Li(e,v),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(w){return Vu(e,w)},u},Wy={question:function(t,e){var i=Oa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding+(d.height+e.padding),v=[{x:g/2,y:0},{x:g,y:-g/2},{x:g/2,y:-g},{x:0,y:-g/2}];p.info("Question main (Circle)");var w=Ss(u,g,g,v);return w.attr("style",e.style),Li(e,w),e.intersect=function(C){return p.warn("Intersect called"),Cs(e,v,C)},u},rect:function(t,e){var i=Oa(t,e,"node "+e.classes,!0),u=i.shapeSvg,d=i.bbox,g=i.halfPadding;p.trace("Classes = ",e.classes);var v=u.insert("rect",":first-child"),w=d.width+e.padding,C=d.height+e.padding;if(v.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-d.width/2-g).attr("y",-d.height/2-g).attr("width",w).attr("height",C),e.props){var S=new Set(Object.keys(e.props));e.props.borders&&(function(B,j,P,U){var ot=[],vt=function(kt){ot.push(kt),ot.push(0)},bt=function(kt){ot.push(0),ot.push(kt)};j.includes("t")?(p.debug("add top border"),vt(P)):bt(P),j.includes("r")?(p.debug("add right border"),vt(U)):bt(U),j.includes("b")?(p.debug("add bottom border"),vt(P)):bt(P),j.includes("l")?(p.debug("add left border"),vt(U)):bt(U),B.attr("stroke-dasharray",ot.join(" "))}(v,e.props.borders,w,C),S.delete("borders")),S.forEach(function(B){p.warn("Unknown node property ".concat(B))})}return Li(e,v),e.intersect=function(B){return Vu(e,B)},u},rectWithTitle:function(t,e){var i;i=e.classes?"node "+e.classes:"node default";var u,d=t.insert("g").attr("class",i).attr("id",e.domId||e.id),g=d.insert("rect",":first-child"),v=d.insert("line"),w=d.insert("g").attr("class","label"),C=e.labelText.flat?e.labelText.flat():e.labelText;u=yd(C)==="object"?C[0]:C,p.info("Label text abc79",u,C,yd(C)==="object");var S=w.node().appendChild(sa(u,e.labelStyle,!0,!0)),B={width:0,height:0};if(Oi(se().flowchart.htmlLabels)){var j=S.children[0],P=Se(S);B=j.getBoundingClientRect(),P.attr("width",B.width),P.attr("height",B.height)}p.info("Text 2",C);var U=C.slice(1,C.length),ot=S.getBBox(),vt=w.node().appendChild(sa(U.join?U.join("<br/>"):U,e.labelStyle,!0,!0));if(Oi(se().flowchart.htmlLabels)){var bt=vt.children[0],kt=Se(vt);B=bt.getBoundingClientRect(),kt.attr("width",B.width),kt.attr("height",B.height)}var _t=e.padding/2;return Se(vt).attr("transform","translate( "+(B.width>ot.width?0:(ot.width-B.width)/2)+", "+(ot.height+_t+5)+")"),Se(S).attr("transform","translate( "+(B.width<ot.width?0:-(ot.width-B.width)/2)+", 0)"),B=w.node().getBBox(),w.attr("transform","translate("+-B.width/2+", "+(-B.height/2-_t+3)+")"),g.attr("class","outer title-state").attr("x",-B.width/2-_t).attr("y",-B.height/2-_t).attr("width",B.width+e.padding).attr("height",B.height+e.padding),v.attr("class","divider").attr("x1",-B.width/2-_t).attr("x2",B.width/2+_t).attr("y1",-B.height/2-_t+ot.height+_t).attr("y2",-B.height/2-_t+ot.height+_t),Li(e,g),e.intersect=function(lt){return Vu(e,lt)},d},choice:function(t,e){var i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return i.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(u){return u.x+","+u.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(u){return ap(e,14,u)},i},circle:function(t,e){var i=Oa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=i.halfPadding,v=u.insert("circle",":first-child");return v.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",d.width/2+g).attr("width",d.width+e.padding).attr("height",d.height+e.padding),p.info("Circle main"),Li(e,v),e.intersect=function(w){return p.info("Circle intersect",e,d.width/2+g,w),ap(e,d.width/2+g,w)},u},stadium:function(t,e){var i=Oa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.height+e.padding,v=d.width+g/4+e.padding,w=u.insert("rect",":first-child").attr("style",e.style).attr("rx",g/2).attr("ry",g/2).attr("x",-v/2).attr("y",-g/2).attr("width",v).attr("height",g);return Li(e,w),e.intersect=function(C){return Vu(e,C)},u},hexagon:function(t,e){var i=Oa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.height+e.padding,v=g/4,w=d.width+2*v+e.padding,C=[{x:v,y:0},{x:w-v,y:0},{x:w,y:-g/2},{x:w-v,y:-g},{x:v,y:-g},{x:0,y:-g/2}],S=Ss(u,w,g,C);return S.attr("style",e.style),Li(e,S),e.intersect=function(B){return Cs(e,C,B)},u},rect_left_inv_arrow:function(t,e){var i=Oa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=d.height+e.padding,w=[{x:-v/2,y:0},{x:g,y:0},{x:g,y:-v},{x:-v/2,y:-v},{x:0,y:-v/2}];return Ss(u,g,v,w).attr("style",e.style),e.width=g+v,e.height=v,e.intersect=function(C){return Cs(e,w,C)},u},lean_right:function(t,e){var i=Oa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=d.height+e.padding,w=[{x:-2*v/6,y:0},{x:g-v/6,y:0},{x:g+2*v/6,y:-v},{x:v/6,y:-v}],C=Ss(u,g,v,w);return C.attr("style",e.style),Li(e,C),e.intersect=function(S){return Cs(e,w,S)},u},lean_left:function(t,e){var i=Oa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=d.height+e.padding,w=[{x:2*v/6,y:0},{x:g+v/6,y:0},{x:g-2*v/6,y:-v},{x:-v/6,y:-v}],C=Ss(u,g,v,w);return C.attr("style",e.style),Li(e,C),e.intersect=function(S){return Cs(e,w,S)},u},trapezoid:function(t,e){var i=Oa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=d.height+e.padding,w=[{x:-2*v/6,y:0},{x:g+2*v/6,y:0},{x:g-v/6,y:-v},{x:v/6,y:-v}],C=Ss(u,g,v,w);return C.attr("style",e.style),Li(e,C),e.intersect=function(S){return Cs(e,w,S)},u},inv_trapezoid:function(t,e){var i=Oa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=d.height+e.padding,w=[{x:v/6,y:0},{x:g-v/6,y:0},{x:g+2*v/6,y:-v},{x:-2*v/6,y:-v}],C=Ss(u,g,v,w);return C.attr("style",e.style),Li(e,C),e.intersect=function(S){return Cs(e,w,S)},u},rect_right_inv_arrow:function(t,e){var i=Oa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=d.height+e.padding,w=[{x:0,y:0},{x:g+v/2,y:0},{x:g,y:-v/2},{x:g+v/2,y:-v},{x:0,y:-v}],C=Ss(u,g,v,w);return C.attr("style",e.style),Li(e,C),e.intersect=function(S){return Cs(e,w,S)},u},cylinder:function(t,e){var i=Oa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=g/2,w=v/(2.5+g/50),C=d.height+w+e.padding,S="M 0,"+w+" a "+v+","+w+" 0,0,0 "+g+" 0 a "+v+","+w+" 0,0,0 "+-g+" 0 l 0,"+C+" a "+v+","+w+" 0,0,0 "+g+" 0 l 0,"+-C,B=u.attr("label-offset-y",w).insert("path",":first-child").attr("style",e.style).attr("d",S).attr("transform","translate("+-g/2+","+-(C/2+w)+")");return Li(e,B),e.intersect=function(j){var P=Vu(e,j),U=P.x-e.x;if(v!=0&&(Math.abs(U)<e.width/2||Math.abs(U)==e.width/2&&Math.abs(P.y-e.y)>e.height/2-w)){var ot=w*w*(1-U*U/(v*v));ot!=0&&(ot=Math.sqrt(ot)),ot=w-ot,j.y-e.y>0&&(ot=-ot),P.y+=ot}return P},u},start:function(t,e){var i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),u=i.insert("circle",":first-child");return u.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Li(e,u),e.intersect=function(d){return ap(e,7,d)},i},end:function(t,e){var i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),u=i.insert("circle",":first-child"),d=i.insert("circle",":first-child");return d.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),u.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Li(e,d),e.intersect=function(g){return ap(e,7,g)},i},note:function(t,e){var i=Oa(t,e,"node "+e.classes,!0),u=i.shapeSvg,d=i.bbox,g=i.halfPadding;p.info("Classes = ",e.classes);var v=u.insert("rect",":first-child");return v.attr("rx",e.rx).attr("ry",e.ry).attr("x",-d.width/2-g).attr("y",-d.height/2-g).attr("width",d.width+e.padding).attr("height",d.height+e.padding),Li(e,v),e.intersect=function(w){return Vu(e,w)},u},subroutine:function(t,e){var i=Oa(t,e,void 0,!0),u=i.shapeSvg,d=i.bbox,g=d.width+e.padding,v=d.height+e.padding,w=[{x:0,y:0},{x:g,y:0},{x:g,y:-v},{x:0,y:-v},{x:0,y:0},{x:-8,y:0},{x:g+8,y:0},{x:g+8,y:-v},{x:-8,y:-v},{x:-8,y:0}],C=Ss(u,g,v,w);return C.attr("style",e.style),Li(e,C),e.intersect=function(S){return Cs(e,w,S)},u},fork:N3,join:N3,class_box:function(t,e){var i,u=e.padding/2;i=e.classes?"node "+e.classes:"node default";var d=t.insert("g").attr("class",i).attr("id",e.domId||e.id),g=d.insert("rect",":first-child"),v=d.insert("line"),w=d.insert("line"),C=0,S=4,B=d.insert("g").attr("class","label"),j=0,P=e.classData.annotations&&e.classData.annotations[0],U=e.classData.annotations[0]?"\xAB"+e.classData.annotations[0]+"\xBB":"",ot=B.node().appendChild(sa(U,e.labelStyle,!0,!0)),vt=ot.getBBox();if(Oi(se().flowchart.htmlLabels)){var bt=ot.children[0],kt=Se(ot);vt=bt.getBoundingClientRect(),kt.attr("width",vt.width),kt.attr("height",vt.height)}e.classData.annotations[0]&&(S+=vt.height+4,C+=vt.width);var _t=e.classData.id;e.classData.type!==void 0&&e.classData.type!==""&&(se().flowchart.htmlLabels?_t+="&lt;"+e.classData.type+"&gt;":_t+="<"+e.classData.type+">");var lt=B.node().appendChild(sa(_t,e.labelStyle,!0,!0));Se(lt).attr("class","classTitle");var $t=lt.getBBox();if(Oi(se().flowchart.htmlLabels)){var Lt=lt.children[0],gt=Se(lt);$t=Lt.getBoundingClientRect(),gt.attr("width",$t.width),gt.attr("height",$t.height)}S+=$t.height+4,$t.width>C&&(C=$t.width);var Bt=[];e.classData.members.forEach(function(jt){var Dt=Yy(jt),te=Dt.displayText;se().flowchart.htmlLabels&&(te=te.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var yt=B.node().appendChild(sa(te,Dt.cssStyle?Dt.cssStyle:e.labelStyle,!0,!0)),ue=yt.getBBox();if(Oi(se().flowchart.htmlLabels)){var ve=yt.children[0],me=Se(yt);ue=ve.getBoundingClientRect(),me.attr("width",ue.width),me.attr("height",ue.height)}ue.width>C&&(C=ue.width),S+=ue.height+4,Bt.push(yt)}),S+=8;var ne=[];if(e.classData.methods.forEach(function(jt){var Dt=Yy(jt),te=Dt.displayText;se().flowchart.htmlLabels&&(te=te.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var yt=B.node().appendChild(sa(te,Dt.cssStyle?Dt.cssStyle:e.labelStyle,!0,!0)),ue=yt.getBBox();if(Oi(se().flowchart.htmlLabels)){var ve=yt.children[0],me=Se(yt);ue=ve.getBoundingClientRect(),me.attr("width",ue.width),me.attr("height",ue.height)}ue.width>C&&(C=ue.width),S+=ue.height+4,ne.push(yt)}),S+=8,P){var At=(C-vt.width)/2;Se(ot).attr("transform","translate( "+(-1*C/2+At)+", "+-1*S/2+")"),j=vt.height+4}var Tt=(C-$t.width)/2;return Se(lt).attr("transform","translate( "+(-1*C/2+Tt)+", "+(-1*S/2+j)+")"),j+=$t.height+4,v.attr("class","divider").attr("x1",-C/2-u).attr("x2",C/2+u).attr("y1",-S/2-u+8+j).attr("y2",-S/2-u+8+j),j+=8,Bt.forEach(function(jt){Se(jt).attr("transform","translate( "+-C/2+", "+(-1*S/2+j+4)+")"),j+=$t.height+4}),j+=8,w.attr("class","divider").attr("x1",-C/2-u).attr("x2",C/2+u).attr("y1",-S/2-u+8+j).attr("y2",-S/2-u+8+j),j+=8,ne.forEach(function(jt){Se(jt).attr("transform","translate( "+-C/2+", "+(-1*S/2+j)+")"),j+=$t.height+4}),g.attr("class","outer title-state").attr("x",-C/2-u).attr("y",-S/2-u).attr("width",C+e.padding).attr("height",S+e.padding),Li(e,g),e.intersect=function(jt){return Vu(e,jt)},d}},bh={},qy=function(t){var e=bh[t.id];p.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");var i=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+i-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),i},s6={rect:function(t,e){p.trace("Creating subgraph rect for ",e.id,e);var i=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),u=i.insert("rect",":first-child"),d=i.insert("g").attr("class","cluster-label"),g=d.node().appendChild(sa(e.labelText,e.labelStyle,void 0,!0)),v=g.getBBox();if(Oi(se().flowchart.htmlLabels)){var w=g.children[0],C=Se(g);v=w.getBoundingClientRect(),C.attr("width",v.width),C.attr("height",v.height)}var S=0*e.padding,B=S/2,j=e.width<=v.width+S?v.width+S:e.width;e.width<=v.width+S?e.diff=(v.width-e.width)/2:e.diff=-e.padding/2,p.trace("Data ",e,JSON.stringify(e)),u.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-j/2).attr("y",e.y-e.height/2-B).attr("width",j).attr("height",e.height+S),d.attr("transform","translate("+(e.x-v.width/2)+", "+(e.y-e.height/2+e.padding/3)+")");var P=u.node().getBBox();return e.width=P.width,e.height=P.height,e.intersect=function(U){return _h(e,U)},i},roundedWithTitle:function(t,e){var i=t.insert("g").attr("class",e.classes).attr("id",e.id),u=i.insert("rect",":first-child"),d=i.insert("g").attr("class","cluster-label"),g=i.append("rect"),v=d.node().appendChild(sa(e.labelText,e.labelStyle,void 0,!0)),w=v.getBBox();if(Oi(se().flowchart.htmlLabels)){var C=v.children[0],S=Se(v);w=C.getBoundingClientRect(),S.attr("width",w.width),S.attr("height",w.height)}w=v.getBBox();var B=0*e.padding,j=B/2,P=e.width<=w.width+e.padding?w.width+e.padding:e.width;e.width<=w.width+e.padding?e.diff=(w.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,u.attr("class","outer").attr("x",e.x-P/2-j).attr("y",e.y-e.height/2-j).attr("width",P+B).attr("height",e.height+B),g.attr("class","inner").attr("x",e.x-P/2-j).attr("y",e.y-e.height/2-j+w.height-1).attr("width",P+B).attr("height",e.height+B-w.height-3),d.attr("transform","translate("+(e.x-w.width/2)+", "+(e.y-e.height/2-e.padding/3+(Oi(se().flowchart.htmlLabels)?5:3))+")");var U=u.node().getBBox();return e.height=U.height,e.intersect=function(ot){return _h(e,ot)},i},noteGroup:function(t,e){var i=t.insert("g").attr("class","note-cluster").attr("id",e.id),u=i.insert("rect",":first-child"),d=0*e.padding,g=d/2;u.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-g).attr("y",e.y-e.height/2-g).attr("width",e.width+d).attr("height",e.height+d).attr("fill","none");var v=u.node().getBBox();return e.width=v.width,e.height=v.height,e.intersect=function(w){return _h(e,w)},i},divider:function(t,e){var i=t.insert("g").attr("class",e.classes).attr("id",e.id),u=i.insert("rect",":first-child"),d=0*e.padding,g=d/2;u.attr("class","divider").attr("x",e.x-e.width/2-g).attr("y",e.y-e.height/2).attr("width",e.width+d).attr("height",e.height+d);var v=u.node().getBBox();return e.width=v.width,e.height=v.height,e.diff=-e.padding/2,e.intersect=function(w){return _h(e,w)},i}},Vy={},op={},ta={},c6=function(t,e){var i=sa(e.label,e.labelStyle),u=t.insert("g").attr("class","edgeLabel"),d=u.insert("g").attr("class","label");d.node().appendChild(i);var g,v=i.getBBox();if(Oi(se().flowchart.htmlLabels)){var w=i.children[0],C=Se(i);v=w.getBoundingClientRect(),C.attr("width",v.width),C.attr("height",v.height)}if(d.attr("transform","translate("+-v.width/2+", "+-v.height/2+")"),op[e.id]=u,e.width=v.width,e.height=v.height,e.startLabelLeft){var S=sa(e.startLabelLeft,e.labelStyle),B=t.insert("g").attr("class","edgeTerminals"),j=B.insert("g").attr("class","inner");g=j.node().appendChild(S);var P=S.getBBox();j.attr("transform","translate("+-P.width/2+", "+-P.height/2+")"),ta[e.id]||(ta[e.id]={}),ta[e.id].startLeft=B,md(g,e.startLabelLeft)}if(e.startLabelRight){var U=sa(e.startLabelRight,e.labelStyle),ot=t.insert("g").attr("class","edgeTerminals"),vt=ot.insert("g").attr("class","inner");g=ot.node().appendChild(U),vt.node().appendChild(U);var bt=U.getBBox();vt.attr("transform","translate("+-bt.width/2+", "+-bt.height/2+")"),ta[e.id]||(ta[e.id]={}),ta[e.id].startRight=ot,md(g,e.startLabelRight)}if(e.endLabelLeft){var kt=sa(e.endLabelLeft,e.labelStyle),_t=t.insert("g").attr("class","edgeTerminals"),lt=_t.insert("g").attr("class","inner");g=lt.node().appendChild(kt);var $t=kt.getBBox();lt.attr("transform","translate("+-$t.width/2+", "+-$t.height/2+")"),_t.node().appendChild(kt),ta[e.id]||(ta[e.id]={}),ta[e.id].endLeft=_t,md(g,e.endLabelLeft)}if(e.endLabelRight){var Lt=sa(e.endLabelRight,e.labelStyle),gt=t.insert("g").attr("class","edgeTerminals"),Bt=gt.insert("g").attr("class","inner");g=Bt.node().appendChild(Lt);var ne=Lt.getBBox();Bt.attr("transform","translate("+-ne.width/2+", "+-ne.height/2+")"),gt.node().appendChild(Lt),ta[e.id]||(ta[e.id]={}),ta[e.id].endRight=gt,md(g,e.endLabelRight)}};function md(t,e){se().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}var u6=function(t,e){p.info("Moving label abc78 ",t.id,t.label,op[t.id]);var i=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){var u=op[t.id],d=t.x,g=t.y;if(i){var v=Qn.calcLabelPosition(i);p.info("Moving label from (",d,",",g,") to (",v.x,",",v.y,") abc78")}u.attr("transform","translate("+d+", "+g+")")}if(t.startLabelLeft){var w=ta[t.id].startLeft,C=t.x,S=t.y;if(i){var B=Qn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",i);C=B.x,S=B.y}w.attr("transform","translate("+C+", "+S+")")}if(t.startLabelRight){var j=ta[t.id].startRight,P=t.x,U=t.y;if(i){var ot=Qn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",i);P=ot.x,U=ot.y}j.attr("transform","translate("+P+", "+U+")")}if(t.endLabelLeft){var vt=ta[t.id].endLeft,bt=t.x,kt=t.y;if(i){var _t=Qn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",i);bt=_t.x,kt=_t.y}vt.attr("transform","translate("+bt+", "+kt+")")}if(t.endLabelRight){var lt=ta[t.id].endRight,$t=t.x,Lt=t.y;if(i){var gt=Qn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",i);$t=gt.x,Lt=gt.y}lt.attr("transform","translate("+$t+", "+Lt+")")}},Gy=function(t,e){p.warn("abc88 cutPathAtIntersect",t,e);var i=[],u=t[0],d=!1;return t.forEach(function(g){if(p.info("abc88 checking point",g,e),function(C,S){var B=C.x,j=C.y,P=Math.abs(S.x-B),U=Math.abs(S.y-j),ot=C.width/2,vt=C.height/2;return P>=ot||U>=vt}(e,g)||d)p.warn("abc88 outside",g,u),u=g,d||i.push(g);else{var v=function(C,S,B){p.warn(`intersection calc abc89:
outsidePoint: `.concat(JSON.stringify(S),`
insidePoint : `).concat(JSON.stringify(B),`
node : x:`).concat(C.x," y:").concat(C.y," w:").concat(C.width," h:").concat(C.height));var j=C.x,P=C.y,U=Math.abs(j-B.x),ot=C.width/2,vt=B.x<S.x?ot-U:ot+U,bt=C.height/2,kt=Math.abs(S.y-B.y),_t=Math.abs(S.x-B.x);if(Math.abs(P-S.y)*ot>Math.abs(j-S.x)*bt){var lt=B.y<S.y?S.y-bt-P:P-bt-S.y;vt=_t*lt/kt;var $t={x:B.x<S.x?B.x+vt:B.x-_t+vt,y:B.y<S.y?B.y+kt-lt:B.y-kt+lt};return vt===0&&($t.x=S.x,$t.y=S.y),_t===0&&($t.x=S.x),kt===0&&($t.y=S.y),p.warn("abc89 topp/bott calc, Q ".concat(kt,", q ").concat(lt,", R ").concat(_t,", r ").concat(vt),$t),$t}var Lt=kt*(vt=B.x<S.x?S.x-ot-j:j-ot-S.x)/_t,gt=B.x<S.x?B.x+_t-vt:B.x-_t+vt,Bt=B.y<S.y?B.y+Lt:B.y-Lt;return p.warn("sides calc abc89, Q ".concat(kt,", q ").concat(Lt,", R ").concat(_t,", r ").concat(vt),{_x:gt,_y:Bt}),vt===0&&(gt=S.x,Bt=S.y),_t===0&&(gt=S.x),kt===0&&(Bt=S.y),{x:gt,y:Bt}}(e,u,g);p.warn("abc88 inside",g,u,v),p.warn("abc88 intersection",v);var w=!1;i.forEach(function(C){w=w||C.x===v.x&&C.y===v.y}),i.find(function(C){return C.x===v.x&&C.y===v.y})?p.warn("abc88 no intersect",v,i):i.push(v),d=!0}}),p.warn("abc88 returning points",i),i},l6=function t(e,i,u,d){p.info("Graph in recursive render: XXX",Mi().json.write(i),d);var g=i.graph().rankdir;p.trace("Dir in recursive render - dir:",g);var v=e.insert("g").attr("class","root");i.nodes()?p.info("Recursive render XXX",i.nodes()):p.info("No nodes found for",i),i.edges().length>0&&p.trace("Recursive edges",i.edge(i.edges()[0]));var w=v.insert("g").attr("class","clusters"),C=v.insert("g").attr("class","edgePaths"),S=v.insert("g").attr("class","edgeLabels"),B=v.insert("g").attr("class","nodes");i.nodes().forEach(function(P){var U=i.node(P);if(d!==void 0){var ot=JSON.parse(JSON.stringify(d.clusterData));p.info("Setting data for cluster XXX (",P,") ",ot,d),i.setNode(d.id,ot),i.parent(P)||(p.trace("Setting parent",P,d.id),i.setParent(P,d.id,ot))}if(p.info("(Insert) Node XXX"+P+": "+JSON.stringify(i.node(P))),U&&U.clusterNode){p.info("Cluster identified",P,U.width,i.node(P));var vt=t(B,U.graph,u,i.node(P)),bt=vt.elem;Li(U,bt),U.diff=vt.diff||0,p.info("Node bounds (abc123)",P,U,U.width,U.x,U.y),function(kt,_t){bh[_t.id]=kt}(bt,U),p.warn("Recursive render complete ",bt,U)}else i.children(P).length>0?(p.info("Cluster - the non recursive path XXX",P,U.id,U,i),p.info(ip(U.id,i)),dr[U.id]={id:ip(U.id,i),node:U}):(p.info("Node - the non recursive path",P,U.id,U),function(kt,_t,lt){var $t,Lt;_t.link?($t=kt.insert("svg:a").attr("xlink:href",_t.link).attr("target",_t.linkTarget||"_blank"),Lt=Wy[_t.shape]($t,_t,lt)):$t=Lt=Wy[_t.shape](kt,_t,lt),_t.tooltip&&Lt.attr("title",_t.tooltip),_t.class&&Lt.attr("class","node default "+_t.class),bh[_t.id]=$t,_t.haveCallback&&bh[_t.id].attr("class",bh[_t.id].attr("class")+" clickable")}(B,i.node(P),g))}),i.edges().forEach(function(P){var U=i.edge(P.v,P.w,P.name);p.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(P)),p.info("Edge "+P.v+" -> "+P.w+": ",P," ",JSON.stringify(i.edge(P))),p.info("Fix",dr,"ids:",P.v,P.w,"Translateing: ",dr[P.v],dr[P.w]),c6(S,U)}),i.edges().forEach(function(P){p.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(P))}),p.info("#############################################"),p.info("### Layout ###"),p.info("#############################################"),p.info(i),pd().layout(i),p.info("Graph after layout:",Mi().json.write(i));var j=0;return i6(i).forEach(function(P){var U=i.node(P);p.info("Position "+P+": "+JSON.stringify(i.node(P))),p.info("Position "+P+": ("+U.x,","+U.y,") width: ",U.width," height: ",U.height),U&&U.clusterNode?qy(U):i.children(P).length>0?(function(ot,vt){p.trace("Inserting cluster");var bt=vt.shape||"rect";Vy[vt.id]=s6[bt](ot,vt)}(w,U),dr[U.id].node=U):qy(U)}),i.edges().forEach(function(P){var U=i.edge(P);p.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(U),U);var ot=function(vt,bt,kt,_t,lt,$t){var Lt=kt.points,gt=!1,Bt=$t.node(bt.v),ne=$t.node(bt.w);p.info("abc88 InsertEdge: ",kt),ne.intersect&&Bt.intersect&&((Lt=Lt.slice(1,kt.points.length-1)).unshift(Bt.intersect(Lt[0])),p.info("Last point",Lt[Lt.length-1],ne,ne.intersect(Lt[Lt.length-1])),Lt.push(ne.intersect(Lt[Lt.length-1]))),kt.toCluster&&(p.info("to cluster abc88",_t[kt.toCluster]),Lt=Gy(kt.points,_t[kt.toCluster].node),gt=!0),kt.fromCluster&&(p.info("from cluster abc88",_t[kt.fromCluster]),Lt=Gy(Lt.reverse(),_t[kt.fromCluster].node).reverse(),gt=!0);var At,Tt=Lt.filter(function(ve){return!Number.isNaN(ve.y)});At=(lt==="graph"||lt==="flowchart")&&kt.curve||jr;var jt,Dt=xo().x(function(ve){return ve.x}).y(function(ve){return ve.y}).curve(At);switch(kt.thickness){case"normal":jt="edge-thickness-normal";break;case"thick":jt="edge-thickness-thick";break;default:jt=""}switch(kt.pattern){case"solid":jt+=" edge-pattern-solid";break;case"dotted":jt+=" edge-pattern-dotted";break;case"dashed":jt+=" edge-pattern-dashed"}var te=vt.append("path").attr("d",Dt(Tt)).attr("id",kt.id).attr("class"," "+jt+(kt.classes?" "+kt.classes:"")).attr("style",kt.style),yt="";switch(se().state.arrowMarkerAbsolute&&(yt=(yt=(yt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),p.info("arrowTypeStart",kt.arrowTypeStart),p.info("arrowTypeEnd",kt.arrowTypeEnd),kt.arrowTypeStart){case"arrow_cross":te.attr("marker-start","url("+yt+"#"+lt+"-crossStart)");break;case"arrow_point":te.attr("marker-start","url("+yt+"#"+lt+"-pointStart)");break;case"arrow_barb":te.attr("marker-start","url("+yt+"#"+lt+"-barbStart)");break;case"arrow_circle":te.attr("marker-start","url("+yt+"#"+lt+"-circleStart)");break;case"aggregation":te.attr("marker-start","url("+yt+"#"+lt+"-aggregationStart)");break;case"extension":te.attr("marker-start","url("+yt+"#"+lt+"-extensionStart)");break;case"composition":te.attr("marker-start","url("+yt+"#"+lt+"-compositionStart)");break;case"dependency":te.attr("marker-start","url("+yt+"#"+lt+"-dependencyStart)")}switch(kt.arrowTypeEnd){case"arrow_cross":te.attr("marker-end","url("+yt+"#"+lt+"-crossEnd)");break;case"arrow_point":te.attr("marker-end","url("+yt+"#"+lt+"-pointEnd)");break;case"arrow_barb":te.attr("marker-end","url("+yt+"#"+lt+"-barbEnd)");break;case"arrow_circle":te.attr("marker-end","url("+yt+"#"+lt+"-circleEnd)");break;case"aggregation":te.attr("marker-end","url("+yt+"#"+lt+"-aggregationEnd)");break;case"extension":te.attr("marker-end","url("+yt+"#"+lt+"-extensionEnd)");break;case"composition":te.attr("marker-end","url("+yt+"#"+lt+"-compositionEnd)");break;case"dependency":te.attr("marker-end","url("+yt+"#"+lt+"-dependencyEnd)")}var ue={};return gt&&(ue.updatedPath=Lt),ue.originalPath=kt.points,ue}(C,P,U,dr,u,i);u6(U,ot)}),i.nodes().forEach(function(P){var U=i.node(P);p.info(P,U.type,U.diff),U.type==="group"&&(j=U.diff)}),{elem:v,diff:j}},sp=function(t,e,i,u,d){Qx(t,i,u,d),bh={},op={},ta={},Vy={},es={},Vn={},dr={},p.warn("Graph at first:",Mi().json.write(e)),e6(e),p.warn("Graph after:",Mi().json.write(e)),l6(t,e,u)};mh.parser.yy=Jo;var O3={dividerMargin:10,padding:5,textHeight:10};function Zy(t){var e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;default:e="none"}return e}var vd={},cp=[],Xy="",Ky=function(t){return vd[t]===void 0&&(vd[t]={attributes:[]},p.info("Added new entity :",t)),vd[t]};const Wa={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,i){la.parseDirective(this,t,e,i)},getConfig:function(){return se().er},addEntity:Ky,addAttributes:function(t,e){var i,u=Ky(t);for(i=e.length-1;i>=0;i--)u.attributes.push(e[i]),p.debug("Added attribute ",e[i].attributeName)},getEntities:function(){return vd},addRelationship:function(t,e,i,u){var d={entityA:t,roleA:e,entityB:i,relSpec:u};cp.push(d),p.debug("Added new relationship :",d)},getRelationships:function(){return cp},clear:function(){vd={},cp=[],Xy=""},setTitle:function(t){Xy=t},getTitle:function(){return Xy}};var L3=o(5890),B3=o.n(L3),Ms={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"};const Vc=Ms;var zr={},R3=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},Qy=0;const I3=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)zr[e[i]]=t[e[i]]},F3=function(t,e){p.info("Drawing ER diagram"),Wa.clear();var i=B3().parser;i.yy=Wa;try{i.parse(t)}catch{p.debug("Parsing failed")}var u,d=Se("[id='".concat(e,"']"));(function(j,P){var U;j.append("defs").append("marker").attr("id",Ms.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),j.append("defs").append("marker").attr("id",Ms.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(U=j.append("defs").append("marker").attr("id",Ms.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",P.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),U.append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(U=j.append("defs").append("marker").attr("id",Ms.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",P.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),U.append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M21,0 L21,18"),j.append("defs").append("marker").attr("id",Ms.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),j.append("defs").append("marker").attr("id",Ms.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(U=j.append("defs").append("marker").attr("id",Ms.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",P.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),U.append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(U=j.append("defs").append("marker").attr("id",Ms.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",P.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),U.append("path").attr("stroke",P.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(d,zr),u=new(Mi()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:zr.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var g=function(j,P,U){var ot;return Object.keys(P).forEach(function(vt){var bt=j.append("g").attr("id",vt);ot=ot===void 0?vt:ot;var kt="entity-"+vt,_t=bt.append("text").attr("class","er entityLabel").attr("id",kt).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+se().fontFamily+"; font-size: "+zr.fontSize+"px").text(vt),lt=function(Bt,ne,At){var Tt=zr.entityPadding/3,jt=zr.entityPadding/3,Dt=.85*zr.fontSize,te=ne.node().getBBox(),yt=[],ue=!1,ve=!1,me=0,De=0,He=0,ze=0,fn=te.height+2*Tt,Oe=1;At.forEach(function(bn){bn.attributeKeyType!==void 0&&(ue=!0),bn.attributeComment!==void 0&&(ve=!0)}),At.forEach(function(bn){var ar="".concat(ne.node().id,"-attr-").concat(Oe),Ii=0,Rs=Bt.append("text").attr("class","er entityLabel").attr("id","".concat(ar,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+se().fontFamily+"; font-size: "+Dt+"px").text(bn.attributeType),as=Bt.append("text").attr("class","er entityLabel").attr("id","".concat(ar,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+se().fontFamily+"; font-size: "+Dt+"px").text(bn.attributeName),qa={};qa.tn=Rs,qa.nn=as;var Wi=Rs.node().getBBox(),A4=as.node().getBBox();if(me=Math.max(me,Wi.width),De=Math.max(De,A4.width),Ii=Math.max(Wi.height,A4.height),ue){var n7=Bt.append("text").attr("class","er entityLabel").attr("id","".concat(ar,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+se().fontFamily+"; font-size: "+Dt+"px").text(bn.attributeKeyType||"");qa.kn=n7;var r7=n7.node().getBBox();He=Math.max(He,r7.width),Ii=Math.max(Ii,r7.height)}if(ve){var i7=Bt.append("text").attr("class","er entityLabel").attr("id","".concat(ar,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+se().fontFamily+"; font-size: "+Dt+"px").text(bn.attributeComment||"");qa.cn=i7;var a7=i7.node().getBBox();ze=Math.max(ze,a7.width),Ii=Math.max(Ii,a7.height)}qa.height=Ii,yt.push(qa),fn+=Ii+2*Tt,Oe+=1});var Pn=4;ue&&(Pn+=2),ve&&(Pn+=2);var Sn=me+De+He+ze,dn={width:Math.max(zr.minEntityWidth,Math.max(te.width+2*zr.entityPadding,Sn+jt*Pn)),height:At.length>0?fn:Math.max(zr.minEntityHeight,te.height+2*zr.entityPadding)};if(At.length>0){var mn=Math.max(0,(dn.width-Sn-jt*Pn)/(Pn/2));ne.attr("transform","translate("+dn.width/2+","+(Tt+te.height/2)+")");var on=te.height+2*Tt,Qr="attributeBoxOdd";yt.forEach(function(bn){var ar=on+Tt+bn.height/2;bn.tn.attr("transform","translate("+jt+","+ar+")");var Ii=Bt.insert("rect","#"+bn.tn.node().id).attr("class","er ".concat(Qr)).attr("fill",zr.fill).attr("fill-opacity","100%").attr("stroke",zr.stroke).attr("x",0).attr("y",on).attr("width",me+2*jt+mn).attr("height",bn.height+2*Tt),Rs=parseFloat(Ii.attr("x"))+parseFloat(Ii.attr("width"));bn.nn.attr("transform","translate("+(Rs+jt)+","+ar+")");var as=Bt.insert("rect","#"+bn.nn.node().id).attr("class","er ".concat(Qr)).attr("fill",zr.fill).attr("fill-opacity","100%").attr("stroke",zr.stroke).attr("x",Rs).attr("y",on).attr("width",De+2*jt+mn).attr("height",bn.height+2*Tt),qa=parseFloat(as.attr("x"))+parseFloat(as.attr("width"));if(ue){bn.kn.attr("transform","translate("+(qa+jt)+","+ar+")");var Wi=Bt.insert("rect","#"+bn.kn.node().id).attr("class","er ".concat(Qr)).attr("fill",zr.fill).attr("fill-opacity","100%").attr("stroke",zr.stroke).attr("x",qa).attr("y",on).attr("width",He+2*jt+mn).attr("height",bn.height+2*Tt);qa=parseFloat(Wi.attr("x"))+parseFloat(Wi.attr("width"))}ve&&(bn.cn.attr("transform","translate("+(qa+jt)+","+ar+")"),Bt.insert("rect","#"+bn.cn.node().id).attr("class","er ".concat(Qr)).attr("fill",zr.fill).attr("fill-opacity","100%").attr("stroke",zr.stroke).attr("x",qa).attr("y",on).attr("width",ze+2*jt+mn).attr("height",bn.height+2*Tt)),on+=bn.height+2*Tt,Qr=Qr=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else dn.height=Math.max(zr.minEntityHeight,fn),ne.attr("transform","translate("+dn.width/2+","+dn.height/2+")");return dn}(bt,_t,P[vt].attributes),$t=lt.width,Lt=lt.height,gt=bt.insert("rect","#"+kt).attr("class","er entityBox").attr("fill",zr.fill).attr("fill-opacity","100%").attr("stroke",zr.stroke).attr("x",0).attr("y",0).attr("width",$t).attr("height",Lt).node().getBBox();U.setNode(vt,{width:gt.width,height:gt.height,shape:"rect",id:vt})}),ot}(d,Wa.getEntities(),u),v=function(j,P){return j.forEach(function(U){P.setEdge(U.entityA,U.entityB,{relationship:U},R3(U))}),j}(Wa.getRelationships(),u);pd().layout(u),function(j,P){P.nodes().forEach(function(U){U!==void 0&&P.node(U)!==void 0&&j.select("#"+U).attr("transform","translate("+(P.node(U).x-P.node(U).width/2)+","+(P.node(U).y-P.node(U).height/2)+" )")})}(d,u),v.forEach(function(j){(function(P,U,ot,vt){Qy++;var bt=ot.edge(U.entityA,U.entityB,R3(U)),kt=xo().x(function(ne){return ne.x}).y(function(ne){return ne.y}).curve(jr),_t=P.insert("path","#"+vt).attr("class","er relationshipLine").attr("d",kt(bt.points)).attr("stroke",zr.stroke).attr("fill","none");U.relSpec.relType===Wa.Identification.NON_IDENTIFYING&&_t.attr("stroke-dasharray","8,8");var lt="";switch(zr.arrowMarkerAbsolute&&(lt=(lt=(lt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),U.relSpec.cardA){case Wa.Cardinality.ZERO_OR_ONE:_t.attr("marker-end","url("+lt+"#"+Vc.ZERO_OR_ONE_END+")");break;case Wa.Cardinality.ZERO_OR_MORE:_t.attr("marker-end","url("+lt+"#"+Vc.ZERO_OR_MORE_END+")");break;case Wa.Cardinality.ONE_OR_MORE:_t.attr("marker-end","url("+lt+"#"+Vc.ONE_OR_MORE_END+")");break;case Wa.Cardinality.ONLY_ONE:_t.attr("marker-end","url("+lt+"#"+Vc.ONLY_ONE_END+")")}switch(U.relSpec.cardB){case Wa.Cardinality.ZERO_OR_ONE:_t.attr("marker-start","url("+lt+"#"+Vc.ZERO_OR_ONE_START+")");break;case Wa.Cardinality.ZERO_OR_MORE:_t.attr("marker-start","url("+lt+"#"+Vc.ZERO_OR_MORE_START+")");break;case Wa.Cardinality.ONE_OR_MORE:_t.attr("marker-start","url("+lt+"#"+Vc.ONE_OR_MORE_START+")");break;case Wa.Cardinality.ONLY_ONE:_t.attr("marker-start","url("+lt+"#"+Vc.ONLY_ONE_START+")")}var $t=_t.node().getTotalLength(),Lt=_t.node().getPointAtLength(.5*$t),gt="rel"+Qy,Bt=P.append("text").attr("class","er relationshipLabel").attr("id",gt).attr("x",Lt.x).attr("y",Lt.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+se().fontFamily+"; font-size: "+zr.fontSize+"px").text(U.roleA).node().getBBox();P.insert("rect","#"+gt).attr("class","er relationshipLabelBox").attr("x",Lt.x-Bt.width/2).attr("y",Lt.y-Bt.height/2).attr("width",Bt.width).attr("height",Bt.height).attr("fill","white").attr("fill-opacity","85%")})(d,j,u,g)});var w=zr.diagramPadding,C=d.node().getBBox(),S=C.width+2*w,B=C.height+2*w;uo(d,B,S,zr.useMaxWidth),d.attr("viewBox","".concat(C.x-w," ").concat(C.y-w," ").concat(S," ").concat(B))};function Jy(t){return Jy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jy(t)}function up(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,u=new Array(e);i<e;i++)u[i]=t[i];return u}var sc,_d,h6="flowchart-",tm=0,wh=se(),ui={},Gu=[],Zu=[],As=[],bd={},em={},lp=0,nm=!0,wd=[],hp=function(t){for(var e=Object.keys(ui),i=0;i<e.length;i++)if(ui[e[i]].id===t)return ui[e[i]].domId;return t},f6=function(t,e,i,u){var d={start:t,end:e,type:void 0,text:""};(u=i.text)!==void 0&&(d.text=vr.sanitizeText(u.trim(),wh),d.text[0]==='"'&&d.text[d.text.length-1]==='"'&&(d.text=d.text.substring(1,d.text.length-1))),i!==void 0&&(d.type=i.type,d.stroke=i.stroke,d.length=i.length),Gu.push(d)},rm=function(t,e){t.split(",").forEach(function(i){var u=i;ui[u]!==void 0&&ui[u].classes.push(e),bd[u]!==void 0&&bd[u].classes.push(e)})},P3=function(t){var e=Se(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Se("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Se(t).select("svg").selectAll("g.node").on("mouseover",function(){var i=Se(this);if(i.attr("title")!==null){var u=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(i.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.top-14+document.body.scrollTop+"px"),i.classed("hover",!0)}}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),Se(this).classed("hover",!1)})};wd.push(P3);var d6=function(t){for(var e=0;e<As.length;e++)if(As[e].id===t)return e;return-1},xh=-1,Y3=[],fp=function t(e,i){var u=As[i].nodes;if(!((xh+=1)>2e3)){if(Y3[xh]=i,As[i].id===e)return{result:!0,count:0};for(var d=0,g=1;d<u.length;){var v=d6(u[d]);if(v>=0){var w=t(e,v);if(w.result)return{result:!0,count:g+w.count};g+=w.count}d+=1}return{result:!1,count:g}}},j3=function(t,e){var i=!1;return t.forEach(function(u){u.nodes.indexOf(e)>=0&&(i=!0)}),i},z3=function(t,e){var i=[];return t.nodes.forEach(function(u,d){j3(e,u)||i.push(t.nodes[d])}),{nodes:i}};const ir={parseDirective:function(t,e,i){la.parseDirective(this,t,e,i)},defaultConfig:function(){return fd.flowchart},addVertex:function(t,e,i,u,d,g){var v,w=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},C=t;C!==void 0&&C.trim().length!==0&&(ui[C]===void 0&&(ui[C]={id:C,domId:h6+C+"-"+tm,styles:[],classes:[]}),tm++,e!==void 0?(wh=se(),(v=vr.sanitizeText(e.trim(),wh))[0]==='"'&&v[v.length-1]==='"'&&(v=v.substring(1,v.length-1)),ui[C].text=v):ui[C].text===void 0&&(ui[C].text=t),i!==void 0&&(ui[C].type=i),u!=null&&u.forEach(function(S){ui[C].styles.push(S)}),d!=null&&d.forEach(function(S){ui[C].classes.push(S)}),g!==void 0&&(ui[C].dir=g),ui[C].props=w)},lookUpDomId:hp,addLink:function(t,e,i,u){var d,g;for(d=0;d<t.length;d++)for(g=0;g<e.length;g++)f6(t[d],e[g],i,u)},updateLinkInterpolate:function(t,e){t.forEach(function(i){i==="default"?Gu.defaultInterpolate=e:Gu[i].interpolate=e})},updateLink:function(t,e){t.forEach(function(i){i==="default"?Gu.defaultStyle=e:(Qn.isSubstringInArray("fill",e)===-1&&e.push("fill:none"),Gu[i].style=e)})},addClass:function(t,e){Zu[t]===void 0&&(Zu[t]={id:t,styles:[],textStyles:[]}),e!=null&&e.forEach(function(i){if(i.match("color")){var u=i.replace("fill","bgFill").replace("color","fill");Zu[t].textStyles.push(u)}Zu[t].styles.push(i)})},setDirection:function(t){(sc=t).match(/.*</)&&(sc="RL"),sc.match(/.*\^/)&&(sc="BT"),sc.match(/.*>/)&&(sc="LR"),sc.match(/.*v/)&&(sc="TB")},setClass:rm,setTooltip:function(t,e){t.split(",").forEach(function(i){e!==void 0&&(em[_d==="gen-1"?hp(i):i]=vr.sanitizeText(e,wh))})},getTooltip:function(t){return em[t]},setClickEvent:function(t,e,i){t.split(",").forEach(function(u){(function(d,g,v){var w=hp(d);if(se().securityLevel==="loose"&&g!==void 0){var C=[];if(typeof v=="string"){C=v.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var S=0;S<C.length;S++){var B=C[S].trim();B.charAt(0)==='"'&&B.charAt(B.length-1)==='"'&&(B=B.substr(1,B.length-2)),C[S]=B}}C.length===0&&C.push(d),ui[d]!==void 0&&(ui[d].haveCallback=!0,wd.push(function(){var j=document.querySelector('[id="'.concat(w,'"]'));j!==null&&j.addEventListener("click",function(){var P;Qn.runFunc.apply(Qn,[g].concat(function(U){if(Array.isArray(U))return up(U)}(P=C)||function(U){if(typeof Symbol!="undefined"&&U[Symbol.iterator]!=null||U["@@iterator"]!=null)return Array.from(U)}(P)||function(U,ot){if(U){if(typeof U=="string")return up(U,ot);var vt=Object.prototype.toString.call(U).slice(8,-1);return vt==="Object"&&U.constructor&&(vt=U.constructor.name),vt==="Map"||vt==="Set"?Array.from(U):vt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(vt)?up(U,ot):void 0}}(P)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)}))}})(u,e,i)}),rm(t,"clickable")},setLink:function(t,e,i){t.split(",").forEach(function(u){ui[u]!==void 0&&(ui[u].link=Qn.formatUrl(e,wh),ui[u].linkTarget=i)}),rm(t,"clickable")},bindFunctions:function(t){wd.forEach(function(e){e(t)})},getDirection:function(){return sc.trim()},getVertices:function(){return ui},getEdges:function(){return Gu},getClasses:function(){return Zu},clear:function(t){ui={},Zu={},Gu=[],(wd=[]).push(P3),As=[],bd={},lp=0,em=[],nm=!0,_d=t||"gen-1"},setGen:function(t){_d=t||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(t,e,i){var u=t.trim(),d=i;t===i&&i.match(/\s/)&&(u=void 0);var g=[],v=function(j){var P,U={boolean:{},number:{},string:{}},ot=[],vt=j.filter(function(bt){var kt=Jy(bt);return bt.stmt&&bt.stmt==="dir"?(P=bt.value,!1):bt.trim()!==""&&(kt in U?!U[kt].hasOwnProperty(bt)&&(U[kt][bt]=!0):!(ot.indexOf(bt)>=0)&&ot.push(bt))});return{nodeList:vt,dir:P}}(g.concat.apply(g,e)),w=v.nodeList,C=v.dir;if(g=w,_d==="gen-1"){p.warn("LOOKING UP");for(var S=0;S<g.length;S++)g[S]=hp(g[S])}u=u||"subGraph"+lp,d=d||"",d=vr.sanitizeText(d,wh),lp+=1;var B={id:u,nodes:g,title:d.trim(),classes:[],dir:C};return p.info("Adding",B.id,B.nodes,B.dir),B.nodes=z3(B,As).nodes,As.push(B),bd[u]=B,u},getDepthFirstPos:function(t){return Y3[t]},indexNodes:function(){xh=-1,As.length>0&&fp("none",As.length-1)},getSubGraphs:function(){return As},destructLink:function(t,e){var i,u=function(d){var g=d.trim(),v=g.slice(0,-1),w="arrow_open";switch(g.slice(-1)){case"x":w="arrow_cross",g[0]==="x"&&(w="double_"+w,v=v.slice(1));break;case">":w="arrow_point",g[0]==="<"&&(w="double_"+w,v=v.slice(1));break;case"o":w="arrow_circle",g[0]==="o"&&(w="double_"+w,v=v.slice(1))}var C="normal",S=v.length-1;v[0]==="="&&(C="thick");var B=function(j,P){for(var U=P.length,ot=0,vt=0;vt<U;++vt)P[vt]==="."&&++ot;return ot}(0,v);return B&&(C="dotted",S=B),{type:w,stroke:C,length:S}}(t);if(e){if(i=function(d){var g=d.trim(),v="arrow_open";switch(g[0]){case"<":v="arrow_point",g=g.slice(1);break;case"x":v="arrow_cross",g=g.slice(1);break;case"o":v="arrow_circle",g=g.slice(1)}var w="normal";return g.indexOf("=")!==-1&&(w="thick"),g.indexOf(".")!==-1&&(w="dotted"),{type:v,stroke:w}}(e),i.stroke!==u.stroke)return{type:"INVALID",stroke:"INVALID"};if(i.type==="arrow_open")i.type=u.type;else{if(i.type!==u.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return i.type==="double_arrow"&&(i.type="double_arrow_point"),i.length=u.length,i}return u},lex:{firstGraph:function(){return!!nm&&(nm=!1,!0)}},exists:j3,makeUniq:z3};var p6=o(3602),Xu=o.n(p6),g6=o(4949),lo=o.n(g6),y6=o(8284),U3=o.n(y6);function m6(t,e,i){var u=.9*(e.width+e.height),d=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],g=ns(t,u,u,d);return i.intersect=function(v){return lo().intersect.polygon(i,d,v)},g}function v6(t,e,i){var u=e.height,d=u/4,g=e.width+2*d,v=[{x:d,y:0},{x:g-d,y:0},{x:g,y:-u/2},{x:g-d,y:-u},{x:d,y:-u},{x:0,y:-u/2}],w=ns(t,g,u,v);return i.intersect=function(C){return lo().intersect.polygon(i,v,C)},w}function H3(t,e,i){var u=e.width,d=e.height,g=[{x:-d/2,y:0},{x:u,y:0},{x:u,y:-d},{x:-d/2,y:-d},{x:0,y:-d/2}],v=ns(t,u,d,g);return i.intersect=function(w){return lo().intersect.polygon(i,g,w)},v}function im(t,e,i){var u=e.width,d=e.height,g=[{x:-2*d/6,y:0},{x:u-d/6,y:0},{x:u+2*d/6,y:-d},{x:d/6,y:-d}],v=ns(t,u,d,g);return i.intersect=function(w){return lo().intersect.polygon(i,g,w)},v}function _6(t,e,i){var u=e.width,d=e.height,g=[{x:2*d/6,y:0},{x:u+d/6,y:0},{x:u-2*d/6,y:-d},{x:-d/6,y:-d}],v=ns(t,u,d,g);return i.intersect=function(w){return lo().intersect.polygon(i,g,w)},v}function b6(t,e,i){var u=e.width,d=e.height,g=[{x:-2*d/6,y:0},{x:u+2*d/6,y:0},{x:u-d/6,y:-d},{x:d/6,y:-d}],v=ns(t,u,d,g);return i.intersect=function(w){return lo().intersect.polygon(i,g,w)},v}function sr(t,e,i){var u=e.width,d=e.height,g=[{x:d/6,y:0},{x:u-d/6,y:0},{x:u+2*d/6,y:-d},{x:-2*d/6,y:-d}],v=ns(t,u,d,g);return i.intersect=function(w){return lo().intersect.polygon(i,g,w)},v}function $3(t,e,i){var u=e.width,d=e.height,g=[{x:0,y:0},{x:u+d/2,y:0},{x:u,y:-d/2},{x:u+d/2,y:-d},{x:0,y:-d}],v=ns(t,u,d,g);return i.intersect=function(w){return lo().intersect.polygon(i,g,w)},v}function ga(t,e,i){var u=e.height,d=e.width+u/4,g=t.insert("rect",":first-child").attr("rx",u/2).attr("ry",u/2).attr("x",-d/2).attr("y",-u/2).attr("width",d).attr("height",u);return i.intersect=function(v){return lo().intersect.rect(i,v)},g}function Ku(t,e,i){var u=e.width,d=e.height,g=[{x:0,y:0},{x:u,y:0},{x:u,y:-d},{x:0,y:-d},{x:0,y:0},{x:-8,y:0},{x:u+8,y:0},{x:u+8,y:-d},{x:-8,y:-d},{x:-8,y:0}],v=ns(t,u,d,g);return i.intersect=function(w){return lo().intersect.polygon(i,g,w)},v}function w6(t,e,i){var u=e.width,d=u/2,g=d/(2.5+u/50),v=e.height+g,w="M 0,"+g+" a "+d+","+g+" 0,0,0 "+u+" 0 a "+d+","+g+" 0,0,0 "+-u+" 0 l 0,"+v+" a "+d+","+g+" 0,0,0 "+u+" 0 l 0,"+-v,C=t.attr("label-offset-y",g).insert("path",":first-child").attr("d",w).attr("transform","translate("+-u/2+","+-(v/2+g)+")");return i.intersect=function(S){var B=lo().intersect.rect(i,S),j=B.x-i.x;if(d!=0&&(Math.abs(j)<i.width/2||Math.abs(j)==i.width/2&&Math.abs(B.y-i.y)>i.height/2-g)){var P=g*g*(1-j*j/(d*d));P!=0&&(P=Math.sqrt(P)),P=g-P,S.y-i.y>0&&(P=-P),B.y+=P}return B},C}function ns(t,e,i,u){return t.insert("polygon",":first-child").attr("points",u.map(function(d){return d.x+","+d.y}).join(" ")).attr("transform","translate("+-e/2+","+i/2+")")}const Ds=function(t){t.shapes().question=m6,t.shapes().hexagon=v6,t.shapes().stadium=ga,t.shapes().subroutine=Ku,t.shapes().cylinder=w6,t.shapes().rect_left_inv_arrow=H3,t.shapes().lean_right=im,t.shapes().lean_left=_6,t.shapes().trapezoid=b6,t.shapes().inv_trapezoid=sr,t.shapes().rect_right_inv_arrow=$3};var Qu={};const ca=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)Qu[e[i]]=t[e[i]]},Gc=function(t,e){p.info("Drawing flowchart"),ir.clear(),ir.setGen("gen-1");var i=Xu().parser;i.yy=ir,i.parse(t);var u=ir.getDirection();u===void 0&&(u="TD");for(var d,g=se().flowchart,v=g.nodeSpacing||50,w=g.rankSpacing||50,C=new(Mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:v,ranksep:w,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),S=ir.getSubGraphs(),B=S.length-1;B>=0;B--)d=S[B],ir.addVertex(d.id,d.title,"group",void 0,d.classes);var j=ir.getVertices();p.warn("Get vertices",j);var P=ir.getEdges(),U=0;for(U=S.length-1;U>=0;U--){d=S[U],Nc("cluster").append("text");for(var ot=0;ot<d.nodes.length;ot++)p.warn("Setting subgraph",d.nodes[ot],ir.lookUpDomId(d.nodes[ot]),ir.lookUpDomId(d.id)),C.setParent(ir.lookUpDomId(d.nodes[ot]),ir.lookUpDomId(d.id))}(function(He,ze,fn){var Oe=Se('[id="'.concat(fn,'"]'));Object.keys(He).forEach(function(Pn){var Sn=He[Pn],dn="default";Sn.classes.length>0&&(dn=Sn.classes.join(" "));var mn,on=qc(Sn.styles),Qr=Sn.text!==void 0?Sn.text:Sn.id;if(Oi(se().flowchart.htmlLabels)){var bn={label:Qr.replace(/fa[lrsb]?:fa-[\w-]+/g,function(A4){return"<i class='".concat(A4.replace(":"," "),"'></i>")})};(mn=U3()(Oe,bn).node()).parentNode.removeChild(mn)}else{var ar=document.createElementNS("http://www.w3.org/2000/svg","text");ar.setAttribute("style",on.labelStyle.replace("color:","fill:"));for(var Ii=Qr.split(vr.lineBreakRegex),Rs=0;Rs<Ii.length;Rs++){var as=document.createElementNS("http://www.w3.org/2000/svg","tspan");as.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),as.setAttribute("dy","1em"),as.setAttribute("x","1"),as.textContent=Ii[Rs],ar.appendChild(as)}mn=ar}var qa=0,Wi="";switch(Sn.type){case"round":qa=5,Wi="rect";break;case"square":case"group":default:Wi="rect";break;case"diamond":Wi="question";break;case"hexagon":Wi="hexagon";break;case"odd":case"odd_right":Wi="rect_left_inv_arrow";break;case"lean_right":Wi="lean_right";break;case"lean_left":Wi="lean_left";break;case"trapezoid":Wi="trapezoid";break;case"inv_trapezoid":Wi="inv_trapezoid";break;case"circle":Wi="circle";break;case"ellipse":Wi="ellipse";break;case"stadium":Wi="stadium";break;case"subroutine":Wi="subroutine";break;case"cylinder":Wi="cylinder"}p.warn("Adding node",Sn.id,Sn.domId),ze.setNode(ir.lookUpDomId(Sn.id),{labelType:"svg",labelStyle:on.labelStyle,shape:Wi,label:mn,rx:qa,ry:qa,class:dn,style:on.style,id:ir.lookUpDomId(Sn.id)})})})(j,C,e),function(He,ze){var fn,Oe,Pn=0;if(He.defaultStyle!==void 0){var Sn=qc(He.defaultStyle);fn=Sn.style,Oe=Sn.labelStyle}He.forEach(function(dn){Pn++;var mn="L-"+dn.start+"-"+dn.end,on="LS-"+dn.start,Qr="LE-"+dn.end,bn={};dn.type==="arrow_open"?bn.arrowhead="none":bn.arrowhead="normal";var ar="",Ii="";if(dn.style!==void 0){var Rs=qc(dn.style);ar=Rs.style,Ii=Rs.labelStyle}else switch(dn.stroke){case"normal":ar="fill:none",fn!==void 0&&(ar=fn),Oe!==void 0&&(Ii=Oe);break;case"dotted":ar="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":ar=" stroke-width: 3.5px;fill:none"}bn.style=ar,bn.labelStyle=Ii,dn.interpolate!==void 0?bn.curve=Qo(dn.interpolate,wo):He.defaultInterpolate!==void 0?bn.curve=Qo(He.defaultInterpolate,wo):bn.curve=Qo(Qu.curve,wo),dn.text===void 0?dn.style!==void 0&&(bn.arrowheadStyle="fill: #333"):(bn.arrowheadStyle="fill: #333",bn.labelpos="c",Oi(se().flowchart.htmlLabels)?(bn.labelType="html",bn.label='<span id="L-'.concat(mn,'" class="edgeLabel L-').concat(on,"' L-").concat(Qr,'">').concat(dn.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(as){return"<i class='".concat(as.replace(":"," "),"'></i>")}),"</span>")):(bn.labelType="text",bn.label=dn.text.replace(vr.lineBreakRegex,`
`),dn.style===void 0&&(bn.style=bn.style||"stroke: #333; stroke-width: 1.5px;fill:none"),bn.labelStyle=bn.labelStyle.replace("color:","fill:"))),bn.id=mn,bn.class=on+" "+Qr,bn.minlen=dn.length||1,ze.setEdge(ir.lookUpDomId(dn.start),ir.lookUpDomId(dn.end),bn,Pn)})}(P,C);var vt=new(lo()).render;Ds(vt),vt.arrows().none=function(He,ze,fn,Oe){var Pn=He.append("marker").attr("id",ze).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");lo().util.applyStyle(Pn,fn[Oe+"Style"])},vt.arrows().normal=function(He,ze){He.append("marker").attr("id",ze).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};var bt=Se('[id="'.concat(e,'"]'));bt.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),p.warn(C);var kt=Se("#"+e+" g");vt(kt,C),kt.selectAll("g.node").attr("title",function(){return ir.getTooltip(this.id)});var _t=g.diagramPadding,lt=bt.node().getBBox(),$t=lt.width+2*_t,Lt=lt.height+2*_t;uo(bt,Lt,$t,g.useMaxWidth);var gt="".concat(lt.x-_t," ").concat(lt.y-_t," ").concat($t," ").concat(Lt);for(p.debug("viewBox ".concat(gt)),bt.attr("viewBox",gt),ir.indexNodes("subGraph"+U),U=0;U<S.length;U++)if((d=S[U]).title!=="undefined"){var Bt=document.querySelectorAll("#"+e+' [id="'+ir.lookUpDomId(d.id)+'"] rect'),ne=document.querySelectorAll("#"+e+' [id="'+ir.lookUpDomId(d.id)+'"]'),At=Bt[0].x.baseVal.value,Tt=Bt[0].y.baseVal.value,jt=Bt[0].width.baseVal.value,Dt=Se(ne[0]).select(".label");Dt.attr("transform","translate(".concat(At+jt/2,", ").concat(Tt+14,")")),Dt.attr("id",e+"Text");for(var te=0;te<d.classes.length;te++)ne[0].classList.add(d.classes[te])}Oi(g.htmlLabels);for(var yt=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),ue=0;ue<yt.length;ue++){var ve=yt[ue],me=ve.getBBox(),De=document.createElementNS("http://www.w3.org/2000/svg","rect");De.setAttribute("rx",0),De.setAttribute("ry",0),De.setAttribute("width",me.width),De.setAttribute("height",me.height),ve.insertBefore(De,ve.firstChild)}Object.keys(j).forEach(function(He){var ze=j[He];if(ze.link){var fn=Se("#"+e+' [id="'+ir.lookUpDomId(He)+'"]');if(fn){var Oe=document.createElementNS("http://www.w3.org/2000/svg","a");Oe.setAttributeNS("http://www.w3.org/2000/svg","class",ze.classes.join(" ")),Oe.setAttributeNS("http://www.w3.org/2000/svg","href",ze.link),Oe.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),ze.linkTarget&&Oe.setAttributeNS("http://www.w3.org/2000/svg","target",ze.linkTarget);var Pn=fn.insert(function(){return Oe},":first-child"),Sn=fn.select(".label-container");Sn&&Pn.append(function(){return Sn.node()});var dn=fn.select(".label");dn&&Pn.append(function(){return dn.node()})}}})};var xd={};const cc=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)xd[e[i]]=t[e[i]]},x6=function(t,e){p.info("Drawing flowchart"),ir.clear(),ir.setGen("gen-2");var i=Xu().parser;i.yy=ir,i.parse(t);var u=ir.getDirection();u===void 0&&(u="TD");var d,g=se().flowchart,v=g.nodeSpacing||50,w=g.rankSpacing||50,C=new(Mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:v,ranksep:w,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),S=ir.getSubGraphs();p.info("Subgraphs - ",S);for(var B=S.length-1;B>=0;B--)d=S[B],p.info("Subgraph - ",d),ir.addVertex(d.id,d.title,"group",void 0,d.classes,d.dir);var j=ir.getVertices(),P=ir.getEdges();p.info(P);var U=0;for(U=S.length-1;U>=0;U--){d=S[U],Nc("cluster").append("text");for(var ot=0;ot<d.nodes.length;ot++)p.info("Setting up subgraphs",d.nodes[ot],d.id),C.setParent(d.nodes[ot],d.id)}(function(Tt,jt,Dt){var te=Se('[id="'.concat(Dt,'"]'));Object.keys(Tt).forEach(function(yt){var ue=Tt[yt],ve="default";ue.classes.length>0&&(ve=ue.classes.join(" "));var me,De=qc(ue.styles),He=ue.text!==void 0?ue.text:ue.id;if(Oi(se().flowchart.htmlLabels)){var ze={label:He.replace(/fa[lrsb]?:fa-[\w-]+/g,function(on){return"<i class='".concat(on.replace(":"," "),"'></i>")})};(me=U3()(te,ze).node()).parentNode.removeChild(me)}else{var fn=document.createElementNS("http://www.w3.org/2000/svg","text");fn.setAttribute("style",De.labelStyle.replace("color:","fill:"));for(var Oe=He.split(vr.lineBreakRegex),Pn=0;Pn<Oe.length;Pn++){var Sn=document.createElementNS("http://www.w3.org/2000/svg","tspan");Sn.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Sn.setAttribute("dy","1em"),Sn.setAttribute("x","1"),Sn.textContent=Oe[Pn],fn.appendChild(Sn)}me=fn}var dn=0,mn="";switch(ue.type){case"round":dn=5,mn="rect";break;case"square":case"group":default:mn="rect";break;case"diamond":mn="question";break;case"hexagon":mn="hexagon";break;case"odd":case"odd_right":mn="rect_left_inv_arrow";break;case"lean_right":mn="lean_right";break;case"lean_left":mn="lean_left";break;case"trapezoid":mn="trapezoid";break;case"inv_trapezoid":mn="inv_trapezoid";break;case"circle":mn="circle";break;case"ellipse":mn="ellipse";break;case"stadium":mn="stadium";break;case"subroutine":mn="subroutine";break;case"cylinder":mn="cylinder"}jt.setNode(ue.id,{labelStyle:De.labelStyle,shape:mn,labelText:He,rx:dn,ry:dn,class:ve,style:De.style,id:ue.id,link:ue.link,linkTarget:ue.linkTarget,tooltip:ir.getTooltip(ue.id)||"",domId:ir.lookUpDomId(ue.id),haveCallback:ue.haveCallback,width:ue.type==="group"?500:void 0,dir:ue.dir,type:ue.type,props:ue.props,padding:se().flowchart.padding}),p.info("setNode",{labelStyle:De.labelStyle,shape:mn,labelText:He,rx:dn,ry:dn,class:ve,style:De.style,id:ue.id,domId:ir.lookUpDomId(ue.id),width:ue.type==="group"?500:void 0,type:ue.type,dir:ue.dir,props:ue.props,padding:se().flowchart.padding})})})(j,C,e),function(Tt,jt){p.info("abc78 edges = ",Tt);var Dt,te,yt=0,ue={};if(Tt.defaultStyle!==void 0){var ve=qc(Tt.defaultStyle);Dt=ve.style,te=ve.labelStyle}Tt.forEach(function(me){yt++;var De="L-"+me.start+"-"+me.end;ue[De]===void 0?(ue[De]=0,p.info("abc78 new entry",De,ue[De])):(ue[De]++,p.info("abc78 new entry",De,ue[De]));var He=De+"-"+ue[De];p.info("abc78 new link id to be used is",De,He,ue[De]);var ze="LS-"+me.start,fn="LE-"+me.end,Oe={style:"",labelStyle:""};switch(Oe.minlen=me.length||1,me.type==="arrow_open"?Oe.arrowhead="none":Oe.arrowhead="normal",Oe.arrowTypeStart="arrow_open",Oe.arrowTypeEnd="arrow_open",me.type){case"double_arrow_cross":Oe.arrowTypeStart="arrow_cross";case"arrow_cross":Oe.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":Oe.arrowTypeStart="arrow_point";case"arrow_point":Oe.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":Oe.arrowTypeStart="arrow_circle";case"arrow_circle":Oe.arrowTypeEnd="arrow_circle"}var Pn="",Sn="";switch(me.stroke){case"normal":Pn="fill:none;",Dt!==void 0&&(Pn=Dt),te!==void 0&&(Sn=te),Oe.thickness="normal",Oe.pattern="solid";break;case"dotted":Oe.thickness="normal",Oe.pattern="dotted",Oe.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":Oe.thickness="thick",Oe.pattern="solid",Oe.style="stroke-width: 3.5px;fill:none;"}if(me.style!==void 0){var dn=qc(me.style);Pn=dn.style,Sn=dn.labelStyle}Oe.style=Oe.style+=Pn,Oe.labelStyle=Oe.labelStyle+=Sn,me.interpolate!==void 0?Oe.curve=Qo(me.interpolate,wo):Tt.defaultInterpolate!==void 0?Oe.curve=Qo(Tt.defaultInterpolate,wo):Oe.curve=Qo(xd.curve,wo),me.text===void 0?me.style!==void 0&&(Oe.arrowheadStyle="fill: #333"):(Oe.arrowheadStyle="fill: #333",Oe.labelpos="c"),Oe.labelType="text",Oe.label=me.text.replace(vr.lineBreakRegex,`
`),me.style===void 0&&(Oe.style=Oe.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),Oe.labelStyle=Oe.labelStyle.replace("color:","fill:"),Oe.id=He,Oe.classes="flowchart-link "+ze+" "+fn,jt.setEdge(me.start,me.end,Oe,yt)})}(P,C);var vt=Se('[id="'.concat(e,'"]'));vt.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var bt=Se("#"+e+" g");sp(bt,C,["point","circle","cross"],"flowchart",e);var kt=g.diagramPadding,_t=vt.node().getBBox(),lt=_t.width+2*kt,$t=_t.height+2*kt;if(p.debug("new ViewBox 0 0 ".concat(lt," ").concat($t),"translate(".concat(kt-C._label.marginx,", ").concat(kt-C._label.marginy,")")),uo(vt,$t,lt,g.useMaxWidth),vt.attr("viewBox","0 0 ".concat(lt," ").concat($t)),vt.select("g").attr("transform","translate(".concat(kt-C._label.marginx,", ").concat(kt-_t.y,")")),ir.indexNodes("subGraph"+U),!g.htmlLabels)for(var Lt=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),gt=0;gt<Lt.length;gt++){var Bt=Lt[gt],ne=Bt.getBBox(),At=document.createElementNS("http://www.w3.org/2000/svg","rect");At.setAttribute("rx",0),At.setAttribute("ry",0),At.setAttribute("width",ne.width),At.setAttribute("height",ne.height),Bt.insertBefore(At,Bt.firstChild)}Object.keys(j).forEach(function(Tt){var jt=j[Tt];if(jt.link){var Dt=Se("#"+e+' [id="'+Tt+'"]');if(Dt){var te=document.createElementNS("http://www.w3.org/2000/svg","a");te.setAttributeNS("http://www.w3.org/2000/svg","class",jt.classes.join(" ")),te.setAttributeNS("http://www.w3.org/2000/svg","href",jt.link),te.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),jt.linkTarget&&te.setAttributeNS("http://www.w3.org/2000/svg","target",jt.linkTarget);var yt=Dt.insert(function(){return te},":first-child"),ue=Dt.select(".label-container");ue&&yt.append(function(){return ue.node()});var ve=Dt.select(".label");ve&&yt.append(function(){return ve.node()})}}})};function dp(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,u=new Array(e);i<e;i++)u[i]=t[i];return u}var am,pp,Ns="",om="",sm="",kd=[],Zc=[],cm="",gp=[],kh=[],Xc="",yp=["active","done","crit","milestone"],Th=[],Eh=!1,um=!1,lm=0,W3=function(t,e,i,u){return!(u.indexOf(t.format(e.trim()))>=0)&&(t.isoWeekday()>=6&&i.indexOf("weekends")>=0||i.indexOf(t.format("dddd").toLowerCase())>=0||i.indexOf(t.format(e.trim()))>=0)},hm=function(t,e,i,u){if(i.length&&!t.manualEndTime){var d=c()(t.startTime,e,!0);d.add(1,"d");var g=c()(t.endTime,e,!0),v=q3(d,g,e,i,u);t.endTime=g.toDate(),t.renderEndTime=v}},q3=function(t,e,i,u,d){for(var g=!1,v=null;t<=e;)g||(v=e.toDate()),(g=W3(t,i,u,d))&&e.add(1,"d"),t.add(1,"d");return v},Td=function(t,e,i){i=i.trim();var u=/^after\s+([\d\w- ]+)/.exec(i.trim());if(u!==null){var d=null;if(u[1].split(" ").forEach(function(w){var C=Ch(w);C!==void 0&&(d?C.endTime>d.endTime&&(d=C):d=C)}),d)return d.endTime;var g=new Date;return g.setHours(0,0,0,0),g}var v=c()(i,e.trim(),!0);return v.isValid()?v.toDate():(p.debug("Invalid date:"+i),p.debug("With date format:"+e.trim()),new Date)},Sh=function(t,e){if(t!==null)switch(t[2]){case"s":e.add(t[1],"seconds");break;case"m":e.add(t[1],"minutes");break;case"h":e.add(t[1],"hours");break;case"d":e.add(t[1],"days");break;case"w":e.add(t[1],"weeks")}return e.toDate()},fm=function(t,e,i,u){u=u||!1,i=i.trim();var d=c()(i,e.trim(),!0);return d.isValid()?(u&&d.add(1,"d"),d.toDate()):Sh(/^([\d]+)([wdhms])/.exec(i.trim()),c()(t))},dm=0,Os=function(t){return t===void 0?"task"+(dm+=1):t},_i=[],V3={},Ch=function(t){var e=V3[t];return _i[e]},mp=function(){for(var t=function(u){var d=_i[u],g="";switch(_i[u].raw.startTime.type){case"prevTaskEnd":var v=Ch(d.prevTaskId);d.startTime=v.endTime;break;case"getStartDate":(g=Td(0,Ns,_i[u].raw.startTime.startData))&&(_i[u].startTime=g)}return _i[u].startTime&&(_i[u].endTime=fm(_i[u].startTime,Ns,_i[u].raw.endTime.data,Eh),_i[u].endTime&&(_i[u].processed=!0,_i[u].manualEndTime=c()(_i[u].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),hm(_i[u],Ns,Zc,kd))),_i[u].processed},e=!0,i=0;i<_i.length;i++)t(i),e=e&&_i[i].processed;return e},G3=function(t,e){t.split(",").forEach(function(i){var u=Ch(i);u!==void 0&&u.classes.push(e)})},Z3=function(t,e){Th.push(function(){var i=document.querySelector('[id="'.concat(t,'"]'));i!==null&&i.addEventListener("click",function(){e()})}),Th.push(function(){var i=document.querySelector('[id="'.concat(t,'-text"]'));i!==null&&i.addEventListener("click",function(){e()})})};const Ed={parseDirective:function(t,e,i){la.parseDirective(this,t,e,i)},getConfig:function(){return se().gantt},clear:function(){gp=[],kh=[],Xc="",Th=[],cm="",dm=0,am=void 0,pp=void 0,_i=[],Ns="",om="",sm="",kd=[],Zc=[],Eh=!1,um=!1,lm=0},setDateFormat:function(t){Ns=t},getDateFormat:function(){return Ns},enableInclusiveEndDates:function(){Eh=!0},endDatesAreInclusive:function(){return Eh},enableTopAxis:function(){um=!0},topAxisEnabled:function(){return um},setAxisFormat:function(t){om=t},getAxisFormat:function(){return om},setTodayMarker:function(t){sm=t},getTodayMarker:function(){return sm},setTitle:function(t){cm=t},getTitle:function(){return cm},addSection:function(t){Xc=t,gp.push(t)},getSections:function(){return gp},getTasks:function(){for(var t=mp(),e=0;!t&&e<10;)t=mp(),e++;return kh=_i},addTask:function(t,e){var i={section:Xc,type:Xc,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},u=function(g,v){var w=(v.substr(0,1)===":"?v.substr(1,v.length):v).split(","),C={};X3(w,C,yp);for(var S=0;S<w.length;S++)w[S]=w[S].trim();switch(w.length){case 1:C.id=Os(),C.startTime={type:"prevTaskEnd",id:g},C.endTime={data:w[0]};break;case 2:C.id=Os(),C.startTime={type:"getStartDate",startData:w[0]},C.endTime={data:w[1]};break;case 3:C.id=Os(w[0]),C.startTime={type:"getStartDate",startData:w[1]},C.endTime={data:w[2]}}return C}(pp,e);i.raw.startTime=u.startTime,i.raw.endTime=u.endTime,i.id=u.id,i.prevTaskId=pp,i.active=u.active,i.done=u.done,i.crit=u.crit,i.milestone=u.milestone,i.order=lm,lm++;var d=_i.push(i);pp=i.id,V3[i.id]=d-1},findTaskById:Ch,addTaskOrg:function(t,e){var i={section:Xc,type:Xc,description:t,task:t,classes:[]},u=function(d,g){var v=(g.substr(0,1)===":"?g.substr(1,g.length):g).split(","),w={};X3(v,w,yp);for(var C=0;C<v.length;C++)v[C]=v[C].trim();var S="";switch(v.length){case 1:w.id=Os(),w.startTime=d.endTime,S=v[0];break;case 2:w.id=Os(),w.startTime=Td(0,Ns,v[0]),S=v[1];break;case 3:w.id=Os(v[0]),w.startTime=Td(0,Ns,v[1]),S=v[2]}return S&&(w.endTime=fm(w.startTime,Ns,S,Eh),w.manualEndTime=c()(S,"YYYY-MM-DD",!0).isValid(),hm(w,Ns,Zc,kd)),w}(am,e);i.startTime=u.startTime,i.endTime=u.endTime,i.id=u.id,i.active=u.active,i.done=u.done,i.crit=u.crit,i.milestone=u.milestone,am=i,kh.push(i)},setIncludes:function(t){kd=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return kd},setExcludes:function(t){Zc=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return Zc},setClickEvent:function(t,e,i){t.split(",").forEach(function(u){(function(d,g,v){if(se().securityLevel==="loose"&&g!==void 0){var w=[];if(typeof v=="string"){w=v.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var C=0;C<w.length;C++){var S=w[C].trim();S.charAt(0)==='"'&&S.charAt(S.length-1)==='"'&&(S=S.substr(1,S.length-2)),w[C]=S}}w.length===0&&w.push(d),Ch(d)!==void 0&&Z3(d,function(){var B;Qn.runFunc.apply(Qn,[g].concat(function(j){if(Array.isArray(j))return dp(j)}(B=w)||function(j){if(typeof Symbol!="undefined"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}(B)||function(j,P){if(j){if(typeof j=="string")return dp(j,P);var U=Object.prototype.toString.call(j).slice(8,-1);return U==="Object"&&j.constructor&&(U=j.constructor.name),U==="Map"||U==="Set"?Array.from(j):U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U)?dp(j,P):void 0}}(B)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))})}})(u,e,i)}),G3(t,"clickable")},setLink:function(t,e){var i=e;se().securityLevel!=="loose"&&(i=(0,ju.sanitizeUrl)(e)),t.split(",").forEach(function(u){Ch(u)!==void 0&&Z3(u,function(){window.open(i,"_self")})}),G3(t,"clickable")},bindFunctions:function(t){Th.forEach(function(e){e(t)})},durationToDate:Sh,isInvalidDate:W3};function X3(t,e,i){for(var u=!0;u;)u=!1,i.forEach(function(d){var g=new RegExp("^\\s*"+d+"\\s*$");t[0].match(g)&&(e[d]=!0,t.shift(1),u=!0)})}var Kc,Eo=o(9959),pm=o.n(Eo);Eo.parser.yy=Ed;const K3=function(t,e){var i=se().gantt;Eo.parser.yy.clear(),Eo.parser.parse(t);var u=document.getElementById(e);(Kc=u.parentElement.offsetWidth)===void 0&&(Kc=1200),i.useWidth!==void 0&&(Kc=i.useWidth);var d=Eo.parser.yy.getTasks(),g=d.length*(i.barHeight+i.barGap)+2*i.topPadding;u.setAttribute("viewBox","0 0 "+Kc+" "+g);for(var v=Se('[id="'.concat(e,'"]')),w=function(){return $s.apply(s_(Fv,Y5,Gs,Ig,T0,Dl,k0,lf,Al,Pv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([D(d,function(j){return j.startTime}),k(d,function(j){return j.endTime})]).rangeRound([0,Kc-i.leftPadding-i.rightPadding]),C=[],S=0;S<d.length;S++)C.push(d[S].type);var B=C;C=function(j){for(var P={},U=[],ot=0,vt=j.length;ot<vt;++ot)Object.prototype.hasOwnProperty.call(P,j[ot])||(P[j[ot]]=!0,U.push(j[ot]));return U}(C),d.sort(function(j,P){var U=j.startTime,ot=P.startTime,vt=0;return U>ot?vt=1:U<ot&&(vt=-1),vt}),function(j,P,U){var ot=i.barHeight,vt=ot+i.barGap,bt=i.topPadding,kt=i.leftPadding;Nv().domain([0,C.length]).range(["#00B9FA","#F95002"]).interpolate(C5),function(_t,lt,$t,Lt,gt,Bt,ne,At){var Tt=Bt.reduce(function(ve,me){var De=me.startTime;return ve?Math.min(ve,De):De},0),jt=Bt.reduce(function(ve,me){var De=me.endTime;return ve?Math.max(ve,De):De},0),Dt=Eo.parser.yy.getDateFormat();if(Tt&&jt){for(var te=[],yt=null,ue=c()(Tt);ue.valueOf()<=jt;)Eo.parser.yy.isInvalidDate(ue,Dt,ne,At)?yt?yt.end=ue.clone():yt={start:ue.clone(),end:ue.clone()}:yt&&(te.push(yt),yt=null),ue.add(1,"d");v.append("g").selectAll("rect").data(te).enter().append("rect").attr("id",function(ve){return"exclude-"+ve.start.format("YYYY-MM-DD")}).attr("x",function(ve){return w(ve.start)+$t}).attr("y",i.gridLineStartPadding).attr("width",function(ve){var me=ve.end.clone().add(1,"day");return w(me)-w(ve.start)}).attr("height",gt-lt-i.gridLineStartPadding).attr("transform-origin",function(ve,me){return(w(ve.start)+$t+.5*(w(ve.end)-w(ve.start))).toString()+"px "+(me*_t+.5*gt).toString()+"px"}).attr("class","exclude-range")}}(vt,bt,kt,0,U,j,Eo.parser.yy.getExcludes(),Eo.parser.yy.getIncludes()),function(_t,lt,$t,Lt){var gt,Bt=(gt=w,it(3,gt)).tickSize(-Lt+lt+i.gridLineStartPadding).tickFormat(oo(Eo.parser.yy.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(v.append("g").attr("class","grid").attr("transform","translate("+_t+", "+(Lt-50)+")").call(Bt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),Ed.topAxisEnabled()||i.topAxis){var ne=function(At){return it(1,At)}(w).tickSize(-Lt+lt+i.gridLineStartPadding).tickFormat(oo(Eo.parser.yy.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));v.append("g").attr("class","grid").attr("transform","translate("+_t+", "+lt+")").call(ne).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(kt,bt,0,U),function(_t,lt,$t,Lt,gt,Bt,ne){v.append("g").selectAll("rect").data(_t).enter().append("rect").attr("x",0).attr("y",function(Tt,jt){return Tt.order*lt+$t-2}).attr("width",function(){return ne-i.rightPadding/2}).attr("height",lt).attr("class",function(Tt){for(var jt=0;jt<C.length;jt++)if(Tt.type===C[jt])return"section section"+jt%i.numberSectionStyles;return"section section0"});var At=v.append("g").selectAll("rect").data(_t).enter();At.append("rect").attr("id",function(Tt){return Tt.id}).attr("rx",3).attr("ry",3).attr("x",function(Tt){return Tt.milestone?w(Tt.startTime)+Lt+.5*(w(Tt.endTime)-w(Tt.startTime))-.5*gt:w(Tt.startTime)+Lt}).attr("y",function(Tt,jt){return Tt.order*lt+$t}).attr("width",function(Tt){return Tt.milestone?gt:w(Tt.renderEndTime||Tt.endTime)-w(Tt.startTime)}).attr("height",gt).attr("transform-origin",function(Tt,jt){return jt=Tt.order,(w(Tt.startTime)+Lt+.5*(w(Tt.endTime)-w(Tt.startTime))).toString()+"px "+(jt*lt+$t+.5*gt).toString()+"px"}).attr("class",function(Tt){var jt="";Tt.classes.length>0&&(jt=Tt.classes.join(" "));for(var Dt=0,te=0;te<C.length;te++)Tt.type===C[te]&&(Dt=te%i.numberSectionStyles);var yt="";return Tt.active?Tt.crit?yt+=" activeCrit":yt=" active":Tt.done?yt=Tt.crit?" doneCrit":" done":Tt.crit&&(yt+=" crit"),yt.length===0&&(yt=" task"),Tt.milestone&&(yt=" milestone "+yt),"task"+(yt+=Dt)+" "+jt}),At.append("text").attr("id",function(Tt){return Tt.id+"-text"}).text(function(Tt){return Tt.task}).attr("font-size",i.fontSize).attr("x",function(Tt){var jt=w(Tt.startTime),Dt=w(Tt.renderEndTime||Tt.endTime);Tt.milestone&&(jt+=.5*(w(Tt.endTime)-w(Tt.startTime))-.5*gt),Tt.milestone&&(Dt=jt+gt);var te=this.getBBox().width;return te>Dt-jt?Dt+te+1.5*i.leftPadding>ne?jt+Lt-5:Dt+Lt+5:(Dt-jt)/2+jt+Lt}).attr("y",function(Tt,jt){return Tt.order*lt+i.barHeight/2+(i.fontSize/2-2)+$t}).attr("text-height",gt).attr("class",function(Tt){var jt=w(Tt.startTime),Dt=w(Tt.endTime);Tt.milestone&&(Dt=jt+gt);var te=this.getBBox().width,yt="";Tt.classes.length>0&&(yt=Tt.classes.join(" "));for(var ue=0,ve=0;ve<C.length;ve++)Tt.type===C[ve]&&(ue=ve%i.numberSectionStyles);var me="";return Tt.active&&(me=Tt.crit?"activeCritText"+ue:"activeText"+ue),Tt.done?me=Tt.crit?me+" doneCritText"+ue:me+" doneText"+ue:Tt.crit&&(me=me+" critText"+ue),Tt.milestone&&(me+=" milestoneText"),te>Dt-jt?Dt+te+1.5*i.leftPadding>ne?yt+" taskTextOutsideLeft taskTextOutside"+ue+" "+me:yt+" taskTextOutsideRight taskTextOutside"+ue+" "+me+" width-"+te:yt+" taskText taskText"+ue+" "+me+" width-"+te})}(j,vt,bt,kt,ot,0,P),function(_t,lt){for(var $t=[],Lt=0,gt=0;gt<C.length;gt++)$t[gt]=[C[gt],(Bt=C[gt],ne=B,function(At){for(var Tt=At.length,jt={};Tt;)jt[At[--Tt]]=(jt[At[Tt]]||0)+1;return jt}(ne)[Bt]||0)];var Bt,ne;v.append("g").selectAll("text").data($t).enter().append(function(At){var Tt=At[0].split(vr.lineBreakRegex),jt=-(Tt.length-1)/2,Dt=document.createElementNS("http://www.w3.org/2000/svg","text");Dt.setAttribute("dy",jt+"em");for(var te=0;te<Tt.length;te++){var yt=document.createElementNS("http://www.w3.org/2000/svg","tspan");yt.setAttribute("alignment-baseline","central"),yt.setAttribute("x","10"),te>0&&yt.setAttribute("dy","1em"),yt.textContent=Tt[te],Dt.appendChild(yt)}return Dt}).attr("x",10).attr("y",function(At,Tt){if(!(Tt>0))return At[1]*_t/2+lt;for(var jt=0;jt<Tt;jt++)return Lt+=$t[Tt-1][1],At[1]*_t/2+Lt*_t+lt}).attr("font-size",i.sectionFontSize).attr("font-size",i.sectionFontSize).attr("class",function(At){for(var Tt=0;Tt<C.length;Tt++)if(At[0]===C[Tt])return"sectionTitle sectionTitle"+Tt%i.numberSectionStyles;return"sectionTitle"})}(vt,bt),function(_t,lt,$t,Lt){var gt=Ed.getTodayMarker();if(gt!=="off"){var Bt=v.append("g").attr("class","today"),ne=new Date,At=Bt.append("line");At.attr("x1",w(ne)+_t).attr("x2",w(ne)+_t).attr("y1",i.titleTopMargin).attr("y2",Lt-i.titleTopMargin).attr("class","today"),gt!==""&&At.attr("style",gt.replace(/,/g,";"))}}(kt,0,0,U)}(d,Kc,g),uo(v,g,Kc,i.useMaxWidth),v.append("text").text(Eo.parser.yy.getTitle()).attr("x",Kc/2).attr("y",i.titleTopMargin).attr("class","titleText")};var Ai={},La=null,Bi={master:La},rs="master",Q3="LR",gm=0;function ym(){return Sy({length:7})}function Sd(t,e){p.debug("Entering isfastforwardable:",t.id,e.id);for(var i=0;t.seq<=e.seq&&t!==e&&i<1e3&&(i++,e.parent!=null);){if(Array.isArray(e.parent))return p.debug("In merge commit:",e.parent),Sd(t,Ai[e.parent[0]])||Sd(t,Ai[e.parent[1]]);e=Ai[e.parent]}return p.debug(t.id,e.id),t.id===e.id}var vp={};function mm(t,e,i){var u=t.indexOf(e);u===-1?t.push(i):t.splice(u,1,i)}function ho(t){var e=t.reduce(function(B,j){return B.seq>j.seq?B:j},t[0]),i="";t.forEach(function(B){i+=B===e?" *":" |"});var u,d,g,v=[i,e.id,e.seq];for(var w in Bi)Bi[w]===e.id&&v.push(w);if(p.debug(v.join(" ")),Array.isArray(e.parent)){var C=Ai[e.parent[0]];mm(t,e,C),t.push(Ai[e.parent[1]])}else{if(e.parent==null)return;var S=Ai[e.parent];mm(t,e,S)}u=t,d=function(B){return B.id},g=Object.create(null),ho(t=u.reduce(function(B,j){var P=d(j);return g[P]||(g[P]=!0,B.push(j)),B},[]))}var fo=function(){var t=Object.keys(Ai).map(function(e){return Ai[e]});return t.forEach(function(e){p.debug(e.id)}),t.sort(function(e,i){return i.seq-e.seq}),t};const Qc={setDirection:function(t){Q3=t},setOptions:function(t){p.debug("options str",t),t=(t=t&&t.trim())||"{}";try{vp=JSON.parse(t)}catch(e){p.error("error while parsing gitGraph options",e.message)}},getOptions:function(){return vp},commit:function(t){var e={id:ym(),message:t,seq:gm++,parent:La==null?null:La.id};La=e,Ai[e.id]=e,Bi[rs]=e.id,p.debug("in pushCommit "+e.id)},branch:function(t){Bi[t]=La!=null?La.id:null,p.debug("in createBranch")},merge:function(t){var e=Ai[Bi[rs]],i=Ai[Bi[t]];if(function(d,g){return d.seq>g.seq&&Sd(g,d)}(e,i))p.debug("Already merged");else{if(Sd(e,i))Bi[rs]=Bi[t],La=Ai[Bi[rs]];else{var u={id:ym(),message:"merged branch "+t+" into "+rs,seq:gm++,parent:[La==null?null:La.id,Bi[t]]};La=u,Ai[u.id]=u,Bi[rs]=u.id}p.debug(Bi),p.debug("in mergeBranch")}},checkout:function(t){p.debug("in checkout");var e=Bi[rs=t];La=Ai[e]},reset:function(t){p.debug("in reset",t);var e=t.split(":")[0],i=parseInt(t.split(":")[1]),u=e==="HEAD"?La:Ai[Bi[e]];for(p.debug(u,i);i>0;)if(i--,!(u=Ai[u.parent])){var d="Critical error - unique parent commit not found during reset";throw p.error(d),d}La=u,Bi[rs]=u.id},prettyPrint:function(){p.debug(Ai),ho([fo()[0]])},clear:function(){Ai={},Bi={master:La=null},rs="master",gm=0},getBranchesAsObjArray:function(){var t=[];for(var e in Bi)t.push({name:e,commit:Ai[Bi[e]]});return t},getBranches:function(){return Bi},getCommits:function(){return Ai},getCommitsArray:fo,getCurrentBranch:function(){return rs},getDirection:function(){return Q3},getHead:function(){return La}};var Mh,J3=o(2553),t4=o.n(J3),Jc={},Fn={nodeSpacing:150,nodeFillColor:"yellow",nodeStrokeWidth:2,nodeStrokeColor:"grey",lineStrokeWidth:4,branchOffset:50,lineColor:"grey",leftMargin:50,branchColors:["#442f74","#983351","#609732","#AA9A39"],nodeRadius:10,nodeLabel:{width:75,height:100,x:-25,y:0}},Cd={};function uc(t,e,i,u){var d=Qo(u,jr),g=Fn.branchColors[i%Fn.branchColors.length],v=xo().x(function(w){return Math.round(w.x)}).y(function(w){return Math.round(w.y)}).curve(d);t.append("svg:path").attr("d",v(e)).style("stroke",g).style("stroke-width",Fn.lineStrokeWidth).style("fill","none")}function e4(t,e){e=e||t.node().getBBox();var i=t.node().getCTM();return{left:i.e+e.x*i.a,top:i.f+e.y*i.d,width:e.width,height:e.height}}function _p(t,e,i,u,d){p.debug("svgDrawLineForCommits: ",e,i);var g=e4(t.select("#node-"+e+" circle")),v=e4(t.select("#node-"+i+" circle"));switch(u){case"LR":if(g.left-v.left>Fn.nodeSpacing){var w={x:g.left-Fn.nodeSpacing,y:v.top+v.height/2};uc(t,[w,{x:v.left+v.width,y:v.top+v.height/2}],d,"linear"),uc(t,[{x:g.left,y:g.top+g.height/2},{x:g.left-Fn.nodeSpacing/2,y:g.top+g.height/2},{x:g.left-Fn.nodeSpacing/2,y:w.y},w],d)}else uc(t,[{x:g.left,y:g.top+g.height/2},{x:g.left-Fn.nodeSpacing/2,y:g.top+g.height/2},{x:g.left-Fn.nodeSpacing/2,y:v.top+v.height/2},{x:v.left+v.width,y:v.top+v.height/2}],d);break;case"BT":if(v.top-g.top>Fn.nodeSpacing){var C={x:v.left+v.width/2,y:g.top+g.height+Fn.nodeSpacing};uc(t,[C,{x:v.left+v.width/2,y:v.top}],d,"linear"),uc(t,[{x:g.left+g.width/2,y:g.top+g.height},{x:g.left+g.width/2,y:g.top+g.height+Fn.nodeSpacing/2},{x:v.left+v.width/2,y:C.y-Fn.nodeSpacing/2},C],d)}else uc(t,[{x:g.left+g.width/2,y:g.top+g.height},{x:g.left+g.width/2,y:g.top+Fn.nodeSpacing/2},{x:v.left+v.width/2,y:v.top-Fn.nodeSpacing/2},{x:v.left+v.width/2,y:v.top}],d)}}function k6(t,e){return t.select(e).node().cloneNode(!0)}function bp(t,e,i,u){var d,g=Object.keys(Jc).length;if(typeof e=="string"){var v=0;do{if(v++,d=Jc[e],p.debug("in renderCommitHistory",d.id,d.seq),t.select("#node-"+e).size()>0)return;t.append(function(){return k6(t,"#def-commit")}).attr("class","commit").attr("id",function(){return"node-"+d.id}).attr("transform",function(){switch(u){case"LR":return"translate("+(d.seq*Fn.nodeSpacing+Fn.leftMargin)+", "+Mh*Fn.branchOffset+")";case"BT":return"translate("+(Mh*Fn.branchOffset+Fn.leftMargin)+", "+(g-d.seq)*Fn.nodeSpacing+")"}}).attr("fill",Fn.nodeFillColor).attr("stroke",Fn.nodeStrokeColor).attr("stroke-width",Fn.nodeStrokeWidth);var w=void 0;for(var C in i)if(i[C].commit===d){w=i[C];break}w&&(p.debug("found branch ",w.name),t.select("#node-"+d.id+" p").append("xhtml:span").attr("class","branch-label").text(w.name+", ")),t.select("#node-"+d.id+" p").append("xhtml:span").attr("class","commit-id").text(d.id),d.message!==""&&u==="BT"&&t.select("#node-"+d.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+d.message),e=d.parent}while(e&&Jc[e]&&v<1e3)}Array.isArray(e)&&(p.debug("found merge commmit",e),bp(t,e[0],i,u),Mh++,bp(t,e[1],i,u),Mh--)}function n4(t,e,i,u){u=u||0;for(var d=0;e.seq>0&&!e.lineDrawn&&d<1e3;)d++,typeof e.parent=="string"?(_p(t,e.id,e.parent,i,u),e.lineDrawn=!0,e=Jc[e.parent]):Array.isArray(e.parent)&&(_p(t,e.id,e.parent[0],i,u),_p(t,e.id,e.parent[1],i,u+1),n4(t,Jc[e.parent[1]],i,u+1),e.lineDrawn=!0,e=Jc[e.parent[0]])}const vm=function(t){Cd=t};var r4="",Md=!1;const wp={setMessage:function(t){p.debug("Setting message to: "+t),r4=t},getMessage:function(){return r4},setInfo:function(t){Md=t},getInfo:function(){return Md}};var T6=o(6765),xp=o.n(T6),E6={};const kp=function(t){Object.keys(t).forEach(function(e){E6[e]=t[e]})};var S6=o(7062),Tp=o.n(S6),Ad={},_m="",Ep=!1;const bm={parseDirective:function(t,e,i){la.parseDirective(this,t,e,i)},getConfig:function(){return se().pie},addSection:function(t,e){Ad[t]===void 0&&(Ad[t]=e,p.debug("Added new section :",t))},getSections:function(){return Ad},cleanupValue:function(t){return t.substring(0,1)===":"&&(t=t.substring(1).trim()),Number(t.trim())},clear:function(){Ad={},_m="",Ep=!1},setTitle:function(t){_m=t},getTitle:function(){return _m},setShowData:function(t){Ep=t},getShowData:function(){return Ep}};var lc,hc=se();const i4=function(t,e){try{hc=se();var i=Tp().parser;i.yy=bm,p.debug(`Rendering info diagram
`+t),i.yy.clear(),i.parse(t),p.debug("Parsed info diagram");var u=document.getElementById(e);(lc=u.parentElement.offsetWidth)===void 0&&(lc=1200),hc.useWidth!==void 0&&(lc=hc.useWidth),hc.pie.useWidth!==void 0&&(lc=hc.pie.useWidth);var d=Se("#"+e);uo(d,450,lc,hc.pie.useMaxWidth),u.setAttribute("viewBox","0 0 "+lc+" 450");var g=Math.min(lc,450)/2-40,v=d.append("g").attr("transform","translate("+lc/2+",225)"),w=bm.getSections(),C=0;Object.keys(w).forEach(function(bt){C+=w[bt]});var S=hc.themeVariables,B=[S.pie1,S.pie2,S.pie3,S.pie4,S.pie5,S.pie6,S.pie7,S.pie8,S.pie9,S.pie10,S.pie11,S.pie12],j=Ec().range(B),P=function(){var bt=jl,kt=Y0,_t=null,lt=xr(0),$t=xr(xf),Lt=xr(0);function gt(Bt){var ne,At,Tt,jt,Dt,te=(Bt=C_(Bt)).length,yt=0,ue=new Array(te),ve=new Array(te),me=+lt.apply(this,arguments),De=Math.min(xf,Math.max(-xf,$t.apply(this,arguments)-me)),He=Math.min(Math.abs(De)/te,Lt.apply(this,arguments)),ze=He*(De<0?-1:1);for(ne=0;ne<te;++ne)(Dt=ve[ue[ne]=ne]=+bt(Bt[ne],ne,Bt))>0&&(yt+=Dt);for(kt!=null?ue.sort(function(fn,Oe){return kt(ve[fn],ve[Oe])}):_t!=null&&ue.sort(function(fn,Oe){return _t(Bt[fn],Bt[Oe])}),ne=0,Tt=yt?(De-te*ze)/yt:0;ne<te;++ne,me=jt)At=ue[ne],jt=me+((Dt=ve[At])>0?Dt*Tt:0)+ze,ve[At]={data:Bt[At],index:ne,value:Dt,startAngle:me,endAngle:jt,padAngle:He};return ve}return gt.value=function(Bt){return arguments.length?(bt=typeof Bt=="function"?Bt:xr(+Bt),gt):bt},gt.sortValues=function(Bt){return arguments.length?(kt=Bt,_t=null,gt):kt},gt.sort=function(Bt){return arguments.length?(_t=Bt,kt=null,gt):_t},gt.startAngle=function(Bt){return arguments.length?(lt=typeof Bt=="function"?Bt:xr(+Bt),gt):lt},gt.endAngle=function(Bt){return arguments.length?($t=typeof Bt=="function"?Bt:xr(+Bt),gt):$t},gt.padAngle=function(Bt){return arguments.length?(Lt=typeof Bt=="function"?Bt:xr(+Bt),gt):Lt},gt}().value(function(bt){return bt[1]}),U=P(Object.entries(w)),ot=a2().innerRadius(0).outerRadius(g);v.selectAll("mySlices").data(U).enter().append("path").attr("d",ot).attr("fill",function(bt){return j(bt.data[0])}).attr("class","pieCircle"),v.selectAll("mySlices").data(U).enter().append("text").text(function(bt){return(bt.data[1]/C*100).toFixed(0)+"%"}).attr("transform",function(bt){return"translate("+ot.centroid(bt)+")"}).style("text-anchor","middle").attr("class","slice"),v.append("text").text(i.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var vt=v.selectAll(".legend").data(j.domain()).enter().append("g").attr("class","legend").attr("transform",function(bt,kt){return"translate(216,"+(22*kt-22*j.domain().length/2)+")"});vt.append("rect").attr("width",18).attr("height",18).style("fill",j).style("stroke",j),vt.data(U).append("text").attr("x",22).attr("y",14).text(function(bt){return i.yy.getShowData()||hc.showData||hc.pie.showData?bt.data[0]+" ["+bt.data[1]+"]":bt.data[0]})}catch(bt){p.error("Error while rendering info diagram"),p.error(bt)}};var Sp=o(3176),a4=o.n(Sp),Cp=[],Ba={},Ju={},is={},Ah={};const tl={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(t,e,i){la.parseDirective(this,t,e,i)},getConfig:function(){return se().req},addRequirement:function(t,e){return Ju[t]===void 0&&(Ju[t]={name:t,type:e,id:Ba.id,text:Ba.text,risk:Ba.risk,verifyMethod:Ba.verifyMethod}),Ba={},Ju[t]},getRequirements:function(){return Ju},setNewReqId:function(t){Ba!==void 0&&(Ba.id=t)},setNewReqText:function(t){Ba!==void 0&&(Ba.text=t)},setNewReqRisk:function(t){Ba!==void 0&&(Ba.risk=t)},setNewReqVerifyMethod:function(t){Ba!==void 0&&(Ba.verifyMethod=t)},addElement:function(t){return Ah[t]===void 0&&(Ah[t]={name:t,type:is.type,docRef:is.docRef},p.info("Added new requirement: ",t)),is={},Ah[t]},getElements:function(){return Ah},setNewElementType:function(t){is!==void 0&&(is.type=t)},setNewElementDocRef:function(t){is!==void 0&&(is.docRef=t)},addRelationship:function(t,e,i){Cp.push({type:t,src:e,dst:i})},getRelationships:function(){return Cp},clear:function(){Cp=[],Ba={},Ju={},is={},Ah={}}};var wm={CONTAINS:"contains",ARROW:"arrow"};const C6=wm;var Di={},xm=0,o4=function(t,e){return t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Di.rect_min_width+"px").attr("height",Di.rect_min_height+"px")},Dd=function(t,e,i){var u=Di.rect_min_width/2,d=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",u).attr("y",Di.rect_padding).attr("dominant-baseline","hanging"),g=0;i.forEach(function(w){g==0?d.append("tspan").attr("text-anchor","middle").attr("x",Di.rect_min_width/2).attr("dy",0).text(w):d.append("tspan").attr("text-anchor","middle").attr("x",Di.rect_min_width/2).attr("dy",.75*Di.line_height).text(w),g++});var v=1.5*Di.rect_padding+g*Di.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Di.rect_min_width).attr("y1",v).attr("y2",v),{titleNode:d,y:v}},s4=function(t,e,i,u){var d=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",Di.rect_padding).attr("y",u).attr("dominant-baseline","hanging"),g=0,v=[];return i.forEach(function(w){for(var C=w.length;C>30&&g<3;){var S=w.substring(0,30);C=(w=w.substring(30,w.length)).length,v[v.length]=S,g++}if(g==3){var B=v[v.length-1];v[v.length-1]=B.substring(0,B.length-4)+"..."}else v[v.length]=w;g=0}),v.forEach(function(w){d.append("tspan").attr("x",Di.rect_padding).attr("dy",Di.line_height).text(w)}),d},Dh=function(t){return t.replace(/\s/g,"").replace(/\./g,"_")};const c4=function(t){if(t!==void 0)for(var e=Object.keys(t),i=0;i<e.length;i++)Di[e[i]]=t[e[i]]},Nh=function(t,e){Sp.parser.yy=tl,Sp.parser.yy.clear(),Sp.parser.parse(t);var i=Se("[id='".concat(e,"']"));(function(j,P){var U=j.append("defs").append("marker").attr("id",wm.CONTAINS+"_line_ending").attr("refX",0).attr("refY",P.line_height/2).attr("markerWidth",P.line_height).attr("markerHeight",P.line_height).attr("orient","auto").append("g");U.append("circle").attr("cx",P.line_height/2).attr("cy",P.line_height/2).attr("r",P.line_height/2).attr("fill","none"),U.append("line").attr("x1",0).attr("x2",P.line_height).attr("y1",P.line_height/2).attr("y2",P.line_height/2).attr("stroke-width",1),U.append("line").attr("y1",0).attr("y2",P.line_height).attr("x1",P.line_height/2).attr("x2",P.line_height/2).attr("stroke-width",1),j.append("defs").append("marker").attr("id",wm.ARROW+"_line_ending").attr("refX",P.line_height).attr("refY",.5*P.line_height).attr("markerWidth",P.line_height).attr("markerHeight",P.line_height).attr("orient","auto").append("path").attr("d",`M0,0
L`.concat(P.line_height,",").concat(P.line_height/2,`
M`).concat(P.line_height,",").concat(P.line_height/2,`
L0,`).concat(P.line_height)).attr("stroke-width",1)})(i,Di);var u=new(Mi()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Di.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),d=tl.getRequirements(),g=tl.getElements(),v=tl.getRelationships();(function(j,P,U){Object.keys(j).forEach(function(ot){var vt=j[ot];ot=Dh(ot),p.info("Added new requirement: ",ot);var bt=U.append("g").attr("id",ot),kt=o4(bt,"req-"+ot),_t=Dd(bt,ot+"_title",["<<".concat(vt.type,">>"),"".concat(vt.name)]);s4(bt,ot+"_body",["Id: ".concat(vt.id),"Text: ".concat(vt.text),"Risk: ".concat(vt.risk),"Verification: ".concat(vt.verifyMethod)],_t.y);var lt=kt.node().getBBox();P.setNode(ot,{width:lt.width,height:lt.height,shape:"rect",id:ot})})})(d,u,i),function(j,P,U){Object.keys(j).forEach(function(ot){var vt=j[ot],bt=Dh(ot),kt=U.append("g").attr("id",bt),_t="element-"+bt,lt=o4(kt,_t),$t=Dd(kt,_t+"_title",["<<Element>>","".concat(ot)]);s4(kt,_t+"_body",["Type: ".concat(vt.type||"Not Specified"),"Doc Ref: ".concat(vt.docRef||"None")],$t.y);var Lt=lt.node().getBBox();P.setNode(bt,{width:Lt.width,height:Lt.height,shape:"rect",id:bt})})}(g,u,i),function(j,P){j.forEach(function(U){var ot=Dh(U.src),vt=Dh(U.dst);P.setEdge(ot,vt,{relationship:U})})}(v,u),pd().layout(u),function(j,P){P.nodes().forEach(function(U){U!==void 0&&P.node(U)!==void 0&&(j.select("#"+U),j.select("#"+U).attr("transform","translate("+(P.node(U).x-P.node(U).width/2)+","+(P.node(U).y-P.node(U).height/2)+" )"))})}(i,u),v.forEach(function(j){(function(P,U,ot,vt){var bt=ot.edge(Dh(U.src),Dh(U.dst)),kt=xo().x(function(lt){return lt.x}).y(function(lt){return lt.y}),_t=P.insert("path","#"+vt).attr("class","er relationshipLine").attr("d",kt(bt.points)).attr("fill","none");U.type==tl.Relationships.CONTAINS?_t.attr("marker-start","url("+vr.getUrl(Di.arrowMarkerAbsolute)+"#"+U.type+"_line_ending)"):(_t.attr("stroke-dasharray","10,7"),_t.attr("marker-end","url("+vr.getUrl(Di.arrowMarkerAbsolute)+"#"+C6.ARROW+"_line_ending)")),function(lt,$t,Lt,gt){var Bt=$t.node().getTotalLength(),ne=$t.node().getPointAtLength(.5*Bt),At="rel"+xm;xm++;var Tt=lt.append("text").attr("class","req relationshipLabel").attr("id",At).attr("x",ne.x).attr("y",ne.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(gt).node().getBBox();lt.insert("rect","#"+At).attr("class","req reqLabelBox").attr("x",ne.x-Tt.width/2).attr("y",ne.y-Tt.height/2).attr("width",Tt.width).attr("height",Tt.height).attr("fill","white").attr("fill-opacity","85%")}(P,_t,0,"<<".concat(U.type,">>"))})(i,j,u,e)});var w=Di.rect_padding,C=i.node().getBBox(),S=C.width+2*w,B=C.height+2*w;uo(i,B,S,Di.useMaxWidth),i.attr("viewBox","".concat(C.x-w," ").concat(C.y-w," ").concat(S," ").concat(B))};var Ke=o(6876),M6=o.n(Ke),Nd=void 0,tu={},Ls=[],u4="",l4=!1,km=!1,h4=!1,Mp=function(t,e,i,u){var d=tu[t];d&&e===d.name&&i==null||(i!=null&&i.text!=null||(i={text:e,wrap:null,type:u}),u!=null&&i.text!=null||(i={text:e,wrap:null,type:u}),tu[t]={name:e,description:i.text,wrap:i.wrap===void 0&&el()||!!i.wrap,prevActor:Nd,links:{},properties:{},actorCnt:null,rectData:null,type:u||"participant"},Nd&&tu[Nd]&&(tu[Nd].nextActor=t),Nd=t)},f4=function(t){var e,i=0;for(e=0;e<Ls.length;e++)Ls[e].type===Oh.ACTIVE_START&&Ls[e].from.actor===t&&i++,Ls[e].type===Oh.ACTIVE_END&&Ls[e].from.actor===t&&i--;return i},fc=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{text:void 0,wrap:void 0},u=arguments.length>3?arguments[3]:void 0;if(u===Oh.ACTIVE_END){var d=f4(t.actor);if(d<1){var g=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw g.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},g}}return Ls.push({from:t,to:e,message:i.text,wrap:i.wrap===void 0&&el()||!!i.wrap,type:u}),!0},Od=function(t){return tu[t]},el=function(){return h4},Oh={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},d4=function(t,e,i){i.text,i.wrap===void 0&&el()||i.wrap;var u=[].concat(t,t);Ls.push({from:u[0],to:u[1],message:i.text,wrap:i.wrap===void 0&&el()||!!i.wrap,type:Oh.NOTE,placement:e})},p4=function(t,e){var i=Od(t);try{var u=zu(e.text,se());u=(u=u.replace(/&amp;/g,"&")).replace(/&equals;/g,"="),Tm(i,JSON.parse(u))}catch(d){p.error("error while parsing actor link text",d)}};function Tm(t,e){if(t.links==null)t.links=e;else for(var i in e)t.links[i]=e[i]}var g4=function(t,e){var i=Od(t);try{var u=zu(e.text,se());y4(i,JSON.parse(u))}catch(d){p.error("error while parsing actor properties text",d)}};function y4(t,e){if(t.properties==null)t.properties=e;else for(var i in e)t.properties[i]=e[i]}var Em=function(t,e){var i=Od(t),u=document.getElementById(e.text);try{var d=u.innerHTML,g=JSON.parse(d);g.properties&&y4(i,g.properties),g.links&&Tm(i,g.links)}catch(v){p.error("error while parsing actor details text",v)}},m4=function(t){u4=t.text,l4=t.wrap===void 0&&el()||!!t.wrap};const Sm={addActor:Mp,addMessage:function(t,e,i,u){Ls.push({from:t,to:e,message:i.text,wrap:i.wrap===void 0&&el()||!!i.wrap,answer:u})},addSignal:fc,addLinks:p4,addDetails:Em,addProperties:g4,autoWrap:el,setWrap:function(t){h4=t},enableSequenceNumbers:function(){km=!0},showSequenceNumbers:function(){return km},getMessages:function(){return Ls},getActors:function(){return tu},getActor:Od,getActorKeys:function(){return Object.keys(tu)},getActorProperty:function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},getTitle:function(){return u4},parseDirective:function(t,e,i){la.parseDirective(this,t,e,i)},getConfig:function(){return se().sequence},getTitleWrapped:function(){return l4},clear:function(){tu={},Ls=[]},parseMessage:function(t){var e=t.trim(),i={text:e.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:e.match(/^[:]?wrap:/)!==null||e.match(/^[:]?nowrap:/)===null&&void 0};return p.debug("parseMessage:",i),i},LINETYPE:Oh,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:d4,setTitle:m4,apply:function t(e){if(e instanceof Array)e.forEach(function(i){t(i)});else switch(e.type){case"addParticipant":Mp(e.actor,e.actor,e.description,"participant");break;case"addActor":Mp(e.actor,e.actor,e.description,"actor");break;case"activeStart":case"activeEnd":fc(e.actor,void 0,void 0,e.signalType);break;case"addNote":d4(e.actor,e.placement,e.text);break;case"addLinks":p4(e.actor,e.text);break;case"addALink":(function(i,u){var d=Od(i);try{var g={},v=zu(u.text,se()),w=v.indexOf("@"),C=(v=(v=v.replace(/&amp;/g,"&")).replace(/&equals;/g,"=")).slice(0,w-1).trim(),S=v.slice(w+1).trim();g[C]=S,Tm(d,g)}catch(B){p.error("error while parsing actor link text",B)}})(e.actor,e.text);break;case"addProperties":g4(e.actor,e.text);break;case"addDetails":Em(e.actor,e.text);break;case"addMessage":fc(e.from,e.to,e.msg,e.signalType);break;case"loopStart":fc(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":fc(void 0,void 0,void 0,e.signalType);break;case"rectStart":fc(void 0,void 0,e.color,e.signalType);break;case"optStart":fc(void 0,void 0,e.optText,e.signalType);break;case"altStart":case"else":fc(void 0,void 0,e.altText,e.signalType);break;case"setTitle":m4(e.text);break;case"parStart":case"and":fc(void 0,void 0,e.parText,e.signalType)}}};var Ld=[],nl=function(t,e){var i=t.append("rect");return i.attr("x",e.x),i.attr("y",e.y),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("width",e.width),i.attr("height",e.height),i.attr("rx",e.rx),i.attr("ry",e.ry),e.class!==void 0&&i.attr("class",e.class),i},Lh=function(t,e){var i;i=function(){var u=document.querySelectorAll(t);u[0].addEventListener("mouseover",function(){_4("actor"+e+"_popup")}),u[0].addEventListener("mouseout",function(){Rd("actor"+e+"_popup")})},Ld.push(i)},Bd=function(t,e,i,u){var d=t.append("image");d.attr("x",e),d.attr("y",i);var g=(0,ju.sanitizeUrl)(u);d.attr("xlink:href",g)},v4=function(t,e,i,u){var d=t.append("use");d.attr("x",e),d.attr("y",i);var g=(0,ju.sanitizeUrl)(u);d.attr("xlink:href","#"+g)},_4=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="block")},Rd=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="none")},dc=function(t,e){var i=0,u=0,d=e.text.split(vr.lineBreakRegex),g=[],v=0,w=function(){return e.y};if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":w=function(){return Math.round(e.y+e.textMargin)};break;case"middle":case"center":w=function(){return Math.round(e.y+(i+u+e.textMargin)/2)};break;case"bottom":case"end":w=function(){return Math.round(e.y+(i+u+2*e.textMargin)-e.textMargin)}}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="text-after-edge",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="text-before-edge",e.alignmentBaseline="middle"}for(var C=0;C<d.length;C++){var S=d[C];e.textMargin!==void 0&&e.textMargin===0&&e.fontSize!==void 0&&(v=C*e.fontSize);var B=t.append("text");if(B.attr("x",e.x),B.attr("y",w()),e.anchor!==void 0&&B.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&B.style("font-family",e.fontFamily),e.fontSize!==void 0&&B.style("font-size",e.fontSize),e.fontWeight!==void 0&&B.style("font-weight",e.fontWeight),e.fill!==void 0&&B.attr("fill",e.fill),e.class!==void 0&&B.attr("class",e.class),e.dy!==void 0?B.attr("dy",e.dy):v!==0&&B.attr("dy",v),e.tspan){var j=B.append("tspan");j.attr("x",e.x),e.fill!==void 0&&j.attr("fill",e.fill),j.text(S)}else B.text(S);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(u+=(B._groups||B)[0][0].getBBox().height,i=u),g.push(B)}return g},Ap=function(t,e){var i=t.append("polygon");return i.attr("points",function(u,d,g,v,w){return u+","+d+" "+(u+g)+","+d+" "+(u+g)+","+(d+v-7)+" "+(u+g-8.4)+","+(d+v)+" "+u+","+(d+v)}(e.x,e.y,e.width,e.height)),i.attr("class","labelBox"),e.y=e.y+e.height/2,dc(t,e),i},Bs=-1,A6=function(t,e){t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},D6=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},b4=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},w4=function(){function t(d,g,v,w,C,S,B){u(g.append("text").attr("x",v+C/2).attr("y",w+S/2+5).style("text-anchor","middle").text(d),B)}function e(d,g,v,w,C,S,B,j){for(var P=j.actorFontSize,U=j.actorFontFamily,ot=j.actorFontWeight,vt=d.split(vr.lineBreakRegex),bt=0;bt<vt.length;bt++){var kt=bt*P-P*(vt.length-1)/2,_t=g.append("text").attr("x",v+C/2).attr("y",w).style("text-anchor","middle").style("font-size",P).style("font-weight",ot).style("font-family",U);_t.append("tspan").attr("x",v+C/2).attr("dy",kt).text(vt[bt]),_t.attr("y",w+S/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),u(_t,B)}}function i(d,g,v,w,C,S,B,j){var P=g.append("switch"),U=P.append("foreignObject").attr("x",v).attr("y",w).attr("width",C).attr("height",S).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");U.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(d),e(d,P,v,w,C,S,B,j),u(U,B)}function u(d,g){for(var v in g)g.hasOwnProperty(v)&&d.attr(v,g[v])}return function(d){return d.textPlacement==="fo"?i:d.textPlacement==="old"?t:e}}(),Cm=function(){function t(d,g,v,w,C,S,B){u(g.append("text").attr("x",v).attr("y",w).style("text-anchor","start").text(d),B)}function e(d,g,v,w,C,S,B,j){for(var P=j.actorFontSize,U=j.actorFontFamily,ot=j.actorFontWeight,vt=d.split(vr.lineBreakRegex),bt=0;bt<vt.length;bt++){var kt=bt*P-P*(vt.length-1)/2,_t=g.append("text").attr("x",v).attr("y",w).style("text-anchor","start").style("font-size",P).style("font-weight",ot).style("font-family",U);_t.append("tspan").attr("x",v).attr("dy",kt).text(vt[bt]),_t.attr("y",w+S/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),u(_t,B)}}function i(d,g,v,w,C,S,B,j){var P=g.append("switch"),U=P.append("foreignObject").attr("x",v).attr("y",w).attr("width",C).attr("height",S).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");U.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(d),e(d,P,v,w,0,S,B,j),u(U,B)}function u(d,g){for(var v in g)g.hasOwnProperty(v)&&d.attr(v,g[v])}return function(d){return d.textPlacement==="fo"?i:d.textPlacement==="old"?t:e}}();const x4=nl,N6=function(t,e,i){switch(e.type){case"actor":return function(u,d,g){var v=d.x+d.width/2;d.y===0&&(Bs++,u.append("line").attr("id","actor"+Bs).attr("x1",v).attr("y1",80).attr("x2",v).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var w=u.append("g");w.attr("class","actor-man");var C={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};C.x=d.x,C.y=d.y,C.fill="#eaeaea",C.width=d.width,C.height=d.height,C.class="actor",C.rx=3,C.ry=3,w.append("line").attr("id","actor-man-torso"+Bs).attr("x1",v).attr("y1",d.y+25).attr("x2",v).attr("y2",d.y+45),w.append("line").attr("id","actor-man-arms"+Bs).attr("x1",v-18).attr("y1",d.y+33).attr("x2",v+18).attr("y2",d.y+33),w.append("line").attr("x1",v-18).attr("y1",d.y+60).attr("x2",v).attr("y2",d.y+45),w.append("line").attr("x1",v).attr("y1",d.y+45).attr("x2",v+16).attr("y2",d.y+60);var S=w.append("circle");S.attr("cx",d.x+d.width/2),S.attr("cy",d.y+10),S.attr("r",15),S.attr("width",d.width),S.attr("height",d.height);var B=w.node().getBBox();return d.height=B.height,w4(g)(d.description,w,C.x,C.y+35,C.width,C.height,{class:"actor"},g),d.height}(t,e,i);case"participant":return function(u,d,g){var v=d.x+d.width/2,w=u.append("g"),C=w;d.y===0&&(Bs++,C.append("line").attr("id","actor"+Bs).attr("x1",v).attr("y1",5).attr("x2",v).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),C=w.append("g"),d.actorCnt=Bs,d.links!=null&&(C.attr("id","root-"+Bs),Lh("#root-"+Bs,Bs)));var S={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},B="actor";d.properties!=null&&d.properties.class?B=d.properties.class:S.fill="#eaeaea",S.x=d.x,S.y=d.y,S.width=d.width,S.height=d.height,S.class=B,S.rx=3,S.ry=3;var j=nl(C,S);if(d.rectData=S,d.properties!=null&&d.properties.icon){var P=d.properties.icon.trim();P.charAt(0)==="@"?v4(C,S.x+S.width-20,S.y+10,P.substr(1)):Bd(C,S.x+S.width-20,S.y+10,P)}w4(g)(d.description,C,S.x,S.y,S.width,S.height,{class:"actor"},g);var U=d.height;if(j.node){var ot=j.node().getBBox();d.height=ot.height,U=ot.height}return U}(t,e,i)}},Bh=function(t,e,i,u,d){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};var g=e.links,v=e.actorCnt,w=e.rectData,C="none";d&&(C="block !important");var S=t.append("g");S.attr("id","actor"+v+"_popup"),S.attr("class","actorPopupMenu"),S.attr("display",C),Lh("#actor"+v+"_popup",v);var B="";w.class!==void 0&&(B=" "+w.class);var j=w.width>i?w.width:i,P=S.append("rect");if(P.attr("class","actorPopupMenuPanel"+B),P.attr("x",w.x),P.attr("y",w.height),P.attr("fill",w.fill),P.attr("stroke",w.stroke),P.attr("width",j),P.attr("height",w.height),P.attr("rx",w.rx),P.attr("ry",w.ry),g!=null){var U=20;for(var ot in g){var vt=S.append("a"),bt=(0,ju.sanitizeUrl)(g[ot]);vt.attr("xlink:href",bt),vt.attr("target","_blank"),Cm(u)(ot,vt,w.x+10,w.height+U,j,20,{class:"actor"},u),U+=30}}return P.attr("height",U),{height:w.height+U,width:j}},Rh=function(t){return t.append("g")},k4=function(t,e,i,u,d){var g={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},v=e.anchored;g.x=e.startx,g.y=e.starty,g.class="activation"+d%3,g.width=e.stopx-e.startx,g.height=i-e.starty,nl(v,g)},Dp=function(t,e,i,u){var d=u.boxMargin,g=u.boxTextMargin,v=u.labelBoxHeight,w=u.labelBoxWidth,C=u.messageFontFamily,S=u.messageFontSize,B=u.messageFontWeight,j=t.append("g"),P=function(vt,bt,kt,_t){return j.append("line").attr("x1",vt).attr("y1",bt).attr("x2",kt).attr("y2",_t).attr("class","loopLine")};P(e.startx,e.starty,e.stopx,e.starty),P(e.stopx,e.starty,e.stopx,e.stopy),P(e.startx,e.stopy,e.stopx,e.stopy),P(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(vt){P(e.startx,vt.y,e.stopx,vt.y).style("stroke-dasharray","3, 3")});var U={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0};U.text=i,U.x=e.startx,U.y=e.starty,U.fontFamily=C,U.fontSize=S,U.fontWeight=B,U.anchor="middle",U.valign="middle",U.tspan=!1,U.width=w||50,U.height=v||20,U.textMargin=g,U.class="labelText",Ap(j,U),(U={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}).text=e.title,U.x=e.startx+w/2+(e.stopx-e.startx)/2,U.y=e.starty+d+g,U.anchor="middle",U.valign="middle",U.textMargin=g,U.class="loopText",U.fontFamily=C,U.fontSize=S,U.fontWeight=B,U.wrap=!0;var ot=dc(j,U);return e.sectionTitles!==void 0&&e.sectionTitles.forEach(function(vt,bt){if(vt.message){U.text=vt.message,U.x=e.startx+(e.stopx-e.startx)/2,U.y=e.sections[bt].y+d+g,U.class="loopText",U.anchor="middle",U.valign="middle",U.tspan=!1,U.fontFamily=C,U.fontSize=S,U.fontWeight=B,U.wrap=e.wrap,ot=dc(j,U);var kt=Math.round(ot.map(function(_t){return(_t._groups||_t)[0][0].getBBox().height}).reduce(function(_t,lt){return _t+lt}));e.sections[bt].height+=kt-(d+g)}}),e.height=Math.round(e.stopy-e.starty),j},T4=function(t,e){nl(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},Mm=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},O6=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},L6=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},E4=function(t){var e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),e.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},B6=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},Ih=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},po=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},Fh=D6,ya=b4;ju.sanitizeUrl,Ke.parser.yy=Sm;var Jt={},qe={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(function(t){return t.height||0}))+(this.loops.length===0?0:this.loops.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))+(this.messages.length===0?0:this.messages.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))+(this.notes.length===0?0:this.notes.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,S4(Ke.parser.yy.getConfig())},updateVal:function(t,e,i,u){t[e]===void 0?t[e]=i:t[e]=u(i,t[e])},updateBounds:function(t,e,i,u){var d=this,g=0;function v(w){return function(C){g++;var S=d.sequenceItems.length-g+1;d.updateVal(C,"starty",e-S*Jt.boxMargin,Math.min),d.updateVal(C,"stopy",u+S*Jt.boxMargin,Math.max),d.updateVal(qe.data,"startx",t-S*Jt.boxMargin,Math.min),d.updateVal(qe.data,"stopx",i+S*Jt.boxMargin,Math.max),w!=="activation"&&(d.updateVal(C,"startx",t-S*Jt.boxMargin,Math.min),d.updateVal(C,"stopx",i+S*Jt.boxMargin,Math.max),d.updateVal(qe.data,"starty",e-S*Jt.boxMargin,Math.min),d.updateVal(qe.data,"stopy",u+S*Jt.boxMargin,Math.max))}}this.sequenceItems.forEach(v()),this.activations.forEach(v("activation"))},insert:function(t,e,i,u){var d=Math.min(t,i),g=Math.max(t,i),v=Math.min(e,u),w=Math.max(e,u);this.updateVal(qe.data,"startx",d,Math.min),this.updateVal(qe.data,"starty",v,Math.min),this.updateVal(qe.data,"stopx",g,Math.max),this.updateVal(qe.data,"stopy",w,Math.max),this.updateBounds(d,v,g,w)},newActivation:function(t,e,i){var u=i[t.from.actor],d=So(t.from.actor).length||0,g=u.x+u.width/2+(d-1)*Jt.activationWidth/2;this.activations.push({startx:g,starty:this.verticalPos+2,stopx:g+Jt.activationWidth,stopy:void 0,actor:t.from.actor,anchored:Rh(e)})},endActivation:function(t){var e=this.activations.map(function(i){return i.actor}).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){var e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:qe.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},Id=function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},Ph=function(t){return{fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}},Fd=function(t){return{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}},Am=function(t,e,i,u){for(var d=0,g=0,v=0,w=0;w<i.length;w++){var C=e[i[w]];C.width=C.width||Jt.width,C.height=Math.max(C.height||Jt.height,Jt.height),C.margin=C.margin||Jt.actorMargin,C.x=d+g,C.y=u;var S=N6(t,C,Jt);v=Math.max(v,S),qe.insert(C.x,u,C.x+C.width,C.height),d+=C.width,g+=C.margin,qe.models.addActor(C)}qe.bumpVerticalPos(v)},Pd=function(t,e,i){for(var u=0,d=0,g=0;g<i.length;g++){var v=e[i[g]],w=Dm(v),C=Bh(t,v,w,Jt,Jt.forceMenus);C.height>u&&(u=C.height),C.width+v.x>d&&(d=C.width+v.x)}return{maxHeight:u,maxWidth:d}},S4=function(t){Qi(Jt,t),t.fontFamily&&(Jt.actorFontFamily=Jt.noteFontFamily=Jt.messageFontFamily=t.fontFamily),t.fontSize&&(Jt.actorFontSize=Jt.noteFontSize=Jt.messageFontSize=t.fontSize),t.fontWeight&&(Jt.actorFontWeight=Jt.noteFontWeight=Jt.messageFontWeight=t.fontWeight)},So=function(t){return qe.activations.filter(function(e){return e.actor===t})},Yd=function(t,e){var i=e[t],u=So(t);return[u.reduce(function(d,g){return Math.min(d,g.startx)},i.x+i.width/2),u.reduce(function(d,g){return Math.max(d,g.stopx)},i.x+i.width/2)]};function eu(t,e,i,u,d){qe.bumpVerticalPos(i);var g=u;if(e.id&&e.message&&t[e.id]){var v=t[e.id].width,w=Id(Jt);e.message=Qn.wrapLabel("[".concat(e.message,"]"),v-2*Jt.wrapPadding,w),e.width=v,e.wrap=!0;var C=Qn.calculateTextDimensions(e.message,w),S=Math.max(C.height,Jt.labelBoxHeight);g=u+S,p.debug("".concat(S," - ").concat(e.message))}d(e),qe.bumpVerticalPos(g)}var Dm=function(t){var e=0,i=Fd(Jt);for(var u in t.links){var d=Qn.calculateTextDimensions(u,i).width+2*Jt.wrapPadding+2*Jt.boxMargin;e<d&&(e=d)}return e};const pc={bounds:qe,drawActors:Am,drawActorsPopup:Pd,setConf:S4,draw:function(t,e){Jt=se().sequence,Ke.parser.yy.clear(),Ke.parser.yy.setWrap(Jt.wrap),Ke.parser.parse(t+`
`),qe.init(),p.debug("C:".concat(JSON.stringify(Jt,null,2)));var i=Se('[id="'.concat(e,'"]')),u=Ke.parser.yy.getActors(),d=Ke.parser.yy.getActorKeys(),g=Ke.parser.yy.getMessages(),v=Ke.parser.yy.getTitle(),w=function(kt,_t){var lt={};return _t.forEach(function($t){if(kt[$t.to]&&kt[$t.from]){var Lt=kt[$t.to];if($t.placement===Ke.parser.yy.PLACEMENT.LEFTOF&&!Lt.prevActor||$t.placement===Ke.parser.yy.PLACEMENT.RIGHTOF&&!Lt.nextActor)return;var gt=$t.placement!==void 0,Bt=!gt,ne=gt?Ph(Jt):Id(Jt),At=$t.wrap?Qn.wrapLabel($t.message,Jt.width-2*Jt.wrapPadding,ne):$t.message,Tt=Qn.calculateTextDimensions(At,ne).width+2*Jt.wrapPadding;Bt&&$t.from===Lt.nextActor?lt[$t.to]=Math.max(lt[$t.to]||0,Tt):Bt&&$t.from===Lt.prevActor?lt[$t.from]=Math.max(lt[$t.from]||0,Tt):Bt&&$t.from===$t.to?(lt[$t.from]=Math.max(lt[$t.from]||0,Tt/2),lt[$t.to]=Math.max(lt[$t.to]||0,Tt/2)):$t.placement===Ke.parser.yy.PLACEMENT.RIGHTOF?lt[$t.from]=Math.max(lt[$t.from]||0,Tt):$t.placement===Ke.parser.yy.PLACEMENT.LEFTOF?lt[Lt.prevActor]=Math.max(lt[Lt.prevActor]||0,Tt):$t.placement===Ke.parser.yy.PLACEMENT.OVER&&(Lt.prevActor&&(lt[Lt.prevActor]=Math.max(lt[Lt.prevActor]||0,Tt/2)),Lt.nextActor&&(lt[$t.from]=Math.max(lt[$t.from]||0,Tt/2)))}}),p.debug("maxMessageWidthPerActor:",lt),lt}(u,g);Jt.height=function(kt,_t){var lt=0;for(var $t in Object.keys(kt).forEach(function(ne){var At=kt[ne];At.wrap&&(At.description=Qn.wrapLabel(At.description,Jt.width-2*Jt.wrapPadding,Fd(Jt)));var Tt=Qn.calculateTextDimensions(At.description,Fd(Jt));At.width=At.wrap?Jt.width:Math.max(Jt.width,Tt.width+2*Jt.wrapPadding),At.height=At.wrap?Math.max(Tt.height,Jt.height):Jt.height,lt=Math.max(lt,At.height)}),_t){var Lt=kt[$t];if(Lt){var gt=kt[Lt.nextActor];if(gt){var Bt=_t[$t]+Jt.actorMargin-Lt.width/2-gt.width/2;Lt.margin=Math.max(Bt,Jt.actorMargin)}}}return Math.max(lt,Jt.height)}(u,w),Ih(i),B6(i),po(i),Am(i,u,d,0);var C=function(kt,_t){var lt,$t,Lt,gt={},Bt=[];return kt.forEach(function(ne){switch(ne.id=Qn.random({length:10}),ne.type){case Ke.parser.yy.LINETYPE.LOOP_START:case Ke.parser.yy.LINETYPE.ALT_START:case Ke.parser.yy.LINETYPE.OPT_START:case Ke.parser.yy.LINETYPE.PAR_START:Bt.push({id:ne.id,msg:ne.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case Ke.parser.yy.LINETYPE.ALT_ELSE:case Ke.parser.yy.LINETYPE.PAR_AND:ne.message&&(lt=Bt.pop(),gt[lt.id]=lt,gt[ne.id]=lt,Bt.push(lt));break;case Ke.parser.yy.LINETYPE.LOOP_END:case Ke.parser.yy.LINETYPE.ALT_END:case Ke.parser.yy.LINETYPE.OPT_END:case Ke.parser.yy.LINETYPE.PAR_END:lt=Bt.pop(),gt[lt.id]=lt;break;case Ke.parser.yy.LINETYPE.ACTIVE_START:var At=_t[ne.from?ne.from.actor:ne.to.actor],Tt=So(ne.from?ne.from.actor:ne.to.actor).length,jt=At.x+At.width/2+(Tt-1)*Jt.activationWidth/2,Dt={startx:jt,stopx:jt+Jt.activationWidth,actor:ne.from.actor,enabled:!0};qe.activations.push(Dt);break;case Ke.parser.yy.LINETYPE.ACTIVE_END:var te=qe.activations.map(function(yt){return yt.actor}).lastIndexOf(ne.from.actor);delete qe.activations.splice(te,1)[0]}ne.placement!==void 0?($t=function(yt,ue){var ve=ue[yt.from].x,me=ue[yt.to].x,De=yt.wrap&&yt.message,He=Qn.calculateTextDimensions(De?Qn.wrapLabel(yt.message,Jt.width,Ph(Jt)):yt.message,Ph(Jt)),ze={width:De?Jt.width:Math.max(Jt.width,He.width+2*Jt.noteMargin),height:0,startx:ue[yt.from].x,stopx:0,starty:0,stopy:0,message:yt.message};return yt.placement===Ke.parser.yy.PLACEMENT.RIGHTOF?(ze.width=De?Math.max(Jt.width,He.width):Math.max(ue[yt.from].width/2+ue[yt.to].width/2,He.width+2*Jt.noteMargin),ze.startx=ve+(ue[yt.from].width+Jt.actorMargin)/2):yt.placement===Ke.parser.yy.PLACEMENT.LEFTOF?(ze.width=Math.max(De?Jt.width:ue[yt.from].width/2+ue[yt.to].width/2,He.width+2*Jt.noteMargin),ze.startx=ve-ze.width+(ue[yt.from].width-Jt.actorMargin)/2):yt.to===yt.from?(He=Qn.calculateTextDimensions(De?Qn.wrapLabel(yt.message,Math.max(Jt.width,ue[yt.from].width),Ph(Jt)):yt.message,Ph(Jt)),ze.width=De?Math.max(Jt.width,ue[yt.from].width):Math.max(ue[yt.from].width,Jt.width,He.width+2*Jt.noteMargin),ze.startx=ve+(ue[yt.from].width-ze.width)/2):(ze.width=Math.abs(ve+ue[yt.from].width/2-(me+ue[yt.to].width/2))+Jt.actorMargin,ze.startx=ve<me?ve+ue[yt.from].width/2-Jt.actorMargin/2:me+ue[yt.to].width/2-Jt.actorMargin/2),De&&(ze.message=Qn.wrapLabel(yt.message,ze.width-2*Jt.wrapPadding,Ph(Jt))),p.debug("NM:[".concat(ze.startx,",").concat(ze.stopx,",").concat(ze.starty,",").concat(ze.stopy,":").concat(ze.width,",").concat(ze.height,"=").concat(yt.message,"]")),ze}(ne,_t),ne.noteModel=$t,Bt.forEach(function(yt){(lt=yt).from=Math.min(lt.from,$t.startx),lt.to=Math.max(lt.to,$t.startx+$t.width),lt.width=Math.max(lt.width,Math.abs(lt.from-lt.to))-Jt.labelBoxWidth})):(Lt=function(yt,ue){var ve=!1;if([Ke.parser.yy.LINETYPE.SOLID_OPEN,Ke.parser.yy.LINETYPE.DOTTED_OPEN,Ke.parser.yy.LINETYPE.SOLID,Ke.parser.yy.LINETYPE.DOTTED,Ke.parser.yy.LINETYPE.SOLID_CROSS,Ke.parser.yy.LINETYPE.DOTTED_CROSS,Ke.parser.yy.LINETYPE.SOLID_POINT,Ke.parser.yy.LINETYPE.DOTTED_POINT].includes(yt.type)&&(ve=!0),!ve)return{};var me=Yd(yt.from,ue),De=Yd(yt.to,ue),He=me[0]<=De[0]?1:0,ze=me[0]<De[0]?0:1,fn=me.concat(De),Oe=Math.abs(De[ze]-me[He]);yt.wrap&&yt.message&&(yt.message=Qn.wrapLabel(yt.message,Math.max(Oe+2*Jt.wrapPadding,Jt.width),Id(Jt)));var Pn=Qn.calculateTextDimensions(yt.message,Id(Jt));return{width:Math.max(yt.wrap?0:Pn.width+2*Jt.wrapPadding,Oe+2*Jt.wrapPadding,Jt.width),height:0,startx:me[He],stopx:De[ze],starty:0,stopy:0,message:yt.message,type:yt.type,wrap:yt.wrap,fromBounds:Math.min.apply(null,fn),toBounds:Math.max.apply(null,fn)}}(ne,_t),ne.msgModel=Lt,Lt.startx&&Lt.stopx&&Bt.length>0&&Bt.forEach(function(yt){if(lt=yt,Lt.startx===Lt.stopx){var ue=_t[ne.from],ve=_t[ne.to];lt.from=Math.min(ue.x-Lt.width/2,ue.x-ue.width/2,lt.from),lt.to=Math.max(ve.x+Lt.width/2,ve.x+ue.width/2,lt.to),lt.width=Math.max(lt.width,Math.abs(lt.to-lt.from))-Jt.labelBoxWidth}else lt.from=Math.min(Lt.startx,lt.from),lt.to=Math.max(Lt.stopx,lt.to),lt.width=Math.max(lt.width,Lt.width)-Jt.labelBoxWidth}))}),qe.activations=[],p.debug("Loop type widths:",gt),gt}(g,u);Mm(i),E4(i),O6(i),L6(i);var S=1;g.forEach(function(kt){var _t,lt,$t;switch(kt.type){case Ke.parser.yy.LINETYPE.NOTE:lt=kt.noteModel,function(Lt,gt){qe.bumpVerticalPos(Jt.boxMargin),gt.height=Jt.boxMargin,gt.starty=qe.getVerticalPos();var Bt=ya();Bt.x=gt.startx,Bt.y=gt.starty,Bt.width=gt.width||Jt.width,Bt.class="note";var ne=Lt.append("g"),At=x4(ne,Bt),Tt=Fh();Tt.x=gt.startx,Tt.y=gt.starty,Tt.width=Bt.width,Tt.dy="1em",Tt.text=gt.message,Tt.class="noteText",Tt.fontFamily=Jt.noteFontFamily,Tt.fontSize=Jt.noteFontSize,Tt.fontWeight=Jt.noteFontWeight,Tt.anchor=Jt.noteAlign,Tt.textMargin=Jt.noteMargin,Tt.valign=Jt.noteAlign;var jt=dc(ne,Tt),Dt=Math.round(jt.map(function(te){return(te._groups||te)[0][0].getBBox().height}).reduce(function(te,yt){return te+yt}));At.attr("height",Dt+2*Jt.noteMargin),gt.height+=Dt+2*Jt.noteMargin,qe.bumpVerticalPos(Dt+2*Jt.noteMargin),gt.stopy=gt.starty+Dt+2*Jt.noteMargin,gt.stopx=gt.startx+Bt.width,qe.insert(gt.startx,gt.starty,gt.stopx,gt.stopy),qe.models.addNote(gt)}(i,lt);break;case Ke.parser.yy.LINETYPE.ACTIVE_START:qe.newActivation(kt,i,u);break;case Ke.parser.yy.LINETYPE.ACTIVE_END:(function(Lt,gt){var Bt=qe.endActivation(Lt);Bt.starty+18>gt&&(Bt.starty=gt-6,gt+=12),k4(i,Bt,gt,Jt,So(Lt.from.actor).length),qe.insert(Bt.startx,gt-10,Bt.stopx,gt)})(kt,qe.getVerticalPos());break;case Ke.parser.yy.LINETYPE.LOOP_START:eu(C,kt,Jt.boxMargin,Jt.boxMargin+Jt.boxTextMargin,function(Lt){return qe.newLoop(Lt)});break;case Ke.parser.yy.LINETYPE.LOOP_END:_t=qe.endLoop(),Dp(i,_t,"loop",Jt),qe.bumpVerticalPos(_t.stopy-qe.getVerticalPos()),qe.models.addLoop(_t);break;case Ke.parser.yy.LINETYPE.RECT_START:eu(C,kt,Jt.boxMargin,Jt.boxMargin,function(Lt){return qe.newLoop(void 0,Lt.message)});break;case Ke.parser.yy.LINETYPE.RECT_END:_t=qe.endLoop(),T4(i,_t),qe.models.addLoop(_t),qe.bumpVerticalPos(_t.stopy-qe.getVerticalPos());break;case Ke.parser.yy.LINETYPE.OPT_START:eu(C,kt,Jt.boxMargin,Jt.boxMargin+Jt.boxTextMargin,function(Lt){return qe.newLoop(Lt)});break;case Ke.parser.yy.LINETYPE.OPT_END:_t=qe.endLoop(),Dp(i,_t,"opt",Jt),qe.bumpVerticalPos(_t.stopy-qe.getVerticalPos()),qe.models.addLoop(_t);break;case Ke.parser.yy.LINETYPE.ALT_START:eu(C,kt,Jt.boxMargin,Jt.boxMargin+Jt.boxTextMargin,function(Lt){return qe.newLoop(Lt)});break;case Ke.parser.yy.LINETYPE.ALT_ELSE:eu(C,kt,Jt.boxMargin+Jt.boxTextMargin,Jt.boxMargin,function(Lt){return qe.addSectionToLoop(Lt)});break;case Ke.parser.yy.LINETYPE.ALT_END:_t=qe.endLoop(),Dp(i,_t,"alt",Jt),qe.bumpVerticalPos(_t.stopy-qe.getVerticalPos()),qe.models.addLoop(_t);break;case Ke.parser.yy.LINETYPE.PAR_START:eu(C,kt,Jt.boxMargin,Jt.boxMargin+Jt.boxTextMargin,function(Lt){return qe.newLoop(Lt)});break;case Ke.parser.yy.LINETYPE.PAR_AND:eu(C,kt,Jt.boxMargin+Jt.boxTextMargin,Jt.boxMargin,function(Lt){return qe.addSectionToLoop(Lt)});break;case Ke.parser.yy.LINETYPE.PAR_END:_t=qe.endLoop(),Dp(i,_t,"par",Jt),qe.bumpVerticalPos(_t.stopy-qe.getVerticalPos()),qe.models.addLoop(_t);break;default:try{($t=kt.msgModel).starty=qe.getVerticalPos(),$t.sequenceIndex=S,function(Lt,gt){qe.bumpVerticalPos(10);var Bt=gt.startx,ne=gt.stopx,At=gt.starty,Tt=gt.message,jt=gt.type,Dt=gt.sequenceIndex,te=vr.splitBreaks(Tt).length,yt=Qn.calculateTextDimensions(Tt,Id(Jt)),ue=yt.height/te;gt.height+=ue,qe.bumpVerticalPos(ue);var ve=Fh();ve.x=Bt,ve.y=At+10,ve.width=ne-Bt,ve.class="messageText",ve.dy="1em",ve.text=Tt,ve.fontFamily=Jt.messageFontFamily,ve.fontSize=Jt.messageFontSize,ve.fontWeight=Jt.messageFontWeight,ve.anchor=Jt.messageAlign,ve.valign=Jt.messageAlign,ve.textMargin=Jt.wrapPadding,ve.tspan=!1,dc(Lt,ve);var me,De,He=yt.height-10,ze=yt.width;if(Bt===ne){De=qe.getVerticalPos()+He,Jt.rightAngles?me=Lt.append("path").attr("d","M ".concat(Bt,",").concat(De," H ").concat(Bt+Math.max(Jt.width/2,ze/2)," V ").concat(De+25," H ").concat(Bt)):(He+=Jt.boxMargin,De=qe.getVerticalPos()+He,me=Lt.append("path").attr("d","M "+Bt+","+De+" C "+(Bt+60)+","+(De-10)+" "+(Bt+60)+","+(De+30)+" "+Bt+","+(De+20))),He+=30;var fn=Math.max(ze/2,Jt.width/2);qe.insert(Bt-fn,qe.getVerticalPos()-10+He,ne+fn,qe.getVerticalPos()+30+He)}else He+=Jt.boxMargin,De=qe.getVerticalPos()+He,(me=Lt.append("line")).attr("x1",Bt),me.attr("y1",De),me.attr("x2",ne),me.attr("y2",De),qe.insert(Bt,De-10,ne,De);jt===Ke.parser.yy.LINETYPE.DOTTED||jt===Ke.parser.yy.LINETYPE.DOTTED_CROSS||jt===Ke.parser.yy.LINETYPE.DOTTED_POINT||jt===Ke.parser.yy.LINETYPE.DOTTED_OPEN?(me.style("stroke-dasharray","3, 3"),me.attr("class","messageLine1")):me.attr("class","messageLine0");var Oe="";Jt.arrowMarkerAbsolute&&(Oe=(Oe=(Oe=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),me.attr("stroke-width",2),me.attr("stroke","none"),me.style("fill","none"),jt!==Ke.parser.yy.LINETYPE.SOLID&&jt!==Ke.parser.yy.LINETYPE.DOTTED||me.attr("marker-end","url("+Oe+"#arrowhead)"),jt!==Ke.parser.yy.LINETYPE.SOLID_POINT&&jt!==Ke.parser.yy.LINETYPE.DOTTED_POINT||me.attr("marker-end","url("+Oe+"#filled-head)"),jt!==Ke.parser.yy.LINETYPE.SOLID_CROSS&&jt!==Ke.parser.yy.LINETYPE.DOTTED_CROSS||me.attr("marker-end","url("+Oe+"#crosshead)"),(Sm.showSequenceNumbers()||Jt.showSequenceNumbers)&&(me.attr("marker-start","url("+Oe+"#sequencenumber)"),Lt.append("text").attr("x",Bt).attr("y",De+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(Dt)),qe.bumpVerticalPos(He),gt.height+=He,gt.stopy=gt.starty+gt.height,qe.insert(gt.fromBounds,gt.starty,gt.toBounds,gt.stopy)}(i,$t),qe.models.addMessage($t)}catch(Lt){p.error("error while drawing message",Lt)}}[Ke.parser.yy.LINETYPE.SOLID_OPEN,Ke.parser.yy.LINETYPE.DOTTED_OPEN,Ke.parser.yy.LINETYPE.SOLID,Ke.parser.yy.LINETYPE.DOTTED,Ke.parser.yy.LINETYPE.SOLID_CROSS,Ke.parser.yy.LINETYPE.DOTTED_CROSS,Ke.parser.yy.LINETYPE.SOLID_POINT,Ke.parser.yy.LINETYPE.DOTTED_POINT].includes(kt.type)&&S++}),Jt.mirrorActors&&(qe.bumpVerticalPos(2*Jt.boxMargin),Am(i,u,d,qe.getVerticalPos()),qe.bumpVerticalPos(Jt.boxMargin),A6(i,qe.getVerticalPos()));var B=Pd(i,u,d),j=qe.getBounds().bounds;p.debug("For line height fix Querying: #"+e+" .actor-line"),Nc("#"+e+" .actor-line").attr("y2",j.stopy);var P=j.stopy-j.starty;P<B.maxHeight&&(P=B.maxHeight);var U=P+2*Jt.diagramMarginY;Jt.mirrorActors&&(U=U-Jt.boxMargin+Jt.bottomMarginAdj);var ot=j.stopx-j.startx;ot<B.maxWidth&&(ot=B.maxWidth);var vt=ot+2*Jt.diagramMarginX;v&&i.append("text").text(v).attr("x",(j.stopx-j.startx)/2-2*Jt.diagramMarginX).attr("y",-25),uo(i,U,vt,Jt.useMaxWidth);var bt=v?40:0;i.attr("viewBox",j.startx-Jt.diagramMarginX+" -"+(Jt.diagramMarginY+bt)+" "+vt+" "+(U+bt)),p.debug("models:",qe.models)}};var Np=o(3584),C4=o.n(Np);function Op(t){return Op=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Op(t)}var Lp=function(t){return JSON.parse(JSON.stringify(t))},Bp=[],R6=function t(e,i,u){if(i.stmt==="relation")t(e,i.state1,!0),t(e,i.state2,!1);else if(i.stmt==="state"&&i.id==="[*]"&&(i.id=u?e.id+"_start":e.id+"_end",i.start=u),i.doc){var d=[],g=0,v=[];for(g=0;g<i.doc.length;g++)if(i.doc[g].type==="divider"){var w=Lp(i.doc[g]);w.doc=Lp(v),d.push(w),v=[]}else v.push(i.doc[g]);if(d.length>0&&v.length>0){var C={stmt:"state",id:_3(),type:"divider",doc:Lp(v)};d.push(Lp(C)),i.doc=d}i.doc.forEach(function(S){return t(i,S,!0)})}},Rp={root:{relations:[],states:{},documents:{}}},n=Rp.root,a=0,l=function(t,e,i,u,d){n.states[t]===void 0?n.states[t]={id:t,descriptions:[],type:e,doc:i,note:d}:(n.states[t].doc||(n.states[t].doc=i),n.states[t].type||(n.states[t].type=e)),u&&(p.info("Adding state ",t,u),typeof u=="string"&&_(t,u.trim()),Op(u)==="object"&&u.forEach(function(g){return _(t,g.trim())})),d&&(n.states[t].note=d,n.states[t].note.text=vr.sanitizeText(n.states[t].note.text,se()))},f=function(){n=(Rp={root:{relations:[],states:{},documents:{}}}).root,n=Rp.root,a=0,x=[]},m=function(t,e,i){var u=t,d=e,g="default",v="default";t==="[*]"&&(u="start"+ ++a,g="start"),e==="[*]"&&(d="end"+a,v="end"),l(u,g),l(d,v),n.relations.push({id1:u,id2:d,title:vr.sanitizeText(i,se())})},_=function(t,e){var i=n.states[t],u=e;u[0]===":"&&(u=u.substr(1).trim()),i.descriptions.push(vr.sanitizeText(u,se()))},E=0,x=[],M="TB";const N={parseDirective:function(t,e,i){la.parseDirective(this,t,e,i)},getConfig:function(){return se().state},addState:l,clear:f,getState:function(t){return n.states[t]},getStates:function(){return n.states},getRelations:function(){return n.relations},getClasses:function(){return x},getDirection:function(){return M},addRelation:m,getDividerId:function(){return"divider-id-"+ ++E},setDirection:function(t){M=t},cleanupLabel:function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){p.info("Documents = ",Rp)},getRootDoc:function(){return Bp},setRootDoc:function(t){p.info("Setting root doc",t),Bp=t},getRootDocV2:function(){return R6({id:"root"},{id:"root",doc:Bp},!0),{id:"root",doc:Bp}},extract:function(t){var e;e=t.doc?t.doc:t,p.info(e),f(),p.info("Extract",e),e.forEach(function(i){i.stmt==="state"&&l(i.id,i.type,i.doc,i.description,i.note),i.stmt==="relation"&&m(i.state1.id,i.state2.id,i.description)})},trimColon:function(t){return t&&t[0]===":"?t.substr(1).trim():t.trim()}};var R={};function Y(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,u=new Array(e);i<e;i++)u[i]=t[i];return u}var L,$=function(t,e,i){var u,d=se().state.padding,g=2*se().state.padding,v=t.node().getBBox(),w=v.width,C=v.x,S=t.append("text").attr("x",0).attr("y",se().state.titleShift).attr("font-size",se().state.fontSize).attr("class","state-title").text(e.id),B=S.node().getBBox().width+g,j=Math.max(B,w);j===w&&(j+=g);var P=t.node().getBBox();e.doc,u=C-d,B>w&&(u=(w-j)/2+d),Math.abs(C-P.x)<d&&B>w&&(u=C-(B-w)/2);var U=1-se().state.textHeight;return t.insert("rect",":first-child").attr("x",u).attr("y",U).attr("class",i?"alt-composit":"composit").attr("width",j).attr("height",P.height+se().state.textHeight+se().state.titleShift+1).attr("rx","0"),S.attr("x",u+d),B<=w&&S.attr("x",C+(j-g)/2-B/2+d),t.insert("rect",":first-child").attr("x",u).attr("y",se().state.titleShift-se().state.textHeight-se().state.padding).attr("width",j).attr("height",3*se().state.textHeight).attr("rx",se().state.radius),t.insert("rect",":first-child").attr("x",u).attr("y",se().state.titleShift-se().state.textHeight-se().state.padding).attr("width",j).attr("height",P.height+3+2*se().state.textHeight).attr("rx",se().state.radius),t},W=function(t,e){e.attr("class","state-note");var i=e.append("rect").attr("x",0).attr("y",se().state.padding),u=function(v,w,C,S){var B=0,j=S.append("text");j.style("text-anchor","start"),j.attr("class","noteText");var P,U=v.replace(/\r\n/g,"<br/>"),ot=(U=U.replace(/\n/g,"<br/>")).split(vr.lineBreakRegex),vt=1.25*se().state.noteMargin,bt=function(lt,$t){var Lt=typeof Symbol!="undefined"&&lt[Symbol.iterator]||lt["@@iterator"];if(!Lt){if(Array.isArray(lt)||(Lt=function(jt,Dt){if(jt){if(typeof jt=="string")return Y(jt,Dt);var te=Object.prototype.toString.call(jt).slice(8,-1);return te==="Object"&&jt.constructor&&(te=jt.constructor.name),te==="Map"||te==="Set"?Array.from(jt):te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te)?Y(jt,Dt):void 0}}(lt))||$t&&lt&&typeof lt.length=="number"){Lt&&(lt=Lt);var gt=0,Bt=function(){};return{s:Bt,n:function(){return gt>=lt.length?{done:!0}:{done:!1,value:lt[gt++]}},e:function(jt){throw jt},f:Bt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ne,At=!0,Tt=!1;return{s:function(){Lt=Lt.call(lt)},n:function(){var jt=Lt.next();return At=jt.done,jt},e:function(jt){Tt=!0,ne=jt},f:function(){try{At||Lt.return==null||Lt.return()}finally{if(Tt)throw ne}}}}(ot);try{for(bt.s();!(P=bt.n()).done;){var kt=P.value.trim();if(kt.length>0){var _t=j.append("tspan");_t.text(kt),vt===0&&(vt+=_t.node().getBBox().height),B+=vt,_t.attr("x",0+se().state.noteMargin),_t.attr("y",0+B+1.25*se().state.noteMargin)}}}catch(lt){bt.e(lt)}finally{bt.f()}return{textWidth:j.node().getBBox().width,textHeight:B}}(t,0,0,e.append("g")),d=u.textWidth,g=u.textHeight;return i.attr("height",g+2*se().state.noteMargin),i.attr("width",d+2*se().state.noteMargin),i},J=function(t,e){var i=e.id,u={id:i,label:e.id,width:0,height:0},d=t.append("g").attr("id",i).attr("class","stateGroup");e.type==="start"&&function(w){w.append("circle").attr("class","start-state").attr("r",se().state.sizeUnit).attr("cx",se().state.padding+se().state.sizeUnit).attr("cy",se().state.padding+se().state.sizeUnit)}(d),e.type==="end"&&function(w){w.append("circle").attr("class","end-state-outer").attr("r",se().state.sizeUnit+se().state.miniPadding).attr("cx",se().state.padding+se().state.sizeUnit+se().state.miniPadding).attr("cy",se().state.padding+se().state.sizeUnit+se().state.miniPadding),w.append("circle").attr("class","end-state-inner").attr("r",se().state.sizeUnit).attr("cx",se().state.padding+se().state.sizeUnit+2).attr("cy",se().state.padding+se().state.sizeUnit+2)}(d),e.type!=="fork"&&e.type!=="join"||function(w,C){var S=se().state.forkWidth,B=se().state.forkHeight;if(C.parentId){var j=S;S=B,B=j}w.append("rect").style("stroke","black").style("fill","black").attr("width",S).attr("height",B).attr("x",se().state.padding).attr("y",se().state.padding)}(d,e),e.type==="note"&&W(e.note.text,d),e.type==="divider"&&function(w){w.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",se().state.textHeight).attr("class","divider").attr("x2",2*se().state.textHeight).attr("y1",0).attr("y2",0)}(d),e.type==="default"&&e.descriptions.length===0&&function(w,C){var S=w.append("text").attr("x",2*se().state.padding).attr("y",se().state.textHeight+2*se().state.padding).attr("font-size",se().state.fontSize).attr("class","state-title").text(C.id).node().getBBox();w.insert("rect",":first-child").attr("x",se().state.padding).attr("y",se().state.padding).attr("width",S.width+2*se().state.padding).attr("height",S.height+2*se().state.padding).attr("rx",se().state.radius)}(d,e),e.type==="default"&&e.descriptions.length>0&&function(w,C){var S=w.append("text").attr("x",2*se().state.padding).attr("y",se().state.textHeight+1.3*se().state.padding).attr("font-size",se().state.fontSize).attr("class","state-title").text(C.descriptions[0]).node().getBBox(),B=S.height,j=w.append("text").attr("x",se().state.padding).attr("y",B+.4*se().state.padding+se().state.dividerMargin+se().state.textHeight).attr("class","state-description"),P=!0,U=!0;C.descriptions.forEach(function(kt){P||(function(_t,lt,$t){var Lt=_t.append("tspan").attr("x",2*se().state.padding).text(lt);$t||Lt.attr("dy",se().state.textHeight)}(j,kt,U),U=!1),P=!1});var ot=w.append("line").attr("x1",se().state.padding).attr("y1",se().state.padding+B+se().state.dividerMargin/2).attr("y2",se().state.padding+B+se().state.dividerMargin/2).attr("class","descr-divider"),vt=j.node().getBBox(),bt=Math.max(vt.width,S.width);ot.attr("x2",bt+3*se().state.padding),w.insert("rect",":first-child").attr("x",se().state.padding).attr("y",se().state.padding).attr("width",bt+2*se().state.padding).attr("height",vt.height+B+2*se().state.padding).attr("rx",se().state.radius)}(d,e);var g,v=d.node().getBBox();return u.width=v.width+2*se().state.padding,u.height=v.height+2*se().state.padding,g=u,R[i]=g,u},Q=0;Np.parser.yy=N;var Z={},at=function t(e,i,u,d){var g,v=new(Mi()).Graph({compound:!0,multigraph:!0}),w=!0;for(g=0;g<e.length;g++)if(e[g].stmt==="relation"){w=!1;break}u?v.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:w?1:L.edgeLengthFactor,nodeSep:w?1:50,isMultiGraph:!0}):v.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:w?1:L.edgeLengthFactor,nodeSep:w?1:50,ranker:"tight-tree",isMultiGraph:!0}),v.setDefaultEdgeLabel(function(){return{}}),N.extract(e);for(var C=N.getStates(),S=N.getRelations(),B=Object.keys(C),j=0;j<B.length;j++){var P=C[B[j]];u&&(P.parentId=u);var U=void 0;if(P.doc){var ot=i.append("g").attr("id",P.id).attr("class","stateGroup");U=t(P.doc,ot,P.id,!d);var vt=(ot=$(ot,P,d)).node().getBBox();U.width=vt.width,U.height=vt.height+L.padding/2,Z[P.id]={y:L.compositTitleSize}}else U=J(i,P);if(P.note){var bt={descriptions:[],id:P.id+"-note",note:P.note,type:"note"},kt=J(i,bt);P.note.position==="left of"?(v.setNode(U.id+"-note",kt),v.setNode(U.id,U)):(v.setNode(U.id,U),v.setNode(U.id+"-note",kt)),v.setParent(U.id,U.id+"-group"),v.setParent(U.id+"-note",U.id+"-group")}else v.setNode(U.id,U)}p.debug("Count=",v.nodeCount(),v);var _t=0;S.forEach(function(gt){var Bt;_t++,p.debug("Setting edge",gt),v.setEdge(gt.id1,gt.id2,{relation:gt,width:(Bt=gt.title,Bt?Bt.length*L.fontSizeFactor:1),height:L.labelHeight*vr.getRows(gt.title).length,labelpos:"c"},"id"+_t)}),pd().layout(v),p.debug("Graph after layout",v.nodes());var lt=i.node();v.nodes().forEach(function(gt){gt!==void 0&&v.node(gt)!==void 0?(p.warn("Node "+gt+": "+JSON.stringify(v.node(gt))),Se("#"+lt.id+" #"+gt).attr("transform","translate("+(v.node(gt).x-v.node(gt).width/2)+","+(v.node(gt).y+(Z[gt]?Z[gt].y:0)-v.node(gt).height/2)+" )"),Se("#"+lt.id+" #"+gt).attr("data-x-shift",v.node(gt).x-v.node(gt).width/2),document.querySelectorAll("#"+lt.id+" #"+gt+" .divider").forEach(function(Bt){var ne=Bt.parentElement,At=0,Tt=0;ne&&(ne.parentElement&&(At=ne.parentElement.getBBox().width),Tt=parseInt(ne.getAttribute("data-x-shift"),10),Number.isNaN(Tt)&&(Tt=0)),Bt.setAttribute("x1",0-Tt+8),Bt.setAttribute("x2",At-Tt-8)})):p.debug("No Node "+gt+": "+JSON.stringify(v.node(gt)))});var $t=lt.getBBox();v.edges().forEach(function(gt){gt!==void 0&&v.edge(gt)!==void 0&&(p.debug("Edge "+gt.v+" -> "+gt.w+": "+JSON.stringify(v.edge(gt))),function(Bt,ne,At){ne.points=ne.points.filter(function(ar){return!Number.isNaN(ar.y)});var Tt=ne.points,jt=xo().x(function(ar){return ar.x}).y(function(ar){return ar.y}).curve(jr),Dt=Bt.append("path").attr("d",jt(Tt)).attr("id","edge"+Q).attr("class","transition"),te="";if(se().state.arrowMarkerAbsolute&&(te=(te=(te=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Dt.attr("marker-end","url("+te+"#"+function(ar){switch(ar){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}}(N.relationType.DEPENDENCY)+"End)"),At.title!==void 0){for(var yt=Bt.append("g").attr("class","stateLabel"),ue=Qn.calcLabelPosition(ne.points),ve=ue.x,me=ue.y,De=vr.getRows(At.title),He=0,ze=[],fn=0,Oe=0,Pn=0;Pn<=De.length;Pn++){var Sn=yt.append("text").attr("text-anchor","middle").text(De[Pn]).attr("x",ve).attr("y",me+He),dn=Sn.node().getBBox();if(fn=Math.max(fn,dn.width),Oe=Math.min(Oe,dn.x),p.info(dn.x,ve,me+He),He===0){var mn=Sn.node().getBBox();He=mn.height,p.info("Title height",He,me)}ze.push(Sn)}var on=He*De.length;if(De.length>1){var Qr=(De.length-1)*He*.5;ze.forEach(function(ar,Ii){return ar.attr("y",me+Ii*He-Qr)}),on=He*De.length}var bn=yt.node().getBBox();yt.insert("rect",":first-child").attr("class","box").attr("x",ve-fn/2-se().state.padding/2).attr("y",me-on/2-se().state.padding/2-3.5).attr("width",fn+se().state.padding).attr("height",on+se().state.padding),p.info(bn)}Q++}(i,v.edge(gt),v.edge(gt).relation))}),$t=lt.getBBox();var Lt={id:u||"root",label:u||"root",width:0,height:0};return Lt.width=$t.width+2*L.padding,Lt.height=$t.height+2*L.padding,p.debug("Doc rendered",Lt,v),Lt};const nt=function(t,e){L=se().state,Np.parser.yy.clear(),Np.parser.parse(t),p.debug("Rendering diagram "+t);var i=Se("[id='".concat(e,"']"));i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new(Mi()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var u=N.getRootDoc();at(u,i,void 0,!1);var d=L.padding,g=i.node().getBBox(),v=g.width+2*d,w=g.height+2*d;uo(i,w,1.75*v,L.useMaxWidth),i.attr("viewBox","".concat(g.x-L.padding," ").concat(g.y-L.padding," ")+v+" "+w)};var dt={},Mt={},Wt=function(t,e,i,u){if(i.id!=="root"){var d="rect";i.start===!0&&(d="start"),i.start===!1&&(d="end"),i.type!=="default"&&(d=i.type),Mt[i.id]||(Mt[i.id]={id:i.id,shape:d,description:vr.sanitizeText(i.id,se()),classes:"statediagram-state"}),i.description&&(Array.isArray(Mt[i.id].description)?(Mt[i.id].shape="rectWithTitle",Mt[i.id].description.push(i.description)):Mt[i.id].description.length>0?(Mt[i.id].shape="rectWithTitle",Mt[i.id].description===i.id?Mt[i.id].description=[i.description]:Mt[i.id].description=[Mt[i.id].description,i.description]):(Mt[i.id].shape="rect",Mt[i.id].description=i.description),Mt[i.id].description=vr.sanitizeTextOrArray(Mt[i.id].description,se())),Mt[i.id].description.length===1&&Mt[i.id].shape==="rectWithTitle"&&(Mt[i.id].shape="rect"),!Mt[i.id].type&&i.doc&&(p.info("Setting cluster for ",i.id,zt(i)),Mt[i.id].type="group",Mt[i.id].dir=zt(i),Mt[i.id].shape=i.type==="divider"?"divider":"roundedWithTitle",Mt[i.id].classes=Mt[i.id].classes+" "+(u?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var g={labelStyle:"",shape:Mt[i.id].shape,labelText:Mt[i.id].description,classes:Mt[i.id].classes,style:"",id:i.id,dir:Mt[i.id].dir,domId:"state-"+i.id+"-"+Qt,type:Mt[i.id].type,padding:15};if(i.note){var v={labelStyle:"",shape:"note",labelText:i.note.text,classes:"statediagram-note",style:"",id:i.id+"----note-"+Qt,domId:"state-"+i.id+"----note-"+Qt,type:Mt[i.id].type,padding:15},w={labelStyle:"",shape:"noteGroup",labelText:i.note.text,classes:Mt[i.id].classes,style:"",id:i.id+"----parent",domId:"state-"+i.id+"----parent-"+Qt,type:"group",padding:0};Qt++,t.setNode(i.id+"----parent",w),t.setNode(v.id,v),t.setNode(i.id,g),t.setParent(i.id,i.id+"----parent"),t.setParent(v.id,i.id+"----parent");var C=i.id,S=v.id;i.note.position==="left of"&&(C=v.id,S=i.id),t.setEdge(C,S,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else t.setNode(i.id,g)}e&&e.id!=="root"&&(p.trace("Setting node ",i.id," to be child of its parent ",e.id),t.setParent(i.id,e.id)),i.doc&&(p.trace("Adding nodes children "),be(t,i,i.doc,!u))},Qt=0,be=function(t,e,i,u){p.trace("items",i),i.forEach(function(d){if(d.stmt==="state"||d.stmt==="default")Wt(t,e,d,u);else if(d.stmt==="relation"){Wt(t,e,d.state1,u),Wt(t,e,d.state2,u);var g={id:"edge"+Qt,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:vr.sanitizeText(d.description,se()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},v=d.state1.id,w=d.state2.id;t.setEdge(v,w,g,Qt),Qt++}})},zt=function(t,e){var i=e||"TB";if(t.doc)for(var u=0;u<t.doc.length;u++){var d=t.doc[u];d.stmt==="dir"&&(i=d.value)}return i};const ce=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)dt[e[i]]=t[e[i]]};function ft(t){return function(e){if(Array.isArray(e))return Et(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,i){if(e){if(typeof e=="string")return Et(e,i);var u=Object.prototype.toString.call(e).slice(8,-1);return u==="Object"&&e.constructor&&(u=e.constructor.name),u==="Map"||u==="Set"?Array.from(e):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Et(e,i):void 0}}(t)||function(){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 Et(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,u=new Array(e);i<e;i++)u[i]=t[i];return u}var re="",Zt="",ie=[],Ae=[],Ue=[],xn=function(){for(var t=!0,e=0;e<Ue.length;e++)Ue[e].processed,t=t&&Ue[e].processed;return t};const Jn={parseDirective:function(t,e,i){la.parseDirective(this,t,e,i)},getConfig:function(){return se().journey},clear:function(){ie.length=0,Ae.length=0,Zt="",re="",Ue.length=0},setTitle:function(t){re=t},getTitle:function(){return re},addSection:function(t){Zt=t,ie.push(t)},getSections:function(){return ie},getTasks:function(){for(var t=xn(),e=0;!t&&e<100;)t=xn(),e++;return Ae.push.apply(Ae,Ue),Ae},addTask:function(t,e){var i=e.substr(1).split(":"),u=0,d=[];i.length===1?(u=Number(i[0]),d=[]):(u=Number(i[0]),d=i[1].split(","));var g=d.map(function(w){return w.trim()}),v={section:Zt,type:Zt,people:g,task:t,score:u};Ue.push(v)},addTaskOrg:function(t){var e={section:Zt,type:Zt,description:t,task:t,classes:[]};Ae.push(e)},getActors:function(){return t=[],Ae.forEach(function(e){e.people&&t.push.apply(t,ft(e.people))}),ft(new Set(t)).sort();var t}};var zn=o(9763),nn=o.n(zn),pr=function(t,e){var i=t.append("rect");return i.attr("x",e.x),i.attr("y",e.y),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("width",e.width),i.attr("height",e.height),i.attr("rx",e.rx),i.attr("ry",e.ry),e.class!==void 0&&i.attr("class",e.class),i},Ln=function(t,e){var i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),i.class!==void 0&&i.attr("class",i.class),e.title!==void 0&&i.append("title").text(e.title),i},Nn=-1,ur=function(){function t(d,g,v,w,C,S,B,j){u(g.append("text").attr("x",v+C/2).attr("y",w+S/2+5).style("font-color",j).style("text-anchor","middle").text(d),B)}function e(d,g,v,w,C,S,B,j,P){for(var U=j.taskFontSize,ot=j.taskFontFamily,vt=d.split(/<br\s*\/?>/gi),bt=0;bt<vt.length;bt++){var kt=bt*U-U*(vt.length-1)/2,_t=g.append("text").attr("x",v+C/2).attr("y",w).attr("fill",P).style("text-anchor","middle").style("font-size",U).style("font-family",ot);_t.append("tspan").attr("x",v+C/2).attr("dy",kt).text(vt[bt]),_t.attr("y",w+S/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),u(_t,B)}}function i(d,g,v,w,C,S,B,j){var P=g.append("switch"),U=P.append("foreignObject").attr("x",v).attr("y",w).attr("width",C).attr("height",S).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");U.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(d),e(d,P,v,w,C,S,B,j),u(U,B)}function u(d,g){for(var v in g)v in g&&d.attr(v,g[v])}return function(d){return d.textPlacement==="fo"?i:d.textPlacement==="old"?t:e}}();const ua=Ln,Ri=function(t,e,i){var u=t.append("g"),d={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};d.x=e.x,d.y=e.y,d.fill=e.fill,d.width=i.width,d.height=i.height,d.class="journey-section section-type-"+e.num,d.rx=3,d.ry=3,pr(u,d),ur(i)(e.text,u,d.x,d.y,d.width,d.height,{class:"journey-section section-type-"+e.num},i,e.colour)},gc=function(t,e){var i=e.text.replace(/<br\s*\/?>/gi," "),u=t.append("text");u.attr("x",e.x),u.attr("y",e.y),u.attr("class","legend"),u.style("text-anchor",e.anchor),e.class!==void 0&&u.attr("class",e.class);var d=u.append("tspan");return d.attr("x",e.x+2*e.textMargin),d.text(i),u},nu=function(t,e,i){var u,d,g,v=e.x+i.width/2,w=t.append("g");Nn++,w.append("line").attr("id","task"+Nn).attr("x1",v).attr("y1",e.y).attr("x2",v).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),u=w,d={cx:v,cy:300+30*(5-e.score),score:e.score},u.append("circle").attr("cx",d.cx).attr("cy",d.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(g=u.append("g")).append("circle").attr("cx",d.cx-5).attr("cy",d.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),g.append("circle").attr("cx",d.cx+5).attr("cy",d.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),d.score>3?function(B){var j=a2().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);B.append("path").attr("class","mouth").attr("d",j).attr("transform","translate("+d.cx+","+(d.cy+2)+")")}(g):d.score<3?function(B){var j=a2().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);B.append("path").attr("class","mouth").attr("d",j).attr("transform","translate("+d.cx+","+(d.cy+7)+")")}(g):function(B){B.append("line").attr("class","mouth").attr("stroke",2).attr("x1",d.cx-5).attr("y1",d.cy+7).attr("x2",d.cx+5).attr("y2",d.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(g);var C={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};C.x=e.x,C.y=e.y,C.fill=e.fill,C.width=i.width,C.height=i.height,C.class="task task-type-"+e.num,C.rx=3,C.ry=3,pr(w,C);var S=e.x+14;e.people.forEach(function(B){var j=e.actors[B].color,P={cx:S,cy:e.y,r:7,fill:j,stroke:"#000",title:B,pos:e.actors[B].position};Ln(w,P),S+=10}),ur(i)(e.task,w,C.x,C.y,C.width,C.height,{class:"task"},i,e.colour)};zn.parser.yy=Jn;var go={},rl=se().journey,ru=se().journey.leftMargin,yo={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,i,u){t[e]===void 0?t[e]=i:t[e]=u(i,t[e])},updateBounds:function(t,e,i,u){var d=se().journey,g=this,v=0;this.sequenceItems.forEach(function(w){v++;var C=g.sequenceItems.length-v+1;g.updateVal(w,"starty",e-C*d.boxMargin,Math.min),g.updateVal(w,"stopy",u+C*d.boxMargin,Math.max),g.updateVal(yo.data,"startx",t-C*d.boxMargin,Math.min),g.updateVal(yo.data,"stopx",i+C*d.boxMargin,Math.max),g.updateVal(w,"startx",t-C*d.boxMargin,Math.min),g.updateVal(w,"stopx",i+C*d.boxMargin,Math.max),g.updateVal(yo.data,"starty",e-C*d.boxMargin,Math.min),g.updateVal(yo.data,"stopy",u+C*d.boxMargin,Math.max)})},insert:function(t,e,i,u){var d=Math.min(t,i),g=Math.max(t,i),v=Math.min(e,u),w=Math.max(e,u);this.updateVal(yo.data,"startx",d,Math.min),this.updateVal(yo.data,"starty",v,Math.min),this.updateVal(yo.data,"stopx",g,Math.max),this.updateVal(yo.data,"stopy",w,Math.max),this.updateBounds(d,v,g,w)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},iu=rl.sectionFills,Nm=rl.sectionColours;const M4=function(t){Object.keys(t).forEach(function(e){rl[e]=t[e]})},I6=function(t,e){var i=se().journey;zn.parser.yy.clear(),zn.parser.parse(t+`
`),yo.init();var u=Se("#"+e);u.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),u.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z");var d=zn.parser.yy.getTasks(),g=zn.parser.yy.getTitle(),v=zn.parser.yy.getActors();for(var w in go)delete go[w];var C=0;v.forEach(function(U){go[U]={color:i.actorColours[C%i.actorColours.length],position:C},C++}),function(U){var ot=se().journey,vt=60;Object.keys(go).forEach(function(bt){var kt=go[bt].color,_t={cx:20,cy:vt,r:7,fill:kt,stroke:"#000",pos:go[bt].position};ua(U,_t);var lt={x:40,y:vt+7,fill:"#666",text:bt,textMargin:5|ot.boxTextMargin};gc(U,lt),vt+=20})}(u),yo.insert(0,0,ru,50*Object.keys(go).length),function(U,ot,vt){for(var bt=se().journey,kt="",_t=vt+(2*bt.height+bt.diagramMarginY),lt=0,$t="#CCC",Lt="black",gt=0,Bt=0;Bt<ot.length;Bt++){var ne=ot[Bt];if(kt!==ne.section){$t=iu[lt%iu.length],gt=lt%iu.length,Lt=Nm[lt%Nm.length];var At={x:Bt*bt.taskMargin+Bt*bt.width+ru,y:50,text:ne.section,fill:$t,num:gt,colour:Lt};Ri(U,At,bt),kt=ne.section,lt++}var Tt=ne.people.reduce(function(jt,Dt){return go[Dt]&&(jt[Dt]=go[Dt]),jt},{});ne.x=Bt*bt.taskMargin+Bt*bt.width+ru,ne.y=_t,ne.width=bt.diagramMarginX,ne.height=bt.diagramMarginY,ne.colour=Lt,ne.fill=$t,ne.num=gt,ne.actors=Tt,nu(U,ne,bt),yo.insert(ne.x,ne.y,ne.x+ne.width+bt.taskMargin,450)}}(u,d,0);var S=yo.getBounds();g&&u.append("text").text(g).attr("x",ru).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var B=S.stopy-S.starty+2*i.diagramMarginY,j=ru+S.stopx+2*i.diagramMarginX;uo(u,B,j,i.useMaxWidth),u.append("line").attr("x1",ru).attr("y1",4*i.height).attr("x2",j-ru-4).attr("y2",4*i.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var P=g?70:0;u.attr("viewBox","".concat(S.startx," -25 ").concat(j," ").concat(B+P)),u.attr("preserveAspectRatio","xMinYMin meet"),u.attr("height",B+P+25)};var Co={};const F6=function(t){return`g.classGroup text {
fill: `.concat(t.nodeBorder,`;
fill: `).concat(t.classText,`;
stroke: none;
font-family: `).concat(t.fontFamily,`;
font-size: 10px;
.title {
font-weight: bolder;
}
}
.nodeLabel, .edgeLabel {
color: `).concat(t.classText,`;
}
.edgeLabel .label rect {
fill: `).concat(t.mainBkg,`;
}
.label text {
fill: `).concat(t.classText,`;
}
.edgeLabel .label span {
background: `).concat(t.mainBkg,`;
}
.classTitle {
font-weight: bolder;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1px;
}
.divider {
stroke: `).concat(t.nodeBorder,`;
stroke: 1;
}
g.clickable {
cursor: pointer;
}
g.classGroup rect {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
}
g.classGroup line {
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1;
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: `).concat(t.mainBkg,`;
opacity: 0.5;
}
.classLabel .label {
fill: `).concat(t.nodeBorder,`;
font-size: 10px;
}
.relation {
stroke: `).concat(t.lineColor,`;
stroke-width: 1;
fill: none;
}
.dashed-line{
stroke-dasharray: 3;
}
#compositionStart, .composition {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#compositionEnd, .composition {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#extensionStart, .extension {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#extensionEnd, .extension {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#aggregationStart, .aggregation {
fill: `).concat(t.mainBkg,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#aggregationEnd, .aggregation {
fill: `).concat(t.mainBkg,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
.edgeTerminals {
font-size: 11px;
}
`)},K8=function(t){return`.label {
font-family: `.concat(t.fontFamily,`;
color: `).concat(t.nodeTextColor||t.textColor,`;
}
.cluster-label text {
fill: `).concat(t.titleColor,`;
}
.cluster-label span {
color: `).concat(t.titleColor,`;
}
.label text,span {
fill: `).concat(t.nodeTextColor||t.textColor,`;
color: `).concat(t.nodeTextColor||t.textColor,`;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: `).concat(t.arrowheadColor,`;
}
.edgePath .path {
stroke: `).concat(t.lineColor,`;
stroke-width: 2.0px;
}
.flowchart-link {
stroke: `).concat(t.lineColor,`;
fill: none;
}
.edgeLabel {
background-color: `).concat(t.edgeLabelBackground,`;
rect {
opacity: 0.5;
background-color: `).concat(t.edgeLabelBackground,`;
fill: `).concat(t.edgeLabelBackground,`;
}
text-align: center;
}
.cluster rect {
fill: `).concat(t.clusterBkg,`;
stroke: `).concat(t.clusterBorder,`;
stroke-width: 1px;
}
.cluster text {
fill: `).concat(t.titleColor,`;
}
.cluster span {
color: `).concat(t.titleColor,`;
}
/* .cluster div {
color: `).concat(t.titleColor,`;
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: `).concat(t.fontFamily,`;
font-size: 12px;
background: `).concat(t.tertiaryColor,`;
border: 1px solid `).concat(t.border2,`;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
`)},Q8=function(t){return`
defs #statediagram-barbEnd {
fill: `.concat(t.transitionColor,`;
stroke: `).concat(t.transitionColor,`;
}
g.stateGroup text {
fill: `).concat(t.nodeBorder,`;
stroke: none;
font-size: 10px;
}
g.stateGroup text {
fill: `).concat(t.textColor,`;
stroke: none;
font-size: 10px;
}
g.stateGroup .state-title {
font-weight: bolder;
fill: `).concat(t.stateLabelColor,`;
}
g.stateGroup rect {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
}
g.stateGroup line {
stroke: `).concat(t.lineColor,`;
stroke-width: 1;
}
.transition {
stroke: `).concat(t.transitionColor,`;
stroke-width: 1;
fill: none;
}
.stateGroup .composit {
fill: `).concat(t.background,`;
border-bottom: 1px
}
.stateGroup .alt-composit {
fill: #e0e0e0;
border-bottom: 1px
}
.state-note {
stroke: `).concat(t.noteBorderColor,`;
fill: `).concat(t.noteBkgColor,`;
text {
fill: `).concat(t.noteTextColor,`;
stroke: none;
font-size: 10px;
}
}
.stateLabel .box {
stroke: none;
stroke-width: 0;
fill: `).concat(t.mainBkg,`;
opacity: 0.5;
}
.edgeLabel .label rect {
fill: `).concat(t.labelBackgroundColor,`;
opacity: 0.5;
}
.edgeLabel .label text {
fill: `).concat(t.transitionLabelColor||t.tertiaryTextColor,`;
}
.label div .edgeLabel {
color: `).concat(t.transitionLabelColor||t.tertiaryTextColor,`;
}
.stateLabel text {
fill: `).concat(t.stateLabelColor,`;
font-size: 10px;
font-weight: bold;
}
.node circle.state-start {
fill: `).concat(t.specialStateColor,`;
stroke: `).concat(t.specialStateColor,`;
}
.node .fork-join {
fill: `).concat(t.specialStateColor,`;
stroke: `).concat(t.specialStateColor,`;
}
.node circle.state-end {
fill: `).concat(t.innerEndBackground,`;
stroke: `).concat(t.background,`;
stroke-width: 1.5
}
.end-state-inner {
fill: `).concat(t.compositeBackground||t.background,`;
// stroke: `).concat(t.background,`;
stroke-width: 1.5
}
.node rect {
fill: `).concat(t.stateBkg||t.mainBkg,`;
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
stroke-width: 1px;
}
.node polygon {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.stateBorder||t.nodeBorder,`;;
stroke-width: 1px;
}
#statediagram-barbEnd {
fill: `).concat(t.lineColor,`;
}
.statediagram-cluster rect {
fill: `).concat(t.compositeTitleBackground,`;
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
stroke-width: 1px;
}
.cluster-label, .nodeLabel {
color: `).concat(t.stateLabelColor,`;
}
.statediagram-cluster rect.outer {
rx: 5px;
ry: 5px;
}
.statediagram-state .divider {
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
}
.statediagram-state .title-state {
rx: 5px;
ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
fill: `).concat(t.compositeBackground||t.background,`;
}
.statediagram-cluster.statediagram-cluster-alt .inner {
fill: `).concat(t.altBackground?t.altBackground:"#efefef",`;
}
.statediagram-cluster .inner {
rx:0;
ry:0;
}
.statediagram-state rect.basic {
rx: 5px;
ry: 5px;
}
.statediagram-state rect.divider {
stroke-dasharray: 10,10;
fill: `).concat(t.altBackground?t.altBackground:"#efefef",`;
}
.note-edge {
stroke-dasharray: 5;
}
.statediagram-note rect {
fill: `).concat(t.noteBkgColor,`;
stroke: `).concat(t.noteBorderColor,`;
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note rect {
fill: `).concat(t.noteBkgColor,`;
stroke: `).concat(t.noteBorderColor,`;
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note text {
fill: `).concat(t.noteTextColor,`;
}
.statediagram-note .nodeLabel {
color: `).concat(t.noteTextColor,`;
}
.statediagram .edgeLabel {
color: red; // `).concat(t.noteTextColor,`;
}
#dependencyStart, #dependencyEnd {
fill: `).concat(t.lineColor,`;
stroke: `).concat(t.lineColor,`;
stroke-width: 1;
}
`)};var V9={flowchart:K8,"flowchart-v2":K8,sequence:function(t){return`.actor {
stroke: `.concat(t.actorBorder,`;
fill: `).concat(t.actorBkg,`;
}
text.actor > tspan {
fill: `).concat(t.actorTextColor,`;
stroke: none;
}
.actor-line {
stroke: `).concat(t.actorLineColor,`;
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: none;
stroke: `).concat(t.signalColor,`;
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: 2, 2;
stroke: `).concat(t.signalColor,`;
}
#arrowhead path {
fill: `).concat(t.signalColor,`;
stroke: `).concat(t.signalColor,`;
}
.sequenceNumber {
fill: `).concat(t.sequenceNumberColor,`;
}
#sequencenumber {
fill: `).concat(t.signalColor,`;
}
#crosshead path {
fill: `).concat(t.signalColor,`;
stroke: `).concat(t.signalColor,`;
}
.messageText {
fill: `).concat(t.signalTextColor,`;
stroke: `).concat(t.signalTextColor,`;
}
.labelBox {
stroke: `).concat(t.labelBoxBorderColor,`;
fill: `).concat(t.labelBoxBkgColor,`;
}
.labelText, .labelText > tspan {
fill: `).concat(t.labelTextColor,`;
stroke: none;
}
.loopText, .loopText > tspan {
fill: `).concat(t.loopTextColor,`;
stroke: none;
}
.loopLine {
stroke-width: 2px;
stroke-dasharray: 2, 2;
stroke: `).concat(t.labelBoxBorderColor,`;
fill: `).concat(t.labelBoxBorderColor,`;
}
.note {
//stroke: #decc93;
stroke: `).concat(t.noteBorderColor,`;
fill: `).concat(t.noteBkgColor,`;
}
.noteText, .noteText > tspan {
fill: `).concat(t.noteTextColor,`;
stroke: none;
}
.activation0 {
fill: `).concat(t.activationBkgColor,`;
stroke: `).concat(t.activationBorderColor,`;
}
.activation1 {
fill: `).concat(t.activationBkgColor,`;
stroke: `).concat(t.activationBorderColor,`;
}
.activation2 {
fill: `).concat(t.activationBkgColor,`;
stroke: `).concat(t.activationBorderColor,`;
}
.actorPopupMenu {
position: absolute;
}
.actorPopupMenuPanel {
position: absolute;
fill: `).concat(t.actorBkg,`;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}
.actor-man line {
stroke: `).concat(t.actorBorder,`;
fill: `).concat(t.actorBkg,`;
}
.actor-man circle, line {
stroke: `).concat(t.actorBorder,`;
fill: `).concat(t.actorBkg,`;
stroke-width: 2px;
}
`)},gantt:function(t){return`
.mermaid-main-font {
font-family: "trebuchet ms", verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.exclude-range {
fill: `.concat(t.excludeBkgColor,`;
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: `).concat(t.sectionBkgColor,`;
}
.section2 {
fill: `).concat(t.sectionBkgColor2,`;
}
.section1,
.section3 {
fill: `).concat(t.altSectionBkgColor,`;
opacity: 0.2;
}
.sectionTitle0 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle1 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle2 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle3 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle {
text-anchor: start;
// font-size: `).concat(t.ganttFontSize,`;
// text-height: 14px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
/* Grid and axis */
.grid .tick {
stroke: `).concat(t.gridColor,`;
opacity: 0.8;
shape-rendering: crispEdges;
text {
font-family: `).concat(t.fontFamily,`;
fill: `).concat(t.textColor,`;
}
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: `).concat(t.todayLineColor,`;
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
// .taskText:not([font-size]) {
// font-size: `).concat(t.ganttFontSize,`;
// }
.taskTextOutsideRight {
fill: `).concat(t.taskTextDarkColor,`;
text-anchor: start;
// font-size: `).concat(t.ganttFontSize,`;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.taskTextOutsideLeft {
fill: `).concat(t.taskTextDarkColor,`;
text-anchor: end;
// font-size: `).concat(t.ganttFontSize,`;
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
fill: `).concat(t.taskTextClickableColor,` !important;
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
fill: `).concat(t.taskTextClickableColor,` !important;
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
fill: `).concat(t.taskTextClickableColor,` !important;
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: `).concat(t.taskTextColor,`;
}
.task0,
.task1,
.task2,
.task3 {
fill: `).concat(t.taskBkgColor,`;
stroke: `).concat(t.taskBorderColor,`;
}
.taskTextOutside0,
.taskTextOutside2
{
fill: `).concat(t.taskTextOutsideColor,`;
}
.taskTextOutside1,
.taskTextOutside3 {
fill: `).concat(t.taskTextOutsideColor,`;
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: `).concat(t.activeTaskBkgColor,`;
stroke: `).concat(t.activeTaskBorderColor,`;
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: `).concat(t.taskTextDarkColor,` !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: `).concat(t.doneTaskBorderColor,`;
fill: `).concat(t.doneTaskBkgColor,`;
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: `).concat(t.taskTextDarkColor,` !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: `).concat(t.critBorderColor,`;
fill: `).concat(t.critBkgColor,`;
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: `).concat(t.critBorderColor,`;
fill: `).concat(t.activeTaskBkgColor,`;
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: `).concat(t.critBorderColor,`;
fill: `).concat(t.doneTaskBkgColor,`;
stroke-width: 2;
cursor: pointer;
shape-rendering: crispEdges;
}
.milestone {
transform: rotate(45deg) scale(0.8,0.8);
}
.milestoneText {
font-style: italic;
}
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: `).concat(t.taskTextDarkColor,` !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: `).concat(t.taskTextDarkColor,` !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: `).concat(t.textColor,` ;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
`)},classDiagram:F6,"classDiagram-v2":F6,class:F6,stateDiagram:Q8,state:Q8,git:function(){return`
.commit-id,
.commit-msg,
.branch-label {
fill: lightgrey;
color: lightgrey;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
`},info:function(){return""},pie:function(t){return`
.pieCircle{
stroke: `.concat(t.pieStrokeColor,`;
stroke-width : `).concat(t.pieStrokeWidth,`;
opacity : `).concat(t.pieOpacity,`;
}
.pieTitleText {
text-anchor: middle;
font-size: `).concat(t.pieTitleTextSize,`;
fill: `).concat(t.pieTitleTextColor,`;
font-family: `).concat(t.fontFamily,`;
}
.slice {
font-family: `).concat(t.fontFamily,`;
fill: `).concat(t.pieSectionTextColor,`;
font-size:`).concat(t.pieSectionTextSize,`;
// fill: white;
}
.legend text {
fill: `).concat(t.pieLegendTextColor,`;
font-family: `).concat(t.fontFamily,`;
font-size: `).concat(t.pieLegendTextSize,`;
}
`)},er:function(t){return`
.entityBox {
fill: `.concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
}
.attributeBoxOdd {
fill: #ffffff;
stroke: `).concat(t.nodeBorder,`;
}
.attributeBoxEven {
fill: #f2f2f2;
stroke: `).concat(t.nodeBorder,`;
}
.relationshipLabelBox {
fill: `).concat(t.tertiaryColor,`;
opacity: 0.7;
background-color: `).concat(t.tertiaryColor,`;
rect {
opacity: 0.5;
}
}
.relationshipLine {
stroke: `).concat(t.lineColor,`;
}
`)},journey:function(t){return`.label {
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
color: `.concat(t.textColor,`;
}
.mouth {
stroke: #666;
}
line {
stroke: `).concat(t.textColor,`
}
.legend {
fill: `).concat(t.textColor,`;
}
.label text {
fill: #333;
}
.label {
color: `).concat(t.textColor,`
}
.face {
`).concat(t.faceColor?"fill: ".concat(t.faceColor):"fill: #FFF8DC",`;
stroke: #999;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: `).concat(t.arrowheadColor,`;
}
.edgePath .path {
stroke: `).concat(t.lineColor,`;
stroke-width: 1.5px;
}
.flowchart-link {
stroke: `).concat(t.lineColor,`;
fill: none;
}
.edgeLabel {
background-color: `).concat(t.edgeLabelBackground,`;
rect {
opacity: 0.5;
}
text-align: center;
}
.cluster rect {
}
.cluster text {
fill: `).concat(t.titleColor,`;
}
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
font-size: 12px;
background: `).concat(t.tertiaryColor,`;
border: 1px solid `).concat(t.border2,`;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.task-type-0, .section-type-0 {
`).concat(t.fillType0?"fill: ".concat(t.fillType0):"",`;
}
.task-type-1, .section-type-1 {
`).concat(t.fillType0?"fill: ".concat(t.fillType1):"",`;
}
.task-type-2, .section-type-2 {
`).concat(t.fillType0?"fill: ".concat(t.fillType2):"",`;
}
.task-type-3, .section-type-3 {
`).concat(t.fillType0?"fill: ".concat(t.fillType3):"",`;
}
.task-type-4, .section-type-4 {
`).concat(t.fillType0?"fill: ".concat(t.fillType4):"",`;
}
.task-type-5, .section-type-5 {
`).concat(t.fillType0?"fill: ".concat(t.fillType5):"",`;
}
.task-type-6, .section-type-6 {
`).concat(t.fillType0?"fill: ".concat(t.fillType6):"",`;
}
.task-type-7, .section-type-7 {
`).concat(t.fillType0?"fill: ".concat(t.fillType7):"",`;
}
.actor-0 {
`).concat(t.actor0?"fill: ".concat(t.actor0):"",`;
}
.actor-1 {
`).concat(t.actor1?"fill: ".concat(t.actor1):"",`;
}
.actor-2 {
`).concat(t.actor2?"fill: ".concat(t.actor2):"",`;
}
.actor-3 {
`).concat(t.actor3?"fill: ".concat(t.actor3):"",`;
}
.actor-4 {
`).concat(t.actor4?"fill: ".concat(t.actor4):"",`;
}
.actor-5 {
`).concat(t.actor5?"fill: ".concat(t.actor5):"",`;
}
}
`)},requirement:function(t){return`
marker {
fill: `.concat(t.relationColor,`;
stroke: `).concat(t.relationColor,`;
}
marker.cross {
stroke: `).concat(t.lineColor,`;
}
svg {
font-family: `).concat(t.fontFamily,`;
font-size: `).concat(t.fontSize,`;
}
.reqBox {
fill: `).concat(t.requirementBackground,`;
fill-opacity: 100%;
stroke: `).concat(t.requirementBorderColor,`;
stroke-width: `).concat(t.requirementBorderSize,`;
}
.reqTitle, .reqLabel{
fill: `).concat(t.requirementTextColor,`;
}
.reqLabelBox {
fill: `).concat(t.relationLabelBackground,`;
fill-opacity: 100%;
}
.req-title-line {
stroke: `).concat(t.requirementBorderColor,`;
stroke-width: `).concat(t.requirementBorderSize,`;
}
.relationshipLine {
stroke: `).concat(t.relationColor,`;
stroke-width: 1;
}
.relationshipLabel {
fill: `).concat(t.relationLabelColor,`;
}
`)}};function P6(t){return P6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P6(t)}var J8=function(t){var e=t;return(e=(e=e.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},Om={};function t7(t){var e;vm(t.git),ca(t.flowchart),cc(t.flowchart),t.sequenceDiagram!==void 0&&pc.setConf(Qi(t.sequence,t.sequenceDiagram)),pc.setConf(t.sequence),t.gantt,Uy(t.class),t.state,ce(t.state),kp(t.class),I3(t.er),M4(t.journey),c4(t.requirement),e=t.class,Object.keys(e).forEach(function(i){Co[i]=e[i]})}var G9=Object.freeze({render:function(t,e,i,u){J1();var d=e,g=Qn.detectInit(d);g&&(X1(g),k3(g));var v=se();if(e.length>v.maxTextSize&&(d="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),u!==void 0)u.innerHTML="",Se(u).append("div").attr("id","d"+t).attr("style","font-family: "+v.fontFamily).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g");else{var w=document.getElementById(t);w&&w.remove();var C=document.querySelector("#d"+t);C&&C.remove(),Se("body").append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}window.txt=d,d=d.replace(/style.*:\S*#.*;/g,function(Lt){return Lt.substring(0,Lt.length-1)}).replace(/classDef.*:\S*#.*;/g,function(Lt){return Lt.substring(0,Lt.length-1)}).replace(/#\w+;/g,function(Lt){var gt=Lt.substring(1,Lt.length-1);return/^\+?\d+$/.test(gt)?"\uFB02\xB0\xB0"+gt+"\xB6\xDF":"\uFB02\xB0"+gt+"\xB6\xDF"});var S=Se("#d"+t).node(),B=Qn.detectType(d,v),j=S.firstChild,P=j.firstChild,U="";if(v.themeCSS!==void 0&&(U+=`
`.concat(v.themeCSS)),v.fontFamily!==void 0&&(U+=`
:root { --mermaid-font-family: `.concat(v.fontFamily,"}")),v.altFontFamily!==void 0&&(U+=`
:root { --mermaid-alt-font-family: `.concat(v.altFontFamily,"}")),B==="flowchart"||B==="flowchart-v2"||B==="graph"){var ot=function(Lt){p.info("Extracting classes"),ir.clear();try{var gt=Xu().parser;return gt.yy=ir,gt.parse(Lt),ir.getClasses()}catch{return}}(d),vt=v.htmlLabels||v.flowchart.htmlLabels;for(var bt in ot)vt?(U+=`
.`.concat(bt," > * { ").concat(ot[bt].styles.join(" !important; ")," !important; }"),U+=`
.`.concat(bt," span { ").concat(ot[bt].styles.join(" !important; ")," !important; }")):(U+=`
.`.concat(bt," path { ").concat(ot[bt].styles.join(" !important; ")," !important; }"),U+=`
.`.concat(bt," rect { ").concat(ot[bt].styles.join(" !important; ")," !important; }"),U+=`
.`.concat(bt," polygon { ").concat(ot[bt].styles.join(" !important; ")," !important; }"),U+=`
.`.concat(bt," ellipse { ").concat(ot[bt].styles.join(" !important; ")," !important; }"),U+=`
.`.concat(bt," circle { ").concat(ot[bt].styles.join(" !important; ")," !important; }"),ot[bt].textStyles&&(U+=`
.`.concat(bt," tspan { ").concat(ot[bt].textStyles.join(" !important; ")," !important; }")))}var kt=function(Lt,gt){return yy(ud("".concat(Lt,"{").concat(gt,"}")),Rx)}("#".concat(t),function(Lt,gt,Bt){return` {
font-family: `.concat(Bt.fontFamily,`;
font-size: `).concat(Bt.fontSize,`;
fill: `).concat(Bt.textColor,`
}
/* Classes common for multiple diagrams */
.error-icon {
fill: `).concat(Bt.errorBkgColor,`;
}
.error-text {
fill: `).concat(Bt.errorTextColor,`;
stroke: `).concat(Bt.errorTextColor,`;
}
.edge-thickness-normal {
stroke-width: 2px;
}
.edge-thickness-thick {
stroke-width: 3.5px
}
.edge-pattern-solid {
stroke-dasharray: 0;
}
.edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
.marker {
fill: `).concat(Bt.lineColor,`;
stroke: `).concat(Bt.lineColor,`;
}
.marker.cross {
stroke: `).concat(Bt.lineColor,`;
}
svg {
font-family: `).concat(Bt.fontFamily,`;
font-size: `).concat(Bt.fontSize,`;
}
`).concat(V9[Lt](Bt),`
`).concat(gt,`
`)}(B,U,v.themeVariables)),_t=document.createElement("style");_t.innerHTML="#".concat(t," ")+kt,j.insertBefore(_t,P);try{switch(B){case"git":v.flowchart.arrowMarkerAbsolute=v.arrowMarkerAbsolute,vm(v.git),function(Lt,gt,Bt){try{var ne=t4().parser;ne.yy=Qc,ne.yy.clear(),p.debug("in gitgraph renderer",Lt+`
`,"id:",gt,Bt),ne.parse(Lt+`
`),Fn=Object.assign(Fn,Cd,Qc.getOptions()),p.debug("effective options",Fn);var At=Qc.getDirection();Jc=Qc.getCommits();var Tt=Qc.getBranchesAsObjArray();At==="BT"&&(Fn.nodeLabel.x=Tt.length*Fn.branchOffset,Fn.nodeLabel.width="100%",Fn.nodeLabel.y=-2*Fn.nodeRadius);var jt=Se('[id="'.concat(gt,'"]'));for(var Dt in function(yt){yt.append("defs").append("g").attr("id","def-commit").append("circle").attr("r",Fn.nodeRadius).attr("cx",0).attr("cy",0),yt.select("#def-commit").append("foreignObject").attr("width",Fn.nodeLabel.width).attr("height",Fn.nodeLabel.height).attr("x",Fn.nodeLabel.x).attr("y",Fn.nodeLabel.y).attr("class","node-label").attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").append("p").html("")}(jt),Mh=1,Tt){var te=Tt[Dt];bp(jt,te.commit.id,Tt,At),n4(jt,te.commit,At),Mh++}jt.attr("height",function(){return At==="BT"?Object.keys(Jc).length*Fn.nodeSpacing:(Tt.length+1)*Fn.branchOffset})}catch(yt){p.error("Error while rendering gitgraph"),p.error(yt.message)}}(d,t,!1);break;case"flowchart":v.flowchart.arrowMarkerAbsolute=v.arrowMarkerAbsolute,ca(v.flowchart),Gc(d,t);break;case"flowchart-v2":v.flowchart.arrowMarkerAbsolute=v.arrowMarkerAbsolute,cc(v.flowchart),x6(d,t);break;case"sequence":v.sequence.arrowMarkerAbsolute=v.arrowMarkerAbsolute,v.sequenceDiagram?(pc.setConf(Object.assign(v.sequence,v.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):pc.setConf(v.sequence),pc.draw(d,t);break;case"gantt":v.gantt.arrowMarkerAbsolute=v.arrowMarkerAbsolute,v.gantt,K3(d,t);break;case"class":v.class.arrowMarkerAbsolute=v.arrowMarkerAbsolute,Uy(v.class),A3(d,t);break;case"classDiagram":v.class.arrowMarkerAbsolute=v.arrowMarkerAbsolute,function(Lt){Object.keys(Lt).forEach(function(gt){O3[gt]=Lt[gt]})}(v.class),function(Lt,gt){p.info("Drawing class"),Jo.clear(),mh.parser.parse(Lt);var Bt=se().flowchart;p.info("config:",Bt);var ne=Bt.nodeSpacing||50,At=Bt.rankSpacing||50,Tt=new(Mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:Jo.getDirection(),nodesep:ne,ranksep:At,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),jt=Jo.getClasses(),Dt=Jo.getRelations();p.info(Dt),function(Pn,Sn){var dn=Object.keys(Pn);p.info("keys:",dn),p.info(Pn),dn.forEach(function(mn){var on=Pn[mn],Qr="";on.cssClasses.length>0&&(Qr=Qr+" "+on.cssClasses.join(" "));var bn,ar={labelStyle:""},Ii=on.text!==void 0?on.text:on.id;on.type,bn="class_box",Sn.setNode(on.id,{labelStyle:ar.labelStyle,shape:bn,labelText:Ii,classData:on,rx:0,ry:0,class:Qr,style:ar.style,id:on.id,domId:on.domId,haveCallback:on.haveCallback,link:on.link,width:on.type==="group"?500:void 0,type:on.type,padding:se().flowchart.padding}),p.info("setNode",{labelStyle:ar.labelStyle,shape:bn,labelText:Ii,rx:0,ry:0,class:Qr,style:ar.style,id:on.id,width:on.type==="group"?500:void 0,type:on.type,padding:se().flowchart.padding})})}(jt,Tt),function(Pn,Sn){var dn=0;Pn.forEach(function(mn){dn++;var on={classes:"relation"};on.pattern=mn.relation.lineType==1?"dashed":"solid",on.id="id"+dn,mn.type==="arrow_open"?on.arrowhead="none":on.arrowhead="normal",p.info(on,mn),on.startLabelRight=mn.relationTitle1==="none"?"":mn.relationTitle1,on.endLabelLeft=mn.relationTitle2==="none"?"":mn.relationTitle2,on.arrowTypeStart=Zy(mn.relation.type1),on.arrowTypeEnd=Zy(mn.relation.type2);var Qr="",bn="";if(mn.style!==void 0){var ar=qc(mn.style);Qr=ar.style,bn=ar.labelStyle}else Qr="fill:none";on.style=Qr,on.labelStyle=bn,mn.interpolate!==void 0?on.curve=Qo(mn.interpolate,wo):Pn.defaultInterpolate!==void 0?on.curve=Qo(Pn.defaultInterpolate,wo):on.curve=Qo(O3.curve,wo),mn.text=mn.title,mn.text===void 0?mn.style!==void 0&&(on.arrowheadStyle="fill: #333"):(on.arrowheadStyle="fill: #333",on.labelpos="c",se().flowchart.htmlLabels?(on.labelType="html",on.label='<span class="edgeLabel">'+mn.text+"</span>"):(on.labelType="text",on.label=mn.text.replace(vr.lineBreakRegex,`
`),mn.style===void 0&&(on.style=on.style||"stroke: #333; stroke-width: 1.5px;fill:none"),on.labelStyle=on.labelStyle.replace("color:","fill:"))),Sn.setEdge(mn.id1,mn.id2,on,dn)})}(Dt,Tt);var te=Se('[id="'.concat(gt,'"]'));te.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var yt=Se("#"+gt+" g");sp(yt,Tt,["aggregation","extension","composition","dependency"],"classDiagram",gt);var ue=te.node().getBBox(),ve=ue.width+16,me=ue.height+16;if(p.debug("new ViewBox 0 0 ".concat(ve," ").concat(me),"translate(".concat(8-Tt._label.marginx,", ").concat(8-Tt._label.marginy,")")),uo(te,me,ve,Bt.useMaxWidth),te.attr("viewBox","0 0 ".concat(ve," ").concat(me)),te.select("g").attr("transform","translate(".concat(8-Tt._label.marginx,", ").concat(8-ue.y,")")),!Bt.htmlLabels)for(var De=document.querySelectorAll('[id="'+gt+'"] .edgeLabel .label'),He=0;He<De.length;He++){var ze=De[He],fn=ze.getBBox(),Oe=document.createElementNS("http://www.w3.org/2000/svg","rect");Oe.setAttribute("rx",0),Oe.setAttribute("ry",0),Oe.setAttribute("width",fn.width),Oe.setAttribute("height",fn.height),ze.insertBefore(Oe,ze.firstChild)}}(d,t);break;case"state":v.class.arrowMarkerAbsolute=v.arrowMarkerAbsolute,v.state,nt(d,t);break;case"stateDiagram":v.class.arrowMarkerAbsolute=v.arrowMarkerAbsolute,ce(v.state),function(Lt,gt){p.info("Drawing state diagram (v2)",gt),N.clear(),Mt={};var Bt=C4().parser;Bt.yy=N,Bt.parse(Lt);var ne=N.getDirection();ne===void 0&&(ne="LR");var At=se().state,Tt=At.nodeSpacing||50,jt=At.rankSpacing||50;p.info(N.getRootDocV2()),N.extract(N.getRootDocV2()),p.info(N.getRootDocV2());var Dt=new(Mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:zt(N.getRootDocV2()),nodesep:Tt,ranksep:jt,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Wt(Dt,void 0,N.getRootDocV2(),!0);var te=Se('[id="'.concat(gt,'"]')),yt=Se("#"+gt+" g");sp(yt,Dt,["barb"],"statediagram",gt);var ue=te.node().getBBox(),ve=ue.width+16,me=ue.height+16;te.attr("class","statediagram");var De=te.node().getBBox();uo(te,me,1.75*ve,At.useMaxWidth);var He="".concat(De.x-8," ").concat(De.y-8," ").concat(ve," ").concat(me);p.debug("viewBox ".concat(He)),te.attr("viewBox",He);for(var ze=document.querySelectorAll('[id="'+gt+'"] .edgeLabel .label'),fn=0;fn<ze.length;fn++){var Oe=ze[fn],Pn=Oe.getBBox(),Sn=document.createElementNS("http://www.w3.org/2000/svg","rect");Sn.setAttribute("rx",0),Sn.setAttribute("ry",0),Sn.setAttribute("width",Pn.width),Sn.setAttribute("height",Pn.height),Oe.insertBefore(Sn,Oe.firstChild)}}(d,t);break;case"info":v.class.arrowMarkerAbsolute=v.arrowMarkerAbsolute,kp(v.class),function(Lt,gt,Bt){try{var ne=xp().parser;ne.yy=wp,p.debug(`Renering info diagram
`+Lt),ne.parse(Lt),p.debug("Parsed info diagram");var At=Se("#"+gt);At.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+Bt),At.attr("height",100),At.attr("width",400)}catch(Tt){p.error("Error while rendering info diagram"),p.error(Tt.message)}}(d,t,vy);break;case"pie":i4(d,t);break;case"er":I3(v.er),F3(d,t);break;case"journey":M4(v.journey),I6(d,t);break;case"requirement":c4(v.requirement),Nh(d,t)}}catch(Lt){throw function(gt,Bt){try{p.debug(`Renering svg for syntax error
`);var ne=Se("#"+gt),At=ne.append("g");At.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),At.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),At.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),At.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),At.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),At.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),At.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),At.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+Bt),ne.attr("height",100),ne.attr("width",400),ne.attr("viewBox","768 0 512 512")}catch(Tt){p.error("Error while rendering info diagram"),p.error(Tt.message)}}(t,vy),Lt}Se('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var lt=Se("#d"+t).node().innerHTML;if(p.debug("cnf.arrowMarkerAbsolute",v.arrowMarkerAbsolute),v.arrowMarkerAbsolute&&v.arrowMarkerAbsolute!=="false"||(lt=lt.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),lt=(lt=J8(lt)).replace(/<br>/g,"<br/>"),i!==void 0)switch(B){case"flowchart":case"flowchart-v2":i(lt,ir.bindFunctions);break;case"gantt":i(lt,Ed.bindFunctions);break;case"class":case"classDiagram":i(lt,Jo.bindFunctions);break;default:i(lt)}else p.debug("CB = undefined!");Ld.forEach(function(Lt){Lt()}),Ld=[];var $t=Se("#d"+t).node();return $t!==null&&typeof $t.remove=="function"&&Se("#d"+t).node().remove(),lt},parse:function(t){var e=se(),i=Qn.detectInit(t,e);i&&p.debug("reinit ",i);var u,d=Qn.detectType(t,e);switch(p.debug("Type "+d),d){case"git":(u=t4()).parser.yy=Qc;break;case"flowchart":case"flowchart-v2":ir.clear(),(u=Xu()).parser.yy=ir;break;case"sequence":(u=M6()).parser.yy=Sm;break;case"gantt":(u=pm()).parser.yy=Ed;break;case"class":case"classDiagram":(u=S3()).parser.yy=Jo;break;case"state":case"stateDiagram":(u=C4()).parser.yy=N;break;case"info":p.debug("info info info"),(u=xp()).parser.yy=wp;break;case"pie":p.debug("pie"),(u=Tp()).parser.yy=bm;break;case"er":p.debug("er"),(u=B3()).parser.yy=Wa;break;case"journey":p.debug("Journey"),(u=nn()).parser.yy=Jn;break;case"requirement":case"requirementDiagram":p.debug("RequirementDiagram"),(u=a4()).parser.yy=tl}return u.parser.yy.graphType=d,u.parser.yy.parseError=function(g,v){throw{str:g,hash:v}},u.parse(t),u},parseDirective:function(t,e,i,u){try{if(e!==void 0)switch(e=e.trim(),i){case"open_directive":Om={};break;case"type_directive":Om.type=e.toLowerCase();break;case"arg_directive":Om.args=JSON.parse(e);break;case"close_directive":(function(d,g,v){switch(p.debug("Directive type=".concat(g.type," with args:"),g.args),g.type){case"init":case"initialize":["config"].forEach(function(w){g.args[w]!==void 0&&(v==="flowchart-v2"&&(v="flowchart"),g.args[v]=g.args[w],delete g.args[w])}),p.debug("sanitize in handleDirective",g.args),X1(g.args),p.debug("sanitize in handleDirective (done)",g.args),g.args,k3(g.args);break;case"wrap":case"nowrap":d&&d.setWrap&&d.setWrap(g.type==="wrap");break;case"themeCss":p.warn("themeCss encountered");break;default:p.warn("Unhandled directive: source: '%%{".concat(g.type,": ").concat(JSON.stringify(g.args?g.args:{}),"}%%"),g)}})(t,Om,u),Om=null}}catch(d){p.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(i)),p.error(d.message)}},initialize:function(t){t&&t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),function(i){w3=Qi({},i)}(t),t&&t.theme&&dh[t.theme]?t.themeVariables=dh[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=dh.default.getThemeVariables(t.themeVariables));var e=P6(t)==="object"?function(i){return Ji=Qi({},fd),Ji=Qi(Ji,i),i.theme&&(Ji.themeVariables=dh[i.theme].getThemeVariables(i.themeVariables)),K1=Q1(Ji,gh),Ji}(t):x3();t7(e),b(e.logLevel)},reinitialize:function(){},getConfig:se,setConfig:function(t){return Qi(K1,t),se()},getSiteConfig:x3,updateSiteConfig:function(t){return Ji=Qi(Ji,t),Q1(Ji,gh),Ji},reset:function(){J1()},globalReset:function(){J1(),t7(se())},defaultConfig:fd});b(se().logLevel),J1(se());const la=G9;var e7=function(){Mo.startOnLoad?la.getConfig().startOnLoad&&Mo.init():Mo.startOnLoad===void 0&&(p.debug("In start, no config"),la.getConfig().startOnLoad&&Mo.init())};typeof document!="undefined"&&window.addEventListener("load",function(){e7()},!1);var Mo={startOnLoad:!0,htmlLabels:!0,mermaidAPI:la,parse:la.parse,render:la.render,init:function(){var t,e,i=this,u=la.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(Mo.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],typeof arguments[arguments.length-1]=="function"?(e=arguments[arguments.length-1],p.debug("Callback function found")):u.mermaid!==void 0&&(typeof u.mermaid.callback=="function"?(e=u.mermaid.callback,p.debug("Callback function found")):p.debug("No Callback function found")),t=t===void 0?document.querySelectorAll(".mermaid"):typeof t=="string"?document.querySelectorAll(t):t instanceof window.Node?[t]:t,p.debug("Start On Load before: "+Mo.startOnLoad),Mo.startOnLoad!==void 0&&(p.debug("Start On Load inner: "+Mo.startOnLoad),la.updateSiteConfig({startOnLoad:Mo.startOnLoad})),Mo.ganttConfig!==void 0&&la.updateSiteConfig({gantt:Mo.ganttConfig});for(var d,g=new Qn.initIdGeneratior(u.deterministicIds,u.deterministicIDSeed),v=function(C){var S=t[C];if(S.getAttribute("data-processed"))return"continue";S.setAttribute("data-processed",!0);var B="mermaid-".concat(g.next());d=S.innerHTML,d=Qn.entityDecode(d).trim().replace(/<br\s*\/?>/gi,"<br/>");var j=Qn.detectInit(d);j&&p.debug("Detected early reinit: ",j);try{la.render(B,d,function(P,U){S.innerHTML=P,e!==void 0&&e(B),U&&U(S)},S)}catch(P){p.warn("Syntax Error rendering"),p.warn(P),i.parseError&&i.parseError(P)}},w=0;w<t.length;w++)v(w)},initialize:function(t){t.mermaid!==void 0&&(t.mermaid.startOnLoad!==void 0&&(Mo.startOnLoad=t.mermaid.startOnLoad),t.mermaid.htmlLabels!==void 0&&(Mo.htmlLabels=t.mermaid.htmlLabels!=="false"&&t.mermaid.htmlLabels!==!1)),la.initialize(t)},contentLoaded:e7};const Z9=Mo},4949:(r,s,o)=>{r.exports={graphlib:o(6614),dagre:o(1463),intersect:o(8114),render:o(5787),util:o(8355),version:o(5689)}},9144:(r,s,o)=>{var h=o(8355);function c(y,p,b,T){var k=y.append("marker").attr("id",p).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");h.applyStyle(k,b[T+"Style"]),b[T+"Class"]&&k.attr("class",b[T+"Class"])}r.exports={default:c,normal:c,vee:function(y,p,b,T){var k=y.append("marker").attr("id",p).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");h.applyStyle(k,b[T+"Style"]),b[T+"Class"]&&k.attr("class",b[T+"Class"])},undirected:function(y,p,b,T){var k=y.append("marker").attr("id",p).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");h.applyStyle(k,b[T+"Style"]),b[T+"Class"]&&k.attr("class",b[T+"Class"])}}},5632:(r,s,o)=>{var h=o(8355),c=o(4322),y=o(1322);r.exports=function(p,b){var T,k=b.nodes().filter(function(O){return h.isSubgraph(b,O)}),D=p.selectAll("g.cluster").data(k,function(O){return O});return D.selectAll("*").remove(),D.enter().append("g").attr("class","cluster").attr("id",function(O){return b.node(O).id}).style("opacity",0),D=p.selectAll("g.cluster"),h.applyTransition(D,b).style("opacity",1),D.each(function(O){var I=b.node(O),z=c.select(this);c.select(this).append("rect");var H=z.append("g").attr("class","label");y(H,I,I.clusterLabelPos)}),D.selectAll("rect").each(function(O){var I=b.node(O),z=c.select(this);h.applyStyle(z,I.style)}),T=D.exit?D.exit():D.selectAll(null),h.applyTransition(T,b).style("opacity",0).remove(),D}},6315:(r,s,o)=>{var h=o(1034),c=o(1322),y=o(8355),p=o(4322);r.exports=function(b,T){var k,D=b.selectAll("g.edgeLabel").data(T.edges(),function(O){return y.edgeToId(O)}).classed("update",!0);return D.exit().remove(),D.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(D=b.selectAll("g.edgeLabel")).each(function(O){var I=p.select(this);I.select(".label").remove();var z=T.edge(O),H=c(I,T.edge(O),0,0).classed("label",!0),q=H.node().getBBox();z.labelId&&H.attr("id",z.labelId),h.has(z,"width")||(z.width=q.width),h.has(z,"height")||(z.height=q.height)}),k=D.exit?D.exit():D.selectAll(null),y.applyTransition(k,T).style("opacity",0).remove(),D}},940:(r,s,o)=>{var h=o(1034),c=o(7584),y=o(8355),p=o(4322);function b(T,k){var D=(p.line||p.svg.line)().x(function(O){return O.x}).y(function(O){return O.y});return(D.curve||D.interpolate)(T.curve),D(k)}r.exports=function(T,k,D){var O=T.selectAll("g.edgePath").data(k.edges(),function(H){return y.edgeToId(H)}).classed("update",!0),I=function(H,q){var V=H.enter().append("g").attr("class","edgePath").style("opacity",0);return V.append("path").attr("class","path").attr("d",function(X){var it=q.edge(X),tt=q.node(X.v).elem;return b(it,h.range(it.points.length).map(function(){return ut=(rt=tt).getBBox(),{x:(Ct=rt.ownerSVGElement.getScreenCTM().inverse().multiply(rt.getScreenCTM()).translate(ut.width/2,ut.height/2)).e,y:Ct.f};var rt,ut,Ct}))}),V.append("defs"),V}(O,k);(function(H,q){var V=H.exit();y.applyTransition(V,q).style("opacity",0).remove()})(O,k);var z=O.merge!==void 0?O.merge(I):O;return y.applyTransition(z,k).style("opacity",1),z.each(function(H){var q=p.select(this),V=k.edge(H);V.elem=this,V.id&&q.attr("id",V.id),y.applyClass(q,V.class,(q.classed("update")?"update ":"")+"edgePath")}),z.selectAll("path.path").each(function(H){var q=k.edge(H);q.arrowheadId=h.uniqueId("arrowhead");var V=p.select(this).attr("marker-end",function(){return"url("+(X=location.href,it=q.arrowheadId,X.split("#")[0]+"#"+it+")");var X,it}).style("fill","none");y.applyTransition(V,k).attr("d",function(X){return function(it,tt){var rt=it.edge(tt),ut=it.node(tt.v),Ct=it.node(tt.w),et=rt.points.slice(1,rt.points.length-1);return et.unshift(c(ut,et[0])),et.push(c(Ct,et[et.length-1])),b(rt,et)}(k,X)}),y.applyStyle(V,q.style)}),z.selectAll("defs *").remove(),z.selectAll("defs").each(function(H){var q=k.edge(H);(0,D[q.arrowhead])(p.select(this),q.arrowheadId,q,"arrowhead")}),z}},607:(r,s,o)=>{var h=o(1034),c=o(1322),y=o(8355),p=o(4322);r.exports=function(b,T,k){var D,O=T.nodes().filter(function(z){return!y.isSubgraph(T,z)}),I=b.selectAll("g.node").data(O,function(z){return z}).classed("update",!0);return I.exit().remove(),I.enter().append("g").attr("class","node").style("opacity",0),(I=b.selectAll("g.node")).each(function(z){var H=T.node(z),q=p.select(this);y.applyClass(q,H.class,(q.classed("update")?"update ":"")+"node"),q.select("g.label").remove();var V=q.append("g").attr("class","label"),X=c(V,H),it=k[H.shape],tt=h.pick(X.node().getBBox(),"width","height");H.elem=this,H.id&&q.attr("id",H.id),H.labelId&&V.attr("id",H.labelId),h.has(H,"width")&&(tt.width=H.width),h.has(H,"height")&&(tt.height=H.height),tt.width+=H.paddingLeft+H.paddingRight,tt.height+=H.paddingTop+H.paddingBottom,V.attr("transform","translate("+(H.paddingLeft-H.paddingRight)/2+","+(H.paddingTop-H.paddingBottom)/2+")");var rt=p.select(this);rt.select(".label-container").remove();var ut=it(rt,tt,H).classed("label-container",!0);y.applyStyle(ut,H.style);var Ct=ut.node().getBBox();H.width=Ct.width,H.height=Ct.height}),D=I.exit?I.exit():I.selectAll(null),y.applyTransition(D,T).style("opacity",0).remove(),I}},4322:(r,s,o)=>{var h;if(!h)try{h=o(7188)}catch{}h||(h=window.d3),r.exports=h},1463:(r,s,o)=>{var h;try{h=o(681)}catch{}h||(h=window.dagre),r.exports=h},6614:(r,s,o)=>{var h;try{h=o(8282)}catch{}h||(h=window.graphlib),r.exports=h},8114:(r,s,o)=>{r.exports={node:o(7584),circle:o(6587),ellipse:o(3260),polygon:o(5337),rect:o(8049)}},6587:(r,s,o)=>{var h=o(3260);r.exports=function(c,y,p){return h(c,y,y,p)}},3260:r=>{r.exports=function(s,o,h,c){var y=s.x,p=s.y,b=y-c.x,T=p-c.y,k=Math.sqrt(o*o*T*T+h*h*b*b),D=Math.abs(o*h*b/k);c.x<y&&(D=-D);var O=Math.abs(o*h*T/k);return c.y<p&&(O=-O),{x:y+D,y:p+O}}},6808:r=>{function s(o,h){return o*h>0}r.exports=function(o,h,c,y){var p,b,T,k,D,O,I,z,H,q,V,X,it;if(p=h.y-o.y,T=o.x-h.x,D=h.x*o.y-o.x*h.y,H=p*c.x+T*c.y+D,q=p*y.x+T*y.y+D,!(H!==0&&q!==0&&s(H,q)||(b=y.y-c.y,k=c.x-y.x,O=y.x*c.y-c.x*y.y,I=b*o.x+k*o.y+O,z=b*h.x+k*h.y+O,I!==0&&z!==0&&s(I,z)||(V=p*k-b*T)==0)))return X=Math.abs(V/2),{x:(it=T*O-k*D)<0?(it-X)/V:(it+X)/V,y:(it=b*D-p*O)<0?(it-X)/V:(it+X)/V}}},7584:r=>{r.exports=function(s,o){return s.intersect(o)}},5337:(r,s,o)=>{var h=o(6808);r.exports=function(c,y,p){var b=c.x,T=c.y,k=[],D=Number.POSITIVE_INFINITY,O=Number.POSITIVE_INFINITY;y.forEach(function(it){D=Math.min(D,it.x),O=Math.min(O,it.y)});for(var I=b-c.width/2-D,z=T-c.height/2-O,H=0;H<y.length;H++){var q=y[H],V=y[H<y.length-1?H+1:0],X=h(c,p,{x:I+q.x,y:z+q.y},{x:I+V.x,y:z+V.y});X&&k.push(X)}return k.length?(k.length>1&&k.sort(function(it,tt){var rt=it.x-p.x,ut=it.y-p.y,Ct=Math.sqrt(rt*rt+ut*ut),et=tt.x-p.x,K=tt.y-p.y,ht=Math.sqrt(et*et+K*K);return Ct<ht?-1:Ct===ht?0:1}),k[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",c),c)}},8049:r=>{r.exports=function(s,o){var h,c,y=s.x,p=s.y,b=o.x-y,T=o.y-p,k=s.width/2,D=s.height/2;return Math.abs(T)*k>Math.abs(b)*D?(T<0&&(D=-D),h=T===0?0:D*b/T,c=D):(b<0&&(k=-k),h=k,c=b===0?0:k*T/b),{x:y+h,y:p+c}}},8284:(r,s,o)=>{var h=o(8355);r.exports=function(c,y){var p=c.append("foreignObject").attr("width","100000"),b=p.append("xhtml:div");b.attr("xmlns","http://www.w3.org/1999/xhtml");var T=y.label;switch(typeof T){case"function":b.insert(T);break;case"object":b.insert(function(){return T});break;default:b.html(T)}h.applyStyle(b,y.labelStyle),b.style("display","inline-block"),b.style("white-space","nowrap");var k=b.node().getBoundingClientRect();return p.attr("width",k.width).attr("height",k.height),p}},1322:(r,s,o)=>{var h=o(7318),c=o(8284),y=o(8287);r.exports=function(p,b,T){var k=b.label,D=p.append("g");b.labelType==="svg"?y(D,b):typeof k!="string"||b.labelType==="html"?c(D,b):h(D,b);var O,I=D.node().getBBox();switch(T){case"top":O=-b.height/2;break;case"bottom":O=b.height/2-I.height;break;default:O=-I.height/2}return D.attr("transform","translate("+-I.width/2+","+O+")"),D}},8287:(r,s,o)=>{var h=o(8355);r.exports=function(c,y){var p=c;return p.node().appendChild(y.label),h.applyStyle(p,y.labelStyle),p}},7318:(r,s,o)=>{var h=o(8355);r.exports=function(c,y){for(var p=c.append("text"),b=function(k){for(var D,O="",I=!1,z=0;z<k.length;++z)D=k[z],I?(O+=D==="n"?`
`:D,I=!1):D==="\\"?I=!0:O+=D;return O}(y.label).split(`
`),T=0;T<b.length;T++)p.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(b[T]);return h.applyStyle(p,y.labelStyle),p}},1034:(r,s,o)=>{var h;try{h={defaults:o(1747),each:o(6073),isFunction:o(3560),isPlainObject:o(8630),pick:o(9722),has:o(8721),range:o(6026),uniqueId:o(3955)}}catch{}h||(h=window._),r.exports=h},6381:(r,s,o)=>{var h=o(8355),c=o(4322);r.exports=function(y,p){var b=y.filter(function(){return!c.select(this).classed("update")});function T(k){var D=p.node(k);return"translate("+D.x+","+D.y+")"}b.attr("transform",T),h.applyTransition(y,p).style("opacity",1).attr("transform",T),h.applyTransition(b.selectAll("rect"),p).attr("width",function(k){return p.node(k).width}).attr("height",function(k){return p.node(k).height}).attr("x",function(k){return-p.node(k).width/2}).attr("y",function(k){return-p.node(k).height/2})}},4577:(r,s,o)=>{var h=o(8355),c=o(4322),y=o(1034);r.exports=function(p,b){function T(k){var D=b.edge(k);return y.has(D,"x")?"translate("+D.x+","+D.y+")":""}p.filter(function(){return!c.select(this).classed("update")}).attr("transform",T),h.applyTransition(p,b).style("opacity",1).attr("transform",T)}},4849:(r,s,o)=>{var h=o(8355),c=o(4322);r.exports=function(y,p){function b(T){var k=p.node(T);return"translate("+k.x+","+k.y+")"}y.filter(function(){return!c.select(this).classed("update")}).attr("transform",b),h.applyTransition(y,p).style("opacity",1).attr("transform",b)}},5787:(r,s,o)=>{var h=o(1034),c=o(4322),y=o(1463).layout;r.exports=function(){var k=o(607),D=o(5632),O=o(6315),I=o(940),z=o(4849),H=o(4577),q=o(6381),V=o(4418),X=o(9144),it=function(tt,rt){(function(St){St.nodes().forEach(function(pt){var wt=St.node(pt);h.has(wt,"label")||St.children(pt).length||(wt.label=pt),h.has(wt,"paddingX")&&h.defaults(wt,{paddingLeft:wt.paddingX,paddingRight:wt.paddingX}),h.has(wt,"paddingY")&&h.defaults(wt,{paddingTop:wt.paddingY,paddingBottom:wt.paddingY}),h.has(wt,"padding")&&h.defaults(wt,{paddingLeft:wt.padding,paddingRight:wt.padding,paddingTop:wt.padding,paddingBottom:wt.padding}),h.defaults(wt,p),h.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(Ht){wt[Ht]=Number(wt[Ht])}),h.has(wt,"width")&&(wt._prevWidth=wt.width),h.has(wt,"height")&&(wt._prevHeight=wt.height)}),St.edges().forEach(function(pt){var wt=St.edge(pt);h.has(wt,"label")||(wt.label=""),h.defaults(wt,b)})})(rt);var ut=T(tt,"output"),Ct=T(ut,"clusters"),et=T(ut,"edgePaths"),K=O(T(ut,"edgeLabels"),rt),ht=k(T(ut,"nodes"),rt,V);y(rt),z(ht,rt),H(K,rt),I(et,rt,X);var xt=D(Ct,rt);q(xt,rt),function(St){h.each(St.nodes(),function(pt){var wt=St.node(pt);h.has(wt,"_prevWidth")?wt.width=wt._prevWidth:delete wt.width,h.has(wt,"_prevHeight")?wt.height=wt._prevHeight:delete wt.height,delete wt._prevWidth,delete wt._prevHeight})}(rt)};return it.createNodes=function(tt){return arguments.length?(k=tt,it):k},it.createClusters=function(tt){return arguments.length?(D=tt,it):D},it.createEdgeLabels=function(tt){return arguments.length?(O=tt,it):O},it.createEdgePaths=function(tt){return arguments.length?(I=tt,it):I},it.shapes=function(tt){return arguments.length?(V=tt,it):V},it.arrows=function(tt){return arguments.length?(X=tt,it):X},it};var p={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},b={arrowhead:"normal",curve:c.curveLinear};function T(k,D){var O=k.select("g."+D);return O.empty()&&(O=k.append("g").attr("class",D)),O}},4418:(r,s,o)=>{var h=o(8049),c=o(3260),y=o(6587),p=o(5337);r.exports={rect:function(b,T,k){var D=b.insert("rect",":first-child").attr("rx",k.rx).attr("ry",k.ry).attr("x",-T.width/2).attr("y",-T.height/2).attr("width",T.width).attr("height",T.height);return k.intersect=function(O){return h(k,O)},D},ellipse:function(b,T,k){var D=T.width/2,O=T.height/2,I=b.insert("ellipse",":first-child").attr("x",-T.width/2).attr("y",-T.height/2).attr("rx",D).attr("ry",O);return k.intersect=function(z){return c(k,D,O,z)},I},circle:function(b,T,k){var D=Math.max(T.width,T.height)/2,O=b.insert("circle",":first-child").attr("x",-T.width/2).attr("y",-T.height/2).attr("r",D);return k.intersect=function(I){return y(k,D,I)},O},diamond:function(b,T,k){var D=T.width*Math.SQRT2/2,O=T.height*Math.SQRT2/2,I=[{x:0,y:-O},{x:-D,y:0},{x:0,y:O},{x:D,y:0}],z=b.insert("polygon",":first-child").attr("points",I.map(function(H){return H.x+","+H.y}).join(" "));return k.intersect=function(H){return p(k,I,H)},z}}},8355:(r,s,o)=>{var h=o(1034);r.exports={isSubgraph:function(p,b){return!!p.children(b).length},edgeToId:function(p){return y(p.v)+":"+y(p.w)+":"+y(p.name)},applyStyle:function(p,b){b&&p.attr("style",b)},applyClass:function(p,b,T){b&&p.attr("class",b).attr("class",T+" "+p.attr("class"))},applyTransition:function(p,b){var T=b.graph();if(h.isPlainObject(T)){var k=T.transition;if(h.isFunction(k))return k(p)}return p}};var c=/:/g;function y(p){return p?String(p).replace(c,"\\:"):""}},5689:r=>{r.exports="0.6.4"},7188:(r,s,o)=>{o.r(s),o.d(s,{FormatSpecifier:()=>A0,active:()=>N5,arc:()=>cm,area:()=>Eh,areaRadial:()=>dm,ascending:()=>c,autoType:()=>tw,axisBottom:()=>ke,axisLeft:()=>Je,axisRight:()=>Le,axisTop:()=>Ve,bisect:()=>k,bisectLeft:()=>T,bisectRight:()=>b,bisector:()=>y,blob:()=>pw,brush:()=>kg,brushSelection:()=>B5,brushX:()=>d0,brushY:()=>R5,buffer:()=>s_,chord:()=>Eg,clientPoint:()=>vu,cluster:()=>fx,color:()=>Qa,contourDensity:()=>gf,contours:()=>zi,create:()=>m6,creator:()=>di,cross:()=>I,csv:()=>c_,csvFormat:()=>W5,csvFormatBody:()=>q5,csvFormatRow:()=>G5,csvFormatRows:()=>V5,csvFormatValue:()=>$v,csvParse:()=>Hv,csvParseRows:()=>$5,cubehelix:()=>Ta,curveBasis:()=>e4,curveBasisClosed:()=>k6,curveBasisOpen:()=>n4,curveBundle:()=>r4,curveCardinal:()=>T6,curveCardinalClosed:()=>E6,curveCardinalOpen:()=>S6,curveCatmullRom:()=>_m,curveCatmullRomClosed:()=>bm,curveCatmullRomOpen:()=>hc,curveLinear:()=>kh,curveLinearClosed:()=>Sp,curveMonotoneX:()=>wm,curveMonotoneY:()=>C6,curveNatural:()=>o4,curveStep:()=>s4,curveStepAfter:()=>c4,curveStepBefore:()=>Dh,customEvent:()=>vo,descending:()=>z,deviation:()=>V,dispatch:()=>tn,drag:()=>jv,dragDisable:()=>ni,dragEnable:()=>Hr,dsv:()=>mw,dsvFormat:()=>yf,easeBack:()=>i_,easeBackIn:()=>hw,easeBackInOut:()=>i_,easeBackOut:()=>fw,easeBounce:()=>mf,easeBounceIn:()=>r_,easeBounceInOut:()=>lw,easeBounceOut:()=>mf,easeCircle:()=>n_,easeCircleIn:()=>cw,easeCircleInOut:()=>n_,easeCircleOut:()=>uw,easeCubic:()=>Tc,easeCubicIn:()=>a0,easeCubicInOut:()=>Tc,easeCubicOut:()=>o0,easeElastic:()=>qg,easeElasticIn:()=>dw,easeElasticInOut:()=>a_,easeElasticOut:()=>qg,easeExp:()=>e_,easeExpIn:()=>t_,easeExpInOut:()=>e_,easeExpOut:()=>sw,easeLinear:()=>Vv,easePoly:()=>Zv,easePolyIn:()=>iw,easePolyInOut:()=>Zv,easePolyOut:()=>aw,easeQuad:()=>Gv,easeQuadIn:()=>nw,easeQuadInOut:()=>Gv,easeQuadOut:()=>rw,easeSin:()=>Jv,easeSinIn:()=>Qv,easeSinInOut:()=>Jv,easeSinOut:()=>ow,entries:()=>Og,event:()=>mt,extent:()=>X,forceCenter:()=>ww,forceCollide:()=>Ew,forceLink:()=>Cw,forceManyBody:()=>Nw,forceRadial:()=>Ow,forceSimulation:()=>Dw,forceX:()=>p_,forceY:()=>Kg,format:()=>N0,formatDefaultLocale:()=>w_,formatLocale:()=>b_,formatPrefix:()=>Jg,formatSpecifier:()=>bf,geoAlbers:()=>yb,geoAlbersUsa:()=>tc,geoArea:()=>Bw,geoAzimuthalEqualArea:()=>ex,geoAzimuthalEqualAreaRaw:()=>B2,geoAzimuthalEquidistant:()=>I2,geoAzimuthalEquidistantRaw:()=>R2,geoBounds:()=>Af,geoCentroid:()=>Fw,geoCircle:()=>Pw,geoClipAntimeridian:()=>y2,geoClipCircle:()=>$_,geoClipExtent:()=>jw,geoClipRectangle:()=>Z0,geoConicConformal:()=>rx,geoConicConformalRaw:()=>P2,geoConicEqualArea:()=>l1,geoConicEqualAreaRaw:()=>gb,geoConicEquidistant:()=>vb,geoConicEquidistantRaw:()=>mb,geoContains:()=>K_,geoDistance:()=>t1,geoEqualEarth:()=>ax,geoEqualEarthRaw:()=>Y2,geoEquirectangular:()=>ix,geoEquirectangularRaw:()=>Wf,geoGnomonic:()=>_b,geoGnomonicRaw:()=>Zf,geoGraticule:()=>tb,geoGraticule10:()=>qw,geoIdentity:()=>f1,geoInterpolate:()=>Vw,geoLength:()=>W_,geoMercator:()=>nx,geoMercatorRaw:()=>Hf,geoNaturalEarth1:()=>ox,geoNaturalEarth1Raw:()=>j2,geoOrthographic:()=>sx,geoOrthographicRaw:()=>z2,geoPath:()=>Xw,geoProjection:()=>qo,geoProjectionMutator:()=>N2,geoRotation:()=>d2,geoStereographic:()=>cx,geoStereographicRaw:()=>U2,geoStream:()=>jo,geoTransform:()=>Kw,geoTransverseMercator:()=>ux,geoTransverseMercatorRaw:()=>d1,gray:()=>P5,hcl:()=>Cc,hierarchy:()=>H2,histogram:()=>Pt,hsl:()=>bl,html:()=>h_,image:()=>l_,interpolate:()=>mu,interpolateArray:()=>Qp,interpolateBasis:()=>Lr,interpolateBasisClosed:()=>gu,interpolateBlues:()=>wh,interpolateBrBG:()=>o6,interpolateBuGn:()=>l6,interpolateBuPu:()=>O3,interpolateCividis:()=>f6,interpolateCool:()=>d6,interpolateCubehelix:()=>S1,interpolateCubehelixDefault:()=>rm,interpolateCubehelixLong:()=>ed,interpolateDate:()=>e0,interpolateDiscrete:()=>xx,interpolateGnBu:()=>vd,interpolateGreens:()=>Gu,interpolateGreys:()=>As,interpolateHcl:()=>xs,interpolateHclLong:()=>Go,interpolateHsl:()=>kx,interpolateHslLong:()=>Tx,interpolateHue:()=>x1,interpolateInferno:()=>y6,interpolateLab:()=>T1,interpolateMagma:()=>lo,interpolateNumber:()=>wa,interpolateNumberArray:()=>Kh,interpolateObject:()=>n0,interpolateOrRd:()=>Xy,interpolateOranges:()=>hp,interpolatePRGn:()=>ap,interpolatePiYG:()=>Vu,interpolatePlasma:()=>U3,interpolatePuBu:()=>B3,interpolatePuBuGn:()=>Wa,interpolatePuOr:()=>N3,interpolatePuRd:()=>Vc,interpolatePurples:()=>em,interpolateRainbow:()=>Y3,interpolateRdBu:()=>bh,interpolateRdGy:()=>s6,interpolateRdPu:()=>R3,interpolateRdYlBu:()=>op,interpolateRdYlGn:()=>c6,interpolateReds:()=>nm,interpolateRgb:()=>kc,interpolateRgbBasis:()=>xl,interpolateRgbBasisClosed:()=>Bo,interpolateRound:()=>Z2,interpolateSinebow:()=>ir,interpolateSpectral:()=>u6,interpolateString:()=>Ro,interpolateTransformCss:()=>tg,interpolateTransformSvg:()=>eg,interpolateTurbo:()=>p6,interpolateViridis:()=>g6,interpolateWarm:()=>P3,interpolateYlGn:()=>Jy,interpolateYlGnBu:()=>I3,interpolateYlOrBr:()=>sc,interpolateYlOrRd:()=>h6,interpolateZoom:()=>k1,interrupt:()=>ka,interval:()=>y4,isoFormat:()=>p4,isoParse:()=>g4,json:()=>_w,keys:()=>uf,lab:()=>lf,lch:()=>Rg,line:()=>Th,lineRadial:()=>fm,linkHorizontal:()=>X3,linkRadial:()=>Eo,linkVertical:()=>Kc,local:()=>H3,map:()=>qs,matcher:()=>cn,max:()=>Rt,mean:()=>Gt,median:()=>oe,merge:()=>le,min:()=>ye,mouse:()=>zs,namespace:()=>En,namespaces:()=>Nr,nest:()=>F5,now:()=>G,pack:()=>vx,packEnclose:()=>xb,packSiblings:()=>Ab,pairs:()=>D,partition:()=>Vo,path:()=>Ws,permute:()=>It,pie:()=>W3,piecewise:()=>K2,pointRadial:()=>Os,polygonArea:()=>Pb,polygonCentroid:()=>Ex,polygonContains:()=>J2,polygonHull:()=>Q2,polygonLength:()=>jb,precisionFixed:()=>t2,precisionPrefix:()=>x_,precisionRound:()=>k_,quadtree:()=>vf,quantile:()=>ge,quantize:()=>Fb,radialArea:()=>dm,radialLine:()=>fm,randomBates:()=>Ts,randomExponential:()=>Mx,randomIrwinHall:()=>ah,randomLogNormal:()=>ih,randomNormal:()=>nd,randomUniform:()=>C1,range:()=>et,rgb:()=>Gi,ribbon:()=>Mg,scaleBand:()=>D1,scaleDiverging:()=>Oa,scaleDivergingLog:()=>Li,scaleDivergingPow:()=>dr,scaleDivergingSqrt:()=>es,scaleDivergingSymlog:()=>Ss,scaleIdentity:()=>iy,scaleImplicit:()=>ty,scaleLinear:()=>ry,scaleLog:()=>qb,scaleOrdinal:()=>A1,scalePoint:()=>rd,scalePow:()=>uy,scaleQuantile:()=>Kb,scaleQuantize:()=>Qb,scaleSequential:()=>gd,scaleSequentialLog:()=>Uy,scaleSequentialPow:()=>Hy,scaleSequentialQuantile:()=>np,scaleSequentialSqrt:()=>Qx,scaleSequentialSymlog:()=>A3,scaleSqrt:()=>Lx,scaleSymlog:()=>Zb,scaleThreshold:()=>Jb,scaleTime:()=>mh,scaleUtc:()=>Kx,scan:()=>$e,schemeAccent:()=>Jx,schemeBlues:()=>tm,schemeBrBG:()=>$y,schemeBuGn:()=>Gy,schemeBuPu:()=>sp,schemeCategory10:()=>rp,schemeDark2:()=>t6,schemeGnBu:()=>Zy,schemeGreens:()=>ui,schemeGreys:()=>Zu,schemeOrRd:()=>cp,schemeOranges:()=>wd,schemePRGn:()=>_h,schemePaired:()=>ip,schemePastel1:()=>D3,schemePastel2:()=>e6,schemePiYG:()=>Cs,schemePuBu:()=>L3,schemePuBuGn:()=>Ky,schemePuOr:()=>yd,schemePuRd:()=>Ms,schemePurples:()=>bd,schemeRdBu:()=>Wy,schemeRdGy:()=>qy,schemeRdPu:()=>zr,schemeRdYlBu:()=>Vy,schemeRdYlGn:()=>ta,schemeReds:()=>lp,schemeSet1:()=>n6,schemeSet2:()=>r6,schemeSet3:()=>i6,schemeSpectral:()=>md,schemeTableau10:()=>a6,schemeYlGn:()=>F3,schemeYlGnBu:()=>Qy,schemeYlOrBr:()=>up,schemeYlOrRd:()=>_d,select:()=>yr,selectAll:()=>_6,selection:()=>Ka,selector:()=>Ir,selectorAll:()=>tr,set:()=>Sc,shuffle:()=>he,stack:()=>Nd,stackOffsetDiverging:()=>Ls,stackOffsetExpand:()=>tu,stackOffsetNone:()=>Nh,stackOffsetSilhouette:()=>u4,stackOffsetWiggle:()=>l4,stackOrderAppearance:()=>km,stackOrderAscending:()=>Mp,stackOrderDescending:()=>fc,stackOrderInsideOut:()=>Od,stackOrderNone:()=>Ke,stackOrderReverse:()=>el,stratify:()=>v1,style:()=>ai,sum:()=>Yt,svg:()=>M0,symbol:()=>Jc,symbolCircle:()=>pm,symbolCross:()=>K3,symbolDiamond:()=>Bi,symbolSquare:()=>Sd,symbolStar:()=>ym,symbolTriangle:()=>mm,symbolWye:()=>J3,symbols:()=>t4,text:()=>Ll,thresholdFreedmanDiaconis:()=>pe,thresholdScott:()=>de,thresholdSturges:()=>Ht,tickFormat:()=>Xo,tickIncrement:()=>pt,tickStep:()=>wt,ticks:()=>St,timeDay:()=>ci,timeDays:()=>uh,timeFormat:()=>ld,timeFormatDefaultLocale:()=>Jo,timeFormatLocale:()=>u3,timeFriday:()=>sh,timeFridays:()=>ch,timeHour:()=>n3,timeHours:()=>Ko,timeInterval:()=>Hi,timeMillisecond:()=>hh,timeMilliseconds:()=>i3,timeMinute:()=>cd,timeMinutes:()=>j1,timeMonday:()=>oh,timeMondays:()=>F1,timeMonth:()=>fy,timeMonths:()=>ic,timeParse:()=>l3,timeSaturday:()=>oc,timeSaturdays:()=>e3,timeSecond:()=>lh,timeSeconds:()=>r3,timeSunday:()=>Pu,timeSundays:()=>gy,timeThursday:()=>ac,timeThursdays:()=>P1,timeTuesday:()=>I1,timeTuesdays:()=>yy,timeWednesday:()=>t3,timeWednesdays:()=>Rx,timeWeek:()=>Pu,timeWeeks:()=>gy,timeYear:()=>Ru,timeYears:()=>Bx,timeout:()=>We,timer:()=>fe,timerFlush:()=>we,touch:()=>xa,touches:()=>b6,transition:()=>i0,transpose:()=>Kt,tree:()=>eh,treemap:()=>w1,treemapBinary:()=>td,treemapDice:()=>Kf,treemapResquarify:()=>G2,treemapSlice:()=>zc,treemapSliceDice:()=>Rb,treemapSquarify:()=>Uc,tsv:()=>u_,tsvFormat:()=>qv,tsvFormatBody:()=>X5,tsvFormatRow:()=>Q5,tsvFormatRows:()=>K5,tsvFormatValue:()=>J5,tsvParse:()=>Wv,tsvParseRows:()=>Z5,utcDay:()=>Oi,utcDays:()=>vr,utcFormat:()=>$1,utcFriday:()=>vy,utcFridays:()=>H1,utcHour:()=>M3,utcHours:()=>Xx,utcMillisecond:()=>hh,utcMilliseconds:()=>i3,utcMinute:()=>qu,utcMinutes:()=>zy,utcMonday:()=>$c,utcMondays:()=>Ix,utcMonth:()=>Py,utcMonths:()=>Yy,utcParse:()=>hd,utcSaturday:()=>ju,utcSaturdays:()=>Fx,utcSecond:()=>lh,utcSeconds:()=>r3,utcSunday:()=>ud,utcSundays:()=>o3,utcThursday:()=>Wc,utcThursdays:()=>zu,utcTuesday:()=>my,utcTuesdays:()=>s3,utcWednesday:()=>a3,utcWednesdays:()=>c3,utcWeek:()=>ud,utcWeeks:()=>o3,utcYear:()=>vi,utcYears:()=>by,values:()=>Ng,variance:()=>q,version:()=>h,voronoi:()=>Am,window:()=>Bn,xml:()=>bw,zip:()=>ee,zoom:()=>Rp,zoomIdentity:()=>Yd,zoomTransform:()=>eu});var h="5.16.0";function c(n,a){return n<a?-1:n>a?1:n>=a?0:NaN}function y(n){var a;return n.length===1&&(a=n,n=function(l,f){return c(a(l),f)}),{left:function(l,f,m,_){for(m==null&&(m=0),_==null&&(_=l.length);m<_;){var E=m+_>>>1;n(l[E],f)<0?m=E+1:_=E}return m},right:function(l,f,m,_){for(m==null&&(m=0),_==null&&(_=l.length);m<_;){var E=m+_>>>1;n(l[E],f)>0?_=E:m=E+1}return m}}}var p=y(c),b=p.right,T=p.left;const k=b;function D(n,a){a==null&&(a=O);for(var l=0,f=n.length-1,m=n[0],_=new Array(f<0?0:f);l<f;)_[l]=a(m,m=n[++l]);return _}function O(n,a){return[n,a]}function I(n,a,l){var f,m,_,E,x=n.length,M=a.length,N=new Array(x*M);for(l==null&&(l=O),f=_=0;f<x;++f)for(E=n[f],m=0;m<M;++m,++_)N[_]=l(E,a[m]);return N}function z(n,a){return a<n?-1:a>n?1:a>=n?0:NaN}function H(n){return n===null?NaN:+n}function q(n,a){var l,f,m=n.length,_=0,E=-1,x=0,M=0;if(a==null)for(;++E<m;)isNaN(l=H(n[E]))||(M+=(f=l-x)*(l-(x+=f/++_)));else for(;++E<m;)isNaN(l=H(a(n[E],E,n)))||(M+=(f=l-x)*(l-(x+=f/++_)));if(_>1)return M/(_-1)}function V(n,a){var l=q(n,a);return l&&Math.sqrt(l)}function X(n,a){var l,f,m,_=n.length,E=-1;if(a==null){for(;++E<_;)if((l=n[E])!=null&&l>=l)for(f=m=l;++E<_;)(l=n[E])!=null&&(f>l&&(f=l),m<l&&(m=l))}else for(;++E<_;)if((l=a(n[E],E,n))!=null&&l>=l)for(f=m=l;++E<_;)(l=a(n[E],E,n))!=null&&(f>l&&(f=l),m<l&&(m=l));return[f,m]}var it=Array.prototype,tt=it.slice,rt=it.map;function ut(n){return function(){return n}}function Ct(n){return n}function et(n,a,l){n=+n,a=+a,l=(m=arguments.length)<2?(a=n,n=0,1):m<3?1:+l;for(var f=-1,m=0|Math.max(0,Math.ceil((a-n)/l)),_=new Array(m);++f<m;)_[f]=n+f*l;return _}var K=Math.sqrt(50),ht=Math.sqrt(10),xt=Math.sqrt(2);function St(n,a,l){var f,m,_,E,x=-1;if(l=+l,(n=+n)==(a=+a)&&l>0)return[n];if((f=a<n)&&(m=n,n=a,a=m),(E=pt(n,a,l))===0||!isFinite(E))return[];if(E>0)for(n=Math.ceil(n/E),a=Math.floor(a/E),_=new Array(m=Math.ceil(a-n+1));++x<m;)_[x]=(n+x)*E;else for(n=Math.floor(n*E),a=Math.ceil(a*E),_=new Array(m=Math.ceil(n-a+1));++x<m;)_[x]=(n-x)/E;return f&&_.reverse(),_}function pt(n,a,l){var f=(a-n)/Math.max(0,l),m=Math.floor(Math.log(f)/Math.LN10),_=f/Math.pow(10,m);return m>=0?(_>=K?10:_>=ht?5:_>=xt?2:1)*Math.pow(10,m):-Math.pow(10,-m)/(_>=K?10:_>=ht?5:_>=xt?2:1)}function wt(n,a,l){var f=Math.abs(a-n)/Math.max(0,l),m=Math.pow(10,Math.floor(Math.log(f)/Math.LN10)),_=f/m;return _>=K?m*=10:_>=ht?m*=5:_>=xt&&(m*=2),a<n?-m:m}function Ht(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function Pt(){var n=Ct,a=X,l=Ht;function f(m){var _,E,x=m.length,M=new Array(x);for(_=0;_<x;++_)M[_]=n(m[_],_,m);var N=a(M),R=N[0],Y=N[1],L=l(M,R,Y);Array.isArray(L)||(L=wt(R,Y,L),L=et(Math.ceil(R/L)*L,Y,L));for(var $=L.length;L[0]<=R;)L.shift(),--$;for(;L[$-1]>Y;)L.pop(),--$;var W,J=new Array($+1);for(_=0;_<=$;++_)(W=J[_]=[]).x0=_>0?L[_-1]:R,W.x1=_<$?L[_]:Y;for(_=0;_<x;++_)R<=(E=M[_])&&E<=Y&&J[k(L,E,0,$)].push(m[_]);return J}return f.value=function(m){return arguments.length?(n=typeof m=="function"?m:ut(m),f):n},f.domain=function(m){return arguments.length?(a=typeof m=="function"?m:ut([m[0],m[1]]),f):a},f.thresholds=function(m){return arguments.length?(l=typeof m=="function"?m:Array.isArray(m)?ut(tt.call(m)):ut(m),f):l},f}function ge(n,a,l){if(l==null&&(l=H),f=n.length){if((a=+a)<=0||f<2)return+l(n[0],0,n);if(a>=1)return+l(n[f-1],f-1,n);var f,m=(f-1)*a,_=Math.floor(m),E=+l(n[_],_,n);return E+(+l(n[_+1],_+1,n)-E)*(m-_)}}function pe(n,a,l){return n=rt.call(n,H).sort(c),Math.ceil((l-a)/(2*(ge(n,.75)-ge(n,.25))*Math.pow(n.length,-1/3)))}function de(n,a,l){return Math.ceil((l-a)/(3.5*V(n)*Math.pow(n.length,-1/3)))}function Rt(n,a){var l,f,m=n.length,_=-1;if(a==null){for(;++_<m;)if((l=n[_])!=null&&l>=l)for(f=l;++_<m;)(l=n[_])!=null&&l>f&&(f=l)}else for(;++_<m;)if((l=a(n[_],_,n))!=null&&l>=l)for(f=l;++_<m;)(l=a(n[_],_,n))!=null&&l>f&&(f=l);return f}function Gt(n,a){var l,f=n.length,m=f,_=-1,E=0;if(a==null)for(;++_<f;)isNaN(l=H(n[_]))?--m:E+=l;else for(;++_<f;)isNaN(l=H(a(n[_],_,n)))?--m:E+=l;if(m)return E/m}function oe(n,a){var l,f=n.length,m=-1,_=[];if(a==null)for(;++m<f;)isNaN(l=H(n[m]))||_.push(l);else for(;++m<f;)isNaN(l=H(a(n[m],m,n)))||_.push(l);return ge(_.sort(c),.5)}function le(n){for(var a,l,f,m=n.length,_=-1,E=0;++_<m;)E+=n[_].length;for(l=new Array(E);--m>=0;)for(a=(f=n[m]).length;--a>=0;)l[--E]=f[a];return l}function ye(n,a){var l,f,m=n.length,_=-1;if(a==null){for(;++_<m;)if((l=n[_])!=null&&l>=l)for(f=l;++_<m;)(l=n[_])!=null&&f>l&&(f=l)}else for(;++_<m;)if((l=a(n[_],_,n))!=null&&l>=l)for(f=l;++_<m;)(l=a(n[_],_,n))!=null&&f>l&&(f=l);return f}function It(n,a){for(var l=a.length,f=new Array(l);l--;)f[l]=n[a[l]];return f}function $e(n,a){if(l=n.length){var l,f,m=0,_=0,E=n[_];for(a==null&&(a=c);++m<l;)(a(f=n[m],E)<0||a(E,E)!==0)&&(E=f,_=m);return a(E,E)===0?_:void 0}}function he(n,a,l){for(var f,m,_=(l==null?n.length:l)-(a=a==null?0:+a);_;)m=Math.random()*_--|0,f=n[_+a],n[_+a]=n[m+a],n[m+a]=f;return n}function Yt(n,a){var l,f=n.length,m=-1,_=0;if(a==null)for(;++m<f;)(l=+n[m])&&(_+=l);else for(;++m<f;)(l=+a(n[m],m,n))&&(_+=l);return _}function Kt(n){if(!(m=n.length))return[];for(var a=-1,l=ye(n,ct),f=new Array(l);++a<l;)for(var m,_=-1,E=f[a]=new Array(m);++_<m;)E[_]=n[_][a];return f}function ct(n){return n.length}function ee(){return Kt(arguments)}var Nt=Array.prototype.slice;function Vt(n){return n}var Ut=1e-6;function Ot(n){return"translate("+(n+.5)+",0)"}function ae(n){return"translate(0,"+(n+.5)+")"}function Qe(n){return function(a){return+n(a)}}function _e(n){var a=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(a=Math.round(a)),function(l){return+n(l)+a}}function Ce(){return!this.__axis}function un(n,a){var l=[],f=null,m=null,_=6,E=6,x=3,M=n===1||n===4?-1:1,N=n===4||n===2?"x":"y",R=n===1||n===3?Ot:ae;function Y(L){var $=f==null?a.ticks?a.ticks.apply(a,l):a.domain():f,W=m==null?a.tickFormat?a.tickFormat.apply(a,l):Vt:m,J=Math.max(_,0)+x,Q=a.range(),Z=+Q[0]+.5,at=+Q[Q.length-1]+.5,nt=(a.bandwidth?_e:Qe)(a.copy()),dt=L.selection?L.selection():L,Mt=dt.selectAll(".domain").data([null]),Wt=dt.selectAll(".tick").data($,a).order(),Qt=Wt.exit(),be=Wt.enter().append("g").attr("class","tick"),zt=Wt.select("line"),ce=Wt.select("text");Mt=Mt.merge(Mt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Wt=Wt.merge(be),zt=zt.merge(be.append("line").attr("stroke","currentColor").attr(N+"2",M*_)),ce=ce.merge(be.append("text").attr("fill","currentColor").attr(N,M*J).attr("dy",n===1?"0em":n===3?"0.71em":"0.32em")),L!==dt&&(Mt=Mt.transition(L),Wt=Wt.transition(L),zt=zt.transition(L),ce=ce.transition(L),Qt=Qt.transition(L).attr("opacity",Ut).attr("transform",function(ft){return isFinite(ft=nt(ft))?R(ft):this.getAttribute("transform")}),be.attr("opacity",Ut).attr("transform",function(ft){var Et=this.parentNode.__axis;return R(Et&&isFinite(Et=Et(ft))?Et:nt(ft))})),Qt.remove(),Mt.attr("d",n===4||n==2?E?"M"+M*E+","+Z+"H0.5V"+at+"H"+M*E:"M0.5,"+Z+"V"+at:E?"M"+Z+","+M*E+"V0.5H"+at+"V"+M*E:"M"+Z+",0.5H"+at),Wt.attr("opacity",1).attr("transform",function(ft){return R(nt(ft))}),zt.attr(N+"2",M*_),ce.attr(N,M*J).text(W),dt.filter(Ce).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===2?"start":n===4?"end":"middle"),dt.each(function(){this.__axis=nt})}return Y.scale=function(L){return arguments.length?(a=L,Y):a},Y.ticks=function(){return l=Nt.call(arguments),Y},Y.tickArguments=function(L){return arguments.length?(l=L==null?[]:Nt.call(L),Y):l.slice()},Y.tickValues=function(L){return arguments.length?(f=L==null?null:Nt.call(L),Y):f&&f.slice()},Y.tickFormat=function(L){return arguments.length?(m=L,Y):m},Y.tickSize=function(L){return arguments.length?(_=E=+L,Y):_},Y.tickSizeInner=function(L){return arguments.length?(_=+L,Y):_},Y.tickSizeOuter=function(L){return arguments.length?(E=+L,Y):E},Y.tickPadding=function(L){return arguments.length?(x=+L,Y):x},Y}function Ve(n){return un(1,n)}function Le(n){return un(2,n)}function ke(n){return un(3,n)}function Je(n){return un(4,n)}var Ye={value:function(){}};function Ge(){for(var n,a=0,l=arguments.length,f={};a<l;++a){if(!(n=arguments[a]+"")||n in f||/[\s.]/.test(n))throw new Error("illegal type: "+n);f[n]=[]}return new Ze(f)}function Ze(n){this._=n}function Ne(n,a){return n.trim().split(/^|\s+/).map(function(l){var f="",m=l.indexOf(".");if(m>=0&&(f=l.slice(m+1),l=l.slice(0,m)),l&&!a.hasOwnProperty(l))throw new Error("unknown type: "+l);return{type:l,name:f}})}function Un(n,a){for(var l,f=0,m=n.length;f<m;++f)if((l=n[f]).name===a)return l.value}function Te(n,a,l){for(var f=0,m=n.length;f<m;++f)if(n[f].name===a){n[f]=Ye,n=n.slice(0,f).concat(n.slice(f+1));break}return l!=null&&n.push({name:a,value:l}),n}Ze.prototype=Ge.prototype={constructor:Ze,on:function(n,a){var l,f=this._,m=Ne(n+"",f),_=-1,E=m.length;if(!(arguments.length<2)){if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++_<E;)if(l=(n=m[_]).type)f[l]=Te(f[l],n.name,a);else if(a==null)for(l in f)f[l]=Te(f[l],n.name,null);return this}for(;++_<E;)if((l=(n=m[_]).type)&&(l=Un(f[l],n.name)))return l},copy:function(){var n={},a=this._;for(var l in a)n[l]=a[l].slice();return new Ze(n)},call:function(n,a){if((l=arguments.length-2)>0)for(var l,f,m=new Array(l),_=0;_<l;++_)m[_]=arguments[_+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(_=0,l=(f=this._[n]).length;_<l;++_)f[_].value.apply(a,m)},apply:function(n,a,l){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var f=this._[n],m=0,_=f.length;m<_;++m)f[m].value.apply(a,l)}};const tn=Ge;function vn(){}function Ir(n){return n==null?vn:function(){return this.querySelector(n)}}function _n(){return[]}function tr(n){return n==null?_n:function(){return this.querySelectorAll(n)}}function cn(n){return function(){return this.matches(n)}}function gn(n){return new Array(n.length)}function Xe(n,a){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=a}function Cn(n,a,l,f,m,_){for(var E,x=0,M=a.length,N=_.length;x<N;++x)(E=a[x])?(E.__data__=_[x],f[x]=E):l[x]=new Xe(n,_[x]);for(;x<M;++x)(E=a[x])&&(m[x]=E)}function Tn(n,a,l,f,m,_,E){var x,M,N,R={},Y=a.length,L=_.length,$=new Array(Y);for(x=0;x<Y;++x)(M=a[x])&&($[x]=N="$"+E.call(M,M.__data__,x,a),N in R?m[x]=M:R[N]=M);for(x=0;x<L;++x)(M=R[N="$"+E.call(n,_[x],x,_)])?(f[x]=M,M.__data__=_[x],R[N]=null):l[x]=new Xe(n,_[x]);for(x=0;x<Y;++x)(M=a[x])&&R[$[x]]===M&&(m[x]=M)}function Hn(n,a){return n<a?-1:n>a?1:n>=a?0:NaN}Xe.prototype={constructor:Xe,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,a){return this._parent.insertBefore(n,a)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var $n="http://www.w3.org/1999/xhtml";const Nr={svg:"http://www.w3.org/2000/svg",xhtml:$n,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function En(n){var a=n+="",l=a.indexOf(":");return l>=0&&(a=n.slice(0,l))!=="xmlns"&&(n=n.slice(l+1)),Nr.hasOwnProperty(a)?{space:Nr[a],local:n}:n}function qn(n){return function(){this.removeAttribute(n)}}function Yn(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Gn(n,a){return function(){this.setAttribute(n,a)}}function Zn(n,a){return function(){this.setAttributeNS(n.space,n.local,a)}}function er(n,a){return function(){var l=a.apply(this,arguments);l==null?this.removeAttribute(n):this.setAttribute(n,l)}}function On(n,a){return function(){var l=a.apply(this,arguments);l==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,l)}}function Bn(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function ln(n){return function(){this.style.removeProperty(n)}}function jn(n,a,l){return function(){this.style.setProperty(n,a,l)}}function yn(n,a,l){return function(){var f=a.apply(this,arguments);f==null?this.style.removeProperty(n):this.style.setProperty(n,f,l)}}function ai(n,a){return n.style.getPropertyValue(a)||Bn(n).getComputedStyle(n,null).getPropertyValue(a)}function gr(n){return function(){delete this[n]}}function ea(n,a){return function(){this[n]=a}}function Rn(n,a){return function(){var l=a.apply(this,arguments);l==null?delete this[n]:this[n]=l}}function No(n){return n.trim().split(/^|\s+/)}function va(n){return n.classList||new oi(n)}function oi(n){this._node=n,this._names=No(n.getAttribute("class")||"")}function Fr(n,a){for(var l=va(n),f=-1,m=a.length;++f<m;)l.add(a[f])}function Ur(n,a){for(var l=va(n),f=-1,m=a.length;++f<m;)l.remove(a[f])}function Zr(n){return function(){Fr(this,n)}}function Jr(n){return function(){Ur(this,n)}}function Or(n,a){return function(){(a.apply(this,arguments)?Fr:Ur)(this,n)}}function ti(){this.textContent=""}function Pr(n){return function(){this.textContent=n}}function Fi(n){return function(){var a=n.apply(this,arguments);this.textContent=a==null?"":a}}function fi(){this.innerHTML=""}function nr(n){return function(){this.innerHTML=n}}function qr(n){return function(){var a=n.apply(this,arguments);this.innerHTML=a==null?"":a}}function _a(){this.nextSibling&&this.parentNode.appendChild(this)}function ei(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ba(n){return function(){var a=this.ownerDocument,l=this.namespaceURI;return l===$n&&a.documentElement.namespaceURI===$n?a.createElement(n):a.createElementNS(l,n)}}function mo(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function di(n){var a=En(n);return(a.local?mo:ba)(a)}function en(){return null}function Xn(){var n=this.parentNode;n&&n.removeChild(this)}function An(){var n=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(n,this.nextSibling):n}function Be(){var n=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(n,this.nextSibling):n}oi.prototype={add:function(n){this._names.indexOf(n)<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var a=this._names.indexOf(n);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var Kn={},mt=null;function Xr(n,a,l){return n=Xt(n,a,l),function(f){var m=f.relatedTarget;m&&(m===this||8&m.compareDocumentPosition(this))||n.call(this,f)}}function Xt(n,a,l){return function(f){var m=mt;mt=f;try{n.call(this,this.__data__,a,l)}finally{mt=m}}}function Pi(n){return n.trim().split(/^|\s+/).map(function(a){var l="",f=a.indexOf(".");return f>=0&&(l=a.slice(f+1),a=a.slice(0,f)),{type:a,name:l}})}function da(n){return function(){var a=this.__on;if(a){for(var l,f=0,m=-1,_=a.length;f<_;++f)l=a[f],n.type&&l.type!==n.type||l.name!==n.name?a[++m]=l:this.removeEventListener(l.type,l.listener,l.capture);++m?a.length=m:delete this.__on}}}function Xa(n,a,l){var f=Kn.hasOwnProperty(n.type)?Xr:Xt;return function(m,_,E){var x,M=this.__on,N=f(a,_,E);if(M){for(var R=0,Y=M.length;R<Y;++R)if((x=M[R]).type===n.type&&x.name===n.name)return this.removeEventListener(x.type,x.listener,x.capture),this.addEventListener(x.type,x.listener=N,x.capture=l),void(x.value=a)}this.addEventListener(n.type,N,l),x={type:n.type,name:n.name,value:a,listener:N,capture:l},M?M.push(x):this.__on=[x]}}function vo(n,a,l,f){var m=mt;n.sourceEvent=mt,mt=n;try{return a.apply(l,f)}finally{mt=m}}function Oo(n,a,l){var f=Bn(n),m=f.CustomEvent;typeof m=="function"?m=new m(a,l):(m=f.document.createEvent("Event"),l?(m.initEvent(a,l.bubbles,l.cancelable),m.detail=l.detail):m.initEvent(a,!1,!1)),n.dispatchEvent(m)}function Lo(n,a){return function(){return Oo(this,n,a)}}function Vr(n,a){return function(){return Oo(this,n,a.apply(this,arguments))}}typeof document!="undefined"&&("onmouseenter"in document.documentElement||(Kn={mouseenter:"mouseover",mouseleave:"mouseout"}));var na=[null];function Dn(n,a){this._groups=n,this._parents=a}function Fa(){return new Dn([[document.documentElement]],na)}Dn.prototype=Fa.prototype={constructor:Dn,select:function(n){typeof n!="function"&&(n=Ir(n));for(var a=this._groups,l=a.length,f=new Array(l),m=0;m<l;++m)for(var _,E,x=a[m],M=x.length,N=f[m]=new Array(M),R=0;R<M;++R)(_=x[R])&&(E=n.call(_,_.__data__,R,x))&&("__data__"in _&&(E.__data__=_.__data__),N[R]=E);return new Dn(f,this._parents)},selectAll:function(n){typeof n!="function"&&(n=tr(n));for(var a=this._groups,l=a.length,f=[],m=[],_=0;_<l;++_)for(var E,x=a[_],M=x.length,N=0;N<M;++N)(E=x[N])&&(f.push(n.call(E,E.__data__,N,x)),m.push(E));return new Dn(f,m)},filter:function(n){typeof n!="function"&&(n=cn(n));for(var a=this._groups,l=a.length,f=new Array(l),m=0;m<l;++m)for(var _,E=a[m],x=E.length,M=f[m]=[],N=0;N<x;++N)(_=E[N])&&n.call(_,_.__data__,N,E)&&M.push(_);return new Dn(f,this._parents)},data:function(n,a){if(!n)return W=new Array(this.size()),R=-1,this.each(function(Wt){W[++R]=Wt}),W;var l,f=a?Tn:Cn,m=this._parents,_=this._groups;typeof n!="function"&&(l=n,n=function(){return l});for(var E=_.length,x=new Array(E),M=new Array(E),N=new Array(E),R=0;R<E;++R){var Y=m[R],L=_[R],$=L.length,W=n.call(Y,Y&&Y.__data__,R,m),J=W.length,Q=M[R]=new Array(J),Z=x[R]=new Array(J);f(Y,L,Q,Z,N[R]=new Array($),W,a);for(var at,nt,dt=0,Mt=0;dt<J;++dt)if(at=Q[dt]){for(dt>=Mt&&(Mt=dt+1);!(nt=Z[Mt])&&++Mt<J;);at._next=nt||null}}return(x=new Dn(x,m))._enter=M,x._exit=N,x},enter:function(){return new Dn(this._enter||this._groups.map(gn),this._parents)},exit:function(){return new Dn(this._exit||this._groups.map(gn),this._parents)},join:function(n,a,l){var f=this.enter(),m=this,_=this.exit();return f=typeof n=="function"?n(f):f.append(n+""),a!=null&&(m=a(m)),l==null?_.remove():l(_),f&&m?f.merge(m).order():m},merge:function(n){for(var a=this._groups,l=n._groups,f=a.length,m=l.length,_=Math.min(f,m),E=new Array(f),x=0;x<_;++x)for(var M,N=a[x],R=l[x],Y=N.length,L=E[x]=new Array(Y),$=0;$<Y;++$)(M=N[$]||R[$])&&(L[$]=M);for(;x<f;++x)E[x]=a[x];return new Dn(E,this._parents)},order:function(){for(var n=this._groups,a=-1,l=n.length;++a<l;)for(var f,m=n[a],_=m.length-1,E=m[_];--_>=0;)(f=m[_])&&(E&&4^f.compareDocumentPosition(E)&&E.parentNode.insertBefore(f,E),E=f);return this},sort:function(n){function a(Y,L){return Y&&L?n(Y.__data__,L.__data__):!Y-!L}n||(n=Hn);for(var l=this._groups,f=l.length,m=new Array(f),_=0;_<f;++_){for(var E,x=l[_],M=x.length,N=m[_]=new Array(M),R=0;R<M;++R)(E=x[R])&&(N[R]=E);N.sort(a)}return new Dn(m,this._parents).order()},call:function(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function(){var n=new Array(this.size()),a=-1;return this.each(function(){n[++a]=this}),n},node:function(){for(var n=this._groups,a=0,l=n.length;a<l;++a)for(var f=n[a],m=0,_=f.length;m<_;++m){var E=f[m];if(E)return E}return null},size:function(){var n=0;return this.each(function(){++n}),n},empty:function(){return!this.node()},each:function(n){for(var a=this._groups,l=0,f=a.length;l<f;++l)for(var m,_=a[l],E=0,x=_.length;E<x;++E)(m=_[E])&&n.call(m,m.__data__,E,_);return this},attr:function(n,a){var l=En(n);if(arguments.length<2){var f=this.node();return l.local?f.getAttributeNS(l.space,l.local):f.getAttribute(l)}return this.each((a==null?l.local?Yn:qn:typeof a=="function"?l.local?On:er:l.local?Zn:Gn)(l,a))},style:function(n,a,l){return arguments.length>1?this.each((a==null?ln:typeof a=="function"?yn:jn)(n,a,l==null?"":l)):ai(this.node(),n)},property:function(n,a){return arguments.length>1?this.each((a==null?gr:typeof a=="function"?Rn:ea)(n,a)):this.node()[n]},classed:function(n,a){var l=No(n+"");if(arguments.length<2){for(var f=va(this.node()),m=-1,_=l.length;++m<_;)if(!f.contains(l[m]))return!1;return!0}return this.each((typeof a=="function"?Or:a?Zr:Jr)(l,a))},text:function(n){return arguments.length?this.each(n==null?ti:(typeof n=="function"?Fi:Pr)(n)):this.node().textContent},html:function(n){return arguments.length?this.each(n==null?fi:(typeof n=="function"?qr:nr)(n)):this.node().innerHTML},raise:function(){return this.each(_a)},lower:function(){return this.each(ei)},append:function(n){var a=typeof n=="function"?n:di(n);return this.select(function(){return this.appendChild(a.apply(this,arguments))})},insert:function(n,a){var l=typeof n=="function"?n:di(n),f=a==null?en:typeof a=="function"?a:Ir(a);return this.select(function(){return this.insertBefore(l.apply(this,arguments),f.apply(this,arguments)||null)})},remove:function(){return this.each(Xn)},clone:function(n){return this.select(n?Be:An)},datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function(n,a,l){var f,m,_=Pi(n+""),E=_.length;if(!(arguments.length<2)){for(x=a?Xa:da,l==null&&(l=!1),f=0;f<E;++f)this.each(x(_[f],a,l));return this}var x=this.node().__on;if(x){for(var M,N=0,R=x.length;N<R;++N)for(f=0,M=x[N];f<E;++f)if((m=_[f]).type===M.type&&m.name===M.name)return M.value}},dispatch:function(n,a){return this.each((typeof a=="function"?Vr:Lo)(n,a))}};const Ka=Fa;function yr(n){return typeof n=="string"?new Dn([[document.querySelector(n)]],[document.documentElement]):new Dn([[n]],na)}function Cr(){mt.stopImmediatePropagation()}function xi(){mt.preventDefault(),mt.stopImmediatePropagation()}function ni(n){var a=n.document.documentElement,l=yr(n).on("dragstart.drag",xi,!0);"onselectstart"in a?l.on("selectstart.drag",xi,!0):(a.__noselect=a.style.MozUserSelect,a.style.MozUserSelect="none")}function Hr(n,a){var l=n.document.documentElement,f=yr(n).on("dragstart.drag",null);a&&(f.on("click.drag",xi,!0),setTimeout(function(){f.on("click.drag",null)},0)),"onselectstart"in l?f.on("selectstart.drag",null):(l.style.MozUserSelect=l.__noselect,delete l.__noselect)}function $r(n,a,l){n.prototype=a.prototype=l,l.constructor=n}function pi(n,a){var l=Object.create(n.prototype);for(var f in a)l[f]=a[f];return l}function Kr(){}var ra=.7,Vi=1/ra,Yi="\\s*([+-]?\\d+)\\s*",_o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ft="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",je=/^#([0-9a-f]{3,8})$/,Fe=new RegExp("^rgb\\("+[Yi,Yi,Yi]+"\\)$"),mr=new RegExp("^rgb\\("+[Ft,Ft,Ft]+"\\)$"),br=new RegExp("^rgba\\("+[Yi,Yi,Yi,_o]+"\\)$"),ki=new RegExp("^rgba\\("+[Ft,Ft,Ft,_o]+"\\)$"),ri=new RegExp("^hsl\\("+[_o,Ft,Ft]+"\\)$"),wc=new RegExp("^hsla\\("+[_o,Ft,Ft,_o]+"\\)$"),Ti={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ni(){return this.rgb().formatHex()}function xc(){return this.rgb().formatRgb()}function Qa(n){var a,l;return n=(n+"").trim().toLowerCase(),(a=je.exec(n))?(l=a[1].length,a=parseInt(a[1],16),l===6?du(a):l===3?new ii(a>>8&15|a>>4&240,a>>4&15|240&a,(15&a)<<4|15&a,1):l===8?bo(a>>24&255,a>>16&255,a>>8&255,(255&a)/255):l===4?bo(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|240&a,((15&a)<<4|15&a)/255):null):(a=Fe.exec(n))?new ii(a[1],a[2],a[3],1):(a=mr.exec(n))?new ii(255*a[1]/100,255*a[2]/100,255*a[3]/100,1):(a=br.exec(n))?bo(a[1],a[2],a[3],a[4]):(a=ki.exec(n))?bo(255*a[1]/100,255*a[2]/100,255*a[3]/100,a[4]):(a=ri.exec(n))?Ja(a[1],a[2]/100,a[3]/100,1):(a=wc.exec(n))?Ja(a[1],a[2]/100,a[3]/100,a[4]):Ti.hasOwnProperty(n)?du(Ti[n]):n==="transparent"?new ii(NaN,NaN,NaN,0):null}function du(n){return new ii(n>>16&255,n>>8&255,255&n,1)}function bo(n,a,l,f){return f<=0&&(n=a=l=NaN),new ii(n,a,l,f)}function pu(n){return n instanceof Kr||(n=Qa(n)),n?new ii((n=n.rgb()).r,n.g,n.b,n.opacity):new ii}function Gi(n,a,l,f){return arguments.length===1?pu(n):new ii(n,a,l,f==null?1:f)}function ii(n,a,l,f){this.r=+n,this.g=+a,this.b=+l,this.opacity=+f}function yl(){return"#"+vl(this.r)+vl(this.g)+vl(this.b)}function ml(){var n=this.opacity;return((n=isNaN(n)?1:Math.max(0,Math.min(1,n)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(n===1?")":", "+n+")")}function vl(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function Ja(n,a,l,f){return f<=0?n=a=l=NaN:l<=0||l>=1?n=a=NaN:a<=0&&(n=NaN),new to(n,a,l,f)}function _l(n){if(n instanceof to)return new to(n.h,n.s,n.l,n.opacity);if(n instanceof Kr||(n=Qa(n)),!n)return new to;if(n instanceof to)return n;var a=(n=n.rgb()).r/255,l=n.g/255,f=n.b/255,m=Math.min(a,l,f),_=Math.max(a,l,f),E=NaN,x=_-m,M=(_+m)/2;return x?(E=a===_?(l-f)/x+6*(l<f):l===_?(f-a)/x+2:(a-l)/x+4,x/=M<.5?_+m:2-_-m,E*=60):x=M>0&&M<1?0:E,new to(E,x,M,n.opacity)}function bl(n,a,l,f){return arguments.length===1?_l(n):new to(n,a,l,f==null?1:f)}function to(n,a,l,f){this.h=+n,this.s=+a,this.l=+l,this.opacity=+f}function Ie(n,a,l){return 255*(n<60?a+(l-a)*n/60:n<180?l:n<240?a+(l-a)*(240-n)/60:a)}function Zh(n,a,l,f,m){var _=n*n,E=_*n;return((1-3*n+3*_-E)*a+(4-6*_+3*E)*l+(1+3*n+3*_-3*E)*f+E*m)/6}function Lr(n){var a=n.length-1;return function(l){var f=l<=0?l=0:l>=1?(l=1,a-1):Math.floor(l*a),m=n[f],_=n[f+1],E=f>0?n[f-1]:2*m-_,x=f<a-1?n[f+2]:2*_-m;return Zh((l-f/a)*a,E,m,_,x)}}function gu(n){var a=n.length;return function(l){var f=Math.floor(((l%=1)<0?++l:l)*a),m=n[(f+a-1)%a],_=n[f%a],E=n[(f+1)%a],x=n[(f+2)%a];return Zh((l-f/a)*a,m,_,E,x)}}function yu(n){return function(){return n}}function wl(n,a){return function(l){return n+l*a}}function Pa(n,a){var l=a-n;return l?wl(n,l>180||l<-180?l-360*Math.round(l/360):l):yu(isNaN(n)?a:n)}function Ei(n,a){var l=a-n;return l?wl(n,l):yu(isNaN(n)?a:n)}$r(Kr,Qa,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:Ni,formatHex:Ni,formatHsl:function(){return _l(this).formatHsl()},formatRgb:xc,toString:xc}),$r(ii,Gi,pi(Kr,{brighter:function(n){return n=n==null?Vi:Math.pow(Vi,n),new ii(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=n==null?ra:Math.pow(ra,n),new ii(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:yl,formatHex:yl,formatRgb:ml,toString:ml})),$r(to,bl,pi(Kr,{brighter:function(n){return n=n==null?Vi:Math.pow(Vi,n),new to(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?ra:Math.pow(ra,n),new to(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),a=isNaN(n)||isNaN(this.s)?0:this.s,l=this.l,f=l+(l<.5?l:1-l)*a,m=2*l-f;return new ii(Ie(n>=240?n-240:n+120,m,f),Ie(n,m,f),Ie(n<120?n+240:n-120,m,f),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return((n=isNaN(n)?1:Math.max(0,Math.min(1,n)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(n===1?")":", "+n+")")}}));const kc=function n(a){var l=function(m){return(m=+m)==1?Ei:function(_,E){return E-_?function(x,M,N){return x=Math.pow(x,N),M=Math.pow(M,N)-x,N=1/N,function(R){return Math.pow(x+R*M,N)}}(_,E,m):yu(isNaN(_)?E:_)}}(a);function f(m,_){var E=l((m=Gi(m)).r,(_=Gi(_)).r),x=l(m.g,_.g),M=l(m.b,_.b),N=Ei(m.opacity,_.opacity);return function(R){return m.r=E(R),m.g=x(R),m.b=M(R),m.opacity=N(R),m+""}}return f.gamma=n,f}(1);function Xh(n){return function(a){var l,f,m=a.length,_=new Array(m),E=new Array(m),x=new Array(m);for(l=0;l<m;++l)f=Gi(a[l]),_[l]=f.r||0,E[l]=f.g||0,x[l]=f.b||0;return _=n(_),E=n(E),x=n(x),f.opacity=1,function(M){return f.r=_(M),f.g=E(M),f.b=x(M),f+""}}}var xl=Xh(Lr),Bo=Xh(gu);function Kh(n,a){a||(a=[]);var l,f=n?Math.min(a.length,n.length):0,m=a.slice();return function(_){for(l=0;l<f;++l)m[l]=n[l]*(1-_)+a[l]*_;return m}}function Jd(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function Qp(n,a){return(Jd(a)?Kh:t0)(n,a)}function t0(n,a){var l,f=a?a.length:0,m=n?Math.min(f,n.length):0,_=new Array(m),E=new Array(f);for(l=0;l<m;++l)_[l]=mu(n[l],a[l]);for(;l<f;++l)E[l]=a[l];return function(x){for(l=0;l<m;++l)E[l]=_[l](x);return E}}function e0(n,a){var l=new Date;return n=+n,a=+a,function(f){return l.setTime(n*(1-f)+a*f),l}}function wa(n,a){return n=+n,a=+a,function(l){return n*(1-l)+a*l}}function n0(n,a){var l,f={},m={};for(l in n!==null&&typeof n=="object"||(n={}),a!==null&&typeof a=="object"||(a={}),a)l in n?f[l]=mu(n[l],a[l]):m[l]=a[l];return function(_){for(l in f)m[l]=f[l](_);return m}}var Qh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Jh=new RegExp(Qh.source,"g");function Ro(n,a){var l,f,m,_=Qh.lastIndex=Jh.lastIndex=0,E=-1,x=[],M=[];for(n+="",a+="";(l=Qh.exec(n))&&(f=Jh.exec(a));)(m=f.index)>_&&(m=a.slice(_,m),x[E]?x[E]+=m:x[++E]=m),(l=l[0])===(f=f[0])?x[E]?x[E]+=f:x[++E]=f:(x[++E]=null,M.push({i:E,x:wa(l,f)})),_=Jh.lastIndex;return _<a.length&&(m=a.slice(_),x[E]?x[E]+=m:x[++E]=m),x.length<2?M[0]?function(N){return function(R){return N(R)+""}}(M[0].x):function(N){return function(){return N}}(a):(a=M.length,function(N){for(var R,Y=0;Y<a;++Y)x[(R=M[Y]).i]=R.x(N);return x.join("")})}function mu(n,a){var l,f=typeof a;return a==null||f==="boolean"?yu(a):(f==="number"?wa:f==="string"?(l=Qa(a))?(a=l,kc):Ro:a instanceof Qa?kc:a instanceof Date?e0:Jd(a)?Kh:Array.isArray(a)?t0:typeof a.valueOf!="function"&&typeof a.toString!="function"||isNaN(a)?n0:wa)(n,a)}function eo(){for(var n,a=mt;n=a.sourceEvent;)a=n;return a}function vu(n,a){var l=n.ownerSVGElement||n;if(l.createSVGPoint){var f=l.createSVGPoint();return f.x=a.clientX,f.y=a.clientY,[(f=f.matrixTransform(n.getScreenCTM().inverse())).x,f.y]}var m=n.getBoundingClientRect();return[a.clientX-m.left-n.clientLeft,a.clientY-m.top-n.clientTop]}function xa(n,a,l){arguments.length<3&&(l=a,a=eo().changedTouches);for(var f,m=0,_=a?a.length:0;m<_;++m)if((f=a[m]).identifier===l)return vu(n,f);return null}function zs(n){var a=eo();return a.changedTouches&&(a=a.changedTouches[0]),vu(n,a)}var kl,Io,Zi=0,gi=0,no=0,Ya=0,ia=0,Wn=0,A=typeof performance=="object"&&performance.now?performance:Date,F=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function G(){return ia||(F(st),ia=A.now()+Wn)}function st(){ia=0}function qt(){this._call=this._time=this._next=null}function fe(n,a,l){var f=new qt;return f.restart(n,a,l),f}function we(){G(),++Zi;for(var n,a=kl;a;)(n=ia-a._time)>=0&&a._call.call(null,n),a=a._next;--Zi}function Ee(){ia=(Ya=A.now())+Wn,Zi=gi=0;try{we()}finally{Zi=0,function(){for(var n,a,l=kl,f=1/0;l;)l._call?(f>l._time&&(f=l._time),n=l,l=l._next):(a=l._next,l._next=null,l=n?n._next=a:kl=a);Io=n,Pe(f)}(),ia=0}}function Me(){var n=A.now(),a=n-Ya;a>1e3&&(Wn-=a,Ya=n)}function Pe(n){Zi||(gi&&(gi=clearTimeout(gi)),n-ia>24?(n<1/0&&(gi=setTimeout(Ee,n-A.now()-Wn)),no&&(no=clearInterval(no))):(no||(Ya=A.now(),no=setInterval(Me,1e3)),Zi=1,F(Ee)))}function We(n,a,l){var f=new qt;return a=a==null?0:+a,f.restart(function(m){f.stop(),n(m+a)},a,l),f}qt.prototype=fe.prototype={constructor:qt,restart:function(n,a,l){if(typeof n!="function")throw new TypeError("callback is not a function");l=(l==null?G():+l)+(a==null?0:+a),this._next||Io===this||(Io?Io._next=this:kl=this,Io=this),this._call=n,this._time=l,Pe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Pe())}};var kn=tn("start","end","cancel","interrupt"),pn=[];function lr(n,a,l,f,m,_){var E=n.__transition;if(E){if(l in E)return}else n.__transition={};(function(x,M,N){var R,Y=x.__transition;function L(J){var Q,Z,at,nt;if(N.state!==1)return W();for(Q in Y)if((nt=Y[Q]).name===N.name){if(nt.state===3)return We(L);nt.state===4?(nt.state=6,nt.timer.stop(),nt.on.call("interrupt",x,x.__data__,nt.index,nt.group),delete Y[Q]):+Q<M&&(nt.state=6,nt.timer.stop(),nt.on.call("cancel",x,x.__data__,nt.index,nt.group),delete Y[Q])}if(We(function(){N.state===3&&(N.state=4,N.timer.restart($,N.delay,N.time),$(J))}),N.state=2,N.on.call("start",x,x.__data__,N.index,N.group),N.state===2){for(N.state=3,R=new Array(at=N.tween.length),Q=0,Z=-1;Q<at;++Q)(nt=N.tween[Q].value.call(x,x.__data__,N.index,N.group))&&(R[++Z]=nt);R.length=Z+1}}function $(J){for(var Q=J<N.duration?N.ease.call(null,J/N.duration):(N.timer.restart(W),N.state=5,1),Z=-1,at=R.length;++Z<at;)R[Z].call(x,Q);N.state===5&&(N.on.call("end",x,x.__data__,N.index,N.group),W())}function W(){for(var J in N.state=6,N.timer.stop(),delete Y[M],Y)return;delete x.__transition}Y[M]=N,N.timer=fe(function(J){N.state=1,N.timer.restart(L,N.delay,N.time),N.delay<=J&&L(J-N.delay)},0,N.time)})(n,l,{name:a,index:f,group:m,on:kn,tween:pn,time:_.time,delay:_.delay,duration:_.duration,ease:_.ease,timer:null,state:0})}function fr(n,a){var l=cr(n,a);if(l.state>0)throw new Error("too late; already scheduled");return l}function Br(n,a){var l=cr(n,a);if(l.state>3)throw new Error("too late; already running");return l}function cr(n,a){var l=n.__transition;if(!l||!(l=l[a]))throw new Error("transition not found");return l}function ka(n,a){var l,f,m,_=n.__transition,E=!0;if(_){for(m in a=a==null?null:a+"",_)(l=_[m]).name===a?(f=l.state>2&&l.state<5,l.state=6,l.timer.stop(),l.on.call(f?"interrupt":"cancel",n,n.__data__,l.index,l.group),delete _[m]):E=!1;E&&delete n.__transition}}var Us,tf,Jp,ef,Fo=180/Math.PI,nf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function pv(n,a,l,f,m,_){var E,x,M;return(E=Math.sqrt(n*n+a*a))&&(n/=E,a/=E),(M=n*l+a*f)&&(l-=n*M,f-=a*M),(x=Math.sqrt(l*l+f*f))&&(l/=x,f/=x,M/=x),n*f<a*l&&(n=-n,a=-a,M=-M,E=-E),{translateX:m,translateY:_,rotate:Math.atan2(a,n)*Fo,skewX:Math.atan(M)*Fo,scaleX:E,scaleY:x}}function gv(n,a,l,f){function m(_){return _.length?_.pop()+" ":""}return function(_,E){var x=[],M=[];return _=n(_),E=n(E),function(N,R,Y,L,$,W){if(N!==Y||R!==L){var J=$.push("translate(",null,a,null,l);W.push({i:J-4,x:wa(N,Y)},{i:J-2,x:wa(R,L)})}else(Y||L)&&$.push("translate("+Y+a+L+l)}(_.translateX,_.translateY,E.translateX,E.translateY,x,M),function(N,R,Y,L){N!==R?(N-R>180?R+=360:R-N>180&&(N+=360),L.push({i:Y.push(m(Y)+"rotate(",null,f)-2,x:wa(N,R)})):R&&Y.push(m(Y)+"rotate("+R+f)}(_.rotate,E.rotate,x,M),function(N,R,Y,L){N!==R?L.push({i:Y.push(m(Y)+"skewX(",null,f)-2,x:wa(N,R)}):R&&Y.push(m(Y)+"skewX("+R+f)}(_.skewX,E.skewX,x,M),function(N,R,Y,L,$,W){if(N!==Y||R!==L){var J=$.push(m($)+"scale(",null,",",null,")");W.push({i:J-4,x:wa(N,Y)},{i:J-2,x:wa(R,L)})}else Y===1&&L===1||$.push(m($)+"scale("+Y+","+L+")")}(_.scaleX,_.scaleY,E.scaleX,E.scaleY,x,M),_=E=null,function(N){for(var R,Y=-1,L=M.length;++Y<L;)x[(R=M[Y]).i]=R.x(N);return x.join("")}}}var tg=gv(function(n){return n==="none"?nf:(Us||(Us=document.createElement("DIV"),tf=document.documentElement,Jp=document.defaultView),Us.style.transform=n,n=Jp.getComputedStyle(tf.appendChild(Us),null).getPropertyValue("transform"),tf.removeChild(Us),pv(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),eg=gv(function(n){return n==null?nf:(ef||(ef=document.createElementNS("http://www.w3.org/2000/svg","g")),ef.setAttribute("transform",n),(n=ef.transform.baseVal.consolidate())?pv((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):nf)},", ",")",")");function yv(n,a){var l,f;return function(){var m=Br(this,n),_=m.tween;if(_!==l){for(var E=0,x=(f=l=_).length;E<x;++E)if(f[E].name===a){(f=f.slice()).splice(E,1);break}}m.tween=f}}function ng(n,a,l){var f,m;if(typeof l!="function")throw new Error;return function(){var _=Br(this,n),E=_.tween;if(E!==f){m=(f=E).slice();for(var x={name:a,value:l},M=0,N=m.length;M<N;++M)if(m[M].name===a){m[M]=x;break}M===N&&m.push(x)}_.tween=m}}function r0(n,a,l){var f=n._id;return n.each(function(){var m=Br(this,f);(m.value||(m.value={}))[a]=l.apply(this,arguments)}),function(m){return cr(m,f).value[a]}}function rg(n,a){var l;return(typeof a=="number"?wa:a instanceof Qa?kc:(l=Qa(a))?(a=l,kc):Ro)(n,a)}function us(n){return function(){this.removeAttribute(n)}}function ig(n){return function(){this.removeAttributeNS(n.space,n.local)}}function ag(n,a,l){var f,m,_=l+"";return function(){var E=this.getAttribute(n);return E===_?null:E===f?m:m=a(f=E,l)}}function og(n,a,l){var f,m,_=l+"";return function(){var E=this.getAttributeNS(n.space,n.local);return E===_?null:E===f?m:m=a(f=E,l)}}function sg(n,a,l){var f,m,_;return function(){var E,x,M=l(this);if(M!=null)return(E=this.getAttribute(n))===(x=M+"")?null:E===f&&x===m?_:(m=x,_=a(f=E,M));this.removeAttribute(n)}}function E5(n,a,l){var f,m,_;return function(){var E,x,M=l(this);if(M!=null)return(E=this.getAttributeNS(n.space,n.local))===(x=M+"")?null:E===f&&x===m?_:(m=x,_=a(f=E,M));this.removeAttributeNS(n.space,n.local)}}function cg(n,a){return function(l){this.setAttribute(n,a.call(this,l))}}function Hs(n,a){return function(l){this.setAttributeNS(n.space,n.local,a.call(this,l))}}function mv(n,a){var l,f;function m(){var _=a.apply(this,arguments);return _!==f&&(l=(f=_)&&Hs(n,_)),l}return m._value=a,m}function ug(n,a){var l,f;function m(){var _=a.apply(this,arguments);return _!==f&&(l=(f=_)&&cg(n,_)),l}return m._value=a,m}function vv(n,a){return function(){fr(this,n).delay=+a.apply(this,arguments)}}function rf(n,a){return a=+a,function(){fr(this,n).delay=a}}function S5(n,a){return function(){Br(this,n).duration=+a.apply(this,arguments)}}function C5(n,a){return a=+a,function(){Br(this,n).duration=a}}function lg(n,a){if(typeof a!="function")throw new Error;return function(){Br(this,n).ease=a}}function hg(n,a,l){var f,m,_=function(E){return(E+"").trim().split(/^|\s+/).every(function(x){var M=x.indexOf(".");return M>=0&&(x=x.slice(0,M)),!x||x==="start"})}(a)?fr:Br;return function(){var E=_(this,n),x=E.on;x!==f&&(m=(f=x).copy()).on(a,l),E.on=m}}var fg=Ka.prototype.constructor;function dg(n){return function(){this.style.removeProperty(n)}}function pg(n,a,l){return function(f){this.style.setProperty(n,a.call(this,f),l)}}function gg(n,a,l){var f,m;function _(){var E=a.apply(this,arguments);return E!==m&&(f=(m=E)&&pg(n,E,l)),f}return _._value=a,_}function yg(n){return function(a){this.textContent=n.call(this,a)}}function M5(n){var a,l;function f(){var m=n.apply(this,arguments);return m!==l&&(a=(l=m)&&yg(m)),a}return f._value=n,f}var A5=0;function ls(n,a,l,f){this._groups=n,this._parents=a,this._name=l,this._id=f}function i0(n){return Ka().transition(n)}function mg(){return++A5}var hs=Ka.prototype;function a0(n){return n*n*n}function o0(n){return--n*n*n+1}function Tc(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}ls.prototype=i0.prototype={constructor:ls,select:function(n){var a=this._name,l=this._id;typeof n!="function"&&(n=Ir(n));for(var f=this._groups,m=f.length,_=new Array(m),E=0;E<m;++E)for(var x,M,N=f[E],R=N.length,Y=_[E]=new Array(R),L=0;L<R;++L)(x=N[L])&&(M=n.call(x,x.__data__,L,N))&&("__data__"in x&&(M.__data__=x.__data__),Y[L]=M,lr(Y[L],a,l,L,Y,cr(x,l)));return new ls(_,this._parents,a,l)},selectAll:function(n){var a=this._name,l=this._id;typeof n!="function"&&(n=tr(n));for(var f=this._groups,m=f.length,_=[],E=[],x=0;x<m;++x)for(var M,N=f[x],R=N.length,Y=0;Y<R;++Y)if(M=N[Y]){for(var L,$=n.call(M,M.__data__,Y,N),W=cr(M,l),J=0,Q=$.length;J<Q;++J)(L=$[J])&&lr(L,a,l,J,$,W);_.push($),E.push(M)}return new ls(_,E,a,l)},filter:function(n){typeof n!="function"&&(n=cn(n));for(var a=this._groups,l=a.length,f=new Array(l),m=0;m<l;++m)for(var _,E=a[m],x=E.length,M=f[m]=[],N=0;N<x;++N)(_=E[N])&&n.call(_,_.__data__,N,E)&&M.push(_);return new ls(f,this._parents,this._name,this._id)},merge:function(n){if(n._id!==this._id)throw new Error;for(var a=this._groups,l=n._groups,f=a.length,m=l.length,_=Math.min(f,m),E=new Array(f),x=0;x<_;++x)for(var M,N=a[x],R=l[x],Y=N.length,L=E[x]=new Array(Y),$=0;$<Y;++$)(M=N[$]||R[$])&&(L[$]=M);for(;x<f;++x)E[x]=a[x];return new ls(E,this._parents,this._name,this._id)},selection:function(){return new fg(this._groups,this._parents)},transition:function(){for(var n=this._name,a=this._id,l=mg(),f=this._groups,m=f.length,_=0;_<m;++_)for(var E,x=f[_],M=x.length,N=0;N<M;++N)if(E=x[N]){var R=cr(E,a);lr(E,n,l,N,x,{time:R.time+R.delay+R.duration,delay:0,duration:R.duration,ease:R.ease})}return new ls(f,this._parents,n,l)},call:hs.call,nodes:hs.nodes,node:hs.node,size:hs.size,empty:hs.empty,each:hs.each,on:function(n,a){var l=this._id;return arguments.length<2?cr(this.node(),l).on.on(n):this.each(hg(l,n,a))},attr:function(n,a){var l=En(n),f=l==="transform"?eg:rg;return this.attrTween(n,typeof a=="function"?(l.local?E5:sg)(l,f,r0(this,"attr."+n,a)):a==null?(l.local?ig:us)(l):(l.local?og:ag)(l,f,a))},attrTween:function(n,a){var l="attr."+n;if(arguments.length<2)return(l=this.tween(l))&&l._value;if(a==null)return this.tween(l,null);if(typeof a!="function")throw new Error;var f=En(n);return this.tween(l,(f.local?mv:ug)(f,a))},style:function(n,a,l){var f=(n+="")=="transform"?tg:rg;return a==null?this.styleTween(n,function(m,_){var E,x,M;return function(){var N=ai(this,m),R=(this.style.removeProperty(m),ai(this,m));return N===R?null:N===E&&R===x?M:M=_(E=N,x=R)}}(n,f)).on("end.style."+n,dg(n)):typeof a=="function"?this.styleTween(n,function(m,_,E){var x,M,N;return function(){var R=ai(this,m),Y=E(this),L=Y+"";return Y==null&&(this.style.removeProperty(m),L=Y=ai(this,m)),R===L?null:R===x&&L===M?N:(M=L,N=_(x=R,Y))}}(n,f,r0(this,"style."+n,a))).each(function(m,_){var E,x,M,N,R="style."+_,Y="end."+R;return function(){var L=Br(this,m),$=L.on,W=L.value[R]==null?N||(N=dg(_)):void 0;$===E&&M===W||(x=(E=$).copy()).on(Y,M=W),L.on=x}}(this._id,n)):this.styleTween(n,function(m,_,E){var x,M,N=E+"";return function(){var R=ai(this,m);return R===N?null:R===x?M:M=_(x=R,E)}}(n,f,a),l).on("end.style."+n,null)},styleTween:function(n,a,l){var f="style."+(n+="");if(arguments.length<2)return(f=this.tween(f))&&f._value;if(a==null)return this.tween(f,null);if(typeof a!="function")throw new Error;return this.tween(f,gg(n,a,l==null?"":l))},text:function(n){return this.tween("text",typeof n=="function"?function(a){return function(){var l=a(this);this.textContent=l==null?"":l}}(r0(this,"text",n)):function(a){return function(){this.textContent=a}}(n==null?"":n+""))},textTween:function(n){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(n==null)return this.tween(a,null);if(typeof n!="function")throw new Error;return this.tween(a,M5(n))},remove:function(){return this.on("end.remove",function(n){return function(){var a=this.parentNode;for(var l in this.__transition)if(+l!==n)return;a&&a.removeChild(this)}}(this._id))},tween:function(n,a){var l=this._id;if(n+="",arguments.length<2){for(var f,m=cr(this.node(),l).tween,_=0,E=m.length;_<E;++_)if((f=m[_]).name===n)return f.value;return null}return this.each((a==null?yv:ng)(l,n,a))},delay:function(n){var a=this._id;return arguments.length?this.each((typeof n=="function"?vv:rf)(a,n)):cr(this.node(),a).delay},duration:function(n){var a=this._id;return arguments.length?this.each((typeof n=="function"?S5:C5)(a,n)):cr(this.node(),a).duration},ease:function(n){var a=this._id;return arguments.length?this.each(lg(a,n)):cr(this.node(),a).ease},end:function(){var n,a,l=this,f=l._id,m=l.size();return new Promise(function(_,E){var x={value:E},M={value:function(){--m==0&&_()}};l.each(function(){var N=Br(this,f),R=N.on;R!==n&&((a=(n=R).copy())._.cancel.push(x),a._.interrupt.push(x),a._.end.push(M)),N.on=a})})}};var _u={time:null,delay:0,duration:250,ease:Tc};function fs(n,a){for(var l;!(l=n.__transition)||!(l=l[a]);)if(!(n=n.parentNode))return _u.time=G(),_u;return l}Ka.prototype.interrupt=function(n){return this.each(function(){ka(this,n)})},Ka.prototype.transition=function(n){var a,l;n instanceof ls?(a=n._id,n=n._name):(a=mg(),(l=_u).time=G(),n=n==null?null:n+"");for(var f=this._groups,m=f.length,_=0;_<m;++_)for(var E,x=f[_],M=x.length,N=0;N<M;++N)(E=x[N])&&lr(E,n,a,N,x,l||fs(E,a));return new ls(f,this._parents,n,a)};var D5=[null];function N5(n,a){var l,f,m=n.__transition;if(m){for(f in a=a==null?null:a+"",m)if((l=m[f]).state>1&&l.name===a)return new ls([[n]],D5,a,+f)}return null}function vg(n){return function(){return n}}function O5(n,a,l){this.target=n,this.type=a,this.selection=l}function _v(){mt.stopImmediatePropagation()}function _g(){mt.preventDefault(),mt.stopImmediatePropagation()}var bv={name:"drag"},s0={name:"space"},bu={name:"handle"},wu={name:"center"};function Tl(n){return[+n[0],+n[1]]}function c0(n){return[Tl(n[0]),Tl(n[1])]}function u0(n){return function(a){return xa(a,mt.touches,n)}}var l0={name:"x",handles:["w","e"].map(ja),input:function(n,a){return n==null?null:[[+n[0],a[0][1]],[+n[1],a[1][1]]]},output:function(n){return n&&[n[0][0],n[1][0]]}},El={name:"y",handles:["n","s"].map(ja),input:function(n,a){return n==null?null:[[a[0][0],+n[0]],[a[1][0],+n[1]]]},output:function(n){return n&&[n[0][1],n[1][1]]}},ro={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(ja),input:function(n){return n==null?null:c0(n)},output:function(n){return n}},ds={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},bg={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},h0={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},wv={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},xv={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ja(n){return{type:n}}function wg(){return!mt.ctrlKey&&!mt.button}function xg(){var n=this.ownerSVGElement||this;return n.hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function kv(){return navigator.maxTouchPoints||"ontouchstart"in this}function f0(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function L5(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function B5(n){var a=n.__brush;return a?a.dim.output(a.selection):null}function d0(){return af(l0)}function R5(){return af(El)}function kg(){return af(ro)}function af(n){var a,l=xg,f=wg,m=kv,_=!0,E=tn("start","brush","end"),x=6;function M(Q){var Z=Q.property("__brush",J).selectAll(".overlay").data([ja("overlay")]);Z.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ds.overlay).merge(Z).each(function(){var nt=f0(this).extent;yr(this).attr("x",nt[0][0]).attr("y",nt[0][1]).attr("width",nt[1][0]-nt[0][0]).attr("height",nt[1][1]-nt[0][1])}),Q.selectAll(".selection").data([ja("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ds.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var at=Q.selectAll(".handle").data(n.handles,function(nt){return nt.type});at.exit().remove(),at.enter().append("rect").attr("class",function(nt){return"handle handle--"+nt.type}).attr("cursor",function(nt){return ds[nt.type]}),Q.each(N).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",L).filter(m).on("touchstart.brush",L).on("touchmove.brush",$).on("touchend.brush touchcancel.brush",W).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function N(){var Q=yr(this),Z=f0(this).selection;Z?(Q.selectAll(".selection").style("display",null).attr("x",Z[0][0]).attr("y",Z[0][1]).attr("width",Z[1][0]-Z[0][0]).attr("height",Z[1][1]-Z[0][1]),Q.selectAll(".handle").style("display",null).attr("x",function(at){return at.type[at.type.length-1]==="e"?Z[1][0]-x/2:Z[0][0]-x/2}).attr("y",function(at){return at.type[0]==="s"?Z[1][1]-x/2:Z[0][1]-x/2}).attr("width",function(at){return at.type==="n"||at.type==="s"?Z[1][0]-Z[0][0]+x:x}).attr("height",function(at){return at.type==="e"||at.type==="w"?Z[1][1]-Z[0][1]+x:x})):Q.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function R(Q,Z,at){var nt=Q.__brush.emitter;return!nt||at&&nt.clean?new Y(Q,Z,at):nt}function Y(Q,Z,at){this.that=Q,this.args=Z,this.state=Q.__brush,this.active=0,this.clean=at}function L(){if((!a||mt.touches)&&f.apply(this,arguments)){var Q,Z,at,nt,dt,Mt,Wt,Qt,be,zt,ce,ft=this,Et=mt.target.__data__.type,re=(_&&mt.metaKey?Et="overlay":Et)==="selection"?bv:_&&mt.altKey?wu:bu,Zt=n===El?null:wv[Et],ie=n===l0?null:xv[Et],Ae=f0(ft),Ue=Ae.extent,xn=Ae.selection,Jn=Ue[0][0],zn=Ue[0][1],nn=Ue[1][0],pr=Ue[1][1],Ln=0,Nn=0,ur=Zt&&ie&&_&&mt.shiftKey,ua=mt.touches?u0(mt.changedTouches[0].identifier):zs,Ri=ua(ft),gc=Ri,nu=R(ft,arguments,!0).beforestart();Et==="overlay"?(xn&&(be=!0),Ae.selection=xn=[[Q=n===El?Jn:Ri[0],at=n===l0?zn:Ri[1]],[dt=n===El?nn:Q,Wt=n===l0?pr:at]]):(Q=xn[0][0],at=xn[0][1],dt=xn[1][0],Wt=xn[1][1]),Z=Q,nt=at,Mt=dt,Qt=Wt;var go=yr(ft).attr("pointer-events","none"),rl=go.selectAll(".overlay").attr("cursor",ds[Et]);if(mt.touches)nu.moved=yo,nu.ended=Nm;else{var ru=yr(mt.view).on("mousemove.brush",yo,!0).on("mouseup.brush",Nm,!0);_&&ru.on("keydown.brush",M4,!0).on("keyup.brush",I6,!0),ni(mt.view)}_v(),ka(ft),N.call(ft),nu.start()}function yo(){var Co=ua(ft);!ur||zt||ce||(Math.abs(Co[0]-gc[0])>Math.abs(Co[1]-gc[1])?ce=!0:zt=!0),gc=Co,be=!0,_g(),iu()}function iu(){var Co;switch(Ln=gc[0]-Ri[0],Nn=gc[1]-Ri[1],re){case s0:case bv:Zt&&(Ln=Math.max(Jn-Q,Math.min(nn-dt,Ln)),Z=Q+Ln,Mt=dt+Ln),ie&&(Nn=Math.max(zn-at,Math.min(pr-Wt,Nn)),nt=at+Nn,Qt=Wt+Nn);break;case bu:Zt<0?(Ln=Math.max(Jn-Q,Math.min(nn-Q,Ln)),Z=Q+Ln,Mt=dt):Zt>0&&(Ln=Math.max(Jn-dt,Math.min(nn-dt,Ln)),Z=Q,Mt=dt+Ln),ie<0?(Nn=Math.max(zn-at,Math.min(pr-at,Nn)),nt=at+Nn,Qt=Wt):ie>0&&(Nn=Math.max(zn-Wt,Math.min(pr-Wt,Nn)),nt=at,Qt=Wt+Nn);break;case wu:Zt&&(Z=Math.max(Jn,Math.min(nn,Q-Ln*Zt)),Mt=Math.max(Jn,Math.min(nn,dt+Ln*Zt))),ie&&(nt=Math.max(zn,Math.min(pr,at-Nn*ie)),Qt=Math.max(zn,Math.min(pr,Wt+Nn*ie)))}Mt<Z&&(Zt*=-1,Co=Q,Q=dt,dt=Co,Co=Z,Z=Mt,Mt=Co,Et in bg&&rl.attr("cursor",ds[Et=bg[Et]])),Qt<nt&&(ie*=-1,Co=at,at=Wt,Wt=Co,Co=nt,nt=Qt,Qt=Co,Et in h0&&rl.attr("cursor",ds[Et=h0[Et]])),Ae.selection&&(xn=Ae.selection),zt&&(Z=xn[0][0],Mt=xn[1][0]),ce&&(nt=xn[0][1],Qt=xn[1][1]),xn[0][0]===Z&&xn[0][1]===nt&&xn[1][0]===Mt&&xn[1][1]===Qt||(Ae.selection=[[Z,nt],[Mt,Qt]],N.call(ft),nu.brush())}function Nm(){if(_v(),mt.touches){if(mt.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500)}else Hr(mt.view,be),ru.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);go.attr("pointer-events","all"),rl.attr("cursor",ds.overlay),Ae.selection&&(xn=Ae.selection),L5(xn)&&(Ae.selection=null,N.call(ft)),nu.end()}function M4(){switch(mt.keyCode){case 16:ur=Zt&&ie;break;case 18:re===bu&&(Zt&&(dt=Mt-Ln*Zt,Q=Z+Ln*Zt),ie&&(Wt=Qt-Nn*ie,at=nt+Nn*ie),re=wu,iu());break;case 32:re!==bu&&re!==wu||(Zt<0?dt=Mt-Ln:Zt>0&&(Q=Z-Ln),ie<0?Wt=Qt-Nn:ie>0&&(at=nt-Nn),re=s0,rl.attr("cursor",ds.selection),iu());break;default:return}_g()}function I6(){switch(mt.keyCode){case 16:ur&&(zt=ce=ur=!1,iu());break;case 18:re===wu&&(Zt<0?dt=Mt:Zt>0&&(Q=Z),ie<0?Wt=Qt:ie>0&&(at=nt),re=bu,iu());break;case 32:re===s0&&(mt.altKey?(Zt&&(dt=Mt-Ln*Zt,Q=Z+Ln*Zt),ie&&(Wt=Qt-Nn*ie,at=nt+Nn*ie),re=wu):(Zt<0?dt=Mt:Zt>0&&(Q=Z),ie<0?Wt=Qt:ie>0&&(at=nt),re=bu),rl.attr("cursor",ds[Et]),iu());break;default:return}_g()}}function $(){R(this,arguments).moved()}function W(){R(this,arguments).ended()}function J(){var Q=this.__brush||{selection:null};return Q.extent=c0(l.apply(this,arguments)),Q.dim=n,Q}return M.move=function(Q,Z){Q.selection?Q.on("start.brush",function(){R(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){R(this,arguments).end()}).tween("brush",function(){var at=this,nt=at.__brush,dt=R(at,arguments),Mt=nt.selection,Wt=n.input(typeof Z=="function"?Z.apply(this,arguments):Z,nt.extent),Qt=mu(Mt,Wt);function be(zt){nt.selection=zt===1&&Wt===null?null:Qt(zt),N.call(at),dt.brush()}return Mt!==null&&Wt!==null?be:be(1)}):Q.each(function(){var at=this,nt=arguments,dt=at.__brush,Mt=n.input(typeof Z=="function"?Z.apply(at,nt):Z,dt.extent),Wt=R(at,nt).beforestart();ka(at),dt.selection=Mt===null?null:Mt,N.call(at),Wt.start().brush().end()})},M.clear=function(Q){M.move(Q,null)},Y.prototype={beforestart:function(){return++this.active==1&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return--this.active==0&&(delete this.state.emitter,this.emit("end")),this},emit:function(Q){vo(new O5(M,Q,n.output(this.state.selection)),E.apply,E,[Q,this.that,this.args])}},M.extent=function(Q){return arguments.length?(l=typeof Q=="function"?Q:vg(c0(Q)),M):l},M.filter=function(Q){return arguments.length?(f=typeof Q=="function"?Q:vg(!!Q),M):f},M.touchable=function(Q){return arguments.length?(m=typeof Q=="function"?Q:vg(!!Q),M):m},M.handleSize=function(Q){return arguments.length?(x=+Q,M):x},M.keyModifiers=function(Q){return arguments.length?(_=!!Q,M):_},M.on=function(){var Q=E.on.apply(E,arguments);return Q===E?M:Q},M}var Tv=Math.cos,Ev=Math.sin,p0=Math.PI,g0=p0/2,Sv=2*p0,Tg=Math.max;function Sl(n){return function(a,l){return n(a.source.value+a.target.value,l.source.value+l.target.value)}}function Eg(){var n=0,a=null,l=null,f=null;function m(_){var E,x,M,N,R,Y,L=_.length,$=[],W=et(L),J=[],Q=[],Z=Q.groups=new Array(L),at=new Array(L*L);for(E=0,R=-1;++R<L;){for(x=0,Y=-1;++Y<L;)x+=_[R][Y];$.push(x),J.push(et(L)),E+=x}for(a&&W.sort(function(ce,ft){return a($[ce],$[ft])}),l&&J.forEach(function(ce,ft){ce.sort(function(Et,re){return l(_[ft][Et],_[ft][re])})}),N=(E=Tg(0,Sv-n*L)/E)?n:Sv/L,x=0,R=-1;++R<L;){for(M=x,Y=-1;++Y<L;){var nt=W[R],dt=J[nt][Y],Mt=_[nt][dt],Wt=x,Qt=x+=Mt*E;at[dt*L+nt]={index:nt,subindex:dt,startAngle:Wt,endAngle:Qt,value:Mt}}Z[nt]={index:nt,startAngle:M,endAngle:x,value:$[nt]},x+=N}for(R=-1;++R<L;)for(Y=R-1;++Y<L;){var be=at[Y*L+R],zt=at[R*L+Y];(be.value||zt.value)&&Q.push(be.value<zt.value?{source:zt,target:be}:{source:be,target:zt})}return f?Q.sort(f):Q}return m.padAngle=function(_){return arguments.length?(n=Tg(0,_),m):n},m.sortGroups=function(_){return arguments.length?(a=_,m):a},m.sortSubgroups=function(_){return arguments.length?(l=_,m):l},m.sortChords=function(_){return arguments.length?(_==null?f=null:(f=Sl(_))._=_,m):f&&f._},m}var I5=Array.prototype.slice;function Sg(n){return function(){return n}}var y0=Math.PI,m0=2*y0,$s=1e-6,Cv=m0-$s;function Cg(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function of(){return new Cg}Cg.prototype=of.prototype={constructor:Cg,moveTo:function(n,a){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+a)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,a){this._+="L"+(this._x1=+n)+","+(this._y1=+a)},quadraticCurveTo:function(n,a,l,f){this._+="Q"+ +n+","+ +a+","+(this._x1=+l)+","+(this._y1=+f)},bezierCurveTo:function(n,a,l,f,m,_){this._+="C"+ +n+","+ +a+","+ +l+","+ +f+","+(this._x1=+m)+","+(this._y1=+_)},arcTo:function(n,a,l,f,m){n=+n,a=+a,l=+l,f=+f,m=+m;var _=this._x1,E=this._y1,x=l-n,M=f-a,N=_-n,R=E-a,Y=N*N+R*R;if(m<0)throw new Error("negative radius: "+m);if(this._x1===null)this._+="M"+(this._x1=n)+","+(this._y1=a);else if(Y>$s)if(Math.abs(R*x-M*N)>$s&&m){var L=l-_,$=f-E,W=x*x+M*M,J=L*L+$*$,Q=Math.sqrt(W),Z=Math.sqrt(Y),at=m*Math.tan((y0-Math.acos((W+Y-J)/(2*Q*Z)))/2),nt=at/Z,dt=at/Q;Math.abs(nt-1)>$s&&(this._+="L"+(n+nt*N)+","+(a+nt*R)),this._+="A"+m+","+m+",0,0,"+ +(R*L>N*$)+","+(this._x1=n+dt*x)+","+(this._y1=a+dt*M)}else this._+="L"+(this._x1=n)+","+(this._y1=a)},arc:function(n,a,l,f,m,_){n=+n,a=+a,_=!!_;var E=(l=+l)*Math.cos(f),x=l*Math.sin(f),M=n+E,N=a+x,R=1^_,Y=_?f-m:m-f;if(l<0)throw new Error("negative radius: "+l);this._x1===null?this._+="M"+M+","+N:(Math.abs(this._x1-M)>$s||Math.abs(this._y1-N)>$s)&&(this._+="L"+M+","+N),l&&(Y<0&&(Y=Y%m0+m0),Y>Cv?this._+="A"+l+","+l+",0,1,"+R+","+(n-E)+","+(a-x)+"A"+l+","+l+",0,1,"+R+","+(this._x1=M)+","+(this._y1=N):Y>$s&&(this._+="A"+l+","+l+",0,"+ +(Y>=y0)+","+R+","+(this._x1=n+l*Math.cos(m))+","+(this._y1=a+l*Math.sin(m))))},rect:function(n,a,l,f){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+a)+"h"+ +l+"v"+ +f+"h"+-l+"Z"},toString:function(){return this._}};const Ws=of;function v0(n){return n.source}function Cl(n){return n.target}function Mv(n){return n.radius}function Av(n){return n.startAngle}function Dv(n){return n.endAngle}function Mg(){var n=v0,a=Cl,l=Mv,f=Av,m=Dv,_=null;function E(){var x,M=I5.call(arguments),N=n.apply(this,M),R=a.apply(this,M),Y=+l.apply(this,(M[0]=N,M)),L=f.apply(this,M)-g0,$=m.apply(this,M)-g0,W=Y*Tv(L),J=Y*Ev(L),Q=+l.apply(this,(M[0]=R,M)),Z=f.apply(this,M)-g0,at=m.apply(this,M)-g0;if(_||(_=x=Ws()),_.moveTo(W,J),_.arc(0,0,Y,L,$),L===Z&&$===at||(_.quadraticCurveTo(0,0,Q*Tv(Z),Q*Ev(Z)),_.arc(0,0,Q,Z,at)),_.quadraticCurveTo(0,0,W,J),_.closePath(),x)return _=null,x+""||null}return E.radius=function(x){return arguments.length?(l=typeof x=="function"?x:Sg(+x),E):l},E.startAngle=function(x){return arguments.length?(f=typeof x=="function"?x:Sg(+x),E):f},E.endAngle=function(x){return arguments.length?(m=typeof x=="function"?x:Sg(+x),E):m},E.source=function(x){return arguments.length?(n=x,E):n},E.target=function(x){return arguments.length?(a=x,E):a},E.context=function(x){return arguments.length?(_=x==null?null:x,E):_},E}var io="$";function sf(){}function Ag(n,a){var l=new sf;if(n instanceof sf)n.each(function(x,M){l.set(M,x)});else if(Array.isArray(n)){var f,m=-1,_=n.length;if(a==null)for(;++m<_;)l.set(m,n[m]);else for(;++m<_;)l.set(a(f=n[m],m,n),f)}else if(n)for(var E in n)l.set(E,n[E]);return l}sf.prototype=Ag.prototype={constructor:sf,has:function(n){return io+n in this},get:function(n){return this[io+n]},set:function(n,a){return this[io+n]=a,this},remove:function(n){var a=io+n;return a in this&&delete this[a]},clear:function(){for(var n in this)n[0]===io&&delete this[n]},keys:function(){var n=[];for(var a in this)a[0]===io&&n.push(a.slice(1));return n},values:function(){var n=[];for(var a in this)a[0]===io&&n.push(this[a]);return n},entries:function(){var n=[];for(var a in this)a[0]===io&&n.push({key:a.slice(1),value:this[a]});return n},size:function(){var n=0;for(var a in this)a[0]===io&&++n;return n},empty:function(){for(var n in this)if(n[0]===io)return!1;return!0},each:function(n){for(var a in this)a[0]===io&&n(this[a],a.slice(1),this)}};const qs=Ag;function F5(){var n,a,l,f=[],m=[];function _(x,M,N,R){if(M>=f.length)return n!=null&&x.sort(n),a!=null?a(x):x;for(var Y,L,$,W=-1,J=x.length,Q=f[M++],Z=qs(),at=N();++W<J;)($=Z.get(Y=Q(L=x[W])+""))?$.push(L):Z.set(Y,[L]);return Z.each(function(nt,dt){R(at,dt,_(nt,M,N,R))}),at}function E(x,M){if(++M>f.length)return x;var N,R=m[M-1];return a!=null&&M>=f.length?N=x.entries():(N=[],x.each(function(Y,L){N.push({key:L,values:E(Y,M)})})),R!=null?N.sort(function(Y,L){return R(Y.key,L.key)}):N}return l={object:function(x){return _(x,0,Nv,Ov)},map:function(x){return _(x,0,Dg,Lv)},entries:function(x){return E(_(x,0,Dg,Lv),0)},key:function(x){return f.push(x),l},sortKeys:function(x){return m[f.length-1]=x,l},sortValues:function(x){return n=x,l},rollup:function(x){return a=x,l}}}function Nv(){return{}}function Ov(n,a,l){n[a]=l}function Dg(){return qs()}function Lv(n,a,l){n.set(a,l)}function cf(){}var Ec=qs.prototype;function Ml(n,a){var l=new cf;if(n instanceof cf)n.each(function(_){l.add(_)});else if(n){var f=-1,m=n.length;if(a==null)for(;++f<m;)l.add(n[f]);else for(;++f<m;)l.add(a(n[f],f,n))}return l}cf.prototype=Ml.prototype={constructor:cf,has:Ec.has,add:function(n){return this[io+(n+="")]=n,this},remove:Ec.remove,clear:Ec.clear,values:Ec.keys,size:Ec.size,empty:Ec.empty,each:Ec.each};const Sc=Ml;function uf(n){var a=[];for(var l in n)a.push(l);return a}function Ng(n){var a=[];for(var l in n)a.push(n[l]);return a}function Og(n){var a=[];for(var l in n)a.push({key:l,value:n[l]});return a}var _0=Math.PI/180,b0=180/Math.PI,w0=.96422,ji=.82521,x0=4/29,Lg=6/29,Bv=3*Lg*Lg;function Al(n){if(n instanceof Po)return new Po(n.l,n.a,n.b,n.opacity);if(n instanceof ps)return Ig(n);n instanceof ii||(n=pu(n));var a,l,f=Vs(n.r),m=Vs(n.g),_=Vs(n.b),E=k0((.2225045*f+.7168786*m+.0606169*_)/1);return f===m&&m===_?a=l=E:(a=k0((.4360747*f+.3850649*m+.1430804*_)/w0),l=k0((.0139322*f+.0971045*m+.7141733*_)/ji)),new Po(116*E-16,500*(a-E),200*(E-l),n.opacity)}function P5(n,a){return new Po(n,0,0,a==null?1:a)}function lf(n,a,l,f){return arguments.length===1?Al(n):new Po(n,a,l,f==null?1:f)}function Po(n,a,l,f){this.l=+n,this.a=+a,this.b=+l,this.opacity=+f}function k0(n){return n>.008856451679035631?Math.pow(n,1/3):n/Bv+x0}function Bg(n){return n>Lg?n*n*n:Bv*(n-x0)}function Dl(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function Vs(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function T0(n){if(n instanceof ps)return new ps(n.h,n.c,n.l,n.opacity);if(n instanceof Po||(n=Al(n)),n.a===0&&n.b===0)return new ps(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var a=Math.atan2(n.b,n.a)*b0;return new ps(a<0?a+360:a,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Rg(n,a,l,f){return arguments.length===1?T0(n):new ps(l,a,n,f==null?1:f)}function Cc(n,a,l,f){return arguments.length===1?T0(n):new ps(n,a,l,f==null?1:f)}function ps(n,a,l,f){this.h=+n,this.c=+a,this.l=+l,this.opacity=+f}function Ig(n){if(isNaN(n.h))return new Po(n.l,0,0,n.opacity);var a=n.h*_0;return new Po(n.l,Math.cos(a)*n.c,Math.sin(a)*n.c,n.opacity)}$r(Po,lf,pi(Kr,{brighter:function(n){return new Po(this.l+18*(n==null?1:n),this.a,this.b,this.opacity)},darker:function(n){return new Po(this.l-18*(n==null?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,a=isNaN(this.a)?n:n+this.a/500,l=isNaN(this.b)?n:n-this.b/200;return new ii(Dl(3.1338561*(a=w0*Bg(a))-1.6168667*(n=1*Bg(n))-.4906146*(l=ji*Bg(l))),Dl(-.9787684*a+1.9161415*n+.033454*l),Dl(.0719453*a-.2289914*n+1.4052427*l),this.opacity)}})),$r(ps,Cc,pi(Kr,{brighter:function(n){return new ps(this.h,this.c,this.l+18*(n==null?1:n),this.opacity)},darker:function(n){return new ps(this.h,this.c,this.l-18*(n==null?1:n),this.opacity)},rgb:function(){return Ig(this).rgb()}}));var Fg=-.14861,Gs=1.78277,Pg=-.29227,hf=-.90649,Yo=1.97294,Rv=Yo*hf,E0=Yo*Gs,Nl=Gs*Pg-hf*Fg;function Iv(n){if(n instanceof xu)return new xu(n.h,n.s,n.l,n.opacity);n instanceof ii||(n=pu(n));var a=n.r/255,l=n.g/255,f=n.b/255,m=(Nl*f+Rv*a-E0*l)/(Nl+Rv-E0),_=f-m,E=(Yo*(l-m)-Pg*_)/hf,x=Math.sqrt(E*E+_*_)/(Yo*m*(1-m)),M=x?Math.atan2(E,_)*b0-120:NaN;return new xu(M<0?M+360:M,x,m,n.opacity)}function Ta(n,a,l,f){return arguments.length===1?Iv(n):new xu(n,a,l,f==null?1:f)}function xu(n,a,l,f){this.h=+n,this.s=+a,this.l=+l,this.opacity=+f}$r(xu,Ta,pi(Kr,{brighter:function(n){return n=n==null?Vi:Math.pow(Vi,n),new xu(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?ra:Math.pow(ra,n),new xu(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=isNaN(this.h)?0:(this.h+120)*_0,a=+this.l,l=isNaN(this.s)?0:this.s*a*(1-a),f=Math.cos(n),m=Math.sin(n);return new ii(255*(a+l*(Fg*f+Gs*m)),255*(a+l*(Pg*f+hf*m)),255*(a+l*(Yo*f)),this.opacity)}}));var Fv=Array.prototype.slice;function Y5(n,a){return n-a}function gs(n){return function(){return n}}function Yg(n,a){for(var l,f=-1,m=a.length;++f<m;)if(l=ff(n,a[f]))return l;return 0}function ff(n,a){for(var l=a[0],f=a[1],m=-1,_=0,E=n.length,x=E-1;_<E;x=_++){var M=n[_],N=M[0],R=M[1],Y=n[x],L=Y[0],$=Y[1];if(df(M,Y,a))return 0;R>f!=$>f&&l<(L-N)*(f-R)/($-R)+N&&(m=-m)}return m}function df(n,a,l){var f,m,_,E;return function(x,M,N){return(M[0]-x[0])*(N[1]-x[1])==(N[0]-x[0])*(M[1]-x[1])}(n,a,l)&&(m=n[f=+(n[0]===a[0])],_=l[f],E=a[f],m<=_&&_<=E||E<=_&&_<=m)}function Pv(){}var ys=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function zi(){var n=1,a=1,l=Ht,f=x;function m(M){var N=l(M);if(Array.isArray(N))N=N.slice().sort(Y5);else{var R=X(M),Y=R[0],L=R[1];N=wt(Y,L,N),N=et(Math.floor(Y/N)*N,Math.floor(L/N)*N,N)}return N.map(function($){return _(M,$)})}function _(M,N){var R=[],Y=[];return function(L,$,W){var J,Q,Z,at,nt,dt,Mt=new Array,Wt=new Array;for(J=Q=-1,at=L[0]>=$,ys[at<<1].forEach(Qt);++J<n-1;)Z=at,at=L[J+1]>=$,ys[Z|at<<1].forEach(Qt);for(ys[at<<0].forEach(Qt);++Q<a-1;){for(J=-1,at=L[Q*n+n]>=$,nt=L[Q*n]>=$,ys[at<<1|nt<<2].forEach(Qt);++J<n-1;)Z=at,at=L[Q*n+n+J+1]>=$,dt=nt,nt=L[Q*n+J+1]>=$,ys[Z|at<<1|nt<<2|dt<<3].forEach(Qt);ys[at|nt<<3].forEach(Qt)}for(J=-1,nt=L[Q*n]>=$,ys[nt<<2].forEach(Qt);++J<n-1;)dt=nt,nt=L[Q*n+J+1]>=$,ys[nt<<2|dt<<3].forEach(Qt);function Qt(be){var zt,ce,ft=[be[0][0]+J,be[0][1]+Q],Et=[be[1][0]+J,be[1][1]+Q],re=E(ft),Zt=E(Et);(zt=Wt[re])?(ce=Mt[Zt])?(delete Wt[zt.end],delete Mt[ce.start],zt===ce?(zt.ring.push(Et),W(zt.ring)):Mt[zt.start]=Wt[ce.end]={start:zt.start,end:ce.end,ring:zt.ring.concat(ce.ring)}):(delete Wt[zt.end],zt.ring.push(Et),Wt[zt.end=Zt]=zt):(zt=Mt[Zt])?(ce=Wt[re])?(delete Mt[zt.start],delete Wt[ce.end],zt===ce?(zt.ring.push(Et),W(zt.ring)):Mt[ce.start]=Wt[zt.end]={start:ce.start,end:zt.end,ring:ce.ring.concat(zt.ring)}):(delete Mt[zt.start],zt.ring.unshift(ft),Mt[zt.start=re]=zt):Mt[re]=Wt[Zt]={start:re,end:Zt,ring:[ft,Et]}}ys[nt<<3].forEach(Qt)}(M,N,function(L){f(L,M,N),function($){for(var W=0,J=$.length,Q=$[J-1][1]*$[0][0]-$[J-1][0]*$[0][1];++W<J;)Q+=$[W-1][1]*$[W][0]-$[W-1][0]*$[W][1];return Q}(L)>0?R.push([L]):Y.push(L)}),Y.forEach(function(L){for(var $,W=0,J=R.length;W<J;++W)if(Yg(($=R[W])[0],L)!==-1)return void $.push(L)}),{type:"MultiPolygon",value:N,coordinates:R}}function E(M){return 2*M[0]+M[1]*(n+1)*4}function x(M,N,R){M.forEach(function(Y){var L,$=Y[0],W=Y[1],J=0|$,Q=0|W,Z=N[Q*n+J];$>0&&$<n&&J===$&&(L=N[Q*n+J-1],Y[0]=$+(R-L)/(Z-L)-.5),W>0&&W<a&&Q===W&&(L=N[(Q-1)*n+J],Y[1]=W+(R-L)/(Z-L)-.5)})}return m.contour=_,m.size=function(M){if(!arguments.length)return[n,a];var N=Math.ceil(M[0]),R=Math.ceil(M[1]);if(!(N>0&&R>0))throw new Error("invalid size");return n=N,a=R,m},m.thresholds=function(M){return arguments.length?(l=typeof M=="function"?M:Array.isArray(M)?gs(Fv.call(M)):gs(M),m):l},m.smooth=function(M){return arguments.length?(f=M?x:Pv,m):f===x},m}function jg(n,a,l){for(var f=n.width,m=n.height,_=1+(l<<1),E=0;E<m;++E)for(var x=0,M=0;x<f+l;++x)x<f&&(M+=n.data[x+E*f]),x>=l&&(x>=_&&(M-=n.data[x-_+E*f]),a.data[x-l+E*f]=M/Math.min(x+1,f-1+_-x,_))}function zg(n,a,l){for(var f=n.width,m=n.height,_=1+(l<<1),E=0;E<f;++E)for(var x=0,M=0;x<m+l;++x)x<m&&(M+=n.data[E+x*f]),x>=l&&(x>=_&&(M-=n.data[E+(x-_)*f]),a.data[E+(x-l)*f]=M/Math.min(x+1,m-1+_-x,_))}function wr(n){return n[0]}function j5(n){return n[1]}function pf(){return 1}function gf(){var n=wr,a=j5,l=pf,f=960,m=500,_=20,E=2,x=3*_,M=f+2*x>>E,N=m+2*x>>E,R=gs(20);function Y(Z){var at=new Float32Array(M*N),nt=new Float32Array(M*N);Z.forEach(function(Wt,Qt,be){var zt=+n(Wt,Qt,be)+x>>E,ce=+a(Wt,Qt,be)+x>>E,ft=+l(Wt,Qt,be);zt>=0&&zt<M&&ce>=0&&ce<N&&(at[zt+ce*M]+=ft)}),jg({width:M,height:N,data:at},{width:M,height:N,data:nt},_>>E),zg({width:M,height:N,data:nt},{width:M,height:N,data:at},_>>E),jg({width:M,height:N,data:at},{width:M,height:N,data:nt},_>>E),zg({width:M,height:N,data:nt},{width:M,height:N,data:at},_>>E),jg({width:M,height:N,data:at},{width:M,height:N,data:nt},_>>E),zg({width:M,height:N,data:nt},{width:M,height:N,data:at},_>>E);var dt=R(at);if(!Array.isArray(dt)){var Mt=Rt(at);dt=wt(0,Mt,dt),(dt=et(0,Math.floor(Mt/dt)*dt,dt)).shift()}return zi().thresholds(dt).size([M,N])(at).map(L)}function L(Z){return Z.value*=Math.pow(2,-2*E),Z.coordinates.forEach($),Z}function $(Z){Z.forEach(W)}function W(Z){Z.forEach(J)}function J(Z){Z[0]=Z[0]*Math.pow(2,E)-x,Z[1]=Z[1]*Math.pow(2,E)-x}function Q(){return M=f+2*(x=3*_)>>E,N=m+2*x>>E,Y}return Y.x=function(Z){return arguments.length?(n=typeof Z=="function"?Z:gs(+Z),Y):n},Y.y=function(Z){return arguments.length?(a=typeof Z=="function"?Z:gs(+Z),Y):a},Y.weight=function(Z){return arguments.length?(l=typeof Z=="function"?Z:gs(+Z),Y):l},Y.size=function(Z){if(!arguments.length)return[f,m];var at=Math.ceil(Z[0]),nt=Math.ceil(Z[1]);if(!(at>=0||at>=0))throw new Error("invalid size");return f=at,m=nt,Q()},Y.cellSize=function(Z){if(!arguments.length)return 1<<E;if(!((Z=+Z)>=1))throw new Error("invalid cell size");return E=Math.floor(Math.log(Z)/Math.LN2),Q()},Y.thresholds=function(Z){return arguments.length?(R=typeof Z=="function"?Z:Array.isArray(Z)?gs(Fv.call(Z)):gs(Z),Y):R},Y.bandwidth=function(Z){if(!arguments.length)return Math.sqrt(_*(_+1));if(!((Z=+Z)>=0))throw new Error("invalid bandwidth");return _=Math.round((Math.sqrt(4*Z*Z+1)-1)/2),Q()},Y}function S0(n){return function(){return n}}function Ug(n,a,l,f,m,_,E,x,M,N){this.target=n,this.type=a,this.subject=l,this.identifier=f,this.active=m,this.x=_,this.y=E,this.dx=x,this.dy=M,this._=N}function z5(){return!mt.ctrlKey&&!mt.button}function U5(){return this.parentNode}function H5(n){return n==null?{x:mt.x,y:mt.y}:n}function Yv(){return navigator.maxTouchPoints||"ontouchstart"in this}function jv(){var n,a,l,f,m=z5,_=U5,E=H5,x=Yv,M={},N=tn("start","drag","end"),R=0,Y=0;function L(dt){dt.on("mousedown.drag",$).filter(x).on("touchstart.drag",Q).on("touchmove.drag",Z).on("touchend.drag touchcancel.drag",at).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function $(){if(!f&&m.apply(this,arguments)){var dt=nt("mouse",_.apply(this,arguments),zs,this,arguments);dt&&(yr(mt.view).on("mousemove.drag",W,!0).on("mouseup.drag",J,!0),ni(mt.view),Cr(),l=!1,n=mt.clientX,a=mt.clientY,dt("start"))}}function W(){if(xi(),!l){var dt=mt.clientX-n,Mt=mt.clientY-a;l=dt*dt+Mt*Mt>Y}M.mouse("drag")}function J(){yr(mt.view).on("mousemove.drag mouseup.drag",null),Hr(mt.view,l),xi(),M.mouse("end")}function Q(){if(m.apply(this,arguments)){var dt,Mt,Wt=mt.changedTouches,Qt=_.apply(this,arguments),be=Wt.length;for(dt=0;dt<be;++dt)(Mt=nt(Wt[dt].identifier,Qt,xa,this,arguments))&&(Cr(),Mt("start"))}}function Z(){var dt,Mt,Wt=mt.changedTouches,Qt=Wt.length;for(dt=0;dt<Qt;++dt)(Mt=M[Wt[dt].identifier])&&(xi(),Mt("drag"))}function at(){var dt,Mt,Wt=mt.changedTouches,Qt=Wt.length;for(f&&clearTimeout(f),f=setTimeout(function(){f=null},500),dt=0;dt<Qt;++dt)(Mt=M[Wt[dt].identifier])&&(Cr(),Mt("end"))}function nt(dt,Mt,Wt,Qt,be){var zt,ce,ft,Et=Wt(Mt,dt),re=N.copy();if(vo(new Ug(L,"beforestart",zt,dt,R,Et[0],Et[1],0,0,re),function(){return(mt.subject=zt=E.apply(Qt,be))!=null&&(ce=zt.x-Et[0]||0,ft=zt.y-Et[1]||0,!0)}))return function Zt(ie){var Ae,Ue=Et;switch(ie){case"start":M[dt]=Zt,Ae=R++;break;case"end":delete M[dt],--R;case"drag":Et=Wt(Mt,dt),Ae=R}vo(new Ug(L,ie,zt,dt,Ae,Et[0]+ce,Et[1]+ft,Et[0]-Ue[0],Et[1]-Ue[1],re),re.apply,re,[ie,Qt,be])}}return L.filter=function(dt){return arguments.length?(m=typeof dt=="function"?dt:S0(!!dt),L):m},L.container=function(dt){return arguments.length?(_=typeof dt=="function"?dt:S0(dt),L):_},L.subject=function(dt){return arguments.length?(E=typeof dt=="function"?dt:S0(dt),L):E},L.touchable=function(dt){return arguments.length?(x=typeof dt=="function"?dt:S0(!!dt),L):x},L.on=function(){var dt=N.on.apply(N,arguments);return dt===N?L:dt},L.clickDistance=function(dt){return arguments.length?(Y=(dt=+dt)*dt,L):Math.sqrt(Y)},L}Ug.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var zv={},Hg={};function Uv(n){return new Function("d","return {"+n.map(function(a,l){return JSON.stringify(a)+": d["+l+'] || ""'}).join(",")+"}")}function $g(n){var a=Object.create(null),l=[];return n.forEach(function(f){for(var m in f)m in a||l.push(a[m]=m)}),l}function za(n,a){var l=n+"",f=l.length;return f<a?new Array(a-f+1).join(0)+l:l}function yf(n){var a=new RegExp('["'+n+`
\r]`),l=n.charCodeAt(0);function f(x,M){var N,R=[],Y=x.length,L=0,$=0,W=Y<=0,J=!1;function Q(){if(W)return Hg;if(J)return J=!1,zv;var at,nt,dt=L;if(x.charCodeAt(dt)===34){for(;L++<Y&&x.charCodeAt(L)!==34||x.charCodeAt(++L)===34;);return(at=L)>=Y?W=!0:(nt=x.charCodeAt(L++))===10?J=!0:nt===13&&(J=!0,x.charCodeAt(L)===10&&++L),x.slice(dt+1,at-1).replace(/""/g,'"')}for(;L<Y;){if((nt=x.charCodeAt(at=L++))===10)J=!0;else if(nt===13)J=!0,x.charCodeAt(L)===10&&++L;else if(nt!==l)continue;return x.slice(dt,at)}return W=!0,x.slice(dt,Y)}for(x.charCodeAt(Y-1)===10&&--Y,x.charCodeAt(Y-1)===13&&--Y;(N=Q())!==Hg;){for(var Z=[];N!==zv&&N!==Hg;)Z.push(N),N=Q();M&&(Z=M(Z,$++))==null||R.push(Z)}return R}function m(x,M){return x.map(function(N){return M.map(function(R){return E(N[R])}).join(n)})}function _(x){return x.map(E).join(n)}function E(x){return x==null?"":x instanceof Date?function(M){var N=M.getUTCHours(),R=M.getUTCMinutes(),Y=M.getUTCSeconds(),L=M.getUTCMilliseconds();return isNaN(M)?"Invalid Date":function($){return $<0?"-"+za(-$,6):$>9999?"+"+za($,6):za($,4)}(M.getUTCFullYear())+"-"+za(M.getUTCMonth()+1,2)+"-"+za(M.getUTCDate(),2)+(L?"T"+za(N,2)+":"+za(R,2)+":"+za(Y,2)+"."+za(L,3)+"Z":Y?"T"+za(N,2)+":"+za(R,2)+":"+za(Y,2)+"Z":R||N?"T"+za(N,2)+":"+za(R,2)+"Z":"")}(x):a.test(x+="")?'"'+x.replace(/"/g,'""')+'"':x}return{parse:function(x,M){var N,R,Y=f(x,function(L,$){if(N)return N(L,$-1);R=L,N=M?function(W,J){var Q=Uv(W);return function(Z,at){return J(Q(Z),at,W)}}(L,M):Uv(L)});return Y.columns=R||[],Y},parseRows:f,format:function(x,M){return M==null&&(M=$g(x)),[M.map(E).join(n)].concat(m(x,M)).join(`
`)},formatBody:function(x,M){return M==null&&(M=$g(x)),m(x,M).join(`
`)},formatRows:function(x){return x.map(_).join(`
`)},formatRow:_,formatValue:E}}var ku=yf(","),Hv=ku.parse,$5=ku.parseRows,W5=ku.format,q5=ku.formatBody,V5=ku.formatRows,G5=ku.formatRow,$v=ku.formatValue,Tu=yf(" "),Wv=Tu.parse,Z5=Tu.parseRows,qv=Tu.format,X5=Tu.formatBody,K5=Tu.formatRows,Q5=Tu.formatRow,J5=Tu.formatValue;function tw(n){for(var a in n){var l,f,m=n[a].trim();if(m)if(m==="true")m=!0;else if(m==="false")m=!1;else if(m==="NaN")m=NaN;else if(isNaN(l=+m)){if(!(f=m.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;ew&&f[4]&&!f[7]&&(m=m.replace(/-/g,"/").replace(/T/," ")),m=new Date(m)}else m=l;else m=null;n[a]=m}return n}var ew=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Vv(n){return+n}function nw(n){return n*n}function rw(n){return n*(2-n)}function Gv(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var iw=function n(a){function l(f){return Math.pow(f,a)}return a=+a,l.exponent=n,l}(3),aw=function n(a){function l(f){return 1-Math.pow(1-f,a)}return a=+a,l.exponent=n,l}(3),Zv=function n(a){function l(f){return((f*=2)<=1?Math.pow(f,a):2-Math.pow(2-f,a))/2}return a=+a,l.exponent=n,l}(3),Xv=Math.PI,Kv=Xv/2;function Qv(n){return+n==1?1:1-Math.cos(n*Kv)}function ow(n){return Math.sin(n*Kv)}function Jv(n){return(1-Math.cos(Xv*n))/2}function Mc(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function t_(n){return Mc(1-+n)}function sw(n){return 1-Mc(n)}function e_(n){return((n*=2)<=1?Mc(1-n):2-Mc(n-1))/2}function cw(n){return 1-Math.sqrt(1-n*n)}function uw(n){return Math.sqrt(1- --n*n)}function n_(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var C0=7.5625;function r_(n){return 1-mf(1-n)}function mf(n){return(n=+n)<.36363636363636365?C0*n*n:n<.7272727272727273?C0*(n-=.5454545454545454)*n+.75:n<.9090909090909091?C0*(n-=.8181818181818182)*n+.9375:C0*(n-=.9545454545454546)*n+.984375}function lw(n){return((n*=2)<=1?1-mf(1-n):mf(n-1)+1)/2}var Wg=1.70158,hw=function n(a){function l(f){return(f=+f)*f*(a*(f-1)+f)}return a=+a,l.overshoot=n,l}(Wg),fw=function n(a){function l(f){return--f*f*((f+1)*a+f)+1}return a=+a,l.overshoot=n,l}(Wg),i_=function n(a){function l(f){return((f*=2)<1?f*f*((a+1)*f-a):(f-=2)*f*((a+1)*f+a)+2)/2}return a=+a,l.overshoot=n,l}(Wg),Ol=2*Math.PI,dw=function n(a,l){var f=Math.asin(1/(a=Math.max(1,a)))*(l/=Ol);function m(_){return a*Mc(- --_)*Math.sin((f-_)/l)}return m.amplitude=function(_){return n(_,l*Ol)},m.period=function(_){return n(a,_)},m}(1,.3),qg=function n(a,l){var f=Math.asin(1/(a=Math.max(1,a)))*(l/=Ol);function m(_){return 1-a*Mc(_=+_)*Math.sin((_+f)/l)}return m.amplitude=function(_){return n(_,l*Ol)},m.period=function(_){return n(a,_)},m}(1,.3),a_=function n(a,l){var f=Math.asin(1/(a=Math.max(1,a)))*(l/=Ol);function m(_){return((_=2*_-1)<0?a*Mc(-_)*Math.sin((f-_)/l):2-a*Mc(_)*Math.sin((f+_)/l))/2}return m.amplitude=function(_){return n(_,l*Ol)},m.period=function(_){return n(a,_)},m}(1,.3);function o_(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.blob()}function pw(n,a){return fetch(n,a).then(o_)}function gw(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.arrayBuffer()}function s_(n,a){return fetch(n,a).then(gw)}function yw(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.text()}function Ll(n,a){return fetch(n,a).then(yw)}function Vg(n){return function(a,l,f){return arguments.length===2&&typeof l=="function"&&(f=l,l=void 0),Ll(a,l).then(function(m){return n(m,f)})}}function mw(n,a,l,f){arguments.length===3&&typeof l=="function"&&(f=l,l=void 0);var m=yf(n);return Ll(a,l).then(function(_){return m.parse(_,f)})}var c_=Vg(Hv),u_=Vg(Wv);function l_(n,a){return new Promise(function(l,f){var m=new Image;for(var _ in a)m[_]=a[_];m.onerror=f,m.onload=function(){l(m)},m.src=n})}function vw(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);if(n.status!==204&&n.status!==205)return n.json()}function _w(n,a){return fetch(n,a).then(vw)}function Gg(n){return function(a,l){return Ll(a,l).then(function(f){return new DOMParser().parseFromString(f,n)})}}const bw=Gg("application/xml");var h_=Gg("text/html"),M0=Gg("image/svg+xml");function ww(n,a){var l;function f(){var m,_,E=l.length,x=0,M=0;for(m=0;m<E;++m)x+=(_=l[m]).x,M+=_.y;for(x=x/E-n,M=M/E-a,m=0;m<E;++m)(_=l[m]).x-=x,_.y-=M}return n==null&&(n=0),a==null&&(a=0),f.initialize=function(m){l=m},f.x=function(m){return arguments.length?(n=+m,f):n},f.y=function(m){return arguments.length?(a=+m,f):a},f}function Ui(n){return function(){return n}}function Ac(){return 1e-6*(Math.random()-.5)}function f_(n,a,l,f){if(isNaN(a)||isNaN(l))return n;var m,_,E,x,M,N,R,Y,L,$=n._root,W={data:f},J=n._x0,Q=n._y0,Z=n._x1,at=n._y1;if(!$)return n._root=W,n;for(;$.length;)if((N=a>=(_=(J+Z)/2))?J=_:Z=_,(R=l>=(E=(Q+at)/2))?Q=E:at=E,m=$,!($=$[Y=R<<1|N]))return m[Y]=W,n;if(x=+n._x.call(null,$.data),M=+n._y.call(null,$.data),a===x&&l===M)return W.next=$,m?m[Y]=W:n._root=W,n;do m=m?m[Y]=new Array(4):n._root=new Array(4),(N=a>=(_=(J+Z)/2))?J=_:Z=_,(R=l>=(E=(Q+at)/2))?Q=E:at=E;while((Y=R<<1|N)==(L=(M>=E)<<1|x>=_));return m[L]=$,m[Y]=W,n}function Ea(n,a,l,f,m){this.node=n,this.x0=a,this.y0=l,this.x1=f,this.y1=m}function xw(n){return n[0]}function Zg(n){return n[1]}function vf(n,a,l){var f=new Bl(a==null?xw:a,l==null?Zg:l,NaN,NaN,NaN,NaN);return n==null?f:f.addAll(n)}function Bl(n,a,l,f,m,_){this._x=n,this._y=a,this._x0=l,this._y0=f,this._x1=m,this._y1=_,this._root=void 0}function d_(n){for(var a={data:n.data},l=a;n=n.next;)l=l.next={data:n.data};return a}var Sa=vf.prototype=Bl.prototype;function kw(n){return n.x+n.vx}function Tw(n){return n.y+n.vy}function Ew(n){var a,l,f=1,m=1;function _(){for(var M,N,R,Y,L,$,W,J=a.length,Q=0;Q<m;++Q)for(N=vf(a,kw,Tw).visitAfter(E),M=0;M<J;++M)R=a[M],$=l[R.index],W=$*$,Y=R.x+R.vx,L=R.y+R.vy,N.visit(Z);function Z(at,nt,dt,Mt,Wt){var Qt=at.data,be=at.r,zt=$+be;if(!Qt)return nt>Y+zt||Mt<Y-zt||dt>L+zt||Wt<L-zt;if(Qt.index>R.index){var ce=Y-Qt.x-Qt.vx,ft=L-Qt.y-Qt.vy,Et=ce*ce+ft*ft;Et<zt*zt&&(ce===0&&(Et+=(ce=Ac())*ce),ft===0&&(Et+=(ft=Ac())*ft),Et=(zt-(Et=Math.sqrt(Et)))/Et*f,R.vx+=(ce*=Et)*(zt=(be*=be)/(W+be)),R.vy+=(ft*=Et)*zt,Qt.vx-=ce*(zt=1-zt),Qt.vy-=ft*zt)}}}function E(M){if(M.data)return M.r=l[M.data.index];for(var N=M.r=0;N<4;++N)M[N]&&M[N].r>M.r&&(M.r=M[N].r)}function x(){if(a){var M,N,R=a.length;for(l=new Array(R),M=0;M<R;++M)N=a[M],l[N.index]=+n(N,M,a)}}return typeof n!="function"&&(n=Ui(n==null?1:+n)),_.initialize=function(M){a=M,x()},_.iterations=function(M){return arguments.length?(m=+M,_):m},_.strength=function(M){return arguments.length?(f=+M,_):f},_.radius=function(M){return arguments.length?(n=typeof M=="function"?M:Ui(+M),x(),_):n},_}function Sw(n){return n.index}function Xg(n,a){var l=n.get(a);if(!l)throw new Error("missing: "+a);return l}function Cw(n){var a,l,f,m,_,E=Sw,x=function(W){return 1/Math.min(m[W.source.index],m[W.target.index])},M=Ui(30),N=1;function R(W){for(var J=0,Q=n.length;J<N;++J)for(var Z,at,nt,dt,Mt,Wt,Qt,be=0;be<Q;++be)at=(Z=n[be]).source,dt=(nt=Z.target).x+nt.vx-at.x-at.vx||Ac(),Mt=nt.y+nt.vy-at.y-at.vy||Ac(),dt*=Wt=((Wt=Math.sqrt(dt*dt+Mt*Mt))-l[be])/Wt*W*a[be],Mt*=Wt,nt.vx-=dt*(Qt=_[be]),nt.vy-=Mt*Qt,at.vx+=dt*(Qt=1-Qt),at.vy+=Mt*Qt}function Y(){if(f){var W,J,Q=f.length,Z=n.length,at=qs(f,E);for(W=0,m=new Array(Q);W<Z;++W)(J=n[W]).index=W,typeof J.source!="object"&&(J.source=Xg(at,J.source)),typeof J.target!="object"&&(J.target=Xg(at,J.target)),m[J.source.index]=(m[J.source.index]||0)+1,m[J.target.index]=(m[J.target.index]||0)+1;for(W=0,_=new Array(Z);W<Z;++W)J=n[W],_[W]=m[J.source.index]/(m[J.source.index]+m[J.target.index]);a=new Array(Z),L(),l=new Array(Z),$()}}function L(){if(f)for(var W=0,J=n.length;W<J;++W)a[W]=+x(n[W],W,n)}function $(){if(f)for(var W=0,J=n.length;W<J;++W)l[W]=+M(n[W],W,n)}return n==null&&(n=[]),R.initialize=function(W){f=W,Y()},R.links=function(W){return arguments.length?(n=W,Y(),R):n},R.id=function(W){return arguments.length?(E=W,R):E},R.iterations=function(W){return arguments.length?(N=+W,R):N},R.strength=function(W){return arguments.length?(x=typeof W=="function"?W:Ui(+W),L(),R):x},R.distance=function(W){return arguments.length?(M=typeof W=="function"?W:Ui(+W),$(),R):M},R}function Mw(n){return n.x}function Aw(n){return n.y}Sa.copy=function(){var n,a,l=new Bl(this._x,this._y,this._x0,this._y0,this._x1,this._y1),f=this._root;if(!f)return l;if(!f.length)return l._root=d_(f),l;for(n=[{source:f,target:l._root=new Array(4)}];f=n.pop();)for(var m=0;m<4;++m)(a=f.source[m])&&(a.length?n.push({source:a,target:f.target[m]=new Array(4)}):f.target[m]=d_(a));return l},Sa.add=function(n){var a=+this._x.call(null,n),l=+this._y.call(null,n);return f_(this.cover(a,l),a,l,n)},Sa.addAll=function(n){var a,l,f,m,_=n.length,E=new Array(_),x=new Array(_),M=1/0,N=1/0,R=-1/0,Y=-1/0;for(l=0;l<_;++l)isNaN(f=+this._x.call(null,a=n[l]))||isNaN(m=+this._y.call(null,a))||(E[l]=f,x[l]=m,f<M&&(M=f),f>R&&(R=f),m<N&&(N=m),m>Y&&(Y=m));if(M>R||N>Y)return this;for(this.cover(M,N).cover(R,Y),l=0;l<_;++l)f_(this,E[l],x[l],n[l]);return this},Sa.cover=function(n,a){if(isNaN(n=+n)||isNaN(a=+a))return this;var l=this._x0,f=this._y0,m=this._x1,_=this._y1;if(isNaN(l))m=(l=Math.floor(n))+1,_=(f=Math.floor(a))+1;else{for(var E,x,M=m-l,N=this._root;l>n||n>=m||f>a||a>=_;)switch(x=(a<f)<<1|n<l,(E=new Array(4))[x]=N,N=E,M*=2,x){case 0:m=l+M,_=f+M;break;case 1:l=m-M,_=f+M;break;case 2:m=l+M,f=_-M;break;case 3:l=m-M,f=_-M}this._root&&this._root.length&&(this._root=N)}return this._x0=l,this._y0=f,this._x1=m,this._y1=_,this},Sa.data=function(){var n=[];return this.visit(function(a){if(!a.length)do n.push(a.data);while(a=a.next)}),n},Sa.extent=function(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Sa.find=function(n,a,l){var f,m,_,E,x,M,N,R=this._x0,Y=this._y0,L=this._x1,$=this._y1,W=[],J=this._root;for(J&&W.push(new Ea(J,R,Y,L,$)),l==null?l=1/0:(R=n-l,Y=a-l,L=n+l,$=a+l,l*=l);M=W.pop();)if(!(!(J=M.node)||(m=M.x0)>L||(_=M.y0)>$||(E=M.x1)<R||(x=M.y1)<Y))if(J.length){var Q=(m+E)/2,Z=(_+x)/2;W.push(new Ea(J[3],Q,Z,E,x),new Ea(J[2],m,Z,Q,x),new Ea(J[1],Q,_,E,Z),new Ea(J[0],m,_,Q,Z)),(N=(a>=Z)<<1|n>=Q)&&(M=W[W.length-1],W[W.length-1]=W[W.length-1-N],W[W.length-1-N]=M)}else{var at=n-+this._x.call(null,J.data),nt=a-+this._y.call(null,J.data),dt=at*at+nt*nt;if(dt<l){var Mt=Math.sqrt(l=dt);R=n-Mt,Y=a-Mt,L=n+Mt,$=a+Mt,f=J.data}}return f},Sa.remove=function(n){if(isNaN(_=+this._x.call(null,n))||isNaN(E=+this._y.call(null,n)))return this;var a,l,f,m,_,E,x,M,N,R,Y,L,$=this._root,W=this._x0,J=this._y0,Q=this._x1,Z=this._y1;if(!$)return this;if($.length)for(;;){if((N=_>=(x=(W+Q)/2))?W=x:Q=x,(R=E>=(M=(J+Z)/2))?J=M:Z=M,a=$,!($=$[Y=R<<1|N]))return this;if(!$.length)break;(a[Y+1&3]||a[Y+2&3]||a[Y+3&3])&&(l=a,L=Y)}for(;$.data!==n;)if(f=$,!($=$.next))return this;return(m=$.next)&&delete $.next,f?(m?f.next=m:delete f.next,this):a?(m?a[Y]=m:delete a[Y],($=a[0]||a[1]||a[2]||a[3])&&$===(a[3]||a[2]||a[1]||a[0])&&!$.length&&(l?l[L]=$:this._root=$),this):(this._root=m,this)},Sa.removeAll=function(n){for(var a=0,l=n.length;a<l;++a)this.remove(n[a]);return this},Sa.root=function(){return this._root},Sa.size=function(){var n=0;return this.visit(function(a){if(!a.length)do++n;while(a=a.next)}),n},Sa.visit=function(n){var a,l,f,m,_,E,x=[],M=this._root;for(M&&x.push(new Ea(M,this._x0,this._y0,this._x1,this._y1));a=x.pop();)if(!n(M=a.node,f=a.x0,m=a.y0,_=a.x1,E=a.y1)&&M.length){var N=(f+_)/2,R=(m+E)/2;(l=M[3])&&x.push(new Ea(l,N,R,_,E)),(l=M[2])&&x.push(new Ea(l,f,R,N,E)),(l=M[1])&&x.push(new Ea(l,N,m,_,R)),(l=M[0])&&x.push(new Ea(l,f,m,N,R))}return this},Sa.visitAfter=function(n){var a,l=[],f=[];for(this._root&&l.push(new Ea(this._root,this._x0,this._y0,this._x1,this._y1));a=l.pop();){var m=a.node;if(m.length){var _,E=a.x0,x=a.y0,M=a.x1,N=a.y1,R=(E+M)/2,Y=(x+N)/2;(_=m[0])&&l.push(new Ea(_,E,x,R,Y)),(_=m[1])&&l.push(new Ea(_,R,x,M,Y)),(_=m[2])&&l.push(new Ea(_,E,Y,R,N)),(_=m[3])&&l.push(new Ea(_,R,Y,M,N))}f.push(a)}for(;a=f.pop();)n(a.node,a.x0,a.y0,a.x1,a.y1);return this},Sa.x=function(n){return arguments.length?(this._x=n,this):this._x},Sa.y=function(n){return arguments.length?(this._y=n,this):this._y};var Rl=Math.PI*(3-Math.sqrt(5));function Dw(n){var a,l=1,f=.001,m=1-Math.pow(f,1/300),_=0,E=.6,x=qs(),M=fe(R),N=tn("tick","end");function R(){Y(),N.call("tick",a),l<f&&(M.stop(),N.call("end",a))}function Y(W){var J,Q,Z=n.length;W===void 0&&(W=1);for(var at=0;at<W;++at)for(l+=(_-l)*m,x.each(function(nt){nt(l)}),J=0;J<Z;++J)(Q=n[J]).fx==null?Q.x+=Q.vx*=E:(Q.x=Q.fx,Q.vx=0),Q.fy==null?Q.y+=Q.vy*=E:(Q.y=Q.fy,Q.vy=0);return a}function L(){for(var W,J=0,Q=n.length;J<Q;++J){if((W=n[J]).index=J,W.fx!=null&&(W.x=W.fx),W.fy!=null&&(W.y=W.fy),isNaN(W.x)||isNaN(W.y)){var Z=10*Math.sqrt(J),at=J*Rl;W.x=Z*Math.cos(at),W.y=Z*Math.sin(at)}(isNaN(W.vx)||isNaN(W.vy))&&(W.vx=W.vy=0)}}function $(W){return W.initialize&&W.initialize(n),W}return n==null&&(n=[]),L(),a={tick:Y,restart:function(){return M.restart(R),a},stop:function(){return M.stop(),a},nodes:function(W){return arguments.length?(n=W,L(),x.each($),a):n},alpha:function(W){return arguments.length?(l=+W,a):l},alphaMin:function(W){return arguments.length?(f=+W,a):f},alphaDecay:function(W){return arguments.length?(m=+W,a):+m},alphaTarget:function(W){return arguments.length?(_=+W,a):_},velocityDecay:function(W){return arguments.length?(E=1-W,a):1-E},force:function(W,J){return arguments.length>1?(J==null?x.remove(W):x.set(W,$(J)),a):x.get(W)},find:function(W,J,Q){var Z,at,nt,dt,Mt,Wt=0,Qt=n.length;for(Q==null?Q=1/0:Q*=Q,Wt=0;Wt<Qt;++Wt)(nt=(Z=W-(dt=n[Wt]).x)*Z+(at=J-dt.y)*at)<Q&&(Mt=dt,Q=nt);return Mt},on:function(W,J){return arguments.length>1?(N.on(W,J),a):N.on(W)}}}function Nw(){var n,a,l,f,m=Ui(-30),_=1,E=1/0,x=.81;function M(L){var $,W=n.length,J=vf(n,Mw,Aw).visitAfter(R);for(l=L,$=0;$<W;++$)a=n[$],J.visit(Y)}function N(){if(n){var L,$,W=n.length;for(f=new Array(W),L=0;L<W;++L)$=n[L],f[$.index]=+m($,L,n)}}function R(L){var $,W,J,Q,Z,at=0,nt=0;if(L.length){for(J=Q=Z=0;Z<4;++Z)($=L[Z])&&(W=Math.abs($.value))&&(at+=$.value,nt+=W,J+=W*$.x,Q+=W*$.y);L.x=J/nt,L.y=Q/nt}else{($=L).x=$.data.x,$.y=$.data.y;do at+=f[$.data.index];while($=$.next)}L.value=at}function Y(L,$,W,J){if(!L.value)return!0;var Q=L.x-a.x,Z=L.y-a.y,at=J-$,nt=Q*Q+Z*Z;if(at*at/x<nt)return nt<E&&(Q===0&&(nt+=(Q=Ac())*Q),Z===0&&(nt+=(Z=Ac())*Z),nt<_&&(nt=Math.sqrt(_*nt)),a.vx+=Q*L.value*l/nt,a.vy+=Z*L.value*l/nt),!0;if(!(L.length||nt>=E)){(L.data!==a||L.next)&&(Q===0&&(nt+=(Q=Ac())*Q),Z===0&&(nt+=(Z=Ac())*Z),nt<_&&(nt=Math.sqrt(_*nt)));do L.data!==a&&(at=f[L.data.index]*l/nt,a.vx+=Q*at,a.vy+=Z*at);while(L=L.next)}}return M.initialize=function(L){n=L,N()},M.strength=function(L){return arguments.length?(m=typeof L=="function"?L:Ui(+L),N(),M):m},M.distanceMin=function(L){return arguments.length?(_=L*L,M):Math.sqrt(_)},M.distanceMax=function(L){return arguments.length?(E=L*L,M):Math.sqrt(E)},M.theta=function(L){return arguments.length?(x=L*L,M):Math.sqrt(x)},M}function Ow(n,a,l){var f,m,_,E=Ui(.1);function x(N){for(var R=0,Y=f.length;R<Y;++R){var L=f[R],$=L.x-a||1e-6,W=L.y-l||1e-6,J=Math.sqrt($*$+W*W),Q=(_[R]-J)*m[R]*N/J;L.vx+=$*Q,L.vy+=W*Q}}function M(){if(f){var N,R=f.length;for(m=new Array(R),_=new Array(R),N=0;N<R;++N)_[N]=+n(f[N],N,f),m[N]=isNaN(_[N])?0:+E(f[N],N,f)}}return typeof n!="function"&&(n=Ui(+n)),a==null&&(a=0),l==null&&(l=0),x.initialize=function(N){f=N,M()},x.strength=function(N){return arguments.length?(E=typeof N=="function"?N:Ui(+N),M(),x):E},x.radius=function(N){return arguments.length?(n=typeof N=="function"?N:Ui(+N),M(),x):n},x.x=function(N){return arguments.length?(a=+N,x):a},x.y=function(N){return arguments.length?(l=+N,x):l},x}function p_(n){var a,l,f,m=Ui(.1);function _(x){for(var M,N=0,R=a.length;N<R;++N)(M=a[N]).vx+=(f[N]-M.x)*l[N]*x}function E(){if(a){var x,M=a.length;for(l=new Array(M),f=new Array(M),x=0;x<M;++x)l[x]=isNaN(f[x]=+n(a[x],x,a))?0:+m(a[x],x,a)}}return typeof n!="function"&&(n=Ui(n==null?0:+n)),_.initialize=function(x){a=x,E()},_.strength=function(x){return arguments.length?(m=typeof x=="function"?x:Ui(+x),E(),_):m},_.x=function(x){return arguments.length?(n=typeof x=="function"?x:Ui(+x),E(),_):n},_}function Kg(n){var a,l,f,m=Ui(.1);function _(x){for(var M,N=0,R=a.length;N<R;++N)(M=a[N]).vy+=(f[N]-M.y)*l[N]*x}function E(){if(a){var x,M=a.length;for(l=new Array(M),f=new Array(M),x=0;x<M;++x)l[x]=isNaN(f[x]=+n(a[x],x,a))?0:+m(a[x],x,a)}}return typeof n!="function"&&(n=Ui(n==null?0:+n)),_.initialize=function(x){a=x,E()},_.strength=function(x){return arguments.length?(m=typeof x=="function"?x:Ui(+x),E(),_):m},_.y=function(x){return arguments.length?(n=typeof x=="function"?x:Ui(+x),E(),_):n},_}function _f(n,a){if((l=(n=a?n.toExponential(a-1):n.toExponential()).indexOf("e"))<0)return null;var l,f=n.slice(0,l);return[f.length>1?f[0]+f.slice(2):f,+n.slice(l+1)]}function Eu(n){return(n=_f(Math.abs(n)))?n[1]:NaN}var Qg,Lw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bf(n){if(!(a=Lw.exec(n)))throw new Error("invalid format: "+n);var a;return new A0({fill:a[1],align:a[2],sign:a[3],symbol:a[4],zero:a[5],width:a[6],comma:a[7],precision:a[8]&&a[8].slice(1),trim:a[9],type:a[10]})}function A0(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}function g_(n,a){var l=_f(n,a);if(!l)return n+"";var f=l[0],m=l[1];return m<0?"0."+new Array(-m).join("0")+f:f.length>m+1?f.slice(0,m+1)+"."+f.slice(m+1):f+new Array(m-f.length+2).join("0")}bf.prototype=A0.prototype,A0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const y_={"%":function(n,a){return(100*n).toFixed(a)},b:function(n){return Math.round(n).toString(2)},c:function(n){return n+""},d:function(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)},e:function(n,a){return n.toExponential(a)},f:function(n,a){return n.toFixed(a)},g:function(n,a){return n.toPrecision(a)},o:function(n){return Math.round(n).toString(8)},p:function(n,a){return g_(100*n,a)},r:g_,s:function(n,a){var l=_f(n,a);if(!l)return n+"";var f=l[0],m=l[1],_=m-(Qg=3*Math.max(-8,Math.min(8,Math.floor(m/3))))+1,E=f.length;return _===E?f:_>E?f+new Array(_-E+1).join("0"):_>0?f.slice(0,_)+"."+f.slice(_):"0."+new Array(1-_).join("0")+_f(n,Math.max(0,a+_-1))[0]},X:function(n){return Math.round(n).toString(16).toUpperCase()},x:function(n){return Math.round(n).toString(16)}};function m_(n){return n}var D0,N0,Jg,v_=Array.prototype.map,__=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b_(n){var a,l,f=n.grouping===void 0||n.thousands===void 0?m_:(a=v_.call(n.grouping,Number),l=n.thousands+"",function(L,$){for(var W=L.length,J=[],Q=0,Z=a[0],at=0;W>0&&Z>0&&(at+Z+1>$&&(Z=Math.max(1,$-at)),J.push(L.substring(W-=Z,W+Z)),!((at+=Z+1)>$));)Z=a[Q=(Q+1)%a.length];return J.reverse().join(l)}),m=n.currency===void 0?"":n.currency[0]+"",_=n.currency===void 0?"":n.currency[1]+"",E=n.decimal===void 0?".":n.decimal+"",x=n.numerals===void 0?m_:function(L){return function($){return $.replace(/[0-9]/g,function(W){return L[+W]})}}(v_.call(n.numerals,String)),M=n.percent===void 0?"%":n.percent+"",N=n.minus===void 0?"-":n.minus+"",R=n.nan===void 0?"NaN":n.nan+"";function Y(L){var $=(L=bf(L)).fill,W=L.align,J=L.sign,Q=L.symbol,Z=L.zero,at=L.width,nt=L.comma,dt=L.precision,Mt=L.trim,Wt=L.type;Wt==="n"?(nt=!0,Wt="g"):y_[Wt]||(dt===void 0&&(dt=12),Mt=!0,Wt="g"),(Z||$==="0"&&W==="=")&&(Z=!0,$="0",W="=");var Qt=Q==="$"?m:Q==="#"&&/[boxX]/.test(Wt)?"0"+Wt.toLowerCase():"",be=Q==="$"?_:/[%p]/.test(Wt)?M:"",zt=y_[Wt],ce=/[defgprs%]/.test(Wt);function ft(Et){var re,Zt,ie,Ae=Qt,Ue=be;if(Wt==="c")Ue=zt(Et)+Ue,Et="";else{var xn=(Et=+Et)<0||1/Et<0;if(Et=isNaN(Et)?R:zt(Math.abs(Et),dt),Mt&&(Et=function(nn){t:for(var pr,Ln=nn.length,Nn=1,ur=-1;Nn<Ln;++Nn)switch(nn[Nn]){case".":ur=pr=Nn;break;case"0":ur===0&&(ur=Nn),pr=Nn;break;default:if(!+nn[Nn])break t;ur>0&&(ur=0)}return ur>0?nn.slice(0,ur)+nn.slice(pr+1):nn}(Et)),xn&&+Et==0&&J!=="+"&&(xn=!1),Ae=(xn?J==="("?J:N:J==="-"||J==="("?"":J)+Ae,Ue=(Wt==="s"?__[8+Qg/3]:"")+Ue+(xn&&J==="("?")":""),ce){for(re=-1,Zt=Et.length;++re<Zt;)if(48>(ie=Et.charCodeAt(re))||ie>57){Ue=(ie===46?E+Et.slice(re+1):Et.slice(re))+Ue,Et=Et.slice(0,re);break}}}nt&&!Z&&(Et=f(Et,1/0));var Jn=Ae.length+Et.length+Ue.length,zn=Jn<at?new Array(at-Jn+1).join($):"";switch(nt&&Z&&(Et=f(zn+Et,zn.length?at-Ue.length:1/0),zn=""),W){case"<":Et=Ae+Et+Ue+zn;break;case"=":Et=Ae+zn+Et+Ue;break;case"^":Et=zn.slice(0,Jn=zn.length>>1)+Ae+Et+Ue+zn.slice(Jn);break;default:Et=zn+Ae+Et+Ue}return x(Et)}return dt=dt===void 0?6:/[gprs]/.test(Wt)?Math.max(1,Math.min(21,dt)):Math.max(0,Math.min(20,dt)),ft.toString=function(){return L+""},ft}return{format:Y,formatPrefix:function(L,$){var W=Y(((L=bf(L)).type="f",L)),J=3*Math.max(-8,Math.min(8,Math.floor(Eu($)/3))),Q=Math.pow(10,-J),Z=__[8+J/3];return function(at){return W(Q*at)+Z}}}}function w_(n){return D0=b_(n),N0=D0.format,Jg=D0.formatPrefix,D0}function t2(n){return Math.max(0,-Eu(Math.abs(n)))}function x_(n,a){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Eu(a)/3)))-Eu(Math.abs(n)))}function k_(n,a){return n=Math.abs(n),a=Math.abs(a)-n,Math.max(0,Eu(a)-Eu(n))+1}function Dc(){return new O0}function O0(){this.reset()}w_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),O0.prototype={constructor:O0,reset:function(){this.s=this.t=0},add:function(n){T_(L0,n,this.t),T_(this,L0.s,this.s),this.s?this.t+=L0.t:this.s=L0.t},valueOf:function(){return this.s}};var L0=new O0;function T_(n,a,l){var f=n.s=a+l,m=f-a,_=f-m;n.t=a-_+(l-m)}var In=1e-6,wf=1e-12,rr=Math.PI,yi=rr/2,Il=rr/4,Rr=2*rr,Yr=180/rr,wn=rr/180,Se=Math.abs,Nc=Math.atan,aa=Math.atan2,hn=Math.cos,ms=Math.ceil,E_=Math.exp,Fl=Math.log,B0=Math.pow,an=Math.sin,xr=Math.sign||function(n){return n>0?1:n<0?-1:0},Si=Math.sqrt,Xi=Math.tan;function Oc(n){return n>1?0:n<-1?rr:Math.acos(n)}function Ca(n){return n>1?yi:n<-1?-yi:Math.asin(n)}function R0(n){return(n=an(n/2))*n}function kr(){}function Zs(n,a){n&&Pl.hasOwnProperty(n.type)&&Pl[n.type](n,a)}var Ma={Feature:function(n,a){Zs(n.geometry,a)},FeatureCollection:function(n,a){for(var l=n.features,f=-1,m=l.length;++f<m;)Zs(l[f].geometry,a)}},Pl={Sphere:function(n,a){a.sphere()},Point:function(n,a){n=n.coordinates,a.point(n[0],n[1],n[2])},MultiPoint:function(n,a){for(var l=n.coordinates,f=-1,m=l.length;++f<m;)n=l[f],a.point(n[0],n[1],n[2])},LineString:function(n,a){Yl(n.coordinates,a,0)},MultiLineString:function(n,a){for(var l=n.coordinates,f=-1,m=l.length;++f<m;)Yl(l[f],a,0)},Polygon:function(n,a){xf(n.coordinates,a)},MultiPolygon:function(n,a){for(var l=n.coordinates,f=-1,m=l.length;++f<m;)xf(l[f],a)},GeometryCollection:function(n,a){for(var l=n.geometries,f=-1,m=l.length;++f<m;)Zs(l[f],a)}};function Yl(n,a,l){var f,m=-1,_=n.length-l;for(a.lineStart();++m<_;)f=n[m],a.point(f[0],f[1],f[2]);a.lineEnd()}function xf(n,a){var l=-1,f=n.length;for(a.polygonStart();++l<f;)Yl(n[l],a,1);a.polygonEnd()}function jo(n,a){n&&Ma.hasOwnProperty(n.type)?Ma[n.type](n,a):Zs(n,a)}var e2,S_,n2,r2,i2,I0=Dc(),F0=Dc(),ao={point:kr,lineStart:kr,lineEnd:kr,polygonStart:function(){I0.reset(),ao.lineStart=a2,ao.lineEnd=C_},polygonEnd:function(){var n=+I0;F0.add(n<0?Rr+n:n),this.lineStart=this.lineEnd=this.point=kr},sphere:function(){F0.add(Rr)}};function a2(){ao.point=M_}function C_(){wo(e2,S_)}function M_(n,a){ao.point=wo,e2=n,S_=a,n2=n*=wn,r2=hn(a=(a*=wn)/2+Il),i2=an(a)}function wo(n,a){var l=(n*=wn)-n2,f=l>=0?1:-1,m=f*l,_=hn(a=(a*=wn)/2+Il),E=an(a),x=i2*E,M=r2*_+x*hn(m),N=x*f*an(m);I0.add(aa(N,M)),n2=n,r2=_,i2=E}function Bw(n){return F0.reset(),jo(n,ao),2*F0}function P0(n){return[aa(n[1],n[0]),Ca(n[2])]}function xo(n){var a=n[0],l=n[1],f=hn(l);return[f*hn(a),f*an(a),an(l)]}function Y0(n,a){return n[0]*a[0]+n[1]*a[1]+n[2]*a[2]}function jl(n,a){return[n[1]*a[2]-n[2]*a[1],n[2]*a[0]-n[0]*a[2],n[0]*a[1]-n[1]*a[0]]}function zl(n,a){n[0]+=a[0],n[1]+=a[1],n[2]+=a[2]}function Su(n,a){return[n[0]*a,n[1]*a,n[2]*a]}function kf(n){var a=Si(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=a,n[1]/=a,n[2]/=a}var jr,Aa,si,Ua,Lc,o2,s2,Bc,zo,vs,Ul,Tf,Ef,Cu,Hl,$l,ko,Sf,j0,Xs,c2,z0,Wl,Da,pa,Ci,Cf=Dc(),Uo={point:Mu,lineStart:u2,lineEnd:l2,polygonStart:function(){Uo.point=ql,Uo.lineStart=D_,Uo.lineEnd=Mf,Cf.reset(),ao.polygonStart()},polygonEnd:function(){ao.polygonEnd(),Uo.point=Mu,Uo.lineStart=u2,Uo.lineEnd=l2,I0<0?(jr=-(si=180),Aa=-(Ua=90)):Cf>In?Ua=90:Cf<-1e-6&&(Aa=-90),vs[0]=jr,vs[1]=si},sphere:function(){jr=-(si=180),Aa=-(Ua=90)}};function Mu(n,a){zo.push(vs=[jr=n,si=n]),a<Aa&&(Aa=a),a>Ua&&(Ua=a)}function A_(n,a){var l=xo([n*wn,a*wn]);if(Bc){var f=jl(Bc,l),m=jl([f[1],-f[0],0],f);kf(m),m=P0(m);var _,E=n-Lc,x=E>0?1:-1,M=m[0]*Yr*x,N=Se(E)>180;N^(x*Lc<M&&M<x*n)?(_=m[1]*Yr)>Ua&&(Ua=_):N^(x*Lc<(M=(M+360)%360-180)&&M<x*n)?(_=-m[1]*Yr)<Aa&&(Aa=_):(a<Aa&&(Aa=a),a>Ua&&(Ua=a)),N?n<Lc?Na(jr,n)>Na(jr,si)&&(si=n):Na(n,si)>Na(jr,si)&&(jr=n):si>=jr?(n<jr&&(jr=n),n>si&&(si=n)):n>Lc?Na(jr,n)>Na(jr,si)&&(si=n):Na(n,si)>Na(jr,si)&&(jr=n)}else zo.push(vs=[jr=n,si=n]);a<Aa&&(Aa=a),a>Ua&&(Ua=a),Bc=l,Lc=n}function u2(){Uo.point=A_}function l2(){vs[0]=jr,vs[1]=si,Uo.point=Mu,Bc=null}function ql(n,a){if(Bc){var l=n-Lc;Cf.add(Se(l)>180?l+(l>0?360:-360):l)}else o2=n,s2=a;ao.point(n,a),A_(n,a)}function D_(){ao.lineStart()}function Mf(){ql(o2,s2),ao.lineEnd(),Se(Cf)>In&&(jr=-(si=180)),vs[0]=jr,vs[1]=si,Bc=null}function Na(n,a){return(a-=n)<0?a+360:a}function h2(n,a){return n[0]-a[0]}function Vl(n,a){return n[0]<=n[1]?n[0]<=a&&a<=n[1]:a<n[0]||n[1]<a}function Af(n){var a,l,f,m,_,E,x;if(Ua=si=-(jr=Aa=1/0),zo=[],jo(n,Uo),l=zo.length){for(zo.sort(h2),a=1,_=[f=zo[0]];a<l;++a)Vl(f,(m=zo[a])[0])||Vl(f,m[1])?(Na(f[0],m[1])>Na(f[0],f[1])&&(f[1]=m[1]),Na(m[0],f[1])>Na(f[0],f[1])&&(f[0]=m[0])):_.push(f=m);for(E=-1/0,a=0,f=_[l=_.length-1];a<=l;f=m,++a)m=_[a],(x=Na(f[1],m[0]))>E&&(E=x,jr=m[0],si=f[1])}return zo=vs=null,jr===1/0||Aa===1/0?[[NaN,NaN],[NaN,NaN]]:[[jr,Aa],[si,Ua]]}var oo={sphere:kr,point:U0,lineStart:N_,lineEnd:O_,polygonStart:function(){oo.lineStart=Df,oo.lineEnd=Nf},polygonEnd:function(){oo.lineStart=N_,oo.lineEnd=O_}};function U0(n,a){n*=wn;var l=hn(a*=wn);mi(l*hn(n),l*an(n),an(a))}function mi(n,a,l){++Ul,Ef+=(n-Ef)/Ul,Cu+=(a-Cu)/Ul,Hl+=(l-Hl)/Ul}function N_(){oo.point=Rw}function Rw(n,a){n*=wn;var l=hn(a*=wn);Da=l*hn(n),pa=l*an(n),Ci=an(a),oo.point=Tr,mi(Da,pa,Ci)}function Tr(n,a){n*=wn;var l=hn(a*=wn),f=l*hn(n),m=l*an(n),_=an(a),E=aa(Si((E=pa*_-Ci*m)*E+(E=Ci*f-Da*_)*E+(E=Da*m-pa*f)*E),Da*f+pa*m+Ci*_);Tf+=E,$l+=E*(Da+(Da=f)),ko+=E*(pa+(pa=m)),Sf+=E*(Ci+(Ci=_)),mi(Da,pa,Ci)}function O_(){oo.point=U0}function Df(){oo.point=Iw}function Nf(){L_(z0,Wl),oo.point=U0}function Iw(n,a){z0=n,Wl=a,n*=wn,a*=wn,oo.point=L_;var l=hn(a);Da=l*hn(n),pa=l*an(n),Ci=an(a),mi(Da,pa,Ci)}function L_(n,a){n*=wn;var l=hn(a*=wn),f=l*hn(n),m=l*an(n),_=an(a),E=pa*_-Ci*m,x=Ci*f-Da*_,M=Da*m-pa*f,N=Si(E*E+x*x+M*M),R=Ca(N),Y=N&&-R/N;j0+=Y*E,Xs+=Y*x,c2+=Y*M,Tf+=R,$l+=R*(Da+(Da=f)),ko+=R*(pa+(pa=m)),Sf+=R*(Ci+(Ci=_)),mi(Da,pa,Ci)}function Fw(n){Ul=Tf=Ef=Cu=Hl=$l=ko=Sf=j0=Xs=c2=0,jo(n,oo);var a=j0,l=Xs,f=c2,m=a*a+l*l+f*f;return m<wf&&(a=$l,l=ko,f=Sf,Tf<In&&(a=Ef,l=Cu,f=Hl),(m=a*a+l*l+f*f)<wf)?[NaN,NaN]:[aa(l,a)*Yr,Ca(f/Si(m))*Yr]}function Gl(n){return function(){return n}}function f2(n,a){function l(f,m){return f=n(f,m),a(f[0],f[1])}return n.invert&&a.invert&&(l.invert=function(f,m){return(f=a.invert(f,m))&&n.invert(f[0],f[1])}),l}function H0(n,a){return[Se(n)>rr?n+Math.round(-n/Rr)*Rr:n,a]}function $0(n,a,l){return(n%=Rr)?a||l?f2(R_(n),I_(a,l)):R_(n):a||l?I_(a,l):H0}function B_(n){return function(a,l){return[(a+=n)>rr?a-Rr:a<-rr?a+Rr:a,l]}}function R_(n){var a=B_(n);return a.invert=B_(-n),a}function I_(n,a){var l=hn(n),f=an(n),m=hn(a),_=an(a);function E(x,M){var N=hn(M),R=hn(x)*N,Y=an(x)*N,L=an(M),$=L*l+R*f;return[aa(Y*m-$*_,R*l-L*f),Ca($*m+Y*_)]}return E.invert=function(x,M){var N=hn(M),R=hn(x)*N,Y=an(x)*N,L=an(M),$=L*m-Y*_;return[aa(Y*m+L*_,R*l+$*f),Ca($*l-R*f)]},E}function d2(n){function a(l){return(l=n(l[0]*wn,l[1]*wn))[0]*=Yr,l[1]*=Yr,l}return n=$0(n[0]*wn,n[1]*wn,n.length>2?n[2]*wn:0),a.invert=function(l){return(l=n.invert(l[0]*wn,l[1]*wn))[0]*=Yr,l[1]*=Yr,l},a}function F_(n,a,l,f,m,_){if(l){var E=hn(a),x=an(a),M=f*l;m==null?(m=a+f*Rr,_=a-M/2):(m=p2(E,m),_=p2(E,_),(f>0?m<_:m>_)&&(m+=f*Rr));for(var N,R=m;f>0?R>_:R<_;R-=M)N=P0([E,-x*hn(R),-x*an(R)]),n.point(N[0],N[1])}}function p2(n,a){(a=xo(a))[0]-=n,kf(a);var l=Oc(-a[1]);return((-a[2]<0?-l:l)+Rr-In)%Rr}function Pw(){var n,a,l=Gl([0,0]),f=Gl(90),m=Gl(6),_={point:function(x,M){n.push(x=a(x,M)),x[0]*=Yr,x[1]*=Yr}};function E(){var x=l.apply(this,arguments),M=f.apply(this,arguments)*wn,N=m.apply(this,arguments)*wn;return n=[],a=$0(-x[0]*wn,-x[1]*wn,0).invert,F_(_,M,N,1),x={type:"Polygon",coordinates:[n]},n=a=null,x}return E.center=function(x){return arguments.length?(l=typeof x=="function"?x:Gl([+x[0],+x[1]]),E):l},E.radius=function(x){return arguments.length?(f=typeof x=="function"?x:Gl(+x),E):f},E.precision=function(x){return arguments.length?(m=typeof x=="function"?x:Gl(+x),E):m},E}function P_(){var n,a=[];return{point:function(l,f,m){n.push([l,f,m])},lineStart:function(){a.push(n=[])},lineEnd:kr,rejoin:function(){a.length>1&&a.push(a.pop().concat(a.shift()))},result:function(){var l=a;return a=[],n=null,l}}}function W0(n,a){return Se(n[0]-a[0])<In&&Se(n[1]-a[1])<In}function q0(n,a,l,f){this.x=n,this.z=a,this.o=l,this.e=f,this.v=!1,this.n=this.p=null}function Y_(n,a,l,f,m){var _,E,x=[],M=[];if(n.forEach(function(W){if(!((J=W.length-1)<=0)){var J,Q,Z=W[0],at=W[J];if(W0(Z,at)){if(!Z[2]&&!at[2]){for(m.lineStart(),_=0;_<J;++_)m.point((Z=W[_])[0],Z[1]);return void m.lineEnd()}at[0]+=2e-6}x.push(Q=new q0(Z,W,null,!0)),M.push(Q.o=new q0(Z,null,Q,!1)),x.push(Q=new q0(at,W,null,!1)),M.push(Q.o=new q0(at,null,Q,!0))}}),x.length){for(M.sort(a),j_(x),j_(M),_=0,E=M.length;_<E;++_)M[_].e=l=!l;for(var N,R,Y=x[0];;){for(var L=Y,$=!0;L.v;)if((L=L.n)===Y)return;N=L.z,m.lineStart();do{if(L.v=L.o.v=!0,L.e){if($)for(_=0,E=N.length;_<E;++_)m.point((R=N[_])[0],R[1]);else f(L.x,L.n.x,1,m);L=L.n}else{if($)for(N=L.p.z,_=N.length-1;_>=0;--_)m.point((R=N[_])[0],R[1]);else f(L.x,L.p.x,-1,m);L=L.p}N=(L=L.o).z,$=!$}while(!L.v);m.lineEnd()}}}function j_(n){if(a=n.length){for(var a,l,f=0,m=n[0];++f<a;)m.n=l=n[f],l.p=m,m=l;m.n=l=n[0],l.p=m}}H0.invert=H0;var g2=Dc();function V0(n){return Se(n[0])<=rr?n[0]:xr(n[0])*((Se(n[0])+rr)%Rr-rr)}function z_(n,a){var l=V0(a),f=a[1],m=an(f),_=[an(l),-hn(l),0],E=0,x=0;g2.reset(),m===1?f=yi+In:m===-1&&(f=-yi-In);for(var M=0,N=n.length;M<N;++M)if(Y=(R=n[M]).length)for(var R,Y,L=R[Y-1],$=V0(L),W=L[1]/2+Il,J=an(W),Q=hn(W),Z=0;Z<Y;++Z,$=nt,J=Mt,Q=Wt,L=at){var at=R[Z],nt=V0(at),dt=at[1]/2+Il,Mt=an(dt),Wt=hn(dt),Qt=nt-$,be=Qt>=0?1:-1,zt=be*Qt,ce=zt>rr,ft=J*Mt;if(g2.add(aa(ft*be*an(zt),Q*Wt+ft*hn(zt))),E+=ce?Qt+be*Rr:Qt,ce^$>=l^nt>=l){var Et=jl(xo(L),xo(at));kf(Et);var re=jl(_,Et);kf(re);var Zt=(ce^Qt>=0?-1:1)*Ca(re[2]);(f>Zt||f===Zt&&(Et[0]||Et[1]))&&(x+=ce^Qt>=0?1:-1)}}return(E<-1e-6||E<In&&g2<-1e-6)^1&x}function U_(n,a,l,f){return function(m){var _,E,x,M=a(m),N=P_(),R=a(N),Y=!1,L={point:$,lineStart:J,lineEnd:Q,polygonStart:function(){L.point=Z,L.lineStart=at,L.lineEnd=nt,E=[],_=[]},polygonEnd:function(){L.point=$,L.lineStart=J,L.lineEnd=Q,E=le(E);var dt=z_(_,f);E.length?(Y||(m.polygonStart(),Y=!0),Y_(E,H_,dt,l,m)):dt&&(Y||(m.polygonStart(),Y=!0),m.lineStart(),l(null,null,1,m),m.lineEnd()),Y&&(m.polygonEnd(),Y=!1),E=_=null},sphere:function(){m.polygonStart(),m.lineStart(),l(null,null,1,m),m.lineEnd(),m.polygonEnd()}};function $(dt,Mt){n(dt,Mt)&&m.point(dt,Mt)}function W(dt,Mt){M.point(dt,Mt)}function J(){L.point=W,M.lineStart()}function Q(){L.point=$,M.lineEnd()}function Z(dt,Mt){x.push([dt,Mt]),R.point(dt,Mt)}function at(){R.lineStart(),x=[]}function nt(){Z(x[0][0],x[0][1]),R.lineEnd();var dt,Mt,Wt,Qt,be=R.clean(),zt=N.result(),ce=zt.length;if(x.pop(),_.push(x),x=null,ce)if(1&be){if((Mt=(Wt=zt[0]).length-1)>0){for(Y||(m.polygonStart(),Y=!0),m.lineStart(),dt=0;dt<Mt;++dt)m.point((Qt=Wt[dt])[0],Qt[1]);m.lineEnd()}}else ce>1&&2&be&&zt.push(zt.pop().concat(zt.shift())),E.push(zt.filter(Yw))}return L}}function Yw(n){return n.length>1}function H_(n,a){return((n=n.x)[0]<0?n[1]-yi-In:yi-n[1])-((a=a.x)[0]<0?a[1]-yi-In:yi-a[1])}const y2=U_(function(){return!0},function(n){var a,l=NaN,f=NaN,m=NaN;return{lineStart:function(){n.lineStart(),a=1},point:function(_,E){var x=_>0?rr:-rr,M=Se(_-l);Se(M-rr)<In?(n.point(l,f=(f+E)/2>0?yi:-yi),n.point(m,f),n.lineEnd(),n.lineStart(),n.point(x,f),n.point(_,f),a=0):m!==x&&M>=rr&&(Se(l-m)<In&&(l-=m*In),Se(_-x)<In&&(_-=x*In),f=function(N,R,Y,L){var $,W,J=an(N-Y);return Se(J)>In?Nc((an(R)*(W=hn(L))*an(Y)-an(L)*($=hn(R))*an(N))/($*W*J)):(R+L)/2}(l,f,_,E),n.point(m,f),n.lineEnd(),n.lineStart(),n.point(x,f),a=0),n.point(l=_,f=E),m=x},lineEnd:function(){n.lineEnd(),l=f=NaN},clean:function(){return 2-a}}},function(n,a,l,f){var m;if(n==null)m=l*yi,f.point(-rr,m),f.point(0,m),f.point(rr,m),f.point(rr,0),f.point(rr,-m),f.point(0,-m),f.point(-rr,-m),f.point(-rr,0),f.point(-rr,m);else if(Se(n[0]-a[0])>In){var _=n[0]<a[0]?rr:-rr;m=l*_/2,f.point(-_,m),f.point(0,m),f.point(_,m)}else f.point(a[0],a[1])},[-rr,-yi]);function $_(n){var a=hn(n),l=6*wn,f=a>0,m=Se(a)>In;function _(M,N){return hn(M)*hn(N)>a}function E(M,N,R){var Y=[1,0,0],L=jl(xo(M),xo(N)),$=Y0(L,L),W=L[0],J=$-W*W;if(!J)return!R&&M;var Q=a*$/J,Z=-a*W/J,at=jl(Y,L),nt=Su(Y,Q);zl(nt,Su(L,Z));var dt=at,Mt=Y0(nt,dt),Wt=Y0(dt,dt),Qt=Mt*Mt-Wt*(Y0(nt,nt)-1);if(!(Qt<0)){var be=Si(Qt),zt=Su(dt,(-Mt-be)/Wt);if(zl(zt,nt),zt=P0(zt),!R)return zt;var ce,ft=M[0],Et=N[0],re=M[1],Zt=N[1];Et<ft&&(ce=ft,ft=Et,Et=ce);var ie=Et-ft,Ae=Se(ie-rr)<In;if(!Ae&&Zt<re&&(ce=re,re=Zt,Zt=ce),Ae||ie<In?Ae?re+Zt>0^zt[1]<(Se(zt[0]-ft)<In?re:Zt):re<=zt[1]&&zt[1]<=Zt:ie>rr^(ft<=zt[0]&&zt[0]<=Et)){var Ue=Su(dt,(-Mt+be)/Wt);return zl(Ue,nt),[zt,P0(Ue)]}}}function x(M,N){var R=f?n:rr-n,Y=0;return M<-R?Y|=1:M>R&&(Y|=2),N<-R?Y|=4:N>R&&(Y|=8),Y}return U_(_,function(M){var N,R,Y,L,$;return{lineStart:function(){L=Y=!1,$=1},point:function(W,J){var Q,Z=[W,J],at=_(W,J),nt=f?at?0:x(W,J):at?x(W+(W<0?rr:-rr),J):0;if(!N&&(L=Y=at)&&M.lineStart(),at!==Y&&(!(Q=E(N,Z))||W0(N,Q)||W0(Z,Q))&&(Z[2]=1),at!==Y)$=0,at?(M.lineStart(),Q=E(Z,N),M.point(Q[0],Q[1])):(Q=E(N,Z),M.point(Q[0],Q[1],2),M.lineEnd()),N=Q;else if(m&&N&&f^at){var dt;nt&R||!(dt=E(Z,N,!0))||($=0,f?(M.lineStart(),M.point(dt[0][0],dt[0][1]),M.point(dt[1][0],dt[1][1]),M.lineEnd()):(M.point(dt[1][0],dt[1][1]),M.lineEnd(),M.lineStart(),M.point(dt[0][0],dt[0][1],3)))}!at||N&&W0(N,Z)||M.point(Z[0],Z[1]),N=Z,Y=at,R=nt},lineEnd:function(){Y&&M.lineEnd(),N=null},clean:function(){return $|(L&&Y)<<1}}},function(M,N,R,Y){F_(Y,n,l,R,M,N)},f?[0,-n]:[-rr,n-rr])}var Of=1e9,G0=-Of;function Z0(n,a,l,f){function m(N,R){return n<=N&&N<=l&&a<=R&&R<=f}function _(N,R,Y,L){var $=0,W=0;if(N==null||($=E(N,Y))!==(W=E(R,Y))||M(N,R)<0^Y>0)do L.point($===0||$===3?n:l,$>1?f:a);while(($=($+Y+4)%4)!==W);else L.point(R[0],R[1])}function E(N,R){return Se(N[0]-n)<In?R>0?0:3:Se(N[0]-l)<In?R>0?2:1:Se(N[1]-a)<In?R>0?1:0:R>0?3:2}function x(N,R){return M(N.x,R.x)}function M(N,R){var Y=E(N,1),L=E(R,1);return Y!==L?Y-L:Y===0?R[1]-N[1]:Y===1?N[0]-R[0]:Y===2?N[1]-R[1]:R[0]-N[0]}return function(N){var R,Y,L,$,W,J,Q,Z,at,nt,dt,Mt=N,Wt=P_(),Qt={point:be,lineStart:function(){Qt.point=zt,Y&&Y.push(L=[]),nt=!0,at=!1,Q=Z=NaN},lineEnd:function(){R&&(zt($,W),J&&at&&Wt.rejoin(),R.push(Wt.result())),Qt.point=be,at&&Mt.lineEnd()},polygonStart:function(){Mt=Wt,R=[],Y=[],dt=!0},polygonEnd:function(){var ce=function(){for(var re=0,Zt=0,ie=Y.length;Zt<ie;++Zt)for(var Ae,Ue,xn=Y[Zt],Jn=1,zn=xn.length,nn=xn[0],pr=nn[0],Ln=nn[1];Jn<zn;++Jn)Ae=pr,Ue=Ln,pr=(nn=xn[Jn])[0],Ln=nn[1],Ue<=f?Ln>f&&(pr-Ae)*(f-Ue)>(Ln-Ue)*(n-Ae)&&++re:Ln<=f&&(pr-Ae)*(f-Ue)<(Ln-Ue)*(n-Ae)&&--re;return re}(),ft=dt&&ce,Et=(R=le(R)).length;(ft||Et)&&(N.polygonStart(),ft&&(N.lineStart(),_(null,null,1,N),N.lineEnd()),Et&&Y_(R,x,ce,_,N),N.polygonEnd()),Mt=N,R=Y=L=null}};function be(ce,ft){m(ce,ft)&&Mt.point(ce,ft)}function zt(ce,ft){var Et=m(ce,ft);if(Y&&L.push([ce,ft]),nt)$=ce,W=ft,J=Et,nt=!1,Et&&(Mt.lineStart(),Mt.point(ce,ft));else if(Et&&at)Mt.point(ce,ft);else{var re=[Q=Math.max(G0,Math.min(Of,Q)),Z=Math.max(G0,Math.min(Of,Z))],Zt=[ce=Math.max(G0,Math.min(Of,ce)),ft=Math.max(G0,Math.min(Of,ft))];(function(ie,Ae,Ue,xn,Jn,zn){var nn,pr=ie[0],Ln=ie[1],Nn=0,ur=1,ua=Ae[0]-pr,Ri=Ae[1]-Ln;if(nn=Ue-pr,ua||!(nn>0)){if(nn/=ua,ua<0){if(nn<Nn)return;nn<ur&&(ur=nn)}else if(ua>0){if(nn>ur)return;nn>Nn&&(Nn=nn)}if(nn=Jn-pr,ua||!(nn<0)){if(nn/=ua,ua<0){if(nn>ur)return;nn>Nn&&(Nn=nn)}else if(ua>0){if(nn<Nn)return;nn<ur&&(ur=nn)}if(nn=xn-Ln,Ri||!(nn>0)){if(nn/=Ri,Ri<0){if(nn<Nn)return;nn<ur&&(ur=nn)}else if(Ri>0){if(nn>ur)return;nn>Nn&&(Nn=nn)}if(nn=zn-Ln,Ri||!(nn<0)){if(nn/=Ri,Ri<0){if(nn>ur)return;nn>Nn&&(Nn=nn)}else if(Ri>0){if(nn<Nn)return;nn<ur&&(ur=nn)}return Nn>0&&(ie[0]=pr+Nn*ua,ie[1]=Ln+Nn*Ri),ur<1&&(Ae[0]=pr+ur*ua,Ae[1]=Ln+ur*Ri),!0}}}}})(re,Zt,n,a,l,f)?(at||(Mt.lineStart(),Mt.point(re[0],re[1])),Mt.point(Zt[0],Zt[1]),Et||Mt.lineEnd(),dt=!1):Et&&(Mt.lineStart(),Mt.point(ce,ft),dt=!1)}Q=ce,Z=ft,at=Et}return Qt}}function jw(){var n,a,l,f=0,m=0,_=960,E=500;return l={stream:function(x){return n&&a===x?n:n=Z0(f,m,_,E)(a=x)},extent:function(x){return arguments.length?(f=+x[0][0],m=+x[0][1],_=+x[1][0],E=+x[1][1],n=a=null,l):[[f,m],[_,E]]}}}var X0,K0,Q0,m2=Dc(),Zl={sphere:kr,point:kr,lineStart:function(){Zl.point=Uw,Zl.lineEnd=zw},lineEnd:kr,polygonStart:kr,polygonEnd:kr};function zw(){Zl.point=Zl.lineEnd=kr}function Uw(n,a){X0=n*=wn,K0=an(a*=wn),Q0=hn(a),Zl.point=Hw}function Hw(n,a){n*=wn;var l=an(a*=wn),f=hn(a),m=Se(n-X0),_=hn(m),E=f*an(m),x=Q0*l-K0*f*_,M=K0*l+Q0*f*_;m2.add(aa(Si(E*E+x*x),M)),X0=n,K0=l,Q0=f}function W_(n){return m2.reset(),jo(n,Zl),+m2}var J0=[null,null],$w={type:"LineString",coordinates:J0};function t1(n,a){return J0[0]=n,J0[1]=a,W_($w)}var q_={Feature:function(n,a){return e1(n.geometry,a)},FeatureCollection:function(n,a){for(var l=n.features,f=-1,m=l.length;++f<m;)if(e1(l[f].geometry,a))return!0;return!1}},v2={Sphere:function(){return!0},Point:function(n,a){return V_(n.coordinates,a)},MultiPoint:function(n,a){for(var l=n.coordinates,f=-1,m=l.length;++f<m;)if(V_(l[f],a))return!0;return!1},LineString:function(n,a){return G_(n.coordinates,a)},MultiLineString:function(n,a){for(var l=n.coordinates,f=-1,m=l.length;++f<m;)if(G_(l[f],a))return!0;return!1},Polygon:function(n,a){return Z_(n.coordinates,a)},MultiPolygon:function(n,a){for(var l=n.coordinates,f=-1,m=l.length;++f<m;)if(Z_(l[f],a))return!0;return!1},GeometryCollection:function(n,a){for(var l=n.geometries,f=-1,m=l.length;++f<m;)if(e1(l[f],a))return!0;return!1}};function e1(n,a){return!(!n||!v2.hasOwnProperty(n.type))&&v2[n.type](n,a)}function V_(n,a){return t1(n,a)===0}function G_(n,a){for(var l,f,m,_=0,E=n.length;_<E;_++){if((f=t1(n[_],a))===0||_>0&&(m=t1(n[_],n[_-1]))>0&&l<=m&&f<=m&&(l+f-m)*(1-Math.pow((l-f)/m,2))<wf*m)return!0;l=f}return!1}function Z_(n,a){return!!z_(n.map(Ww),X_(a))}function Ww(n){return(n=n.map(X_)).pop(),n}function X_(n){return[n[0]*wn,n[1]*wn]}function K_(n,a){return(n&&q_.hasOwnProperty(n.type)?q_[n.type]:e1)(n,a)}function Q_(n,a,l){var f=et(n,a-In,l).concat(a);return function(m){return f.map(function(_){return[m,_]})}}function J_(n,a,l){var f=et(n,a-In,l).concat(a);return function(m){return f.map(function(_){return[_,m]})}}function tb(){var n,a,l,f,m,_,E,x,M,N,R,Y,L=10,$=L,W=90,J=360,Q=2.5;function Z(){return{type:"MultiLineString",coordinates:at()}}function at(){return et(ms(f/W)*W,l,W).map(R).concat(et(ms(x/J)*J,E,J).map(Y)).concat(et(ms(a/L)*L,n,L).filter(function(nt){return Se(nt%W)>In}).map(M)).concat(et(ms(_/$)*$,m,$).filter(function(nt){return Se(nt%J)>In}).map(N))}return Z.lines=function(){return at().map(function(nt){return{type:"LineString",coordinates:nt}})},Z.outline=function(){return{type:"Polygon",coordinates:[R(f).concat(Y(E).slice(1),R(l).reverse().slice(1),Y(x).reverse().slice(1))]}},Z.extent=function(nt){return arguments.length?Z.extentMajor(nt).extentMinor(nt):Z.extentMinor()},Z.extentMajor=function(nt){return arguments.length?(f=+nt[0][0],l=+nt[1][0],x=+nt[0][1],E=+nt[1][1],f>l&&(nt=f,f=l,l=nt),x>E&&(nt=x,x=E,E=nt),Z.precision(Q)):[[f,x],[l,E]]},Z.extentMinor=function(nt){return arguments.length?(a=+nt[0][0],n=+nt[1][0],_=+nt[0][1],m=+nt[1][1],a>n&&(nt=a,a=n,n=nt),_>m&&(nt=_,_=m,m=nt),Z.precision(Q)):[[a,_],[n,m]]},Z.step=function(nt){return arguments.length?Z.stepMajor(nt).stepMinor(nt):Z.stepMinor()},Z.stepMajor=function(nt){return arguments.length?(W=+nt[0],J=+nt[1],Z):[W,J]},Z.stepMinor=function(nt){return arguments.length?(L=+nt[0],$=+nt[1],Z):[L,$]},Z.precision=function(nt){return arguments.length?(Q=+nt,M=Q_(_,m,90),N=J_(a,n,Q),R=Q_(x,E,90),Y=J_(f,l,Q),Z):Q},Z.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function qw(){return tb()()}function Vw(n,a){var l=n[0]*wn,f=n[1]*wn,m=a[0]*wn,_=a[1]*wn,E=hn(f),x=an(f),M=hn(_),N=an(_),R=E*hn(l),Y=E*an(l),L=M*hn(m),$=M*an(m),W=2*Ca(Si(R0(_-f)+E*M*R0(m-l))),J=an(W),Q=W?function(Z){var at=an(Z*=W)/J,nt=an(W-Z)/J,dt=nt*R+at*L,Mt=nt*Y+at*$,Wt=nt*x+at*N;return[aa(Mt,dt)*Yr,aa(Wt,Si(dt*dt+Mt*Mt))*Yr]}:function(){return[l*Yr,f*Yr]};return Q.distance=W,Q}function Lf(n){return n}var eb,nb,n1,r1,i1=Dc(),_2=Dc(),Ks={point:kr,lineStart:kr,lineEnd:kr,polygonStart:function(){Ks.lineStart=a1,Ks.lineEnd=ib},polygonEnd:function(){Ks.lineStart=Ks.lineEnd=Ks.point=kr,i1.add(Se(_2)),_2.reset()},result:function(){var n=i1/2;return i1.reset(),n}};function a1(){Ks.point=Gw}function Gw(n,a){Ks.point=rb,eb=n1=n,nb=r1=a}function rb(n,a){_2.add(r1*n-n1*a),n1=n,r1=a}function ib(){rb(eb,nb)}const ab=Ks;var Qs=1/0,Rc=Qs,_s=-Qs,Ic=_s,Bf={point:function(n,a){n<Qs&&(Qs=n),n>_s&&(_s=n),a<Rc&&(Rc=a),a>Ic&&(Ic=a)},lineStart:kr,lineEnd:kr,polygonStart:kr,polygonEnd:kr,result:function(){var n=[[Qs,Rc],[_s,Ic]];return _s=Ic=-(Rc=Qs=1/0),n}};const Au=Bf;var Fc,Rf,Ha,Ho,If=0,b2=0,Pc=0,Ff=0,Pf=0,Xl=0,Yf=0,o1=0,jf=0,$o={point:bs,lineStart:s1,lineEnd:Js,polygonStart:function(){$o.lineStart=c1,$o.lineEnd=ob},polygonEnd:function(){$o.point=bs,$o.lineStart=s1,$o.lineEnd=Js},result:function(){var n=jf?[Yf/jf,o1/jf]:Xl?[Ff/Xl,Pf/Xl]:Pc?[If/Pc,b2/Pc]:[NaN,NaN];return If=b2=Pc=Ff=Pf=Xl=Yf=o1=jf=0,n}};function bs(n,a){If+=n,b2+=a,++Pc}function s1(){$o.point=ws}function ws(n,a){$o.point=Wo,bs(Ha=n,Ho=a)}function Wo(n,a){var l=n-Ha,f=a-Ho,m=Si(l*l+f*f);Ff+=m*(Ha+n)/2,Pf+=m*(Ho+a)/2,Xl+=m,bs(Ha=n,Ho=a)}function Js(){$o.point=bs}function c1(){$o.point=w2}function ob(){x2(Fc,Rf)}function w2(n,a){$o.point=x2,bs(Fc=Ha=n,Rf=Ho=a)}function x2(n,a){var l=n-Ha,f=a-Ho,m=Si(l*l+f*f);Ff+=m*(Ha+n)/2,Pf+=m*(Ho+a)/2,Xl+=m,Yf+=(m=Ho*n-Ha*a)*(Ha+n),o1+=m*(Ho+a),jf+=3*m,bs(Ha=n,Ho=a)}const k2=$o;function sb(n){this._context=n}sb.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(n,a){switch(this._point){case 0:this._context.moveTo(n,a),this._point=1;break;case 1:this._context.lineTo(n,a);break;default:this._context.moveTo(n+this._radius,a),this._context.arc(n,a,this._radius,0,Rr)}},result:kr};var T2,cb,ub,Du,Kl,zf=Dc(),Ql={point:kr,lineStart:function(){Ql.point=Zw},lineEnd:function(){T2&&E2(cb,ub),Ql.point=kr},polygonStart:function(){T2=!0},polygonEnd:function(){T2=null},result:function(){var n=+zf;return zf.reset(),n}};function Zw(n,a){Ql.point=E2,cb=Du=n,ub=Kl=a}function E2(n,a){Du-=n,Kl-=a,zf.add(Si(Du*Du+Kl*Kl)),Du=n,Kl=a}const lb=Ql;function hb(){this._string=[]}function fb(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function Xw(n,a){var l,f,m=4.5;function _(E){return E&&(typeof m=="function"&&f.pointRadius(+m.apply(this,arguments)),jo(E,l(f))),f.result()}return _.area=function(E){return jo(E,l(ab)),ab.result()},_.measure=function(E){return jo(E,l(lb)),lb.result()},_.bounds=function(E){return jo(E,l(Au)),Au.result()},_.centroid=function(E){return jo(E,l(k2)),k2.result()},_.projection=function(E){return arguments.length?(l=E==null?(n=null,Lf):(n=E).stream,_):n},_.context=function(E){return arguments.length?(f=E==null?(a=null,new hb):new sb(a=E),typeof m!="function"&&f.pointRadius(m),_):a},_.pointRadius=function(E){return arguments.length?(m=typeof E=="function"?E:(f.pointRadius(+E),+E),_):m},_.projection(n).context(a)}function Kw(n){return{stream:Uf(n)}}function Uf(n){return function(a){var l=new S2;for(var f in n)l[f]=n[f];return l.stream=a,l}}function S2(){}function C2(n,a,l){var f=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),f!=null&&n.clipExtent(null),jo(l,n.stream(Au)),a(Au.result()),f!=null&&n.clipExtent(f),n}function u1(n,a,l){return C2(n,function(f){var m=a[1][0]-a[0][0],_=a[1][1]-a[0][1],E=Math.min(m/(f[1][0]-f[0][0]),_/(f[1][1]-f[0][1])),x=+a[0][0]+(m-E*(f[1][0]+f[0][0]))/2,M=+a[0][1]+(_-E*(f[1][1]+f[0][1]))/2;n.scale(150*E).translate([x,M])},l)}function M2(n,a,l){return u1(n,[[0,0],a],l)}function A2(n,a,l){return C2(n,function(f){var m=+a,_=m/(f[1][0]-f[0][0]),E=(m-_*(f[1][0]+f[0][0]))/2,x=-_*f[0][1];n.scale(150*_).translate([E,x])},l)}function D2(n,a,l){return C2(n,function(f){var m=+a,_=m/(f[1][1]-f[0][1]),E=-_*f[0][0],x=(m-_*(f[1][1]+f[0][1]))/2;n.scale(150*_).translate([E,x])},l)}hb.prototype={_radius:4.5,_circle:fb(4.5),pointRadius:function(n){return(n=+n)!==this._radius&&(this._radius=n,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(n,a){switch(this._point){case 0:this._string.push("M",n,",",a),this._point=1;break;case 1:this._string.push("L",n,",",a);break;default:this._circle==null&&(this._circle=fb(this._radius)),this._string.push("M",n,",",a,this._circle)}},result:function(){if(this._string.length){var n=this._string.join("");return this._string=[],n}return null}},S2.prototype={constructor:S2,point:function(n,a){this.stream.point(n,a)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Qw=hn(30*wn);function db(n,a){return+a?function(l,f){function m(_,E,x,M,N,R,Y,L,$,W,J,Q,Z,at){var nt=Y-_,dt=L-E,Mt=nt*nt+dt*dt;if(Mt>4*f&&Z--){var Wt=M+W,Qt=N+J,be=R+Q,zt=Si(Wt*Wt+Qt*Qt+be*be),ce=Ca(be/=zt),ft=Se(Se(be)-1)<In||Se(x-$)<In?(x+$)/2:aa(Qt,Wt),Et=l(ft,ce),re=Et[0],Zt=Et[1],ie=re-_,Ae=Zt-E,Ue=dt*ie-nt*Ae;(Ue*Ue/Mt>f||Se((nt*ie+dt*Ae)/Mt-.5)>.3||M*W+N*J+R*Q<Qw)&&(m(_,E,x,M,N,R,re,Zt,ft,Wt/=zt,Qt/=zt,be,Z,at),at.point(re,Zt),m(re,Zt,ft,Wt,Qt,be,Y,L,$,W,J,Q,Z,at))}}return function(_){var E,x,M,N,R,Y,L,$,W,J,Q,Z,at={point:nt,lineStart:dt,lineEnd:Wt,polygonStart:function(){_.polygonStart(),at.lineStart=Qt},polygonEnd:function(){_.polygonEnd(),at.lineStart=dt}};function nt(ce,ft){ce=l(ce,ft),_.point(ce[0],ce[1])}function dt(){$=NaN,at.point=Mt,_.lineStart()}function Mt(ce,ft){var Et=xo([ce,ft]),re=l(ce,ft);m($,W,L,J,Q,Z,$=re[0],W=re[1],L=ce,J=Et[0],Q=Et[1],Z=Et[2],16,_),_.point($,W)}function Wt(){at.point=nt,_.lineEnd()}function Qt(){dt(),at.point=be,at.lineEnd=zt}function be(ce,ft){Mt(E=ce,ft),x=$,M=W,N=J,R=Q,Y=Z,at.point=Mt}function zt(){m($,W,L,J,Q,Z,x,M,E,N,R,Y,16,_),at.lineEnd=Wt,Wt()}return at}}(n,a):function(l){return Uf({point:function(f,m){f=l(f,m),this.stream.point(f[0],f[1])}})}(n)}var Jw=Uf({point:function(n,a){this.stream.point(n*wn,a*wn)}});function tx(n,a,l,f,m){function _(E,x){return[a+n*(E*=f),l-n*(x*=m)]}return _.invert=function(E,x){return[(E-a)/n*f,(l-x)/n*m]},_}function pb(n,a,l,f,m,_){var E=hn(_),x=an(_),M=E*n,N=x*n,R=E/n,Y=x/n,L=(x*l-E*a)/n,$=(x*a+E*l)/n;function W(J,Q){return[M*(J*=f)-N*(Q*=m)+a,l-N*J-M*Q]}return W.invert=function(J,Q){return[f*(R*J-Y*Q+L),m*($-Y*J-R*Q)]},W}function qo(n){return N2(function(){return n})()}function N2(n){var a,l,f,m,_,E,x,M,N,R,Y=150,L=480,$=250,W=0,J=0,Q=0,Z=0,at=0,nt=0,dt=1,Mt=1,Wt=null,Qt=y2,be=null,zt=Lf,ce=.5;function ft(ie){return M(ie[0]*wn,ie[1]*wn)}function Et(ie){return(ie=M.invert(ie[0],ie[1]))&&[ie[0]*Yr,ie[1]*Yr]}function re(){var ie=pb(Y,0,0,dt,Mt,nt).apply(null,a(W,J)),Ae=(nt?pb:tx)(Y,L-ie[0],$-ie[1],dt,Mt,nt);return l=$0(Q,Z,at),x=f2(a,Ae),M=f2(l,x),E=db(x,ce),Zt()}function Zt(){return N=R=null,ft}return ft.stream=function(ie){return N&&R===ie?N:N=Jw(function(Ae){return Uf({point:function(Ue,xn){var Jn=Ae(Ue,xn);return this.stream.point(Jn[0],Jn[1])}})}(l)(Qt(E(zt(R=ie)))))},ft.preclip=function(ie){return arguments.length?(Qt=ie,Wt=void 0,Zt()):Qt},ft.postclip=function(ie){return arguments.length?(zt=ie,be=f=m=_=null,Zt()):zt},ft.clipAngle=function(ie){return arguments.length?(Qt=+ie?$_(Wt=ie*wn):(Wt=null,y2),Zt()):Wt*Yr},ft.clipExtent=function(ie){return arguments.length?(zt=ie==null?(be=f=m=_=null,Lf):Z0(be=+ie[0][0],f=+ie[0][1],m=+ie[1][0],_=+ie[1][1]),Zt()):be==null?null:[[be,f],[m,_]]},ft.scale=function(ie){return arguments.length?(Y=+ie,re()):Y},ft.translate=function(ie){return arguments.length?(L=+ie[0],$=+ie[1],re()):[L,$]},ft.center=function(ie){return arguments.length?(W=ie[0]%360*wn,J=ie[1]%360*wn,re()):[W*Yr,J*Yr]},ft.rotate=function(ie){return arguments.length?(Q=ie[0]%360*wn,Z=ie[1]%360*wn,at=ie.length>2?ie[2]%360*wn:0,re()):[Q*Yr,Z*Yr,at*Yr]},ft.angle=function(ie){return arguments.length?(nt=ie%360*wn,re()):nt*Yr},ft.reflectX=function(ie){return arguments.length?(dt=ie?-1:1,re()):dt<0},ft.reflectY=function(ie){return arguments.length?(Mt=ie?-1:1,re()):Mt<0},ft.precision=function(ie){return arguments.length?(E=db(x,ce=ie*ie),Zt()):Si(ce)},ft.fitExtent=function(ie,Ae){return u1(ft,ie,Ae)},ft.fitSize=function(ie,Ae){return M2(ft,ie,Ae)},ft.fitWidth=function(ie,Ae){return A2(ft,ie,Ae)},ft.fitHeight=function(ie,Ae){return D2(ft,ie,Ae)},function(){return a=n.apply(this,arguments),ft.invert=a.invert&&Et,re()}}function O2(n){var a=0,l=rr/3,f=N2(n),m=f(a,l);return m.parallels=function(_){return arguments.length?f(a=_[0]*wn,l=_[1]*wn):[a*Yr,l*Yr]},m}function gb(n,a){var l=an(n),f=(l+an(a))/2;if(Se(f)<In)return function(x){var M=hn(x);function N(R,Y){return[R*M,an(Y)/M]}return N.invert=function(R,Y){return[R/M,Ca(Y*M)]},N}(n);var m=1+l*(2*f-l),_=Si(m)/f;function E(x,M){var N=Si(m-2*f*an(M))/f;return[N*an(x*=f),_-N*hn(x)]}return E.invert=function(x,M){var N=_-M,R=aa(x,Se(N))*xr(N);return N*f<0&&(R-=rr*xr(x)*xr(N)),[R/f,Ca((m-(x*x+N*N)*f*f)/(2*f))]},E}function l1(){return O2(gb).scale(155.424).center([0,33.6442])}function yb(){return l1().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function tc(){var n,a,l,f,m,_,E=yb(),x=l1().rotate([154,0]).center([-2,58.5]).parallels([55,65]),M=l1().rotate([157,0]).center([-3,19.9]).parallels([8,18]),N={point:function(L,$){_=[L,$]}};function R(L){var $=L[0],W=L[1];return _=null,l.point($,W),_||(f.point($,W),_)||(m.point($,W),_)}function Y(){return n=a=null,R}return R.invert=function(L){var $=E.scale(),W=E.translate(),J=(L[0]-W[0])/$,Q=(L[1]-W[1])/$;return(Q>=.12&&Q<.234&&J>=-.425&&J<-.214?x:Q>=.166&&Q<.234&&J>=-.214&&J<-.115?M:E).invert(L)},R.stream=function(L){return n&&a===L?n:($=[E.stream(a=L),x.stream(L),M.stream(L)],W=$.length,n={point:function(J,Q){for(var Z=-1;++Z<W;)$[Z].point(J,Q)},sphere:function(){for(var J=-1;++J<W;)$[J].sphere()},lineStart:function(){for(var J=-1;++J<W;)$[J].lineStart()},lineEnd:function(){for(var J=-1;++J<W;)$[J].lineEnd()},polygonStart:function(){for(var J=-1;++J<W;)$[J].polygonStart()},polygonEnd:function(){for(var J=-1;++J<W;)$[J].polygonEnd()}});var $,W},R.precision=function(L){return arguments.length?(E.precision(L),x.precision(L),M.precision(L),Y()):E.precision()},R.scale=function(L){return arguments.length?(E.scale(L),x.scale(.35*L),M.scale(L),R.translate(E.translate())):E.scale()},R.translate=function(L){if(!arguments.length)return E.translate();var $=E.scale(),W=+L[0],J=+L[1];return l=E.translate(L).clipExtent([[W-.455*$,J-.238*$],[W+.455*$,J+.238*$]]).stream(N),f=x.translate([W-.307*$,J+.201*$]).clipExtent([[W-.425*$+In,J+.12*$+In],[W-.214*$-In,J+.234*$-In]]).stream(N),m=M.translate([W-.205*$,J+.212*$]).clipExtent([[W-.214*$+In,J+.166*$+In],[W-.115*$-In,J+.234*$-In]]).stream(N),Y()},R.fitExtent=function(L,$){return u1(R,L,$)},R.fitSize=function(L,$){return M2(R,L,$)},R.fitWidth=function(L,$){return A2(R,L,$)},R.fitHeight=function(L,$){return D2(R,L,$)},R.scale(1070)}function L2(n){return function(a,l){var f=hn(a),m=hn(l),_=n(f*m);return[_*m*an(a),_*an(l)]}}function so(n){return function(a,l){var f=Si(a*a+l*l),m=n(f),_=an(m),E=hn(m);return[aa(a*_,f*E),Ca(f&&l*_/f)]}}var B2=L2(function(n){return Si(2/(1+n))});function ex(){return qo(B2).scale(124.75).clipAngle(179.999)}B2.invert=so(function(n){return 2*Ca(n/2)});var R2=L2(function(n){return(n=Oc(n))&&n/an(n)});function I2(){return qo(R2).scale(79.4188).clipAngle(179.999)}function Hf(n,a){return[n,Fl(Xi((yi+a)/2))]}function nx(){return F2(Hf).scale(961/Rr)}function F2(n){var a,l,f,m=qo(n),_=m.center,E=m.scale,x=m.translate,M=m.clipExtent,N=null;function R(){var Y=rr*E(),L=m(d2(m.rotate()).invert([0,0]));return M(N==null?[[L[0]-Y,L[1]-Y],[L[0]+Y,L[1]+Y]]:n===Hf?[[Math.max(L[0]-Y,N),a],[Math.min(L[0]+Y,l),f]]:[[N,Math.max(L[1]-Y,a)],[l,Math.min(L[1]+Y,f)]])}return m.scale=function(Y){return arguments.length?(E(Y),R()):E()},m.translate=function(Y){return arguments.length?(x(Y),R()):x()},m.center=function(Y){return arguments.length?(_(Y),R()):_()},m.clipExtent=function(Y){return arguments.length?(Y==null?N=a=l=f=null:(N=+Y[0][0],a=+Y[0][1],l=+Y[1][0],f=+Y[1][1]),R()):N==null?null:[[N,a],[l,f]]},R()}function $f(n){return Xi((yi+n)/2)}function P2(n,a){var l=hn(n),f=n===a?an(n):Fl(l/hn(a))/Fl($f(a)/$f(n)),m=l*B0($f(n),f)/f;if(!f)return Hf;function _(E,x){m>0?x<-yi+In&&(x=-yi+In):x>yi-In&&(x=yi-In);var M=m/B0($f(x),f);return[M*an(f*E),m-M*hn(f*E)]}return _.invert=function(E,x){var M=m-x,N=xr(f)*Si(E*E+M*M),R=aa(E,Se(M))*xr(M);return M*f<0&&(R-=rr*xr(E)*xr(M)),[R/f,2*Nc(B0(m/N,1/f))-yi]},_}function rx(){return O2(P2).scale(109.5).parallels([30,30])}function Wf(n,a){return[n,a]}function ix(){return qo(Wf).scale(152.63)}function mb(n,a){var l=hn(n),f=n===a?an(n):(l-hn(a))/(a-n),m=l/f+n;if(Se(f)<In)return Wf;function _(E,x){var M=m-x,N=f*E;return[M*an(N),m-M*hn(N)]}return _.invert=function(E,x){var M=m-x,N=aa(E,Se(M))*xr(M);return M*f<0&&(N-=rr*xr(E)*xr(M)),[N/f,m-xr(f)*Si(E*E+M*M)]},_}function vb(){return O2(mb).scale(131.154).center([0,13.9389])}R2.invert=so(function(n){return n}),Hf.invert=function(n,a){return[n,2*Nc(E_(a))-yi]},Wf.invert=Wf;var Yc=1.340264,qf=-.081106,Vf=893e-6,Gf=.003796,h1=Si(3)/2;function Y2(n,a){var l=Ca(h1*an(a)),f=l*l,m=f*f*f;return[n*hn(l)/(h1*(Yc+3*qf*f+m*(7*Vf+9*Gf*f))),l*(Yc+qf*f+m*(Vf+Gf*f))]}function ax(){return qo(Y2).scale(177.158)}function Zf(n,a){var l=hn(a),f=hn(n)*l;return[l*an(n)/f,an(a)/f]}function _b(){return qo(Zf).scale(144.049).clipAngle(60)}function f1(){var n,a,l,f,m,_,E,x=1,M=0,N=0,R=1,Y=1,L=0,$=null,W=1,J=1,Q=Uf({point:function(dt,Mt){var Wt=nt([dt,Mt]);this.stream.point(Wt[0],Wt[1])}}),Z=Lf;function at(){return W=x*R,J=x*Y,_=E=null,nt}function nt(dt){var Mt=dt[0]*W,Wt=dt[1]*J;if(L){var Qt=Wt*n-Mt*a;Mt=Mt*n+Wt*a,Wt=Qt}return[Mt+M,Wt+N]}return nt.invert=function(dt){var Mt=dt[0]-M,Wt=dt[1]-N;if(L){var Qt=Wt*n+Mt*a;Mt=Mt*n-Wt*a,Wt=Qt}return[Mt/W,Wt/J]},nt.stream=function(dt){return _&&E===dt?_:_=Q(Z(E=dt))},nt.postclip=function(dt){return arguments.length?(Z=dt,$=l=f=m=null,at()):Z},nt.clipExtent=function(dt){return arguments.length?(Z=dt==null?($=l=f=m=null,Lf):Z0($=+dt[0][0],l=+dt[0][1],f=+dt[1][0],m=+dt[1][1]),at()):$==null?null:[[$,l],[f,m]]},nt.scale=function(dt){return arguments.length?(x=+dt,at()):x},nt.translate=function(dt){return arguments.length?(M=+dt[0],N=+dt[1],at()):[M,N]},nt.angle=function(dt){return arguments.length?(a=an(L=dt%360*wn),n=hn(L),at()):L*Yr},nt.reflectX=function(dt){return arguments.length?(R=dt?-1:1,at()):R<0},nt.reflectY=function(dt){return arguments.length?(Y=dt?-1:1,at()):Y<0},nt.fitExtent=function(dt,Mt){return u1(nt,dt,Mt)},nt.fitSize=function(dt,Mt){return M2(nt,dt,Mt)},nt.fitWidth=function(dt,Mt){return A2(nt,dt,Mt)},nt.fitHeight=function(dt,Mt){return D2(nt,dt,Mt)},nt}function j2(n,a){var l=a*a,f=l*l;return[n*(.8707-.131979*l+f*(f*(.003971*l-.001529*f)-.013791)),a*(1.007226+l*(.015085+f*(.028874*l-.044475-.005916*f)))]}function ox(){return qo(j2).scale(175.295)}function z2(n,a){return[hn(a)*an(n),an(a)]}function sx(){return qo(z2).scale(249.5).clipAngle(90.000001)}function U2(n,a){var l=hn(a),f=1+hn(n)*l;return[l*an(n)/f,an(a)/f]}function cx(){return qo(U2).scale(250).clipAngle(142)}function d1(n,a){return[Fl(Xi((yi+a)/2)),-n]}function ux(){var n=F2(d1),a=n.center,l=n.rotate;return n.center=function(f){return arguments.length?a([-f[1],f[0]]):[(f=a())[1],-f[0]]},n.rotate=function(f){return arguments.length?l([f[0],f[1],f.length>2?f[2]+90:90]):[(f=l())[0],f[1],f[2]-90]},l([0,0,90]).scale(159.155)}function lx(n,a){return n.parent===a.parent?1:2}function hx(n,a){return n+a.x}function Jl(n,a){return Math.max(n,a.y)}function fx(){var n=lx,a=1,l=1,f=!1;function m(_){var E,x=0;_.eachAfter(function(L){var $=L.children;$?(L.x=function(W){return W.reduce(hx,0)/W.length}($),L.y=function(W){return 1+W.reduce(Jl,0)}($)):(L.x=E?x+=n(L,E):0,L.y=0,E=L)});var M=function(L){for(var $;$=L.children;)L=$[0];return L}(_),N=function(L){for(var $;$=L.children;)L=$[$.length-1];return L}(_),R=M.x-n(M,N)/2,Y=N.x+n(N,M)/2;return _.eachAfter(f?function(L){L.x=(L.x-_.x)*a,L.y=(_.y-L.y)*l}:function(L){L.x=(L.x-R)/(Y-R)*a,L.y=(1-(_.y?L.y/_.y:1))*l})}return m.separation=function(_){return arguments.length?(n=_,m):n},m.size=function(_){return arguments.length?(f=!1,a=+_[0],l=+_[1],m):f?null:[a,l]},m.nodeSize=function(_){return arguments.length?(f=!0,a=+_[0],l=+_[1],m):f?[a,l]:null},m}function dx(n){var a=0,l=n.children,f=l&&l.length;if(f)for(;--f>=0;)a+=l[f].value;else a=1;n.value=a}function H2(n,a){var l,f,m,_,E,x=new Nu(n),M=+n.value&&(x.value=n.value),N=[x];for(a==null&&(a=bb);l=N.pop();)if(M&&(l.value=+l.data.value),(m=a(l.data))&&(E=m.length))for(l.children=new Array(E),_=E-1;_>=0;--_)N.push(f=l.children[_]=new Nu(m[_])),f.parent=l,f.depth=l.depth+1;return x.eachBefore(W2)}function bb(n){return n.children}function $2(n){n.data=n.data.data}function W2(n){var a=0;do n.height=a;while((n=n.parent)&&n.height<++a)}function Nu(n){this.data=n,this.depth=this.height=0,this.parent=null}Y2.invert=function(n,a){for(var l,f=a,m=f*f,_=m*m*m,E=0;E<12&&(_=(m=(f-=l=(f*(Yc+qf*m+_*(Vf+Gf*m))-a)/(Yc+3*qf*m+_*(7*Vf+9*Gf*m)))*f)*m*m,!(Se(l)<wf));++E);return[h1*n*(Yc+3*qf*m+_*(7*Vf+9*Gf*m))/hn(f),Ca(an(f)/h1)]},Zf.invert=so(Nc),j2.invert=function(n,a){var l,f=a,m=25;do{var _=f*f,E=_*_;f-=l=(f*(1.007226+_*(.015085+E*(.028874*_-.044475-.005916*E)))-a)/(1.007226+_*(.045255+E*(.259866*_-.311325-.005916*11*E)))}while(Se(l)>In&&--m>0);return[n/(.8707+(_=f*f)*(_*(_*_*_*(.003971-.001529*_)-.013791)-.131979)),f]},z2.invert=so(Ca),U2.invert=so(function(n){return 2*Nc(n)}),d1.invert=function(n,a){return[-a,2*Nc(E_(n))-yi]},Nu.prototype=H2.prototype={constructor:Nu,count:function(){return this.eachAfter(dx)},each:function(n){var a,l,f,m,_=this,E=[_];do for(a=E.reverse(),E=[];_=a.pop();)if(n(_),l=_.children)for(f=0,m=l.length;f<m;++f)E.push(l[f]);while(E.length);return this},eachAfter:function(n){for(var a,l,f,m=this,_=[m],E=[];m=_.pop();)if(E.push(m),a=m.children)for(l=0,f=a.length;l<f;++l)_.push(a[l]);for(;m=E.pop();)n(m);return this},eachBefore:function(n){for(var a,l,f=this,m=[f];f=m.pop();)if(n(f),a=f.children)for(l=a.length-1;l>=0;--l)m.push(a[l]);return this},sum:function(n){return this.eachAfter(function(a){for(var l=+n(a.data)||0,f=a.children,m=f&&f.length;--m>=0;)l+=f[m].value;a.value=l})},sort:function(n){return this.eachBefore(function(a){a.children&&a.children.sort(n)})},path:function(n){for(var a=this,l=function(_,E){if(_===E)return _;var x=_.ancestors(),M=E.ancestors(),N=null;for(_=x.pop(),E=M.pop();_===E;)N=_,_=x.pop(),E=M.pop();return N}(a,n),f=[a];a!==l;)a=a.parent,f.push(a);for(var m=f.length;n!==l;)f.splice(m,0,n),n=n.parent;return f},ancestors:function(){for(var n=this,a=[n];n=n.parent;)a.push(n);return a},descendants:function(){var n=[];return this.each(function(a){n.push(a)}),n},leaves:function(){var n=[];return this.eachBefore(function(a){a.children||n.push(a)}),n},links:function(){var n=this,a=[];return n.each(function(l){l!==n&&a.push({source:l.parent,target:l})}),a},copy:function(){return H2(this).eachBefore($2)}};var wb=Array.prototype.slice;function xb(n){for(var a,l,f=0,m=(n=function(E){for(var x,M,N=E.length;N;)M=Math.random()*N--|0,x=E[N],E[N]=E[M],E[M]=x;return E}(wb.call(n))).length,_=[];f<m;)a=n[f],l&&kb(l,a)?++f:(l=gx(_=px(_,a)),f=0);return l}function px(n,a){var l,f;if(q2(a,n))return[a];for(l=0;l<n.length;++l)if(p1(a,n[l])&&q2(Xf(n[l],a),n))return[n[l],a];for(l=0;l<n.length-1;++l)for(f=l+1;f<n.length;++f)if(p1(Xf(n[l],n[f]),a)&&p1(Xf(n[l],a),n[f])&&p1(Xf(n[f],a),n[l])&&q2(Tb(n[l],n[f],a),n))return[n[l],n[f],a];throw new Error}function p1(n,a){var l=n.r-a.r,f=a.x-n.x,m=a.y-n.y;return l<0||l*l<f*f+m*m}function kb(n,a){var l=n.r-a.r+1e-6,f=a.x-n.x,m=a.y-n.y;return l>0&&l*l>f*f+m*m}function q2(n,a){for(var l=0;l<a.length;++l)if(!kb(n,a[l]))return!1;return!0}function gx(n){switch(n.length){case 1:return function(a){return{x:a.x,y:a.y,r:a.r}}(n[0]);case 2:return Xf(n[0],n[1]);case 3:return Tb(n[0],n[1],n[2])}}function Xf(n,a){var l=n.x,f=n.y,m=n.r,_=a.x,E=a.y,x=a.r,M=_-l,N=E-f,R=x-m,Y=Math.sqrt(M*M+N*N);return{x:(l+_+M/Y*R)/2,y:(f+E+N/Y*R)/2,r:(Y+m+x)/2}}function Tb(n,a,l){var f=n.x,m=n.y,_=n.r,E=a.x,x=a.y,M=a.r,N=l.x,R=l.y,Y=l.r,L=f-E,$=f-N,W=m-x,J=m-R,Q=M-_,Z=Y-_,at=f*f+m*m-_*_,nt=at-E*E-x*x+M*M,dt=at-N*N-R*R+Y*Y,Mt=$*W-L*J,Wt=(W*dt-J*nt)/(2*Mt)-f,Qt=(J*Q-W*Z)/Mt,be=($*nt-L*dt)/(2*Mt)-m,zt=(L*Z-$*Q)/Mt,ce=Qt*Qt+zt*zt-1,ft=2*(_+Wt*Qt+be*zt),Et=Wt*Wt+be*be-_*_,re=-(ce?(ft+Math.sqrt(ft*ft-4*ce*Et))/(2*ce):Et/ft);return{x:f+Wt+Qt*re,y:m+be+zt*re,r:re}}function Eb(n,a,l){var f,m,_,E,x=n.x-a.x,M=n.y-a.y,N=x*x+M*M;N?(m=a.r+l.r,m*=m,E=n.r+l.r,m>(E*=E)?(f=(N+E-m)/(2*N),_=Math.sqrt(Math.max(0,E/N-f*f)),l.x=n.x-f*x-_*M,l.y=n.y-f*M+_*x):(f=(N+m-E)/(2*N),_=Math.sqrt(Math.max(0,m/N-f*f)),l.x=a.x+f*x-_*M,l.y=a.y+f*M+_*x)):(l.x=a.x+l.r,l.y=a.y)}function Sb(n,a){var l=n.r+a.r-1e-6,f=a.x-n.x,m=a.y-n.y;return l>0&&l*l>f*f+m*m}function Cb(n){var a=n._,l=n.next._,f=a.r+l.r,m=(a.x*l.r+l.x*a.r)/f,_=(a.y*l.r+l.y*a.r)/f;return m*m+_*_}function g1(n){this._=n,this.next=null,this.previous=null}function Mb(n){if(!(m=n.length))return 0;var a,l,f,m,_,E,x,M,N,R,Y;if((a=n[0]).x=0,a.y=0,!(m>1))return a.r;if(l=n[1],a.x=-l.r,l.x=a.r,l.y=0,!(m>2))return a.r+l.r;Eb(l,a,f=n[2]),a=new g1(a),l=new g1(l),f=new g1(f),a.next=f.previous=l,l.next=a.previous=f,f.next=l.previous=a;t:for(x=3;x<m;++x){Eb(a._,l._,f=n[x]),f=new g1(f),M=l.next,N=a.previous,R=l._.r,Y=a._.r;do if(R<=Y){if(Sb(M._,f._)){l=M,a.next=l,l.previous=a,--x;continue t}R+=M._.r,M=M.next}else{if(Sb(N._,f._)){(a=N).next=l,l.previous=a,--x;continue t}Y+=N._.r,N=N.previous}while(M!==N.next);for(f.previous=a,f.next=l,a.next=l.previous=l=f,_=Cb(a);(f=f.next)!==l;)(E=Cb(f))<_&&(a=f,_=E);l=a.next}for(a=[l._],f=l;(f=f.next)!==l;)a.push(f._);for(f=xb(a),x=0;x<m;++x)(a=n[x]).x-=f.x,a.y-=f.y;return f.r}function Ab(n){return Mb(n),n}function yx(n){return n==null?null:y1(n)}function y1(n){if(typeof n!="function")throw new Error;return n}function Ou(){return 0}function th(n){return function(){return n}}function mx(n){return Math.sqrt(n.value)}function vx(){var n=null,a=1,l=1,f=Ou;function m(_){return _.x=a/2,_.y=l/2,n?_.eachBefore(Db(n)).eachAfter(m1(f,.5)).eachBefore(Nb(1)):_.eachBefore(Db(mx)).eachAfter(m1(Ou,1)).eachAfter(m1(f,_.r/Math.min(a,l))).eachBefore(Nb(Math.min(a,l)/(2*_.r))),_}return m.radius=function(_){return arguments.length?(n=yx(_),m):n},m.size=function(_){return arguments.length?(a=+_[0],l=+_[1],m):[a,l]},m.padding=function(_){return arguments.length?(f=typeof _=="function"?_:th(+_),m):f},m}function Db(n){return function(a){a.children||(a.r=Math.max(0,+n(a)||0))}}function m1(n,a){return function(l){if(f=l.children){var f,m,_,E=f.length,x=n(l)*a||0;if(x)for(m=0;m<E;++m)f[m].r+=x;if(_=Mb(f),x)for(m=0;m<E;++m)f[m].r-=x;l.r=_+x}}}function Nb(n){return function(a){var l=a.parent;a.r*=n,l&&(a.x=l.x+n*a.x,a.y=l.y+n*a.y)}}function Ob(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function Kf(n,a,l,f,m){for(var _,E=n.children,x=-1,M=E.length,N=n.value&&(f-a)/n.value;++x<M;)(_=E[x]).y0=l,_.y1=m,_.x0=a,_.x1=a+=_.value*N}function Vo(){var n=1,a=1,l=0,f=!1;function m(_){var E=_.height+1;return _.x0=_.y0=l,_.x1=n,_.y1=a/E,_.eachBefore(function(x,M){return function(N){N.children&&Kf(N,N.x0,x*(N.depth+1)/M,N.x1,x*(N.depth+2)/M);var R=N.x0,Y=N.y0,L=N.x1-l,$=N.y1-l;L<R&&(R=L=(R+L)/2),$<Y&&(Y=$=(Y+$)/2),N.x0=R,N.y0=Y,N.x1=L,N.y1=$}}(a,E)),f&&_.eachBefore(Ob),_}return m.round=function(_){return arguments.length?(f=!!_,m):f},m.size=function(_){return arguments.length?(n=+_[0],a=+_[1],m):[n,a]},m.padding=function(_){return arguments.length?(l=+_,m):l},m}var Lb={depth:-1},Qf={};function _x(n){return n.id}function Bb(n){return n.parentId}function v1(){var n=_x,a=Bb;function l(f){var m,_,E,x,M,N,R,Y=f.length,L=new Array(Y),$={};for(_=0;_<Y;++_)m=f[_],M=L[_]=new Nu(m),(N=n(m,_,f))!=null&&(N+="")&&($[R="$"+(M.id=N)]=R in $?Qf:M);for(_=0;_<Y;++_)if(M=L[_],(N=a(f[_],_,f))!=null&&(N+="")){if(!(x=$["$"+N]))throw new Error("missing: "+N);if(x===Qf)throw new Error("ambiguous: "+N);x.children?x.children.push(M):x.children=[M],M.parent=x}else{if(E)throw new Error("multiple roots");E=M}if(!E)throw new Error("no root");if(E.parent=Lb,E.eachBefore(function(W){W.depth=W.parent.depth+1,--Y}).eachBefore(W2),E.parent=null,Y>0)throw new Error("cycle");return E}return l.id=function(f){return arguments.length?(n=y1(f),l):n},l.parentId=function(f){return arguments.length?(a=y1(f),l):a},l}function bx(n,a){return n.parent===a.parent?1:2}function V2(n){var a=n.children;return a?a[0]:n.t}function _1(n){var a=n.children;return a?a[a.length-1]:n.t}function wx(n,a,l){var f=l/(a.i-n.i);a.c-=f,a.s+=l,n.c+=f,a.z+=l,a.m+=l}function b1(n,a,l){return n.a.parent===a.parent?n.a:l}function jc(n,a){this._=n,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=a}function eh(){var n=bx,a=1,l=1,f=null;function m(M){var N=function(Z){for(var at,nt,dt,Mt,Wt,Qt=new jc(Z,0),be=[Qt];at=be.pop();)if(dt=at._.children)for(at.children=new Array(Wt=dt.length),Mt=Wt-1;Mt>=0;--Mt)be.push(nt=at.children[Mt]=new jc(dt[Mt],Mt)),nt.parent=at;return(Qt.parent=new jc(null,0)).children=[Qt],Qt}(M);if(N.eachAfter(_),N.parent.m=-N.z,N.eachBefore(E),f)M.eachBefore(x);else{var R=M,Y=M,L=M;M.eachBefore(function(Z){Z.x<R.x&&(R=Z),Z.x>Y.x&&(Y=Z),Z.depth>L.depth&&(L=Z)});var $=R===Y?1:n(R,Y)/2,W=$-R.x,J=a/(Y.x+$+W),Q=l/(L.depth||1);M.eachBefore(function(Z){Z.x=(Z.x+W)*J,Z.y=Z.depth*Q})}return M}function _(M){var N=M.children,R=M.parent.children,Y=M.i?R[M.i-1]:null;if(N){(function($){for(var W,J=0,Q=0,Z=$.children,at=Z.length;--at>=0;)(W=Z[at]).z+=J,W.m+=J,J+=W.s+(Q+=W.c)})(M);var L=(N[0].z+N[N.length-1].z)/2;Y?(M.z=Y.z+n(M._,Y._),M.m=M.z-L):M.z=L}else Y&&(M.z=Y.z+n(M._,Y._));M.parent.A=function($,W,J){if(W){for(var Q,Z=$,at=$,nt=W,dt=Z.parent.children[0],Mt=Z.m,Wt=at.m,Qt=nt.m,be=dt.m;nt=_1(nt),Z=V2(Z),nt&&Z;)dt=V2(dt),(at=_1(at)).a=$,(Q=nt.z+Qt-Z.z-Mt+n(nt._,Z._))>0&&(wx(b1(nt,$,J),$,Q),Mt+=Q,Wt+=Q),Qt+=nt.m,Mt+=Z.m,be+=dt.m,Wt+=at.m;nt&&!_1(at)&&(at.t=nt,at.m+=Qt-Wt),Z&&!V2(dt)&&(dt.t=Z,dt.m+=Mt-be,J=$)}return J}(M,Y,M.parent.A||R[0])}function E(M){M._.x=M.z+M.parent.m,M.m+=M.parent.m}function x(M){M.x*=a,M.y=M.depth*l}return m.separation=function(M){return arguments.length?(n=M,m):n},m.size=function(M){return arguments.length?(f=!1,a=+M[0],l=+M[1],m):f?null:[a,l]},m.nodeSize=function(M){return arguments.length?(f=!0,a=+M[0],l=+M[1],m):f?[a,l]:null},m}function zc(n,a,l,f,m){for(var _,E=n.children,x=-1,M=E.length,N=n.value&&(m-l)/n.value;++x<M;)(_=E[x]).x0=a,_.x1=f,_.y0=l,_.y1=l+=_.value*N}jc.prototype=Object.create(Nu.prototype);var nh=(1+Math.sqrt(5))/2;function Jf(n,a,l,f,m,_){for(var E,x,M,N,R,Y,L,$,W,J,Q,Z=[],at=a.children,nt=0,dt=0,Mt=at.length,Wt=a.value;nt<Mt;){M=m-l,N=_-f;do R=at[dt++].value;while(!R&&dt<Mt);for(Y=L=R,Q=R*R*(J=Math.max(N/M,M/N)/(Wt*n)),W=Math.max(L/Q,Q/Y);dt<Mt;++dt){if(R+=x=at[dt].value,x<Y&&(Y=x),x>L&&(L=x),Q=R*R*J,($=Math.max(L/Q,Q/Y))>W){R-=x;break}W=$}Z.push(E={value:R,dice:M<N,children:at.slice(nt,dt)}),E.dice?Kf(E,l,f,m,Wt?f+=N*R/Wt:_):zc(E,l,f,Wt?l+=M*R/Wt:m,_),Wt-=R,nt=dt}return Z}const Uc=function n(a){function l(f,m,_,E,x){Jf(a,f,m,_,E,x)}return l.ratio=function(f){return n((f=+f)>1?f:1)},l}(nh);function w1(){var n=Uc,a=!1,l=1,f=1,m=[0],_=Ou,E=Ou,x=Ou,M=Ou,N=Ou;function R(L){return L.x0=L.y0=0,L.x1=l,L.y1=f,L.eachBefore(Y),m=[0],a&&L.eachBefore(Ob),L}function Y(L){var $=m[L.depth],W=L.x0+$,J=L.y0+$,Q=L.x1-$,Z=L.y1-$;Q<W&&(W=Q=(W+Q)/2),Z<J&&(J=Z=(J+Z)/2),L.x0=W,L.y0=J,L.x1=Q,L.y1=Z,L.children&&($=m[L.depth+1]=_(L)/2,W+=N(L)-$,J+=E(L)-$,(Q-=x(L)-$)<W&&(W=Q=(W+Q)/2),(Z-=M(L)-$)<J&&(J=Z=(J+Z)/2),n(L,W,J,Q,Z))}return R.round=function(L){return arguments.length?(a=!!L,R):a},R.size=function(L){return arguments.length?(l=+L[0],f=+L[1],R):[l,f]},R.tile=function(L){return arguments.length?(n=y1(L),R):n},R.padding=function(L){return arguments.length?R.paddingInner(L).paddingOuter(L):R.paddingInner()},R.paddingInner=function(L){return arguments.length?(_=typeof L=="function"?L:th(+L),R):_},R.paddingOuter=function(L){return arguments.length?R.paddingTop(L).paddingRight(L).paddingBottom(L).paddingLeft(L):R.paddingTop()},R.paddingTop=function(L){return arguments.length?(E=typeof L=="function"?L:th(+L),R):E},R.paddingRight=function(L){return arguments.length?(x=typeof L=="function"?L:th(+L),R):x},R.paddingBottom=function(L){return arguments.length?(M=typeof L=="function"?L:th(+L),R):M},R.paddingLeft=function(L){return arguments.length?(N=typeof L=="function"?L:th(+L),R):N},R}function td(n,a,l,f,m){var _,E,x=n.children,M=x.length,N=new Array(M+1);for(N[0]=E=_=0;_<M;++_)N[_+1]=E+=x[_].value;(function R(Y,L,$,W,J,Q,Z){if(Y>=L-1){var at=x[Y];return at.x0=W,at.y0=J,at.x1=Q,void(at.y1=Z)}for(var nt=N[Y],dt=$/2+nt,Mt=Y+1,Wt=L-1;Mt<Wt;){var Qt=Mt+Wt>>>1;N[Qt]<dt?Mt=Qt+1:Wt=Qt}dt-N[Mt-1]<N[Mt]-dt&&Y+1<Mt&&--Mt;var be=N[Mt]-nt,zt=$-be;if(Q-W>Z-J){var ce=(W*zt+Q*be)/$;R(Y,Mt,be,W,J,ce,Z),R(Mt,L,zt,ce,J,Q,Z)}else{var ft=(J*zt+Z*be)/$;R(Y,Mt,be,W,J,Q,ft),R(Mt,L,zt,W,ft,Q,Z)}})(0,M,n.value,a,l,f,m)}function Rb(n,a,l,f,m){(1&n.depth?zc:Kf)(n,a,l,f,m)}const G2=function n(a){function l(f,m,_,E,x){if((M=f._squarify)&&M.ratio===a)for(var M,N,R,Y,L,$=-1,W=M.length,J=f.value;++$<W;){for(R=(N=M[$]).children,Y=N.value=0,L=R.length;Y<L;++Y)N.value+=R[Y].value;N.dice?Kf(N,m,_,E,_+=(x-_)*N.value/J):zc(N,m,_,m+=(E-m)*N.value/J,x),J-=N.value}else f._squarify=M=Jf(a,f,m,_,E,x),M.ratio=a}return l.ratio=function(f){return n((f=+f)>1?f:1)},l}(nh);function xx(n){var a=n.length;return function(l){return n[Math.max(0,Math.min(a-1,Math.floor(l*a)))]}}function x1(n,a){var l=Pa(+n,+a);return function(f){var m=l(f);return m-360*Math.floor(m/360)}}function Z2(n,a){return n=+n,a=+a,function(l){return Math.round(n*(1-l)+a*l)}}var rh=Math.SQRT2;function Ib(n){return((n=Math.exp(n))+1/n)/2}function k1(n,a){var l,f,m=n[0],_=n[1],E=n[2],x=a[0],M=a[1],N=a[2],R=x-m,Y=M-_,L=R*R+Y*Y;if(L<1e-12)f=Math.log(N/E)/rh,l=function(at){return[m+at*R,_+at*Y,E*Math.exp(rh*at*f)]};else{var $=Math.sqrt(L),W=(N*N-E*E+4*L)/(2*E*2*$),J=(N*N-E*E-4*L)/(2*N*2*$),Q=Math.log(Math.sqrt(W*W+1)-W),Z=Math.log(Math.sqrt(J*J+1)-J);f=(Z-Q)/rh,l=function(at){var nt,dt=at*f,Mt=Ib(Q),Wt=E/(2*$)*(Mt*(nt=rh*dt+Q,((nt=Math.exp(2*nt))-1)/(nt+1))-function(Qt){return((Qt=Math.exp(Qt))-1/Qt)/2}(Q));return[m+Wt*R,_+Wt*Y,E*Mt/Ib(rh*dt+Q)]}}return l.duration=1e3*f,l}function X2(n){return function(a,l){var f=n((a=bl(a)).h,(l=bl(l)).h),m=Ei(a.s,l.s),_=Ei(a.l,l.l),E=Ei(a.opacity,l.opacity);return function(x){return a.h=f(x),a.s=m(x),a.l=_(x),a.opacity=E(x),a+""}}}const kx=X2(Pa);var Tx=X2(Ei);function T1(n,a){var l=Ei((n=lf(n)).l,(a=lf(a)).l),f=Ei(n.a,a.a),m=Ei(n.b,a.b),_=Ei(n.opacity,a.opacity);return function(E){return n.l=l(E),n.a=f(E),n.b=m(E),n.opacity=_(E),n+""}}function E1(n){return function(a,l){var f=n((a=Cc(a)).h,(l=Cc(l)).h),m=Ei(a.c,l.c),_=Ei(a.l,l.l),E=Ei(a.opacity,l.opacity);return function(x){return a.h=f(x),a.c=m(x),a.l=_(x),a.opacity=E(x),a+""}}}const xs=E1(Pa);var Go=E1(Ei);function ec(n){return function a(l){function f(m,_){var E=n((m=Ta(m)).h,(_=Ta(_)).h),x=Ei(m.s,_.s),M=Ei(m.l,_.l),N=Ei(m.opacity,_.opacity);return function(R){return m.h=E(R),m.s=x(R),m.l=M(Math.pow(R,l)),m.opacity=N(R),m+""}}return l=+l,f.gamma=a,f}(1)}const S1=ec(Pa);var ed=ec(Ei);function K2(n,a){for(var l=0,f=a.length-1,m=a[0],_=new Array(f<0?0:f);l<f;)_[l]=n(m,m=a[++l]);return function(E){var x=Math.max(0,Math.min(f-1,Math.floor(E*=f)));return _[x](E-x)}}function Fb(n,a){for(var l=new Array(a),f=0;f<a;++f)l[f]=n(f/(a-1));return l}function Pb(n){for(var a,l=-1,f=n.length,m=n[f-1],_=0;++l<f;)a=m,m=n[l],_+=a[1]*m[0]-a[0]*m[1];return _/2}function Ex(n){for(var a,l,f=-1,m=n.length,_=0,E=0,x=n[m-1],M=0;++f<m;)a=x,x=n[f],M+=l=a[0]*x[1]-x[0]*a[1],_+=(a[0]+x[0])*l,E+=(a[1]+x[1])*l;return[_/(M*=3),E/M]}function Sx(n,a,l){return(a[0]-n[0])*(l[1]-n[1])-(a[1]-n[1])*(l[0]-n[0])}function Cx(n,a){return n[0]-a[0]||n[1]-a[1]}function Yb(n){for(var a=n.length,l=[0,1],f=2,m=2;m<a;++m){for(;f>1&&Sx(n[l[f-2]],n[l[f-1]],n[m])<=0;)--f;l[f++]=m}return l.slice(0,f)}function Q2(n){if((l=n.length)<3)return null;var a,l,f=new Array(l),m=new Array(l);for(a=0;a<l;++a)f[a]=[+n[a][0],+n[a][1],a];for(f.sort(Cx),a=0;a<l;++a)m[a]=[f[a][0],-f[a][1]];var _=Yb(f),E=Yb(m),x=E[0]===_[0],M=E[E.length-1]===_[_.length-1],N=[];for(a=_.length-1;a>=0;--a)N.push(n[f[_[a]][2]]);for(a=+x;a<E.length-M;++a)N.push(n[f[E[a]][2]]);return N}function J2(n,a){for(var l,f,m=n.length,_=n[m-1],E=a[0],x=a[1],M=_[0],N=_[1],R=!1,Y=0;Y<m;++Y)l=(_=n[Y])[0],(f=_[1])>x!=N>x&&E<(M-l)*(x-f)/(N-f)+l&&(R=!R),M=l,N=f;return R}function jb(n){for(var a,l,f=-1,m=n.length,_=n[m-1],E=_[0],x=_[1],M=0;++f<m;)a=E,l=x,a-=E=(_=n[f])[0],l-=x=_[1],M+=Math.sqrt(a*a+l*l);return M}function ks(){return Math.random()}const C1=function n(a){function l(f,m){return f=f==null?0:+f,m=m==null?1:+m,arguments.length===1?(m=f,f=0):m-=f,function(){return a()*m+f}}return l.source=n,l}(ks),nd=function n(a){function l(f,m){var _,E;return f=f==null?0:+f,m=m==null?1:+m,function(){var x;if(_!=null)x=_,_=null;else do _=2*a()-1,x=2*a()-1,E=_*_+x*x;while(!E||E>1);return f+m*x*Math.sqrt(-2*Math.log(E)/E)}}return l.source=n,l}(ks),ih=function n(a){function l(){var f=nd.source(a).apply(this,arguments);return function(){return Math.exp(f())}}return l.source=n,l}(ks),ah=function n(a){function l(f){return function(){for(var m=0,_=0;_<f;++_)m+=a();return m}}return l.source=n,l}(ks),Ts=function n(a){function l(f){var m=ah.source(a)(f);return function(){return m()/f}}return l.source=n,l}(ks),Mx=function n(a){function l(f){return function(){return-Math.log(1-a())/f}}return l.source=n,l}(ks);function Zo(n,a){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(a).domain(n)}return this}function nc(n,a){switch(arguments.length){case 0:break;case 1:this.interpolator(n);break;default:this.interpolator(a).domain(n)}return this}var zb=Array.prototype,M1=zb.map,Lu=zb.slice,ty={name:"implicit"};function A1(){var n=qs(),a=[],l=[],f=ty;function m(_){var E=_+"",x=n.get(E);if(!x){if(f!==ty)return f;n.set(E,x=a.push(_))}return l[(x-1)%l.length]}return m.domain=function(_){if(!arguments.length)return a.slice();a=[],n=qs();for(var E,x,M=-1,N=_.length;++M<N;)n.has(x=(E=_[M])+"")||n.set(x,a.push(E));return m},m.range=function(_){return arguments.length?(l=Lu.call(_),m):l.slice()},m.unknown=function(_){return arguments.length?(f=_,m):f},m.copy=function(){return A1(a,l).unknown(f)},Zo.apply(m,arguments),m}function D1(){var n,a,l=A1().unknown(void 0),f=l.domain,m=l.range,_=[0,1],E=!1,x=0,M=0,N=.5;function R(){var Y=f().length,L=_[1]<_[0],$=_[L-0],W=_[1-L];n=(W-$)/Math.max(1,Y-x+2*M),E&&(n=Math.floor(n)),$+=(W-$-n*(Y-x))*N,a=n*(1-x),E&&($=Math.round($),a=Math.round(a));var J=et(Y).map(function(Q){return $+n*Q});return m(L?J.reverse():J)}return delete l.unknown,l.domain=function(Y){return arguments.length?(f(Y),R()):f()},l.range=function(Y){return arguments.length?(_=[+Y[0],+Y[1]],R()):_.slice()},l.rangeRound=function(Y){return _=[+Y[0],+Y[1]],E=!0,R()},l.bandwidth=function(){return a},l.step=function(){return n},l.round=function(Y){return arguments.length?(E=!!Y,R()):E},l.padding=function(Y){return arguments.length?(x=Math.min(1,M=+Y),R()):x},l.paddingInner=function(Y){return arguments.length?(x=Math.min(1,Y),R()):x},l.paddingOuter=function(Y){return arguments.length?(M=+Y,R()):M},l.align=function(Y){return arguments.length?(N=Math.max(0,Math.min(1,Y)),R()):N},l.copy=function(){return D1(f(),_).round(E).paddingInner(x).paddingOuter(M).align(N)},Zo.apply(R(),arguments)}function ey(n){var a=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return ey(a())},n}function rd(){return ey(D1.apply(null,arguments).paddingInner(1))}function N1(n){return+n}var id=[0,1];function oa(n){return n}function ad(n,a){return(a-=n=+n)?function(f){return(f-n)/a}:(l=isNaN(a)?NaN:.5,function(){return l});var l}function $a(n){var a,l=n[0],f=n[n.length-1];return l>f&&(a=l,l=f,f=a),function(m){return Math.max(l,Math.min(f,m))}}function Ub(n,a,l){var f=n[0],m=n[1],_=a[0],E=a[1];return m<f?(f=ad(m,f),_=l(E,_)):(f=ad(f,m),_=l(_,E)),function(x){return _(f(x))}}function Hb(n,a,l){var f=Math.min(n.length,a.length)-1,m=new Array(f),_=new Array(f),E=-1;for(n[f]<n[0]&&(n=n.slice().reverse(),a=a.slice().reverse());++E<f;)m[E]=ad(n[E],n[E+1]),_[E]=l(a[E],a[E+1]);return function(x){var M=k(n,x,1,f)-1;return _[M](m[M](x))}}function Bu(n,a){return a.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function od(){var n,a,l,f,m,_,E=id,x=id,M=mu,N=oa;function R(){return f=Math.min(E.length,x.length)>2?Hb:Ub,m=_=null,Y}function Y(L){return isNaN(L=+L)?l:(m||(m=f(E.map(n),x,M)))(n(N(L)))}return Y.invert=function(L){return N(a((_||(_=f(x,E.map(n),wa)))(L)))},Y.domain=function(L){return arguments.length?(E=M1.call(L,N1),N===oa||(N=$a(E)),R()):E.slice()},Y.range=function(L){return arguments.length?(x=Lu.call(L),R()):x.slice()},Y.rangeRound=function(L){return x=Lu.call(L),M=Z2,R()},Y.clamp=function(L){return arguments.length?(N=L?$a(E):oa,Y):N!==oa},Y.interpolate=function(L){return arguments.length?(M=L,R()):M},Y.unknown=function(L){return arguments.length?(l=L,Y):l},function(L,$){return n=L,a=$,R()}}function ny(n,a){return od()(n,a)}function Xo(n,a,l,f){var m,_=wt(n,a,l);switch((f=bf(f==null?",f":f)).type){case"s":var E=Math.max(Math.abs(n),Math.abs(a));return f.precision!=null||isNaN(m=x_(_,E))||(f.precision=m),Jg(f,E);case"":case"e":case"g":case"p":case"r":f.precision!=null||isNaN(m=k_(_,Math.max(Math.abs(n),Math.abs(a))))||(f.precision=m-(f.type==="e"));break;case"f":case"%":f.precision!=null||isNaN(m=t2(_))||(f.precision=m-2*(f.type==="%"))}return N0(f)}function rc(n){var a=n.domain;return n.ticks=function(l){var f=a();return St(f[0],f[f.length-1],l==null?10:l)},n.tickFormat=function(l,f){var m=a();return Xo(m[0],m[m.length-1],l==null?10:l,f)},n.nice=function(l){l==null&&(l=10);var f,m=a(),_=0,E=m.length-1,x=m[_],M=m[E];return M<x&&(f=x,x=M,M=f,f=_,_=E,E=f),(f=pt(x,M,l))>0?f=pt(x=Math.floor(x/f)*f,M=Math.ceil(M/f)*f,l):f<0&&(f=pt(x=Math.ceil(x*f)/f,M=Math.floor(M*f)/f,l)),f>0?(m[_]=Math.floor(x/f)*f,m[E]=Math.ceil(M/f)*f,a(m)):f<0&&(m[_]=Math.ceil(x*f)/f,m[E]=Math.floor(M*f)/f,a(m)),n},n}function ry(){var n=ny(oa,oa);return n.copy=function(){return Bu(n,ry())},Zo.apply(n,arguments),rc(n)}function iy(n){var a;function l(f){return isNaN(f=+f)?a:f}return l.invert=l,l.domain=l.range=function(f){return arguments.length?(n=M1.call(f,N1),l):n.slice()},l.unknown=function(f){return arguments.length?(a=f,l):a},l.copy=function(){return iy(n).unknown(a)},n=arguments.length?M1.call(n,N1):[0,1],rc(l)}function ay(n,a){var l,f=0,m=(n=n.slice()).length-1,_=n[f],E=n[m];return E<_&&(l=f,f=m,m=l,l=_,_=E,E=l),n[f]=a.floor(_),n[m]=a.ceil(E),n}function O1(n){return Math.log(n)}function L1(n){return Math.exp(n)}function Ax(n){return-Math.log(-n)}function $b(n){return-Math.exp(-n)}function Dx(n){return isFinite(n)?+("1e"+n):n<0?0:n}function Wb(n){return function(a){return-n(-a)}}function oy(n){var a,l,f=n(O1,L1),m=f.domain,_=10;function E(){return a=function(x){return x===Math.E?Math.log:x===10&&Math.log10||x===2&&Math.log2||(x=Math.log(x),function(M){return Math.log(M)/x})}(_),l=function(x){return x===10?Dx:x===Math.E?Math.exp:function(M){return Math.pow(x,M)}}(_),m()[0]<0?(a=Wb(a),l=Wb(l),n(Ax,$b)):n(O1,L1),f}return f.base=function(x){return arguments.length?(_=+x,E()):_},f.domain=function(x){return arguments.length?(m(x),E()):m()},f.ticks=function(x){var M,N=m(),R=N[0],Y=N[N.length-1];(M=Y<R)&&(J=R,R=Y,Y=J);var L,$,W,J=a(R),Q=a(Y),Z=x==null?10:+x,at=[];if(!(_%1)&&Q-J<Z){if(J=Math.round(J)-1,Q=Math.round(Q)+1,R>0){for(;J<Q;++J)for($=1,L=l(J);$<_;++$)if(!((W=L*$)<R)){if(W>Y)break;at.push(W)}}else for(;J<Q;++J)for($=_-1,L=l(J);$>=1;--$)if(!((W=L*$)<R)){if(W>Y)break;at.push(W)}}else at=St(J,Q,Math.min(Q-J,Z)).map(l);return M?at.reverse():at},f.tickFormat=function(x,M){if(M==null&&(M=_===10?".0e":","),typeof M!="function"&&(M=N0(M)),x===1/0)return M;x==null&&(x=10);var N=Math.max(1,_*x/f.ticks().length);return function(R){var Y=R/l(Math.round(a(R)));return Y*_<_-.5&&(Y*=_),Y<=N?M(R):""}},f.nice=function(){return m(ay(m(),{floor:function(x){return l(Math.floor(a(x)))},ceil:function(x){return l(Math.ceil(a(x)))}}))},f}function qb(){var n=oy(od()).domain([1,10]);return n.copy=function(){return Bu(n,qb()).base(n.base())},Zo.apply(n,arguments),n}function Vb(n){return function(a){return Math.sign(a)*Math.log1p(Math.abs(a/n))}}function Gb(n){return function(a){return Math.sign(a)*Math.expm1(Math.abs(a))*n}}function sy(n){var a=1,l=n(Vb(a),Gb(a));return l.constant=function(f){return arguments.length?n(Vb(a=+f),Gb(a)):a},rc(l)}function Zb(){var n=sy(od());return n.copy=function(){return Bu(n,Zb()).constant(n.constant())},Zo.apply(n,arguments)}function Xb(n){return function(a){return a<0?-Math.pow(-a,n):Math.pow(a,n)}}function Nx(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function Ox(n){return n<0?-n*n:n*n}function cy(n){var a=n(oa,oa),l=1;function f(){return l===1?n(oa,oa):l===.5?n(Nx,Ox):n(Xb(l),Xb(1/l))}return a.exponent=function(m){return arguments.length?(l=+m,f()):l},rc(a)}function uy(){var n=cy(od());return n.copy=function(){return Bu(n,uy()).exponent(n.exponent())},Zo.apply(n,arguments),n}function Lx(){return uy.apply(null,arguments).exponent(.5)}function Kb(){var n,a=[],l=[],f=[];function m(){var E=0,x=Math.max(1,l.length);for(f=new Array(x-1);++E<x;)f[E-1]=ge(a,E/x);return _}function _(E){return isNaN(E=+E)?n:l[k(f,E)]}return _.invertExtent=function(E){var x=l.indexOf(E);return x<0?[NaN,NaN]:[x>0?f[x-1]:a[0],x<f.length?f[x]:a[a.length-1]]},_.domain=function(E){if(!arguments.length)return a.slice();a=[];for(var x,M=0,N=E.length;M<N;++M)(x=E[M])==null||isNaN(x=+x)||a.push(x);return a.sort(c),m()},_.range=function(E){return arguments.length?(l=Lu.call(E),m()):l.slice()},_.unknown=function(E){return arguments.length?(n=E,_):n},_.quantiles=function(){return f.slice()},_.copy=function(){return Kb().domain(a).range(l).unknown(n)},Zo.apply(_,arguments)}function Qb(){var n,a=0,l=1,f=1,m=[.5],_=[0,1];function E(M){return M<=M?_[k(m,M,0,f)]:n}function x(){var M=-1;for(m=new Array(f);++M<f;)m[M]=((M+1)*l-(M-f)*a)/(f+1);return E}return E.domain=function(M){return arguments.length?(a=+M[0],l=+M[1],x()):[a,l]},E.range=function(M){return arguments.length?(f=(_=Lu.call(M)).length-1,x()):_.slice()},E.invertExtent=function(M){var N=_.indexOf(M);return N<0?[NaN,NaN]:N<1?[a,m[0]]:N>=f?[m[f-1],l]:[m[N-1],m[N]]},E.unknown=function(M){return arguments.length&&(n=M),E},E.thresholds=function(){return m.slice()},E.copy=function(){return Qb().domain([a,l]).range(_).unknown(n)},Zo.apply(rc(E),arguments)}function Jb(){var n,a=[.5],l=[0,1],f=1;function m(_){return _<=_?l[k(a,_,0,f)]:n}return m.domain=function(_){return arguments.length?(a=Lu.call(_),f=Math.min(a.length,l.length-1),m):a.slice()},m.range=function(_){return arguments.length?(l=Lu.call(_),f=Math.min(a.length,l.length-1),m):l.slice()},m.invertExtent=function(_){var E=l.indexOf(_);return[a[E-1],a[E]]},m.unknown=function(_){return arguments.length?(n=_,m):n},m.copy=function(){return Jb().domain(a).range(l).unknown(n)},Zo.apply(m,arguments)}var B1=new Date,ly=new Date;function Hi(n,a,l,f){function m(_){return n(_=arguments.length===0?new Date:new Date(+_)),_}return m.floor=function(_){return n(_=new Date(+_)),_},m.ceil=function(_){return n(_=new Date(_-1)),a(_,1),n(_),_},m.round=function(_){var E=m(_),x=m.ceil(_);return _-E<x-_?E:x},m.offset=function(_,E){return a(_=new Date(+_),E==null?1:Math.floor(E)),_},m.range=function(_,E,x){var M,N=[];if(_=m.ceil(_),x=x==null?1:Math.floor(x),!(_<E&&x>0))return N;do N.push(M=new Date(+_)),a(_,x),n(_);while(M<_&&_<E);return N},m.filter=function(_){return Hi(function(E){if(E>=E)for(;n(E),!_(E);)E.setTime(E-1)},function(E,x){if(E>=E)if(x<0)for(;++x<=0;)for(;a(E,-1),!_(E););else for(;--x>=0;)for(;a(E,1),!_(E););})},l&&(m.count=function(_,E){return B1.setTime(+_),ly.setTime(+E),n(B1),n(ly),Math.floor(l(B1,ly))},m.every=function(_){return _=Math.floor(_),isFinite(_)&&_>0?_>1?m.filter(f?function(E){return f(E)%_==0}:function(E){return m.count(0,E)%_==0}):m:null}),m}var hy=Hi(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,a){n.setFullYear(n.getFullYear()+a)},function(n,a){return a.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});hy.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Hi(function(a){a.setFullYear(Math.floor(a.getFullYear()/n)*n),a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,l){a.setFullYear(a.getFullYear()+l*n)}):null};const Ru=hy;var Bx=hy.range,Es=Hi(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,a){n.setMonth(n.getMonth()+a)},function(n,a){return a.getMonth()-n.getMonth()+12*(a.getFullYear()-n.getFullYear())},function(n){return n.getMonth()});const fy=Es;var ic=Es.range,R1=1e3,Iu=6e4,sd=36e5,dy=864e5,py=6048e5;function Fu(n){return Hi(function(a){a.setDate(a.getDate()-(a.getDay()+7-n)%7),a.setHours(0,0,0,0)},function(a,l){a.setDate(a.getDate()+7*l)},function(a,l){return(l-a-(l.getTimezoneOffset()-a.getTimezoneOffset())*Iu)/py})}var Pu=Fu(0),oh=Fu(1),I1=Fu(2),t3=Fu(3),ac=Fu(4),sh=Fu(5),oc=Fu(6),gy=Pu.range,F1=oh.range,yy=I1.range,Rx=t3.range,P1=ac.range,ch=sh.range,e3=oc.range,co=Hi(function(n){n.setHours(0,0,0,0)},function(n,a){n.setDate(n.getDate()+a)},function(n,a){return(a-n-(a.getTimezoneOffset()-n.getTimezoneOffset())*Iu)/dy},function(n){return n.getDate()-1});const ci=co;var uh=co.range,Y1=Hi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*R1-n.getMinutes()*Iu)},function(n,a){n.setTime(+n+a*sd)},function(n,a){return(a-n)/sd},function(n){return n.getHours()});const n3=Y1;var Ko=Y1.range,Hc=Hi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*R1)},function(n,a){n.setTime(+n+a*Iu)},function(n,a){return(a-n)/Iu},function(n){return n.getMinutes()});const cd=Hc;var j1=Hc.range,z1=Hi(function(n){n.setTime(n-n.getMilliseconds())},function(n,a){n.setTime(+n+a*R1)},function(n,a){return(a-n)/R1},function(n){return n.getUTCSeconds()});const lh=z1;var r3=z1.range,U1=Hi(function(){},function(n,a){n.setTime(+n+a)},function(n,a){return a-n});U1.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Hi(function(a){a.setTime(Math.floor(a/n)*n)},function(a,l){a.setTime(+a+l*n)},function(a,l){return(l-a)/n}):U1:null};const hh=U1;var i3=U1.range;function Yu(n){return Hi(function(a){a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-n)%7),a.setUTCHours(0,0,0,0)},function(a,l){a.setUTCDate(a.getUTCDate()+7*l)},function(a,l){return(l-a)/py})}var ud=Yu(0),$c=Yu(1),my=Yu(2),a3=Yu(3),Wc=Yu(4),vy=Yu(5),ju=Yu(6),o3=ud.range,Ix=$c.range,s3=my.range,c3=a3.range,zu=Wc.range,H1=vy.range,Fx=ju.range,_y=Hi(function(n){n.setUTCHours(0,0,0,0)},function(n,a){n.setUTCDate(n.getUTCDate()+a)},function(n,a){return(a-n)/dy},function(n){return n.getUTCDate()-1});const Oi=_y;var vr=_y.range,xe=Hi(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,a){n.setUTCFullYear(n.getUTCFullYear()+a)},function(n,a){return a.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});xe.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Hi(function(a){a.setUTCFullYear(Math.floor(a.getUTCFullYear()/n)*n),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,l){a.setUTCFullYear(a.getUTCFullYear()+l*n)}):null};const vi=xe;var by=xe.range;function wy(n){if(0<=n.y&&n.y<100){var a=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return a.setFullYear(n.y),a}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function xy(n){if(0<=n.y&&n.y<100){var a=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return a.setUTCFullYear(n.y),a}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function Uu(n,a,l){return{y:n,m:a,d:l,H:0,M:0,S:0,L:0}}function u3(n){var a=n.dateTime,l=n.date,f=n.time,m=n.periods,_=n.days,E=n.shortDays,x=n.months,M=n.shortMonths,N=Hu(m),R=$u(m),Y=Hu(_),L=$u(_),$=Hu(E),W=$u(E),J=Hu(x),Q=$u(x),Z=Hu(M),at=$u(M),nt={a:function(zt){return E[zt.getDay()]},A:function(zt){return _[zt.getDay()]},b:function(zt){return M[zt.getMonth()]},B:function(zt){return x[zt.getMonth()]},c:null,d:Wu,e:Wu,f:Qi,g:Ay,G:fd,H:qc,I:v3,j:_3,L:Sy,m:$x,M:Wx,p:function(zt){return m[+(zt.getHours()>=12)]},q:function(zt){return 1+~~(zt.getMonth()/3)},Q:Ry,s:Iy,S:qx,u:Z1,U:Cy,V:uo,w:X1,W:b3,x:null,X:null,y:Qn,Y:w3,Z:Ji,"%":yh},dt={a:function(zt){return E[zt.getUTCDay()]},A:function(zt){return _[zt.getUTCDay()]},b:function(zt){return M[zt.getUTCMonth()]},B:function(zt){return x[zt.getUTCMonth()]},c:null,d:gh,e:gh,f:Vx,g:ep,G:By,H:K1,I:Q1,j:x3,L:se,m:k3,M:J1,p:function(zt){return m[+(zt.getUTCHours()>=12)]},q:function(zt){return 1+~~(zt.getUTCMonth()/3)},Q:Ry,s:Iy,S:Dy,u:Ny,U:Oy,V:T3,w:tp,W:dd,x:null,X:null,y:Ly,Y:E3,Z:Gx,"%":yh},Mt={a:function(zt,ce,ft){var Et=$.exec(ce.slice(ft));return Et?(zt.w=W[Et[0].toLowerCase()],ft+Et[0].length):-1},A:function(zt,ce,ft){var Et=Y.exec(ce.slice(ft));return Et?(zt.w=L[Et[0].toLowerCase()],ft+Et[0].length):-1},b:function(zt,ce,ft){var Et=Z.exec(ce.slice(ft));return Et?(zt.m=at[Et[0].toLowerCase()],ft+Et[0].length):-1},B:function(zt,ce,ft){var Et=J.exec(ce.slice(ft));return Et?(zt.m=Q[Et[0].toLowerCase()],ft+Et[0].length):-1},c:function(zt,ce,ft){return be(zt,a,ce,ft)},d:W1,e:W1,f:y3,g:Ey,G:f3,H:g3,I:g3,j:q1,L:Hx,m:p3,M:V1,p:function(zt,ce,ft){var Et=N.exec(ce.slice(ft));return Et?(zt.p=R[Et[0].toLowerCase()],ft+Et[0].length):-1},q:d3,Q:G1,s:Qo,S:Ux,u:ph,U:Yx,V:jx,w:Ty,W:zx,x:function(zt,ce,ft){return be(zt,l,ce,ft)},X:function(zt,ce,ft){return be(zt,f,ce,ft)},y:Ey,Y:f3,Z:To,"%":m3};function Wt(zt,ce){return function(ft){var Et,re,Zt,ie=[],Ae=-1,Ue=0,xn=zt.length;for(ft instanceof Date||(ft=new Date(+ft));++Ae<xn;)zt.charCodeAt(Ae)===37&&(ie.push(zt.slice(Ue,Ae)),(re=h3[Et=zt.charAt(++Ae)])!=null?Et=zt.charAt(++Ae):re=Et==="e"?" ":"0",(Zt=ce[Et])&&(Et=Zt(ft,re)),ie.push(Et),Ue=Ae+1);return ie.push(zt.slice(Ue,Ae)),ie.join("")}}function Qt(zt,ce){return function(ft){var Et,re,Zt=Uu(1900,void 0,1);if(be(Zt,zt,ft+="",0)!=ft.length)return null;if("Q"in Zt)return new Date(Zt.Q);if("s"in Zt)return new Date(1e3*Zt.s+("L"in Zt?Zt.L:0));if(ce&&!("Z"in Zt)&&(Zt.Z=0),"p"in Zt&&(Zt.H=Zt.H%12+12*Zt.p),Zt.m===void 0&&(Zt.m="q"in Zt?Zt.q:0),"V"in Zt){if(Zt.V<1||Zt.V>53)return null;"w"in Zt||(Zt.w=1),"Z"in Zt?(re=(Et=xy(Uu(Zt.y,0,1))).getUTCDay(),Et=re>4||re===0?$c.ceil(Et):$c(Et),Et=Oi.offset(Et,7*(Zt.V-1)),Zt.y=Et.getUTCFullYear(),Zt.m=Et.getUTCMonth(),Zt.d=Et.getUTCDate()+(Zt.w+6)%7):(re=(Et=wy(Uu(Zt.y,0,1))).getDay(),Et=re>4||re===0?oh.ceil(Et):oh(Et),Et=ci.offset(Et,7*(Zt.V-1)),Zt.y=Et.getFullYear(),Zt.m=Et.getMonth(),Zt.d=Et.getDate()+(Zt.w+6)%7)}else("W"in Zt||"U"in Zt)&&("w"in Zt||(Zt.w="u"in Zt?Zt.u%7:"W"in Zt?1:0),re="Z"in Zt?xy(Uu(Zt.y,0,1)).getUTCDay():wy(Uu(Zt.y,0,1)).getDay(),Zt.m=0,Zt.d="W"in Zt?(Zt.w+6)%7+7*Zt.W-(re+5)%7:Zt.w+7*Zt.U-(re+6)%7);return"Z"in Zt?(Zt.H+=Zt.Z/100|0,Zt.M+=Zt.Z%100,xy(Zt)):wy(Zt)}}function be(zt,ce,ft,Et){for(var re,Zt,ie=0,Ae=ce.length,Ue=ft.length;ie<Ae;){if(Et>=Ue)return-1;if((re=ce.charCodeAt(ie++))===37){if(re=ce.charAt(ie++),!(Zt=Mt[re in h3?ce.charAt(ie++):re])||(Et=Zt(zt,ft,Et))<0)return-1}else if(re!=ft.charCodeAt(Et++))return-1}return Et}return nt.x=Wt(l,nt),nt.X=Wt(f,nt),nt.c=Wt(a,nt),dt.x=Wt(l,dt),dt.X=Wt(f,dt),dt.c=Wt(a,dt),{format:function(zt){var ce=Wt(zt+="",nt);return ce.toString=function(){return zt},ce},parse:function(zt){var ce=Qt(zt+="",!1);return ce.toString=function(){return zt},ce},utcFormat:function(zt){var ce=Wt(zt+="",dt);return ce.toString=function(){return zt},ce},utcParse:function(zt){var ce=Qt(zt+="",!0);return ce.toString=function(){return zt},ce}}}var fh,ld,l3,$1,hd,h3={"-":"",_:" ",0:"0"},Ki=/^\s*\d+/,ky=/^%/,Px=/[\\^$*+?|[\]().{}]/g;function Er(n,a,l){var f=n<0?"-":"",m=(f?-n:n)+"",_=m.length;return f+(_<l?new Array(l-_+1).join(a)+m:m)}function dh(n){return n.replace(Px,"\\$&")}function Hu(n){return new RegExp("^(?:"+n.map(dh).join("|")+")","i")}function $u(n){for(var a={},l=-1,f=n.length;++l<f;)a[n[l].toLowerCase()]=l;return a}function Ty(n,a,l){var f=Ki.exec(a.slice(l,l+1));return f?(n.w=+f[0],l+f[0].length):-1}function ph(n,a,l){var f=Ki.exec(a.slice(l,l+1));return f?(n.u=+f[0],l+f[0].length):-1}function Yx(n,a,l){var f=Ki.exec(a.slice(l,l+2));return f?(n.U=+f[0],l+f[0].length):-1}function jx(n,a,l){var f=Ki.exec(a.slice(l,l+2));return f?(n.V=+f[0],l+f[0].length):-1}function zx(n,a,l){var f=Ki.exec(a.slice(l,l+2));return f?(n.W=+f[0],l+f[0].length):-1}function f3(n,a,l){var f=Ki.exec(a.slice(l,l+4));return f?(n.y=+f[0],l+f[0].length):-1}function Ey(n,a,l){var f=Ki.exec(a.slice(l,l+2));return f?(n.y=+f[0]+(+f[0]>68?1900:2e3),l+f[0].length):-1}function To(n,a,l){var f=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(l,l+6));return f?(n.Z=f[1]?0:-(f[2]+(f[3]||"00")),l+f[0].length):-1}function d3(n,a,l){var f=Ki.exec(a.slice(l,l+1));return f?(n.q=3*f[0]-3,l+f[0].length):-1}function p3(n,a,l){var f=Ki.exec(a.slice(l,l+2));return f?(n.m=f[0]-1,l+f[0].length):-1}function W1(n,a,l){var f=Ki.exec(a.slice(l,l+2));return f?(n.d=+f[0],l+f[0].length):-1}function q1(n,a,l){var f=Ki.exec(a.slice(l,l+3));return f?(n.m=0,n.d=+f[0],l+f[0].length):-1}function g3(n,a,l){var f=Ki.exec(a.slice(l,l+2));return f?(n.H=+f[0],l+f[0].length):-1}function V1(n,a,l){var f=Ki.exec(a.slice(l,l+2));return f?(n.M=+f[0],l+f[0].length):-1}function Ux(n,a,l){var f=Ki.exec(a.slice(l,l+2));return f?(n.S=+f[0],l+f[0].length):-1}function Hx(n,a,l){var f=Ki.exec(a.slice(l,l+3));return f?(n.L=+f[0],l+f[0].length):-1}function y3(n,a,l){var f=Ki.exec(a.slice(l,l+6));return f?(n.L=Math.floor(f[0]/1e3),l+f[0].length):-1}function m3(n,a,l){var f=ky.exec(a.slice(l,l+1));return f?l+f[0].length:-1}function G1(n,a,l){var f=Ki.exec(a.slice(l));return f?(n.Q=+f[0],l+f[0].length):-1}function Qo(n,a,l){var f=Ki.exec(a.slice(l));return f?(n.s=+f[0],l+f[0].length):-1}function Wu(n,a){return Er(n.getDate(),a,2)}function qc(n,a){return Er(n.getHours(),a,2)}function v3(n,a){return Er(n.getHours()%12||12,a,2)}function _3(n,a){return Er(1+ci.count(Ru(n),n),a,3)}function Sy(n,a){return Er(n.getMilliseconds(),a,3)}function Qi(n,a){return Sy(n,a)+"000"}function $x(n,a){return Er(n.getMonth()+1,a,2)}function Wx(n,a){return Er(n.getMinutes(),a,2)}function qx(n,a){return Er(n.getSeconds(),a,2)}function Z1(n){var a=n.getDay();return a===0?7:a}function Cy(n,a){return Er(Pu.count(Ru(n)-1,n),a,2)}function My(n){var a=n.getDay();return a>=4||a===0?ac(n):ac.ceil(n)}function uo(n,a){return n=My(n),Er(ac.count(Ru(n),n)+(Ru(n).getDay()===4),a,2)}function X1(n){return n.getDay()}function b3(n,a){return Er(oh.count(Ru(n)-1,n),a,2)}function Qn(n,a){return Er(n.getFullYear()%100,a,2)}function Ay(n,a){return Er((n=My(n)).getFullYear()%100,a,2)}function w3(n,a){return Er(n.getFullYear()%1e4,a,4)}function fd(n,a){var l=n.getDay();return Er((n=l>=4||l===0?ac(n):ac.ceil(n)).getFullYear()%1e4,a,4)}function Ji(n){var a=n.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+Er(a/60|0,"0",2)+Er(a%60,"0",2)}function gh(n,a){return Er(n.getUTCDate(),a,2)}function K1(n,a){return Er(n.getUTCHours(),a,2)}function Q1(n,a){return Er(n.getUTCHours()%12||12,a,2)}function x3(n,a){return Er(1+Oi.count(vi(n),n),a,3)}function se(n,a){return Er(n.getUTCMilliseconds(),a,3)}function Vx(n,a){return se(n,a)+"000"}function k3(n,a){return Er(n.getUTCMonth()+1,a,2)}function J1(n,a){return Er(n.getUTCMinutes(),a,2)}function Dy(n,a){return Er(n.getUTCSeconds(),a,2)}function Ny(n){var a=n.getUTCDay();return a===0?7:a}function Oy(n,a){return Er(ud.count(vi(n)-1,n),a,2)}function $i(n){var a=n.getUTCDay();return a>=4||a===0?Wc(n):Wc.ceil(n)}function T3(n,a){return n=$i(n),Er(Wc.count(vi(n),n)+(vi(n).getUTCDay()===4),a,2)}function tp(n){return n.getUTCDay()}function dd(n,a){return Er($c.count(vi(n)-1,n),a,2)}function Ly(n,a){return Er(n.getUTCFullYear()%100,a,2)}function ep(n,a){return Er((n=$i(n)).getUTCFullYear()%100,a,2)}function E3(n,a){return Er(n.getUTCFullYear()%1e4,a,4)}function By(n,a){var l=n.getUTCDay();return Er((n=l>=4||l===0?Wc(n):Wc.ceil(n)).getUTCFullYear()%1e4,a,4)}function Gx(){return"+0000"}function yh(){return"%"}function Ry(n){return+n}function Iy(n){return Math.floor(+n/1e3)}function Jo(n){return fh=u3(n),ld=fh.format,l3=fh.parse,$1=fh.utcFormat,hd=fh.utcParse,fh}Jo({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Fy=31536e6;function pd(n){return new Date(n)}function Zx(n){return n instanceof Date?+n:+new Date(+n)}function Mi(n,a,l,f,m,_,E,x,M){var N=ny(oa,oa),R=N.invert,Y=N.domain,L=M(".%L"),$=M(":%S"),W=M("%I:%M"),J=M("%I %p"),Q=M("%a %d"),Z=M("%b %d"),at=M("%B"),nt=M("%Y"),dt=[[E,1,1e3],[E,5,5e3],[E,15,15e3],[E,30,3e4],[_,1,6e4],[_,5,3e5],[_,15,9e5],[_,30,18e5],[m,1,36e5],[m,3,108e5],[m,6,216e5],[m,12,432e5],[f,1,864e5],[f,2,1728e5],[l,1,6048e5],[a,1,2592e6],[a,3,7776e6],[n,1,Fy]];function Mt(Qt){return(E(Qt)<Qt?L:_(Qt)<Qt?$:m(Qt)<Qt?W:f(Qt)<Qt?J:a(Qt)<Qt?l(Qt)<Qt?Q:Z:n(Qt)<Qt?at:nt)(Qt)}function Wt(Qt,be,zt,ce){if(Qt==null&&(Qt=10),typeof Qt=="number"){var ft=Math.abs(zt-be)/Qt,Et=y(function(re){return re[2]}).right(dt,ft);Et===dt.length?(ce=wt(be/Fy,zt/Fy,Qt),Qt=n):Et?(ce=(Et=dt[ft/dt[Et-1][2]<dt[Et][2]/ft?Et-1:Et])[1],Qt=Et[0]):(ce=Math.max(wt(be,zt,Qt),1),Qt=x)}return ce==null?Qt:Qt.every(ce)}return N.invert=function(Qt){return new Date(R(Qt))},N.domain=function(Qt){return arguments.length?Y(M1.call(Qt,Zx)):Y().map(pd)},N.ticks=function(Qt,be){var zt,ce=Y(),ft=ce[0],Et=ce[ce.length-1],re=Et<ft;return re&&(zt=ft,ft=Et,Et=zt),zt=(zt=Wt(Qt,ft,Et,be))?zt.range(ft,Et+1):[],re?zt.reverse():zt},N.tickFormat=function(Qt,be){return be==null?Mt:M(be)},N.nice=function(Qt,be){var zt=Y();return(Qt=Wt(Qt,zt[0],zt[zt.length-1],be))?Y(ay(zt,Qt)):N},N.copy=function(){return Bu(N,Mi(n,a,l,f,m,_,E,x,M))},N}function mh(){return Zo.apply(Mi(Ru,fy,Pu,ci,n3,cd,lh,hh,ld).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var S3=Hi(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,a){n.setUTCMonth(n.getUTCMonth()+a)},function(n,a){return a.getUTCMonth()-n.getUTCMonth()+12*(a.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()});const Py=S3;var Yy=S3.range,C3=Hi(function(n){n.setUTCMinutes(0,0,0)},function(n,a){n.setTime(+n+a*sd)},function(n,a){return(a-n)/sd},function(n){return n.getUTCHours()});const M3=C3;var Xx=C3.range,jy=Hi(function(n){n.setUTCSeconds(0,0)},function(n,a){n.setTime(+n+a*Iu)},function(n,a){return(a-n)/Iu},function(n){return n.getUTCMinutes()});const qu=jy;var zy=jy.range;function Kx(){return Zo.apply(Mi(vi,Py,ud,Oi,M3,qu,lh,hh,$1).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function vh(){var n,a,l,f,m,_=0,E=1,x=oa,M=!1;function N(R){return isNaN(R=+R)?m:x(l===0?.5:(R=(f(R)-n)*l,M?Math.max(0,Math.min(1,R)):R))}return N.domain=function(R){return arguments.length?(n=f(_=+R[0]),a=f(E=+R[1]),l=n===a?0:1/(a-n),N):[_,E]},N.clamp=function(R){return arguments.length?(M=!!R,N):M},N.interpolator=function(R){return arguments.length?(x=R,N):x},N.unknown=function(R){return arguments.length?(m=R,N):m},function(R){return f=R,n=R(_),a=R(E),l=n===a?0:1/(a-n),N}}function ts(n,a){return a.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function gd(){var n=rc(vh()(oa));return n.copy=function(){return ts(n,gd())},nc.apply(n,arguments)}function Uy(){var n=oy(vh()).domain([1,10]);return n.copy=function(){return ts(n,Uy()).base(n.base())},nc.apply(n,arguments)}function A3(){var n=sy(vh());return n.copy=function(){return ts(n,A3()).constant(n.constant())},nc.apply(n,arguments)}function Hy(){var n=cy(vh());return n.copy=function(){return ts(n,Hy()).exponent(n.exponent())},nc.apply(n,arguments)}function Qx(){return Hy.apply(null,arguments).exponent(.5)}function np(){var n=[],a=oa;function l(f){if(!isNaN(f=+f))return a((k(n,f)-1)/(n.length-1))}return l.domain=function(f){if(!arguments.length)return n.slice();n=[];for(var m,_=0,E=f.length;_<E;++_)(m=f[_])==null||isNaN(m=+m)||n.push(m);return n.sort(c),l},l.interpolator=function(f){return arguments.length?(a=f,l):a},l.copy=function(){return np(a).domain(n)},nc.apply(l,arguments)}function sa(){var n,a,l,f,m,_,E,x=0,M=.5,N=1,R=oa,Y=!1;function L($){return isNaN($=+$)?E:($=.5+(($=+_($))-a)*($<a?f:m),R(Y?Math.max(0,Math.min(1,$)):$))}return L.domain=function($){return arguments.length?(n=_(x=+$[0]),a=_(M=+$[1]),l=_(N=+$[2]),f=n===a?0:.5/(a-n),m=a===l?0:.5/(l-a),L):[x,M,N]},L.clamp=function($){return arguments.length?(Y=!!$,L):Y},L.interpolator=function($){return arguments.length?(R=$,L):R},L.unknown=function($){return arguments.length?(E=$,L):E},function($){return _=$,n=$(x),a=$(M),l=$(N),f=n===a?0:.5/(a-n),m=a===l?0:.5/(l-a),L}}function Oa(){var n=rc(sa()(oa));return n.copy=function(){return ts(n,Oa())},nc.apply(n,arguments)}function Li(){var n=oy(sa()).domain([.1,1,10]);return n.copy=function(){return ts(n,Li()).base(n.base())},nc.apply(n,arguments)}function Ss(){var n=sy(sa());return n.copy=function(){return ts(n,Ss()).constant(n.constant())},nc.apply(n,arguments)}function dr(){var n=cy(sa());return n.copy=function(){return ts(n,dr()).exponent(n.exponent())},nc.apply(n,arguments)}function es(){return dr.apply(null,arguments).exponent(.5)}function Vn(n){for(var a=n.length/6|0,l=new Array(a),f=0;f<a;)l[f]="#"+n.slice(6*f,6*++f);return l}const rp=Vn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Jx=Vn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),t6=Vn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),ip=Vn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),D3=Vn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),e6=Vn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),n6=Vn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),r6=Vn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),i6=Vn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),a6=Vn("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Wr(n){return xl(n[n.length-1])}var $y=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Vn);const o6=Wr($y);var _h=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Vn);const ap=Wr(_h);var Cs=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Vn);const Vu=Wr(Cs);var yd=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Vn);const N3=Wr(yd);var Wy=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Vn);const bh=Wr(Wy);var qy=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Vn);const s6=Wr(qy);var Vy=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Vn);const op=Wr(Vy);var ta=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Vn);const c6=Wr(ta);var md=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Vn);const u6=Wr(md);var Gy=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Vn);const l6=Wr(Gy);var sp=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Vn);const O3=Wr(sp);var Zy=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Vn);const vd=Wr(Zy);var cp=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Vn);const Xy=Wr(cp);var Ky=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Vn);const Wa=Wr(Ky);var L3=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Vn);const B3=Wr(L3);var Ms=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Vn);const Vc=Wr(Ms);var zr=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Vn);const R3=Wr(zr);var Qy=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Vn);const I3=Wr(Qy);var F3=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Vn);const Jy=Wr(F3);var up=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Vn);const sc=Wr(up);var _d=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Vn);const h6=Wr(_d);var tm=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Vn);const wh=Wr(tm);var ui=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Vn);const Gu=Wr(ui);var Zu=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Vn);const As=Wr(Zu);var bd=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Vn);const em=Wr(bd);var lp=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Vn);const nm=Wr(lp);var wd=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Vn);const hp=Wr(wd);function f6(n){return n=Math.max(0,Math.min(1,n)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-n*(35.34-n*(2381.73-n*(6402.7-n*(7024.72-2710.57*n)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+n*(170.73+n*(52.82-n*(131.46-n*(176.58-67.37*n)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+n*(442.36-n*(2482.43-n*(6167.24-n*(6614.94-2475.67*n)))))))+")"}const rm=ed(Ta(300,.5,0),Ta(-240,.5,1));var P3=ed(Ta(-100,.75,.35),Ta(80,1.5,.8)),d6=ed(Ta(260,.75,.35),Ta(80,1.5,.8)),xh=Ta();function Y3(n){(n<0||n>1)&&(n-=Math.floor(n));var a=Math.abs(n-.5);return xh.h=360*n-100,xh.s=1.5-1.5*a,xh.l=.8-.9*a,xh+""}var fp=Gi(),j3=Math.PI/3,z3=2*Math.PI/3;function ir(n){var a;return n=(.5-n)*Math.PI,fp.r=255*(a=Math.sin(n))*a,fp.g=255*(a=Math.sin(n+j3))*a,fp.b=255*(a=Math.sin(n+z3))*a,fp+""}function p6(n){return n=Math.max(0,Math.min(1,n)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+n*(1172.33-n*(10793.56-n*(33300.12-n*(38394.49-14825.05*n)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+n*(557.33+n*(1225.33-n*(3574.96-n*(1073.77+707.56*n)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+n*(3211.1-n*(15327.97-n*(27814-n*(22569.18-6838.66*n)))))))+")"}function Xu(n){var a=n.length;return function(l){return n[Math.max(0,Math.min(a-1,Math.floor(l*a)))]}}const g6=Xu(Vn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var lo=Xu(Vn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),y6=Xu(Vn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),U3=Xu(Vn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function m6(n){return yr(di(n).call(document.documentElement))}var v6=0;function H3(){return new im}function im(){this._="@"+(++v6).toString(36)}function _6(n){return typeof n=="string"?new Dn([document.querySelectorAll(n)],[document.documentElement]):new Dn([n==null?[]:n],na)}function b6(n,a){a==null&&(a=eo().touches);for(var l=0,f=a?a.length:0,m=new Array(f);l<f;++l)m[l]=vu(n,a[l]);return m}function sr(n){return function(){return n}}im.prototype=H3.prototype={constructor:im,get:function(n){for(var a=this._;!(a in n);)if(!(n=n.parentNode))return;return n[a]},set:function(n,a){return n[this._]=a},remove:function(n){return this._ in n&&delete n[this._]},toString:function(){return this._}};var $3=Math.abs,ga=Math.atan2,Ku=Math.cos,w6=Math.max,ns=Math.min,Ds=Math.sin,Qu=Math.sqrt,ca=1e-12,Gc=Math.PI,xd=Gc/2,cc=2*Gc;function x6(n){return n>1?0:n<-1?Gc:Math.acos(n)}function dp(n){return n>=1?xd:n<=-1?-xd:Math.asin(n)}function am(n){return n.innerRadius}function pp(n){return n.outerRadius}function Ns(n){return n.startAngle}function om(n){return n.endAngle}function sm(n){return n&&n.padAngle}function kd(n,a,l,f,m,_,E,x){var M=l-n,N=f-a,R=E-m,Y=x-_,L=Y*M-R*N;if(!(L*L<ca))return[n+(L=(R*(a-_)-Y*(n-m))/L)*M,a+L*N]}function Zc(n,a,l,f,m,_,E){var x=n-l,M=a-f,N=(E?_:-_)/Qu(x*x+M*M),R=N*M,Y=-N*x,L=n+R,$=a+Y,W=l+R,J=f+Y,Q=(L+W)/2,Z=($+J)/2,at=W-L,nt=J-$,dt=at*at+nt*nt,Mt=m-_,Wt=L*J-W*$,Qt=(nt<0?-1:1)*Qu(w6(0,Mt*Mt*dt-Wt*Wt)),be=(Wt*nt-at*Qt)/dt,zt=(-Wt*at-nt*Qt)/dt,ce=(Wt*nt+at*Qt)/dt,ft=(-Wt*at+nt*Qt)/dt,Et=be-Q,re=zt-Z,Zt=ce-Q,ie=ft-Z;return Et*Et+re*re>Zt*Zt+ie*ie&&(be=ce,zt=ft),{cx:be,cy:zt,x01:-R,y01:-Y,x11:be*(m/Mt-1),y11:zt*(m/Mt-1)}}function cm(){var n=am,a=pp,l=sr(0),f=null,m=Ns,_=om,E=sm,x=null;function M(){var N,R,Y=+n.apply(this,arguments),L=+a.apply(this,arguments),$=m.apply(this,arguments)-xd,W=_.apply(this,arguments)-xd,J=$3(W-$),Q=W>$;if(x||(x=N=Ws()),L<Y&&(R=L,L=Y,Y=R),L>ca)if(J>cc-ca)x.moveTo(L*Ku($),L*Ds($)),x.arc(0,0,L,$,W,!Q),Y>ca&&(x.moveTo(Y*Ku(W),Y*Ds(W)),x.arc(0,0,Y,W,$,Q));else{var Z,at,nt=$,dt=W,Mt=$,Wt=W,Qt=J,be=J,zt=E.apply(this,arguments)/2,ce=zt>ca&&(f?+f.apply(this,arguments):Qu(Y*Y+L*L)),ft=ns($3(L-Y)/2,+l.apply(this,arguments)),Et=ft,re=ft;if(ce>ca){var Zt=dp(ce/Y*Ds(zt)),ie=dp(ce/L*Ds(zt));(Qt-=2*Zt)>ca?(Mt+=Zt*=Q?1:-1,Wt-=Zt):(Qt=0,Mt=Wt=($+W)/2),(be-=2*ie)>ca?(nt+=ie*=Q?1:-1,dt-=ie):(be=0,nt=dt=($+W)/2)}var Ae=L*Ku(nt),Ue=L*Ds(nt),xn=Y*Ku(Wt),Jn=Y*Ds(Wt);if(ft>ca){var zn,nn=L*Ku(dt),pr=L*Ds(dt),Ln=Y*Ku(Mt),Nn=Y*Ds(Mt);if(J<Gc&&(zn=kd(Ae,Ue,Ln,Nn,nn,pr,xn,Jn))){var ur=Ae-zn[0],ua=Ue-zn[1],Ri=nn-zn[0],gc=pr-zn[1],nu=1/Ds(x6((ur*Ri+ua*gc)/(Qu(ur*ur+ua*ua)*Qu(Ri*Ri+gc*gc)))/2),go=Qu(zn[0]*zn[0]+zn[1]*zn[1]);Et=ns(ft,(Y-go)/(nu-1)),re=ns(ft,(L-go)/(nu+1))}}be>ca?re>ca?(Z=Zc(Ln,Nn,Ae,Ue,L,re,Q),at=Zc(nn,pr,xn,Jn,L,re,Q),x.moveTo(Z.cx+Z.x01,Z.cy+Z.y01),re<ft?x.arc(Z.cx,Z.cy,re,ga(Z.y01,Z.x01),ga(at.y01,at.x01),!Q):(x.arc(Z.cx,Z.cy,re,ga(Z.y01,Z.x01),ga(Z.y11,Z.x11),!Q),x.arc(0,0,L,ga(Z.cy+Z.y11,Z.cx+Z.x11),ga(at.cy+at.y11,at.cx+at.x11),!Q),x.arc(at.cx,at.cy,re,ga(at.y11,at.x11),ga(at.y01,at.x01),!Q))):(x.moveTo(Ae,Ue),x.arc(0,0,L,nt,dt,!Q)):x.moveTo(Ae,Ue),Y>ca&&Qt>ca?Et>ca?(Z=Zc(xn,Jn,nn,pr,Y,-Et,Q),at=Zc(Ae,Ue,Ln,Nn,Y,-Et,Q),x.lineTo(Z.cx+Z.x01,Z.cy+Z.y01),Et<ft?x.arc(Z.cx,Z.cy,Et,ga(Z.y01,Z.x01),ga(at.y01,at.x01),!Q):(x.arc(Z.cx,Z.cy,Et,ga(Z.y01,Z.x01),ga(Z.y11,Z.x11),!Q),x.arc(0,0,Y,ga(Z.cy+Z.y11,Z.cx+Z.x11),ga(at.cy+at.y11,at.cx+at.x11),Q),x.arc(at.cx,at.cy,Et,ga(at.y11,at.x11),ga(at.y01,at.x01),!Q))):x.arc(0,0,Y,Wt,Mt,Q):x.lineTo(xn,Jn)}else x.moveTo(0,0);if(x.closePath(),N)return x=null,N+""||null}return M.centroid=function(){var N=(+n.apply(this,arguments)+ +a.apply(this,arguments))/2,R=(+m.apply(this,arguments)+ +_.apply(this,arguments))/2-Gc/2;return[Ku(R)*N,Ds(R)*N]},M.innerRadius=function(N){return arguments.length?(n=typeof N=="function"?N:sr(+N),M):n},M.outerRadius=function(N){return arguments.length?(a=typeof N=="function"?N:sr(+N),M):a},M.cornerRadius=function(N){return arguments.length?(l=typeof N=="function"?N:sr(+N),M):l},M.padRadius=function(N){return arguments.length?(f=N==null?null:typeof N=="function"?N:sr(+N),M):f},M.startAngle=function(N){return arguments.length?(m=typeof N=="function"?N:sr(+N),M):m},M.endAngle=function(N){return arguments.length?(_=typeof N=="function"?N:sr(+N),M):_},M.padAngle=function(N){return arguments.length?(E=typeof N=="function"?N:sr(+N),M):E},M.context=function(N){return arguments.length?(x=N==null?null:N,M):x},M}function gp(n){this._context=n}function kh(n){return new gp(n)}function Xc(n){return n[0]}function yp(n){return n[1]}function Th(){var n=Xc,a=yp,l=sr(!0),f=null,m=kh,_=null;function E(x){var M,N,R,Y=x.length,L=!1;for(f==null&&(_=m(R=Ws())),M=0;M<=Y;++M)!(M<Y&&l(N=x[M],M,x))===L&&((L=!L)?_.lineStart():_.lineEnd()),L&&_.point(+n(N,M,x),+a(N,M,x));if(R)return _=null,R+""||null}return E.x=function(x){return arguments.length?(n=typeof x=="function"?x:sr(+x),E):n},E.y=function(x){return arguments.length?(a=typeof x=="function"?x:sr(+x),E):a},E.defined=function(x){return arguments.length?(l=typeof x=="function"?x:sr(!!x),E):l},E.curve=function(x){return arguments.length?(m=x,f!=null&&(_=m(f)),E):m},E.context=function(x){return arguments.length?(x==null?f=_=null:_=m(f=x),E):f},E}function Eh(){var n=Xc,a=null,l=sr(0),f=yp,m=sr(!0),_=null,E=kh,x=null;function M(R){var Y,L,$,W,J,Q=R.length,Z=!1,at=new Array(Q),nt=new Array(Q);for(_==null&&(x=E(J=Ws())),Y=0;Y<=Q;++Y){if(!(Y<Q&&m(W=R[Y],Y,R))===Z)if(Z=!Z)L=Y,x.areaStart(),x.lineStart();else{for(x.lineEnd(),x.lineStart(),$=Y-1;$>=L;--$)x.point(at[$],nt[$]);x.lineEnd(),x.areaEnd()}Z&&(at[Y]=+n(W,Y,R),nt[Y]=+l(W,Y,R),x.point(a?+a(W,Y,R):at[Y],f?+f(W,Y,R):nt[Y]))}if(J)return x=null,J+""||null}function N(){return Th().defined(m).curve(E).context(_)}return M.x=function(R){return arguments.length?(n=typeof R=="function"?R:sr(+R),a=null,M):n},M.x0=function(R){return arguments.length?(n=typeof R=="function"?R:sr(+R),M):n},M.x1=function(R){return arguments.length?(a=R==null?null:typeof R=="function"?R:sr(+R),M):a},M.y=function(R){return arguments.length?(l=typeof R=="function"?R:sr(+R),f=null,M):l},M.y0=function(R){return arguments.length?(l=typeof R=="function"?R:sr(+R),M):l},M.y1=function(R){return arguments.length?(f=R==null?null:typeof R=="function"?R:sr(+R),M):f},M.lineX0=M.lineY0=function(){return N().x(n).y(l)},M.lineY1=function(){return N().x(n).y(f)},M.lineX1=function(){return N().x(a).y(l)},M.defined=function(R){return arguments.length?(m=typeof R=="function"?R:sr(!!R),M):m},M.curve=function(R){return arguments.length?(E=R,_!=null&&(x=E(_)),M):E},M.context=function(R){return arguments.length?(R==null?_=x=null:x=E(_=R),M):_},M}function um(n,a){return a<n?-1:a>n?1:a>=n?0:NaN}function lm(n){return n}function W3(){var n=lm,a=um,l=null,f=sr(0),m=sr(cc),_=sr(0);function E(x){var M,N,R,Y,L,$=x.length,W=0,J=new Array($),Q=new Array($),Z=+f.apply(this,arguments),at=Math.min(cc,Math.max(-cc,m.apply(this,arguments)-Z)),nt=Math.min(Math.abs(at)/$,_.apply(this,arguments)),dt=nt*(at<0?-1:1);for(M=0;M<$;++M)(L=Q[J[M]=M]=+n(x[M],M,x))>0&&(W+=L);for(a!=null?J.sort(function(Mt,Wt){return a(Q[Mt],Q[Wt])}):l!=null&&J.sort(function(Mt,Wt){return l(x[Mt],x[Wt])}),M=0,R=W?(at-$*dt)/W:0;M<$;++M,Z=Y)N=J[M],Y=Z+((L=Q[N])>0?L*R:0)+dt,Q[N]={data:x[N],index:M,value:L,startAngle:Z,endAngle:Y,padAngle:nt};return Q}return E.value=function(x){return arguments.length?(n=typeof x=="function"?x:sr(+x),E):n},E.sortValues=function(x){return arguments.length?(a=x,l=null,E):a},E.sort=function(x){return arguments.length?(l=x,a=null,E):l},E.startAngle=function(x){return arguments.length?(f=typeof x=="function"?x:sr(+x),E):f},E.endAngle=function(x){return arguments.length?(m=typeof x=="function"?x:sr(+x),E):m},E.padAngle=function(x){return arguments.length?(_=typeof x=="function"?x:sr(+x),E):_},E}gp.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(n,a){switch(n=+n,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 1:this._point=2;default:this._context.lineTo(n,a)}}};var hm=Td(kh);function q3(n){this._curve=n}function Td(n){function a(l){return new q3(n(l))}return a._curve=n,a}function Sh(n){var a=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(l){return arguments.length?a(Td(l)):a()._curve},n}function fm(){return Sh(Th().curve(hm))}function dm(){var n=Eh().curve(hm),a=n.curve,l=n.lineX0,f=n.lineX1,m=n.lineY0,_=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return Sh(l())},delete n.lineX0,n.lineEndAngle=function(){return Sh(f())},delete n.lineX1,n.lineInnerRadius=function(){return Sh(m())},delete n.lineY0,n.lineOuterRadius=function(){return Sh(_())},delete n.lineY1,n.curve=function(E){return arguments.length?a(Td(E)):a()._curve},n}function Os(n,a){return[(a=+a)*Math.cos(n-=Math.PI/2),a*Math.sin(n)]}q3.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(n,a){this._curve.point(a*Math.sin(n),a*-Math.cos(n))}};var _i=Array.prototype.slice;function V3(n){return n.source}function Ch(n){return n.target}function mp(n){var a=V3,l=Ch,f=Xc,m=yp,_=null;function E(){var x,M=_i.call(arguments),N=a.apply(this,M),R=l.apply(this,M);if(_||(_=x=Ws()),n(_,+f.apply(this,(M[0]=N,M)),+m.apply(this,M),+f.apply(this,(M[0]=R,M)),+m.apply(this,M)),x)return _=null,x+""||null}return E.source=function(x){return arguments.length?(a=x,E):a},E.target=function(x){return arguments.length?(l=x,E):l},E.x=function(x){return arguments.length?(f=typeof x=="function"?x:sr(+x),E):f},E.y=function(x){return arguments.length?(m=typeof x=="function"?x:sr(+x),E):m},E.context=function(x){return arguments.length?(_=x==null?null:x,E):_},E}function G3(n,a,l,f,m){n.moveTo(a,l),n.bezierCurveTo(a=(a+f)/2,l,a,m,f,m)}function Z3(n,a,l,f,m){n.moveTo(a,l),n.bezierCurveTo(a,l=(l+m)/2,f,l,f,m)}function Ed(n,a,l,f,m){var _=Os(a,l),E=Os(a,l=(l+m)/2),x=Os(f,l),M=Os(f,m);n.moveTo(_[0],_[1]),n.bezierCurveTo(E[0],E[1],x[0],x[1],M[0],M[1])}function X3(){return mp(G3)}function Kc(){return mp(Z3)}function Eo(){var n=mp(Ed);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}const pm={draw:function(n,a){var l=Math.sqrt(a/Gc);n.moveTo(l,0),n.arc(0,0,l,0,cc)}},K3={draw:function(n,a){var l=Math.sqrt(a/5)/2;n.moveTo(-3*l,-l),n.lineTo(-l,-l),n.lineTo(-l,-3*l),n.lineTo(l,-3*l),n.lineTo(l,-l),n.lineTo(3*l,-l),n.lineTo(3*l,l),n.lineTo(l,l),n.lineTo(l,3*l),n.lineTo(-l,3*l),n.lineTo(-l,l),n.lineTo(-3*l,l),n.closePath()}};var Ai=Math.sqrt(1/3),La=2*Ai;const Bi={draw:function(n,a){var l=Math.sqrt(a/La),f=l*Ai;n.moveTo(0,-l),n.lineTo(f,0),n.lineTo(0,l),n.lineTo(-f,0),n.closePath()}};var rs=Math.sin(Gc/10)/Math.sin(7*Gc/10),Q3=Math.sin(cc/10)*rs,gm=-Math.cos(cc/10)*rs;const ym={draw:function(n,a){var l=Math.sqrt(.8908130915292852*a),f=Q3*l,m=gm*l;n.moveTo(0,-l),n.lineTo(f,m);for(var _=1;_<5;++_){var E=cc*_/5,x=Math.cos(E),M=Math.sin(E);n.lineTo(M*l,-x*l),n.lineTo(x*f-M*m,M*f+x*m)}n.closePath()}},Sd={draw:function(n,a){var l=Math.sqrt(a),f=-l/2;n.rect(f,f,l,l)}};var vp=Math.sqrt(3);const mm={draw:function(n,a){var l=-Math.sqrt(a/(3*vp));n.moveTo(0,2*l),n.lineTo(-vp*l,-l),n.lineTo(vp*l,-l),n.closePath()}};var ho=-.5,fo=Math.sqrt(3)/2,Qc=1/Math.sqrt(12),Mh=3*(Qc/2+1);const J3={draw:function(n,a){var l=Math.sqrt(a/Mh),f=l/2,m=l*Qc,_=f,E=l*Qc+l,x=-_,M=E;n.moveTo(f,m),n.lineTo(_,E),n.lineTo(x,M),n.lineTo(ho*f-fo*m,fo*f+ho*m),n.lineTo(ho*_-fo*E,fo*_+ho*E),n.lineTo(ho*x-fo*M,fo*x+ho*M),n.lineTo(ho*f+fo*m,ho*m-fo*f),n.lineTo(ho*_+fo*E,ho*E-fo*_),n.lineTo(ho*x+fo*M,ho*M-fo*x),n.closePath()}};var t4=[pm,K3,Bi,Sd,ym,mm,J3];function Jc(){var n=sr(pm),a=sr(64),l=null;function f(){var m;if(l||(l=m=Ws()),n.apply(this,arguments).draw(l,+a.apply(this,arguments)),m)return l=null,m+""||null}return f.type=function(m){return arguments.length?(n=typeof m=="function"?m:sr(m),f):n},f.size=function(m){return arguments.length?(a=typeof m=="function"?m:sr(+m),f):a},f.context=function(m){return arguments.length?(l=m==null?null:m,f):l},f}function Fn(){}function Cd(n,a,l){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+a)/6,(n._y0+4*n._y1+l)/6)}function uc(n){this._context=n}function e4(n){return new uc(n)}function _p(n){this._context=n}function k6(n){return new _p(n)}function bp(n){this._context=n}function n4(n){return new bp(n)}function vm(n,a){this._basis=new uc(n),this._beta=a}uc.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:Cd(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,a){switch(n=+n,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);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:Cd(this,n,a)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=a}},_p.prototype={areaStart:Fn,areaEnd:Fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(n,a){switch(n=+n,a=+a,this._point){case 0:this._point=1,this._x2=n,this._y2=a;break;case 1:this._point=2,this._x3=n,this._y3=a;break;case 2:this._point=3,this._x4=n,this._y4=a,this._context.moveTo((this._x0+4*this._x1+n)/6,(this._y0+4*this._y1+a)/6);break;default:Cd(this,n,a)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=a}},bp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(n,a){switch(n=+n,a=+a,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var l=(this._x0+4*this._x1+n)/6,f=(this._y0+4*this._y1+a)/6;this._line?this._context.lineTo(l,f):this._context.moveTo(l,f);break;case 3:this._point=4;default:Cd(this,n,a)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=a}},vm.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,a=this._y,l=n.length-1;if(l>0)for(var f,m=n[0],_=a[0],E=n[l]-m,x=a[l]-_,M=-1;++M<=l;)f=M/l,this._basis.point(this._beta*n[M]+(1-this._beta)*(m+f*E),this._beta*a[M]+(1-this._beta)*(_+f*x));this._x=this._y=null,this._basis.lineEnd()},point:function(n,a){this._x.push(+n),this._y.push(+a)}};const r4=function n(a){function l(f){return a===1?new uc(f):new vm(f,a)}return l.beta=function(f){return n(+f)},l}(.85);function Md(n,a,l){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-a),n._y2+n._k*(n._y1-l),n._x2,n._y2)}function wp(n,a){this._context=n,this._k=(1-a)/6}wp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Md(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,a){switch(n=+n,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 1:this._point=2,this._x1=n,this._y1=a;break;case 2:this._point=3;default:Md(this,n,a)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const T6=function n(a){function l(f){return new wp(f,a)}return l.tension=function(f){return n(+f)},l}(0);function xp(n,a){this._context=n,this._k=(1-a)/6}xp.prototype={areaStart:Fn,areaEnd:Fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(n,a){switch(n=+n,a=+a,this._point){case 0:this._point=1,this._x3=n,this._y3=a;break;case 1:this._point=2,this._context.moveTo(this._x4=n,this._y4=a);break;case 2:this._point=3,this._x5=n,this._y5=a;break;default:Md(this,n,a)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const E6=function n(a){function l(f){return new xp(f,a)}return l.tension=function(f){return n(+f)},l}(0);function kp(n,a){this._context=n,this._k=(1-a)/6}kp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(n,a){switch(n=+n,a=+a,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Md(this,n,a)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const S6=function n(a){function l(f){return new kp(f,a)}return l.tension=function(f){return n(+f)},l}(0);function Tp(n,a,l){var f=n._x1,m=n._y1,_=n._x2,E=n._y2;if(n._l01_a>ca){var x=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,M=3*n._l01_a*(n._l01_a+n._l12_a);f=(f*x-n._x0*n._l12_2a+n._x2*n._l01_2a)/M,m=(m*x-n._y0*n._l12_2a+n._y2*n._l01_2a)/M}if(n._l23_a>ca){var N=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,R=3*n._l23_a*(n._l23_a+n._l12_a);_=(_*N+n._x1*n._l23_2a-a*n._l12_2a)/R,E=(E*N+n._y1*n._l23_2a-l*n._l12_2a)/R}n._context.bezierCurveTo(f,m,_,E,n._x2,n._y2)}function Ad(n,a){this._context=n,this._alpha=a}Ad.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,a){if(n=+n,a=+a,this._point){var l=this._x2-n,f=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(l*l+f*f,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 1:this._point=2;break;case 2:this._point=3;default:Tp(this,n,a)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const _m=function n(a){function l(f){return a?new Ad(f,a):new wp(f,0)}return l.alpha=function(f){return n(+f)},l}(.5);function Ep(n,a){this._context=n,this._alpha=a}Ep.prototype={areaStart:Fn,areaEnd:Fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(n,a){if(n=+n,a=+a,this._point){var l=this._x2-n,f=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(l*l+f*f,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=n,this._y3=a;break;case 1:this._point=2,this._context.moveTo(this._x4=n,this._y4=a);break;case 2:this._point=3,this._x5=n,this._y5=a;break;default:Tp(this,n,a)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const bm=function n(a){function l(f){return a?new Ep(f,a):new xp(f,0)}return l.alpha=function(f){return n(+f)},l}(.5);function lc(n,a){this._context=n,this._alpha=a}lc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(n,a){if(n=+n,a=+a,this._point){var l=this._x2-n,f=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(l*l+f*f,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Tp(this,n,a)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const hc=function n(a){function l(f){return a?new lc(f,a):new kp(f,0)}return l.alpha=function(f){return n(+f)},l}(.5);function i4(n){this._context=n}function Sp(n){return new i4(n)}function a4(n){return n<0?-1:1}function Cp(n,a,l){var f=n._x1-n._x0,m=a-n._x1,_=(n._y1-n._y0)/(f||m<0&&-0),E=(l-n._y1)/(m||f<0&&-0),x=(_*m+E*f)/(f+m);return(a4(_)+a4(E))*Math.min(Math.abs(_),Math.abs(E),.5*Math.abs(x))||0}function Ba(n,a){var l=n._x1-n._x0;return l?(3*(n._y1-n._y0)/l-a)/2:a}function Ju(n,a,l){var f=n._x0,m=n._y0,_=n._x1,E=n._y1,x=(_-f)/3;n._context.bezierCurveTo(f+x,m+x*a,_-x,E-x*l,_,E)}function is(n){this._context=n}function Ah(n){this._context=new tl(n)}function tl(n){this._context=n}function wm(n){return new is(n)}function C6(n){return new Ah(n)}function Di(n){this._context=n}function xm(n){var a,l,f=n.length-1,m=new Array(f),_=new Array(f),E=new Array(f);for(m[0]=0,_[0]=2,E[0]=n[0]+2*n[1],a=1;a<f-1;++a)m[a]=1,_[a]=4,E[a]=4*n[a]+2*n[a+1];for(m[f-1]=2,_[f-1]=7,E[f-1]=8*n[f-1]+n[f],a=1;a<f;++a)l=m[a]/_[a-1],_[a]-=l,E[a]-=l*E[a-1];for(m[f-1]=E[f-1]/_[f-1],a=f-2;a>=0;--a)m[a]=(E[a]-m[a+1])/_[a];for(_[f-1]=(n[f]+m[f-1])/2,a=0;a<f-1;++a)_[a]=2*n[a+1]-m[a+1];return[m,_]}function o4(n){return new Di(n)}function Dd(n,a){this._context=n,this._t=a}function s4(n){return new Dd(n,.5)}function Dh(n){return new Dd(n,0)}function c4(n){return new Dd(n,1)}function Nh(n,a){if((m=n.length)>1)for(var l,f,m,_=1,E=n[a[0]],x=E.length;_<m;++_)for(f=E,E=n[a[_]],l=0;l<x;++l)E[l][1]+=E[l][0]=isNaN(f[l][1])?f[l][0]:f[l][1]}function Ke(n){for(var a=n.length,l=new Array(a);--a>=0;)l[a]=a;return l}function M6(n,a){return n[a]}function Nd(){var n=sr([]),a=Ke,l=Nh,f=M6;function m(_){var E,x,M=n.apply(this,arguments),N=_.length,R=M.length,Y=new Array(R);for(E=0;E<R;++E){for(var L,$=M[E],W=Y[E]=new Array(N),J=0;J<N;++J)W[J]=L=[0,+f(_[J],$,J,_)],L.data=_[J];W.key=$}for(E=0,x=a(Y);E<R;++E)Y[x[E]].index=E;return l(Y,x),Y}return m.keys=function(_){return arguments.length?(n=typeof _=="function"?_:sr(_i.call(_)),m):n},m.value=function(_){return arguments.length?(f=typeof _=="function"?_:sr(+_),m):f},m.order=function(_){return arguments.length?(a=_==null?Ke:typeof _=="function"?_:sr(_i.call(_)),m):a},m.offset=function(_){return arguments.length?(l=_==null?Nh:_,m):l},m}function tu(n,a){if((f=n.length)>0){for(var l,f,m,_=0,E=n[0].length;_<E;++_){for(m=l=0;l<f;++l)m+=n[l][_][1]||0;if(m)for(l=0;l<f;++l)n[l][_][1]/=m}Nh(n,a)}}function Ls(n,a){if((x=n.length)>0)for(var l,f,m,_,E,x,M=0,N=n[a[0]].length;M<N;++M)for(_=E=0,l=0;l<x;++l)(m=(f=n[a[l]][M])[1]-f[0])>0?(f[0]=_,f[1]=_+=m):m<0?(f[1]=E,f[0]=E+=m):(f[0]=0,f[1]=m)}function u4(n,a){if((l=n.length)>0){for(var l,f=0,m=n[a[0]],_=m.length;f<_;++f){for(var E=0,x=0;E<l;++E)x+=n[E][f][1]||0;m[f][1]+=m[f][0]=-x/2}Nh(n,a)}}function l4(n,a){if((m=n.length)>0&&(f=(l=n[a[0]]).length)>0){for(var l,f,m,_=0,E=1;E<f;++E){for(var x=0,M=0,N=0;x<m;++x){for(var R=n[a[x]],Y=R[E][1]||0,L=(Y-(R[E-1][1]||0))/2,$=0;$<x;++$){var W=n[a[$]];L+=(W[E][1]||0)-(W[E-1][1]||0)}M+=Y,N+=L*Y}l[E-1][1]+=l[E-1][0]=_,M&&(_-=N/M)}l[E-1][1]+=l[E-1][0]=_,Nh(n,a)}}function km(n){var a=n.map(h4);return Ke(n).sort(function(l,f){return a[l]-a[f]})}function h4(n){for(var a,l=-1,f=0,m=n.length,_=-1/0;++l<m;)(a=+n[l][1])>_&&(_=a,f=l);return f}function Mp(n){var a=n.map(f4);return Ke(n).sort(function(l,f){return a[l]-a[f]})}function f4(n){for(var a,l=0,f=-1,m=n.length;++f<m;)(a=+n[f][1])&&(l+=a);return l}function fc(n){return Mp(n).reverse()}function Od(n){var a,l,f=n.length,m=n.map(f4),_=km(n),E=0,x=0,M=[],N=[];for(a=0;a<f;++a)l=_[a],E<x?(E+=m[l],M.push(l)):(x+=m[l],N.push(l));return N.reverse().concat(M)}function el(n){return Ke(n).reverse()}i4.prototype={areaStart:Fn,areaEnd:Fn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(n,a){n=+n,a=+a,this._point?this._context.lineTo(n,a):(this._point=1,this._context.moveTo(n,a))}},is.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:Ju(this,this._t0,Ba(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,a){var l=NaN;if(a=+a,(n=+n)!==this._x1||a!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 1:this._point=2;break;case 2:this._point=3,Ju(this,Ba(this,l=Cp(this,n,a)),l);break;default:Ju(this,this._t0,l=Cp(this,n,a))}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=a,this._t0=l}}},(Ah.prototype=Object.create(is.prototype)).point=function(n,a){is.prototype.point.call(this,a,n)},tl.prototype={moveTo:function(n,a){this._context.moveTo(a,n)},closePath:function(){this._context.closePath()},lineTo:function(n,a){this._context.lineTo(a,n)},bezierCurveTo:function(n,a,l,f,m,_){this._context.bezierCurveTo(a,n,f,l,_,m)}},Di.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var n=this._x,a=this._y,l=n.length;if(l)if(this._line?this._context.lineTo(n[0],a[0]):this._context.moveTo(n[0],a[0]),l===2)this._context.lineTo(n[1],a[1]);else for(var f=xm(n),m=xm(a),_=0,E=1;E<l;++_,++E)this._context.bezierCurveTo(f[0][_],m[0][_],f[1][_],m[1][_],n[E],a[E]);(this._line||this._line!==0&&l===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(n,a){this._x.push(+n),this._y.push(+a)}},Dd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(n,a){switch(n=+n,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,a),this._context.lineTo(n,a);else{var l=this._x*(1-this._t)+n*this._t;this._context.lineTo(l,this._y),this._context.lineTo(l,a)}}this._x=n,this._y=a}};var Oh="%Y-%m-%dT%H:%M:%S.%LZ",d4=Date.prototype.toISOString?function(n){return n.toISOString()}:$1(Oh);const p4=d4;var Tm=+new Date("2000-01-01T00:00:00.000Z")?function(n){var a=new Date(n);return isNaN(a)?null:a}:hd(Oh);const g4=Tm;function y4(n,a,l){var f=new qt,m=a;return a==null?(f.restart(n,a,l),f):(a=+a,l=l==null?G():+l,f.restart(function _(E){E+=m,f.restart(_,m+=a,l),n(E)},a,l),f)}function Em(n){return function(){return n}}function m4(n){return n[0]}function Sm(n){return n[1]}function Ld(){this._=null}function nl(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function Lh(n,a){var l=a,f=a.R,m=l.U;m?m.L===l?m.L=f:m.R=f:n._=f,f.U=m,l.U=f,l.R=f.L,l.R&&(l.R.U=l),f.L=l}function Bd(n,a){var l=a,f=a.L,m=l.U;m?m.L===l?m.L=f:m.R=f:n._=f,f.U=m,l.U=f,l.L=f.R,l.L&&(l.L.U=l),f.R=l}function v4(n){for(;n.L;)n=n.L;return n}Ld.prototype={constructor:Ld,insert:function(n,a){var l,f,m;if(n){if(a.P=n,a.N=n.N,n.N&&(n.N.P=a),n.N=a,n.R){for(n=n.R;n.L;)n=n.L;n.L=a}else n.R=a;l=n}else this._?(n=v4(this._),a.P=null,a.N=n,n.P=n.L=a,l=n):(a.P=a.N=null,this._=a,l=null);for(a.L=a.R=null,a.U=l,a.C=!0,n=a;l&&l.C;)l===(f=l.U).L?(m=f.R)&&m.C?(l.C=m.C=!1,f.C=!0,n=f):(n===l.R&&(Lh(this,l),l=(n=l).U),l.C=!1,f.C=!0,Bd(this,f)):(m=f.L)&&m.C?(l.C=m.C=!1,f.C=!0,n=f):(n===l.L&&(Bd(this,l),l=(n=l).U),l.C=!1,f.C=!0,Lh(this,f)),l=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var a,l,f,m=n.U,_=n.L,E=n.R;if(l=_?E?v4(E):_:E,m?m.L===n?m.L=l:m.R=l:this._=l,_&&E?(f=l.C,l.C=n.C,l.L=_,_.U=l,l!==E?(m=l.U,l.U=n.U,n=l.R,m.L=n,l.R=E,E.U=l):(l.U=m,m=l,n=l.R)):(f=n.C,n=l),n&&(n.U=m),!f)if(n&&n.C)n.C=!1;else{do{if(n===this._)break;if(n===m.L){if((a=m.R).C&&(a.C=!1,m.C=!0,Lh(this,m),a=m.R),a.L&&a.L.C||a.R&&a.R.C){a.R&&a.R.C||(a.L.C=!1,a.C=!0,Bd(this,a),a=m.R),a.C=m.C,m.C=a.R.C=!1,Lh(this,m),n=this._;break}}else if((a=m.L).C&&(a.C=!1,m.C=!0,Bd(this,m),a=m.L),a.L&&a.L.C||a.R&&a.R.C){a.L&&a.L.C||(a.R.C=!1,a.C=!0,Lh(this,a),a=m.L),a.C=m.C,m.C=a.L.C=!1,Bd(this,m),n=this._;break}a.C=!0,n=m,m=m.U}while(!n.C);n&&(n.C=!1)}}};const _4=Ld;function Rd(n,a,l,f){var m=[null,null],_=ya.push(m)-1;return m.left=n,m.right=a,l&&Ap(m,n,a,l),f&&Ap(m,a,n,f),po[n.index].halfedges.push(_),po[a.index].halfedges.push(_),m}function dc(n,a,l){var f=[a,l];return f.left=n,f}function Ap(n,a,l,f){n[0]||n[1]?n.left===l?n[1]=f:n[0]=f:(n[0]=f,n.left=a,n.right=l)}function Bs(n,a,l,f,m){var _,E=n[0],x=n[1],M=E[0],N=E[1],R=0,Y=1,L=x[0]-M,$=x[1]-N;if(_=a-M,L||!(_>0)){if(_/=L,L<0){if(_<R)return;_<Y&&(Y=_)}else if(L>0){if(_>Y)return;_>R&&(R=_)}if(_=f-M,L||!(_<0)){if(_/=L,L<0){if(_>Y)return;_>R&&(R=_)}else if(L>0){if(_<R)return;_<Y&&(Y=_)}if(_=l-N,$||!(_>0)){if(_/=$,$<0){if(_<R)return;_<Y&&(Y=_)}else if($>0){if(_>Y)return;_>R&&(R=_)}if(_=m-N,$||!(_<0)){if(_/=$,$<0){if(_>Y)return;_>R&&(R=_)}else if($>0){if(_<R)return;_<Y&&(Y=_)}return!(R>0||Y<1)||(R>0&&(n[0]=[M+R*L,N+R*$]),Y<1&&(n[1]=[M+Y*L,N+Y*$]),!0)}}}}}function A6(n,a,l,f,m){var _=n[1];if(_)return!0;var E,x,M=n[0],N=n.left,R=n.right,Y=N[0],L=N[1],$=R[0],W=R[1],J=(Y+$)/2,Q=(L+W)/2;if(W===L){if(J<a||J>=f)return;if(Y>$){if(M){if(M[1]>=m)return}else M=[J,l];_=[J,m]}else{if(M){if(M[1]<l)return}else M=[J,m];_=[J,l]}}else if(x=Q-(E=(Y-$)/(W-L))*J,E<-1||E>1)if(Y>$){if(M){if(M[1]>=m)return}else M=[(l-x)/E,l];_=[(m-x)/E,m]}else{if(M){if(M[1]<l)return}else M=[(m-x)/E,m];_=[(l-x)/E,l]}else if(L<W){if(M){if(M[0]>=f)return}else M=[a,E*a+x];_=[f,E*f+x]}else{if(M){if(M[0]<a)return}else M=[f,E*f+x];_=[a,E*a+x]}return n[0]=M,n[1]=_,!0}function D6(n,a){var l=n.site,f=a.left,m=a.right;return l===m&&(m=f,f=l),m?Math.atan2(m[1]-f[1],m[0]-f[0]):(l===f?(f=a[1],m=a[0]):(f=a[0],m=a[1]),Math.atan2(f[0]-m[0],m[1]-f[1]))}function b4(n,a){return a[+(a.left!==n.site)]}function w4(n,a){return a[+(a.left===n.site)]}var Cm,x4=[];function N6(){nl(this),this.x=this.y=this.arc=this.site=this.cy=null}function Bh(n){var a=n.P,l=n.N;if(a&&l){var f=a.site,m=n.site,_=l.site;if(f!==_){var E=m[0],x=m[1],M=f[0]-E,N=f[1]-x,R=_[0]-E,Y=_[1]-x,L=2*(M*Y-N*R);if(!(L>=-qe)){var $=M*M+N*N,W=R*R+Y*Y,J=(Y*$-N*W)/L,Q=(M*W-R*$)/L,Z=x4.pop()||new N6;Z.arc=n,Z.site=m,Z.x=J+E,Z.y=(Z.cy=Q+x)+Math.sqrt(J*J+Q*Q),n.circle=Z;for(var at=null,nt=Fh._;nt;)if(Z.y<nt.y||Z.y===nt.y&&Z.x<=nt.x){if(!nt.L){at=nt.P;break}nt=nt.L}else{if(!nt.R){at=nt;break}nt=nt.R}Fh.insert(at,Z),at||(Cm=Z)}}}}function Rh(n){var a=n.circle;a&&(a.P||(Cm=a.N),Fh.remove(a),x4.push(a),nl(a),n.circle=null)}var k4=[];function Dp(){nl(this),this.edge=this.site=this.circle=null}function T4(n){var a=k4.pop()||new Dp;return a.site=n,a}function Mm(n){Rh(n),Ih.remove(n),k4.push(n),nl(n)}function O6(n){var a=n.circle,l=a.x,f=a.cy,m=[l,f],_=n.P,E=n.N,x=[n];Mm(n);for(var M=_;M.circle&&Math.abs(l-M.circle.x)<Jt&&Math.abs(f-M.circle.cy)<Jt;)_=M.P,x.unshift(M),Mm(M),M=_;x.unshift(M),Rh(M);for(var N=E;N.circle&&Math.abs(l-N.circle.x)<Jt&&Math.abs(f-N.circle.cy)<Jt;)E=N.N,x.push(N),Mm(N),N=E;x.push(N),Rh(N);var R,Y=x.length;for(R=1;R<Y;++R)N=x[R],M=x[R-1],Ap(N.edge,M.site,N.site,m);M=x[0],(N=x[Y-1]).edge=Rd(M.site,N.site,null,m),Bh(M),Bh(N)}function L6(n){for(var a,l,f,m,_=n[0],E=n[1],x=Ih._;x;)if((f=E4(x,E)-_)>Jt)x=x.L;else{if(!((m=_-B6(x,E))>Jt)){f>-Jt?(a=x.P,l=x):m>-Jt?(a=x,l=x.N):a=l=x;break}if(!x.R){a=x;break}x=x.R}(function(Mt){po[Mt.index]={site:Mt,halfedges:[]}})(n);var M=T4(n);if(Ih.insert(a,M),a||l){if(a===l)return Rh(a),l=T4(a.site),Ih.insert(M,l),M.edge=l.edge=Rd(a.site,M.site),Bh(a),void Bh(l);if(l){Rh(a),Rh(l);var N=a.site,R=N[0],Y=N[1],L=n[0]-R,$=n[1]-Y,W=l.site,J=W[0]-R,Q=W[1]-Y,Z=2*(L*Q-$*J),at=L*L+$*$,nt=J*J+Q*Q,dt=[(Q*at-$*nt)/Z+R,(L*nt-J*at)/Z+Y];Ap(l.edge,N,W,dt),M.edge=Rd(N,n,null,dt),l.edge=Rd(n,W,null,dt),Bh(a),Bh(l)}else M.edge=Rd(a.site,M.site)}}function E4(n,a){var l=n.site,f=l[0],m=l[1],_=m-a;if(!_)return f;var E=n.P;if(!E)return-1/0;var x=(l=E.site)[0],M=l[1],N=M-a;if(!N)return x;var R=x-f,Y=1/_-1/N,L=R/N;return Y?(-L+Math.sqrt(L*L-2*Y*(R*R/(-2*N)-M+N/2+m-_/2)))/Y+f:(f+x)/2}function B6(n,a){var l=n.N;if(l)return E4(l,a);var f=n.site;return f[1]===a?f[0]:1/0}var Ih,po,Fh,ya,Jt=1e-6,qe=1e-12;function Id(n,a,l){return(n[0]-l[0])*(a[1]-n[1])-(n[0]-a[0])*(l[1]-n[1])}function Ph(n,a){return a[1]-n[1]||a[0]-n[0]}function Fd(n,a){var l,f,m,_=n.sort(Ph).pop();for(ya=[],po=new Array(n.length),Ih=new _4,Fh=new _4;;)if(m=Cm,_&&(!m||_[1]<m.y||_[1]===m.y&&_[0]<m.x))_[0]===l&&_[1]===f||(L6(_),l=_[0],f=_[1]),_=n.pop();else{if(!m)break;O6(m.arc)}if(function(){for(var R,Y,L,$,W=0,J=po.length;W<J;++W)if((R=po[W])&&($=(Y=R.halfedges).length)){var Q=new Array($),Z=new Array($);for(L=0;L<$;++L)Q[L]=L,Z[L]=D6(R,ya[Y[L]]);for(Q.sort(function(at,nt){return Z[nt]-Z[at]}),L=0;L<$;++L)Z[L]=Y[Q[L]];for(L=0;L<$;++L)Y[L]=Z[L]}}(),a){var E=+a[0][0],x=+a[0][1],M=+a[1][0],N=+a[1][1];(function(R,Y,L,$){for(var W,J=ya.length;J--;)A6(W=ya[J],R,Y,L,$)&&Bs(W,R,Y,L,$)&&(Math.abs(W[0][0]-W[1][0])>Jt||Math.abs(W[0][1]-W[1][1])>Jt)||delete ya[J]})(E,x,M,N),function(R,Y,L,$){var W,J,Q,Z,at,nt,dt,Mt,Wt,Qt,be,zt,ce=po.length,ft=!0;for(W=0;W<ce;++W)if(J=po[W]){for(Q=J.site,Z=(at=J.halfedges).length;Z--;)ya[at[Z]]||at.splice(Z,1);for(Z=0,nt=at.length;Z<nt;)be=(Qt=w4(J,ya[at[Z]]))[0],zt=Qt[1],Mt=(dt=b4(J,ya[at[++Z%nt]]))[0],Wt=dt[1],(Math.abs(be-Mt)>Jt||Math.abs(zt-Wt)>Jt)&&(at.splice(Z,0,ya.push(dc(Q,Qt,Math.abs(be-R)<Jt&&$-zt>Jt?[R,Math.abs(Mt-R)<Jt?Wt:$]:Math.abs(zt-$)<Jt&&L-be>Jt?[Math.abs(Wt-$)<Jt?Mt:L,$]:Math.abs(be-L)<Jt&&zt-Y>Jt?[L,Math.abs(Mt-L)<Jt?Wt:Y]:Math.abs(zt-Y)<Jt&&be-R>Jt?[Math.abs(Wt-Y)<Jt?Mt:R,Y]:null))-1),++nt);nt&&(ft=!1)}if(ft){var Et,re,Zt,ie=1/0;for(W=0,ft=null;W<ce;++W)(J=po[W])&&(Zt=(Et=(Q=J.site)[0]-R)*Et+(re=Q[1]-Y)*re)<ie&&(ie=Zt,ft=J);if(ft){var Ae=[R,Y],Ue=[R,$],xn=[L,$],Jn=[L,Y];ft.halfedges.push(ya.push(dc(Q=ft.site,Ae,Ue))-1,ya.push(dc(Q,Ue,xn))-1,ya.push(dc(Q,xn,Jn))-1,ya.push(dc(Q,Jn,Ae))-1)}}for(W=0;W<ce;++W)(J=po[W])&&(J.halfedges.length||delete po[W])}(E,x,M,N)}this.edges=ya,this.cells=po,Ih=Fh=ya=po=null}function Am(){var n=m4,a=Sm,l=null;function f(m){return new Fd(m.map(function(_,E){var x=[Math.round(n(_,E,m)/Jt)*Jt,Math.round(a(_,E,m)/Jt)*Jt];return x.index=E,x.data=_,x}),l)}return f.polygons=function(m){return f(m).polygons()},f.links=function(m){return f(m).links()},f.triangles=function(m){return f(m).triangles()},f.x=function(m){return arguments.length?(n=typeof m=="function"?m:Em(+m),f):n},f.y=function(m){return arguments.length?(a=typeof m=="function"?m:Em(+m),f):a},f.extent=function(m){return arguments.length?(l=m==null?null:[[+m[0][0],+m[0][1]],[+m[1][0],+m[1][1]]],f):l&&[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},f.size=function(m){return arguments.length?(l=m==null?null:[[0,0],[+m[0],+m[1]]],f):l&&[l[1][0]-l[0][0],l[1][1]-l[0][1]]},f}function Pd(n){return function(){return n}}function S4(n,a,l){this.target=n,this.type=a,this.transform=l}function So(n,a,l){this.k=n,this.x=a,this.y=l}Fd.prototype={constructor:Fd,polygons:function(){var n=this.edges;return this.cells.map(function(a){var l=a.halfedges.map(function(f){return b4(a,n[f])});return l.data=a.site.data,l})},triangles:function(){var n=[],a=this.edges;return this.cells.forEach(function(l,f){if(_=(m=l.halfedges).length)for(var m,_,E,x=l.site,M=-1,N=a[m[_-1]],R=N.left===x?N.right:N.left;++M<_;)E=R,R=(N=a[m[M]]).left===x?N.right:N.left,E&&R&&f<E.index&&f<R.index&&Id(x,E,R)<0&&n.push([x.data,E.data,R.data])}),n},links:function(){return this.edges.filter(function(n){return n.right}).map(function(n){return{source:n.left.data,target:n.right.data}})},find:function(n,a,l){for(var f,m,_=this,E=_._found||0,x=_.cells.length;!(m=_.cells[E]);)if(++E>=x)return null;var M=n-m.site[0],N=a-m.site[1],R=M*M+N*N;do m=_.cells[f=E],E=null,m.halfedges.forEach(function(Y){var L=_.edges[Y],$=L.left;if($!==m.site&&$||($=L.right)){var W=n-$[0],J=a-$[1],Q=W*W+J*J;Q<R&&(R=Q,E=$.index)}});while(E!==null);return _._found=f,l==null||R<=l*l?m.site:null}},So.prototype={constructor:So,scale:function(n){return n===1?this:new So(this.k*n,this.x,this.y)},translate:function(n,a){return n===0&a===0?this:new So(this.k,this.x+this.k*n,this.y+this.k*a)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Yd=new So(1,0,0);function eu(n){for(;!n.__zoom;)if(!(n=n.parentNode))return Yd;return n.__zoom}function Dm(){mt.stopImmediatePropagation()}function pc(){mt.preventDefault(),mt.stopImmediatePropagation()}function Np(){return!mt.ctrlKey&&!mt.button}function C4(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n).hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]:[[0,0],[n.clientWidth,n.clientHeight]]}function Op(){return this.__zoom||Yd}function Lp(){return-mt.deltaY*(mt.deltaMode===1?.05:mt.deltaMode?1:.002)}function Bp(){return navigator.maxTouchPoints||"ontouchstart"in this}function R6(n,a,l){var f=n.invertX(a[0][0])-l[0][0],m=n.invertX(a[1][0])-l[1][0],_=n.invertY(a[0][1])-l[0][1],E=n.invertY(a[1][1])-l[1][1];return n.translate(m>f?(f+m)/2:Math.min(0,f)||Math.max(0,m),E>_?(_+E)/2:Math.min(0,_)||Math.max(0,E))}function Rp(){var n,a,l=Np,f=C4,m=R6,_=Lp,E=Bp,x=[0,1/0],M=[[-1/0,-1/0],[1/0,1/0]],N=250,R=k1,Y=tn("start","zoom","end"),L=500,$=0;function W(ft){ft.property("__zoom",Op).on("wheel.zoom",Mt).on("mousedown.zoom",Wt).on("dblclick.zoom",Qt).filter(E).on("touchstart.zoom",be).on("touchmove.zoom",zt).on("touchend.zoom touchcancel.zoom",ce).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function J(ft,Et){return(Et=Math.max(x[0],Math.min(x[1],Et)))===ft.k?ft:new So(Et,ft.x,ft.y)}function Q(ft,Et,re){var Zt=Et[0]-re[0]*ft.k,ie=Et[1]-re[1]*ft.k;return Zt===ft.x&&ie===ft.y?ft:new So(ft.k,Zt,ie)}function Z(ft){return[(+ft[0][0]+ +ft[1][0])/2,(+ft[0][1]+ +ft[1][1])/2]}function at(ft,Et,re){ft.on("start.zoom",function(){nt(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){nt(this,arguments).end()}).tween("zoom",function(){var Zt=this,ie=arguments,Ae=nt(Zt,ie),Ue=f.apply(Zt,ie),xn=re==null?Z(Ue):typeof re=="function"?re.apply(Zt,ie):re,Jn=Math.max(Ue[1][0]-Ue[0][0],Ue[1][1]-Ue[0][1]),zn=Zt.__zoom,nn=typeof Et=="function"?Et.apply(Zt,ie):Et,pr=R(zn.invert(xn).concat(Jn/zn.k),nn.invert(xn).concat(Jn/nn.k));return function(Ln){if(Ln===1)Ln=nn;else{var Nn=pr(Ln),ur=Jn/Nn[2];Ln=new So(ur,xn[0]-Nn[0]*ur,xn[1]-Nn[1]*ur)}Ae.zoom(null,Ln)}})}function nt(ft,Et,re){return!re&&ft.__zooming||new dt(ft,Et)}function dt(ft,Et){this.that=ft,this.args=Et,this.active=0,this.extent=f.apply(ft,Et),this.taps=0}function Mt(){if(l.apply(this,arguments)){var ft=nt(this,arguments),Et=this.__zoom,re=Math.max(x[0],Math.min(x[1],Et.k*Math.pow(2,_.apply(this,arguments)))),Zt=zs(this);if(ft.wheel)ft.mouse[0][0]===Zt[0]&&ft.mouse[0][1]===Zt[1]||(ft.mouse[1]=Et.invert(ft.mouse[0]=Zt)),clearTimeout(ft.wheel);else{if(Et.k===re)return;ft.mouse=[Zt,Et.invert(Zt)],ka(this),ft.start()}pc(),ft.wheel=setTimeout(ie,150),ft.zoom("mouse",m(Q(J(Et,re),ft.mouse[0],ft.mouse[1]),ft.extent,M))}function ie(){ft.wheel=null,ft.end()}}function Wt(){if(!a&&l.apply(this,arguments)){var ft=nt(this,arguments,!0),Et=yr(mt.view).on("mousemove.zoom",Ae,!0).on("mouseup.zoom",Ue,!0),re=zs(this),Zt=mt.clientX,ie=mt.clientY;ni(mt.view),Dm(),ft.mouse=[re,this.__zoom.invert(re)],ka(this),ft.start()}function Ae(){if(pc(),!ft.moved){var xn=mt.clientX-Zt,Jn=mt.clientY-ie;ft.moved=xn*xn+Jn*Jn>$}ft.zoom("mouse",m(Q(ft.that.__zoom,ft.mouse[0]=zs(ft.that),ft.mouse[1]),ft.extent,M))}function Ue(){Et.on("mousemove.zoom mouseup.zoom",null),Hr(mt.view,ft.moved),pc(),ft.end()}}function Qt(){if(l.apply(this,arguments)){var ft=this.__zoom,Et=zs(this),re=ft.invert(Et),Zt=ft.k*(mt.shiftKey?.5:2),ie=m(Q(J(ft,Zt),Et,re),f.apply(this,arguments),M);pc(),N>0?yr(this).transition().duration(N).call(at,ie,Et):yr(this).call(W.transform,ie)}}function be(){if(l.apply(this,arguments)){var ft,Et,re,Zt,ie=mt.touches,Ae=ie.length,Ue=nt(this,arguments,mt.changedTouches.length===Ae);for(Dm(),Et=0;Et<Ae;++Et)Zt=[Zt=xa(this,ie,(re=ie[Et]).identifier),this.__zoom.invert(Zt),re.identifier],Ue.touch0?Ue.touch1||Ue.touch0[2]===Zt[2]||(Ue.touch1=Zt,Ue.taps=0):(Ue.touch0=Zt,ft=!0,Ue.taps=1+!!n);n&&(n=clearTimeout(n)),ft&&(Ue.taps<2&&(n=setTimeout(function(){n=null},L)),ka(this),Ue.start())}}function zt(){if(this.__zooming){var ft,Et,re,Zt,ie=nt(this,arguments),Ae=mt.changedTouches,Ue=Ae.length;for(pc(),n&&(n=clearTimeout(n)),ie.taps=0,ft=0;ft<Ue;++ft)re=xa(this,Ae,(Et=Ae[ft]).identifier),ie.touch0&&ie.touch0[2]===Et.identifier?ie.touch0[0]=re:ie.touch1&&ie.touch1[2]===Et.identifier&&(ie.touch1[0]=re);if(Et=ie.that.__zoom,ie.touch1){var xn=ie.touch0[0],Jn=ie.touch0[1],zn=ie.touch1[0],nn=ie.touch1[1],pr=(pr=zn[0]-xn[0])*pr+(pr=zn[1]-xn[1])*pr,Ln=(Ln=nn[0]-Jn[0])*Ln+(Ln=nn[1]-Jn[1])*Ln;Et=J(Et,Math.sqrt(pr/Ln)),re=[(xn[0]+zn[0])/2,(xn[1]+zn[1])/2],Zt=[(Jn[0]+nn[0])/2,(Jn[1]+nn[1])/2]}else{if(!ie.touch0)return;re=ie.touch0[0],Zt=ie.touch0[1]}ie.zoom("touch",m(Q(Et,re,Zt),ie.extent,M))}}function ce(){if(this.__zooming){var ft,Et,re=nt(this,arguments),Zt=mt.changedTouches,ie=Zt.length;for(Dm(),a&&clearTimeout(a),a=setTimeout(function(){a=null},L),ft=0;ft<ie;++ft)Et=Zt[ft],re.touch0&&re.touch0[2]===Et.identifier?delete re.touch0:re.touch1&&re.touch1[2]===Et.identifier&&delete re.touch1;if(re.touch1&&!re.touch0&&(re.touch0=re.touch1,delete re.touch1),re.touch0)re.touch0[1]=this.__zoom.invert(re.touch0[0]);else if(re.end(),re.taps===2){var Ae=yr(this).on("dblclick.zoom");Ae&&Ae.apply(this,arguments)}}}return W.transform=function(ft,Et,re){var Zt=ft.selection?ft.selection():ft;Zt.property("__zoom",Op),ft!==Zt?at(ft,Et,re):Zt.interrupt().each(function(){nt(this,arguments).start().zoom(null,typeof Et=="function"?Et.apply(this,arguments):Et).end()})},W.scaleBy=function(ft,Et,re){W.scaleTo(ft,function(){var Zt=this.__zoom.k,ie=typeof Et=="function"?Et.apply(this,arguments):Et;return Zt*ie},re)},W.scaleTo=function(ft,Et,re){W.transform(ft,function(){var Zt=f.apply(this,arguments),ie=this.__zoom,Ae=re==null?Z(Zt):typeof re=="function"?re.apply(this,arguments):re,Ue=ie.invert(Ae),xn=typeof Et=="function"?Et.apply(this,arguments):Et;return m(Q(J(ie,xn),Ae,Ue),Zt,M)},re)},W.translateBy=function(ft,Et,re){W.transform(ft,function(){return m(this.__zoom.translate(typeof Et=="function"?Et.apply(this,arguments):Et,typeof re=="function"?re.apply(this,arguments):re),f.apply(this,arguments),M)})},W.translateTo=function(ft,Et,re,Zt){W.transform(ft,function(){var ie=f.apply(this,arguments),Ae=this.__zoom,Ue=Zt==null?Z(ie):typeof Zt=="function"?Zt.apply(this,arguments):Zt;return m(Yd.translate(Ue[0],Ue[1]).scale(Ae.k).translate(typeof Et=="function"?-Et.apply(this,arguments):-Et,typeof re=="function"?-re.apply(this,arguments):-re),ie,M)},Zt)},dt.prototype={start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ft,Et){return this.mouse&&ft!=="mouse"&&(this.mouse[1]=Et.invert(this.mouse[0])),this.touch0&&ft!=="touch"&&(this.touch0[1]=Et.invert(this.touch0[0])),this.touch1&&ft!=="touch"&&(this.touch1[1]=Et.invert(this.touch1[0])),this.that.__zoom=Et,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ft){vo(new S4(W,ft,this.that.__zoom),Y.apply,Y,[ft,this.that,this.args])}},W.wheelDelta=function(ft){return arguments.length?(_=typeof ft=="function"?ft:Pd(+ft),W):_},W.filter=function(ft){return arguments.length?(l=typeof ft=="function"?ft:Pd(!!ft),W):l},W.touchable=function(ft){return arguments.length?(E=typeof ft=="function"?ft:Pd(!!ft),W):E},W.extent=function(ft){return arguments.length?(f=typeof ft=="function"?ft:Pd([[+ft[0][0],+ft[0][1]],[+ft[1][0],+ft[1][1]]]),W):f},W.scaleExtent=function(ft){return arguments.length?(x[0]=+ft[0],x[1]=+ft[1],W):[x[0],x[1]]},W.translateExtent=function(ft){return arguments.length?(M[0][0]=+ft[0][0],M[1][0]=+ft[1][0],M[0][1]=+ft[0][1],M[1][1]=+ft[1][1],W):[[M[0][0],M[0][1]],[M[1][0],M[1][1]]]},W.constrain=function(ft){return arguments.length?(m=ft,W):m},W.duration=function(ft){return arguments.length?(N=+ft,W):N},W.interpolate=function(ft){return arguments.length?(R=ft,W):R},W.on=function(){var ft=Y.on.apply(Y,arguments);return ft===Y?W:ft},W.clickDistance=function(ft){return arguments.length?($=(ft=+ft)*ft,W):Math.sqrt($)},W}eu.prototype=So.prototype},681:(r,s,o)=>{r.exports={graphlib:o(574),layout:o(8123),debug:o(7570),util:{time:o(1138).time,notime:o(1138).notime},version:o(8177)}},1207:(r,s,o)=>{var h=o(8436),c=o(4079);r.exports={run:function(y){var p=y.graph().acyclicer==="greedy"?c(y,function(b){return function(T){return b.edge(T).weight}}(y)):function(b){var T=[],k={},D={};return h.forEach(b.nodes(),function O(I){h.has(D,I)||(D[I]=!0,k[I]=!0,h.forEach(b.outEdges(I),function(z){h.has(k,z.w)?T.push(z):O(z.w)}),delete k[I])}),T}(y);h.forEach(p,function(b){var T=y.edge(b);y.removeEdge(b),T.forwardName=b.name,T.reversed=!0,y.setEdge(b.w,b.v,T,h.uniqueId("rev"))})},undo:function(y){h.forEach(y.edges(),function(p){var b=y.edge(p);if(b.reversed){y.removeEdge(p);var T=b.forwardName;delete b.reversed,delete b.forwardName,y.setEdge(p.w,p.v,b,T)}})}}},1133:(r,s,o)=>{var h=o(8436),c=o(1138);function y(p,b,T,k,D,O){var I={width:0,height:0,rank:O,borderType:b},z=D[b][O-1],H=c.addDummyNode(p,"border",I,T);D[b][O]=H,p.setParent(H,k),z&&p.setEdge(z,H,{weight:1})}r.exports=function(p){h.forEach(p.children(),function b(T){var k=p.children(T),D=p.node(T);if(k.length&&h.forEach(k,b),h.has(D,"minRank")){D.borderLeft=[],D.borderRight=[];for(var O=D.minRank,I=D.maxRank+1;O<I;++O)y(p,"borderLeft","_bl",T,D,O),y(p,"borderRight","_br",T,D,O)}})}},3258:(r,s,o)=>{var h=o(8436);function c(T){h.forEach(T.nodes(),function(k){y(T.node(k))}),h.forEach(T.edges(),function(k){y(T.edge(k))})}function y(T){var k=T.width;T.width=T.height,T.height=k}function p(T){T.y=-T.y}function b(T){var k=T.x;T.x=T.y,T.y=k}r.exports={adjust:function(T){var k=T.graph().rankdir.toLowerCase();k!=="lr"&&k!=="rl"||c(T)},undo:function(T){var k=T.graph().rankdir.toLowerCase();k!=="bt"&&k!=="rl"||function(D){h.forEach(D.nodes(),function(O){p(D.node(O))}),h.forEach(D.edges(),function(O){var I=D.edge(O);h.forEach(I.points,p),h.has(I,"y")&&p(I)})}(T),k!=="lr"&&k!=="rl"||(function(D){h.forEach(D.nodes(),function(O){b(D.node(O))}),h.forEach(D.edges(),function(O){var I=D.edge(O);h.forEach(I.points,b),h.has(I,"x")&&b(I)})}(T),c(T))}}},7822:r=>{function s(){var c={};c._next=c._prev=c,this._sentinel=c}function o(c){c._prev._next=c._next,c._next._prev=c._prev,delete c._next,delete c._prev}function h(c,y){if(c!=="_next"&&c!=="_prev")return y}r.exports=s,s.prototype.dequeue=function(){var c=this._sentinel,y=c._prev;if(y!==c)return o(y),y},s.prototype.enqueue=function(c){var y=this._sentinel;c._prev&&c._next&&o(c),c._next=y._next,y._next._prev=c,y._next=c,c._prev=y},s.prototype.toString=function(){for(var c=[],y=this._sentinel,p=y._prev;p!==y;)c.push(JSON.stringify(p,h)),p=p._prev;return"["+c.join(", ")+"]"}},7570:(r,s,o)=>{var h=o(8436),c=o(1138),y=o(574).Graph;r.exports={debugOrdering:function(p){var b=c.buildLayerMatrix(p),T=new y({compound:!0,multigraph:!0}).setGraph({});return h.forEach(p.nodes(),function(k){T.setNode(k,{label:k}),T.setParent(k,"layer"+p.node(k).rank)}),h.forEach(p.edges(),function(k){T.setEdge(k.v,k.w,{},k.name)}),h.forEach(b,function(k,D){var O="layer"+D;T.setNode(O,{rank:"same"}),h.reduce(k,function(I,z){return T.setEdge(I,z,{style:"invis"}),z})}),T}}},574:(r,s,o)=>{var h;try{h=o(8282)}catch{}h||(h=window.graphlib),r.exports=h},4079:(r,s,o)=>{var h=o(8436),c=o(574).Graph,y=o(7822);r.exports=function(k,D){if(k.nodeCount()<=1)return[];var O=function(z,H){var q=new c,V=0,X=0;h.forEach(z.nodes(),function(rt){q.setNode(rt,{v:rt,in:0,out:0})}),h.forEach(z.edges(),function(rt){var ut=q.edge(rt.v,rt.w)||0,Ct=H(rt),et=ut+Ct;q.setEdge(rt.v,rt.w,et),X=Math.max(X,q.node(rt.v).out+=Ct),V=Math.max(V,q.node(rt.w).in+=Ct)});var it=h.range(X+V+3).map(function(){return new y}),tt=V+1;return h.forEach(q.nodes(),function(rt){T(it,tt,q.node(rt))}),{graph:q,buckets:it,zeroIdx:tt}}(k,D||p),I=function(z,H,q){for(var V,X=[],it=H[H.length-1],tt=H[0];z.nodeCount();){for(;V=tt.dequeue();)b(z,H,q,V);for(;V=it.dequeue();)b(z,H,q,V);if(z.nodeCount()){for(var rt=H.length-2;rt>0;--rt)if(V=H[rt].dequeue()){X=X.concat(b(z,H,q,V,!0));break}}}return X}(O.graph,O.buckets,O.zeroIdx);return h.flatten(h.map(I,function(z){return k.outEdges(z.v,z.w)}),!0)};var p=h.constant(1);function b(k,D,O,I,z){var H=z?[]:void 0;return h.forEach(k.inEdges(I.v),function(q){var V=k.edge(q),X=k.node(q.v);z&&H.push({v:q.v,w:q.w}),X.out-=V,T(D,O,X)}),h.forEach(k.outEdges(I.v),function(q){var V=k.edge(q),X=q.w,it=k.node(X);it.in-=V,T(D,O,it)}),k.removeNode(I.v),H}function T(k,D,O){O.out?O.in?k[O.out-O.in+D].enqueue(O):k[k.length-1].enqueue(O):k[0].enqueue(O)}},8123:(r,s,o)=>{var h=o(8436),c=o(1207),y=o(5995),p=o(8093),b=o(1138).normalizeRanks,T=o(4219),k=o(1138).removeEmptyRanks,D=o(2981),O=o(1133),I=o(3258),z=o(3408),H=o(7873),q=o(1138),V=o(574).Graph;r.exports=function(St,pt){var wt=pt&&pt.debugTiming?q.time:q.notime;wt("layout",function(){var Ht=wt(" buildLayoutGraph",function(){return function(Pt){var ge=new V({multigraph:!0,compound:!0}),pe=xt(Pt.graph());return ge.setGraph(h.merge({},it,ht(pe,X),h.pick(pe,tt))),h.forEach(Pt.nodes(),function(de){var Rt=xt(Pt.node(de));ge.setNode(de,h.defaults(ht(Rt,rt),ut)),ge.setParent(de,Pt.parent(de))}),h.forEach(Pt.edges(),function(de){var Rt=xt(Pt.edge(de));ge.setEdge(de,h.merge({},et,ht(Rt,Ct),h.pick(Rt,K)))}),ge}(St)});wt(" runLayout",function(){(function(Pt,ge){ge(" makeSpaceForEdgeLabels",function(){(function(pe){var de=pe.graph();de.ranksep/=2,h.forEach(pe.edges(),function(Rt){var Gt=pe.edge(Rt);Gt.minlen*=2,Gt.labelpos.toLowerCase()!=="c"&&(de.rankdir==="TB"||de.rankdir==="BT"?Gt.width+=Gt.labeloffset:Gt.height+=Gt.labeloffset)})})(Pt)}),ge(" removeSelfEdges",function(){(function(pe){h.forEach(pe.edges(),function(de){if(de.v===de.w){var Rt=pe.node(de.v);Rt.selfEdges||(Rt.selfEdges=[]),Rt.selfEdges.push({e:de,label:pe.edge(de)}),pe.removeEdge(de)}})})(Pt)}),ge(" acyclic",function(){c.run(Pt)}),ge(" nestingGraph.run",function(){D.run(Pt)}),ge(" rank",function(){p(q.asNonCompoundGraph(Pt))}),ge(" injectEdgeLabelProxies",function(){(function(pe){h.forEach(pe.edges(),function(de){var Rt=pe.edge(de);if(Rt.width&&Rt.height){var Gt=pe.node(de.v),oe={rank:(pe.node(de.w).rank-Gt.rank)/2+Gt.rank,e:de};q.addDummyNode(pe,"edge-proxy",oe,"_ep")}})})(Pt)}),ge(" removeEmptyRanks",function(){k(Pt)}),ge(" nestingGraph.cleanup",function(){D.cleanup(Pt)}),ge(" normalizeRanks",function(){b(Pt)}),ge(" assignRankMinMax",function(){(function(pe){var de=0;h.forEach(pe.nodes(),function(Rt){var Gt=pe.node(Rt);Gt.borderTop&&(Gt.minRank=pe.node(Gt.borderTop).rank,Gt.maxRank=pe.node(Gt.borderBottom).rank,de=h.max(de,Gt.maxRank))}),pe.graph().maxRank=de})(Pt)}),ge(" removeEdgeLabelProxies",function(){(function(pe){h.forEach(pe.nodes(),function(de){var Rt=pe.node(de);Rt.dummy==="edge-proxy"&&(pe.edge(Rt.e).labelRank=Rt.rank,pe.removeNode(de))})})(Pt)}),ge(" normalize.run",function(){y.run(Pt)}),ge(" parentDummyChains",function(){T(Pt)}),ge(" addBorderSegments",function(){O(Pt)}),ge(" order",function(){z(Pt)}),ge(" insertSelfEdges",function(){(function(pe){var de=q.buildLayerMatrix(pe);h.forEach(de,function(Rt){var Gt=0;h.forEach(Rt,function(oe,le){var ye=pe.node(oe);ye.order=le+Gt,h.forEach(ye.selfEdges,function(It){q.addDummyNode(pe,"selfedge",{width:It.label.width,height:It.label.height,rank:ye.rank,order:le+ ++Gt,e:It.e,label:It.label},"_se")}),delete ye.selfEdges})})})(Pt)}),ge(" adjustCoordinateSystem",function(){I.adjust(Pt)}),ge(" position",function(){H(Pt)}),ge(" positionSelfEdges",function(){(function(pe){h.forEach(pe.nodes(),function(de){var Rt=pe.node(de);if(Rt.dummy==="selfedge"){var Gt=pe.node(Rt.e.v),oe=Gt.x+Gt.width/2,le=Gt.y,ye=Rt.x-oe,It=Gt.height/2;pe.setEdge(Rt.e,Rt.label),pe.removeNode(de),Rt.label.points=[{x:oe+2*ye/3,y:le-It},{x:oe+5*ye/6,y:le-It},{x:oe+ye,y:le},{x:oe+5*ye/6,y:le+It},{x:oe+2*ye/3,y:le+It}],Rt.label.x=Rt.x,Rt.label.y=Rt.y}})})(Pt)}),ge(" removeBorderNodes",function(){(function(pe){h.forEach(pe.nodes(),function(de){if(pe.children(de).length){var Rt=pe.node(de),Gt=pe.node(Rt.borderTop),oe=pe.node(Rt.borderBottom),le=pe.node(h.last(Rt.borderLeft)),ye=pe.node(h.last(Rt.borderRight));Rt.width=Math.abs(ye.x-le.x),Rt.height=Math.abs(oe.y-Gt.y),Rt.x=le.x+Rt.width/2,Rt.y=Gt.y+Rt.height/2}}),h.forEach(pe.nodes(),function(de){pe.node(de).dummy==="border"&&pe.removeNode(de)})})(Pt)}),ge(" normalize.undo",function(){y.undo(Pt)}),ge(" fixupEdgeLabelCoords",function(){(function(pe){h.forEach(pe.edges(),function(de){var Rt=pe.edge(de);if(h.has(Rt,"x"))switch(Rt.labelpos!=="l"&&Rt.labelpos!=="r"||(Rt.width-=Rt.labeloffset),Rt.labelpos){case"l":Rt.x-=Rt.width/2+Rt.labeloffset;break;case"r":Rt.x+=Rt.width/2+Rt.labeloffset}})})(Pt)}),ge(" undoCoordinateSystem",function(){I.undo(Pt)}),ge(" translateGraph",function(){(function(pe){var de=Number.POSITIVE_INFINITY,Rt=0,Gt=Number.POSITIVE_INFINITY,oe=0,le=pe.graph(),ye=le.marginx||0,It=le.marginy||0;function $e(he){var Yt=he.x,Kt=he.y,ct=he.width,ee=he.height;de=Math.min(de,Yt-ct/2),Rt=Math.max(Rt,Yt+ct/2),Gt=Math.min(Gt,Kt-ee/2),oe=Math.max(oe,Kt+ee/2)}h.forEach(pe.nodes(),function(he){$e(pe.node(he))}),h.forEach(pe.edges(),function(he){var Yt=pe.edge(he);h.has(Yt,"x")&&$e(Yt)}),de-=ye,Gt-=It,h.forEach(pe.nodes(),function(he){var Yt=pe.node(he);Yt.x-=de,Yt.y-=Gt}),h.forEach(pe.edges(),function(he){var Yt=pe.edge(he);h.forEach(Yt.points,function(Kt){Kt.x-=de,Kt.y-=Gt}),h.has(Yt,"x")&&(Yt.x-=de),h.has(Yt,"y")&&(Yt.y-=Gt)}),le.width=Rt-de+ye,le.height=oe-Gt+It})(Pt)}),ge(" assignNodeIntersects",function(){(function(pe){h.forEach(pe.edges(),function(de){var Rt,Gt,oe=pe.edge(de),le=pe.node(de.v),ye=pe.node(de.w);oe.points?(Rt=oe.points[0],Gt=oe.points[oe.points.length-1]):(oe.points=[],Rt=ye,Gt=le),oe.points.unshift(q.intersectRect(le,Rt)),oe.points.push(q.intersectRect(ye,Gt))})})(Pt)}),ge(" reversePoints",function(){(function(pe){h.forEach(pe.edges(),function(de){var Rt=pe.edge(de);Rt.reversed&&Rt.points.reverse()})})(Pt)}),ge(" acyclic.undo",function(){c.undo(Pt)})})(Ht,wt)}),wt(" updateInputGraph",function(){(function(Pt,ge){h.forEach(Pt.nodes(),function(pe){var de=Pt.node(pe),Rt=ge.node(pe);de&&(de.x=Rt.x,de.y=Rt.y,ge.children(pe).length&&(de.width=Rt.width,de.height=Rt.height))}),h.forEach(Pt.edges(),function(pe){var de=Pt.edge(pe),Rt=ge.edge(pe);de.points=Rt.points,h.has(Rt,"x")&&(de.x=Rt.x,de.y=Rt.y)}),Pt.graph().width=ge.graph().width,Pt.graph().height=ge.graph().height})(St,Ht)})})};var X=["nodesep","edgesep","ranksep","marginx","marginy"],it={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},tt=["acyclicer","ranker","rankdir","align"],rt=["width","height"],ut={width:0,height:0},Ct=["minlen","weight","width","height","labeloffset"],et={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},K=["labelpos"];function ht(St,pt){return h.mapValues(h.pick(St,pt),Number)}function xt(St){var pt={};return h.forEach(St,function(wt,Ht){pt[Ht.toLowerCase()]=wt}),pt}},8436:(r,s,o)=>{var h;try{h={cloneDeep:o(361),constant:o(5703),defaults:o(1747),each:o(6073),filter:o(3105),find:o(3311),flatten:o(5564),forEach:o(4486),forIn:o(2620),has:o(8721),isUndefined:o(2353),last:o(928),map:o(5161),mapValues:o(6604),max:o(6162),merge:o(3857),min:o(3632),minBy:o(2762),now:o(7771),pick:o(9722),range:o(6026),reduce:o(4061),sortBy:o(9734),uniqueId:o(3955),values:o(2628),zipObject:o(7287)}}catch{}h||(h=window._),r.exports=h},2981:(r,s,o)=>{var h=o(8436),c=o(1138);function y(p,b,T,k,D,O,I){var z=p.children(I);if(z.length){var H=c.addBorderNode(p,"_bt"),q=c.addBorderNode(p,"_bb"),V=p.node(I);p.setParent(H,I),V.borderTop=H,p.setParent(q,I),V.borderBottom=q,h.forEach(z,function(X){y(p,b,T,k,D,O,X);var it=p.node(X),tt=it.borderTop?it.borderTop:X,rt=it.borderBottom?it.borderBottom:X,ut=it.borderTop?k:2*k,Ct=tt!==rt?1:D-O[I]+1;p.setEdge(H,tt,{weight:ut,minlen:Ct,nestingEdge:!0}),p.setEdge(rt,q,{weight:ut,minlen:Ct,nestingEdge:!0})}),p.parent(I)||p.setEdge(b,H,{weight:0,minlen:D+O[I]})}else I!==b&&p.setEdge(b,I,{weight:0,minlen:T})}r.exports={run:function(p){var b=c.addDummyNode(p,"root",{},"_root"),T=function(I){var z={};function H(q,V){var X=I.children(q);X&&X.length&&h.forEach(X,function(it){H(it,V+1)}),z[q]=V}return h.forEach(I.children(),function(q){H(q,1)}),z}(p),k=h.max(h.values(T))-1,D=2*k+1;p.graph().nestingRoot=b,h.forEach(p.edges(),function(I){p.edge(I).minlen*=D});var O=function(I){return h.reduce(I.edges(),function(z,H){return z+I.edge(H).weight},0)}(p)+1;h.forEach(p.children(),function(I){y(p,b,D,O,k,T,I)}),p.graph().nodeRankFactor=D},cleanup:function(p){var b=p.graph();p.removeNode(b.nestingRoot),delete b.nestingRoot,h.forEach(p.edges(),function(T){p.edge(T).nestingEdge&&p.removeEdge(T)})}}},5995:(r,s,o)=>{var h=o(8436),c=o(1138);r.exports={run:function(y){y.graph().dummyChains=[],h.forEach(y.edges(),function(p){(function(b,T){var k,D,O,I=T.v,z=b.node(I).rank,H=T.w,q=b.node(H).rank,V=T.name,X=b.edge(T),it=X.labelRank;if(q!==z+1){for(b.removeEdge(T),O=0,++z;z<q;++O,++z)X.points=[],D={width:0,height:0,edgeLabel:X,edgeObj:T,rank:z},k=c.addDummyNode(b,"edge",D,"_d"),z===it&&(D.width=X.width,D.height=X.height,D.dummy="edge-label",D.labelpos=X.labelpos),b.setEdge(I,k,{weight:X.weight},V),O===0&&b.graph().dummyChains.push(k),I=k;b.setEdge(I,H,{weight:X.weight},V)}})(y,p)})},undo:function(y){h.forEach(y.graph().dummyChains,function(p){var b,T=y.node(p),k=T.edgeLabel;for(y.setEdge(T.edgeObj,k);T.dummy;)b=y.successors(p)[0],y.removeNode(p),k.points.push({x:T.x,y:T.y}),T.dummy==="edge-label"&&(k.x=T.x,k.y=T.y,k.width=T.width,k.height=T.height),p=b,T=y.node(p)})}}},5093:(r,s,o)=>{var h=o(8436);r.exports=function(c,y,p){var b,T={};h.forEach(p,function(k){for(var D,O,I=c.parent(k);I;){if((D=c.parent(I))?(O=T[D],T[D]=I):(O=b,b=I),O&&O!==I)return void y.setEdge(O,I);I=D}})}},5439:(r,s,o)=>{var h=o(8436);r.exports=function(c,y){return h.map(y,function(p){var b=c.inEdges(p);if(b.length){var T=h.reduce(b,function(k,D){var O=c.edge(D),I=c.node(D.v);return{sum:k.sum+O.weight*I.order,weight:k.weight+O.weight}},{sum:0,weight:0});return{v:p,barycenter:T.sum/T.weight,weight:T.weight}}return{v:p}})}},3128:(r,s,o)=>{var h=o(8436),c=o(574).Graph;r.exports=function(y,p,b){var T=function(D){for(var O;D.hasNode(O=h.uniqueId("_root")););return O}(y),k=new c({compound:!0}).setGraph({root:T}).setDefaultNodeLabel(function(D){return y.node(D)});return h.forEach(y.nodes(),function(D){var O=y.node(D),I=y.parent(D);(O.rank===p||O.minRank<=p&&p<=O.maxRank)&&(k.setNode(D),k.setParent(D,I||T),h.forEach(y[b](D),function(z){var H=z.v===D?z.w:z.v,q=k.edge(H,D),V=h.isUndefined(q)?0:q.weight;k.setEdge(H,D,{weight:y.edge(z).weight+V})}),h.has(O,"minRank")&&k.setNode(D,{borderLeft:O.borderLeft[p],borderRight:O.borderRight[p]}))}),k}},6630:(r,s,o)=>{var h=o(8436);function c(y,p,b){for(var T=h.zipObject(b,h.map(b,function(H,q){return q})),k=h.flatten(h.map(p,function(H){return h.sortBy(h.map(y.outEdges(H),function(q){return{pos:T[q.w],weight:y.edge(q).weight}}),"pos")}),!0),D=1;D<b.length;)D<<=1;var O=2*D-1;D-=1;var I=h.map(new Array(O),function(){return 0}),z=0;return h.forEach(k.forEach(function(H){var q=H.pos+D;I[q]+=H.weight;for(var V=0;q>0;)q%2&&(V+=I[q+1]),I[q=q-1>>1]+=H.weight;z+=H.weight*V})),z}r.exports=function(y,p){for(var b=0,T=1;T<p.length;++T)b+=c(y,p[T-1],p[T]);return b}},3408:(r,s,o)=>{var h=o(8436),c=o(2588),y=o(6630),p=o(1026),b=o(3128),T=o(5093),k=o(574).Graph,D=o(1138);function O(H,q,V){return h.map(q,function(X){return b(H,X,V)})}function I(H,q){var V=new k;h.forEach(H,function(X){var it=X.graph().root,tt=p(X,it,V,q);h.forEach(tt.vs,function(rt,ut){X.node(rt).order=ut}),T(X,V,tt.vs)})}function z(H,q){h.forEach(q,function(V){h.forEach(V,function(X,it){H.node(X).order=it})})}r.exports=function(H){var q=D.maxRank(H),V=O(H,h.range(1,q+1),"inEdges"),X=O(H,h.range(q-1,-1,-1),"outEdges"),it=c(H);z(H,it);for(var tt,rt=Number.POSITIVE_INFINITY,ut=0,Ct=0;Ct<4;++ut,++Ct){I(ut%2?V:X,ut%4>=2),it=D.buildLayerMatrix(H);var et=y(H,it);et<rt&&(Ct=0,tt=h.cloneDeep(it),rt=et)}z(H,tt)}},2588:(r,s,o)=>{var h=o(8436);r.exports=function(c){var y={},p=h.filter(c.nodes(),function(D){return!c.children(D).length}),b=h.max(h.map(p,function(D){return c.node(D).rank})),T=h.map(h.range(b+1),function(){return[]}),k=h.sortBy(p,function(D){return c.node(D).rank});return h.forEach(k,function D(O){if(!h.has(y,O)){y[O]=!0;var I=c.node(O);T[I.rank].push(O),h.forEach(c.successors(O),D)}}),T}},9567:(r,s,o)=>{var h=o(8436);r.exports=function(c,y){var p={};return h.forEach(c,function(b,T){var k=p[b.v]={indegree:0,in:[],out:[],vs:[b.v],i:T};h.isUndefined(b.barycenter)||(k.barycenter=b.barycenter,k.weight=b.weight)}),h.forEach(y.edges(),function(b){var T=p[b.v],k=p[b.w];h.isUndefined(T)||h.isUndefined(k)||(k.indegree++,T.out.push(p[b.w]))}),function(b){var T=[];function k(I){return function(z){var H,q,V,X;z.merged||(h.isUndefined(z.barycenter)||h.isUndefined(I.barycenter)||z.barycenter>=I.barycenter)&&(q=z,V=0,X=0,(H=I).weight&&(V+=H.barycenter*H.weight,X+=H.weight),q.weight&&(V+=q.barycenter*q.weight,X+=q.weight),H.vs=q.vs.concat(H.vs),H.barycenter=V/X,H.weight=X,H.i=Math.min(q.i,H.i),q.merged=!0)}}function D(I){return function(z){z.in.push(I),--z.indegree==0&&b.push(z)}}for(;b.length;){var O=b.pop();T.push(O),h.forEach(O.in.reverse(),k(O)),h.forEach(O.out,D(O))}return h.map(h.filter(T,function(I){return!I.merged}),function(I){return h.pick(I,["vs","i","barycenter","weight"])})}(h.filter(p,function(b){return!b.indegree}))}},1026:(r,s,o)=>{var h=o(8436),c=o(5439),y=o(9567),p=o(7304);r.exports=function b(T,k,D,O){var I=T.children(k),z=T.node(k),H=z?z.borderLeft:void 0,q=z?z.borderRight:void 0,V={};H&&(I=h.filter(I,function(Ct){return Ct!==H&&Ct!==q}));var X=c(T,I);h.forEach(X,function(Ct){if(T.children(Ct.v).length){var et=b(T,Ct.v,D,O);V[Ct.v]=et,h.has(et,"barycenter")&&(K=Ct,ht=et,h.isUndefined(K.barycenter)?(K.barycenter=ht.barycenter,K.weight=ht.weight):(K.barycenter=(K.barycenter*K.weight+ht.barycenter*ht.weight)/(K.weight+ht.weight),K.weight+=ht.weight))}var K,ht});var it=y(X,D);(function(Ct,et){h.forEach(Ct,function(K){K.vs=h.flatten(K.vs.map(function(ht){return et[ht]?et[ht].vs:ht}),!0)})})(it,V);var tt=p(it,O);if(H&&(tt.vs=h.flatten([H,tt.vs,q],!0),T.predecessors(H).length)){var rt=T.node(T.predecessors(H)[0]),ut=T.node(T.predecessors(q)[0]);h.has(tt,"barycenter")||(tt.barycenter=0,tt.weight=0),tt.barycenter=(tt.barycenter*tt.weight+rt.order+ut.order)/(tt.weight+2),tt.weight+=2}return tt}},7304:(r,s,o)=>{var h=o(8436),c=o(1138);function y(p,b,T){for(var k;b.length&&(k=h.last(b)).i<=T;)b.pop(),p.push(k.vs),T++;return T}r.exports=function(p,b){var T,k=c.partition(p,function(X){return h.has(X,"barycenter")}),D=k.lhs,O=h.sortBy(k.rhs,function(X){return-X.i}),I=[],z=0,H=0,q=0;D.sort((T=!!b,function(X,it){return X.barycenter<it.barycenter?-1:X.barycenter>it.barycenter?1:T?it.i-X.i:X.i-it.i})),q=y(I,O,q),h.forEach(D,function(X){q+=X.vs.length,I.push(X.vs),z+=X.barycenter*X.weight,H+=X.weight,q=y(I,O,q)});var V={vs:h.flatten(I,!0)};return H&&(V.barycenter=z/H,V.weight=H),V}},4219:(r,s,o)=>{var h=o(8436);r.exports=function(c){var y=function(p){var b={},T=0;return h.forEach(p.children(),function k(D){var O=T;h.forEach(p.children(D),k),b[D]={low:O,lim:T++}}),b}(c);h.forEach(c.graph().dummyChains,function(p){for(var b=c.node(p),T=b.edgeObj,k=function(q,V,X,it){var tt,rt,ut=[],Ct=[],et=Math.min(V[X].low,V[it].low),K=Math.max(V[X].lim,V[it].lim);tt=X;do tt=q.parent(tt),ut.push(tt);while(tt&&(V[tt].low>et||K>V[tt].lim));for(rt=tt,tt=it;(tt=q.parent(tt))!==rt;)Ct.push(tt);return{path:ut.concat(Ct.reverse()),lca:rt}}(c,y,T.v,T.w),D=k.path,O=k.lca,I=0,z=D[I],H=!0;p!==T.w;){if(b=c.node(p),H){for(;(z=D[I])!==O&&c.node(z).maxRank<b.rank;)I++;z===O&&(H=!1)}if(!H){for(;I<D.length-1&&c.node(z=D[I+1]).minRank<=b.rank;)I++;z=D[I]}c.setParent(p,z),p=c.successors(p)[0]}})}},3573:(r,s,o)=>{var h=o(8436),c=o(574).Graph,y=o(1138);function p(q,V){var X={};return h.reduce(V,function(it,tt){var rt=0,ut=0,Ct=it.length,et=h.last(tt);return h.forEach(tt,function(K,ht){var xt=function(pt,wt){if(pt.node(wt).dummy)return h.find(pt.predecessors(wt),function(Ht){return pt.node(Ht).dummy})}(q,K),St=xt?q.node(xt).order:Ct;(xt||K===et)&&(h.forEach(tt.slice(ut,ht+1),function(pt){h.forEach(q.predecessors(pt),function(wt){var Ht=q.node(wt),Pt=Ht.order;!(Pt<rt||St<Pt)||Ht.dummy&&q.node(pt).dummy||T(X,wt,pt)})}),ut=ht+1,rt=St)}),tt}),X}function b(q,V){var X={};function it(tt,rt,ut,Ct,et){var K;h.forEach(h.range(rt,ut),function(ht){K=tt[ht],q.node(K).dummy&&h.forEach(q.predecessors(K),function(xt){var St=q.node(xt);St.dummy&&(St.order<Ct||St.order>et)&&T(X,xt,K)})})}return h.reduce(V,function(tt,rt){var ut,Ct=-1,et=0;return h.forEach(rt,function(K,ht){if(q.node(K).dummy==="border"){var xt=q.predecessors(K);xt.length&&(ut=q.node(xt[0]).order,it(rt,et,ht,Ct,ut),et=ht,Ct=ut)}it(rt,et,rt.length,ut,tt.length)}),rt}),X}function T(q,V,X){if(V>X){var it=V;V=X,X=it}var tt=q[V];tt||(q[V]=tt={}),tt[X]=!0}function k(q,V,X){if(V>X){var it=V;V=X,X=it}return h.has(q[V],X)}function D(q,V,X,it){var tt={},rt={},ut={};return h.forEach(V,function(Ct){h.forEach(Ct,function(et,K){tt[et]=et,rt[et]=et,ut[et]=K})}),h.forEach(V,function(Ct){var et=-1;h.forEach(Ct,function(K){var ht=it(K);if(ht.length){ht=h.sortBy(ht,function(Ht){return ut[Ht]});for(var xt=(ht.length-1)/2,St=Math.floor(xt),pt=Math.ceil(xt);St<=pt;++St){var wt=ht[St];rt[K]===K&&et<ut[wt]&&!k(X,K,wt)&&(rt[wt]=K,rt[K]=tt[K]=tt[wt],et=ut[wt])}}})}),{root:tt,align:rt}}function O(q,V,X,it,tt){var rt={},ut=function(K,ht,xt,St){var pt=new c,wt=K.graph(),Ht=function(Pt,ge,pe){return function(de,Rt,Gt){var oe,le=de.node(Rt),ye=de.node(Gt),It=0;if(It+=le.width/2,h.has(le,"labelpos"))switch(le.labelpos.toLowerCase()){case"l":oe=-le.width/2;break;case"r":oe=le.width/2}if(oe&&(It+=pe?oe:-oe),oe=0,It+=(le.dummy?ge:Pt)/2,It+=(ye.dummy?ge:Pt)/2,It+=ye.width/2,h.has(ye,"labelpos"))switch(ye.labelpos.toLowerCase()){case"l":oe=ye.width/2;break;case"r":oe=-ye.width/2}return oe&&(It+=pe?oe:-oe),oe=0,It}}(wt.nodesep,wt.edgesep,St);return h.forEach(ht,function(Pt){var ge;h.forEach(Pt,function(pe){var de=xt[pe];if(pt.setNode(de),ge){var Rt=xt[ge],Gt=pt.edge(Rt,de);pt.setEdge(Rt,de,Math.max(Ht(K,pe,ge),Gt||0))}ge=pe})}),pt}(q,V,X,tt),Ct=tt?"borderLeft":"borderRight";function et(K,ht){for(var xt=ut.nodes(),St=xt.pop(),pt={};St;)pt[St]?K(St):(pt[St]=!0,xt.push(St),xt=xt.concat(ht(St))),St=xt.pop()}return et(function(K){rt[K]=ut.inEdges(K).reduce(function(ht,xt){return Math.max(ht,rt[xt.v]+ut.edge(xt))},0)},ut.predecessors.bind(ut)),et(function(K){var ht=ut.outEdges(K).reduce(function(St,pt){return Math.min(St,rt[pt.w]-ut.edge(pt))},Number.POSITIVE_INFINITY),xt=q.node(K);ht!==Number.POSITIVE_INFINITY&&xt.borderType!==Ct&&(rt[K]=Math.max(rt[K],ht))},ut.successors.bind(ut)),h.forEach(it,function(K){rt[K]=rt[X[K]]}),rt}function I(q,V){return h.minBy(h.values(V),function(X){var it=Number.NEGATIVE_INFINITY,tt=Number.POSITIVE_INFINITY;return h.forIn(X,function(rt,ut){var Ct=function(et,K){return et.node(K).width}(q,ut)/2;it=Math.max(rt+Ct,it),tt=Math.min(rt-Ct,tt)}),it-tt})}function z(q,V){var X=h.values(V),it=h.min(X),tt=h.max(X);h.forEach(["u","d"],function(rt){h.forEach(["l","r"],function(ut){var Ct,et=rt+ut,K=q[et];if(K!==V){var ht=h.values(K);(Ct=ut==="l"?it-h.min(ht):tt-h.max(ht))&&(q[et]=h.mapValues(K,function(xt){return xt+Ct}))}})})}function H(q,V){return h.mapValues(q.ul,function(X,it){if(V)return q[V.toLowerCase()][it];var tt=h.sortBy(h.map(q,it));return(tt[1]+tt[2])/2})}r.exports={positionX:function(q){var V,X=y.buildLayerMatrix(q),it=h.merge(p(q,X),b(q,X)),tt={};h.forEach(["u","d"],function(ut){V=ut==="u"?X:h.values(X).reverse(),h.forEach(["l","r"],function(Ct){Ct==="r"&&(V=h.map(V,function(xt){return h.values(xt).reverse()}));var et=(ut==="u"?q.predecessors:q.successors).bind(q),K=D(0,V,it,et),ht=O(q,V,K.root,K.align,Ct==="r");Ct==="r"&&(ht=h.mapValues(ht,function(xt){return-xt})),tt[ut+Ct]=ht})});var rt=I(q,tt);return z(tt,rt),H(tt,q.graph().align)},findType1Conflicts:p,findType2Conflicts:b,addConflict:T,hasConflict:k,verticalAlignment:D,horizontalCompaction:O,alignCoordinates:z,findSmallestWidthAlignment:I,balance:H}},7873:(r,s,o)=>{var h=o(8436),c=o(1138),y=o(3573).positionX;r.exports=function(p){(function(b){var T=c.buildLayerMatrix(b),k=b.graph().ranksep,D=0;h.forEach(T,function(O){var I=h.max(h.map(O,function(z){return b.node(z).height}));h.forEach(O,function(z){b.node(z).y=D+I/2}),D+=I+k})})(p=c.asNonCompoundGraph(p)),h.forEach(y(p),function(b,T){p.node(T).x=b})}},300:(r,s,o)=>{var h=o(8436),c=o(574).Graph,y=o(6681).slack;function p(k,D){return h.forEach(k.nodes(),function O(I){h.forEach(D.nodeEdges(I),function(z){var H=z.v,q=I===H?z.w:H;k.hasNode(q)||y(D,z)||(k.setNode(q,{}),k.setEdge(I,q,{}),O(q))})}),k.nodeCount()}function b(k,D){return h.minBy(D.edges(),function(O){if(k.hasNode(O.v)!==k.hasNode(O.w))return y(D,O)})}function T(k,D,O){h.forEach(k.nodes(),function(I){D.node(I).rank+=O})}r.exports=function(k){var D,O,I=new c({directed:!1}),z=k.nodes()[0],H=k.nodeCount();for(I.setNode(z,{});p(I,k)<H;)D=b(I,k),O=I.hasNode(D.v)?y(k,D):-y(k,D),T(I,k,O);return I}},8093:(r,s,o)=>{var h=o(6681).longestPath,c=o(300),y=o(2472);r.exports=function(b){switch(b.graph().ranker){case"network-simplex":default:(function(T){y(T)})(b);break;case"tight-tree":(function(T){h(T),c(T)})(b);break;case"longest-path":p(b)}};var p=h},2472:(r,s,o)=>{var h=o(8436),c=o(300),y=o(6681).slack,p=o(6681).longestPath,b=o(574).alg.preorder,T=o(574).alg.postorder,k=o(1138).simplify;function D(tt){tt=k(tt),p(tt);var rt,ut=c(tt);for(z(ut),O(ut,tt);rt=q(ut);)X(ut,tt,rt,V(ut,tt,rt))}function O(tt,rt){var ut=T(tt,tt.nodes());ut=ut.slice(0,ut.length-1),h.forEach(ut,function(Ct){(function(et,K,ht){var xt=et.node(ht).parent;et.edge(ht,xt).cutvalue=I(et,K,ht)})(tt,rt,Ct)})}function I(tt,rt,ut){var Ct=tt.node(ut).parent,et=!0,K=rt.edge(ut,Ct),ht=0;return K||(et=!1,K=rt.edge(Ct,ut)),ht=K.weight,h.forEach(rt.nodeEdges(ut),function(xt){var St,pt,wt=xt.v===ut,Ht=wt?xt.w:xt.v;if(Ht!==Ct){var Pt=wt===et,ge=rt.edge(xt).weight;if(ht+=Pt?ge:-ge,St=ut,pt=Ht,tt.hasEdge(St,pt)){var pe=tt.edge(ut,Ht).cutvalue;ht+=Pt?-pe:pe}}}),ht}function z(tt,rt){arguments.length<2&&(rt=tt.nodes()[0]),H(tt,{},1,rt)}function H(tt,rt,ut,Ct,et){var K=ut,ht=tt.node(Ct);return rt[Ct]=!0,h.forEach(tt.neighbors(Ct),function(xt){h.has(rt,xt)||(ut=H(tt,rt,ut,xt,Ct))}),ht.low=K,ht.lim=ut++,et?ht.parent=et:delete ht.parent,ut}function q(tt){return h.find(tt.edges(),function(rt){return tt.edge(rt).cutvalue<0})}function V(tt,rt,ut){var Ct=ut.v,et=ut.w;rt.hasEdge(Ct,et)||(Ct=ut.w,et=ut.v);var K=tt.node(Ct),ht=tt.node(et),xt=K,St=!1;K.lim>ht.lim&&(xt=ht,St=!0);var pt=h.filter(rt.edges(),function(wt){return St===it(0,tt.node(wt.v),xt)&&St!==it(0,tt.node(wt.w),xt)});return h.minBy(pt,function(wt){return y(rt,wt)})}function X(tt,rt,ut,Ct){var et=ut.v,K=ut.w;tt.removeEdge(et,K),tt.setEdge(Ct.v,Ct.w,{}),z(tt),O(tt,rt),function(ht,xt){var St=h.find(ht.nodes(),function(wt){return!xt.node(wt).parent}),pt=b(ht,St);pt=pt.slice(1),h.forEach(pt,function(wt){var Ht=ht.node(wt).parent,Pt=xt.edge(wt,Ht),ge=!1;Pt||(Pt=xt.edge(Ht,wt),ge=!0),xt.node(wt).rank=xt.node(Ht).rank+(ge?Pt.minlen:-Pt.minlen)})}(tt,rt)}function it(tt,rt,ut){return ut.low<=rt.lim&&rt.lim<=ut.lim}r.exports=D,D.initLowLimValues=z,D.initCutValues=O,D.calcCutValue=I,D.leaveEdge=q,D.enterEdge=V,D.exchangeEdges=X},6681:(r,s,o)=>{var h=o(8436);r.exports={longestPath:function(c){var y={};h.forEach(c.sources(),function p(b){var T=c.node(b);if(h.has(y,b))return T.rank;y[b]=!0;var k=h.min(h.map(c.outEdges(b),function(D){return p(D.w)-c.edge(D).minlen}));return k!==Number.POSITIVE_INFINITY&&k!=null||(k=0),T.rank=k})},slack:function(c,y){return c.node(y.w).rank-c.node(y.v).rank-c.edge(y).minlen}}},1138:(r,s,o)=>{var h=o(8436),c=o(574).Graph;function y(b,T,k,D){var O;do O=h.uniqueId(D);while(b.hasNode(O));return k.dummy=T,b.setNode(O,k),O}function p(b){return h.max(h.map(b.nodes(),function(T){var k=b.node(T).rank;if(!h.isUndefined(k))return k}))}r.exports={addDummyNode:y,simplify:function(b){var T=new c().setGraph(b.graph());return h.forEach(b.nodes(),function(k){T.setNode(k,b.node(k))}),h.forEach(b.edges(),function(k){var D=T.edge(k.v,k.w)||{weight:0,minlen:1},O=b.edge(k);T.setEdge(k.v,k.w,{weight:D.weight+O.weight,minlen:Math.max(D.minlen,O.minlen)})}),T},asNonCompoundGraph:function(b){var T=new c({multigraph:b.isMultigraph()}).setGraph(b.graph());return h.forEach(b.nodes(),function(k){b.children(k).length||T.setNode(k,b.node(k))}),h.forEach(b.edges(),function(k){T.setEdge(k,b.edge(k))}),T},successorWeights:function(b){var T=h.map(b.nodes(),function(k){var D={};return h.forEach(b.outEdges(k),function(O){D[O.w]=(D[O.w]||0)+b.edge(O).weight}),D});return h.zipObject(b.nodes(),T)},predecessorWeights:function(b){var T=h.map(b.nodes(),function(k){var D={};return h.forEach(b.inEdges(k),function(O){D[O.v]=(D[O.v]||0)+b.edge(O).weight}),D});return h.zipObject(b.nodes(),T)},intersectRect:function(b,T){var k,D,O=b.x,I=b.y,z=T.x-O,H=T.y-I,q=b.width/2,V=b.height/2;if(!z&&!H)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(H)*q>Math.abs(z)*V?(H<0&&(V=-V),k=V*z/H,D=V):(z<0&&(q=-q),k=q,D=q*H/z),{x:O+k,y:I+D}},buildLayerMatrix:function(b){var T=h.map(h.range(p(b)+1),function(){return[]});return h.forEach(b.nodes(),function(k){var D=b.node(k),O=D.rank;h.isUndefined(O)||(T[O][D.order]=k)}),T},normalizeRanks:function(b){var T=h.min(h.map(b.nodes(),function(k){return b.node(k).rank}));h.forEach(b.nodes(),function(k){var D=b.node(k);h.has(D,"rank")&&(D.rank-=T)})},removeEmptyRanks:function(b){var T=h.min(h.map(b.nodes(),function(I){return b.node(I).rank})),k=[];h.forEach(b.nodes(),function(I){var z=b.node(I).rank-T;k[z]||(k[z]=[]),k[z].push(I)});var D=0,O=b.graph().nodeRankFactor;h.forEach(k,function(I,z){h.isUndefined(I)&&z%O!=0?--D:D&&h.forEach(I,function(H){b.node(H).rank+=D})})},addBorderNode:function(b,T,k,D){var O={width:0,height:0};return arguments.length>=4&&(O.rank=k,O.order=D),y(b,"border",O,T)},maxRank:p,partition:function(b,T){var k={lhs:[],rhs:[]};return h.forEach(b,function(D){T(D)?k.lhs.push(D):k.rhs.push(D)}),k},time:function(b,T){var k=h.now();try{return T()}finally{console.log(b+" time: "+(h.now()-k)+"ms")}},notime:function(b,T){return T()}}},8177:r=>{r.exports="0.8.5"},7856:function(r){r.exports=function(){var s=Object.hasOwnProperty,o=Object.setPrototypeOf,h=Object.isFrozen,c=Object.getPrototypeOf,y=Object.getOwnPropertyDescriptor,p=Object.freeze,b=Object.seal,T=Object.create,k=typeof Reflect!="undefined"&&Reflect,D=k.apply,O=k.construct;D||(D=function(Ut,Ot,ae){return Ut.apply(Ot,ae)}),p||(p=function(Ut){return Ut}),b||(b=function(Ut){return Ut}),O||(O=function(Ut,Ot){return new(Function.prototype.bind.apply(Ut,[null].concat(function(ae){if(Array.isArray(ae)){for(var Qe=0,_e=Array(ae.length);Qe<ae.length;Qe++)_e[Qe]=ae[Qe];return _e}return Array.from(ae)}(Ot))))});var I,z=et(Array.prototype.forEach),H=et(Array.prototype.pop),q=et(Array.prototype.push),V=et(String.prototype.toLowerCase),X=et(String.prototype.match),it=et(String.prototype.replace),tt=et(String.prototype.indexOf),rt=et(String.prototype.trim),ut=et(RegExp.prototype.test),Ct=(I=TypeError,function(){for(var Ut=arguments.length,Ot=Array(Ut),ae=0;ae<Ut;ae++)Ot[ae]=arguments[ae];return O(I,Ot)});function et(Ut){return function(Ot){for(var ae=arguments.length,Qe=Array(ae>1?ae-1:0),_e=1;_e<ae;_e++)Qe[_e-1]=arguments[_e];return D(Ut,Ot,Qe)}}function K(Ut,Ot){o&&o(Ut,null);for(var ae=Ot.length;ae--;){var Qe=Ot[ae];if(typeof Qe=="string"){var _e=V(Qe);_e!==Qe&&(h(Ot)||(Ot[ae]=_e),Qe=_e)}Ut[Qe]=!0}return Ut}function ht(Ut){var Ot=T(null),ae=void 0;for(ae in Ut)D(s,Ut,[ae])&&(Ot[ae]=Ut[ae]);return Ot}function xt(Ut,Ot){for(;Ut!==null;){var ae=y(Ut,Ot);if(ae){if(ae.get)return et(ae.get);if(typeof ae.value=="function")return et(ae.value)}Ut=c(Ut)}return function(Qe){return console.warn("fallback value for",Qe),null}}var St=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),pt=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),wt=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ht=p(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Pt=p(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),ge=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pe=p(["#text"]),de=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Rt=p(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Gt=p(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),oe=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),le=b(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ye=b(/<%[\s\S]*|[\s\S]*%>/gm),It=b(/^data-[\-\w.\u00B7-\uFFFF]/),$e=b(/^aria-[\-\w]+$/),he=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yt=b(/^(?:\w+script|data):/i),Kt=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ut){return typeof Ut}:function(Ut){return Ut&&typeof Symbol=="function"&&Ut.constructor===Symbol&&Ut!==Symbol.prototype?"symbol":typeof Ut};function ee(Ut){if(Array.isArray(Ut)){for(var Ot=0,ae=Array(Ut.length);Ot<Ut.length;Ot++)ae[Ot]=Ut[Ot];return ae}return Array.from(Ut)}var Nt=function(){return typeof window=="undefined"?null:window},Vt=function(Ut,Ot){if((Ut===void 0?"undefined":ct(Ut))!=="object"||typeof Ut.createPolicy!="function")return null;var ae=null,Qe="data-tt-policy-suffix";Ot.currentScript&&Ot.currentScript.hasAttribute(Qe)&&(ae=Ot.currentScript.getAttribute(Qe));var _e="dompurify"+(ae?"#"+ae:"");try{return Ut.createPolicy(_e,{createHTML:function(Ce){return Ce}})}catch{return console.warn("TrustedTypes policy "+_e+" could not be created."),null}};return function Ut(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Nt(),ae=function(Ft){return Ut(Ft)};if(ae.version="2.3.4",ae.removed=[],!Ot||!Ot.document||Ot.document.nodeType!==9)return ae.isSupported=!1,ae;var Qe=Ot.document,_e=Ot.document,Ce=Ot.DocumentFragment,un=Ot.HTMLTemplateElement,Ve=Ot.Node,Le=Ot.Element,ke=Ot.NodeFilter,Je=Ot.NamedNodeMap,Ye=Je===void 0?Ot.NamedNodeMap||Ot.MozNamedAttrMap:Je,Ge=Ot.HTMLFormElement,Ze=Ot.DOMParser,Ne=Ot.trustedTypes,Un=Le.prototype,Te=xt(Un,"cloneNode"),tn=xt(Un,"nextSibling"),vn=xt(Un,"childNodes"),Ir=xt(Un,"parentNode");if(typeof un=="function"){var _n=_e.createElement("template");_n.content&&_n.content.ownerDocument&&(_e=_n.content.ownerDocument)}var tr=Vt(Ne,Qe),cn=tr&&Pr?tr.createHTML(""):"",gn=_e,Xe=gn.implementation,Cn=gn.createNodeIterator,Tn=gn.createDocumentFragment,Hn=gn.getElementsByTagName,$n=Qe.importNode,Nr={};try{Nr=ht(_e).documentMode?_e.documentMode:{}}catch{}var En={};ae.isSupported=typeof Ir=="function"&&Xe&&Xe.createHTMLDocument!==void 0&&Nr!==9;var qn=le,Yn=ye,Gn=It,Zn=$e,er=Yt,On=Kt,Bn=he,ln=null,jn=K({},[].concat(ee(St),ee(pt),ee(wt),ee(Pt),ee(pe))),yn=null,ai=K({},[].concat(ee(de),ee(Rt),ee(Gt),ee(oe))),gr=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ea=null,Rn=null,No=!0,va=!0,oi=!1,Fr=!1,Ur=!1,Zr=!1,Jr=!1,Or=!1,ti=!1,Pr=!1,Fi=!0,fi=!0,nr=!1,qr={},_a=null,ei=K({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ba=null,mo=K({},["audio","video","img","source","image","track"]),di=null,en=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xn="http://www.w3.org/1998/Math/MathML",An="http://www.w3.org/2000/svg",Be="http://www.w3.org/1999/xhtml",Kn=Be,mt=!1,Xr=void 0,Xt=["application/xhtml+xml","text/html"],Pi="text/html",da=void 0,Xa=null,vo=_e.createElement("form"),Oo=function(Ft){return Ft instanceof RegExp||Ft instanceof Function},Lo=function(Ft){Xa&&Xa===Ft||(Ft&&(Ft===void 0?"undefined":ct(Ft))==="object"||(Ft={}),Ft=ht(Ft),ln="ALLOWED_TAGS"in Ft?K({},Ft.ALLOWED_TAGS):jn,yn="ALLOWED_ATTR"in Ft?K({},Ft.ALLOWED_ATTR):ai,di="ADD_URI_SAFE_ATTR"in Ft?K(ht(en),Ft.ADD_URI_SAFE_ATTR):en,ba="ADD_DATA_URI_TAGS"in Ft?K(ht(mo),Ft.ADD_DATA_URI_TAGS):mo,_a="FORBID_CONTENTS"in Ft?K({},Ft.FORBID_CONTENTS):ei,ea="FORBID_TAGS"in Ft?K({},Ft.FORBID_TAGS):{},Rn="FORBID_ATTR"in Ft?K({},Ft.FORBID_ATTR):{},qr="USE_PROFILES"in Ft&&Ft.USE_PROFILES,No=Ft.ALLOW_ARIA_ATTR!==!1,va=Ft.ALLOW_DATA_ATTR!==!1,oi=Ft.ALLOW_UNKNOWN_PROTOCOLS||!1,Fr=Ft.SAFE_FOR_TEMPLATES||!1,Ur=Ft.WHOLE_DOCUMENT||!1,Or=Ft.RETURN_DOM||!1,ti=Ft.RETURN_DOM_FRAGMENT||!1,Pr=Ft.RETURN_TRUSTED_TYPE||!1,Jr=Ft.FORCE_BODY||!1,Fi=Ft.SANITIZE_DOM!==!1,fi=Ft.KEEP_CONTENT!==!1,nr=Ft.IN_PLACE||!1,Bn=Ft.ALLOWED_URI_REGEXP||Bn,Kn=Ft.NAMESPACE||Be,Ft.CUSTOM_ELEMENT_HANDLING&&Oo(Ft.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(gr.tagNameCheck=Ft.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ft.CUSTOM_ELEMENT_HANDLING&&Oo(Ft.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(gr.attributeNameCheck=Ft.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ft.CUSTOM_ELEMENT_HANDLING&&typeof Ft.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(gr.allowCustomizedBuiltInElements=Ft.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Xr=Xr=Xt.indexOf(Ft.PARSER_MEDIA_TYPE)===-1?Pi:Ft.PARSER_MEDIA_TYPE,da=Xr==="application/xhtml+xml"?function(je){return je}:V,Fr&&(va=!1),ti&&(Or=!0),qr&&(ln=K({},[].concat(ee(pe))),yn=[],qr.html===!0&&(K(ln,St),K(yn,de)),qr.svg===!0&&(K(ln,pt),K(yn,Rt),K(yn,oe)),qr.svgFilters===!0&&(K(ln,wt),K(yn,Rt),K(yn,oe)),qr.mathMl===!0&&(K(ln,Pt),K(yn,Gt),K(yn,oe))),Ft.ADD_TAGS&&(ln===jn&&(ln=ht(ln)),K(ln,Ft.ADD_TAGS)),Ft.ADD_ATTR&&(yn===ai&&(yn=ht(yn)),K(yn,Ft.ADD_ATTR)),Ft.ADD_URI_SAFE_ATTR&&K(di,Ft.ADD_URI_SAFE_ATTR),Ft.FORBID_CONTENTS&&(_a===ei&&(_a=ht(_a)),K(_a,Ft.FORBID_CONTENTS)),fi&&(ln["#text"]=!0),Ur&&K(ln,["html","head","body"]),ln.table&&(K(ln,["tbody"]),delete ea.tbody),p&&p(Ft),Xa=Ft)},Vr=K({},["mi","mo","mn","ms","mtext"]),na=K({},["foreignobject","desc","title","annotation-xml"]),Dn=K({},pt);K(Dn,wt),K(Dn,Ht);var Fa=K({},Pt);K(Fa,ge);var Ka=function(Ft){var je=Ir(Ft);je&&je.tagName||(je={namespaceURI:Be,tagName:"template"});var Fe=V(Ft.tagName),mr=V(je.tagName);if(Ft.namespaceURI===An)return je.namespaceURI===Be?Fe==="svg":je.namespaceURI===Xn?Fe==="svg"&&(mr==="annotation-xml"||Vr[mr]):Boolean(Dn[Fe]);if(Ft.namespaceURI===Xn)return je.namespaceURI===Be?Fe==="math":je.namespaceURI===An?Fe==="math"&&na[mr]:Boolean(Fa[Fe]);if(Ft.namespaceURI===Be){if(je.namespaceURI===An&&!na[mr]||je.namespaceURI===Xn&&!Vr[mr])return!1;var br=K({},["title","style","font","a","script"]);return!Fa[Fe]&&(br[Fe]||!Dn[Fe])}return!1},yr=function(Ft){q(ae.removed,{element:Ft});try{Ft.parentNode.removeChild(Ft)}catch{try{Ft.outerHTML=cn}catch{Ft.remove()}}},Cr=function(Ft,je){try{q(ae.removed,{attribute:je.getAttributeNode(Ft),from:je})}catch{q(ae.removed,{attribute:null,from:je})}if(je.removeAttribute(Ft),Ft==="is"&&!yn[Ft])if(Or||ti)try{yr(je)}catch{}else try{je.setAttribute(Ft,"")}catch{}},xi=function(Ft){var je=void 0,Fe=void 0;if(Jr)Ft="<remove></remove>"+Ft;else{var mr=X(Ft,/^[\r\n\t ]+/);Fe=mr&&mr[0]}Xr==="application/xhtml+xml"&&(Ft='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ft+"</body></html>");var br=tr?tr.createHTML(Ft):Ft;if(Kn===Be)try{je=new Ze().parseFromString(br,Xr)}catch{}if(!je||!je.documentElement){je=Xe.createDocument(Kn,"template",null);try{je.documentElement.innerHTML=mt?"":br}catch{}}var ki=je.body||je.documentElement;return Ft&&Fe&&ki.insertBefore(_e.createTextNode(Fe),ki.childNodes[0]||null),Kn===Be?Hn.call(je,Ur?"html":"body")[0]:Ur?je.documentElement:ki},ni=function(Ft){return Cn.call(Ft.ownerDocument||Ft,Ft,ke.SHOW_ELEMENT|ke.SHOW_COMMENT|ke.SHOW_TEXT,null,!1)},Hr=function(Ft){return Ft instanceof Ge&&(typeof Ft.nodeName!="string"||typeof Ft.textContent!="string"||typeof Ft.removeChild!="function"||!(Ft.attributes instanceof Ye)||typeof Ft.removeAttribute!="function"||typeof Ft.setAttribute!="function"||typeof Ft.namespaceURI!="string"||typeof Ft.insertBefore!="function")},$r=function(Ft){return(Ve===void 0?"undefined":ct(Ve))==="object"?Ft instanceof Ve:Ft&&(Ft===void 0?"undefined":ct(Ft))==="object"&&typeof Ft.nodeType=="number"&&typeof Ft.nodeName=="string"},pi=function(Ft,je,Fe){En[Ft]&&z(En[Ft],function(mr){mr.call(ae,je,Fe,Xa)})},Kr=function(Ft){var je=void 0;if(pi("beforeSanitizeElements",Ft,null),Hr(Ft)||X(Ft.nodeName,/[\u0080-\uFFFF]/))return yr(Ft),!0;var Fe=da(Ft.nodeName);if(pi("uponSanitizeElement",Ft,{tagName:Fe,allowedTags:ln}),!$r(Ft.firstElementChild)&&(!$r(Ft.content)||!$r(Ft.content.firstElementChild))&&ut(/<[/\w]/g,Ft.innerHTML)&&ut(/<[/\w]/g,Ft.textContent)||Fe==="select"&&ut(/<template/i,Ft.innerHTML))return yr(Ft),!0;if(!ln[Fe]||ea[Fe]){if(fi&&!_a[Fe]){var mr=Ir(Ft)||Ft.parentNode,br=vn(Ft)||Ft.childNodes;if(br&&mr)for(var ki=br.length-1;ki>=0;--ki)mr.insertBefore(Te(br[ki],!0),tn(Ft))}return!ea[Fe]&&Vi(Fe)&&(gr.tagNameCheck instanceof RegExp&&ut(gr.tagNameCheck,Fe)||gr.tagNameCheck instanceof Function&&gr.tagNameCheck(Fe))?!1:(yr(Ft),!0)}return Ft instanceof Le&&!Ka(Ft)?(yr(Ft),!0):Fe!=="noscript"&&Fe!=="noembed"||!ut(/<\/no(script|embed)/i,Ft.innerHTML)?(Fr&&Ft.nodeType===3&&(je=Ft.textContent,je=it(je,qn," "),je=it(je,Yn," "),Ft.textContent!==je&&(q(ae.removed,{element:Ft.cloneNode()}),Ft.textContent=je)),pi("afterSanitizeElements",Ft,null),!1):(yr(Ft),!0)},ra=function(Ft,je,Fe){if(Fi&&(je==="id"||je==="name")&&(Fe in _e||Fe in vo))return!1;if(!(va&&!Rn[je]&&ut(Gn,je))){if(!(No&&ut(Zn,je))){if(!yn[je]||Rn[je]){if(!(Vi(Ft)&&(gr.tagNameCheck instanceof RegExp&&ut(gr.tagNameCheck,Ft)||gr.tagNameCheck instanceof Function&&gr.tagNameCheck(Ft))&&(gr.attributeNameCheck instanceof RegExp&&ut(gr.attributeNameCheck,je)||gr.attributeNameCheck instanceof Function&&gr.attributeNameCheck(je))||je==="is"&&gr.allowCustomizedBuiltInElements&&(gr.tagNameCheck instanceof RegExp&&ut(gr.tagNameCheck,Fe)||gr.tagNameCheck instanceof Function&&gr.tagNameCheck(Fe))))return!1}else if(!di[je]){if(!ut(Bn,it(Fe,On,""))){if((je!=="src"&&je!=="xlink:href"&&je!=="href"||Ft==="script"||tt(Fe,"data:")!==0||!ba[Ft])&&!(oi&&!ut(er,it(Fe,On,"")))){if(Fe)return!1}}}}}return!0},Vi=function(Ft){return Ft.indexOf("-")>0},Yi=function(Ft){var je=void 0,Fe=void 0,mr=void 0,br=void 0;pi("beforeSanitizeAttributes",Ft,null);var ki=Ft.attributes;if(ki){var ri={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:yn};for(br=ki.length;br--;){var wc=je=ki[br],Ti=wc.name,Ni=wc.namespaceURI;if(Fe=rt(je.value),mr=da(Ti),ri.attrName=mr,ri.attrValue=Fe,ri.keepAttr=!0,ri.forceKeepAttr=void 0,pi("uponSanitizeAttribute",Ft,ri),Fe=ri.attrValue,!ri.forceKeepAttr&&(Cr(Ti,Ft),ri.keepAttr))if(ut(/\/>/i,Fe))Cr(Ti,Ft);else{Fr&&(Fe=it(Fe,qn," "),Fe=it(Fe,Yn," "));var xc=da(Ft.nodeName);if(ra(xc,mr,Fe))try{Ni?Ft.setAttributeNS(Ni,Ti,Fe):Ft.setAttribute(Ti,Fe),H(ae.removed)}catch{}}}pi("afterSanitizeAttributes",Ft,null)}},_o=function Ft(je){var Fe=void 0,mr=ni(je);for(pi("beforeSanitizeShadowDOM",je,null);Fe=mr.nextNode();)pi("uponSanitizeShadowNode",Fe,null),Kr(Fe)||(Fe.content instanceof Ce&&Ft(Fe.content),Yi(Fe));pi("afterSanitizeShadowDOM",je,null)};return ae.sanitize=function(Ft,je){var Fe=void 0,mr=void 0,br=void 0,ki=void 0,ri=void 0;if((mt=!Ft)&&(Ft="<!-->"),typeof Ft!="string"&&!$r(Ft)){if(typeof Ft.toString!="function")throw Ct("toString is not a function");if(typeof(Ft=Ft.toString())!="string")throw Ct("dirty is not a string, aborting")}if(!ae.isSupported){if(ct(Ot.toStaticHTML)==="object"||typeof Ot.toStaticHTML=="function"){if(typeof Ft=="string")return Ot.toStaticHTML(Ft);if($r(Ft))return Ot.toStaticHTML(Ft.outerHTML)}return Ft}if(Zr||Lo(je),ae.removed=[],typeof Ft=="string"&&(nr=!1),!nr)if(Ft instanceof Ve)(mr=(Fe=xi("<!---->")).ownerDocument.importNode(Ft,!0)).nodeType===1&&mr.nodeName==="BODY"||mr.nodeName==="HTML"?Fe=mr:Fe.appendChild(mr);else{if(!Or&&!Fr&&!Ur&&Ft.indexOf("<")===-1)return tr&&Pr?tr.createHTML(Ft):Ft;if(!(Fe=xi(Ft)))return Or?null:cn}Fe&&Jr&&yr(Fe.firstChild);for(var wc=ni(nr?Ft:Fe);br=wc.nextNode();)br.nodeType===3&&br===ki||Kr(br)||(br.content instanceof Ce&&_o(br.content),Yi(br),ki=br);if(ki=null,nr)return Ft;if(Or){if(ti)for(ri=Tn.call(Fe.ownerDocument);Fe.firstChild;)ri.appendChild(Fe.firstChild);else ri=Fe;return yn.shadowroot&&(ri=$n.call(Qe,ri,!0)),ri}var Ti=Ur?Fe.outerHTML:Fe.innerHTML;return Fr&&(Ti=it(Ti,qn," "),Ti=it(Ti,Yn," ")),tr&&Pr?tr.createHTML(Ti):Ti},ae.setConfig=function(Ft){Lo(Ft),Zr=!0},ae.clearConfig=function(){Xa=null,Zr=!1},ae.isValidAttribute=function(Ft,je,Fe){Xa||Lo({});var mr=da(Ft),br=da(je);return ra(mr,br,Fe)},ae.addHook=function(Ft,je){typeof je=="function"&&(En[Ft]=En[Ft]||[],q(En[Ft],je))},ae.removeHook=function(Ft){En[Ft]&&H(En[Ft])},ae.removeHooks=function(Ft){En[Ft]&&(En[Ft]=[])},ae.removeAllHooks=function(){En={}},ae}()}()},8282:(r,s,o)=>{var h=o(2354);r.exports={Graph:h.Graph,json:o(8974),alg:o(2440),version:h.version}},2842:(r,s,o)=>{var h=o(9126);r.exports=function(c){var y,p={},b=[];function T(k){h.has(p,k)||(p[k]=!0,y.push(k),h.each(c.successors(k),T),h.each(c.predecessors(k),T))}return h.each(c.nodes(),function(k){y=[],T(k),y.length&&b.push(y)}),b}},3984:(r,s,o)=>{var h=o(9126);function c(y,p,b,T,k,D){h.has(T,p)||(T[p]=!0,b||D.push(p),h.each(k(p),function(O){c(y,O,b,T,k,D)}),b&&D.push(p))}r.exports=function(y,p,b){h.isArray(p)||(p=[p]);var T=(y.isDirected()?y.successors:y.neighbors).bind(y),k=[],D={};return h.each(p,function(O){if(!y.hasNode(O))throw new Error("Graph does not have node: "+O);c(y,O,b==="post",D,T,k)}),k}},4847:(r,s,o)=>{var h=o(3763),c=o(9126);r.exports=function(y,p,b){return c.transform(y.nodes(),function(T,k){T[k]=h(y,k,p,b)},{})}},3763:(r,s,o)=>{var h=o(9126),c=o(9675);r.exports=function(p,b,T,k){return function(D,O,I,z){var H,q,V={},X=new c,it=function(tt){var rt=tt.v!==H?tt.v:tt.w,ut=V[rt],Ct=I(tt),et=q.distance+Ct;if(Ct<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+tt+" Weight: "+Ct);et<ut.distance&&(ut.distance=et,ut.predecessor=H,X.decrease(rt,et))};for(D.nodes().forEach(function(tt){var rt=tt===O?0:Number.POSITIVE_INFINITY;V[tt]={distance:rt},X.add(tt,rt)});X.size()>0&&(H=X.removeMin(),(q=V[H]).distance!==Number.POSITIVE_INFINITY);)z(H).forEach(it);return V}(p,String(b),T||y,k||function(D){return p.outEdges(D)})};var y=h.constant(1)},9096:(r,s,o)=>{var h=o(9126),c=o(5023);r.exports=function(y){return h.filter(c(y),function(p){return p.length>1||p.length===1&&y.hasEdge(p[0],p[0])})}},8924:(r,s,o)=>{var h=o(9126);r.exports=function(y,p,b){return function(T,k,D){var O={},I=T.nodes();return I.forEach(function(z){O[z]={},O[z][z]={distance:0},I.forEach(function(H){z!==H&&(O[z][H]={distance:Number.POSITIVE_INFINITY})}),D(z).forEach(function(H){var q=H.v===z?H.w:H.v,V=k(H);O[z][q]={distance:V,predecessor:z}})}),I.forEach(function(z){var H=O[z];I.forEach(function(q){var V=O[q];I.forEach(function(X){var it=V[z],tt=H[X],rt=V[X],ut=it.distance+tt.distance;ut<rt.distance&&(rt.distance=ut,rt.predecessor=tt.predecessor)})})}),O}(y,p||c,b||function(T){return y.outEdges(T)})};var c=h.constant(1)},2440:(r,s,o)=>{r.exports={components:o(2842),dijkstra:o(3763),dijkstraAll:o(4847),findCycles:o(9096),floydWarshall:o(8924),isAcyclic:o(2707),postorder:o(8828),preorder:o(2648),prim:o(514),tarjan:o(5023),topsort:o(2166)}},2707:(r,s,o)=>{var h=o(2166);r.exports=function(c){try{h(c)}catch(y){if(y instanceof h.CycleException)return!1;throw y}return!0}},8828:(r,s,o)=>{var h=o(3984);r.exports=function(c,y){return h(c,y,"post")}},2648:(r,s,o)=>{var h=o(3984);r.exports=function(c,y){return h(c,y,"pre")}},514:(r,s,o)=>{var h=o(9126),c=o(771),y=o(9675);r.exports=function(p,b){var T,k=new c,D={},O=new y;function I(H){var q=H.v===T?H.w:H.v,V=O.priority(q);if(V!==void 0){var X=b(H);X<V&&(D[q]=T,O.decrease(q,X))}}if(p.nodeCount()===0)return k;h.each(p.nodes(),function(H){O.add(H,Number.POSITIVE_INFINITY),k.setNode(H)}),O.decrease(p.nodes()[0],0);for(var z=!1;O.size()>0;){if(T=O.removeMin(),h.has(D,T))k.setEdge(T,D[T]);else{if(z)throw new Error("Input graph is not connected: "+p);z=!0}p.nodeEdges(T).forEach(I)}return k}},5023:(r,s,o)=>{var h=o(9126);r.exports=function(c){var y=0,p=[],b={},T=[];function k(D){var O=b[D]={onStack:!0,lowlink:y,index:y++};if(p.push(D),c.successors(D).forEach(function(H){h.has(b,H)?b[H].onStack&&(O.lowlink=Math.min(O.lowlink,b[H].index)):(k(H),O.lowlink=Math.min(O.lowlink,b[H].lowlink))}),O.lowlink===O.index){var I,z=[];do I=p.pop(),b[I].onStack=!1,z.push(I);while(D!==I);T.push(z)}}return c.nodes().forEach(function(D){h.has(b,D)||k(D)}),T}},2166:(r,s,o)=>{var h=o(9126);function c(p){var b={},T={},k=[];if(h.each(p.sinks(),function D(O){if(h.has(T,O))throw new y;h.has(b,O)||(T[O]=!0,b[O]=!0,h.each(p.predecessors(O),D),delete T[O],k.push(O))}),h.size(b)!==p.nodeCount())throw new y;return k}function y(){}r.exports=c,c.CycleException=y,y.prototype=new Error},9675:(r,s,o)=>{var h=o(9126);function c(){this._arr=[],this._keyIndices={}}r.exports=c,c.prototype.size=function(){return this._arr.length},c.prototype.keys=function(){return this._arr.map(function(y){return y.key})},c.prototype.has=function(y){return h.has(this._keyIndices,y)},c.prototype.priority=function(y){var p=this._keyIndices[y];if(p!==void 0)return this._arr[p].priority},c.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},c.prototype.add=function(y,p){var b=this._keyIndices;if(y=String(y),!h.has(b,y)){var T=this._arr,k=T.length;return b[y]=k,T.push({key:y,priority:p}),this._decrease(k),!0}return!1},c.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var y=this._arr.pop();return delete this._keyIndices[y.key],this._heapify(0),y.key},c.prototype.decrease=function(y,p){var b=this._keyIndices[y];if(p>this._arr[b].priority)throw new Error("New priority is greater than current priority. Key: "+y+" Old: "+this._arr[b].priority+" New: "+p);this._arr[b].priority=p,this._decrease(b)},c.prototype._heapify=function(y){var p=this._arr,b=2*y,T=b+1,k=y;b<p.length&&(k=p[b].priority<p[k].priority?b:k,T<p.length&&(k=p[T].priority<p[k].priority?T:k),k!==y&&(this._swap(y,k),this._heapify(k)))},c.prototype._decrease=function(y){for(var p,b=this._arr,T=b[y].priority;y!==0&&!(b[p=y>>1].priority<T);)this._swap(y,p),y=p},c.prototype._swap=function(y,p){var b=this._arr,T=this._keyIndices,k=b[y],D=b[p];b[y]=D,b[p]=k,T[D.key]=y,T[k.key]=p}},771:(r,s,o)=>{var h=o(9126);r.exports=y;var c="\0";function y(O){this._isDirected=!h.has(O,"directed")||O.directed,this._isMultigraph=!!h.has(O,"multigraph")&&O.multigraph,this._isCompound=!!h.has(O,"compound")&&O.compound,this._label=void 0,this._defaultNodeLabelFn=h.constant(void 0),this._defaultEdgeLabelFn=h.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function p(O,I){O[I]?O[I]++:O[I]=1}function b(O,I){--O[I]||delete O[I]}function T(O,I,z,H){var q=""+I,V=""+z;if(!O&&q>V){var X=q;q=V,V=X}return q+""+V+""+(h.isUndefined(H)?"\0":H)}function k(O,I,z,H){var q=""+I,V=""+z;if(!O&&q>V){var X=q;q=V,V=X}var it={v:q,w:V};return H&&(it.name=H),it}function D(O,I){return T(O,I.v,I.w,I.name)}y.prototype._nodeCount=0,y.prototype._edgeCount=0,y.prototype.isDirected=function(){return this._isDirected},y.prototype.isMultigraph=function(){return this._isMultigraph},y.prototype.isCompound=function(){return this._isCompound},y.prototype.setGraph=function(O){return this._label=O,this},y.prototype.graph=function(){return this._label},y.prototype.setDefaultNodeLabel=function(O){return h.isFunction(O)||(O=h.constant(O)),this._defaultNodeLabelFn=O,this},y.prototype.nodeCount=function(){return this._nodeCount},y.prototype.nodes=function(){return h.keys(this._nodes)},y.prototype.sources=function(){var O=this;return h.filter(this.nodes(),function(I){return h.isEmpty(O._in[I])})},y.prototype.sinks=function(){var O=this;return h.filter(this.nodes(),function(I){return h.isEmpty(O._out[I])})},y.prototype.setNodes=function(O,I){var z=arguments,H=this;return h.each(O,function(q){z.length>1?H.setNode(q,I):H.setNode(q)}),this},y.prototype.setNode=function(O,I){return h.has(this._nodes,O)?(arguments.length>1&&(this._nodes[O]=I),this):(this._nodes[O]=arguments.length>1?I:this._defaultNodeLabelFn(O),this._isCompound&&(this._parent[O]=c,this._children[O]={},this._children["\0"][O]=!0),this._in[O]={},this._preds[O]={},this._out[O]={},this._sucs[O]={},++this._nodeCount,this)},y.prototype.node=function(O){return this._nodes[O]},y.prototype.hasNode=function(O){return h.has(this._nodes,O)},y.prototype.removeNode=function(O){var I=this;if(h.has(this._nodes,O)){var z=function(H){I.removeEdge(I._edgeObjs[H])};delete this._nodes[O],this._isCompound&&(this._removeFromParentsChildList(O),delete this._parent[O],h.each(this.children(O),function(H){I.setParent(H)}),delete this._children[O]),h.each(h.keys(this._in[O]),z),delete this._in[O],delete this._preds[O],h.each(h.keys(this._out[O]),z),delete this._out[O],delete this._sucs[O],--this._nodeCount}return this},y.prototype.setParent=function(O,I){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(h.isUndefined(I))I=c;else{for(var z=I+="";!h.isUndefined(z);z=this.parent(z))if(z===O)throw new Error("Setting "+I+" as parent of "+O+" would create a cycle");this.setNode(I)}return this.setNode(O),this._removeFromParentsChildList(O),this._parent[O]=I,this._children[I][O]=!0,this},y.prototype._removeFromParentsChildList=function(O){delete this._children[this._parent[O]][O]},y.prototype.parent=function(O){if(this._isCompound){var I=this._parent[O];if(I!==c)return I}},y.prototype.children=function(O){if(h.isUndefined(O)&&(O=c),this._isCompound){var I=this._children[O];if(I)return h.keys(I)}else{if(O===c)return this.nodes();if(this.hasNode(O))return[]}},y.prototype.predecessors=function(O){var I=this._preds[O];if(I)return h.keys(I)},y.prototype.successors=function(O){var I=this._sucs[O];if(I)return h.keys(I)},y.prototype.neighbors=function(O){var I=this.predecessors(O);if(I)return h.union(I,this.successors(O))},y.prototype.isLeaf=function(O){return(this.isDirected()?this.successors(O):this.neighbors(O)).length===0},y.prototype.filterNodes=function(O){var I=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});I.setGraph(this.graph());var z=this;h.each(this._nodes,function(V,X){O(X)&&I.setNode(X,V)}),h.each(this._edgeObjs,function(V){I.hasNode(V.v)&&I.hasNode(V.w)&&I.setEdge(V,z.edge(V))});var H={};function q(V){var X=z.parent(V);return X===void 0||I.hasNode(X)?(H[V]=X,X):X in H?H[X]:q(X)}return this._isCompound&&h.each(I.nodes(),function(V){I.setParent(V,q(V))}),I},y.prototype.setDefaultEdgeLabel=function(O){return h.isFunction(O)||(O=h.constant(O)),this._defaultEdgeLabelFn=O,this},y.prototype.edgeCount=function(){return this._edgeCount},y.prototype.edges=function(){return h.values(this._edgeObjs)},y.prototype.setPath=function(O,I){var z=this,H=arguments;return h.reduce(O,function(q,V){return H.length>1?z.setEdge(q,V,I):z.setEdge(q,V),V}),this},y.prototype.setEdge=function(){var O,I,z,H,q=!1,V=arguments[0];typeof V=="object"&&V!==null&&"v"in V?(O=V.v,I=V.w,z=V.name,arguments.length===2&&(H=arguments[1],q=!0)):(O=V,I=arguments[1],z=arguments[3],arguments.length>2&&(H=arguments[2],q=!0)),O=""+O,I=""+I,h.isUndefined(z)||(z=""+z);var X=T(this._isDirected,O,I,z);if(h.has(this._edgeLabels,X))return q&&(this._edgeLabels[X]=H),this;if(!h.isUndefined(z)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(O),this.setNode(I),this._edgeLabels[X]=q?H:this._defaultEdgeLabelFn(O,I,z);var it=k(this._isDirected,O,I,z);return O=it.v,I=it.w,Object.freeze(it),this._edgeObjs[X]=it,p(this._preds[I],O),p(this._sucs[O],I),this._in[I][X]=it,this._out[O][X]=it,this._edgeCount++,this},y.prototype.edge=function(O,I,z){var H=arguments.length===1?D(this._isDirected,arguments[0]):T(this._isDirected,O,I,z);return this._edgeLabels[H]},y.prototype.hasEdge=function(O,I,z){var H=arguments.length===1?D(this._isDirected,arguments[0]):T(this._isDirected,O,I,z);return h.has(this._edgeLabels,H)},y.prototype.removeEdge=function(O,I,z){var H=arguments.length===1?D(this._isDirected,arguments[0]):T(this._isDirected,O,I,z),q=this._edgeObjs[H];return q&&(O=q.v,I=q.w,delete this._edgeLabels[H],delete this._edgeObjs[H],b(this._preds[I],O),b(this._sucs[O],I),delete this._in[I][H],delete this._out[O][H],this._edgeCount--),this},y.prototype.inEdges=function(O,I){var z=this._in[O];if(z){var H=h.values(z);return I?h.filter(H,function(q){return q.v===I}):H}},y.prototype.outEdges=function(O,I){var z=this._out[O];if(z){var H=h.values(z);return I?h.filter(H,function(q){return q.w===I}):H}},y.prototype.nodeEdges=function(O,I){var z=this.inEdges(O,I);if(z)return z.concat(this.outEdges(O,I))}},2354:(r,s,o)=>{r.exports={Graph:o(771),version:o(9631)}},8974:(r,s,o)=>{var h=o(9126),c=o(771);function y(b){return h.map(b.nodes(),function(T){var k=b.node(T),D=b.parent(T),O={v:T};return h.isUndefined(k)||(O.value=k),h.isUndefined(D)||(O.parent=D),O})}function p(b){return h.map(b.edges(),function(T){var k=b.edge(T),D={v:T.v,w:T.w};return h.isUndefined(T.name)||(D.name=T.name),h.isUndefined(k)||(D.value=k),D})}r.exports={write:function(b){var T={options:{directed:b.isDirected(),multigraph:b.isMultigraph(),compound:b.isCompound()},nodes:y(b),edges:p(b)};return h.isUndefined(b.graph())||(T.value=h.clone(b.graph())),T},read:function(b){var T=new c(b.options).setGraph(b.value);return h.each(b.nodes,function(k){T.setNode(k.v,k.value),k.parent&&T.setParent(k.v,k.parent)}),h.each(b.edges,function(k){T.setEdge({v:k.v,w:k.w,name:k.name},k.value)}),T}}},9126:(r,s,o)=>{var h;try{h={clone:o(6678),constant:o(5703),each:o(6073),filter:o(3105),has:o(8721),isArray:o(1469),isEmpty:o(1609),isFunction:o(3560),isUndefined:o(2353),keys:o(3674),map:o(5161),reduce:o(4061),size:o(4238),transform:o(8718),union:o(3386),values:o(2628)}}catch{}h||(h=window._),r.exports=h},9631:r=>{r.exports="2.1.8"},1773:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1083),c=o(7628),y=function(){function p(b,T){this.color=T,this.changed=!1,this.data=b,this.type=new c.default}return p.prototype.set=function(b,T){return this.color=T,this.changed=!1,this.data=b,this.type.type=0,this},p.prototype._ensureHSL=function(){var b=this.data,T=b.h,k=b.s,D=b.l;T===void 0&&(b.h=h.default.channel.rgb2hsl(b,"h")),k===void 0&&(b.s=h.default.channel.rgb2hsl(b,"s")),D===void 0&&(b.l=h.default.channel.rgb2hsl(b,"l"))},p.prototype._ensureRGB=function(){var b=this.data,T=b.r,k=b.g,D=b.b;T===void 0&&(b.r=h.default.channel.hsl2rgb(b,"r")),k===void 0&&(b.g=h.default.channel.hsl2rgb(b,"g")),D===void 0&&(b.b=h.default.channel.hsl2rgb(b,"b"))},Object.defineProperty(p.prototype,"r",{get:function(){var b=this.data,T=b.r;return this.type.is(2)||T===void 0?(this._ensureHSL(),h.default.channel.hsl2rgb(b,"r")):T},set:function(b){this.type.set(1),this.changed=!0,this.data.r=b},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"g",{get:function(){var b=this.data,T=b.g;return this.type.is(2)||T===void 0?(this._ensureHSL(),h.default.channel.hsl2rgb(b,"g")):T},set:function(b){this.type.set(1),this.changed=!0,this.data.g=b},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"b",{get:function(){var b=this.data,T=b.b;return this.type.is(2)||T===void 0?(this._ensureHSL(),h.default.channel.hsl2rgb(b,"b")):T},set:function(b){this.type.set(1),this.changed=!0,this.data.b=b},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"h",{get:function(){var b=this.data,T=b.h;return this.type.is(1)||T===void 0?(this._ensureRGB(),h.default.channel.rgb2hsl(b,"h")):T},set:function(b){this.type.set(2),this.changed=!0,this.data.h=b},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"s",{get:function(){var b=this.data,T=b.s;return this.type.is(1)||T===void 0?(this._ensureRGB(),h.default.channel.rgb2hsl(b,"s")):T},set:function(b){this.type.set(2),this.changed=!0,this.data.s=b},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"l",{get:function(){var b=this.data,T=b.l;return this.type.is(1)||T===void 0?(this._ensureRGB(),h.default.channel.rgb2hsl(b,"l")):T},set:function(b){this.type.set(2),this.changed=!0,this.data.l=b},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"a",{get:function(){return this.data.a},set:function(b){this.changed=!0,this.data.a=b},enumerable:!0,configurable:!0}),p}();s.default=y},8167:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=new(o(1773)).default({r:0,g:0,b:0,a:0},"transparent");s.default=h},7628:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0});var o=function(){function h(){this.type=0}return h.prototype.get=function(){return this.type},h.prototype.set=function(c){if(this.type&&this.type!==c)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=c},h.prototype.reset=function(){this.type=0},h.prototype.is=function(c){return this.type===c},h}();s.default=o},1655:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(8167),c=o(6061),y={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:function(p){if(p.charCodeAt(0)===35){var b=p.match(y.re);if(b){var T=b[1],k=parseInt(T,16),D=T.length,O=D%4==0,I=D>4,z=I?1:17,H=I?8:4,q=O?0:-1,V=I?255:15;return h.default.set({r:(k>>H*(q+3)&V)*z,g:(k>>H*(q+2)&V)*z,b:(k>>H*(q+1)&V)*z,a:O?(k&V)*z/255:1},p)}}},stringify:function(p){var b=p.r,T=p.g,k=p.b,D=p.a;return D<1?"#"+c.DEC2HEX[Math.round(b)]+c.DEC2HEX[Math.round(T)]+c.DEC2HEX[Math.round(k)]+c.DEC2HEX[Math.round(255*D)]:"#"+c.DEC2HEX[Math.round(b)]+c.DEC2HEX[Math.round(T)]+c.DEC2HEX[Math.round(k)]}};s.default=y},8589:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1083),c=o(8167),y={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:function(p){var b=p.match(y.hueRe);if(b){var T=b[1];switch(b[2]){case"grad":return h.default.channel.clamp.h(.9*parseFloat(T));case"rad":return h.default.channel.clamp.h(180*parseFloat(T)/Math.PI);case"turn":return h.default.channel.clamp.h(360*parseFloat(T))}}return h.default.channel.clamp.h(parseFloat(p))},parse:function(p){var b=p.charCodeAt(0);if(b===104||b===72){var T=p.match(y.re);if(T){var k=T[1],D=T[2],O=T[3],I=T[4],z=T[5];return c.default.set({h:y._hue2deg(k),s:h.default.channel.clamp.s(parseFloat(D)),l:h.default.channel.clamp.l(parseFloat(O)),a:I?h.default.channel.clamp.a(z?parseFloat(I)/100:parseFloat(I)):1},p)}}},stringify:function(p){var b=p.h,T=p.s,k=p.l,D=p.a;return D<1?"hsla("+h.default.lang.round(b)+", "+h.default.lang.round(T)+"%, "+h.default.lang.round(k)+"%, "+D+")":"hsl("+h.default.lang.round(b)+", "+h.default.lang.round(T)+"%, "+h.default.lang.round(k)+"%)"}};s.default=y},2191:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1655),c=o(7538),y=o(6762),p=o(8589),b={format:{keyword:c.default,hex:h.default,rgb:y.default,rgba:y.default,hsl:p.default,hsla:p.default},parse:function(T){if(typeof T!="string")return T;var k=h.default.parse(T)||y.default.parse(T)||p.default.parse(T)||c.default.parse(T);if(k)return k;throw new Error('Unsupported color format: "'+T+'"')},stringify:function(T){return!T.changed&&T.color?T.color:T.type.is(2)||T.data.r===void 0?p.default.stringify(T):T.a<1||!Number.isInteger(T.r)||!Number.isInteger(T.g)||!Number.isInteger(T.b)?y.default.stringify(T):h.default.stringify(T)}};s.default=b},7538:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1655),c={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:function(y){y=y.toLowerCase();var p=c.colors[y];if(p)return h.default.parse(p)},stringify:function(y){var p=h.default.stringify(y);for(var b in c.colors)if(c.colors[b]===p)return b}};s.default=c},6762:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1083),c=o(8167),y={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:function(p){var b=p.charCodeAt(0);if(b===114||b===82){var T=p.match(y.re);if(T){var k=T[1],D=T[2],O=T[3],I=T[4],z=T[5],H=T[6],q=T[7],V=T[8];return c.default.set({r:h.default.channel.clamp.r(D?2.55*parseFloat(k):parseFloat(k)),g:h.default.channel.clamp.g(I?2.55*parseFloat(O):parseFloat(O)),b:h.default.channel.clamp.b(H?2.55*parseFloat(z):parseFloat(z)),a:q?h.default.channel.clamp.a(V?parseFloat(q)/100:parseFloat(q)):1},p)}}},stringify:function(p){var b=p.r,T=p.g,k=p.b,D=p.a;return D<1?"rgba("+h.default.lang.round(b)+", "+h.default.lang.round(T)+", "+h.default.lang.round(k)+", "+h.default.lang.round(D)+")":"rgb("+h.default.lang.round(b)+", "+h.default.lang.round(T)+", "+h.default.lang.round(k)+")"}};s.default=y},6061:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1083),c={};s.DEC2HEX=c;for(var y=0;y<=255;y++)c[y]=h.default.unit.dec2hex(y)},8613:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),function(h){for(var c in h)s.hasOwnProperty(c)||(s[c]=h[c])}(o(1203))},5371:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(2191),c=o(418);s.default=function(y,p){var b=h.default.parse(y),T={};for(var k in p)p[k]&&(T[k]=b[k]+p[k]);return c.default(y,T)}},1416:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1083),c=o(2191);s.default=function(y,p,b){var T=c.default.parse(y),k=T[p],D=h.default.channel.clamp[p](k+b);return k!==D&&(T[p]=D),c.default.stringify(T)}},9353:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(6197);s.default=function(c){return h.default(c,"a")}},3394:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(6197);s.default=function(c){return h.default(c,"b")}},418:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1083),c=o(2191);s.default=function(y,p){var b=c.default.parse(y);for(var T in p)b[T]=h.default.channel.clamp[T](p[T]);return c.default.stringify(b)}},6197:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1083),c=o(2191);s.default=function(y,p){return h.default.lang.round(c.default.parse(y)[p])}},7361:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1416);s.default=function(c){return h.default(c,"h",180)}},3042:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1083),c=o(8346);s.default=function(y,p){var b=c.default(y),T=c.default(p),k=Math.max(b,T),D=Math.min(b,T),O=(k+Number.EPSILON)/(D+Number.EPSILON);return h.default.lang.round(h.default.lang.clamp(O,1,10))}},1364:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1416);s.default=function(c,y){return h.default(c,"l",-y)}},9610:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1416);s.default=function(c,y){return h.default(c,"s",-y)}},572:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(418);s.default=function(c){return h.default(c,{s:0})}},2299:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(6197);s.default=function(c){return h.default(c,"g")}},3116:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1083),c=o(8167),y=o(2191);s.default=function(p,b,T,k){k===void 0&&(k=1);var D=c.default.set({h:h.default.channel.clamp.h(p),s:h.default.channel.clamp.s(b),l:h.default.channel.clamp.l(T),a:h.default.channel.clamp.a(k)});return y.default.stringify(D)}},3008:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(6197);s.default=function(c){return h.default(c,"h")}},1203:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(6538);s.hex=h.default;var c=o(6538);s.rgb=c.default;var y=o(6538);s.rgba=y.default;var p=o(3116);s.hsl=p.default;var b=o(3116);s.hsla=b.default;var T=o(2619);s.toKeyword=T.default;var k=o(4307);s.toHex=k.default;var D=o(4125);s.toRgba=D.default;var O=o(7329);s.toHsla=O.default;var I=o(6197);s.channel=I.default;var z=o(9640);s.red=z.default;var H=o(2299);s.green=H.default;var q=o(3394);s.blue=q.default;var V=o(3008);s.hue=V.default;var X=o(6451);s.saturation=X.default;var it=o(9235);s.lightness=it.default;var tt=o(9353);s.alpha=tt.default;var rt=o(9353);s.opacity=rt.default;var ut=o(3042);s.contrast=ut.default;var Ct=o(8346);s.luminance=Ct.default;var et=o(4117);s.isDark=et.default;var K=o(2224);s.isLight=K.default;var ht=o(585);s.isValid=ht.default;var xt=o(1080);s.saturate=xt.default;var St=o(9610);s.desaturate=St.default;var pt=o(3235);s.lighten=pt.default;var wt=o(1364);s.darken=wt.default;var Ht=o(7189);s.opacify=Ht.default;var Pt=o(7189);s.fadeIn=Pt.default;var ge=o(4989);s.transparentize=ge.default;var pe=o(4989);s.fadeOut=pe.default;var de=o(7361);s.complement=de.default;var Rt=o(572);s.grayscale=Rt.default;var Gt=o(5371);s.adjust=Gt.default;var oe=o(418);s.change=oe.default;var le=o(566);s.invert=le.default;var ye=o(1861);s.mix=ye.default;var It=o(7081);s.scale=It.default},566:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(2191),c=o(1861);s.default=function(y,p){p===void 0&&(p=100);var b=h.default.parse(y);return b.r=255-b.r,b.g=255-b.g,b.b=255-b.b,c.default(b,y,p)}},4117:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(2224);s.default=function(c){return!h.default(c)}},2224:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(8346);s.default=function(c){return h.default(c)>=.5}},585:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(2191);s.default=function(c){try{return h.default.parse(c),!0}catch{return!1}}},3235:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1416);s.default=function(c,y){return h.default(c,"l",y)}},9235:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(6197);s.default=function(c){return h.default(c,"l")}},8346:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1083),c=o(2191);s.default=function(y){var p=c.default.parse(y),b=p.r,T=p.g,k=p.b,D=.2126*h.default.channel.toLinear(b)+.7152*h.default.channel.toLinear(T)+.0722*h.default.channel.toLinear(k);return h.default.lang.round(D)}},1861:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(2191),c=o(6538);s.default=function(y,p,b){b===void 0&&(b=50);var T=h.default.parse(y),k=T.r,D=T.g,O=T.b,I=T.a,z=h.default.parse(p),H=z.r,q=z.g,V=z.b,X=z.a,it=b/100,tt=2*it-1,rt=I-X,ut=((tt*rt==-1?tt:(tt+rt)/(1+tt*rt))+1)/2,Ct=1-ut,et=k*ut+H*Ct,K=D*ut+q*Ct,ht=O*ut+V*Ct,xt=I*it+X*(1-it);return c.default(et,K,ht,xt)}},7189:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1416);s.default=function(c,y){return h.default(c,"a",y)}},9640:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(6197);s.default=function(c){return h.default(c,"r")}},6538:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1083),c=o(8167),y=o(2191),p=o(418);s.default=function(b,T,k,D){if(k===void 0&&(k=0),D===void 0&&(D=1),typeof b!="number")return p.default(b,{a:T});var O=c.default.set({r:h.default.channel.clamp.r(b),g:h.default.channel.clamp.g(T),b:h.default.channel.clamp.b(k),a:h.default.channel.clamp.a(D)});return y.default.stringify(O)}},1080:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1416);s.default=function(c,y){return h.default(c,"s",y)}},6451:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(6197);s.default=function(c){return h.default(c,"s")}},7081:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1083),c=o(2191),y=o(5371);s.default=function(p,b){var T,k,D,O=c.default.parse(p),I={};for(var z in b)I[z]=(T=O[z],k=b[z],D=h.default.channel.max[z],k>0?(D-T)*k/100:T*k/100);return y.default(p,I)}},4307:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(2191);s.default=function(c){return h.default.format.hex.stringify(h.default.parse(c))}},7329:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(2191);s.default=function(c){return h.default.format.hsla.stringify(h.default.parse(c))}},2619:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(2191);s.default=function(c){return h.default.format.keyword.stringify(h.default.parse(c))}},4125:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(2191);s.default=function(c){return h.default.format.rgba.stringify(h.default.parse(c))}},4989:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(1416);s.default=function(c,y){return h.default(c,"a",-y)}},7994:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0});var o={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:function(h){return h>=255?255:h<0?0:h},g:function(h){return h>=255?255:h<0?0:h},b:function(h){return h>=255?255:h<0?0:h},h:function(h){return h%360},s:function(h){return h>=100?100:h<0?0:h},l:function(h){return h>=100?100:h<0?0:h},a:function(h){return h>=1?1:h<0?0:h}},toLinear:function(h){var c=h/255;return h>.03928?Math.pow((c+.055)/1.055,2.4):c/12.92},hue2rgb:function(h,c,y){return y<0&&(y+=1),y>1&&(y-=1),y<1/6?h+6*(c-h)*y:y<.5?c:y<2/3?h+(c-h)*(2/3-y)*6:h},hsl2rgb:function(h,c){var y=h.h,p=h.s,b=h.l;if(!p)return 2.55*b;y/=360,p/=100;var T=(b/=100)<.5?b*(1+p):b+p-b*p,k=2*b-T;switch(c){case"r":return 255*o.hue2rgb(k,T,y+1/3);case"g":return 255*o.hue2rgb(k,T,y);case"b":return 255*o.hue2rgb(k,T,y-1/3)}},rgb2hsl:function(h,c){var y=h.r,p=h.g,b=h.b;y/=255,p/=255,b/=255;var T=Math.max(y,p,b),k=Math.min(y,p,b),D=(T+k)/2;if(c==="l")return 100*D;if(T===k)return 0;var O=T-k;if(c==="s")return 100*(D>.5?O/(2-T-k):O/(T+k));switch(T){case y:return 60*((p-b)/O+(p<b?6:0));case p:return 60*((b-y)/O+2);case b:return 60*((y-p)/O+4);default:return-1}}};s.default=o},1083:(r,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0});var h=o(7994),c=o(4027),y=o(318),p={channel:h.default,lang:c.default,unit:y.default};s.default=p},4027:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0});var o={clamp:function(h,c,y){return c>y?Math.min(c,Math.max(y,h)):Math.min(y,Math.max(c,h))},round:function(h){return Math.round(1e10*h)/1e10}};s.default=o},318:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0});var o={dec2hex:function(h){var c=Math.round(h).toString(16);return c.length>1?c:"0"+c}};s.default=o},8552:(r,s,o)=>{var h=o(852)(o(5639),"DataView");r.exports=h},1989:(r,s,o)=>{var h=o(1789),c=o(401),y=o(7667),p=o(1327),b=o(1866);function T(k){var D=-1,O=k==null?0:k.length;for(this.clear();++D<O;){var I=k[D];this.set(I[0],I[1])}}T.prototype.clear=h,T.prototype.delete=c,T.prototype.get=y,T.prototype.has=p,T.prototype.set=b,r.exports=T},8407:(r,s,o)=>{var h=o(7040),c=o(2188),y=o(2117),p=o(7518),b=o(4705);function T(k){var D=-1,O=k==null?0:k.length;for(this.clear();++D<O;){var I=k[D];this.set(I[0],I[1])}}T.prototype.clear=h,T.prototype.delete=c,T.prototype.get=y,T.prototype.has=p,T.prototype.set=b,r.exports=T},7071:(r,s,o)=>{var h=o(852)(o(5639),"Map");r.exports=h},3369:(r,s,o)=>{var h=o(4785),c=o(1285),y=o(6e3),p=o(9916),b=o(5265);function T(k){var D=-1,O=k==null?0:k.length;for(this.clear();++D<O;){var I=k[D];this.set(I[0],I[1])}}T.prototype.clear=h,T.prototype.delete=c,T.prototype.get=y,T.prototype.has=p,T.prototype.set=b,r.exports=T},3818:(r,s,o)=>{var h=o(852)(o(5639),"Promise");r.exports=h},8525:(r,s,o)=>{var h=o(852)(o(5639),"Set");r.exports=h},8668:(r,s,o)=>{var h=o(3369),c=o(619),y=o(2385);function p(b){var T=-1,k=b==null?0:b.length;for(this.__data__=new h;++T<k;)this.add(b[T])}p.prototype.add=p.prototype.push=c,p.prototype.has=y,r.exports=p},6384:(r,s,o)=>{var h=o(8407),c=o(7465),y=o(3779),p=o(7599),b=o(4758),T=o(4309);function k(D){var O=this.__data__=new h(D);this.size=O.size}k.prototype.clear=c,k.prototype.delete=y,k.prototype.get=p,k.prototype.has=b,k.prototype.set=T,r.exports=k},2705:(r,s,o)=>{var h=o(5639).Symbol;r.exports=h},1149:(r,s,o)=>{var h=o(5639).Uint8Array;r.exports=h},577:(r,s,o)=>{var h=o(852)(o(5639),"WeakMap");r.exports=h},6874:r=>{r.exports=function(s,o,h){switch(h.length){case 0:return s.call(o);case 1:return s.call(o,h[0]);case 2:return s.call(o,h[0],h[1]);case 3:return s.call(o,h[0],h[1],h[2])}return s.apply(o,h)}},7412:r=>{r.exports=function(s,o){for(var h=-1,c=s==null?0:s.length;++h<c&&o(s[h],h,s)!==!1;);return s}},4963:r=>{r.exports=function(s,o){for(var h=-1,c=s==null?0:s.length,y=0,p=[];++h<c;){var b=s[h];o(b,h,s)&&(p[y++]=b)}return p}},7443:(r,s,o)=>{var h=o(2118);r.exports=function(c,y){return!(c==null||!c.length)&&h(c,y,0)>-1}},1196:r=>{r.exports=function(s,o,h){for(var c=-1,y=s==null?0:s.length;++c<y;)if(h(o,s[c]))return!0;return!1}},4636:(r,s,o)=>{var h=o(2545),c=o(5694),y=o(1469),p=o(4144),b=o(5776),T=o(6719),k=Object.prototype.hasOwnProperty;r.exports=function(D,O){var I=y(D),z=!I&&c(D),H=!I&&!z&&p(D),q=!I&&!z&&!H&&T(D),V=I||z||H||q,X=V?h(D.length,String):[],it=X.length;for(var tt in D)!O&&!k.call(D,tt)||V&&(tt=="length"||H&&(tt=="offset"||tt=="parent")||q&&(tt=="buffer"||tt=="byteLength"||tt=="byteOffset")||b(tt,it))||X.push(tt);return X}},9932:r=>{r.exports=function(s,o){for(var h=-1,c=s==null?0:s.length,y=Array(c);++h<c;)y[h]=o(s[h],h,s);return y}},2488:r=>{r.exports=function(s,o){for(var h=-1,c=o.length,y=s.length;++h<c;)s[y+h]=o[h];return s}},2663:r=>{r.exports=function(s,o,h,c){var y=-1,p=s==null?0:s.length;for(c&&p&&(h=s[++y]);++y<p;)h=o(h,s[y],y,s);return h}},2908:r=>{r.exports=function(s,o){for(var h=-1,c=s==null?0:s.length;++h<c;)if(o(s[h],h,s))return!0;return!1}},8983:(r,s,o)=>{var h=o(371)("length");r.exports=h},6556:(r,s,o)=>{var h=o(9465),c=o(7813);r.exports=function(y,p,b){(b!==void 0&&!c(y[p],b)||b===void 0&&!(p in y))&&h(y,p,b)}},4865:(r,s,o)=>{var h=o(9465),c=o(7813),y=Object.prototype.hasOwnProperty;r.exports=function(p,b,T){var k=p[b];y.call(p,b)&&c(k,T)&&(T!==void 0||b in p)||h(p,b,T)}},8470:(r,s,o)=>{var h=o(7813);r.exports=function(c,y){for(var p=c.length;p--;)if(h(c[p][0],y))return p;return-1}},4037:(r,s,o)=>{var h=o(8363),c=o(3674);r.exports=function(y,p){return y&&h(p,c(p),y)}},3886:(r,s,o)=>{var h=o(8363),c=o(1704);r.exports=function(y,p){return y&&h(p,c(p),y)}},9465:(r,s,o)=>{var h=o(8777);r.exports=function(c,y,p){y=="__proto__"&&h?h(c,y,{configurable:!0,enumerable:!0,value:p,writable:!0}):c[y]=p}},5990:(r,s,o)=>{var h=o(6384),c=o(7412),y=o(4865),p=o(4037),b=o(3886),T=o(4626),k=o(278),D=o(8805),O=o(1911),I=o(8234),z=o(6904),H=o(4160),q=o(3824),V=o(9148),X=o(8517),it=o(1469),tt=o(4144),rt=o(6688),ut=o(3218),Ct=o(2928),et=o(3674),K=o(1704),ht="[object Arguments]",xt="[object Function]",St="[object Object]",pt={};pt[ht]=pt["[object Array]"]=pt["[object ArrayBuffer]"]=pt["[object DataView]"]=pt["[object Boolean]"]=pt["[object Date]"]=pt["[object Float32Array]"]=pt["[object Float64Array]"]=pt["[object Int8Array]"]=pt["[object Int16Array]"]=pt["[object Int32Array]"]=pt["[object Map]"]=pt["[object Number]"]=pt[St]=pt["[object RegExp]"]=pt["[object Set]"]=pt["[object String]"]=pt["[object Symbol]"]=pt["[object Uint8Array]"]=pt["[object Uint8ClampedArray]"]=pt["[object Uint16Array]"]=pt["[object Uint32Array]"]=!0,pt["[object Error]"]=pt[xt]=pt["[object WeakMap]"]=!1,r.exports=function wt(Ht,Pt,ge,pe,de,Rt){var Gt,oe=1&Pt,le=2&Pt,ye=4&Pt;if(ge&&(Gt=de?ge(Ht,pe,de,Rt):ge(Ht)),Gt!==void 0)return Gt;if(!ut(Ht))return Ht;var It=it(Ht);if(It){if(Gt=q(Ht),!oe)return k(Ht,Gt)}else{var $e=H(Ht),he=$e==xt||$e=="[object GeneratorFunction]";if(tt(Ht))return T(Ht,oe);if($e==St||$e==ht||he&&!de){if(Gt=le||he?{}:X(Ht),!oe)return le?O(Ht,b(Gt,Ht)):D(Ht,p(Gt,Ht))}else{if(!pt[$e])return de?Ht:{};Gt=V(Ht,$e,oe)}}Rt||(Rt=new h);var Yt=Rt.get(Ht);if(Yt)return Yt;Rt.set(Ht,Gt),Ct(Ht)?Ht.forEach(function(ct){Gt.add(wt(ct,Pt,ge,ct,Ht,Rt))}):rt(Ht)&&Ht.forEach(function(ct,ee){Gt.set(ee,wt(ct,Pt,ge,ee,Ht,Rt))});var Kt=It?void 0:(ye?le?z:I:le?K:et)(Ht);return c(Kt||Ht,function(ct,ee){Kt&&(ct=Ht[ee=ct]),y(Gt,ee,wt(ct,Pt,ge,ee,Ht,Rt))}),Gt}},3118:(r,s,o)=>{var h=o(3218),c=Object.create,y=function(){function p(){}return function(b){if(!h(b))return{};if(c)return c(b);p.prototype=b;var T=new p;return p.prototype=void 0,T}}();r.exports=y},9881:(r,s,o)=>{var h=o(7816),c=o(9291)(h);r.exports=c},6029:(r,s,o)=>{var h=o(3448);r.exports=function(c,y,p){for(var b=-1,T=c.length;++b<T;){var k=c[b],D=y(k);if(D!=null&&(O===void 0?D==D&&!h(D):p(D,O)))var O=D,I=k}return I}},760:(r,s,o)=>{var h=o(9881);r.exports=function(c,y){var p=[];return h(c,function(b,T,k){y(b,T,k)&&p.push(b)}),p}},1848:r=>{r.exports=function(s,o,h,c){for(var y=s.length,p=h+(c?1:-1);c?p--:++p<y;)if(o(s[p],p,s))return p;return-1}},1078:(r,s,o)=>{var h=o(2488),c=o(7285);r.exports=function y(p,b,T,k,D){var O=-1,I=p.length;for(T||(T=c),D||(D=[]);++O<I;){var z=p[O];b>0&&T(z)?b>1?y(z,b-1,T,k,D):h(D,z):k||(D[D.length]=z)}return D}},8483:(r,s,o)=>{var h=o(5063)();r.exports=h},7816:(r,s,o)=>{var h=o(8483),c=o(3674);r.exports=function(y,p){return y&&h(y,p,c)}},7786:(r,s,o)=>{var h=o(1811),c=o(327);r.exports=function(y,p){for(var b=0,T=(p=h(p,y)).length;y!=null&&b<T;)y=y[c(p[b++])];return b&&b==T?y:void 0}},8866:(r,s,o)=>{var h=o(2488),c=o(1469);r.exports=function(y,p,b){var T=p(y);return c(y)?T:h(T,b(y))}},4239:(r,s,o)=>{var h=o(2705),c=o(9607),y=o(2333),p=h?h.toStringTag:void 0;r.exports=function(b){return b==null?b===void 0?"[object Undefined]":"[object Null]":p&&p in Object(b)?c(b):y(b)}},3325:r=>{r.exports=function(s,o){return s>o}},8565:r=>{var s=Object.prototype.hasOwnProperty;r.exports=function(o,h){return o!=null&&s.call(o,h)}},13:r=>{r.exports=function(s,o){return s!=null&&o in Object(s)}},2118:(r,s,o)=>{var h=o(1848),c=o(2722),y=o(2351);r.exports=function(p,b,T){return b==b?y(p,b,T):h(p,c,T)}},9454:(r,s,o)=>{var h=o(4239),c=o(7005);r.exports=function(y){return c(y)&&h(y)=="[object Arguments]"}},939:(r,s,o)=>{var h=o(2492),c=o(7005);r.exports=function y(p,b,T,k,D){return p===b||(p==null||b==null||!c(p)&&!c(b)?p!=p&&b!=b:h(p,b,T,k,y,D))}},2492:(r,s,o)=>{var h=o(6384),c=o(7114),y=o(8351),p=o(6096),b=o(4160),T=o(1469),k=o(4144),D=o(6719),O="[object Arguments]",I="[object Array]",z="[object Object]",H=Object.prototype.hasOwnProperty;r.exports=function(q,V,X,it,tt,rt){var ut=T(q),Ct=T(V),et=ut?I:b(q),K=Ct?I:b(V),ht=(et=et==O?z:et)==z,xt=(K=K==O?z:K)==z,St=et==K;if(St&&k(q)){if(!k(V))return!1;ut=!0,ht=!1}if(St&&!ht)return rt||(rt=new h),ut||D(q)?c(q,V,X,it,tt,rt):y(q,V,et,X,it,tt,rt);if(!(1&X)){var pt=ht&&H.call(q,"__wrapped__"),wt=xt&&H.call(V,"__wrapped__");if(pt||wt){var Ht=pt?q.value():q,Pt=wt?V.value():V;return rt||(rt=new h),tt(Ht,Pt,X,it,rt)}}return!!St&&(rt||(rt=new h),p(q,V,X,it,tt,rt))}},5588:(r,s,o)=>{var h=o(4160),c=o(7005);r.exports=function(y){return c(y)&&h(y)=="[object Map]"}},2958:(r,s,o)=>{var h=o(6384),c=o(939);r.exports=function(y,p,b,T){var k=b.length,D=k,O=!T;if(y==null)return!D;for(y=Object(y);k--;){var I=b[k];if(O&&I[2]?I[1]!==y[I[0]]:!(I[0]in y))return!1}for(;++k<D;){var z=(I=b[k])[0],H=y[z],q=I[1];if(O&&I[2]){if(H===void 0&&!(z in y))return!1}else{var V=new h;if(T)var X=T(H,q,z,y,p,V);if(!(X===void 0?c(q,H,3,T,V):X))return!1}}return!0}},2722:r=>{r.exports=function(s){return s!=s}},8458:(r,s,o)=>{var h=o(3560),c=o(5346),y=o(3218),p=o(346),b=/^\[object .+?Constructor\]$/,T=Function.prototype,k=Object.prototype,D=T.toString,O=k.hasOwnProperty,I=RegExp("^"+D.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");r.exports=function(z){return!(!y(z)||c(z))&&(h(z)?I:b).test(p(z))}},9221:(r,s,o)=>{var h=o(4160),c=o(7005);r.exports=function(y){return c(y)&&h(y)=="[object Set]"}},8749:(r,s,o)=>{var h=o(4239),c=o(1780),y=o(7005),p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p["[object Arguments]"]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p["[object Map]"]=p["[object Number]"]=p["[object Object]"]=p["[object RegExp]"]=p["[object Set]"]=p["[object String]"]=p["[object WeakMap]"]=!1,r.exports=function(b){return y(b)&&c(b.length)&&!!p[h(b)]}},7206:(r,s,o)=>{var h=o(1573),c=o(6432),y=o(6557),p=o(1469),b=o(9601);r.exports=function(T){return typeof T=="function"?T:T==null?y:typeof T=="object"?p(T)?c(T[0],T[1]):h(T):b(T)}},280:(r,s,o)=>{var h=o(5726),c=o(6916),y=Object.prototype.hasOwnProperty;r.exports=function(p){if(!h(p))return c(p);var b=[];for(var T in Object(p))y.call(p,T)&&T!="constructor"&&b.push(T);return b}},313:(r,s,o)=>{var h=o(3218),c=o(5726),y=o(3498),p=Object.prototype.hasOwnProperty;r.exports=function(b){if(!h(b))return y(b);var T=c(b),k=[];for(var D in b)(D!="constructor"||!T&&p.call(b,D))&&k.push(D);return k}},433:r=>{r.exports=function(s,o){return s<o}},9199:(r,s,o)=>{var h=o(9881),c=o(8612);r.exports=function(y,p){var b=-1,T=c(y)?Array(y.length):[];return h(y,function(k,D,O){T[++b]=p(k,D,O)}),T}},1573:(r,s,o)=>{var h=o(2958),c=o(1499),y=o(2634);r.exports=function(p){var b=c(p);return b.length==1&&b[0][2]?y(b[0][0],b[0][1]):function(T){return T===p||h(T,p,b)}}},6432:(r,s,o)=>{var h=o(939),c=o(1917),y=o(9095),p=o(5403),b=o(9162),T=o(2634),k=o(327);r.exports=function(D,O){return p(D)&&b(O)?T(k(D),O):function(I){var z=c(I,D);return z===void 0&&z===O?y(I,D):h(O,z,3)}}},2980:(r,s,o)=>{var h=o(6384),c=o(6556),y=o(8483),p=o(9783),b=o(3218),T=o(1704),k=o(6390);r.exports=function D(O,I,z,H,q){O!==I&&y(I,function(V,X){if(q||(q=new h),b(V))p(O,I,X,z,D,H,q);else{var it=H?H(k(O,X),V,X+"",O,I,q):void 0;it===void 0&&(it=V),c(O,X,it)}},T)}},9783:(r,s,o)=>{var h=o(6556),c=o(4626),y=o(7133),p=o(278),b=o(8517),T=o(5694),k=o(1469),D=o(9246),O=o(4144),I=o(3560),z=o(3218),H=o(8630),q=o(6719),V=o(6390),X=o(3678);r.exports=function(it,tt,rt,ut,Ct,et,K){var ht=V(it,rt),xt=V(tt,rt),St=K.get(xt);if(St)h(it,rt,St);else{var pt=et?et(ht,xt,rt+"",it,tt,K):void 0,wt=pt===void 0;if(wt){var Ht=k(xt),Pt=!Ht&&O(xt),ge=!Ht&&!Pt&&q(xt);pt=xt,Ht||Pt||ge?k(ht)?pt=ht:D(ht)?pt=p(ht):Pt?(wt=!1,pt=c(xt,!0)):ge?(wt=!1,pt=y(xt,!0)):pt=[]:H(xt)||T(xt)?(pt=ht,T(ht)?pt=X(ht):z(ht)&&!I(ht)||(pt=b(xt))):wt=!1}wt&&(K.set(xt,pt),Ct(pt,xt,ut,et,K),K.delete(xt)),h(it,rt,pt)}}},9556:(r,s,o)=>{var h=o(9932),c=o(7786),y=o(7206),p=o(9199),b=o(1131),T=o(1717),k=o(5022),D=o(6557),O=o(1469);r.exports=function(I,z,H){z=z.length?h(z,function(X){return O(X)?function(it){return c(it,X.length===1?X[0]:X)}:X}):[D];var q=-1;z=h(z,T(y));var V=p(I,function(X,it,tt){return{criteria:h(z,function(rt){return rt(X)}),index:++q,value:X}});return b(V,function(X,it){return k(X,it,H)})}},5970:(r,s,o)=>{var h=o(3012),c=o(9095);r.exports=function(y,p){return h(y,p,function(b,T){return c(y,T)})}},3012:(r,s,o)=>{var h=o(7786),c=o(611),y=o(1811);r.exports=function(p,b,T){for(var k=-1,D=b.length,O={};++k<D;){var I=b[k],z=h(p,I);T(z,I)&&c(O,y(I,p),z)}return O}},371:r=>{r.exports=function(s){return function(o){return o==null?void 0:o[s]}}},9152:(r,s,o)=>{var h=o(7786);r.exports=function(c){return function(y){return h(y,c)}}},98:r=>{var s=Math.ceil,o=Math.max;r.exports=function(h,c,y,p){for(var b=-1,T=o(s((c-h)/(y||1)),0),k=Array(T);T--;)k[p?T:++b]=h,h+=y;return k}},107:r=>{r.exports=function(s,o,h,c,y){return y(s,function(p,b,T){h=c?(c=!1,p):o(h,p,b,T)}),h}},5976:(r,s,o)=>{var h=o(6557),c=o(5357),y=o(61);r.exports=function(p,b){return y(c(p,b,h),p+"")}},611:(r,s,o)=>{var h=o(4865),c=o(1811),y=o(5776),p=o(3218),b=o(327);r.exports=function(T,k,D,O){if(!p(T))return T;for(var I=-1,z=(k=c(k,T)).length,H=z-1,q=T;q!=null&&++I<z;){var V=b(k[I]),X=D;if(V==="__proto__"||V==="constructor"||V==="prototype")return T;if(I!=H){var it=q[V];(X=O?O(it,V,q):void 0)===void 0&&(X=p(it)?it:y(k[I+1])?[]:{})}h(q,V,X),q=q[V]}return T}},6560:(r,s,o)=>{var h=o(5703),c=o(8777),y=o(6557),p=c?function(b,T){return c(b,"toString",{configurable:!0,enumerable:!1,value:h(T),writable:!0})}:y;r.exports=p},1131:r=>{r.exports=function(s,o){var h=s.length;for(s.sort(o);h--;)s[h]=s[h].value;return s}},2545:r=>{r.exports=function(s,o){for(var h=-1,c=Array(s);++h<s;)c[h]=o(h);return c}},531:(r,s,o)=>{var h=o(2705),c=o(9932),y=o(1469),p=o(3448),b=h?h.prototype:void 0,T=b?b.toString:void 0;r.exports=function k(D){if(typeof D=="string")return D;if(y(D))return c(D,k)+"";if(p(D))return T?T.call(D):"";var O=D+"";return O=="0"&&1/D==-1/0?"-0":O}},7561:(r,s,o)=>{var h=o(7990),c=/^\s+/;r.exports=function(y){return y&&y.slice(0,h(y)+1).replace(c,"")}},1717:r=>{r.exports=function(s){return function(o){return s(o)}}},5652:(r,s,o)=>{var h=o(8668),c=o(7443),y=o(1196),p=o(4757),b=o(3593),T=o(1814);r.exports=function(k,D,O){var I=-1,z=c,H=k.length,q=!0,V=[],X=V;if(O)q=!1,z=y;else if(H>=200){var it=D?null:b(k);if(it)return T(it);q=!1,z=p,X=new h}else X=D?[]:V;t:for(;++I<H;){var tt=k[I],rt=D?D(tt):tt;if(tt=O||tt!==0?tt:0,q&&rt==rt){for(var ut=X.length;ut--;)if(X[ut]===rt)continue t;D&&X.push(rt),V.push(tt)}else z(X,rt,O)||(X!==V&&X.push(rt),V.push(tt))}return V}},7415:(r,s,o)=>{var h=o(9932);r.exports=function(c,y){return h(y,function(p){return c[p]})}},1757:r=>{r.exports=function(s,o,h){for(var c=-1,y=s.length,p=o.length,b={};++c<y;){var T=c<p?o[c]:void 0;h(b,s[c],T)}return b}},4757:r=>{r.exports=function(s,o){return s.has(o)}},4290:(r,s,o)=>{var h=o(6557);r.exports=function(c){return typeof c=="function"?c:h}},1811:(r,s,o)=>{var h=o(1469),c=o(5403),y=o(5514),p=o(9833);r.exports=function(b,T){return h(b)?b:c(b,T)?[b]:y(p(b))}},4318:(r,s,o)=>{var h=o(1149);r.exports=function(c){var y=new c.constructor(c.byteLength);return new h(y).set(new h(c)),y}},4626:(r,s,o)=>{r=o.nmd(r);var h=o(5639),c=s&&!s.nodeType&&s,y=c&&r&&!r.nodeType&&r,p=y&&y.exports===c?h.Buffer:void 0,b=p?p.allocUnsafe:void 0;r.exports=function(T,k){if(k)return T.slice();var D=T.length,O=b?b(D):new T.constructor(D);return T.copy(O),O}},7157:(r,s,o)=>{var h=o(4318);r.exports=function(c,y){var p=y?h(c.buffer):c.buffer;return new c.constructor(p,c.byteOffset,c.byteLength)}},3147:r=>{var s=/\w*$/;r.exports=function(o){var h=new o.constructor(o.source,s.exec(o));return h.lastIndex=o.lastIndex,h}},419:(r,s,o)=>{var h=o(2705),c=h?h.prototype:void 0,y=c?c.valueOf:void 0;r.exports=function(p){return y?Object(y.call(p)):{}}},7133:(r,s,o)=>{var h=o(4318);r.exports=function(c,y){var p=y?h(c.buffer):c.buffer;return new c.constructor(p,c.byteOffset,c.length)}},6393:(r,s,o)=>{var h=o(3448);r.exports=function(c,y){if(c!==y){var p=c!==void 0,b=c===null,T=c==c,k=h(c),D=y!==void 0,O=y===null,I=y==y,z=h(y);if(!O&&!z&&!k&&c>y||k&&D&&I&&!O&&!z||b&&D&&I||!p&&I||!T)return 1;if(!b&&!k&&!z&&c<y||z&&p&&T&&!b&&!k||O&&p&&T||!D&&T||!I)return-1}return 0}},5022:(r,s,o)=>{var h=o(6393);r.exports=function(c,y,p){for(var b=-1,T=c.criteria,k=y.criteria,D=T.length,O=p.length;++b<D;){var I=h(T[b],k[b]);if(I)return b>=O?I:I*(p[b]=="desc"?-1:1)}return c.index-y.index}},278:r=>{r.exports=function(s,o){var h=-1,c=s.length;for(o||(o=Array(c));++h<c;)o[h]=s[h];return o}},8363:(r,s,o)=>{var h=o(4865),c=o(9465);r.exports=function(y,p,b,T){var k=!b;b||(b={});for(var D=-1,O=p.length;++D<O;){var I=p[D],z=T?T(b[I],y[I],I,b,y):void 0;z===void 0&&(z=y[I]),k?c(b,I,z):h(b,I,z)}return b}},8805:(r,s,o)=>{var h=o(8363),c=o(9551);r.exports=function(y,p){return h(y,c(y),p)}},1911:(r,s,o)=>{var h=o(8363),c=o(1442);r.exports=function(y,p){return h(y,c(y),p)}},4429:(r,s,o)=>{var h=o(5639)["__core-js_shared__"];r.exports=h},1750:(r,s,o)=>{var h=o(5976),c=o(6612);r.exports=function(y){return h(function(p,b){var T=-1,k=b.length,D=k>1?b[k-1]:void 0,O=k>2?b[2]:void 0;for(D=y.length>3&&typeof D=="function"?(k--,D):void 0,O&&c(b[0],b[1],O)&&(D=k<3?void 0:D,k=1),p=Object(p);++T<k;){var I=b[T];I&&y(p,I,T,D)}return p})}},9291:(r,s,o)=>{var h=o(8612);r.exports=function(c,y){return function(p,b){if(p==null)return p;if(!h(p))return c(p,b);for(var T=p.length,k=y?T:-1,D=Object(p);(y?k--:++k<T)&&b(D[k],k,D)!==!1;);return p}}},5063:r=>{r.exports=function(s){return function(o,h,c){for(var y=-1,p=Object(o),b=c(o),T=b.length;T--;){var k=b[s?T:++y];if(h(p[k],k,p)===!1)break}return o}}},7740:(r,s,o)=>{var h=o(7206),c=o(8612),y=o(3674);r.exports=function(p){return function(b,T,k){var D=Object(b);if(!c(b)){var O=h(T,3);b=y(b),T=function(z){return O(D[z],z,D)}}var I=p(b,T,k);return I>-1?D[O?b[I]:I]:void 0}}},7445:(r,s,o)=>{var h=o(98),c=o(6612),y=o(8601);r.exports=function(p){return function(b,T,k){return k&&typeof k!="number"&&c(b,T,k)&&(T=k=void 0),b=y(b),T===void 0?(T=b,b=0):T=y(T),k=k===void 0?b<T?1:-1:y(k),h(b,T,k,p)}}},3593:(r,s,o)=>{var h=o(8525),c=o(308),y=o(1814),p=h&&1/y(new h([,-0]))[1]==1/0?function(b){return new h(b)}:c;r.exports=p},8777:(r,s,o)=>{var h=o(852),c=function(){try{var y=h(Object,"defineProperty");return y({},"",{}),y}catch{}}();r.exports=c},7114:(r,s,o)=>{var h=o(8668),c=o(2908),y=o(4757);r.exports=function(p,b,T,k,D,O){var I=1&T,z=p.length,H=b.length;if(z!=H&&!(I&&H>z))return!1;var q=O.get(p),V=O.get(b);if(q&&V)return q==b&&V==p;var X=-1,it=!0,tt=2&T?new h:void 0;for(O.set(p,b),O.set(b,p);++X<z;){var rt=p[X],ut=b[X];if(k)var Ct=I?k(ut,rt,X,b,p,O):k(rt,ut,X,p,b,O);if(Ct!==void 0){if(Ct)continue;it=!1;break}if(tt){if(!c(b,function(et,K){if(!y(tt,K)&&(rt===et||D(rt,et,T,k,O)))return tt.push(K)})){it=!1;break}}else if(rt!==ut&&!D(rt,ut,T,k,O)){it=!1;break}}return O.delete(p),O.delete(b),it}},8351:(r,s,o)=>{var h=o(2705),c=o(1149),y=o(7813),p=o(7114),b=o(8776),T=o(1814),k=h?h.prototype:void 0,D=k?k.valueOf:void 0;r.exports=function(O,I,z,H,q,V,X){switch(z){case"[object DataView]":if(O.byteLength!=I.byteLength||O.byteOffset!=I.byteOffset)return!1;O=O.buffer,I=I.buffer;case"[object ArrayBuffer]":return!(O.byteLength!=I.byteLength||!V(new c(O),new c(I)));case"[object Boolean]":case"[object Date]":case"[object Number]":return y(+O,+I);case"[object Error]":return O.name==I.name&&O.message==I.message;case"[object RegExp]":case"[object String]":return O==I+"";case"[object Map]":var it=b;case"[object Set]":var tt=1&H;if(it||(it=T),O.size!=I.size&&!tt)return!1;var rt=X.get(O);if(rt)return rt==I;H|=2,X.set(O,I);var ut=p(it(O),it(I),H,q,V,X);return X.delete(O),ut;case"[object Symbol]":if(D)return D.call(O)==D.call(I)}return!1}},6096:(r,s,o)=>{var h=o(8234),c=Object.prototype.hasOwnProperty;r.exports=function(y,p,b,T,k,D){var O=1&b,I=h(y),z=I.length;if(z!=h(p).length&&!O)return!1;for(var H=z;H--;){var q=I[H];if(!(O?q in p:c.call(p,q)))return!1}var V=D.get(y),X=D.get(p);if(V&&X)return V==p&&X==y;var it=!0;D.set(y,p),D.set(p,y);for(var tt=O;++H<z;){var rt=y[q=I[H]],ut=p[q];if(T)var Ct=O?T(ut,rt,q,p,y,D):T(rt,ut,q,y,p,D);if(!(Ct===void 0?rt===ut||k(rt,ut,b,T,D):Ct)){it=!1;break}tt||(tt=q=="constructor")}if(it&&!tt){var et=y.constructor,K=p.constructor;et==K||!("constructor"in y)||!("constructor"in p)||typeof et=="function"&&et instanceof et&&typeof K=="function"&&K instanceof K||(it=!1)}return D.delete(y),D.delete(p),it}},9021:(r,s,o)=>{var h=o(5564),c=o(5357),y=o(61);r.exports=function(p){return y(c(p,void 0,h),p+"")}},1957:(r,s,o)=>{var h=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;r.exports=h},8234:(r,s,o)=>{var h=o(8866),c=o(9551),y=o(3674);r.exports=function(p){return h(p,y,c)}},6904:(r,s,o)=>{var h=o(8866),c=o(1442),y=o(1704);r.exports=function(p){return h(p,y,c)}},5050:(r,s,o)=>{var h=o(7019);r.exports=function(c,y){var p=c.__data__;return h(y)?p[typeof y=="string"?"string":"hash"]:p.map}},1499:(r,s,o)=>{var h=o(9162),c=o(3674);r.exports=function(y){for(var p=c(y),b=p.length;b--;){var T=p[b],k=y[T];p[b]=[T,k,h(k)]}return p}},852:(r,s,o)=>{var h=o(8458),c=o(7801);r.exports=function(y,p){var b=c(y,p);return h(b)?b:void 0}},5924:(r,s,o)=>{var h=o(5569)(Object.getPrototypeOf,Object);r.exports=h},9607:(r,s,o)=>{var h=o(2705),c=Object.prototype,y=c.hasOwnProperty,p=c.toString,b=h?h.toStringTag:void 0;r.exports=function(T){var k=y.call(T,b),D=T[b];try{T[b]=void 0;var O=!0}catch{}var I=p.call(T);return O&&(k?T[b]=D:delete T[b]),I}},9551:(r,s,o)=>{var h=o(4963),c=o(479),y=Object.prototype.propertyIsEnumerable,p=Object.getOwnPropertySymbols,b=p?function(T){return T==null?[]:(T=Object(T),h(p(T),function(k){return y.call(T,k)}))}:c;r.exports=b},1442:(r,s,o)=>{var h=o(2488),c=o(5924),y=o(9551),p=o(479),b=Object.getOwnPropertySymbols?function(T){for(var k=[];T;)h(k,y(T)),T=c(T);return k}:p;r.exports=b},4160:(r,s,o)=>{var h=o(8552),c=o(7071),y=o(3818),p=o(8525),b=o(577),T=o(4239),k=o(346),D="[object Map]",O="[object Promise]",I="[object Set]",z="[object WeakMap]",H="[object DataView]",q=k(h),V=k(c),X=k(y),it=k(p),tt=k(b),rt=T;(h&&rt(new h(new ArrayBuffer(1)))!=H||c&&rt(new c)!=D||y&&rt(y.resolve())!=O||p&&rt(new p)!=I||b&&rt(new b)!=z)&&(rt=function(ut){var Ct=T(ut),et=Ct=="[object Object]"?ut.constructor:void 0,K=et?k(et):"";if(K)switch(K){case q:return H;case V:return D;case X:return O;case it:return I;case tt:return z}return Ct}),r.exports=rt},7801:r=>{r.exports=function(s,o){return s==null?void 0:s[o]}},222:(r,s,o)=>{var h=o(1811),c=o(5694),y=o(1469),p=o(5776),b=o(1780),T=o(327);r.exports=function(k,D,O){for(var I=-1,z=(D=h(D,k)).length,H=!1;++I<z;){var q=T(D[I]);if(!(H=k!=null&&O(k,q)))break;k=k[q]}return H||++I!=z?H:!!(z=k==null?0:k.length)&&b(z)&&p(q,z)&&(y(k)||c(k))}},2689:r=>{var s=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");r.exports=function(o){return s.test(o)}},1789:(r,s,o)=>{var h=o(4536);r.exports=function(){this.__data__=h?h(null):{},this.size=0}},401:r=>{r.exports=function(s){var o=this.has(s)&&delete this.__data__[s];return this.size-=o?1:0,o}},7667:(r,s,o)=>{var h=o(4536),c=Object.prototype.hasOwnProperty;r.exports=function(y){var p=this.__data__;if(h){var b=p[y];return b==="__lodash_hash_undefined__"?void 0:b}return c.call(p,y)?p[y]:void 0}},1327:(r,s,o)=>{var h=o(4536),c=Object.prototype.hasOwnProperty;r.exports=function(y){var p=this.__data__;return h?p[y]!==void 0:c.call(p,y)}},1866:(r,s,o)=>{var h=o(4536);r.exports=function(c,y){var p=this.__data__;return this.size+=this.has(c)?0:1,p[c]=h&&y===void 0?"__lodash_hash_undefined__":y,this}},3824:r=>{var s=Object.prototype.hasOwnProperty;r.exports=function(o){var h=o.length,c=new o.constructor(h);return h&&typeof o[0]=="string"&&s.call(o,"index")&&(c.index=o.index,c.input=o.input),c}},9148:(r,s,o)=>{var h=o(4318),c=o(7157),y=o(3147),p=o(419),b=o(7133);r.exports=function(T,k,D){var O=T.constructor;switch(k){case"[object ArrayBuffer]":return h(T);case"[object Boolean]":case"[object Date]":return new O(+T);case"[object DataView]":return c(T,D);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return b(T,D);case"[object Map]":case"[object Set]":return new O;case"[object Number]":case"[object String]":return new O(T);case"[object RegExp]":return y(T);case"[object Symbol]":return p(T)}}},8517:(r,s,o)=>{var h=o(3118),c=o(5924),y=o(5726);r.exports=function(p){return typeof p.constructor!="function"||y(p)?{}:h(c(p))}},7285:(r,s,o)=>{var h=o(2705),c=o(5694),y=o(1469),p=h?h.isConcatSpreadable:void 0;r.exports=function(b){return y(b)||c(b)||!!(p&&b&&b[p])}},5776:r=>{var s=/^(?:0|[1-9]\d*)$/;r.exports=function(o,h){var c=typeof o;return!!(h=h==null?9007199254740991:h)&&(c=="number"||c!="symbol"&&s.test(o))&&o>-1&&o%1==0&&o<h}},6612:(r,s,o)=>{var h=o(7813),c=o(8612),y=o(5776),p=o(3218);r.exports=function(b,T,k){if(!p(k))return!1;var D=typeof T;return!!(D=="number"?c(k)&&y(T,k.length):D=="string"&&T in k)&&h(k[T],b)}},5403:(r,s,o)=>{var h=o(1469),c=o(3448),y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p=/^\w*$/;r.exports=function(b,T){if(h(b))return!1;var k=typeof b;return!(k!="number"&&k!="symbol"&&k!="boolean"&&b!=null&&!c(b))||p.test(b)||!y.test(b)||T!=null&&b in Object(T)}},7019:r=>{r.exports=function(s){var o=typeof s;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?s!=="__proto__":s===null}},5346:(r,s,o)=>{var h,c=o(4429),y=(h=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"";r.exports=function(p){return!!y&&y in p}},5726:r=>{var s=Object.prototype;r.exports=function(o){var h=o&&o.constructor;return o===(typeof h=="function"&&h.prototype||s)}},9162:(r,s,o)=>{var h=o(3218);r.exports=function(c){return c==c&&!h(c)}},7040:r=>{r.exports=function(){this.__data__=[],this.size=0}},2188:(r,s,o)=>{var h=o(8470),c=Array.prototype.splice;r.exports=function(y){var p=this.__data__,b=h(p,y);return!(b<0||(b==p.length-1?p.pop():c.call(p,b,1),--this.size,0))}},2117:(r,s,o)=>{var h=o(8470);r.exports=function(c){var y=this.__data__,p=h(y,c);return p<0?void 0:y[p][1]}},7518:(r,s,o)=>{var h=o(8470);r.exports=function(c){return h(this.__data__,c)>-1}},4705:(r,s,o)=>{var h=o(8470);r.exports=function(c,y){var p=this.__data__,b=h(p,c);return b<0?(++this.size,p.push([c,y])):p[b][1]=y,this}},4785:(r,s,o)=>{var h=o(1989),c=o(8407),y=o(7071);r.exports=function(){this.size=0,this.__data__={hash:new h,map:new(y||c),string:new h}}},1285:(r,s,o)=>{var h=o(5050);r.exports=function(c){var y=h(this,c).delete(c);return this.size-=y?1:0,y}},6e3:(r,s,o)=>{var h=o(5050);r.exports=function(c){return h(this,c).get(c)}},9916:(r,s,o)=>{var h=o(5050);r.exports=function(c){return h(this,c).has(c)}},5265:(r,s,o)=>{var h=o(5050);r.exports=function(c,y){var p=h(this,c),b=p.size;return p.set(c,y),this.size+=p.size==b?0:1,this}},8776:r=>{r.exports=function(s){var o=-1,h=Array(s.size);return s.forEach(function(c,y){h[++o]=[y,c]}),h}},2634:r=>{r.exports=function(s,o){return function(h){return h!=null&&h[s]===o&&(o!==void 0||s in Object(h))}}},4523:(r,s,o)=>{var h=o(8306);r.exports=function(c){var y=h(c,function(b){return p.size===500&&p.clear(),b}),p=y.cache;return y}},4536:(r,s,o)=>{var h=o(852)(Object,"create");r.exports=h},6916:(r,s,o)=>{var h=o(5569)(Object.keys,Object);r.exports=h},3498:r=>{r.exports=function(s){var o=[];if(s!=null)for(var h in Object(s))o.push(h);return o}},1167:(r,s,o)=>{r=o.nmd(r);var h=o(1957),c=s&&!s.nodeType&&s,y=c&&r&&!r.nodeType&&r,p=y&&y.exports===c&&h.process,b=function(){try{return y&&y.require&&y.require("util").types||p&&p.binding&&p.binding("util")}catch{}}();r.exports=b},2333:r=>{var s=Object.prototype.toString;r.exports=function(o){return s.call(o)}},5569:r=>{r.exports=function(s,o){return function(h){return s(o(h))}}},5357:(r,s,o)=>{var h=o(6874),c=Math.max;r.exports=function(y,p,b){return p=c(p===void 0?y.length-1:p,0),function(){for(var T=arguments,k=-1,D=c(T.length-p,0),O=Array(D);++k<D;)O[k]=T[p+k];k=-1;for(var I=Array(p+1);++k<p;)I[k]=T[k];return I[p]=b(O),h(y,this,I)}}},5639:(r,s,o)=>{var h=o(1957),c=typeof self=="object"&&self&&self.Object===Object&&self,y=h||c||Function("return this")();r.exports=y},6390:r=>{r.exports=function(s,o){if((o!=="constructor"||typeof s[o]!="function")&&o!="__proto__")return s[o]}},619:r=>{r.exports=function(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this}},2385:r=>{r.exports=function(s){return this.__data__.has(s)}},1814:r=>{r.exports=function(s){var o=-1,h=Array(s.size);return s.forEach(function(c){h[++o]=c}),h}},61:(r,s,o)=>{var h=o(6560),c=o(1275)(h);r.exports=c},1275:r=>{var s=Date.now;r.exports=function(o){var h=0,c=0;return function(){var y=s(),p=16-(y-c);if(c=y,p>0){if(++h>=800)return arguments[0]}else h=0;return o.apply(void 0,arguments)}}},7465:(r,s,o)=>{var h=o(8407);r.exports=function(){this.__data__=new h,this.size=0}},3779:r=>{r.exports=function(s){var o=this.__data__,h=o.delete(s);return this.size=o.size,h}},7599:r=>{r.exports=function(s){return this.__data__.get(s)}},4758:r=>{r.exports=function(s){return this.__data__.has(s)}},4309:(r,s,o)=>{var h=o(8407),c=o(7071),y=o(3369);r.exports=function(p,b){var T=this.__data__;if(T instanceof h){var k=T.__data__;if(!c||k.length<199)return k.push([p,b]),this.size=++T.size,this;T=this.__data__=new y(k)}return T.set(p,b),this.size=T.size,this}},2351:r=>{r.exports=function(s,o,h){for(var c=h-1,y=s.length;++c<y;)if(s[c]===o)return c;return-1}},8016:(r,s,o)=>{var h=o(8983),c=o(2689),y=o(1903);r.exports=function(p){return c(p)?y(p):h(p)}},5514:(r,s,o)=>{var h=o(4523),c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,y=/\\(\\)?/g,p=h(function(b){var T=[];return b.charCodeAt(0)===46&&T.push(""),b.replace(c,function(k,D,O,I){T.push(O?I.replace(y,"$1"):D||k)}),T});r.exports=p},327:(r,s,o)=>{var h=o(3448);r.exports=function(c){if(typeof c=="string"||h(c))return c;var y=c+"";return y=="0"&&1/c==-1/0?"-0":y}},346:r=>{var s=Function.prototype.toString;r.exports=function(o){if(o!=null){try{return s.call(o)}catch{}try{return o+""}catch{}}return""}},7990:r=>{var s=/\s/;r.exports=function(o){for(var h=o.length;h--&&s.test(o.charAt(h)););return h}},1903:r=>{var s="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",h="[^\\ud800-\\udfff]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",p="(?:"+s+"|"+o+")?",b="[\\ufe0e\\ufe0f]?",T=b+p+"(?:\\u200d(?:"+[h,c,y].join("|")+")"+b+p+")*",k="(?:"+[h+s+"?",s,c,y,"[\\ud800-\\udfff]"].join("|")+")",D=RegExp(o+"(?="+o+")|"+k+T,"g");r.exports=function(O){for(var I=D.lastIndex=0;D.test(O);)++I;return I}},6678:(r,s,o)=>{var h=o(5990);r.exports=function(c){return h(c,4)}},361:(r,s,o)=>{var h=o(5990);r.exports=function(c){return h(c,5)}},5703:r=>{r.exports=function(s){return function(){return s}}},1747:(r,s,o)=>{var h=o(5976),c=o(7813),y=o(6612),p=o(1704),b=Object.prototype,T=b.hasOwnProperty,k=h(function(D,O){D=Object(D);var I=-1,z=O.length,H=z>2?O[2]:void 0;for(H&&y(O[0],O[1],H)&&(z=1);++I<z;)for(var q=O[I],V=p(q),X=-1,it=V.length;++X<it;){var tt=V[X],rt=D[tt];(rt===void 0||c(rt,b[tt])&&!T.call(D,tt))&&(D[tt]=q[tt])}return D});r.exports=k},6073:(r,s,o)=>{r.exports=o(4486)},7813:r=>{r.exports=function(s,o){return s===o||s!=s&&o!=o}},3105:(r,s,o)=>{var h=o(4963),c=o(760),y=o(7206),p=o(1469);r.exports=function(b,T){return(p(b)?h:c)(b,y(T,3))}},3311:(r,s,o)=>{var h=o(7740)(o(998));r.exports=h},998:(r,s,o)=>{var h=o(1848),c=o(7206),y=o(554),p=Math.max;r.exports=function(b,T,k){var D=b==null?0:b.length;if(!D)return-1;var O=k==null?0:y(k);return O<0&&(O=p(D+O,0)),h(b,c(T,3),O)}},5564:(r,s,o)=>{var h=o(1078);r.exports=function(c){return c!=null&&c.length?h(c,1):[]}},4486:(r,s,o)=>{var h=o(7412),c=o(9881),y=o(4290),p=o(1469);r.exports=function(b,T){return(p(b)?h:c)(b,y(T))}},2620:(r,s,o)=>{var h=o(8483),c=o(4290),y=o(1704);r.exports=function(p,b){return p==null?p:h(p,c(b),y)}},1917:(r,s,o)=>{var h=o(7786);r.exports=function(c,y,p){var b=c==null?void 0:h(c,y);return b===void 0?p:b}},8721:(r,s,o)=>{var h=o(8565),c=o(222);r.exports=function(y,p){return y!=null&&c(y,p,h)}},9095:(r,s,o)=>{var h=o(13),c=o(222);r.exports=function(y,p){return y!=null&&c(y,p,h)}},6557:r=>{r.exports=function(s){return s}},5694:(r,s,o)=>{var h=o(9454),c=o(7005),y=Object.prototype,p=y.hasOwnProperty,b=y.propertyIsEnumerable,T=h(function(){return arguments}())?h:function(k){return c(k)&&p.call(k,"callee")&&!b.call(k,"callee")};r.exports=T},1469:r=>{var s=Array.isArray;r.exports=s},8612:(r,s,o)=>{var h=o(3560),c=o(1780);r.exports=function(y){return y!=null&&c(y.length)&&!h(y)}},9246:(r,s,o)=>{var h=o(8612),c=o(7005);r.exports=function(y){return c(y)&&h(y)}},4144:(r,s,o)=>{r=o.nmd(r);var h=o(5639),c=o(5062),y=s&&!s.nodeType&&s,p=y&&r&&!r.nodeType&&r,b=p&&p.exports===y?h.Buffer:void 0,T=(b?b.isBuffer:void 0)||c;r.exports=T},1609:(r,s,o)=>{var h=o(280),c=o(4160),y=o(5694),p=o(1469),b=o(8612),T=o(4144),k=o(5726),D=o(6719),O=Object.prototype.hasOwnProperty;r.exports=function(I){if(I==null)return!0;if(b(I)&&(p(I)||typeof I=="string"||typeof I.splice=="function"||T(I)||D(I)||y(I)))return!I.length;var z=c(I);if(z=="[object Map]"||z=="[object Set]")return!I.size;if(k(I))return!h(I).length;for(var H in I)if(O.call(I,H))return!1;return!0}},3560:(r,s,o)=>{var h=o(4239),c=o(3218);r.exports=function(y){if(!c(y))return!1;var p=h(y);return p=="[object Function]"||p=="[object GeneratorFunction]"||p=="[object AsyncFunction]"||p=="[object Proxy]"}},1780:r=>{r.exports=function(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=9007199254740991}},6688:(r,s,o)=>{var h=o(5588),c=o(1717),y=o(1167),p=y&&y.isMap,b=p?c(p):h;r.exports=b},3218:r=>{r.exports=function(s){var o=typeof s;return s!=null&&(o=="object"||o=="function")}},7005:r=>{r.exports=function(s){return s!=null&&typeof s=="object"}},8630:(r,s,o)=>{var h=o(4239),c=o(5924),y=o(7005),p=Function.prototype,b=Object.prototype,T=p.toString,k=b.hasOwnProperty,D=T.call(Object);r.exports=function(O){if(!y(O)||h(O)!="[object Object]")return!1;var I=c(O);if(I===null)return!0;var z=k.call(I,"constructor")&&I.constructor;return typeof z=="function"&&z instanceof z&&T.call(z)==D}},2928:(r,s,o)=>{var h=o(9221),c=o(1717),y=o(1167),p=y&&y.isSet,b=p?c(p):h;r.exports=b},7037:(r,s,o)=>{var h=o(4239),c=o(1469),y=o(7005);r.exports=function(p){return typeof p=="string"||!c(p)&&y(p)&&h(p)=="[object String]"}},3448:(r,s,o)=>{var h=o(4239),c=o(7005);r.exports=function(y){return typeof y=="symbol"||c(y)&&h(y)=="[object Symbol]"}},6719:(r,s,o)=>{var h=o(8749),c=o(1717),y=o(1167),p=y&&y.isTypedArray,b=p?c(p):h;r.exports=b},2353:r=>{r.exports=function(s){return s===void 0}},3674:(r,s,o)=>{var h=o(4636),c=o(280),y=o(8612);r.exports=function(p){return y(p)?h(p):c(p)}},1704:(r,s,o)=>{var h=o(4636),c=o(313),y=o(8612);r.exports=function(p){return y(p)?h(p,!0):c(p)}},928:r=>{r.exports=function(s){var o=s==null?0:s.length;return o?s[o-1]:void 0}},5161:(r,s,o)=>{var h=o(9932),c=o(7206),y=o(9199),p=o(1469);r.exports=function(b,T){return(p(b)?h:y)(b,c(T,3))}},6604:(r,s,o)=>{var h=o(9465),c=o(7816),y=o(7206);r.exports=function(p,b){var T={};return b=y(b,3),c(p,function(k,D,O){h(T,D,b(k,D,O))}),T}},6162:(r,s,o)=>{var h=o(6029),c=o(3325),y=o(6557);r.exports=function(p){return p&&p.length?h(p,y,c):void 0}},8306:(r,s,o)=>{var h=o(3369);function c(y,p){if(typeof y!="function"||p!=null&&typeof p!="function")throw new TypeError("Expected a function");var b=function(){var T=arguments,k=p?p.apply(this,T):T[0],D=b.cache;if(D.has(k))return D.get(k);var O=y.apply(this,T);return b.cache=D.set(k,O)||D,O};return b.cache=new(c.Cache||h),b}c.Cache=h,r.exports=c},3857:(r,s,o)=>{var h=o(2980),c=o(1750)(function(y,p,b){h(y,p,b)});r.exports=c},3632:(r,s,o)=>{var h=o(6029),c=o(433),y=o(6557);r.exports=function(p){return p&&p.length?h(p,y,c):void 0}},2762:(r,s,o)=>{var h=o(6029),c=o(7206),y=o(433);r.exports=function(p,b){return p&&p.length?h(p,c(b,2),y):void 0}},308:r=>{r.exports=function(){}},7771:(r,s,o)=>{var h=o(5639);r.exports=function(){return h.Date.now()}},9722:(r,s,o)=>{var h=o(5970),c=o(9021)(function(y,p){return y==null?{}:h(y,p)});r.exports=c},9601:(r,s,o)=>{var h=o(371),c=o(9152),y=o(5403),p=o(327);r.exports=function(b){return y(b)?h(p(b)):c(b)}},6026:(r,s,o)=>{var h=o(7445)();r.exports=h},4061:(r,s,o)=>{var h=o(2663),c=o(9881),y=o(7206),p=o(107),b=o(1469);r.exports=function(T,k,D){var O=b(T)?h:p,I=arguments.length<3;return O(T,y(k,4),D,I,c)}},4238:(r,s,o)=>{var h=o(280),c=o(4160),y=o(8612),p=o(7037),b=o(8016);r.exports=function(T){if(T==null)return 0;if(y(T))return p(T)?b(T):T.length;var k=c(T);return k=="[object Map]"||k=="[object Set]"?T.size:h(T).length}},9734:(r,s,o)=>{var h=o(1078),c=o(9556),y=o(5976),p=o(6612),b=y(function(T,k){if(T==null)return[];var D=k.length;return D>1&&p(T,k[0],k[1])?k=[]:D>2&&p(k[0],k[1],k[2])&&(k=[k[0]]),c(T,h(k,1),[])});r.exports=b},479:r=>{r.exports=function(){return[]}},5062:r=>{r.exports=function(){return!1}},8601:(r,s,o)=>{var h=o(4841);r.exports=function(c){return c?(c=h(c))===1/0||c===-1/0?17976931348623157e292*(c<0?-1:1):c==c?c:0:c===0?c:0}},554:(r,s,o)=>{var h=o(8601);r.exports=function(c){var y=h(c),p=y%1;return y==y?p?y-p:y:0}},4841:(r,s,o)=>{var h=o(7561),c=o(3218),y=o(3448),p=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,T=/^0o[0-7]+$/i,k=parseInt;r.exports=function(D){if(typeof D=="number")return D;if(y(D))return NaN;if(c(D)){var O=typeof D.valueOf=="function"?D.valueOf():D;D=c(O)?O+"":O}if(typeof D!="string")return D===0?D:+D;D=h(D);var I=b.test(D);return I||T.test(D)?k(D.slice(2),I?2:8):p.test(D)?NaN:+D}},3678:(r,s,o)=>{var h=o(8363),c=o(1704);r.exports=function(y){return h(y,c(y))}},9833:(r,s,o)=>{var h=o(531);r.exports=function(c){return c==null?"":h(c)}},8718:(r,s,o)=>{var h=o(7412),c=o(3118),y=o(7816),p=o(7206),b=o(5924),T=o(1469),k=o(4144),D=o(3560),O=o(3218),I=o(6719);r.exports=function(z,H,q){var V=T(z),X=V||k(z)||I(z);if(H=p(H,4),q==null){var it=z&&z.constructor;q=X?V?new it:[]:O(z)&&D(it)?c(b(z)):{}}return(X?h:y)(z,function(tt,rt,ut){return H(q,tt,rt,ut)}),q}},3386:(r,s,o)=>{var h=o(1078),c=o(5976),y=o(5652),p=o(9246),b=c(function(T){return y(h(T,1,p,!0))});r.exports=b},3955:(r,s,o)=>{var h=o(9833),c=0;r.exports=function(y){var p=++c;return h(y)+p}},2628:(r,s,o)=>{var h=o(7415),c=o(3674);r.exports=function(y){return y==null?[]:h(y,c(y))}},7287:(r,s,o)=>{var h=o(4865),c=o(1757);r.exports=function(y,p){return c(y||[],p||[],h)}},9234:()=>{},1748:(r,s,o)=>{var h={"./locale":9234,"./locale.js":9234};function c(p){var b=y(p);return o(b)}function y(p){if(!o.o(h,p)){var b=new Error("Cannot find module '"+p+"'");throw b.code="MODULE_NOT_FOUND",b}return h[p]}c.keys=function(){return Object.keys(h)},c.resolve=y,r.exports=c,c.id=1748},1941:function(r,s,o){(r=o.nmd(r)).exports=function(){var h,c;function y(){return h.apply(null,arguments)}function p(A){return A instanceof Array||Object.prototype.toString.call(A)==="[object Array]"}function b(A){return A!=null&&Object.prototype.toString.call(A)==="[object Object]"}function T(A){return A===void 0}function k(A){return typeof A=="number"||Object.prototype.toString.call(A)==="[object Number]"}function D(A){return A instanceof Date||Object.prototype.toString.call(A)==="[object Date]"}function O(A,F){var G,st=[];for(G=0;G<A.length;++G)st.push(F(A[G],G));return st}function I(A,F){return Object.prototype.hasOwnProperty.call(A,F)}function z(A,F){for(var G in F)I(F,G)&&(A[G]=F[G]);return I(F,"toString")&&(A.toString=F.toString),I(F,"valueOf")&&(A.valueOf=F.valueOf),A}function H(A,F,G,st){return na(A,F,G,st,!0).utc()}function q(A){return A._pf==null&&(A._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),A._pf}function V(A){if(A._isValid==null){var F=q(A),G=c.call(F.parsedDateParts,function(qt){return qt!=null}),st=!isNaN(A._d.getTime())&&F.overflow<0&&!F.empty&&!F.invalidMonth&&!F.invalidWeekday&&!F.weekdayMismatch&&!F.nullInput&&!F.invalidFormat&&!F.userInvalidated&&(!F.meridiem||F.meridiem&&G);if(A._strict&&(st=st&&F.charsLeftOver===0&&F.unusedTokens.length===0&&F.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(A))return st;A._isValid=st}return A._isValid}function X(A){var F=H(NaN);return A!=null?z(q(F),A):q(F).userInvalidated=!0,F}c=Array.prototype.some?Array.prototype.some:function(A){for(var F=Object(this),G=F.length>>>0,st=0;st<G;st++)if(st in F&&A.call(this,F[st],st,F))return!0;return!1};var it=y.momentProperties=[];function tt(A,F){var G,st,qt;if(T(F._isAMomentObject)||(A._isAMomentObject=F._isAMomentObject),T(F._i)||(A._i=F._i),T(F._f)||(A._f=F._f),T(F._l)||(A._l=F._l),T(F._strict)||(A._strict=F._strict),T(F._tzm)||(A._tzm=F._tzm),T(F._isUTC)||(A._isUTC=F._isUTC),T(F._offset)||(A._offset=F._offset),T(F._pf)||(A._pf=q(F)),T(F._locale)||(A._locale=F._locale),0<it.length)for(G=0;G<it.length;G++)T(qt=F[st=it[G]])||(A[st]=qt);return A}var rt=!1;function ut(A){tt(this,A),this._d=new Date(A._d!=null?A._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),rt===!1&&(rt=!0,y.updateOffset(this),rt=!1)}function Ct(A){return A instanceof ut||A!=null&&A._isAMomentObject!=null}function et(A){return A<0?Math.ceil(A)||0:Math.floor(A)}function K(A){var F=+A,G=0;return F!==0&&isFinite(F)&&(G=et(F)),G}function ht(A,F,G){var st,qt=Math.min(A.length,F.length),fe=Math.abs(A.length-F.length),we=0;for(st=0;st<qt;st++)(G&&A[st]!==F[st]||!G&&K(A[st])!==K(F[st]))&&we++;return we+fe}function xt(A){y.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+A)}function St(A,F){var G=!0;return z(function(){if(y.deprecationHandler!=null&&y.deprecationHandler(null,A),G){for(var st,qt=[],fe=0;fe<arguments.length;fe++){if(st="",typeof arguments[fe]=="object"){for(var we in st+=`
[`+fe+"] ",arguments[0])st+=we+": "+arguments[0][we]+", ";st=st.slice(0,-2)}else st=arguments[fe];qt.push(st)}xt(A+`
Arguments: `+Array.prototype.slice.call(qt).join("")+`
`+new Error().stack),G=!1}return F.apply(this,arguments)},F)}var pt,wt={};function Ht(A,F){y.deprecationHandler!=null&&y.deprecationHandler(A,F),wt[A]||(xt(F),wt[A]=!0)}function Pt(A){return A instanceof Function||Object.prototype.toString.call(A)==="[object Function]"}function ge(A,F){var G,st=z({},A);for(G in F)I(F,G)&&(b(A[G])&&b(F[G])?(st[G]={},z(st[G],A[G]),z(st[G],F[G])):F[G]!=null?st[G]=F[G]:delete st[G]);for(G in A)I(A,G)&&!I(F,G)&&b(A[G])&&(st[G]=z({},st[G]));return st}function pe(A){A!=null&&this.set(A)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null,pt=Object.keys?Object.keys:function(A){var F,G=[];for(F in A)I(A,F)&&G.push(F);return G};var de={};function Rt(A,F){var G=A.toLowerCase();de[G]=de[G+"s"]=de[F]=A}function Gt(A){return typeof A=="string"?de[A]||de[A.toLowerCase()]:void 0}function oe(A){var F,G,st={};for(G in A)I(A,G)&&(F=Gt(G))&&(st[F]=A[G]);return st}var le={};function ye(A,F){le[A]=F}function It(A,F,G){var st=""+Math.abs(A),qt=F-st.length;return(0<=A?G?"+":"":"-")+Math.pow(10,Math.max(0,qt)).toString().substr(1)+st}var $e=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,he=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Yt={},Kt={};function ct(A,F,G,st){var qt=st;typeof st=="string"&&(qt=function(){return this[st]()}),A&&(Kt[A]=qt),F&&(Kt[F[0]]=function(){return It(qt.apply(this,arguments),F[1],F[2])}),G&&(Kt[G]=function(){return this.localeData().ordinal(qt.apply(this,arguments),A)})}function ee(A,F){return A.isValid()?(F=Nt(F,A.localeData()),Yt[F]=Yt[F]||function(G){var st,qt,fe,we=G.match($e);for(st=0,qt=we.length;st<qt;st++)Kt[we[st]]?we[st]=Kt[we[st]]:we[st]=(fe=we[st]).match(/\[[\s\S]/)?fe.replace(/^\[|\]$/g,""):fe.replace(/\\/g,"");return function(Ee){var Me,Pe="";for(Me=0;Me<qt;Me++)Pe+=Pt(we[Me])?we[Me].call(Ee,G):we[Me];return Pe}}(F),Yt[F](A)):A.localeData().invalidDate()}function Nt(A,F){var G=5;function st(qt){return F.longDateFormat(qt)||qt}for(he.lastIndex=0;0<=G&&he.test(A);)A=A.replace(he,st),he.lastIndex=0,G-=1;return A}var Vt=/\d/,Ut=/\d\d/,Ot=/\d{3}/,ae=/\d{4}/,Qe=/[+-]?\d{6}/,_e=/\d\d?/,Ce=/\d\d\d\d?/,un=/\d\d\d\d\d\d?/,Ve=/\d{1,3}/,Le=/\d{1,4}/,ke=/[+-]?\d{1,6}/,Je=/\d+/,Ye=/[+-]?\d+/,Ge=/Z|[+-]\d\d:?\d\d/gi,Ze=/Z|[+-]\d\d(?::?\d\d)?/gi,Ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Un={};function Te(A,F,G){Un[A]=Pt(F)?F:function(st,qt){return st&&G?G:F}}function tn(A,F){return I(Un,A)?Un[A](F._strict,F._locale):new RegExp(vn(A.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(G,st,qt,fe,we){return st||qt||fe||we})))}function vn(A){return A.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ir={};function _n(A,F){var G,st=F;for(typeof A=="string"&&(A=[A]),k(F)&&(st=function(qt,fe){fe[F]=K(qt)}),G=0;G<A.length;G++)Ir[A[G]]=st}function tr(A,F){_n(A,function(G,st,qt,fe){qt._w=qt._w||{},F(G,qt._w,qt,fe)})}function cn(A){return gn(A)?366:365}function gn(A){return A%4==0&&A%100!=0||A%400==0}ct("Y",0,0,function(){var A=this.year();return A<=9999?""+A:"+"+A}),ct(0,["YY",2],0,function(){return this.year()%100}),ct(0,["YYYY",4],0,"year"),ct(0,["YYYYY",5],0,"year"),ct(0,["YYYYYY",6,!0],0,"year"),Rt("year","y"),ye("year",1),Te("Y",Ye),Te("YY",_e,Ut),Te("YYYY",Le,ae),Te("YYYYY",ke,Qe),Te("YYYYYY",ke,Qe),_n(["YYYYY","YYYYYY"],0),_n("YYYY",function(A,F){F[0]=A.length===2?y.parseTwoDigitYear(A):K(A)}),_n("YY",function(A,F){F[0]=y.parseTwoDigitYear(A)}),_n("Y",function(A,F){F[0]=parseInt(A,10)}),y.parseTwoDigitYear=function(A){return K(A)+(68<K(A)?1900:2e3)};var Xe,Cn=Tn("FullYear",!0);function Tn(A,F){return function(G){return G!=null?($n(this,A,G),y.updateOffset(this,F),this):Hn(this,A)}}function Hn(A,F){return A.isValid()?A._d["get"+(A._isUTC?"UTC":"")+F]():NaN}function $n(A,F,G){A.isValid()&&!isNaN(G)&&(F==="FullYear"&&gn(A.year())&&A.month()===1&&A.date()===29?A._d["set"+(A._isUTC?"UTC":"")+F](G,A.month(),Nr(G,A.month())):A._d["set"+(A._isUTC?"UTC":"")+F](G))}function Nr(A,F){if(isNaN(A)||isNaN(F))return NaN;var G=(F%12+12)%12;return A+=(F-G)/12,G===1?gn(A)?29:28:31-G%7%2}Xe=Array.prototype.indexOf?Array.prototype.indexOf:function(A){var F;for(F=0;F<this.length;++F)if(this[F]===A)return F;return-1},ct("M",["MM",2],"Mo",function(){return this.month()+1}),ct("MMM",0,0,function(A){return this.localeData().monthsShort(this,A)}),ct("MMMM",0,0,function(A){return this.localeData().months(this,A)}),Rt("month","M"),ye("month",8),Te("M",_e),Te("MM",_e,Ut),Te("MMM",function(A,F){return F.monthsShortRegex(A)}),Te("MMMM",function(A,F){return F.monthsRegex(A)}),_n(["M","MM"],function(A,F){F[1]=K(A)-1}),_n(["MMM","MMMM"],function(A,F,G,st){var qt=G._locale.monthsParse(A,st,G._strict);qt!=null?F[1]=qt:q(G).invalidMonth=A});var En=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,qn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Yn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Gn(A,F){var G;if(!A.isValid())return A;if(typeof F=="string"){if(/^\d+$/.test(F))F=K(F);else if(!k(F=A.localeData().monthsParse(F)))return A}return G=Math.min(A.date(),Nr(A.year(),F)),A._d["set"+(A._isUTC?"UTC":"")+"Month"](F,G),A}function Zn(A){return A!=null?(Gn(this,A),y.updateOffset(this,!0),this):Hn(this,"Month")}var er=Ne,On=Ne;function Bn(){function A(we,Ee){return Ee.length-we.length}var F,G,st=[],qt=[],fe=[];for(F=0;F<12;F++)G=H([2e3,F]),st.push(this.monthsShort(G,"")),qt.push(this.months(G,"")),fe.push(this.months(G,"")),fe.push(this.monthsShort(G,""));for(st.sort(A),qt.sort(A),fe.sort(A),F=0;F<12;F++)st[F]=vn(st[F]),qt[F]=vn(qt[F]);for(F=0;F<24;F++)fe[F]=vn(fe[F]);this._monthsRegex=new RegExp("^("+fe.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+qt.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+st.join("|")+")","i")}function ln(A){var F;if(A<100&&0<=A){var G=Array.prototype.slice.call(arguments);G[0]=A+400,F=new Date(Date.UTC.apply(null,G)),isFinite(F.getUTCFullYear())&&F.setUTCFullYear(A)}else F=new Date(Date.UTC.apply(null,arguments));return F}function jn(A,F,G){var st=7+F-G;return-(7+ln(A,0,st).getUTCDay()-F)%7+st-1}function yn(A,F,G,st,qt){var fe,we,Ee=1+7*(F-1)+(7+G-st)%7+jn(A,st,qt);return we=Ee<=0?cn(fe=A-1)+Ee:Ee>cn(A)?(fe=A+1,Ee-cn(A)):(fe=A,Ee),{year:fe,dayOfYear:we}}function ai(A,F,G){var st,qt,fe=jn(A.year(),F,G),we=Math.floor((A.dayOfYear()-fe-1)/7)+1;return we<1?st=we+gr(qt=A.year()-1,F,G):we>gr(A.year(),F,G)?(st=we-gr(A.year(),F,G),qt=A.year()+1):(qt=A.year(),st=we),{week:st,year:qt}}function gr(A,F,G){var st=jn(A,F,G),qt=jn(A+1,F,G);return(cn(A)-st+qt)/7}function ea(A,F){return A.slice(F,7).concat(A.slice(0,F))}ct("w",["ww",2],"wo","week"),ct("W",["WW",2],"Wo","isoWeek"),Rt("week","w"),Rt("isoWeek","W"),ye("week",5),ye("isoWeek",5),Te("w",_e),Te("ww",_e,Ut),Te("W",_e),Te("WW",_e,Ut),tr(["w","ww","W","WW"],function(A,F,G,st){F[st.substr(0,1)]=K(A)}),ct("d",0,"do","day"),ct("dd",0,0,function(A){return this.localeData().weekdaysMin(this,A)}),ct("ddd",0,0,function(A){return this.localeData().weekdaysShort(this,A)}),ct("dddd",0,0,function(A){return this.localeData().weekdays(this,A)}),ct("e",0,0,"weekday"),ct("E",0,0,"isoWeekday"),Rt("day","d"),Rt("weekday","e"),Rt("isoWeekday","E"),ye("day",11),ye("weekday",11),ye("isoWeekday",11),Te("d",_e),Te("e",_e),Te("E",_e),Te("dd",function(A,F){return F.weekdaysMinRegex(A)}),Te("ddd",function(A,F){return F.weekdaysShortRegex(A)}),Te("dddd",function(A,F){return F.weekdaysRegex(A)}),tr(["dd","ddd","dddd"],function(A,F,G,st){var qt=G._locale.weekdaysParse(A,st,G._strict);qt!=null?F.d=qt:q(G).invalidWeekday=A}),tr(["d","e","E"],function(A,F,G,st){F[st]=K(A)});var Rn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),No="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),va="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),oi=Ne,Fr=Ne,Ur=Ne;function Zr(){function A(We,kn){return kn.length-We.length}var F,G,st,qt,fe,we=[],Ee=[],Me=[],Pe=[];for(F=0;F<7;F++)G=H([2e3,1]).day(F),st=this.weekdaysMin(G,""),qt=this.weekdaysShort(G,""),fe=this.weekdays(G,""),we.push(st),Ee.push(qt),Me.push(fe),Pe.push(st),Pe.push(qt),Pe.push(fe);for(we.sort(A),Ee.sort(A),Me.sort(A),Pe.sort(A),F=0;F<7;F++)Ee[F]=vn(Ee[F]),Me[F]=vn(Me[F]),Pe[F]=vn(Pe[F]);this._weekdaysRegex=new RegExp("^("+Pe.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Me.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Ee.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+we.join("|")+")","i")}function Jr(){return this.hours()%12||12}function Or(A,F){ct(A,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),F)})}function ti(A,F){return F._meridiemParse}ct("H",["HH",2],0,"hour"),ct("h",["hh",2],0,Jr),ct("k",["kk",2],0,function(){return this.hours()||24}),ct("hmm",0,0,function(){return""+Jr.apply(this)+It(this.minutes(),2)}),ct("hmmss",0,0,function(){return""+Jr.apply(this)+It(this.minutes(),2)+It(this.seconds(),2)}),ct("Hmm",0,0,function(){return""+this.hours()+It(this.minutes(),2)}),ct("Hmmss",0,0,function(){return""+this.hours()+It(this.minutes(),2)+It(this.seconds(),2)}),Or("a",!0),Or("A",!1),Rt("hour","h"),ye("hour",13),Te("a",ti),Te("A",ti),Te("H",_e),Te("h",_e),Te("k",_e),Te("HH",_e,Ut),Te("hh",_e,Ut),Te("kk",_e,Ut),Te("hmm",Ce),Te("hmmss",un),Te("Hmm",Ce),Te("Hmmss",un),_n(["H","HH"],3),_n(["k","kk"],function(A,F,G){var st=K(A);F[3]=st===24?0:st}),_n(["a","A"],function(A,F,G){G._isPm=G._locale.isPM(A),G._meridiem=A}),_n(["h","hh"],function(A,F,G){F[3]=K(A),q(G).bigHour=!0}),_n("hmm",function(A,F,G){var st=A.length-2;F[3]=K(A.substr(0,st)),F[4]=K(A.substr(st)),q(G).bigHour=!0}),_n("hmmss",function(A,F,G){var st=A.length-4,qt=A.length-2;F[3]=K(A.substr(0,st)),F[4]=K(A.substr(st,2)),F[5]=K(A.substr(qt)),q(G).bigHour=!0}),_n("Hmm",function(A,F,G){var st=A.length-2;F[3]=K(A.substr(0,st)),F[4]=K(A.substr(st))}),_n("Hmmss",function(A,F,G){var st=A.length-4,qt=A.length-2;F[3]=K(A.substr(0,st)),F[4]=K(A.substr(st,2)),F[5]=K(A.substr(qt))});var Pr,Fi=Tn("Hours",!0),fi={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:qn,monthsShort:Yn,week:{dow:0,doy:6},weekdays:Rn,weekdaysMin:va,weekdaysShort:No,meridiemParse:/[ap]\.?m?\.?/i},nr={},qr={};function _a(A){return A&&A.toLowerCase().replace("_","-")}function ei(A){var F=null;if(!nr[A]&&r&&r.exports)try{F=Pr._abbr,o(1748)("./"+A),ba(F)}catch{}return nr[A]}function ba(A,F){var G;return A&&((G=T(F)?di(A):mo(A,F))?Pr=G:typeof console!="undefined"&&console.warn&&console.warn("Locale "+A+" not found. Did you forget to load it?")),Pr._abbr}function mo(A,F){if(F===null)return delete nr[A],null;var G,st=fi;if(F.abbr=A,nr[A]!=null)Ht("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),st=nr[A]._config;else if(F.parentLocale!=null)if(nr[F.parentLocale]!=null)st=nr[F.parentLocale]._config;else{if((G=ei(F.parentLocale))==null)return qr[F.parentLocale]||(qr[F.parentLocale]=[]),qr[F.parentLocale].push({name:A,config:F}),null;st=G._config}return nr[A]=new pe(ge(st,F)),qr[A]&&qr[A].forEach(function(qt){mo(qt.name,qt.config)}),ba(A),nr[A]}function di(A){var F;if(A&&A._locale&&A._locale._abbr&&(A=A._locale._abbr),!A)return Pr;if(!p(A)){if(F=ei(A))return F;A=[A]}return function(G){for(var st,qt,fe,we,Ee=0;Ee<G.length;){for(st=(we=_a(G[Ee]).split("-")).length,qt=(qt=_a(G[Ee+1]))?qt.split("-"):null;0<st;){if(fe=ei(we.slice(0,st).join("-")))return fe;if(qt&&qt.length>=st&&ht(we,qt,!0)>=st-1)break;st--}Ee++}return Pr}(A)}function en(A){var F,G=A._a;return G&&q(A).overflow===-2&&(F=G[1]<0||11<G[1]?1:G[2]<1||G[2]>Nr(G[0],G[1])?2:G[3]<0||24<G[3]||G[3]===24&&(G[4]!==0||G[5]!==0||G[6]!==0)?3:G[4]<0||59<G[4]?4:G[5]<0||59<G[5]?5:G[6]<0||999<G[6]?6:-1,q(A)._overflowDayOfYear&&(F<0||2<F)&&(F=2),q(A)._overflowWeeks&&F===-1&&(F=7),q(A)._overflowWeekday&&F===-1&&(F=8),q(A).overflow=F),A}function Xn(A,F,G){return A!=null?A:F!=null?F:G}function An(A){var F,G,st,qt,fe,we=[];if(!A._d){var Ee,Me;for(Ee=A,Me=new Date(y.now()),st=Ee._useUTC?[Me.getUTCFullYear(),Me.getUTCMonth(),Me.getUTCDate()]:[Me.getFullYear(),Me.getMonth(),Me.getDate()],A._w&&A._a[2]==null&&A._a[1]==null&&function(Pe){var We,kn,pn,lr,fr,Br,cr,ka;if((We=Pe._w).GG!=null||We.W!=null||We.E!=null)fr=1,Br=4,kn=Xn(We.GG,Pe._a[0],ai(Dn(),1,4).year),pn=Xn(We.W,1),((lr=Xn(We.E,1))<1||7<lr)&&(ka=!0);else{fr=Pe._locale._week.dow,Br=Pe._locale._week.doy;var Us=ai(Dn(),fr,Br);kn=Xn(We.gg,Pe._a[0],Us.year),pn=Xn(We.w,Us.week),We.d!=null?((lr=We.d)<0||6<lr)&&(ka=!0):We.e!=null?(lr=We.e+fr,(We.e<0||6<We.e)&&(ka=!0)):lr=fr}pn<1||pn>gr(kn,fr,Br)?q(Pe)._overflowWeeks=!0:ka!=null?q(Pe)._overflowWeekday=!0:(cr=yn(kn,pn,lr,fr,Br),Pe._a[0]=cr.year,Pe._dayOfYear=cr.dayOfYear)}(A),A._dayOfYear!=null&&(fe=Xn(A._a[0],st[0]),(A._dayOfYear>cn(fe)||A._dayOfYear===0)&&(q(A)._overflowDayOfYear=!0),G=ln(fe,0,A._dayOfYear),A._a[1]=G.getUTCMonth(),A._a[2]=G.getUTCDate()),F=0;F<3&&A._a[F]==null;++F)A._a[F]=we[F]=st[F];for(;F<7;F++)A._a[F]=we[F]=A._a[F]==null?F===2?1:0:A._a[F];A._a[3]===24&&A._a[4]===0&&A._a[5]===0&&A._a[6]===0&&(A._nextDay=!0,A._a[3]=0),A._d=(A._useUTC?ln:function(Pe,We,kn,pn,lr,fr,Br){var cr;return Pe<100&&0<=Pe?(cr=new Date(Pe+400,We,kn,pn,lr,fr,Br),isFinite(cr.getFullYear())&&cr.setFullYear(Pe)):cr=new Date(Pe,We,kn,pn,lr,fr,Br),cr}).apply(null,we),qt=A._useUTC?A._d.getUTCDay():A._d.getDay(),A._tzm!=null&&A._d.setUTCMinutes(A._d.getUTCMinutes()-A._tzm),A._nextDay&&(A._a[3]=24),A._w&&A._w.d!==void 0&&A._w.d!==qt&&(q(A).weekdayMismatch=!0)}}var Be=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Kn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,Xr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Xt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Pi=/^\/?Date\((\-?\d+)/i;function da(A){var F,G,st,qt,fe,we,Ee=A._i,Me=Be.exec(Ee)||Kn.exec(Ee);if(Me){for(q(A).iso=!0,F=0,G=Xr.length;F<G;F++)if(Xr[F][1].exec(Me[1])){qt=Xr[F][0],st=Xr[F][2]!==!1;break}if(qt==null)return void(A._isValid=!1);if(Me[3]){for(F=0,G=Xt.length;F<G;F++)if(Xt[F][1].exec(Me[3])){fe=(Me[2]||" ")+Xt[F][0];break}if(fe==null)return void(A._isValid=!1)}if(!st&&fe!=null)return void(A._isValid=!1);if(Me[4]){if(!mt.exec(Me[4]))return void(A._isValid=!1);we="Z"}A._f=qt+(fe||"")+(we||""),Lo(A)}else A._isValid=!1}var Xa=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Oo(A){var F,G,st,qt=Xa.exec(A._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(qt){var fe=function(we,Ee,Me,Pe,We,kn){var pn=[function(lr){var fr=parseInt(lr,10);return fr<=49?2e3+fr:fr<=999?1900+fr:fr}(we),Yn.indexOf(Ee),parseInt(Me,10),parseInt(Pe,10),parseInt(We,10)];return kn&&pn.push(parseInt(kn,10)),pn}(qt[4],qt[3],qt[2],qt[5],qt[6],qt[7]);if(G=fe,st=A,(F=qt[1])&&No.indexOf(F)!==new Date(G[0],G[1],G[2]).getDay()&&(q(st).weekdayMismatch=!0,!(st._isValid=!1)))return;A._a=fe,A._tzm=function(we,Ee,Me){if(we)return vo[we];if(Ee)return 0;var Pe=parseInt(Me,10),We=Pe%100;return(Pe-We)/100*60+We}(qt[8],qt[9],qt[10]),A._d=ln.apply(null,A._a),A._d.setUTCMinutes(A._d.getUTCMinutes()-A._tzm),q(A).rfc2822=!0}else A._isValid=!1}function Lo(A){if(A._f!==y.ISO_8601)if(A._f!==y.RFC_2822){A._a=[],q(A).empty=!0;var F,G,st,qt,fe,we,Ee,Me,Pe=""+A._i,We=Pe.length,kn=0;for(st=Nt(A._f,A._locale).match($e)||[],F=0;F<st.length;F++)qt=st[F],(G=(Pe.match(tn(qt,A))||[])[0])&&(0<(fe=Pe.substr(0,Pe.indexOf(G))).length&&q(A).unusedInput.push(fe),Pe=Pe.slice(Pe.indexOf(G)+G.length),kn+=G.length),Kt[qt]?(G?q(A).empty=!1:q(A).unusedTokens.push(qt),we=qt,Me=A,(Ee=G)!=null&&I(Ir,we)&&Ir[we](Ee,Me._a,Me,we)):A._strict&&!G&&q(A).unusedTokens.push(qt);q(A).charsLeftOver=We-kn,0<Pe.length&&q(A).unusedInput.push(Pe),A._a[3]<=12&&q(A).bigHour===!0&&0<A._a[3]&&(q(A).bigHour=void 0),q(A).parsedDateParts=A._a.slice(0),q(A).meridiem=A._meridiem,A._a[3]=function(pn,lr,fr){var Br;return fr==null?lr:pn.meridiemHour!=null?pn.meridiemHour(lr,fr):(pn.isPM!=null&&((Br=pn.isPM(fr))&&lr<12&&(lr+=12),Br||lr!==12||(lr=0)),lr)}(A._locale,A._a[3],A._meridiem),An(A),en(A)}else Oo(A);else da(A)}function Vr(A){var F,G,st,qt,fe=A._i,we=A._f;return A._locale=A._locale||di(A._l),fe===null||we===void 0&&fe===""?X({nullInput:!0}):(typeof fe=="string"&&(A._i=fe=A._locale.preparse(fe)),Ct(fe)?new ut(en(fe)):(D(fe)?A._d=fe:p(we)?function(Ee){var Me,Pe,We,kn,pn;if(Ee._f.length===0)return q(Ee).invalidFormat=!0,Ee._d=new Date(NaN);for(kn=0;kn<Ee._f.length;kn++)pn=0,Me=tt({},Ee),Ee._useUTC!=null&&(Me._useUTC=Ee._useUTC),Me._f=Ee._f[kn],Lo(Me),V(Me)&&(pn+=q(Me).charsLeftOver,pn+=10*q(Me).unusedTokens.length,q(Me).score=pn,(We==null||pn<We)&&(We=pn,Pe=Me));z(Ee,Pe||Me)}(A):we?Lo(A):T(G=(F=A)._i)?F._d=new Date(y.now()):D(G)?F._d=new Date(G.valueOf()):typeof G=="string"?(st=F,(qt=Pi.exec(st._i))===null?(da(st),st._isValid===!1&&(delete st._isValid,Oo(st),st._isValid===!1&&(delete st._isValid,y.createFromInputFallback(st)))):st._d=new Date(+qt[1])):p(G)?(F._a=O(G.slice(0),function(Ee){return parseInt(Ee,10)}),An(F)):b(G)?function(Ee){if(!Ee._d){var Me=oe(Ee._i);Ee._a=O([Me.year,Me.month,Me.day||Me.date,Me.hour,Me.minute,Me.second,Me.millisecond],function(Pe){return Pe&&parseInt(Pe,10)}),An(Ee)}}(F):k(G)?F._d=new Date(G):y.createFromInputFallback(F),V(A)||(A._d=null),A))}function na(A,F,G,st,qt){var fe,we={};return G!==!0&&G!==!1||(st=G,G=void 0),(b(A)&&function(Ee){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(Ee).length===0;var Me;for(Me in Ee)if(Ee.hasOwnProperty(Me))return!1;return!0}(A)||p(A)&&A.length===0)&&(A=void 0),we._isAMomentObject=!0,we._useUTC=we._isUTC=qt,we._l=G,we._i=A,we._f=F,we._strict=st,(fe=new ut(en(Vr(we))))._nextDay&&(fe.add(1,"d"),fe._nextDay=void 0),fe}function Dn(A,F,G,st){return na(A,F,G,st,!1)}y.createFromInputFallback=St("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(A){A._d=new Date(A._i+(A._useUTC?" UTC":""))}),y.ISO_8601=function(){},y.RFC_2822=function(){};var Fa=St("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var A=Dn.apply(null,arguments);return this.isValid()&&A.isValid()?A<this?this:A:X()}),Ka=St("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var A=Dn.apply(null,arguments);return this.isValid()&&A.isValid()?this<A?this:A:X()});function yr(A,F){var G,st;if(F.length===1&&p(F[0])&&(F=F[0]),!F.length)return Dn();for(G=F[0],st=1;st<F.length;++st)F[st].isValid()&&!F[st][A](G)||(G=F[st]);return G}var Cr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function xi(A){var F=oe(A),G=F.year||0,st=F.quarter||0,qt=F.month||0,fe=F.week||F.isoWeek||0,we=F.day||0,Ee=F.hour||0,Me=F.minute||0,Pe=F.second||0,We=F.millisecond||0;this._isValid=function(kn){for(var pn in kn)if(Xe.call(Cr,pn)===-1||kn[pn]!=null&&isNaN(kn[pn]))return!1;for(var lr=!1,fr=0;fr<Cr.length;++fr)if(kn[Cr[fr]]){if(lr)return!1;parseFloat(kn[Cr[fr]])!==K(kn[Cr[fr]])&&(lr=!0)}return!0}(F),this._milliseconds=+We+1e3*Pe+6e4*Me+1e3*Ee*60*60,this._days=+we+7*fe,this._months=+qt+3*st+12*G,this._data={},this._locale=di(),this._bubble()}function ni(A){return A instanceof xi}function Hr(A){return A<0?-1*Math.round(-1*A):Math.round(A)}function $r(A,F){ct(A,0,0,function(){var G=this.utcOffset(),st="+";return G<0&&(G=-G,st="-"),st+It(~~(G/60),2)+F+It(~~G%60,2)})}$r("Z",":"),$r("ZZ",""),Te("Z",Ze),Te("ZZ",Ze),_n(["Z","ZZ"],function(A,F,G){G._useUTC=!0,G._tzm=Kr(Ze,A)});var pi=/([\+\-]|\d\d)/gi;function Kr(A,F){var G=(F||"").match(A);if(G===null)return null;var st=((G[G.length-1]||[])+"").match(pi)||["-",0,0],qt=60*st[1]+K(st[2]);return qt===0?0:st[0]==="+"?qt:-qt}function ra(A,F){var G,st;return F._isUTC?(G=F.clone(),st=(Ct(A)||D(A)?A.valueOf():Dn(A).valueOf())-G.valueOf(),G._d.setTime(G._d.valueOf()+st),y.updateOffset(G,!1),G):Dn(A).local()}function Vi(A){return 15*-Math.round(A._d.getTimezoneOffset()/15)}function Yi(){return!!this.isValid()&&this._isUTC&&this._offset===0}y.updateOffset=function(){};var _o=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ft=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function je(A,F){var G,st,qt,fe=A,we=null;return ni(A)?fe={ms:A._milliseconds,d:A._days,M:A._months}:k(A)?(fe={},F?fe[F]=A:fe.milliseconds=A):(we=_o.exec(A))?(G=we[1]==="-"?-1:1,fe={y:0,d:K(we[2])*G,h:K(we[3])*G,m:K(we[4])*G,s:K(we[5])*G,ms:K(Hr(1e3*we[6]))*G}):(we=Ft.exec(A))?(G=we[1]==="-"?-1:1,fe={y:Fe(we[2],G),M:Fe(we[3],G),w:Fe(we[4],G),d:Fe(we[5],G),h:Fe(we[6],G),m:Fe(we[7],G),s:Fe(we[8],G)}):fe==null?fe={}:typeof fe=="object"&&("from"in fe||"to"in fe)&&(qt=function(Ee,Me){var Pe;return Ee.isValid()&&Me.isValid()?(Me=ra(Me,Ee),Ee.isBefore(Me)?Pe=mr(Ee,Me):((Pe=mr(Me,Ee)).milliseconds=-Pe.milliseconds,Pe.months=-Pe.months),Pe):{milliseconds:0,months:0}}(Dn(fe.from),Dn(fe.to)),(fe={}).ms=qt.milliseconds,fe.M=qt.months),st=new xi(fe),ni(A)&&I(A,"_locale")&&(st._locale=A._locale),st}function Fe(A,F){var G=A&&parseFloat(A.replace(",","."));return(isNaN(G)?0:G)*F}function mr(A,F){var G={};return G.months=F.month()-A.month()+12*(F.year()-A.year()),A.clone().add(G.months,"M").isAfter(F)&&--G.months,G.milliseconds=+F-+A.clone().add(G.months,"M"),G}function br(A,F){return function(G,st){var qt;return st===null||isNaN(+st)||(Ht(F,"moment()."+F+"(period, number) is deprecated. Please use moment()."+F+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),qt=G,G=st,st=qt),ki(this,je(G=typeof G=="string"?+G:G,st),A),this}}function ki(A,F,G,st){var qt=F._milliseconds,fe=Hr(F._days),we=Hr(F._months);A.isValid()&&(st=st==null||st,we&&Gn(A,Hn(A,"Month")+we*G),fe&&$n(A,"Date",Hn(A,"Date")+fe*G),qt&&A._d.setTime(A._d.valueOf()+qt*G),st&&y.updateOffset(A,fe||we))}je.fn=xi.prototype,je.invalid=function(){return je(NaN)};var ri=br(1,"add"),wc=br(-1,"subtract");function Ti(A,F){var G=12*(F.year()-A.year())+(F.month()-A.month()),st=A.clone().add(G,"months");return-(G+(F-st<0?(F-st)/(st-A.clone().add(G-1,"months")):(F-st)/(A.clone().add(G+1,"months")-st)))||0}function Ni(A){var F;return A===void 0?this._locale._abbr:((F=di(A))!=null&&(this._locale=F),this)}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var xc=St("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(A){return A===void 0?this.localeData():this.locale(A)});function Qa(){return this._locale}var du=126227808e5;function bo(A,F){return(A%F+F)%F}function pu(A,F,G){return A<100&&0<=A?new Date(A+400,F,G)-du:new Date(A,F,G).valueOf()}function Gi(A,F,G){return A<100&&0<=A?Date.UTC(A+400,F,G)-du:Date.UTC(A,F,G)}function ii(A,F){ct(0,[A,A.length],0,F)}function yl(A,F,G,st,qt){var fe;return A==null?ai(this,st,qt).year:((fe=gr(A,st,qt))<F&&(F=fe),function(we,Ee,Me,Pe,We){var kn=yn(we,Ee,Me,Pe,We),pn=ln(kn.year,0,kn.dayOfYear);return this.year(pn.getUTCFullYear()),this.month(pn.getUTCMonth()),this.date(pn.getUTCDate()),this}.call(this,A,F,G,st,qt))}ct(0,["gg",2],0,function(){return this.weekYear()%100}),ct(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ii("gggg","weekYear"),ii("ggggg","weekYear"),ii("GGGG","isoWeekYear"),ii("GGGGG","isoWeekYear"),Rt("weekYear","gg"),Rt("isoWeekYear","GG"),ye("weekYear",1),ye("isoWeekYear",1),Te("G",Ye),Te("g",Ye),Te("GG",_e,Ut),Te("gg",_e,Ut),Te("GGGG",Le,ae),Te("gggg",Le,ae),Te("GGGGG",ke,Qe),Te("ggggg",ke,Qe),tr(["gggg","ggggg","GGGG","GGGGG"],function(A,F,G,st){F[st.substr(0,2)]=K(A)}),tr(["gg","GG"],function(A,F,G,st){F[st]=y.parseTwoDigitYear(A)}),ct("Q",0,"Qo","quarter"),Rt("quarter","Q"),ye("quarter",7),Te("Q",Vt),_n("Q",function(A,F){F[1]=3*(K(A)-1)}),ct("D",["DD",2],"Do","date"),Rt("date","D"),ye("date",9),Te("D",_e),Te("DD",_e,Ut),Te("Do",function(A,F){return A?F._dayOfMonthOrdinalParse||F._ordinalParse:F._dayOfMonthOrdinalParseLenient}),_n(["D","DD"],2),_n("Do",function(A,F){F[2]=K(A.match(_e)[0])});var ml=Tn("Date",!0);ct("DDD",["DDDD",3],"DDDo","dayOfYear"),Rt("dayOfYear","DDD"),ye("dayOfYear",4),Te("DDD",Ve),Te("DDDD",Ot),_n(["DDD","DDDD"],function(A,F,G){G._dayOfYear=K(A)}),ct("m",["mm",2],0,"minute"),Rt("minute","m"),ye("minute",14),Te("m",_e),Te("mm",_e,Ut),_n(["m","mm"],4);var vl=Tn("Minutes",!1);ct("s",["ss",2],0,"second"),Rt("second","s"),ye("second",15),Te("s",_e),Te("ss",_e,Ut),_n(["s","ss"],5);var Ja,_l=Tn("Seconds",!1);for(ct("S",0,0,function(){return~~(this.millisecond()/100)}),ct(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ct(0,["SSS",3],0,"millisecond"),ct(0,["SSSS",4],0,function(){return 10*this.millisecond()}),ct(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),ct(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),ct(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),ct(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),ct(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Rt("millisecond","ms"),ye("millisecond",16),Te("S",Ve,Vt),Te("SS",Ve,Ut),Te("SSS",Ve,Ot),Ja="SSSS";Ja.length<=9;Ja+="S")Te(Ja,Je);function bl(A,F){F[6]=K(1e3*("0."+A))}for(Ja="S";Ja.length<=9;Ja+="S")_n(Ja,bl);var to=Tn("Milliseconds",!1);ct("z",0,0,"zoneAbbr"),ct("zz",0,0,"zoneName");var Ie=ut.prototype;function Zh(A){return A}Ie.add=ri,Ie.calendar=function(A,F){var G=A||Dn(),st=ra(G,this).startOf("day"),qt=y.calendarFormat(this,st)||"sameElse",fe=F&&(Pt(F[qt])?F[qt].call(this,G):F[qt]);return this.format(fe||this.localeData().calendar(qt,this,Dn(G)))},Ie.clone=function(){return new ut(this)},Ie.diff=function(A,F,G){var st,qt,fe;if(!this.isValid())return NaN;if(!(st=ra(A,this)).isValid())return NaN;switch(qt=6e4*(st.utcOffset()-this.utcOffset()),F=Gt(F)){case"year":fe=Ti(this,st)/12;break;case"month":fe=Ti(this,st);break;case"quarter":fe=Ti(this,st)/3;break;case"second":fe=(this-st)/1e3;break;case"minute":fe=(this-st)/6e4;break;case"hour":fe=(this-st)/36e5;break;case"day":fe=(this-st-qt)/864e5;break;case"week":fe=(this-st-qt)/6048e5;break;default:fe=this-st}return G?fe:et(fe)},Ie.endOf=function(A){var F;if((A=Gt(A))===void 0||A==="millisecond"||!this.isValid())return this;var G=this._isUTC?Gi:pu;switch(A){case"year":F=G(this.year()+1,0,1)-1;break;case"quarter":F=G(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":F=G(this.year(),this.month()+1,1)-1;break;case"week":F=G(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":F=G(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":F=G(this.year(),this.month(),this.date()+1)-1;break;case"hour":F=this._d.valueOf(),F+=36e5-bo(F+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":F=this._d.valueOf(),F+=6e4-bo(F,6e4)-1;break;case"second":F=this._d.valueOf(),F+=1e3-bo(F,1e3)-1}return this._d.setTime(F),y.updateOffset(this,!0),this},Ie.format=function(A){A||(A=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var F=ee(this,A);return this.localeData().postformat(F)},Ie.from=function(A,F){return this.isValid()&&(Ct(A)&&A.isValid()||Dn(A).isValid())?je({to:this,from:A}).locale(this.locale()).humanize(!F):this.localeData().invalidDate()},Ie.fromNow=function(A){return this.from(Dn(),A)},Ie.to=function(A,F){return this.isValid()&&(Ct(A)&&A.isValid()||Dn(A).isValid())?je({from:this,to:A}).locale(this.locale()).humanize(!F):this.localeData().invalidDate()},Ie.toNow=function(A){return this.to(Dn(),A)},Ie.get=function(A){return Pt(this[A=Gt(A)])?this[A]():this},Ie.invalidAt=function(){return q(this).overflow},Ie.isAfter=function(A,F){var G=Ct(A)?A:Dn(A);return!(!this.isValid()||!G.isValid())&&((F=Gt(F)||"millisecond")==="millisecond"?this.valueOf()>G.valueOf():G.valueOf()<this.clone().startOf(F).valueOf())},Ie.isBefore=function(A,F){var G=Ct(A)?A:Dn(A);return!(!this.isValid()||!G.isValid())&&((F=Gt(F)||"millisecond")==="millisecond"?this.valueOf()<G.valueOf():this.clone().endOf(F).valueOf()<G.valueOf())},Ie.isBetween=function(A,F,G,st){var qt=Ct(A)?A:Dn(A),fe=Ct(F)?F:Dn(F);return!!(this.isValid()&&qt.isValid()&&fe.isValid())&&((st=st||"()")[0]==="("?this.isAfter(qt,G):!this.isBefore(qt,G))&&(st[1]===")"?this.isBefore(fe,G):!this.isAfter(fe,G))},Ie.isSame=function(A,F){var G,st=Ct(A)?A:Dn(A);return!(!this.isValid()||!st.isValid())&&((F=Gt(F)||"millisecond")==="millisecond"?this.valueOf()===st.valueOf():(G=st.valueOf(),this.clone().startOf(F).valueOf()<=G&&G<=this.clone().endOf(F).valueOf()))},Ie.isSameOrAfter=function(A,F){return this.isSame(A,F)||this.isAfter(A,F)},Ie.isSameOrBefore=function(A,F){return this.isSame(A,F)||this.isBefore(A,F)},Ie.isValid=function(){return V(this)},Ie.lang=xc,Ie.locale=Ni,Ie.localeData=Qa,Ie.max=Ka,Ie.min=Fa,Ie.parsingFlags=function(){return z({},q(this))},Ie.set=function(A,F){if(typeof A=="object")for(var G=function(qt){var fe=[];for(var we in qt)fe.push({unit:we,priority:le[we]});return fe.sort(function(Ee,Me){return Ee.priority-Me.priority}),fe}(A=oe(A)),st=0;st<G.length;st++)this[G[st].unit](A[G[st].unit]);else if(Pt(this[A=Gt(A)]))return this[A](F);return this},Ie.startOf=function(A){var F;if((A=Gt(A))===void 0||A==="millisecond"||!this.isValid())return this;var G=this._isUTC?Gi:pu;switch(A){case"year":F=G(this.year(),0,1);break;case"quarter":F=G(this.year(),this.month()-this.month()%3,1);break;case"month":F=G(this.year(),this.month(),1);break;case"week":F=G(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":F=G(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":F=G(this.year(),this.month(),this.date());break;case"hour":F=this._d.valueOf(),F-=bo(F+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":F=this._d.valueOf(),F-=bo(F,6e4);break;case"second":F=this._d.valueOf(),F-=bo(F,1e3)}return this._d.setTime(F),y.updateOffset(this,!0),this},Ie.subtract=wc,Ie.toArray=function(){var A=this;return[A.year(),A.month(),A.date(),A.hour(),A.minute(),A.second(),A.millisecond()]},Ie.toObject=function(){var A=this;return{years:A.year(),months:A.month(),date:A.date(),hours:A.hours(),minutes:A.minutes(),seconds:A.seconds(),milliseconds:A.milliseconds()}},Ie.toDate=function(){return new Date(this.valueOf())},Ie.toISOString=function(A){if(!this.isValid())return null;var F=A!==!0,G=F?this.clone().utc():this;return G.year()<0||9999<G.year()?ee(G,F?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Pt(Date.prototype.toISOString)?F?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ee(G,"Z")):ee(G,F?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ie.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var A="moment",F="";this.isLocal()||(A=this.utcOffset()===0?"moment.utc":"moment.parseZone",F="Z");var G="["+A+'("]',st=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",qt=F+'[")]';return this.format(G+st+"-MM-DD[T]HH:mm:ss.SSS"+qt)},Ie.toJSON=function(){return this.isValid()?this.toISOString():null},Ie.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ie.unix=function(){return Math.floor(this.valueOf()/1e3)},Ie.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ie.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ie.year=Cn,Ie.isLeapYear=function(){return gn(this.year())},Ie.weekYear=function(A){return yl.call(this,A,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ie.isoWeekYear=function(A){return yl.call(this,A,this.isoWeek(),this.isoWeekday(),1,4)},Ie.quarter=Ie.quarters=function(A){return A==null?Math.ceil((this.month()+1)/3):this.month(3*(A-1)+this.month()%3)},Ie.month=Zn,Ie.daysInMonth=function(){return Nr(this.year(),this.month())},Ie.week=Ie.weeks=function(A){var F=this.localeData().week(this);return A==null?F:this.add(7*(A-F),"d")},Ie.isoWeek=Ie.isoWeeks=function(A){var F=ai(this,1,4).week;return A==null?F:this.add(7*(A-F),"d")},Ie.weeksInYear=function(){var A=this.localeData()._week;return gr(this.year(),A.dow,A.doy)},Ie.isoWeeksInYear=function(){return gr(this.year(),1,4)},Ie.date=ml,Ie.day=Ie.days=function(A){if(!this.isValid())return A!=null?this:NaN;var F,G,st=this._isUTC?this._d.getUTCDay():this._d.getDay();return A!=null?(F=A,G=this.localeData(),A=typeof F!="string"?F:isNaN(F)?typeof(F=G.weekdaysParse(F))=="number"?F:null:parseInt(F,10),this.add(A-st,"d")):st},Ie.weekday=function(A){if(!this.isValid())return A!=null?this:NaN;var F=(this.day()+7-this.localeData()._week.dow)%7;return A==null?F:this.add(A-F,"d")},Ie.isoWeekday=function(A){if(!this.isValid())return A!=null?this:NaN;if(A==null)return this.day()||7;var F,G,st=(F=A,G=this.localeData(),typeof F=="string"?G.weekdaysParse(F)%7||7:isNaN(F)?null:F);return this.day(this.day()%7?st:st-7)},Ie.dayOfYear=function(A){var F=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return A==null?F:this.add(A-F,"d")},Ie.hour=Ie.hours=Fi,Ie.minute=Ie.minutes=vl,Ie.second=Ie.seconds=_l,Ie.millisecond=Ie.milliseconds=to,Ie.utcOffset=function(A,F,G){var st,qt=this._offset||0;if(!this.isValid())return A!=null?this:NaN;if(A==null)return this._isUTC?qt:Vi(this);if(typeof A=="string"){if((A=Kr(Ze,A))===null)return this}else Math.abs(A)<16&&!G&&(A*=60);return!this._isUTC&&F&&(st=Vi(this)),this._offset=A,this._isUTC=!0,st!=null&&this.add(st,"m"),qt!==A&&(!F||this._changeInProgress?ki(this,je(A-qt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this},Ie.utc=function(A){return this.utcOffset(0,A)},Ie.local=function(A){return this._isUTC&&(this.utcOffset(0,A),this._isUTC=!1,A&&this.subtract(Vi(this),"m")),this},Ie.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var A=Kr(Ge,this._i);A!=null?this.utcOffset(A):this.utcOffset(0,!0)}return this},Ie.hasAlignedHourOffset=function(A){return!!this.isValid()&&(A=A?Dn(A).utcOffset():0,(this.utcOffset()-A)%60==0)},Ie.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ie.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ie.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ie.isUtc=Yi,Ie.isUTC=Yi,Ie.zoneAbbr=function(){return this._isUTC?"UTC":""},Ie.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ie.dates=St("dates accessor is deprecated. Use date instead.",ml),Ie.months=St("months accessor is deprecated. Use month instead",Zn),Ie.years=St("years accessor is deprecated. Use year instead",Cn),Ie.zone=St("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(A,F){return A!=null?(typeof A!="string"&&(A=-A),this.utcOffset(A,F),this):-this.utcOffset()}),Ie.isDSTShifted=St("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!T(this._isDSTShifted))return this._isDSTShifted;var A={};if(tt(A,this),(A=Vr(A))._a){var F=A._isUTC?H(A._a):Dn(A._a);this._isDSTShifted=this.isValid()&&0<ht(A._a,F.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Lr=pe.prototype;function gu(A,F,G,st){var qt=di(),fe=H().set(st,F);return qt[G](fe,A)}function yu(A,F,G){if(k(A)&&(F=A,A=void 0),A=A||"",F!=null)return gu(A,F,G,"month");var st,qt=[];for(st=0;st<12;st++)qt[st]=gu(A,st,G,"month");return qt}function wl(A,F,G,st){typeof A=="boolean"?k(F)&&(G=F,F=void 0):(F=A,A=!1,k(G=F)&&(G=F,F=void 0)),F=F||"";var qt,fe=di(),we=A?fe._week.dow:0;if(G!=null)return gu(F,(G+we)%7,st,"day");var Ee=[];for(qt=0;qt<7;qt++)Ee[qt]=gu(F,(qt+we)%7,st,"day");return Ee}Lr.calendar=function(A,F,G){var st=this._calendar[A]||this._calendar.sameElse;return Pt(st)?st.call(F,G):st},Lr.longDateFormat=function(A){var F=this._longDateFormat[A],G=this._longDateFormat[A.toUpperCase()];return F||!G?F:(this._longDateFormat[A]=G.replace(/MMMM|MM|DD|dddd/g,function(st){return st.slice(1)}),this._longDateFormat[A])},Lr.invalidDate=function(){return this._invalidDate},Lr.ordinal=function(A){return this._ordinal.replace("%d",A)},Lr.preparse=Zh,Lr.postformat=Zh,Lr.relativeTime=function(A,F,G,st){var qt=this._relativeTime[G];return Pt(qt)?qt(A,F,G,st):qt.replace(/%d/i,A)},Lr.pastFuture=function(A,F){var G=this._relativeTime[0<A?"future":"past"];return Pt(G)?G(F):G.replace(/%s/i,F)},Lr.set=function(A){var F,G;for(G in A)Pt(F=A[G])?this[G]=F:this["_"+G]=F;this._config=A,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Lr.months=function(A,F){return A?p(this._months)?this._months[A.month()]:this._months[(this._months.isFormat||En).test(F)?"format":"standalone"][A.month()]:p(this._months)?this._months:this._months.standalone},Lr.monthsShort=function(A,F){return A?p(this._monthsShort)?this._monthsShort[A.month()]:this._monthsShort[En.test(F)?"format":"standalone"][A.month()]:p(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Lr.monthsParse=function(A,F,G){var st,qt,fe;if(this._monthsParseExact)return function(we,Ee,Me){var Pe,We,kn,pn=we.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Pe=0;Pe<12;++Pe)kn=H([2e3,Pe]),this._shortMonthsParse[Pe]=this.monthsShort(kn,"").toLocaleLowerCase(),this._longMonthsParse[Pe]=this.months(kn,"").toLocaleLowerCase();return Me?Ee==="MMM"?(We=Xe.call(this._shortMonthsParse,pn))!==-1?We:null:(We=Xe.call(this._longMonthsParse,pn))!==-1?We:null:Ee==="MMM"?(We=Xe.call(this._shortMonthsParse,pn))!==-1||(We=Xe.call(this._longMonthsParse,pn))!==-1?We:null:(We=Xe.call(this._longMonthsParse,pn))!==-1||(We=Xe.call(this._shortMonthsParse,pn))!==-1?We:null}.call(this,A,F,G);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),st=0;st<12;st++)if(qt=H([2e3,st]),G&&!this._longMonthsParse[st]&&(this._longMonthsParse[st]=new RegExp("^"+this.months(qt,"").replace(".","")+"$","i"),this._shortMonthsParse[st]=new RegExp("^"+this.monthsShort(qt,"").replace(".","")+"$","i")),G||this._monthsParse[st]||(fe="^"+this.months(qt,"")+"|^"+this.monthsShort(qt,""),this._monthsParse[st]=new RegExp(fe.replace(".",""),"i")),G&&F==="MMMM"&&this._longMonthsParse[st].test(A)||G&&F==="MMM"&&this._shortMonthsParse[st].test(A)||!G&&this._monthsParse[st].test(A))return st},Lr.monthsRegex=function(A){return this._monthsParseExact?(I(this,"_monthsRegex")||Bn.call(this),A?this._monthsStrictRegex:this._monthsRegex):(I(this,"_monthsRegex")||(this._monthsRegex=On),this._monthsStrictRegex&&A?this._monthsStrictRegex:this._monthsRegex)},Lr.monthsShortRegex=function(A){return this._monthsParseExact?(I(this,"_monthsRegex")||Bn.call(this),A?this._monthsShortStrictRegex:this._monthsShortRegex):(I(this,"_monthsShortRegex")||(this._monthsShortRegex=er),this._monthsShortStrictRegex&&A?this._monthsShortStrictRegex:this._monthsShortRegex)},Lr.week=function(A){return ai(A,this._week.dow,this._week.doy).week},Lr.firstDayOfYear=function(){return this._week.doy},Lr.firstDayOfWeek=function(){return this._week.dow},Lr.weekdays=function(A,F){var G=p(this._weekdays)?this._weekdays:this._weekdays[A&&A!==!0&&this._weekdays.isFormat.test(F)?"format":"standalone"];return A===!0?ea(G,this._week.dow):A?G[A.day()]:G},Lr.weekdaysMin=function(A){return A===!0?ea(this._weekdaysMin,this._week.dow):A?this._weekdaysMin[A.day()]:this._weekdaysMin},Lr.weekdaysShort=function(A){return A===!0?ea(this._weekdaysShort,this._week.dow):A?this._weekdaysShort[A.day()]:this._weekdaysShort},Lr.weekdaysParse=function(A,F,G){var st,qt,fe;if(this._weekdaysParseExact)return function(we,Ee,Me){var Pe,We,kn,pn=we.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Pe=0;Pe<7;++Pe)kn=H([2e3,1]).day(Pe),this._minWeekdaysParse[Pe]=this.weekdaysMin(kn,"").toLocaleLowerCase(),this._shortWeekdaysParse[Pe]=this.weekdaysShort(kn,"").toLocaleLowerCase(),this._weekdaysParse[Pe]=this.weekdays(kn,"").toLocaleLowerCase();return Me?Ee==="dddd"?(We=Xe.call(this._weekdaysParse,pn))!==-1?We:null:Ee==="ddd"?(We=Xe.call(this._shortWeekdaysParse,pn))!==-1?We:null:(We=Xe.call(this._minWeekdaysParse,pn))!==-1?We:null:Ee==="dddd"?(We=Xe.call(this._weekdaysParse,pn))!==-1||(We=Xe.call(this._shortWeekdaysParse,pn))!==-1||(We=Xe.call(this._minWeekdaysParse,pn))!==-1?We:null:Ee==="ddd"?(We=Xe.call(this._shortWeekdaysParse,pn))!==-1||(We=Xe.call(this._weekdaysParse,pn))!==-1||(We=Xe.call(this._minWeekdaysParse,pn))!==-1?We:null:(We=Xe.call(this._minWeekdaysParse,pn))!==-1||(We=Xe.call(this._weekdaysParse,pn))!==-1||(We=Xe.call(this._shortWeekdaysParse,pn))!==-1?We:null}.call(this,A,F,G);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),st=0;st<7;st++)if(qt=H([2e3,1]).day(st),G&&!this._fullWeekdaysParse[st]&&(this._fullWeekdaysParse[st]=new RegExp("^"+this.weekdays(qt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[st]=new RegExp("^"+this.weekdaysShort(qt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[st]=new RegExp("^"+this.weekdaysMin(qt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[st]||(fe="^"+this.weekdays(qt,"")+"|^"+this.weekdaysShort(qt,"")+"|^"+this.weekdaysMin(qt,""),this._weekdaysParse[st]=new RegExp(fe.replace(".",""),"i")),G&&F==="dddd"&&this._fullWeekdaysParse[st].test(A)||G&&F==="ddd"&&this._shortWeekdaysParse[st].test(A)||G&&F==="dd"&&this._minWeekdaysParse[st].test(A)||!G&&this._weekdaysParse[st].test(A))return st},Lr.weekdaysRegex=function(A){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Zr.call(this),A?this._weekdaysStrictRegex:this._weekdaysRegex):(I(this,"_weekdaysRegex")||(this._weekdaysRegex=oi),this._weekdaysStrictRegex&&A?this._weekdaysStrictRegex:this._weekdaysRegex)},Lr.weekdaysShortRegex=function(A){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Zr.call(this),A?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(I(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fr),this._weekdaysShortStrictRegex&&A?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Lr.weekdaysMinRegex=function(A){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Zr.call(this),A?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(I(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ur),this._weekdaysMinStrictRegex&&A?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Lr.isPM=function(A){return(A+"").toLowerCase().charAt(0)==="p"},Lr.meridiem=function(A,F,G){return 11<A?G?"pm":"PM":G?"am":"AM"},ba("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(A){var F=A%10;return A+(K(A%100/10)===1?"th":F===1?"st":F===2?"nd":F===3?"rd":"th")}}),y.lang=St("moment.lang is deprecated. Use moment.locale instead.",ba),y.langData=St("moment.langData is deprecated. Use moment.localeData instead.",di);var Pa=Math.abs;function Ei(A,F,G,st){var qt=je(F,G);return A._milliseconds+=st*qt._milliseconds,A._days+=st*qt._days,A._months+=st*qt._months,A._bubble()}function kc(A){return A<0?Math.floor(A):Math.ceil(A)}function Xh(A){return 4800*A/146097}function xl(A){return 146097*A/4800}function Bo(A){return function(){return this.as(A)}}var Kh=Bo("ms"),Jd=Bo("s"),Qp=Bo("m"),t0=Bo("h"),e0=Bo("d"),wa=Bo("w"),n0=Bo("M"),Qh=Bo("Q"),Jh=Bo("y");function Ro(A){return function(){return this.isValid()?this._data[A]:NaN}}var mu=Ro("milliseconds"),eo=Ro("seconds"),vu=Ro("minutes"),xa=Ro("hours"),zs=Ro("days"),kl=Ro("months"),Io=Ro("years"),Zi=Math.round,gi={ss:44,s:45,m:45,h:22,d:26,M:11},no=Math.abs;function Ya(A){return(0<A)-(A<0)||+A}function ia(){if(!this.isValid())return this.localeData().invalidDate();var A,F,G=no(this._milliseconds)/1e3,st=no(this._days),qt=no(this._months);F=et((A=et(G/60))/60),G%=60,A%=60;var fe=et(qt/12),we=qt%=12,Ee=st,Me=F,Pe=A,We=G?G.toFixed(3).replace(/\.?0+$/,""):"",kn=this.asSeconds();if(!kn)return"P0D";var pn=kn<0?"-":"",lr=Ya(this._months)!==Ya(kn)?"-":"",fr=Ya(this._days)!==Ya(kn)?"-":"",Br=Ya(this._milliseconds)!==Ya(kn)?"-":"";return pn+"P"+(fe?lr+fe+"Y":"")+(we?lr+we+"M":"")+(Ee?fr+Ee+"D":"")+(Me||Pe||We?"T":"")+(Me?Br+Me+"H":"")+(Pe?Br+Pe+"M":"")+(We?Br+We+"S":"")}var Wn=xi.prototype;return Wn.isValid=function(){return this._isValid},Wn.abs=function(){var A=this._data;return this._milliseconds=Pa(this._milliseconds),this._days=Pa(this._days),this._months=Pa(this._months),A.milliseconds=Pa(A.milliseconds),A.seconds=Pa(A.seconds),A.minutes=Pa(A.minutes),A.hours=Pa(A.hours),A.months=Pa(A.months),A.years=Pa(A.years),this},Wn.add=function(A,F){return Ei(this,A,F,1)},Wn.subtract=function(A,F){return Ei(this,A,F,-1)},Wn.as=function(A){if(!this.isValid())return NaN;var F,G,st=this._milliseconds;if((A=Gt(A))==="month"||A==="quarter"||A==="year")switch(F=this._days+st/864e5,G=this._months+Xh(F),A){case"month":return G;case"quarter":return G/3;case"year":return G/12}else switch(F=this._days+Math.round(xl(this._months)),A){case"week":return F/7+st/6048e5;case"day":return F+st/864e5;case"hour":return 24*F+st/36e5;case"minute":return 1440*F+st/6e4;case"second":return 86400*F+st/1e3;case"millisecond":return Math.floor(864e5*F)+st;default:throw new Error("Unknown unit "+A)}},Wn.asMilliseconds=Kh,Wn.asSeconds=Jd,Wn.asMinutes=Qp,Wn.asHours=t0,Wn.asDays=e0,Wn.asWeeks=wa,Wn.asMonths=n0,Wn.asQuarters=Qh,Wn.asYears=Jh,Wn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*K(this._months/12):NaN},Wn._bubble=function(){var A,F,G,st,qt,fe=this._milliseconds,we=this._days,Ee=this._months,Me=this._data;return 0<=fe&&0<=we&&0<=Ee||fe<=0&&we<=0&&Ee<=0||(fe+=864e5*kc(xl(Ee)+we),Ee=we=0),Me.milliseconds=fe%1e3,A=et(fe/1e3),Me.seconds=A%60,F=et(A/60),Me.minutes=F%60,G=et(F/60),Me.hours=G%24,Ee+=qt=et(Xh(we+=et(G/24))),we-=kc(xl(qt)),st=et(Ee/12),Ee%=12,Me.days=we,Me.months=Ee,Me.years=st,this},Wn.clone=function(){return je(this)},Wn.get=function(A){return A=Gt(A),this.isValid()?this[A+"s"]():NaN},Wn.milliseconds=mu,Wn.seconds=eo,Wn.minutes=vu,Wn.hours=xa,Wn.days=zs,Wn.weeks=function(){return et(this.days()/7)},Wn.months=kl,Wn.years=Io,Wn.humanize=function(A){if(!this.isValid())return this.localeData().invalidDate();var F,G,st,qt,fe,we,Ee,Me,Pe,We,kn=this.localeData(),pn=(F=!A,G=kn,st=je(this).abs(),qt=Zi(st.as("s")),fe=Zi(st.as("m")),we=Zi(st.as("h")),Ee=Zi(st.as("d")),Me=Zi(st.as("M")),Pe=Zi(st.as("y")),(We=qt<=gi.ss&&["s",qt]||qt<gi.s&&["ss",qt]||fe<=1&&["m"]||fe<gi.m&&["mm",fe]||we<=1&&["h"]||we<gi.h&&["hh",we]||Ee<=1&&["d"]||Ee<gi.d&&["dd",Ee]||Me<=1&&["M"]||Me<gi.M&&["MM",Me]||Pe<=1&&["y"]||["yy",Pe])[2]=F,We[3]=0<+this,We[4]=G,function(lr,fr,Br,cr,ka){return ka.relativeTime(fr||1,!!Br,lr,cr)}.apply(null,We));return A&&(pn=kn.pastFuture(+this,pn)),kn.postformat(pn)},Wn.toISOString=ia,Wn.toString=ia,Wn.toJSON=ia,Wn.locale=Ni,Wn.localeData=Qa,Wn.toIsoString=St("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ia),Wn.lang=xc,ct("X",0,0,"unix"),ct("x",0,0,"valueOf"),Te("x",Ye),Te("X",/[+-]?\d+(\.\d{1,3})?/),_n("X",function(A,F,G){G._d=new Date(1e3*parseFloat(A,10))}),_n("x",function(A,F,G){G._d=new Date(K(A))}),y.version="2.24.0",h=Dn,y.fn=Ie,y.min=function(){return yr("isBefore",[].slice.call(arguments,0))},y.max=function(){return yr("isAfter",[].slice.call(arguments,0))},y.now=function(){return Date.now?Date.now():+new Date},y.utc=H,y.unix=function(A){return Dn(1e3*A)},y.months=function(A,F){return yu(A,F,"months")},y.isDate=D,y.locale=ba,y.invalid=X,y.duration=je,y.isMoment=Ct,y.weekdays=function(A,F,G){return wl(A,F,G,"weekdays")},y.parseZone=function(){return Dn.apply(null,arguments).parseZone()},y.localeData=di,y.isDuration=ni,y.monthsShort=function(A,F){return yu(A,F,"monthsShort")},y.weekdaysMin=function(A,F,G){return wl(A,F,G,"weekdaysMin")},y.defineLocale=mo,y.updateLocale=function(A,F){if(F!=null){var G,st,qt=fi;(st=ei(A))!=null&&(qt=st._config),(G=new pe(F=ge(qt,F))).parentLocale=nr[A],nr[A]=G,ba(A)}else nr[A]!=null&&(nr[A].parentLocale!=null?nr[A]=nr[A].parentLocale:nr[A]!=null&&delete nr[A]);return nr[A]},y.locales=function(){return pt(nr)},y.weekdaysShort=function(A,F,G){return wl(A,F,G,"weekdaysShort")},y.normalizeUnits=Gt,y.relativeTimeRounding=function(A){return A===void 0?Zi:typeof A=="function"&&(Zi=A,!0)},y.relativeTimeThreshold=function(A,F){return gi[A]!==void 0&&(F===void 0?gi[A]:(gi[A]=F,A==="s"&&(gi.ss=F-1),!0))},y.calendarFormat=function(A,F){var G=A.diff(F,"days",!0);return G<-6?"sameElse":G<-1?"lastWeek":G<0?"lastDay":G<1?"sameDay":G<2?"nextDay":G<7?"nextWeek":"sameElse"},y.prototype=Ie,y.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},y}()},6470:r=>{function s(c){if(typeof c!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(c))}function o(c,y){for(var p,b="",T=0,k=-1,D=0,O=0;O<=c.length;++O){if(O<c.length)p=c.charCodeAt(O);else{if(p===47)break;p=47}if(p===47){if(!(k===O-1||D===1))if(k!==O-1&&D===2){if(b.length<2||T!==2||b.charCodeAt(b.length-1)!==46||b.charCodeAt(b.length-2)!==46){if(b.length>2){var I=b.lastIndexOf("/");if(I!==b.length-1){I===-1?(b="",T=0):T=(b=b.slice(0,I)).length-1-b.lastIndexOf("/"),k=O,D=0;continue}}else if(b.length===2||b.length===1){b="",T=0,k=O,D=0;continue}}y&&(b.length>0?b+="/..":b="..",T=2)}else b.length>0?b+="/"+c.slice(k+1,O):b=c.slice(k+1,O),T=O-k-1;k=O,D=0}else p===46&&D!==-1?++D:D=-1}return b}var h={resolve:function(){for(var c,y="",p=!1,b=arguments.length-1;b>=-1&&!p;b--){var T;b>=0?T=arguments[b]:(c===void 0&&(c=process.cwd()),T=c),s(T),T.length!==0&&(y=T+"/"+y,p=T.charCodeAt(0)===47)}return y=o(y,!p),p?y.length>0?"/"+y:"/":y.length>0?y:"."},normalize:function(c){if(s(c),c.length===0)return".";var y=c.charCodeAt(0)===47,p=c.charCodeAt(c.length-1)===47;return(c=o(c,!y)).length!==0||y||(c="."),c.length>0&&p&&(c+="/"),y?"/"+c:c},isAbsolute:function(c){return s(c),c.length>0&&c.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var c,y=0;y<arguments.length;++y){var p=arguments[y];s(p),p.length>0&&(c===void 0?c=p:c+="/"+p)}return c===void 0?".":h.normalize(c)},relative:function(c,y){if(s(c),s(y),c===y||(c=h.resolve(c))===(y=h.resolve(y)))return"";for(var p=1;p<c.length&&c.charCodeAt(p)===47;++p);for(var b=c.length,T=b-p,k=1;k<y.length&&y.charCodeAt(k)===47;++k);for(var D=y.length-k,O=T<D?T:D,I=-1,z=0;z<=O;++z){if(z===O){if(D>O){if(y.charCodeAt(k+z)===47)return y.slice(k+z+1);if(z===0)return y.slice(k+z)}else T>O&&(c.charCodeAt(p+z)===47?I=z:z===0&&(I=0));break}var H=c.charCodeAt(p+z);if(H!==y.charCodeAt(k+z))break;H===47&&(I=z)}var q="";for(z=p+I+1;z<=b;++z)z!==b&&c.charCodeAt(z)!==47||(q.length===0?q+="..":q+="/..");return q.length>0?q+y.slice(k+I):(k+=I,y.charCodeAt(k)===47&&++k,y.slice(k))},_makeLong:function(c){return c},dirname:function(c){if(s(c),c.length===0)return".";for(var y=c.charCodeAt(0),p=y===47,b=-1,T=!0,k=c.length-1;k>=1;--k)if((y=c.charCodeAt(k))===47){if(!T){b=k;break}}else T=!1;return b===-1?p?"/":".":p&&b===1?"//":c.slice(0,b)},basename:function(c,y){if(y!==void 0&&typeof y!="string")throw new TypeError('"ext" argument must be a string');s(c);var p,b=0,T=-1,k=!0;if(y!==void 0&&y.length>0&&y.length<=c.length){if(y.length===c.length&&y===c)return"";var D=y.length-1,O=-1;for(p=c.length-1;p>=0;--p){var I=c.charCodeAt(p);if(I===47){if(!k){b=p+1;break}}else O===-1&&(k=!1,O=p+1),D>=0&&(I===y.charCodeAt(D)?--D==-1&&(T=p):(D=-1,T=O))}return b===T?T=O:T===-1&&(T=c.length),c.slice(b,T)}for(p=c.length-1;p>=0;--p)if(c.charCodeAt(p)===47){if(!k){b=p+1;break}}else T===-1&&(k=!1,T=p+1);return T===-1?"":c.slice(b,T)},extname:function(c){s(c);for(var y=-1,p=0,b=-1,T=!0,k=0,D=c.length-1;D>=0;--D){var O=c.charCodeAt(D);if(O!==47)b===-1&&(T=!1,b=D+1),O===46?y===-1?y=D:k!==1&&(k=1):y!==-1&&(k=-1);else if(!T){p=D+1;break}}return y===-1||b===-1||k===0||k===1&&y===b-1&&y===p+1?"":c.slice(y,b)},format:function(c){if(c===null||typeof c!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof c);return function(y,p){var b=p.dir||p.root,T=p.base||(p.name||"")+(p.ext||"");return b?b===p.root?b+T:b+"/"+T:T}(0,c)},parse:function(c){s(c);var y={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return y;var p,b=c.charCodeAt(0),T=b===47;T?(y.root="/",p=1):p=0;for(var k=-1,D=0,O=-1,I=!0,z=c.length-1,H=0;z>=p;--z)if((b=c.charCodeAt(z))!==47)O===-1&&(I=!1,O=z+1),b===46?k===-1?k=z:H!==1&&(H=1):k!==-1&&(H=-1);else if(!I){D=z+1;break}return k===-1||O===-1||H===0||H===1&&k===O-1&&k===D+1?O!==-1&&(y.base=y.name=D===0&&T?c.slice(1,O):c.slice(D,O)):(D===0&&T?(y.name=c.slice(1,k),y.base=c.slice(1,O)):(y.name=c.slice(D,k),y.base=c.slice(D,O)),y.ext=c.slice(k,O)),D>0?y.dir=c.slice(0,D-1):T&&(y.dir="/"),y},sep:"/",delimiter:":",win32:null,posix:null};h.posix=h,r.exports=h},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{}},Z8={};function cs(r){var s=Z8[r];if(s!==void 0)return s.exports;var o=Z8[r]={id:r,loaded:!1,exports:{}};return GN[r].call(o.exports,o,o.exports,cs),o.loaded=!0,o.exports}cs.c=Z8,cs.n=r=>{var s=r&&r.__esModule?()=>r.default:()=>r;return cs.d(s,{a:s}),s},cs.d=(r,s)=>{for(var o in s)cs.o(s,o)&&!cs.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:s[o]})},cs.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),cs.o=(r,s)=>Object.prototype.hasOwnProperty.call(r,s),cs.r=r=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},cs.nmd=r=>(r.paths=[],r.children||(r.children=[]),r);var ZO=cs(cs.s=7458).Z,k5=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},dv={},$9={};(function(r){var s=k5&&k5.__values||function(h){var c=typeof Symbol=="function"&&Symbol.iterator,y=c&&h[c],p=0;if(y)return y.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&p>=h.length&&(h=void 0),{value:h&&h[p++],done:!h}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.getWordsByCategory=r.wordList=void 0,r.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animals"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"better",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function o(h,c){var y,p;c===void 0&&(c=[]);var b=new Set(c),T=[];try{for(var k=s(r.wordList[h]),D=k.next();!D.done;D=k.next()){var O=D.value;(c.length===0||O.categories.some(function(I){return b.has(I)}))&&T.push(O.word)}}catch(I){y={error:I}}finally{try{D&&!D.done&&(p=k.return)&&p.call(k)}finally{if(y)throw y.error}}return T}r.getWordsByCategory=o})($9);var T5=k5&&k5.__assign||function(){return T5=Object.assign||function(r){for(var s,o=1,h=arguments.length;o<h;o++){s=arguments[o];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(r[c]=s[c])}return r},T5.apply(this,arguments)};Object.defineProperty(dv,"__esModule",{value:!0});dv.totalUniqueSlugs=XN=dv.generateSlug=void 0;var X8=$9,W9=3;function ZN(r,s){for(var o=r||W9,h={partsOfSpeech:q9(o),categories:{},format:"kebab"},c=T5(T5({},h),s),y=[],p=0;p<o;p++){var b=c.partsOfSpeech[p],T=X8.getWordsByCategory(c.partsOfSpeech[p],c.categories[b]),k=T[Math.floor(Math.random()*T.length)];y.push(k)}return KN(y,c.format)}var XN=dv.generateSlug=ZN;function q9(r){for(var s=[],o=0;o<r-1;o++)s.push("adjective");return s.push("noun"),s}function KN(r,s){return s==="kebab"?r.join("-").toLowerCase():s==="camel"?r.map(function(o,h){return h===0?o.toLowerCase():o[0].toUpperCase()+o.slice(1).toLowerCase()}).join(""):s==="lower"?r.join(" ").toLowerCase():s==="sentence"?r.map(function(o,h){return h===0?o[0].toUpperCase()+o.slice(1).toLowerCase():o}).join(" "):r.map(function(o){return o[0].toUpperCase()+o.slice(1).toLowerCase()}).join(" ")}function QN(r,s){for(var o,h,c=X8.getWordsByCategory("adjective",(o=s==null?void 0:s.categories)===null||o===void 0?void 0:o.adjective).length,y=X8.getWordsByCategory("noun",(h=s==null?void 0:s.categories)===null||h===void 0?void 0:h.noun).length,p={adjective:c,noun:y},b=r||W9,T=(s==null?void 0:s.partsOfSpeech)||q9(b),k=1,D=0;D<b;D++)k*=p[T[D]];return k}dv.totalUniqueSlugs=QN;export{wO as $,BO as A,kT as B,X9 as C,ST as D,CO as E,eO as F,cT as G,rO as H,iO as I,nO as J,tO as K,zO as L,UO as M,jO as N,HO as O,JN as P,$O as Q,au as R,YO as S,TO as T,v7 as U,hO as V,lT as W,yO as X,cO as Y,WO as Z,aO as _,hT as a,fO as a0,R4 as a1,OO as a2,qO as a3,RO as a4,MO as a5,VO as a6,SO as a7,_O as a8,pO as a9,jd as aa,rn as ab,GO as ac,S7 as ad,oO as ae,ZO as af,XN as ag,dO as b,gO as c,uT as d,d7 as e,bO as f,sO as g,dT as h,PO as i,vO as j,uO as k,lO as l,mO as m,AO as n,NO as o,DO as p,bT as q,EO as r,K9 as s,U6 as t,kO as u,xO as v,IO as w,FO as x,xT as y,LO as z};