var fx=Object.defineProperty,dx=Object.defineProperties;var px=Object.getOwnPropertyDescriptors;var j6=Object.getOwnPropertySymbols;var gx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable;var H6=(p,T,f)=>T in p?fx(p,T,{enumerable:!0,configurable:!0,writable:!0,value:f}):p[T]=f,lh=(p,T)=>{for(var f in T||(T={}))gx.call(T,f)&&H6(p,f,T[f]);if(j6)for(var f of j6(T))yx.call(T,f)&&H6(p,f,T[f]);return p},qd=(p,T)=>dx(p,px(T));import{w as writable,_ as __vitePreload,d as derived}from"./preload-helper-29d322af.js";import{O as get_store_value}from"./index-b06f7db9.js";const defaultLoading={loading:!1},loadingStateStore=writable(defaultLoading),initLoading=async(p,T)=>{loadingStateStore.set({loading:!0,message:p});const f=await T;return loadingStateStore.set({loading:!1}),f};function getDefaultExportFromCjs(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var browserCookies={};(function(p){p.defaults={},p.set=function(T,f,b){var g=b||{},E=p.defaults,k=g.expires||E.expires,M=g.domain||E.domain,O=g.path!==void 0?g.path:E.path!==void 0?E.path:"/",L=g.secure!==void 0?g.secure:E.secure,F=g.httponly!==void 0?g.httponly:E.httponly,P=g.samesite!==void 0?g.samesite:E.samesite,$=k?new Date(typeof k=="number"?new Date().getTime()+k*864e5:k):0;document.cookie=T.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+f.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+($&&$.getTime()>=0?";expires="+$.toUTCString():"")+(M?";domain="+M:"")+(O?";path="+O:"")+(L?";secure":"")+(F?";httponly":"")+(P?";samesite="+P:"")},p.get=function(T){for(var f=document.cookie.split(";");f.length;){var b=f.pop(),g=b.indexOf("=");g=g<0?b.length:g;var E=decodeURIComponent(b.slice(0,g).replace(/^\s+/,""));if(E===T)return decodeURIComponent(b.slice(g+1))}return null},p.erase=function(T,f){p.set(T,"",{expires:-1,domain:f&&f.domain,path:f&&f.path,secure:0,httponly:0})},p.all=function(){for(var T={},f=document.cookie.split(";");f.length;){var b=f.pop(),g=b.indexOf("=");g=g<0?b.length:g;var E=decodeURIComponent(b.slice(0,g).replace(/^\s+/,""));T[E]=decodeURIComponent(b.slice(g+1))}return T}})(browserCookies);var bundle={};(function(exports){(function(p,T){for(var f in T)p[f]=T[f];T.__esModule&&Object.defineProperty(p,"__esModule",{value:!0})})(exports,(()=>{var __webpack_modules__={607:(module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0});var serializer_1=__webpack_require__(810),deserializer_1=__webpack_require__(496),Module;typeof process!="undefined"&&process.release.name==="node"&&(Module=eval("require")("module"));var ESSerializer=function(){function p(){}return p.throwErrorIfInNonNodeEnvironment=function(){if(!Module)throw new Error("Cannot intercept require in non-Node environment.")},p.interceptRequire=function(){this.isRequireIntercepted||(this.isRequireIntercepted=!0,this.throwErrorIfInNonNodeEnvironment(),p.originRequire=Module.prototype.require,Module.prototype.require=function(){var T=p.originRequire.apply(this,arguments),f=T.name;return p.requiredClasses[f]||(p.requiredClasses[f]=T),T})},p.stopInterceptRequire=function(){this.throwErrorIfInNonNodeEnvironment(),Module.prototype.require=p.originRequire,this.isRequireIntercepted=!1},p.isInterceptingRequire=function(){return this.isRequireIntercepted},p.getRequiredClasses=function(){return this.requiredClasses},p.clearRequiredClasses=function(){this.requiredClasses={}},p.registerClass=function(T){this.registeredClasses.push(T)},p.registerClasses=function(T){this.registeredClasses=this.registeredClasses.concat(T)},p.clearRegisteredClasses=function(){this.registeredClasses=[]},p.serialize=function(T,f){return f===void 0&&(f={}),JSON.stringify(serializer_1.getSerializeValueWithClassName(T,f))},p.deserialize=function(T,f,b){return f===void 0&&(f=[]),b===void 0&&(b={}),deserializer_1.deserializeFromParsedObj(JSON.parse(T),Object.values(this.requiredClasses).concat(this.registeredClasses).concat(f),b)},p.originRequire=null,p.isRequireIntercepted=!1,p.requiredClasses={},p.registeredClasses=[],p}();module.exports=ESSerializer},917:function(p,T){var f=this&&this.__spreadArrays||function(){for(var Rt=0,Yt=0,Gt=arguments.length;Yt0&&(yt=yt.concat(Array.from(Array(kt),function(){return{}}))),k.test(Nt.toString()))try{Bt=new(Nt.bind.apply(Nt,b([void 0],yt)))}catch{K(Nt.name),Bt={},Object.setPrototypeOf(Bt,Nt?Nt.prototype:Object.prototype)}else{Bt=Object.create(Nt.prototype.constructor.prototype);try{Nt.prototype.constructor.call(Bt,yt)}catch{K(Nt.name)}}return Bt}(bt[st],qt),J,bt,at)}function O(J,bt){return J.map(function(at){return M(at,bt)})}function L(J,bt){return new bt(J)}function F(J,bt){return new bt(J.map(function(at){return P(at[E.TO_STRING_FIELD])}))}function P(J){return BigInt(J)}function $(J,bt){var at=J[E.OPTIONS_FIELD],st=at.locale;return delete at.locale,new bt(st,at)}function W(J,bt){var at;return delete(at=J.message?new bt(J.message):new bt).stack,J.name&&(at.name=J.name),J.stack&&(at.stack=J.stack),bt===AggregateError&&(at.errors=M(J.errors,{})),at}function K(J){console.warn("Incorrect parameter type passed to constructor: "+J)}function nt(J,bt,at){for(var st in bt){var St=Object.getOwnPropertyDescriptor(J,st);St&&St.writable!==!0&&typeof St.set!="function"||(J[st]=M(bt[st],at))}}function ht(J){J===void 0&&(J=[]);var bt={};return J.forEach(function(at){if(g.isClass(at)){var st=at.name,St=bt[st];St&&St!==at&&console.warn("WARNING: Found class definition with the same name: "+st),bt[st]=at}}),bt}T.deserializeFromParsedObj=function(J,bt,at){return M(J,ht(bt),at)},T.deserializeFromParsedObjWithClassMapping=M,T.getClassMappingFromClassArray=ht,T.getParentClassName=function(J){return J.prototype.__proto__.constructor.name}},821:(p,T)=>{Object.defineProperty(T,"__esModule",{value:!0}),T.isClass=T.notObject=T.getValueFromToStringResult=void 0,T.notObject=function(f){return f===null||typeof f!="object"},T.getValueFromToStringResult=function(f){switch(f){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN;default:return null}},T.isClass=function(f){if(function(b){return[Date].indexOf(b)>=0}(f))return!0;try{Reflect.construct(String,[],f)}catch{return!1}return!0}},810:(p,T,f)=>{Object.defineProperty(T,"__esModule",{value:!0}),T.getSerializeValueWithClassName=void 0;var b=f(917),g=f(821);function E(M,O){O===void 0&&(O={});var L=function(W){var K,nt,ht;return W===void 0?((K={})[b.CLASS_NAME_FIELD]=b.BUILTIN_TYPE_UNDEFINED,K):typeof W!="number"||isFinite(W)?typeof W=="bigint"?((ht={})[b.CLASS_NAME_FIELD]=b.BUILTIN_TYPE_BIG_INT,ht[b.TO_STRING_FIELD]=W.toString(),ht):g.notObject(W)?W:b.ESSERIALIZER_NULL:((nt={})[b.CLASS_NAME_FIELD]=b.BUILTIN_TYPE_NOT_FINITE,nt[b.TO_STRING_FIELD]=W.toString(),nt)}(M);if(L!==b.ESSERIALIZER_NULL)return L;if(Array.isArray(M))return k(M);var F={};if(!function(W){var K=W.__proto__.constructor.name;return b.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED.includes(K)}(M)){if(O.ignoreProperties&&O.ignoreProperties.forEach(function(W){delete M[W]}),O.interceptProperties)for(var P in O.interceptProperties)M[P]=O.interceptProperties[P].call(M,M[P]);for(var $ in M)F[$]=E(M[$])}return function(W,K){var nt=W.__proto__.constructor.name;return nt!=="Object"&&(K[b.CLASS_NAME_FIELD]=nt,nt===b.BUILTIN_CLASS_ARRAYBUFFER||nt===b.BUILTIN_CLASS_SHAREDARRAYBUFFER?K[b.ARRAY_FIELD]=k(Array.from(new Uint8Array(W))):nt===b.BUILTIN_CLASS_BOOLEAN?K[b.BOOLEAN_FIELD]=W.valueOf():nt===b.BUILTIN_CLASS_DATAVIEW?K[b.ARRAY_FIELD]=k(Array.from(new Uint8Array(W.buffer))):nt===b.BUILTIN_CLASS_DATE?K[b.TIMESTAMP_FIELD]=W.getTime():nt===b.BUILTIN_CLASS_INTL_LOCALE||nt===b.BUILTIN_CLASS_REGEXP?K[b.TO_STRING_FIELD]=W.toString():nt===b.BUILTIN_CLASS_SET?K[b.ARRAY_FIELD]=k(Array.from(W)):nt===b.BUILTIN_CLASS_STRING?K[b.TO_STRING_FIELD]=W.toString():b.ALL_BUILTIN_ARRAYS.includes(nt)?K[b.ARRAY_FIELD]=k(Array.from(W)):b.ALL_BUILTIN_ERRORS.includes(nt)?function(ht,J,bt){ht.name!=="Error"&&(J.name=ht.name),ht.message&&(J.message=ht.message),ht.stack&&(J.stack=ht.stack),bt===b.BUILTIN_CLASS_AGGREGATE_ERROR&&(J.errors=E(ht.errors))}(W,K,nt):b.ALL_BUILTIN_INTLS.includes(nt)&&(K[b.OPTIONS_FIELD]=W.resolvedOptions())),K}(M,F)}function k(M){return M.map(function(O){return E(O)})}T.getSerializeValueWithClassName=E}},__webpack_module_cache__={};function __webpack_require__(p){if(__webpack_module_cache__[p])return __webpack_module_cache__[p].exports;var T=__webpack_module_cache__[p]={exports:{}};return __webpack_modules__[p].call(T.exports,T,T.exports,__webpack_require__),T.exports}return __webpack_require__(607)})())})(bundle);var ESSerializer=getDefaultExportFromCjs(bundle);const alreadyWarnFor=[],warnStorageNotFound=p=>{var T;const f=typeof process!="undefined"&&((T=process.env)===null||T===void 0?void 0:T.NODE_ENV)==="production";if(alreadyWarnFor.indexOf(p)===-1&&!f){let b=`Unable to find the ${p}. No data will be persisted.`;typeof window=="undefined"&&(b+=` Are you running on a server? Most of storages are not available while running on a server.`),console.warn(b),alreadyWarnFor.push(p)}},allowedClasses=[],serialize=p=>ESSerializer.serialize(p),deserialize=p=>{if(p!=="undefined"){if(p!=null){try{return ESSerializer.deserialize(p,allowedClasses)}catch{}try{return JSON.parse(p)}catch{}}return p}};function persist(p,T,f){const b=T.getValue(f);return b!==null&&p.set(b),T.addListener&&T.addListener(f,g=>{p.set(g)}),p.subscribe(g=>{T.setValue(f,g)}),Object.assign(Object.assign({},p),{delete(){T.deleteValue(f)}})}function getBrowserStorage(p,T=!1){const f=[],b=k=>{const M=k.key;k.storageArea===p&&f.filter(({key:O})=>O===M).forEach(({listener:O})=>{O(deserialize(k.newValue))})},g=()=>{T&&typeof window!="undefined"&&(window==null?void 0:window.addEventListener)&&window.addEventListener("storage",b)},E=()=>{T&&typeof window!="undefined"&&(window==null?void 0:window.removeEventListener)&&window.removeEventListener("storage",b)};return{addListener(k,M){f.push({key:k,listener:M}),f.length===1&&g()},removeListener(k,M){const O=f.indexOf({key:k,listener:M});O!==-1&&f.splice(O,1),f.length===0&&E()},getValue(k){const M=p.getItem(k);return deserialize(M)},deleteValue(k){p.removeItem(k)},setValue(k,M){p.setItem(k,serialize(M))}}}function localStorage(p=!1){return typeof window!="undefined"&&(window==null?void 0:window.localStorage)?getBrowserStorage(window.localStorage,p):(warnStorageNotFound("window.localStorage"),noopStorage())}function noopStorage(){return{getValue(){return null},deleteValue(){},setValue(){}}}let analytics;const initAnalytics=async()=>{if(!analytics)try{const{Analytics:p}=await __vitePreload(()=>import("./analytics.browser.es-da2e3609.js"),[]),T=await __vitePreload(()=>import("./analytics-plugin-ga.browser.es-1cdb0512.js"),[]);analytics=p({app:"mermaid-live-editor",plugins:[T.init({trackingId:"UA-153180559-1"})]})}catch{console.info("Analytics blocked ;)")}},detectType=p=>p.replace(/^\s*%%.*\n/g,` `).trimStart().split(" ")[0];let timeout;const saveStatistics=p=>{analytics&&(clearTimeout(timeout),timeout=setTimeout(function(){const T=detectType(p);console.debug("ga:","send","event","render",T),analytics.track("render",{graphType:T})},5e3))};/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1(p){let T=p.length;for(;--T>=0;)p[T]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=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]),extra_dbits=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]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1(base_length);const base_dist=new Array(D_CODES$1);zero$1(base_dist);function StaticTreeDesc(p,T,f,b,g){this.static_tree=p,this.extra_bits=T,this.extra_base=f,this.elems=b,this.max_length=g,this.has_stree=p&&p.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(p,T){this.dyn_tree=p,this.max_code=0,this.stat_desc=T}const d_code=p=>p<256?_dist_code[p]:_dist_code[256+(p>>>7)],put_short=(p,T)=>{p.pending_buf[p.pending++]=T&255,p.pending_buf[p.pending++]=T>>>8&255},send_bits=(p,T,f)=>{p.bi_valid>Buf_size-f?(p.bi_buf|=T<>Buf_size-p.bi_valid,p.bi_valid+=f-Buf_size):(p.bi_buf|=T<{send_bits(p,f[T*2],f[T*2+1])},bi_reverse=(p,T)=>{let f=0;do f|=p&1,p>>>=1,f<<=1;while(--T>0);return f>>>1},bi_flush=p=>{p.bi_valid===16?(put_short(p,p.bi_buf),p.bi_buf=0,p.bi_valid=0):p.bi_valid>=8&&(p.pending_buf[p.pending++]=p.bi_buf&255,p.bi_buf>>=8,p.bi_valid-=8)},gen_bitlen=(p,T)=>{const f=T.dyn_tree,b=T.max_code,g=T.stat_desc.static_tree,E=T.stat_desc.has_stree,k=T.stat_desc.extra_bits,M=T.stat_desc.extra_base,O=T.stat_desc.max_length;let L,F,P,$,W,K,nt=0;for($=0;$<=MAX_BITS$1;$++)p.bl_count[$]=0;for(f[p.heap[p.heap_max]*2+1]=0,L=p.heap_max+1;LO&&($=O,nt++),f[F*2+1]=$,!(F>b)&&(p.bl_count[$]++,W=0,F>=M&&(W=k[F-M]),K=f[F*2],p.opt_len+=K*($+W),E&&(p.static_len+=K*(g[F*2+1]+W)));if(nt!==0){do{for($=O-1;p.bl_count[$]===0;)$--;p.bl_count[$]--,p.bl_count[$+1]+=2,p.bl_count[O]--,nt-=2}while(nt>0);for($=O;$!==0;$--)for(F=p.bl_count[$];F!==0;)P=p.heap[--L],!(P>b)&&(f[P*2+1]!==$&&(p.opt_len+=($-f[P*2+1])*f[P*2],f[P*2+1]=$),F--)}},gen_codes=(p,T,f)=>{const b=new Array(MAX_BITS$1+1);let g=0,E,k;for(E=1;E<=MAX_BITS$1;E++)b[E]=g=g+f[E-1]<<1;for(k=0;k<=T;k++){let M=p[k*2+1];M!==0&&(p[k*2]=bi_reverse(b[M]++,M))}},tr_static_init=()=>{let p,T,f,b,g;const E=new Array(MAX_BITS$1+1);for(f=0,b=0;b>=7;b{let T;for(T=0;T{p.bi_valid>8?put_short(p,p.bi_buf):p.bi_valid>0&&(p.pending_buf[p.pending++]=p.bi_buf),p.bi_buf=0,p.bi_valid=0},copy_block=(p,T,f,b)=>{bi_windup(p),b&&(put_short(p,f),put_short(p,~f)),p.pending_buf.set(p.window.subarray(T,T+f),p.pending),p.pending+=f},smaller=(p,T,f,b)=>{const g=T*2,E=f*2;return p[g]{const b=p.heap[f];let g=f<<1;for(;g<=p.heap_len&&(g{let b,g,E=0,k,M;if(p.last_lit!==0)do b=p.pending_buf[p.d_buf+E*2]<<8|p.pending_buf[p.d_buf+E*2+1],g=p.pending_buf[p.l_buf+E],E++,b===0?send_code(p,g,T):(k=_length_code[g],send_code(p,k+LITERALS$1+1,T),M=extra_lbits[k],M!==0&&(g-=base_length[k],send_bits(p,g,M)),b--,k=d_code(b),send_code(p,k,f),M=extra_dbits[k],M!==0&&(b-=base_dist[k],send_bits(p,b,M)));while(E{const f=T.dyn_tree,b=T.stat_desc.static_tree,g=T.stat_desc.has_stree,E=T.stat_desc.elems;let k,M,O=-1,L;for(p.heap_len=0,p.heap_max=HEAP_SIZE$1,k=0;k>1;k>=1;k--)pqdownheap(p,f,k);L=E;do k=p.heap[1],p.heap[1]=p.heap[p.heap_len--],pqdownheap(p,f,1),M=p.heap[1],p.heap[--p.heap_max]=k,p.heap[--p.heap_max]=M,f[L*2]=f[k*2]+f[M*2],p.depth[L]=(p.depth[k]>=p.depth[M]?p.depth[k]:p.depth[M])+1,f[k*2+1]=f[M*2+1]=L,p.heap[1]=L++,pqdownheap(p,f,1);while(p.heap_len>=2);p.heap[--p.heap_max]=p.heap[1],gen_bitlen(p,T),gen_codes(f,O,p.bl_count)},scan_tree=(p,T,f)=>{let b,g=-1,E,k=T[0*2+1],M=0,O=7,L=4;for(k===0&&(O=138,L=3),T[(f+1)*2+1]=65535,b=0;b<=f;b++)E=k,k=T[(b+1)*2+1],!(++M{let b,g=-1,E,k=T[0*2+1],M=0,O=7,L=4;for(k===0&&(O=138,L=3),b=0;b<=f;b++)if(E=k,k=T[(b+1)*2+1],!(++M{let T;for(scan_tree(p,p.dyn_ltree,p.l_desc.max_code),scan_tree(p,p.dyn_dtree,p.d_desc.max_code),build_tree(p,p.bl_desc),T=BL_CODES$1-1;T>=3&&p.bl_tree[bl_order[T]*2+1]===0;T--);return p.opt_len+=3*(T+1)+5+5+4,T},send_all_trees=(p,T,f,b)=>{let g;for(send_bits(p,T-257,5),send_bits(p,f-1,5),send_bits(p,b-4,4),g=0;g{let T=4093624447,f;for(f=0;f<=31;f++,T>>>=1)if(T&1&&p.dyn_ltree[f*2]!==0)return Z_BINARY;if(p.dyn_ltree[9*2]!==0||p.dyn_ltree[10*2]!==0||p.dyn_ltree[13*2]!==0)return Z_TEXT;for(f=32;f{static_init_done||(tr_static_init(),static_init_done=!0),p.l_desc=new TreeDesc(p.dyn_ltree,static_l_desc),p.d_desc=new TreeDesc(p.dyn_dtree,static_d_desc),p.bl_desc=new TreeDesc(p.bl_tree,static_bl_desc),p.bi_buf=0,p.bi_valid=0,init_block(p)},_tr_stored_block$1=(p,T,f,b)=>{send_bits(p,(STORED_BLOCK<<1)+(b?1:0),3),copy_block(p,T,f,!0)},_tr_align$1=p=>{send_bits(p,STATIC_TREES<<1,3),send_code(p,END_BLOCK,static_ltree),bi_flush(p)},_tr_flush_block$1=(p,T,f,b)=>{let g,E,k=0;p.level>0?(p.strm.data_type===Z_UNKNOWN$1&&(p.strm.data_type=detect_data_type(p)),build_tree(p,p.l_desc),build_tree(p,p.d_desc),k=build_bl_tree(p),g=p.opt_len+3+7>>>3,E=p.static_len+3+7>>>3,E<=g&&(g=E)):g=E=f+5,f+4<=g&&T!==-1?_tr_stored_block$1(p,T,f,b):p.strategy===Z_FIXED$1||E===g?(send_bits(p,(STATIC_TREES<<1)+(b?1:0),3),compress_block(p,static_ltree,static_dtree)):(send_bits(p,(DYN_TREES<<1)+(b?1:0),3),send_all_trees(p,p.l_desc.max_code+1,p.d_desc.max_code+1,k+1),compress_block(p,p.dyn_ltree,p.dyn_dtree)),init_block(p),b&&bi_windup(p)},_tr_tally$1=(p,T,f)=>(p.pending_buf[p.d_buf+p.last_lit*2]=T>>>8&255,p.pending_buf[p.d_buf+p.last_lit*2+1]=T&255,p.pending_buf[p.l_buf+p.last_lit]=f&255,p.last_lit++,T===0?p.dyn_ltree[f*2]++:(p.matches++,T--,p.dyn_ltree[(_length_code[f]+LITERALS$1+1)*2]++,p.dyn_dtree[d_code(T)*2]++),p.last_lit===p.lit_bufsize-1);var _tr_init_1=_tr_init$1,_tr_stored_block_1=_tr_stored_block$1,_tr_flush_block_1=_tr_flush_block$1,_tr_tally_1=_tr_tally$1,_tr_align_1=_tr_align$1,trees={_tr_init:_tr_init_1,_tr_stored_block:_tr_stored_block_1,_tr_flush_block:_tr_flush_block_1,_tr_tally:_tr_tally_1,_tr_align:_tr_align_1};const adler32=(p,T,f,b)=>{let g=p&65535|0,E=p>>>16&65535|0,k=0;for(;f!==0;){k=f>2e3?2e3:f,f-=k;do g=g+T[b++]|0,E=E+g|0;while(--k);g%=65521,E%=65521}return g|E<<16|0};var adler32_1=adler32;const makeTable=()=>{let p,T=[];for(var f=0;f<256;f++){p=f;for(var b=0;b<8;b++)p=p&1?3988292384^p>>>1:p>>>1;T[f]=p}return T},crcTable=new Uint32Array(makeTable()),crc32=(p,T,f,b)=>{const g=crcTable,E=b+f;p^=-1;for(let k=b;k>>8^g[(p^T[k])&255];return p^-1};var crc32_1=crc32,messages={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"},constants$2={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,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$2,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(p,T)=>(p.msg=messages[T],T),rank=p=>(p<<1)-(p>4?9:0),zero=p=>{let T=p.length;for(;--T>=0;)p[T]=0};let HASH_ZLIB=(p,T,f)=>(T<{const T=p.state;let f=T.pending;f>p.avail_out&&(f=p.avail_out),f!==0&&(p.output.set(T.pending_buf.subarray(T.pending_out,T.pending_out+f),p.next_out),p.next_out+=f,T.pending_out+=f,p.total_out+=f,p.avail_out-=f,T.pending-=f,T.pending===0&&(T.pending_out=0))},flush_block_only=(p,T)=>{_tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,T),p.block_start=p.strstart,flush_pending(p.strm)},put_byte=(p,T)=>{p.pending_buf[p.pending++]=T},putShortMSB=(p,T)=>{p.pending_buf[p.pending++]=T>>>8&255,p.pending_buf[p.pending++]=T&255},read_buf=(p,T,f,b)=>{let g=p.avail_in;return g>b&&(g=b),g===0?0:(p.avail_in-=g,T.set(p.input.subarray(p.next_in,p.next_in+g),f),p.state.wrap===1?p.adler=adler32_1(p.adler,T,g,f):p.state.wrap===2&&(p.adler=crc32_1(p.adler,T,g,f)),p.next_in+=g,p.total_in+=g,g)},longest_match=(p,T)=>{let f=p.max_chain_length,b=p.strstart,g,E,k=p.prev_length,M=p.nice_match;const O=p.strstart>p.w_size-MIN_LOOKAHEAD?p.strstart-(p.w_size-MIN_LOOKAHEAD):0,L=p.window,F=p.w_mask,P=p.prev,$=p.strstart+MAX_MATCH;let W=L[b+k-1],K=L[b+k];p.prev_length>=p.good_match&&(f>>=2),M>p.lookahead&&(M=p.lookahead);do if(g=T,!(L[g+k]!==K||L[g+k-1]!==W||L[g]!==L[b]||L[++g]!==L[b+1])){b+=2,g++;do;while(L[++b]===L[++g]&&L[++b]===L[++g]&&L[++b]===L[++g]&&L[++b]===L[++g]&&L[++b]===L[++g]&&L[++b]===L[++g]&&L[++b]===L[++g]&&L[++b]===L[++g]&&b<$);if(E=MAX_MATCH-($-b),b=$-MAX_MATCH,E>k){if(p.match_start=T,k=E,E>=M)break;W=L[b+k-1],K=L[b+k]}}while((T=P[T&F])>O&&--f!==0);return k<=p.lookahead?k:p.lookahead},fill_window=p=>{const T=p.w_size;let f,b,g,E,k;do{if(E=p.window_size-p.lookahead-p.strstart,p.strstart>=T+(T-MIN_LOOKAHEAD)){p.window.set(p.window.subarray(T,T+T),0),p.match_start-=T,p.strstart-=T,p.block_start-=T,b=p.hash_size,f=b;do g=p.head[--f],p.head[f]=g>=T?g-T:0;while(--b);b=T,f=b;do g=p.prev[--f],p.prev[f]=g>=T?g-T:0;while(--b);E+=T}if(p.strm.avail_in===0)break;if(b=read_buf(p.strm,p.window,p.strstart+p.lookahead,E),p.lookahead+=b,p.lookahead+p.insert>=MIN_MATCH)for(k=p.strstart-p.insert,p.ins_h=p.window[k],p.ins_h=HASH(p,p.ins_h,p.window[k+1]);p.insert&&(p.ins_h=HASH(p,p.ins_h,p.window[k+MIN_MATCH-1]),p.prev[k&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=k,k++,p.insert--,!(p.lookahead+p.insert{let f=65535;for(f>p.pending_buf_size-5&&(f=p.pending_buf_size-5);;){if(p.lookahead<=1){if(fill_window(p),p.lookahead===0&&T===Z_NO_FLUSH$2)return BS_NEED_MORE;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;const b=p.block_start+f;if((p.strstart===0||p.strstart>=b)&&(p.lookahead=p.strstart-b,p.strstart=b,flush_block_only(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-MIN_LOOKAHEAD&&(flush_block_only(p,!1),p.strm.avail_out===0))return BS_NEED_MORE}return p.insert=0,T===Z_FINISH$3?(flush_block_only(p,!0),p.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):(p.strstart>p.block_start&&(flush_block_only(p,!1),p.strm.avail_out===0),BS_NEED_MORE)},deflate_fast=(p,T)=>{let f,b;for(;;){if(p.lookahead=MIN_MATCH&&(p.ins_h=HASH(p,p.ins_h,p.window[p.strstart+MIN_MATCH-1]),f=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),f!==0&&p.strstart-f<=p.w_size-MIN_LOOKAHEAD&&(p.match_length=longest_match(p,f)),p.match_length>=MIN_MATCH)if(b=_tr_tally(p,p.strstart-p.match_start,p.match_length-MIN_MATCH),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=MIN_MATCH){p.match_length--;do p.strstart++,p.ins_h=HASH(p,p.ins_h,p.window[p.strstart+MIN_MATCH-1]),f=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=HASH(p,p.ins_h,p.window[p.strstart+1]);else b=_tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(b&&(flush_block_only(p,!1),p.strm.avail_out===0))return BS_NEED_MORE}return p.insert=p.strstart{let f,b,g;for(;;){if(p.lookahead=MIN_MATCH&&(p.ins_h=HASH(p,p.ins_h,p.window[p.strstart+MIN_MATCH-1]),f=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=MIN_MATCH-1,f!==0&&p.prev_length4096)&&(p.match_length=MIN_MATCH-1)),p.prev_length>=MIN_MATCH&&p.match_length<=p.prev_length){g=p.strstart+p.lookahead-MIN_MATCH,b=_tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-MIN_MATCH),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=g&&(p.ins_h=HASH(p,p.ins_h,p.window[p.strstart+MIN_MATCH-1]),f=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=MIN_MATCH-1,p.strstart++,b&&(flush_block_only(p,!1),p.strm.avail_out===0))return BS_NEED_MORE}else if(p.match_available){if(b=_tr_tally(p,0,p.window[p.strstart-1]),b&&flush_block_only(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return BS_NEED_MORE}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(b=_tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart{let f,b,g,E;const k=p.window;for(;;){if(p.lookahead<=MAX_MATCH){if(fill_window(p),p.lookahead<=MAX_MATCH&&T===Z_NO_FLUSH$2)return BS_NEED_MORE;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=MIN_MATCH&&p.strstart>0&&(g=p.strstart-1,b=k[g],b===k[++g]&&b===k[++g]&&b===k[++g])){E=p.strstart+MAX_MATCH;do;while(b===k[++g]&&b===k[++g]&&b===k[++g]&&b===k[++g]&&b===k[++g]&&b===k[++g]&&b===k[++g]&&b===k[++g]&&gp.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=MIN_MATCH?(f=_tr_tally(p,1,p.match_length-MIN_MATCH),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(f=_tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),f&&(flush_block_only(p,!1),p.strm.avail_out===0))return BS_NEED_MORE}return p.insert=0,T===Z_FINISH$3?(flush_block_only(p,!0),p.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):p.last_lit&&(flush_block_only(p,!1),p.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(p,T)=>{let f;for(;;){if(p.lookahead===0&&(fill_window(p),p.lookahead===0)){if(T===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(p.match_length=0,f=_tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,f&&(flush_block_only(p,!1),p.strm.avail_out===0))return BS_NEED_MORE}return p.insert=0,T===Z_FINISH$3?(flush_block_only(p,!0),p.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):p.last_lit&&(flush_block_only(p,!1),p.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(p,T,f,b,g){this.good_length=p,this.max_lazy=T,this.nice_length=f,this.max_chain=b,this.func=g}const configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],lm_init=p=>{p.window_size=2*p.w_size,zero(p.head),p.max_lazy_match=configuration_table[p.level].max_lazy,p.good_match=configuration_table[p.level].good_length,p.nice_match=configuration_table[p.level].nice_length,p.max_chain_length=configuration_table[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=MIN_MATCH-1,p.match_available=0,p.ins_h=0};function DeflateState(){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=Z_DEFLATED$2,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(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero(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 deflateResetKeep=p=>{if(!p||!p.state)return err(p,Z_STREAM_ERROR$2);p.total_in=p.total_out=0,p.data_type=Z_UNKNOWN;const T=p.state;return T.pending=0,T.pending_out=0,T.wrap<0&&(T.wrap=-T.wrap),T.status=T.wrap?INIT_STATE:BUSY_STATE,p.adler=T.wrap===2?0:1,T.last_flush=Z_NO_FLUSH$2,_tr_init(T),Z_OK$3},deflateReset=p=>{const T=deflateResetKeep(p);return T===Z_OK$3&&lm_init(p.state),T},deflateSetHeader=(p,T)=>!p||!p.state||p.state.wrap!==2?Z_STREAM_ERROR$2:(p.state.gzhead=T,Z_OK$3),deflateInit2=(p,T,f,b,g,E)=>{if(!p)return Z_STREAM_ERROR$2;let k=1;if(T===Z_DEFAULT_COMPRESSION$1&&(T=6),b<0?(k=0,b=-b):b>15&&(k=2,b-=16),g<1||g>MAX_MEM_LEVEL||f!==Z_DEFLATED$2||b<8||b>15||T<0||T>9||E<0||E>Z_FIXED)return err(p,Z_STREAM_ERROR$2);b===8&&(b=9);const M=new DeflateState;return p.state=M,M.strm=p,M.wrap=k,M.gzhead=null,M.w_bits=b,M.w_size=1<deflateInit2(p,T,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(p,T)=>{let f,b;if(!p||!p.state||T>Z_BLOCK$1||T<0)return p?err(p,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const g=p.state;if(!p.output||!p.input&&p.avail_in!==0||g.status===FINISH_STATE&&T!==Z_FINISH$3)return err(p,p.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);g.strm=p;const E=g.last_flush;if(g.last_flush=T,g.status===INIT_STATE)if(g.wrap===2)p.adler=0,put_byte(g,31),put_byte(g,139),put_byte(g,8),g.gzhead?(put_byte(g,(g.gzhead.text?1:0)+(g.gzhead.hcrc?2:0)+(g.gzhead.extra?4:0)+(g.gzhead.name?8:0)+(g.gzhead.comment?16:0)),put_byte(g,g.gzhead.time&255),put_byte(g,g.gzhead.time>>8&255),put_byte(g,g.gzhead.time>>16&255),put_byte(g,g.gzhead.time>>24&255),put_byte(g,g.level===9?2:g.strategy>=Z_HUFFMAN_ONLY||g.level<2?4:0),put_byte(g,g.gzhead.os&255),g.gzhead.extra&&g.gzhead.extra.length&&(put_byte(g,g.gzhead.extra.length&255),put_byte(g,g.gzhead.extra.length>>8&255)),g.gzhead.hcrc&&(p.adler=crc32_1(p.adler,g.pending_buf,g.pending,0)),g.gzindex=0,g.status=EXTRA_STATE):(put_byte(g,0),put_byte(g,0),put_byte(g,0),put_byte(g,0),put_byte(g,0),put_byte(g,g.level===9?2:g.strategy>=Z_HUFFMAN_ONLY||g.level<2?4:0),put_byte(g,OS_CODE),g.status=BUSY_STATE);else{let k=Z_DEFLATED$2+(g.w_bits-8<<4)<<8,M=-1;g.strategy>=Z_HUFFMAN_ONLY||g.level<2?M=0:g.level<6?M=1:g.level===6?M=2:M=3,k|=M<<6,g.strstart!==0&&(k|=PRESET_DICT),k+=31-k%31,g.status=BUSY_STATE,putShortMSB(g,k),g.strstart!==0&&(putShortMSB(g,p.adler>>>16),putShortMSB(g,p.adler&65535)),p.adler=1}if(g.status===EXTRA_STATE)if(g.gzhead.extra){for(f=g.pending;g.gzindex<(g.gzhead.extra.length&65535)&&!(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>f&&(p.adler=crc32_1(p.adler,g.pending_buf,g.pending-f,f)),flush_pending(p),f=g.pending,g.pending===g.pending_buf_size));)put_byte(g,g.gzhead.extra[g.gzindex]&255),g.gzindex++;g.gzhead.hcrc&&g.pending>f&&(p.adler=crc32_1(p.adler,g.pending_buf,g.pending-f,f)),g.gzindex===g.gzhead.extra.length&&(g.gzindex=0,g.status=NAME_STATE)}else g.status=NAME_STATE;if(g.status===NAME_STATE)if(g.gzhead.name){f=g.pending;do{if(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>f&&(p.adler=crc32_1(p.adler,g.pending_buf,g.pending-f,f)),flush_pending(p),f=g.pending,g.pending===g.pending_buf_size)){b=1;break}g.gzindexf&&(p.adler=crc32_1(p.adler,g.pending_buf,g.pending-f,f)),b===0&&(g.gzindex=0,g.status=COMMENT_STATE)}else g.status=COMMENT_STATE;if(g.status===COMMENT_STATE)if(g.gzhead.comment){f=g.pending;do{if(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>f&&(p.adler=crc32_1(p.adler,g.pending_buf,g.pending-f,f)),flush_pending(p),f=g.pending,g.pending===g.pending_buf_size)){b=1;break}g.gzindexf&&(p.adler=crc32_1(p.adler,g.pending_buf,g.pending-f,f)),b===0&&(g.status=HCRC_STATE)}else g.status=HCRC_STATE;if(g.status===HCRC_STATE&&(g.gzhead.hcrc?(g.pending+2>g.pending_buf_size&&flush_pending(p),g.pending+2<=g.pending_buf_size&&(put_byte(g,p.adler&255),put_byte(g,p.adler>>8&255),p.adler=0,g.status=BUSY_STATE)):g.status=BUSY_STATE),g.pending!==0){if(flush_pending(p),p.avail_out===0)return g.last_flush=-1,Z_OK$3}else if(p.avail_in===0&&rank(T)<=rank(E)&&T!==Z_FINISH$3)return err(p,Z_BUF_ERROR$1);if(g.status===FINISH_STATE&&p.avail_in!==0)return err(p,Z_BUF_ERROR$1);if(p.avail_in!==0||g.lookahead!==0||T!==Z_NO_FLUSH$2&&g.status!==FINISH_STATE){let k=g.strategy===Z_HUFFMAN_ONLY?deflate_huff(g,T):g.strategy===Z_RLE?deflate_rle(g,T):configuration_table[g.level].func(g,T);if((k===BS_FINISH_STARTED||k===BS_FINISH_DONE)&&(g.status=FINISH_STATE),k===BS_NEED_MORE||k===BS_FINISH_STARTED)return p.avail_out===0&&(g.last_flush=-1),Z_OK$3;if(k===BS_BLOCK_DONE&&(T===Z_PARTIAL_FLUSH?_tr_align(g):T!==Z_BLOCK$1&&(_tr_stored_block(g,0,0,!1),T===Z_FULL_FLUSH$1&&(zero(g.head),g.lookahead===0&&(g.strstart=0,g.block_start=0,g.insert=0))),flush_pending(p),p.avail_out===0))return g.last_flush=-1,Z_OK$3}return T!==Z_FINISH$3?Z_OK$3:g.wrap<=0?Z_STREAM_END$3:(g.wrap===2?(put_byte(g,p.adler&255),put_byte(g,p.adler>>8&255),put_byte(g,p.adler>>16&255),put_byte(g,p.adler>>24&255),put_byte(g,p.total_in&255),put_byte(g,p.total_in>>8&255),put_byte(g,p.total_in>>16&255),put_byte(g,p.total_in>>24&255)):(putShortMSB(g,p.adler>>>16),putShortMSB(g,p.adler&65535)),flush_pending(p),g.wrap>0&&(g.wrap=-g.wrap),g.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=p=>{if(!p||!p.state)return Z_STREAM_ERROR$2;const T=p.state.status;return T!==INIT_STATE&&T!==EXTRA_STATE&&T!==NAME_STATE&&T!==COMMENT_STATE&&T!==HCRC_STATE&&T!==BUSY_STATE&&T!==FINISH_STATE?err(p,Z_STREAM_ERROR$2):(p.state=null,T===BUSY_STATE?err(p,Z_DATA_ERROR$2):Z_OK$3)},deflateSetDictionary=(p,T)=>{let f=T.length;if(!p||!p.state)return Z_STREAM_ERROR$2;const b=p.state,g=b.wrap;if(g===2||g===1&&b.status!==INIT_STATE||b.lookahead)return Z_STREAM_ERROR$2;if(g===1&&(p.adler=adler32_1(p.adler,T,f,0)),b.wrap=0,f>=b.w_size){g===0&&(zero(b.head),b.strstart=0,b.block_start=0,b.insert=0);let O=new Uint8Array(b.w_size);O.set(T.subarray(f-b.w_size,f),0),T=O,f=b.w_size}const E=p.avail_in,k=p.next_in,M=p.input;for(p.avail_in=f,p.next_in=0,p.input=T,fill_window(b);b.lookahead>=MIN_MATCH;){let O=b.strstart,L=b.lookahead-(MIN_MATCH-1);do b.ins_h=HASH(b,b.ins_h,b.window[O+MIN_MATCH-1]),b.prev[O&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=O,O++;while(--L);b.strstart=O,b.lookahead=MIN_MATCH-1,fill_window(b)}return b.strstart+=b.lookahead,b.block_start=b.strstart,b.insert=b.lookahead,b.lookahead=0,b.match_length=b.prev_length=MIN_MATCH-1,b.match_available=0,p.next_in=k,p.input=M,p.avail_in=E,b.wrap=g,Z_OK$3};var deflateInit_1=deflateInit,deflateInit2_1=deflateInit2,deflateReset_1=deflateReset,deflateResetKeep_1=deflateResetKeep,deflateSetHeader_1=deflateSetHeader,deflate_2$1=deflate$2,deflateEnd_1=deflateEnd,deflateSetDictionary_1=deflateSetDictionary,deflateInfo="pako deflate (from Nodeca project)",deflate_1$2={deflateInit:deflateInit_1,deflateInit2:deflateInit2_1,deflateReset:deflateReset_1,deflateResetKeep:deflateResetKeep_1,deflateSetHeader:deflateSetHeader_1,deflate:deflate_2$1,deflateEnd:deflateEnd_1,deflateSetDictionary:deflateSetDictionary_1,deflateInfo};const _has=(p,T)=>Object.prototype.hasOwnProperty.call(p,T);var assign=function(p){const T=Array.prototype.slice.call(arguments,1);for(;T.length;){const f=T.shift();if(!!f){if(typeof f!="object")throw new TypeError(f+"must be non-object");for(const b in f)_has(f,b)&&(p[b]=f[b])}}return p},flattenChunks=p=>{let T=0;for(let b=0,g=p.length;b=252?6:p>=248?5:p>=240?4:p>=224?3:p>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=p=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(p);let T,f,b,g,E,k=p.length,M=0;for(g=0;g>>6,T[E++]=128|f&63):f<65536?(T[E++]=224|f>>>12,T[E++]=128|f>>>6&63,T[E++]=128|f&63):(T[E++]=240|f>>>18,T[E++]=128|f>>>12&63,T[E++]=128|f>>>6&63,T[E++]=128|f&63);return T};const buf2binstring=(p,T)=>{if(T<65534&&p.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,p.length===T?p:p.subarray(0,T));let f="";for(let b=0;b{const f=T||p.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(p.subarray(0,T));let b,g;const E=new Array(f*2);for(g=0,b=0;b4){E[g++]=65533,b+=M-1;continue}for(k&=M===2?31:M===3?15:7;M>1&&b1){E[g++]=65533;continue}k<65536?E[g++]=k:(k-=65536,E[g++]=55296|k>>10&1023,E[g++]=56320|k&1023)}return buf2binstring(E,g)},utf8border=(p,T)=>{T=T||p.length,T>p.length&&(T=p.length);let f=T-1;for(;f>=0&&(p[f]&192)===128;)f--;return f<0||f===0?T:f+_utf8len[p[f]]>T?f:T},strings={string2buf,buf2string,utf8border};function ZStream(){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 zstream=ZStream;const toString$1=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$2;function Deflate$1(p){this.options=common.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},p||{});let T=this.options;T.raw&&T.windowBits>0?T.windowBits=-T.windowBits:T.gzip&&T.windowBits>0&&T.windowBits<16&&(T.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let f=deflate_1$2.deflateInit2(this.strm,T.level,T.method,T.windowBits,T.memLevel,T.strategy);if(f!==Z_OK$2)throw new Error(messages[f]);if(T.header&&deflate_1$2.deflateSetHeader(this.strm,T.header),T.dictionary){let b;if(typeof T.dictionary=="string"?b=strings.string2buf(T.dictionary):toString$1.call(T.dictionary)==="[object ArrayBuffer]"?b=new Uint8Array(T.dictionary):b=T.dictionary,f=deflate_1$2.deflateSetDictionary(this.strm,b),f!==Z_OK$2)throw new Error(messages[f]);this._dict_set=!0}}Deflate$1.prototype.push=function(p,T){const f=this.strm,b=this.options.chunkSize;let g,E;if(this.ended)return!1;for(T===~~T?E=T:E=T===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof p=="string"?f.input=strings.string2buf(p):toString$1.call(p)==="[object ArrayBuffer]"?f.input=new Uint8Array(p):f.input=p,f.next_in=0,f.avail_in=f.input.length;;){if(f.avail_out===0&&(f.output=new Uint8Array(b),f.next_out=0,f.avail_out=b),(E===Z_SYNC_FLUSH||E===Z_FULL_FLUSH)&&f.avail_out<=6){this.onData(f.output.subarray(0,f.next_out)),f.avail_out=0;continue}if(g=deflate_1$2.deflate(f,E),g===Z_STREAM_END$2)return f.next_out>0&&this.onData(f.output.subarray(0,f.next_out)),g=deflate_1$2.deflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===Z_OK$2;if(f.avail_out===0){this.onData(f.output);continue}if(E>0&&f.next_out>0){this.onData(f.output.subarray(0,f.next_out)),f.avail_out=0;continue}if(f.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(p){this.chunks.push(p)};Deflate$1.prototype.onEnd=function(p){p===Z_OK$2&&(this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg};function deflate$1(p,T){const f=new Deflate$1(T);if(f.push(p,!0),f.err)throw f.msg||messages[f.err];return f.result}function deflateRaw$1(p,T){return T=T||{},T.raw=!0,deflate$1(p,T)}function gzip$1(p,T){return T=T||{},T.gzip=!0,deflate$1(p,T)}var Deflate_1$1=Deflate$1,deflate_2=deflate$1,deflateRaw_1$1=deflateRaw$1,gzip_1$1=gzip$1,constants$1=constants$2,deflate_1$1={Deflate:Deflate_1$1,deflate:deflate_2,deflateRaw:deflateRaw_1$1,gzip:gzip_1$1,constants:constants$1};const BAD$1=30,TYPE$1=12;var inffast=function p(T,f){let b,g,E,k,M,O,L,F,P,$,W,K,nt,ht,J,bt,at,st,St,qt,Nt,yt,Bt,kt;const ft=T.state;b=T.next_in,Bt=T.input,g=b+(T.avail_in-5),E=T.next_out,kt=T.output,k=E-(f-T.avail_out),M=E+(T.avail_out-257),O=ft.dmax,L=ft.wsize,F=ft.whave,P=ft.wnext,$=ft.window,W=ft.hold,K=ft.bits,nt=ft.lencode,ht=ft.distcode,J=(1<>>24,W>>>=st,K-=st,st=at>>>16&255,st===0)kt[E++]=at&65535;else if(st&16){St=at&65535,st&=15,st&&(K>>=st,K-=st),K<15&&(W+=Bt[b++]<>>24,W>>>=st,K-=st,st=at>>>16&255,st&16){if(qt=at&65535,st&=15,KO){T.msg="invalid distance too far back",ft.mode=BAD$1;break t}if(W>>>=st,K-=st,st=E-k,qt>st){if(st=qt-st,st>F&&ft.sane){T.msg="invalid distance too far back",ft.mode=BAD$1;break t}if(Nt=0,yt=$,P===0){if(Nt+=L-st,st2;)kt[E++]=yt[Nt++],kt[E++]=yt[Nt++],kt[E++]=yt[Nt++],St-=3;St&&(kt[E++]=yt[Nt++],St>1&&(kt[E++]=yt[Nt++]))}else{Nt=E-qt;do kt[E++]=kt[Nt++],kt[E++]=kt[Nt++],kt[E++]=kt[Nt++],St-=3;while(St>2);St&&(kt[E++]=kt[Nt++],St>1&&(kt[E++]=kt[Nt++]))}}else if((st&64)===0){at=ht[(at&65535)+(W&(1<>3,b-=St,K-=St<<3,W&=(1<{const O=M.bits;let L=0,F=0,P=0,$=0,W=0,K=0,nt=0,ht=0,J=0,bt=0,at,st,St,qt,Nt,yt=null,Bt=0,kt;const ft=new Uint16Array(MAXBITS+1),rt=new Uint16Array(MAXBITS+1);let dt=null,G=0,Lt,V,Rt;for(L=0;L<=MAXBITS;L++)ft[L]=0;for(F=0;F=1&&ft[$]===0;$--);if(W>$&&(W=$),$===0)return g[E++]=1<<24|64<<16|0,g[E++]=1<<24|64<<16|0,M.bits=1,0;for(P=1;P<$&&ft[P]===0;P++);for(W0&&(p===CODES$1||$!==1))return-1;for(rt[1]=0,L=1;LENOUGH_LENS$1||p===DISTS$1&&J>ENOUGH_DISTS$1)return 1;for(;;){Lt=L-nt,k[F]kt?(V=dt[G+k[F]],Rt=yt[Bt+k[F]]):(V=32+64,Rt=0),at=1<>nt)+st]=Lt<<24|V<<16|Rt|0;while(st!==0);for(at=1<>=1;if(at!==0?(bt&=at-1,bt+=at):bt=0,F++,--ft[L]===0){if(L===$)break;L=T[f+k[F]]}if(L>W&&(bt&qt)!==St){for(nt===0&&(nt=W),Nt+=P,K=L-nt,ht=1<ENOUGH_LENS$1||p===DISTS$1&&J>ENOUGH_DISTS$1)return 1;St=bt&qt,g[St]=W<<24|K<<16|Nt-E|0}}return bt!==0&&(g[Nt+bt]=L-nt<<24|64<<16|0),M.bits=W,0};var inftrees=inflate_table;const CODES=0,LENS=1,DISTS=2,{Z_FINISH:Z_FINISH$1,Z_BLOCK,Z_TREES,Z_OK:Z_OK$1,Z_STREAM_END:Z_STREAM_END$1,Z_NEED_DICT:Z_NEED_DICT$1,Z_STREAM_ERROR:Z_STREAM_ERROR$1,Z_DATA_ERROR:Z_DATA_ERROR$1,Z_MEM_ERROR:Z_MEM_ERROR$1,Z_BUF_ERROR,Z_DEFLATED}=constants$2,HEAD=1,FLAGS=2,TIME=3,OS=4,EXLEN=5,EXTRA=6,NAME=7,COMMENT=8,HCRC=9,DICTID=10,DICT=11,TYPE=12,TYPEDO=13,STORED=14,COPY_=15,COPY=16,TABLE=17,LENLENS=18,CODELENS=19,LEN_=20,LEN=21,LENEXT=22,DIST=23,DISTEXT=24,MATCH=25,LIT=26,CHECK=27,LENGTH=28,DONE=29,BAD=30,MEM=31,SYNC=32,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=p=>(p>>>24&255)+(p>>>8&65280)+((p&65280)<<8)+((p&255)<<24);function InflateState(){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 inflateResetKeep=p=>{if(!p||!p.state)return Z_STREAM_ERROR$1;const T=p.state;return p.total_in=p.total_out=T.total=0,p.msg="",T.wrap&&(p.adler=T.wrap&1),T.mode=HEAD,T.last=0,T.havedict=0,T.dmax=32768,T.head=null,T.hold=0,T.bits=0,T.lencode=T.lendyn=new Int32Array(ENOUGH_LENS),T.distcode=T.distdyn=new Int32Array(ENOUGH_DISTS),T.sane=1,T.back=-1,Z_OK$1},inflateReset=p=>{if(!p||!p.state)return Z_STREAM_ERROR$1;const T=p.state;return T.wsize=0,T.whave=0,T.wnext=0,inflateResetKeep(p)},inflateReset2=(p,T)=>{let f;if(!p||!p.state)return Z_STREAM_ERROR$1;const b=p.state;return T<0?(f=0,T=-T):(f=(T>>4)+1,T<48&&(T&=15)),T&&(T<8||T>15)?Z_STREAM_ERROR$1:(b.window!==null&&b.wbits!==T&&(b.window=null),b.wrap=f,b.wbits=T,inflateReset(p))},inflateInit2=(p,T)=>{if(!p)return Z_STREAM_ERROR$1;const f=new InflateState;p.state=f,f.window=null;const b=inflateReset2(p,T);return b!==Z_OK$1&&(p.state=null),b},inflateInit=p=>inflateInit2(p,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=p=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let T=0;for(;T<144;)p.lens[T++]=8;for(;T<256;)p.lens[T++]=9;for(;T<280;)p.lens[T++]=7;for(;T<288;)p.lens[T++]=8;for(inftrees(LENS,p.lens,0,288,lenfix,0,p.work,{bits:9}),T=0;T<32;)p.lens[T++]=5;inftrees(DISTS,p.lens,0,32,distfix,0,p.work,{bits:5}),virgin=!1}p.lencode=lenfix,p.lenbits=9,p.distcode=distfix,p.distbits=5},updatewindow=(p,T,f,b)=>{let g;const E=p.state;return E.window===null&&(E.wsize=1<=E.wsize?(E.window.set(T.subarray(f-E.wsize,f),0),E.wnext=0,E.whave=E.wsize):(g=E.wsize-E.wnext,g>b&&(g=b),E.window.set(T.subarray(f-b,f-b+g),E.wnext),b-=g,b?(E.window.set(T.subarray(f-b,f),0),E.wnext=b,E.whave=E.wsize):(E.wnext+=g,E.wnext===E.wsize&&(E.wnext=0),E.whave{let f,b,g,E,k,M,O,L,F,P,$,W,K,nt,ht=0,J,bt,at,st,St,qt,Nt,yt;const Bt=new Uint8Array(4);let kt,ft;const rt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!p||!p.state||!p.output||!p.input&&p.avail_in!==0)return Z_STREAM_ERROR$1;f=p.state,f.mode===TYPE&&(f.mode=TYPEDO),k=p.next_out,g=p.output,O=p.avail_out,E=p.next_in,b=p.input,M=p.avail_in,L=f.hold,F=f.bits,P=M,$=O,yt=Z_OK$1;t:for(;;)switch(f.mode){case HEAD:if(f.wrap===0){f.mode=TYPEDO;break}for(;F<16;){if(M===0)break t;M--,L+=b[E++]<>>8&255,f.check=crc32_1(f.check,Bt,2,0),L=0,F=0,f.mode=FLAGS;break}if(f.flags=0,f.head&&(f.head.done=!1),!(f.wrap&1)||(((L&255)<<8)+(L>>8))%31){p.msg="incorrect header check",f.mode=BAD;break}if((L&15)!==Z_DEFLATED){p.msg="unknown compression method",f.mode=BAD;break}if(L>>>=4,F-=4,Nt=(L&15)+8,f.wbits===0)f.wbits=Nt;else if(Nt>f.wbits){p.msg="invalid window size",f.mode=BAD;break}f.dmax=1<>8&1),f.flags&512&&(Bt[0]=L&255,Bt[1]=L>>>8&255,f.check=crc32_1(f.check,Bt,2,0)),L=0,F=0,f.mode=TIME;case TIME:for(;F<32;){if(M===0)break t;M--,L+=b[E++]<>>8&255,Bt[2]=L>>>16&255,Bt[3]=L>>>24&255,f.check=crc32_1(f.check,Bt,4,0)),L=0,F=0,f.mode=OS;case OS:for(;F<16;){if(M===0)break t;M--,L+=b[E++]<>8),f.flags&512&&(Bt[0]=L&255,Bt[1]=L>>>8&255,f.check=crc32_1(f.check,Bt,2,0)),L=0,F=0,f.mode=EXLEN;case EXLEN:if(f.flags&1024){for(;F<16;){if(M===0)break t;M--,L+=b[E++]<>>8&255,f.check=crc32_1(f.check,Bt,2,0)),L=0,F=0}else f.head&&(f.head.extra=null);f.mode=EXTRA;case EXTRA:if(f.flags&1024&&(W=f.length,W>M&&(W=M),W&&(f.head&&(Nt=f.head.extra_len-f.length,f.head.extra||(f.head.extra=new Uint8Array(f.head.extra_len)),f.head.extra.set(b.subarray(E,E+W),Nt)),f.flags&512&&(f.check=crc32_1(f.check,b,W,E)),M-=W,E+=W,f.length-=W),f.length))break t;f.length=0,f.mode=NAME;case NAME:if(f.flags&2048){if(M===0)break t;W=0;do Nt=b[E+W++],f.head&&Nt&&f.length<65536&&(f.head.name+=String.fromCharCode(Nt));while(Nt&&W>9&1,f.head.done=!0),p.adler=f.check=0,f.mode=TYPE;break;case DICTID:for(;F<32;){if(M===0)break t;M--,L+=b[E++]<>>=F&7,F-=F&7,f.mode=CHECK;break}for(;F<3;){if(M===0)break t;M--,L+=b[E++]<>>=1,F-=1,L&3){case 0:f.mode=STORED;break;case 1:if(fixedtables(f),f.mode=LEN_,T===Z_TREES){L>>>=2,F-=2;break t}break;case 2:f.mode=TABLE;break;case 3:p.msg="invalid block type",f.mode=BAD}L>>>=2,F-=2;break;case STORED:for(L>>>=F&7,F-=F&7;F<32;){if(M===0)break t;M--,L+=b[E++]<>>16^65535)){p.msg="invalid stored block lengths",f.mode=BAD;break}if(f.length=L&65535,L=0,F=0,f.mode=COPY_,T===Z_TREES)break t;case COPY_:f.mode=COPY;case COPY:if(W=f.length,W){if(W>M&&(W=M),W>O&&(W=O),W===0)break t;g.set(b.subarray(E,E+W),k),M-=W,E+=W,O-=W,k+=W,f.length-=W;break}f.mode=TYPE;break;case TABLE:for(;F<14;){if(M===0)break t;M--,L+=b[E++]<>>=5,F-=5,f.ndist=(L&31)+1,L>>>=5,F-=5,f.ncode=(L&15)+4,L>>>=4,F-=4,f.nlen>286||f.ndist>30){p.msg="too many length or distance symbols",f.mode=BAD;break}f.have=0,f.mode=LENLENS;case LENLENS:for(;f.have>>=3,F-=3}for(;f.have<19;)f.lens[rt[f.have++]]=0;if(f.lencode=f.lendyn,f.lenbits=7,kt={bits:f.lenbits},yt=inftrees(CODES,f.lens,0,19,f.lencode,0,f.work,kt),f.lenbits=kt.bits,yt){p.msg="invalid code lengths set",f.mode=BAD;break}f.have=0,f.mode=CODELENS;case CODELENS:for(;f.have>>24,bt=ht>>>16&255,at=ht&65535,!(J<=F);){if(M===0)break t;M--,L+=b[E++]<>>=J,F-=J,f.lens[f.have++]=at;else{if(at===16){for(ft=J+2;F>>=J,F-=J,f.have===0){p.msg="invalid bit length repeat",f.mode=BAD;break}Nt=f.lens[f.have-1],W=3+(L&3),L>>>=2,F-=2}else if(at===17){for(ft=J+3;F>>=J,F-=J,Nt=0,W=3+(L&7),L>>>=3,F-=3}else{for(ft=J+7;F>>=J,F-=J,Nt=0,W=11+(L&127),L>>>=7,F-=7}if(f.have+W>f.nlen+f.ndist){p.msg="invalid bit length repeat",f.mode=BAD;break}for(;W--;)f.lens[f.have++]=Nt}}if(f.mode===BAD)break;if(f.lens[256]===0){p.msg="invalid code -- missing end-of-block",f.mode=BAD;break}if(f.lenbits=9,kt={bits:f.lenbits},yt=inftrees(LENS,f.lens,0,f.nlen,f.lencode,0,f.work,kt),f.lenbits=kt.bits,yt){p.msg="invalid literal/lengths set",f.mode=BAD;break}if(f.distbits=6,f.distcode=f.distdyn,kt={bits:f.distbits},yt=inftrees(DISTS,f.lens,f.nlen,f.ndist,f.distcode,0,f.work,kt),f.distbits=kt.bits,yt){p.msg="invalid distances set",f.mode=BAD;break}if(f.mode=LEN_,T===Z_TREES)break t;case LEN_:f.mode=LEN;case LEN:if(M>=6&&O>=258){p.next_out=k,p.avail_out=O,p.next_in=E,p.avail_in=M,f.hold=L,f.bits=F,inffast(p,$),k=p.next_out,g=p.output,O=p.avail_out,E=p.next_in,b=p.input,M=p.avail_in,L=f.hold,F=f.bits,f.mode===TYPE&&(f.back=-1);break}for(f.back=0;ht=f.lencode[L&(1<>>24,bt=ht>>>16&255,at=ht&65535,!(J<=F);){if(M===0)break t;M--,L+=b[E++]<>st)],J=ht>>>24,bt=ht>>>16&255,at=ht&65535,!(st+J<=F);){if(M===0)break t;M--,L+=b[E++]<>>=st,F-=st,f.back+=st}if(L>>>=J,F-=J,f.back+=J,f.length=at,bt===0){f.mode=LIT;break}if(bt&32){f.back=-1,f.mode=TYPE;break}if(bt&64){p.msg="invalid literal/length code",f.mode=BAD;break}f.extra=bt&15,f.mode=LENEXT;case LENEXT:if(f.extra){for(ft=f.extra;F>>=f.extra,F-=f.extra,f.back+=f.extra}f.was=f.length,f.mode=DIST;case DIST:for(;ht=f.distcode[L&(1<>>24,bt=ht>>>16&255,at=ht&65535,!(J<=F);){if(M===0)break t;M--,L+=b[E++]<>st)],J=ht>>>24,bt=ht>>>16&255,at=ht&65535,!(st+J<=F);){if(M===0)break t;M--,L+=b[E++]<>>=st,F-=st,f.back+=st}if(L>>>=J,F-=J,f.back+=J,bt&64){p.msg="invalid distance code",f.mode=BAD;break}f.offset=at,f.extra=bt&15,f.mode=DISTEXT;case DISTEXT:if(f.extra){for(ft=f.extra;F>>=f.extra,F-=f.extra,f.back+=f.extra}if(f.offset>f.dmax){p.msg="invalid distance too far back",f.mode=BAD;break}f.mode=MATCH;case MATCH:if(O===0)break t;if(W=$-O,f.offset>W){if(W=f.offset-W,W>f.whave&&f.sane){p.msg="invalid distance too far back",f.mode=BAD;break}W>f.wnext?(W-=f.wnext,K=f.wsize-W):K=f.wnext-W,W>f.length&&(W=f.length),nt=f.window}else nt=g,K=k-f.offset,W=f.length;W>O&&(W=O),O-=W,f.length-=W;do g[k++]=nt[K++];while(--W);f.length===0&&(f.mode=LEN);break;case LIT:if(O===0)break t;g[k++]=f.length,O--,f.mode=LEN;break;case CHECK:if(f.wrap){for(;F<32;){if(M===0)break t;M--,L|=b[E++]<{if(!p||!p.state)return Z_STREAM_ERROR$1;let T=p.state;return T.window&&(T.window=null),p.state=null,Z_OK$1},inflateGetHeader=(p,T)=>{if(!p||!p.state)return Z_STREAM_ERROR$1;const f=p.state;return(f.wrap&2)===0?Z_STREAM_ERROR$1:(f.head=T,T.done=!1,Z_OK$1)},inflateSetDictionary=(p,T)=>{const f=T.length;let b,g,E;return!p||!p.state||(b=p.state,b.wrap!==0&&b.mode!==DICT)?Z_STREAM_ERROR$1:b.mode===DICT&&(g=1,g=adler32_1(g,T,f,0),g!==b.check)?Z_DATA_ERROR$1:(E=updatewindow(p,T,f,f),E?(b.mode=MEM,Z_MEM_ERROR$1):(b.havedict=1,Z_OK$1))};var inflateReset_1=inflateReset,inflateReset2_1=inflateReset2,inflateResetKeep_1=inflateResetKeep,inflateInit_1=inflateInit,inflateInit2_1=inflateInit2,inflate_2$1=inflate$2,inflateEnd_1=inflateEnd,inflateGetHeader_1=inflateGetHeader,inflateSetDictionary_1=inflateSetDictionary,inflateInfo="pako inflate (from Nodeca project)",inflate_1$2={inflateReset:inflateReset_1,inflateReset2:inflateReset2_1,inflateResetKeep:inflateResetKeep_1,inflateInit:inflateInit_1,inflateInit2:inflateInit2_1,inflate:inflate_2$1,inflateEnd:inflateEnd_1,inflateGetHeader:inflateGetHeader_1,inflateSetDictionary:inflateSetDictionary_1,inflateInfo};function GZheader(){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 gzheader=GZheader;const toString=Object.prototype.toString,{Z_NO_FLUSH,Z_FINISH,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR}=constants$2;function Inflate$1(p){this.options=common.assign({chunkSize:1024*64,windowBits:15,to:""},p||{});const T=this.options;T.raw&&T.windowBits>=0&&T.windowBits<16&&(T.windowBits=-T.windowBits,T.windowBits===0&&(T.windowBits=-15)),T.windowBits>=0&&T.windowBits<16&&!(p&&p.windowBits)&&(T.windowBits+=32),T.windowBits>15&&T.windowBits<48&&(T.windowBits&15)===0&&(T.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let f=inflate_1$2.inflateInit2(this.strm,T.windowBits);if(f!==Z_OK)throw new Error(messages[f]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),T.dictionary&&(typeof T.dictionary=="string"?T.dictionary=strings.string2buf(T.dictionary):toString.call(T.dictionary)==="[object ArrayBuffer]"&&(T.dictionary=new Uint8Array(T.dictionary)),T.raw&&(f=inflate_1$2.inflateSetDictionary(this.strm,T.dictionary),f!==Z_OK)))throw new Error(messages[f])}Inflate$1.prototype.push=function(p,T){const f=this.strm,b=this.options.chunkSize,g=this.options.dictionary;let E,k,M;if(this.ended)return!1;for(T===~~T?k=T:k=T===!0?Z_FINISH:Z_NO_FLUSH,toString.call(p)==="[object ArrayBuffer]"?f.input=new Uint8Array(p):f.input=p,f.next_in=0,f.avail_in=f.input.length;;){for(f.avail_out===0&&(f.output=new Uint8Array(b),f.next_out=0,f.avail_out=b),E=inflate_1$2.inflate(f,k),E===Z_NEED_DICT&&g&&(E=inflate_1$2.inflateSetDictionary(f,g),E===Z_OK?E=inflate_1$2.inflate(f,k):E===Z_DATA_ERROR&&(E=Z_NEED_DICT));f.avail_in>0&&E===Z_STREAM_END&&f.state.wrap>0&&p[f.next_in]!==0;)inflate_1$2.inflateReset(f),E=inflate_1$2.inflate(f,k);switch(E){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(E),this.ended=!0,!1}if(M=f.avail_out,f.next_out&&(f.avail_out===0||E===Z_STREAM_END))if(this.options.to==="string"){let O=strings.utf8border(f.output,f.next_out),L=f.next_out-O,F=strings.buf2string(f.output,O);f.next_out=L,f.avail_out=b-L,L&&f.output.set(f.output.subarray(O,O+L),0),this.onData(F)}else this.onData(f.output.length===f.next_out?f.output:f.output.subarray(0,f.next_out));if(!(E===Z_OK&&M===0)){if(E===Z_STREAM_END)return E=inflate_1$2.inflateEnd(this.strm),this.onEnd(E),this.ended=!0,!0;if(f.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(p){this.chunks.push(p)};Inflate$1.prototype.onEnd=function(p){p===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg};function inflate$1(p,T){const f=new Inflate$1(T);if(f.push(p),f.err)throw f.msg||messages[f.err];return f.result}function inflateRaw$1(p,T){return T=T||{},T.raw=!0,inflate$1(p,T)}var Inflate_1$1=Inflate$1,inflate_2=inflate$1,inflateRaw_1$1=inflateRaw$1,ungzip$1=inflate$1,constants=constants$2,inflate_1$1={Inflate:Inflate_1$1,inflate:inflate_2,inflateRaw:inflateRaw_1$1,ungzip:ungzip$1,constants};const{Deflate,deflate,deflateRaw,gzip}=deflate_1$1,{Inflate,inflate,inflateRaw,ungzip}=inflate_1$1;var deflate_1=deflate,inflate_1=inflate;const _hasatob=typeof atob=="function",_hasbtoa=typeof btoa=="function",_hasBuffer=typeof Buffer=="function",_TD=typeof TextDecoder=="function"?new TextDecoder:void 0,_TE=typeof TextEncoder=="function"?new TextEncoder:void 0,b64ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b64chs=Array.prototype.slice.call(b64ch),b64tab=(p=>{let T={};return p.forEach((f,b)=>T[f]=b),T})(b64chs),b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_fromCC=String.fromCharCode.bind(String),_U8Afrom=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):(p,T=f=>f)=>new Uint8Array(Array.prototype.slice.call(p,0).map(T)),_mkUriSafe=p=>p.replace(/=/g,"").replace(/[+\/]/g,T=>T=="+"?"-":"_"),_tidyB64=p=>p.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=p=>{let T,f,b,g,E="";const k=p.length%3;for(let M=0;M255||(b=p.charCodeAt(M++))>255||(g=p.charCodeAt(M++))>255)throw new TypeError("invalid character found");T=f<<16|b<<8|g,E+=b64chs[T>>18&63]+b64chs[T>>12&63]+b64chs[T>>6&63]+b64chs[T&63]}return k?E.slice(0,k-3)+"===".substring(k):E},_btoa=_hasbtoa?p=>btoa(p):_hasBuffer?p=>Buffer.from(p,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?p=>Buffer.from(p).toString("base64"):p=>{let f=[];for(let b=0,g=p.length;bT?_mkUriSafe(_fromUint8Array(p)):_fromUint8Array(p),cb_utob=p=>{if(p.length<2){var T=p.charCodeAt(0);return T<128?p:T<2048?_fromCC(192|T>>>6)+_fromCC(128|T&63):_fromCC(224|T>>>12&15)+_fromCC(128|T>>>6&63)+_fromCC(128|T&63)}else{var T=65536+(p.charCodeAt(0)-55296)*1024+(p.charCodeAt(1)-56320);return _fromCC(240|T>>>18&7)+_fromCC(128|T>>>12&63)+_fromCC(128|T>>>6&63)+_fromCC(128|T&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=p=>p.replace(re_utob,cb_utob),_encode=_hasBuffer?p=>Buffer.from(p,"utf8").toString("base64"):_TE?p=>_fromUint8Array(_TE.encode(p)):p=>_btoa(utob(p)),encode=(p,T=!1)=>T?_mkUriSafe(_encode(p)):_encode(p),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=p=>{switch(p.length){case 4:var T=(7&p.charCodeAt(0))<<18|(63&p.charCodeAt(1))<<12|(63&p.charCodeAt(2))<<6|63&p.charCodeAt(3),f=T-65536;return _fromCC((f>>>10)+55296)+_fromCC((f&1023)+56320);case 3:return _fromCC((15&p.charCodeAt(0))<<12|(63&p.charCodeAt(1))<<6|63&p.charCodeAt(2));default:return _fromCC((31&p.charCodeAt(0))<<6|63&p.charCodeAt(1))}},btou=p=>p.replace(re_btou,cb_btou),atobPolyfill=p=>{if(p=p.replace(/\s+/g,""),!b64re.test(p))throw new TypeError("malformed base64.");p+="==".slice(2-(p.length&3));let T,f="",b,g;for(let E=0;E>16&255):g===64?_fromCC(T>>16&255,T>>8&255):_fromCC(T>>16&255,T>>8&255,T&255);return f},_atob=_hasatob?p=>atob(_tidyB64(p)):_hasBuffer?p=>Buffer.from(p,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?p=>_U8Afrom(Buffer.from(p,"base64")):p=>_U8Afrom(_atob(p),T=>T.charCodeAt(0)),toUint8Array=p=>_toUint8Array(_unURI(p)),_decode=_hasBuffer?p=>Buffer.from(p,"base64").toString("utf8"):_TD?p=>_TD.decode(_toUint8Array(p)):p=>btou(_atob(p)),_unURI=p=>_tidyB64(p.replace(/[-_]/g,T=>T=="-"?"+":"/")),decode=p=>_decode(_unURI(p)),base64Serde={serialize:p=>encode(p,!0),deserialize:p=>decode(p)},pakoSerde={serialize:p=>{const T=new TextEncoder().encode(p),f=deflate_1(T,{level:9});return fromUint8Array(f,!0)},deserialize:p=>{const T=toUint8Array(p);return inflate_1(T,{to:"string"})}},serdes={base64:base64Serde,pako:pakoSerde},serializeState=p=>{const T=JSON.stringify(p),f="pako",b=serdes[f].serialize(T);return`${f}:${b}`},deserializeState=p=>{let T,f;if(p.includes(":")){let g;if([g,f]=p.split(":"),g in serdes)T=g;else throw new Error(`Unknown serde type: ${g}`)}else T="base64",f=p;const b=serdes[T].deserialize(f);return JSON.parse(b)};/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var t={2536:(p,T,f)=>{p=f.nmd(p);var b=function(){var g=function(We,$e,Ue,Qe){for(Ue=Ue||{},Qe=We.length;Qe--;Ue[We[Qe]]=$e);return Ue},E=[1,6],k=[1,7],M=[1,8],O=[1,9],L=[1,16],F=[1,11],P=[1,12],$=[1,13],W=[1,14],K=[1,15],nt=[1,27],ht=[1,33],J=[1,34],bt=[1,66],at=[1,67],st=[1,68],St=[1,69],qt=[1,70],Nt=[1,71],yt=[1,72],Bt=[1,35],kt=[1,36],ft=[1,37],rt=[1,38],dt=[1,39],G=[1,40],Lt=[1,41],V=[1,42],Rt=[1,43],Yt=[1,44],Gt=[1,45],ye=[1,46],qe=[1,47],xe=[1,48],he=[1,49],me=[1,50],Ie=[1,51],Le=[1,52],ve=[1,53],kn=[1,54],be=[1,56],Ge=[1,57],$t=[1,58],fe=[1,59],oe=[1,60],Ft=[1,61],Me=[1,62],et=[1,63],Ne=[24,47],lt=[24,39,41,42,43,44,45,46,47,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],Ae=[15,24,39,41,42,43,44,45,46,47,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],ae=[1,86],we=[1,87],Ye=[1,88],Pe=[15,24,47],ln=[7,8,9,10,18,22,25,26,27,28],De=[15,24,38,47],Ke=[15,24,38,47,78,79,80],rn=[15,38],on=[39,41,42,43,44,45,46,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],Oe={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,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,boundaryStatement:34,boundaryStartStatement:35,boundaryStopStatement:36,boundaryStart:37,LBRACE:38,ENTERPRISE_BOUNDARY:39,attributes:40,SYSTEM_BOUNDARY:41,BOUNDARY:42,CONTAINER_BOUNDARY:43,NODE:44,NODE_L:45,NODE_R:46,RBRACE:47,diagramStatement:48,PERSON:49,PERSON_EXT:50,SYSTEM:51,SYSTEM_DB:52,SYSTEM_QUEUE:53,SYSTEM_EXT:54,SYSTEM_EXT_DB:55,SYSTEM_EXT_QUEUE:56,CONTAINER:57,CONTAINER_DB:58,CONTAINER_QUEUE:59,CONTAINER_EXT:60,CONTAINER_EXT_DB:61,CONTAINER_EXT_QUEUE:62,COMPONENT:63,COMPONENT_DB:64,COMPONENT_QUEUE:65,COMPONENT_EXT:66,COMPONENT_EXT_DB:67,COMPONENT_EXT_QUEUE:68,REL:69,BIREL:70,REL_U:71,REL_D:72,REL_L:73,REL_R:74,REL_B:75,REL_INDEX:76,attribute:77,STR:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY: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:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",38:"LBRACE",39:"ENTERPRISE_BOUNDARY",41:"SYSTEM_BOUNDARY",42:"BOUNDARY",43:"CONTAINER_BOUNDARY",44:"NODE",45:"NODE_L",46:"NODE_R",47:"RBRACE",49:"PERSON",50:"PERSON_EXT",51:"SYSTEM",52:"SYSTEM_DB",53:"SYSTEM_QUEUE",54:"SYSTEM_EXT",55:"SYSTEM_EXT_DB",56:"SYSTEM_EXT_QUEUE",57:"CONTAINER",58:"CONTAINER_DB",59:"CONTAINER_QUEUE",60:"CONTAINER_EXT",61:"CONTAINER_EXT_DB",62:"CONTAINER_EXT_QUEUE",63:"COMPONENT",64:"COMPONENT_DB",65:"COMPONENT_QUEUE",66:"COMPONENT_EXT",67:"COMPONENT_EXT_DB",68:"COMPONENT_EXT_QUEUE",69:"REL",70:"BIREL",71:"REL_U",72:"REL_D",73:"REL_L",74:"REL_R",75:"REL_B",76:"REL_INDEX",78:"STR",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},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],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[34,3],[35,3],[35,3],[35,4],[37,2],[37,2],[37,2],[37,2],[37,2],[37,2],[37,2],[36,1],[30,1],[30,2],[30,3],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,1],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[40,1],[40,2],[77,1],[77,1],[77,1]],performAction:function(We,$e,Ue,Qe,qn,zt,Dn){var Ht=zt.length-1;switch(qn){case 4:Qe.setDirection("TB");break;case 5:Qe.setDirection("BT");break;case 6:Qe.setDirection("RL");break;case 7:Qe.setDirection("LR");break;case 11:console.log("open_directive: ",zt[Ht]),Qe.parseDirective("%%{","open_directive");break;case 12:break;case 13:zt[Ht]=zt[Ht].trim().replace(/'/g,'"'),console.log("arg_directive: ",zt[Ht]),Qe.parseDirective(zt[Ht],"arg_directive");break;case 14:console.log("close_directive: ",zt[Ht]),Qe.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:Qe.setC4Type(zt[Ht-3]);break;case 26:Qe.setTitle(zt[Ht].substring(6)),this.$=zt[Ht].substring(6);break;case 27:Qe.setAccDescription(zt[Ht].substring(15)),this.$=zt[Ht].substring(15);break;case 32:case 33:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),zt[Ht].splice(2,0,"ENTERPRISE"),Qe.addPersonOrSystemBoundary(...zt[Ht]),this.$=zt[Ht];break;case 34:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addPersonOrSystemBoundary(...zt[Ht]),this.$=zt[Ht];break;case 35:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),zt[Ht].splice(2,0,"CONTAINER"),Qe.addContainerBoundary(...zt[Ht]),this.$=zt[Ht];break;case 36:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addDeploymentNode("node",...zt[Ht]),this.$=zt[Ht];break;case 37:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addDeploymentNode("nodeL",...zt[Ht]),this.$=zt[Ht];break;case 38:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addDeploymentNode("nodeR",...zt[Ht]),this.$=zt[Ht];break;case 39:Qe.popBoundaryParseStack();break;case 43:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addPersonOrSystem("person",...zt[Ht]),this.$=zt[Ht];break;case 44:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addPersonOrSystem("external_person",...zt[Ht]),this.$=zt[Ht];break;case 45:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addPersonOrSystem("system",...zt[Ht]),this.$=zt[Ht];break;case 46:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addPersonOrSystem("system_db",...zt[Ht]),this.$=zt[Ht];break;case 47:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addPersonOrSystem("system_queue",...zt[Ht]),this.$=zt[Ht];break;case 48:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addPersonOrSystem("external_system",...zt[Ht]),this.$=zt[Ht];break;case 49:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addPersonOrSystem("external_system_db",...zt[Ht]),this.$=zt[Ht];break;case 50:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addPersonOrSystem("external_system_queue",...zt[Ht]),this.$=zt[Ht];break;case 51:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addContainer("container",...zt[Ht]),this.$=zt[Ht];break;case 52:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addContainer("container_db",...zt[Ht]),this.$=zt[Ht];break;case 53:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addContainer("container_queue",...zt[Ht]),this.$=zt[Ht];break;case 54:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addContainer("external_container",...zt[Ht]),this.$=zt[Ht];break;case 55:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addContainer("external_container_db",...zt[Ht]),this.$=zt[Ht];break;case 56:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addContainer("external_container_queue",...zt[Ht]),this.$=zt[Ht];break;case 57:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addComponent("component",...zt[Ht]),this.$=zt[Ht];break;case 58:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addComponent("component_db",...zt[Ht]),this.$=zt[Ht];break;case 59:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addComponent("component_queue",...zt[Ht]),this.$=zt[Ht];break;case 60:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addComponent("external_component",...zt[Ht]),this.$=zt[Ht];break;case 61:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addComponent("external_component_db",...zt[Ht]),this.$=zt[Ht];break;case 62:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addComponent("external_component_queue",...zt[Ht]),this.$=zt[Ht];break;case 64:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addRel("rel",...zt[Ht]),this.$=zt[Ht];break;case 65:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addRel("birel",...zt[Ht]),this.$=zt[Ht];break;case 66:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addRel("rel_u",...zt[Ht]),this.$=zt[Ht];break;case 67:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addRel("rel_d",...zt[Ht]),this.$=zt[Ht];break;case 68:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addRel("rel_l",...zt[Ht]),this.$=zt[Ht];break;case 69:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addRel("rel_r",...zt[Ht]),this.$=zt[Ht];break;case 70:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),Qe.addRel("rel_b",...zt[Ht]),this.$=zt[Ht];break;case 71:console.log(zt[Ht-1],JSON.stringify(zt[Ht])),zt[Ht].splice(0,1),Qe.addRel("rel",...zt[Ht]),this.$=zt[Ht];break;case 72:console.log("PUSH ATTRIBUTE: ",zt[Ht]),this.$=[zt[Ht]];break;case 73:console.log("PUSH ATTRIBUTE: ",zt[Ht-1]),zt[Ht].unshift(zt[Ht-1]),this.$=zt[Ht];break;case 74:case 75:this.$=zt[Ht].trim();break;case 76:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:E,8:k,9:M,10:O,11:5,12:10,18:L,22:F,25:P,26:$,27:W,28:K},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:E,8:k,9:M,10:O,11:5,12:10,18:L,22:F,25:P,26:$,27:W,28:K},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:nt},g([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:ht,33:J,34:55,35:64,37:65,39:bt,41:at,42:st,43:St,44:qt,45:Nt,46:yt,48:32,49:Bt,50:kt,51:ft,52:rt,53:dt,54:G,55:Lt,56:V,57:Rt,58:Yt,59:Gt,60:ye,61:qe,62:xe,63:he,64:me,65:Ie,66:Le,67:ve,68:kn,69:be,70:Ge,71:$t,72:fe,73:oe,74:Ft,75:Me,76:et},{23:73,29:29,30:30,31:31,32:ht,33:J,34:55,35:64,37:65,39:bt,41:at,42:st,43:St,44:qt,45:Nt,46:yt,48:32,49:Bt,50:kt,51:ft,52:rt,53:dt,54:G,55:Lt,56:V,57:Rt,58:Yt,59:Gt,60:ye,61:qe,62:xe,63:he,64:me,65:Ie,66:Le,67:ve,68:kn,69:be,70:Ge,71:$t,72:fe,73:oe,74:Ft,75:Me,76:et},{23:74,29:29,30:30,31:31,32:ht,33:J,34:55,35:64,37:65,39:bt,41:at,42:st,43:St,44:qt,45:Nt,46:yt,48:32,49:Bt,50:kt,51:ft,52:rt,53:dt,54:G,55:Lt,56:V,57:Rt,58:Yt,59:Gt,60:ye,61:qe,62:xe,63:he,64:me,65:Ie,66:Le,67:ve,68:kn,69:be,70:Ge,71:$t,72:fe,73:oe,74:Ft,75:Me,76:et},{23:75,29:29,30:30,31:31,32:ht,33:J,34:55,35:64,37:65,39:bt,41:at,42:st,43:St,44:qt,45:Nt,46:yt,48:32,49:Bt,50:kt,51:ft,52:rt,53:dt,54:G,55:Lt,56:V,57:Rt,58:Yt,59:Gt,60:ye,61:qe,62:xe,63:he,64:me,65:Ie,66:Le,67:ve,68:kn,69:be,70:Ge,71:$t,72:fe,73:oe,74:Ft,75:Me,76:et},{23:76,29:29,30:30,31:31,32:ht,33:J,34:55,35:64,37:65,39:bt,41:at,42:st,43:St,44:qt,45:Nt,46:yt,48:32,49:Bt,50:kt,51:ft,52:rt,53:dt,54:G,55:Lt,56:V,57:Rt,58:Yt,59:Gt,60:ye,61:qe,62:xe,63:he,64:me,65:Ie,66:Le,67:ve,68:kn,69:be,70:Ge,71:$t,72:fe,73:oe,74:Ft,75:Me,76:et},{15:[1,77]},{17:78,20:[1,79]},{15:[2,14]},{24:[1,80]},g(Ne,[2,20],{48:32,34:55,35:64,37:65,30:81,39:bt,41:at,42:st,43:St,44:qt,45:Nt,46:yt,49:Bt,50:kt,51:ft,52:rt,53:dt,54:G,55:Lt,56:V,57:Rt,58:Yt,59:Gt,60:ye,61:qe,62:xe,63:he,64:me,65:Ie,66:Le,67:ve,68:kn,69:be,70:Ge,71:$t,72:fe,73:oe,74:Ft,75:Me,76:et}),g(Ne,[2,21]),g(lt,[2,23],{15:[1,82]}),g(Ne,[2,40],{15:[1,83]}),g(Ae,[2,26]),g(Ae,[2,27]),{40:84,77:85,78:ae,79:we,80:Ye},{40:89,77:85,78:ae,79:we,80:Ye},{40:90,77:85,78:ae,79:we,80:Ye},{40:91,77:85,78:ae,79:we,80:Ye},{40:92,77:85,78:ae,79:we,80:Ye},{40:93,77:85,78:ae,79:we,80:Ye},{40:94,77:85,78:ae,79:we,80:Ye},{40:95,77:85,78:ae,79:we,80:Ye},{40:96,77:85,78:ae,79:we,80:Ye},{40:97,77:85,78:ae,79:we,80:Ye},{40:98,77:85,78:ae,79:we,80:Ye},{40:99,77:85,78:ae,79:we,80:Ye},{40:100,77:85,78:ae,79:we,80:Ye},{40:101,77:85,78:ae,79:we,80:Ye},{40:102,77:85,78:ae,79:we,80:Ye},{40:103,77:85,78:ae,79:we,80:Ye},{40:104,77:85,78:ae,79:we,80:Ye},{40:105,77:85,78:ae,79:we,80:Ye},{40:106,77:85,78:ae,79:we,80:Ye},{40:107,77:85,78:ae,79:we,80:Ye},g(Pe,[2,63]),{40:108,77:85,78:ae,79:we,80:Ye},{40:109,77:85,78:ae,79:we,80:Ye},{40:110,77:85,78:ae,79:we,80:Ye},{40:111,77:85,78:ae,79:we,80:Ye},{40:112,77:85,78:ae,79:we,80:Ye},{40:113,77:85,78:ae,79:we,80:Ye},{40:114,77:85,78:ae,79:we,80:Ye},{40:115,77:85,78:ae,79:we,80:Ye},{30:116,34:55,35:64,37:65,39:bt,41:at,42:st,43:St,44:qt,45:Nt,46:yt,48:32,49:Bt,50:kt,51:ft,52:rt,53:dt,54:G,55:Lt,56:V,57:Rt,58:Yt,59:Gt,60:ye,61:qe,62:xe,63:he,64:me,65:Ie,66:Le,67:ve,68:kn,69:be,70:Ge,71:$t,72:fe,73:oe,74:Ft,75:Me,76:et},{15:[1,118],38:[1,117]},{40:119,77:85,78:ae,79:we,80:Ye},{40:120,77:85,78:ae,79:we,80:Ye},{40:121,77:85,78:ae,79:we,80:Ye},{40:122,77:85,78:ae,79:we,80:Ye},{40:123,77:85,78:ae,79:we,80:Ye},{40:124,77:85,78:ae,79:we,80:Ye},{40:125,77:85,78:ae,79:we,80:Ye},{24:[1,126]},{24:[1,127]},{24:[1,128]},{24:[1,129]},g(ln,[2,9]),{14:130,21:nt},{21:[2,13]},{1:[2,15]},g(Ne,[2,22]),g(lt,[2,24],{31:31,29:131,32:ht,33:J}),g(Ne,[2,41],{29:29,30:30,31:31,48:32,34:55,35:64,37:65,23:132,32:ht,33:J,39:bt,41:at,42:st,43:St,44:qt,45:Nt,46:yt,49:Bt,50:kt,51:ft,52:rt,53:dt,54:G,55:Lt,56:V,57:Rt,58:Yt,59:Gt,60:ye,61:qe,62:xe,63:he,64:me,65:Ie,66:Le,67:ve,68:kn,69:be,70:Ge,71:$t,72:fe,73:oe,74:Ft,75:Me,76:et}),g(Pe,[2,43]),g(De,[2,72],{77:85,40:133,78:ae,79:we,80:Ye}),g(Ke,[2,74]),g(Ke,[2,75]),g(Ke,[2,76]),g(Pe,[2,44]),g(Pe,[2,45]),g(Pe,[2,46]),g(Pe,[2,47]),g(Pe,[2,48]),g(Pe,[2,49]),g(Pe,[2,50]),g(Pe,[2,51]),g(Pe,[2,52]),g(Pe,[2,53]),g(Pe,[2,54]),g(Pe,[2,55]),g(Pe,[2,56]),g(Pe,[2,57]),g(Pe,[2,58]),g(Pe,[2,59]),g(Pe,[2,60]),g(Pe,[2,61]),g(Pe,[2,62]),g(Pe,[2,64]),g(Pe,[2,65]),g(Pe,[2,66]),g(Pe,[2,67]),g(Pe,[2,68]),g(Pe,[2,69]),g(Pe,[2,70]),g(Pe,[2,71]),{36:134,47:[1,135]},{15:[1,136]},{38:[1,137]},g(rn,[2,32]),g(rn,[2,33]),g(rn,[2,34]),g(rn,[2,35]),g(rn,[2,36]),g(rn,[2,37]),g(rn,[2,38]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,138]},g(lt,[2,25]),g(Ne,[2,42]),g(De,[2,73]),g(Pe,[2,28]),g(Pe,[2,39]),g(on,[2,29]),g(on,[2,30],{15:[1,139]}),g(ln,[2,10]),g(on,[2,31])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],79:[2,13],80:[2,15],126:[2,16],127:[2,17],128:[2,18],129:[2,19]},parseError:function(We,$e){if(!$e.recoverable){var Ue=new Error(We);throw Ue.hash=$e,Ue}this.trace(We)},parse:function(We){var $e=this,Ue=[0],Qe=[],qn=[null],zt=[],Dn=this.table,Ht="",gn=0,In=0,un=0,Gn=2,er=1,$r=zt.slice.call(arguments,1),An=Object.create(this.lexer),jn={yy:{}};for(var Pn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Pn)&&(jn.yy[Pn]=this.yy[Pn]);An.setInput(We,jn.yy),jn.yy.lexer=An,jn.yy.parser=this,An.yylloc===void 0&&(An.yylloc={});var On=An.yylloc;zt.push(On);var zn=An.options&&An.options.ranges;function $n(){var br;return typeof(br=Qe.pop()||An.lex()||er)!="number"&&(br instanceof Array&&(br=(Qe=br).pop()),br=$e.symbols_[br]||br),br}typeof jn.yy.parseError=="function"?this.parseError=jn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Cn,Vn,Tn,Nn,Zn,ua,yr,Ci,_n,xi={};;){if(Tn=Ue[Ue.length-1],this.defaultActions[Tn]?Nn=this.defaultActions[Tn]:(Cn==null&&(Cn=$n()),Nn=Dn[Tn]&&Dn[Tn][Cn]),Nn===void 0||!Nn.length||!Nn[0]){var kr="";for(ua in _n=[],Dn[Tn])this.terminals_[ua]&&ua>Gn&&_n.push("'"+this.terminals_[ua]+"'");kr=An.showPosition?"Parse error on line "+(gn+1)+`: `+An.showPosition()+` Expecting `+_n.join(", ")+", got '"+(this.terminals_[Cn]||Cn)+"'":"Parse error on line "+(gn+1)+": Unexpected "+(Cn==er?"end of input":"'"+(this.terminals_[Cn]||Cn)+"'"),this.parseError(kr,{text:An.match,token:this.terminals_[Cn]||Cn,line:An.yylineno,loc:On,expected:_n})}if(Nn[0]instanceof Array&&Nn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Tn+", token: "+Cn);switch(Nn[0]){case 1:Ue.push(Cn),qn.push(An.yytext),zt.push(An.yylloc),Ue.push(Nn[1]),Cn=null,Vn?(Cn=Vn,Vn=null):(In=An.yyleng,Ht=An.yytext,gn=An.yylineno,On=An.yylloc,un>0);break;case 2:if(yr=this.productions_[Nn[1]][1],xi.$=qn[qn.length-yr],xi._$={first_line:zt[zt.length-(yr||1)].first_line,last_line:zt[zt.length-1].last_line,first_column:zt[zt.length-(yr||1)].first_column,last_column:zt[zt.length-1].last_column},zn&&(xi._$.range=[zt[zt.length-(yr||1)].range[0],zt[zt.length-1].range[1]]),(Zn=this.performAction.apply(xi,[Ht,In,gn,jn.yy,Nn[1],qn,zt].concat($r)))!==void 0)return Zn;yr&&(Ue=Ue.slice(0,-1*yr*2),qn=qn.slice(0,-1*yr),zt=zt.slice(0,-1*yr)),Ue.push(this.productions_[Nn[1]][0]),qn.push(xi.$),zt.push(xi._$),Ci=Dn[Ue[Ue.length-2]][Ue[Ue.length-1]],Ue.push(Ci);break;case 3:return!0}}return!0}},dn={EOF:1,parseError:function(We,$e){if(!this.yy.parser)throw new Error(We);this.yy.parser.parseError(We,$e)},setInput:function(We,$e){return this.yy=$e||this.yy||{},this._input=We,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 We=this._input[0];return this.yytext+=We,this.yyleng++,this.offset++,this.match+=We,this.matched+=We,We.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),We},unput:function(We){var $e=We.length,Ue=We.split(/(?:\r\n?|\n)/g);this._input=We+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-$e),this.offset-=$e;var Qe=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),Ue.length-1&&(this.yylineno-=Ue.length-1);var qn=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:Ue?(Ue.length===Qe.length?this.yylloc.first_column:0)+Qe[Qe.length-Ue.length].length-Ue[0].length:this.yylloc.first_column-$e},this.options.ranges&&(this.yylloc.range=[qn[0],qn[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(We){this.unput(this.match.slice(We))},pastInput:function(){var We=this.matched.substr(0,this.matched.length-this.match.length);return(We.length>20?"...":"")+We.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var We=this.match;return We.length<20&&(We+=this._input.substr(0,20-We.length)),(We.substr(0,20)+(We.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var We=this.pastInput(),$e=new Array(We.length+1).join("-");return We+this.upcomingInput()+` `+$e+"^"},test_match:function(We,$e){var Ue,Qe,qn;if(this.options.backtrack_lexer&&(qn={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&&(qn.yylloc.range=this.yylloc.range.slice(0))),(Qe=We[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Qe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Qe?Qe[Qe.length-1].length-Qe[Qe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+We[0].length},this.yytext+=We[0],this.match+=We[0],this.matches=We,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(We[0].length),this.matched+=We[0],Ue=this.performAction.call(this,this.yy,this,$e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ue)return Ue;if(this._backtrack){for(var zt in qn)this[zt]=qn[zt];return!1}return!1},next:function(){if(this.done)return this.EOF;var We,$e,Ue,Qe;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var qn=this._currentRules(),zt=0;zt$e[0].length)){if($e=Ue,Qe=zt,this.options.backtrack_lexer){if((We=this.test_match(Ue,qn[zt]))!==!1)return We;if(this._backtrack){$e=!1;continue}return!1}if(!this.options.flex)break}return $e?(We=this.test_match($e,qn[Qe]))!==!1&&We: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(We){this.conditionStack.push(We)},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(We){return(We=this.conditionStack.length-1-Math.abs(We||0))>=0?this.conditionStack[We]:"INITIAL"},pushState:function(We){this.begin(We)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(We,$e,Ue,Qe){switch(Ue){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 14:break;case 10:c;break;case 11:return 32;case 12:return 33;case 13:return 15;case 15:return 22;case 16:return 25;case 17:return 26;case 18:return 27;case 19:return 28;case 20:return this.begin("person_ext"),console.log("begin person_ext"),50;case 21:return this.begin("person"),console.log("begin person"),49;case 22:return this.begin("system_ext_queue"),console.log("begin system_ext_queue"),56;case 23:return this.begin("system_ext_db"),console.log("begin system_ext_db"),55;case 24:return this.begin("system_ext"),console.log("begin system_ext"),54;case 25:return this.begin("system_queue"),console.log("begin system_queue"),53;case 26:return this.begin("system_db"),console.log("begin system_db"),52;case 27:return this.begin("system"),console.log("begin system"),51;case 28:return this.begin("boundary"),console.log("begin boundary"),42;case 29:return this.begin("enterprise_boundary"),console.log("begin enterprise_boundary"),39;case 30:return this.begin("system_boundary"),console.log("begin system_boundary"),41;case 31:return this.begin("container_ext_queue"),console.log("begin container_ext_queue"),62;case 32:return this.begin("container_ext_db"),console.log("begin container_ext_db"),61;case 33:return this.begin("container_ext"),console.log("begin container_ext"),60;case 34:return this.begin("container_queue"),console.log("begin container_queue"),59;case 35:return this.begin("container_db"),console.log("begin container_db"),58;case 36:return this.begin("container"),console.log("begin container"),57;case 37:return this.begin("container_boundary"),console.log("begin container_boundary"),43;case 38:return this.begin("component_ext_queue"),console.log("begin component_ext_queue"),68;case 39:return this.begin("component_ext_db"),console.log("begin component_ext_db"),67;case 40:return this.begin("component_ext"),console.log("begin component_ext"),66;case 41:return this.begin("component_queue"),console.log("begin component_queue"),65;case 42:return this.begin("component_db"),console.log("begin component_db"),64;case 43:return this.begin("component"),console.log("begin component"),63;case 44:case 45:return this.begin("node"),console.log("begin node"),44;case 46:return this.begin("node_l"),console.log("begin node_l"),45;case 47:return this.begin("node_r"),console.log("begin node_r"),46;case 48:return this.begin("rel"),console.log("begin rel"),69;case 49:return this.begin("birel"),console.log("begin birel"),70;case 50:case 51:return this.begin("rel_u"),console.log("begin rel_u"),71;case 52:case 53:return this.begin("rel_d"),console.log("begin rel_d"),72;case 54:case 55:return this.begin("rel_l"),console.log("begin rel_l"),73;case 56:case 57:return this.begin("rel_r"),console.log("begin rel_r"),74;case 58:return this.begin("rel_b"),console.log("begin rel_b"),75;case 59:return this.begin("rel_index"),console.log("begin rel_index"),76;case 60:return"EOF_IN_STRUCT";case 61:return console.log("begin attribute with ATTRIBUTE_EMPTY"),this.begin("attribute"),"ATTRIBUTE_EMPTY";case 62:console.log("begin attribute"),this.begin("attribute");break;case 63:console.log("STOP attribute"),this.popState(),console.log("STOP diagram"),this.popState();break;case 64:return console.log(",,"),80;case 65:console.log(",");break;case 66:return console.log("ATTRIBUTE_EMPTY"),80;case 67:console.log("begin string"),this.begin("string");break;case 68:console.log("STOP string"),this.popState();break;case 69:return console.log("STR"),"STR";case 70:return console.log("not STR"),"STR";case 71:return console.log("begin boundary block"),"LBRACE";case 72:return console.log("STOP boundary block"),"RBRACE";case 73:return"SPACE";case 74:return"EOL";case 75: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)*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string:{rules:[68,69],inclusive:!1},attribute:{rules:[63,64,65,66,67,70],inclusive:!1},rel_b:{rules:[60,61,62,63],inclusive:!1},rel_r:{rules:[60,61,62,63],inclusive:!1},rel_l:{rules:[60,61,62,63],inclusive:!1},rel_d:{rules:[60,61,62,63],inclusive:!1},rel_u:{rules:[60,61,62,63],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[60,61,62,63],inclusive:!1},node_r:{rules:[60,61,62,63],inclusive:!1},node_l:{rules:[60,61,62,63],inclusive:!1},node:{rules:[60,61,62,63],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[60,61,62,63],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[60,61,62,63],inclusive:!1},component_ext:{rules:[60,61,62,63],inclusive:!1},component_queue:{rules:[60,61,62,63],inclusive:!1},component_db:{rules:[60,61,62,63],inclusive:!1},component:{rules:[60,61,62,63],inclusive:!1},container_boundary:{rules:[60,61,62,63],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[60,61,62,63],inclusive:!1},container_ext:{rules:[60,61,62,63],inclusive:!1},container_queue:{rules:[60,61,62,63],inclusive:!1},container_db:{rules:[60,61,62,63],inclusive:!1},container:{rules:[60,61,62,63],inclusive:!1},birel:{rules:[60,61,62,63],inclusive:!1},system_boundary:{rules:[60,61,62,63],inclusive:!1},enterprise_boundary:{rules:[60,61,62,63],inclusive:!1},boundary:{rules:[60,61,62,63],inclusive:!1},system_ext_queue:{rules:[60,61,62,63],inclusive:!1},system_ext_db:{rules:[60,61,62,63],inclusive:!1},system_ext:{rules:[60,61,62,63],inclusive:!1},system_queue:{rules:[60,61,62,63],inclusive:!1},system_db:{rules:[60,61,62,63],inclusive:!1},system:{rules:[60,61,62,63],inclusive:!1},person_ext:{rules:[60,61,62,63],inclusive:!1},person:{rules:[60,61,62,63],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,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,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,71,72,73,74,75],inclusive:!0}}};function mn(){this.yy={}}return Oe.lexer=dn,mn.prototype=Oe,Oe.Parser=mn,new mn}();T.parser=b,T.Parser=b.Parser,T.parse=function(){return b.parse.apply(b,arguments)},T.main=function(g){g[1]||(console.log("Usage: "+g[0]+" FILE"),process.exit(1));var E=f(555).readFileSync(f(6470).normalize(g[1]),"utf8");return T.parser.parse(E)},f.c[f.s]===p&&T.main(process.argv.slice(1))},1362:(p,T,f)=>{p=f.nmd(p);var b=function(){var g=function($t,fe,oe,Ft){for(oe=oe||{},Ft=$t.length;Ft--;oe[$t[Ft]]=fe);return oe},E=[1,3],k=[1,7],M=[1,8],O=[1,9],L=[1,10],F=[1,13],P=[1,12],$=[1,16,25],W=[1,20],K=[1,31],nt=[1,32],ht=[1,33],J=[1,35],bt=[1,38],at=[1,36],st=[1,37],St=[1,39],qt=[1,40],Nt=[1,41],yt=[1,42],Bt=[1,45],kt=[1,46],ft=[1,47],rt=[1,48],dt=[16,25],G=[1,62],Lt=[1,63],V=[1,64],Rt=[1,65],Yt=[1,66],Gt=[1,67],ye=[16,25,32,44,45,53,56,57,58,59,60,61,66,68],qe=[16,25,30,32,44,45,49,53,56,57,58,59,60,61,66,68,83,84,85,86],xe=[5,8,9,10,11,16,19,23,25],he=[53,83,84,85,86],me=[53,60,61,83,84,85,86],Ie=[53,56,57,58,59,83,84,85,86],Le=[16,25,32],ve=[1,99],kn={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,CLASS:43,STYLE_SEPARATOR:44,STRUCT_START:45,members:46,STRUCT_STOP:47,ANNOTATION_START:48,ANNOTATION_END:49,MEMBER:50,SEPARATOR:51,relation:52,STR:53,relationType:54,lineType:55,AGGREGATION:56,EXTENSION:57,COMPOSITION:58,DEPENDENCY:59,LINE:60,DOTTED_LINE:61,CALLBACK:62,LINK:63,LINK_TARGET:64,CLICK:65,CALLBACK_NAME:66,CALLBACK_ARGS:67,HREF:68,CSSCLASS:69,commentToken:70,textToken:71,graphCodeTokens:72,textNoTagsToken:73,TAGSTART:74,TAGEND:75,"==":76,"--":77,PCT:78,DEFAULT:79,SPACE:80,MINUS:81,keywords:82,UNICODE_TEXT:83,NUM:84,ALPHA:85,BQUOTE_STR:86,$accept:0,$end:1},terminals_:{2:"error",5:"statments",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",25:"EOF",30:"GENERICTYPE",32:"LABEL",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"CLASS",44:"STYLE_SEPARATOR",45:"STRUCT_START",47:"STRUCT_STOP",48:"ANNOTATION_START",49:"ANNOTATION_END",50:"MEMBER",51:"SEPARATOR",53:"STR",56:"AGGREGATION",57:"EXTENSION",58:"COMPOSITION",59:"DEPENDENCY",60:"LINE",61:"DOTTED_LINE",62:"CALLBACK",63:"LINK",64:"LINK_TARGET",65:"CLICK",66:"CALLBACK_NAME",67:"CALLBACK_ARGS",68:"HREF",69:"CSSCLASS",72:"graphCodeTokens",74:"TAGSTART",75:"TAGEND",76:"==",77:"--",78:"PCT",79:"DEFAULT",80:"SPACE",81:"MINUS",82:"keywords",83:"UNICODE_TEXT",84:"NUM",85:"ALPHA",86:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[46,1],[46,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[52,3],[52,2],[52,2],[52,1],[54,1],[54,1],[54,1],[54,1],[55,1],[55,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[70,1],[70,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[73,1],[73,1],[73,1],[73,1],[28,1],[28,1],[28,1],[29,1]],performAction:function($t,fe,oe,Ft,Me,et,Ne){var lt=et.length-1;switch(Me){case 5:Ft.setDirection("TB");break;case 6:Ft.setDirection("BT");break;case 7:Ft.setDirection("RL");break;case 8:Ft.setDirection("LR");break;case 12:Ft.parseDirective("%%{","open_directive");break;case 13:Ft.parseDirective(et[lt],"type_directive");break;case 14:et[lt]=et[lt].trim().replace(/'/g,'"'),Ft.parseDirective(et[lt],"arg_directive");break;case 15:Ft.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=et[lt];break;case 22:this.$=et[lt-1]+et[lt];break;case 23:case 24:this.$=et[lt-1]+"~"+et[lt];break;case 25:Ft.addRelation(et[lt]);break;case 26:et[lt-1].title=Ft.cleanupLabel(et[lt]),Ft.addRelation(et[lt-1]);break;case 34:this.$=et[lt].trim(),Ft.setAccTitle(this.$);break;case 35:case 36:this.$=et[lt].trim(),Ft.setAccDescription(this.$);break;case 37:Ft.addClass(et[lt]);break;case 38:Ft.addClass(et[lt-2]),Ft.setCssClass(et[lt-2],et[lt]);break;case 39:Ft.addClass(et[lt-3]),Ft.addMembers(et[lt-3],et[lt-1]);break;case 40:Ft.addClass(et[lt-5]),Ft.setCssClass(et[lt-5],et[lt-3]),Ft.addMembers(et[lt-5],et[lt-1]);break;case 41:Ft.addAnnotation(et[lt],et[lt-2]);break;case 42:this.$=[et[lt]];break;case 43:et[lt].push(et[lt-1]),this.$=et[lt];break;case 44:case 46:case 47:break;case 45:Ft.addMember(et[lt-1],Ft.cleanupLabel(et[lt]));break;case 48:this.$={id1:et[lt-2],id2:et[lt],relation:et[lt-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:et[lt-3],id2:et[lt],relation:et[lt-1],relationTitle1:et[lt-2],relationTitle2:"none"};break;case 50:this.$={id1:et[lt-3],id2:et[lt],relation:et[lt-2],relationTitle1:"none",relationTitle2:et[lt-1]};break;case 51:this.$={id1:et[lt-4],id2:et[lt],relation:et[lt-2],relationTitle1:et[lt-3],relationTitle2:et[lt-1]};break;case 52:this.$={type1:et[lt-2],type2:et[lt],lineType:et[lt-1]};break;case 53:this.$={type1:"none",type2:et[lt],lineType:et[lt-1]};break;case 54:this.$={type1:et[lt-1],type2:"none",lineType:et[lt]};break;case 55:this.$={type1:"none",type2:"none",lineType:et[lt]};break;case 56:this.$=Ft.relationType.AGGREGATION;break;case 57:this.$=Ft.relationType.EXTENSION;break;case 58:this.$=Ft.relationType.COMPOSITION;break;case 59:this.$=Ft.relationType.DEPENDENCY;break;case 60:this.$=Ft.lineType.LINE;break;case 61:this.$=Ft.lineType.DOTTED_LINE;break;case 62:case 68:this.$=et[lt-2],Ft.setClickEvent(et[lt-1],et[lt]);break;case 63:case 69:this.$=et[lt-3],Ft.setClickEvent(et[lt-2],et[lt-1]),Ft.setTooltip(et[lt-2],et[lt]);break;case 64:case 72:this.$=et[lt-2],Ft.setLink(et[lt-1],et[lt]);break;case 65:case 73:this.$=et[lt-3],Ft.setLink(et[lt-2],et[lt-1],et[lt]);break;case 66:case 74:this.$=et[lt-3],Ft.setLink(et[lt-2],et[lt-1]),Ft.setTooltip(et[lt-2],et[lt]);break;case 67:case 75:this.$=et[lt-4],Ft.setLink(et[lt-3],et[lt-2],et[lt]),Ft.setTooltip(et[lt-3],et[lt-1]);break;case 70:this.$=et[lt-3],Ft.setClickEvent(et[lt-2],et[lt-1],et[lt]);break;case 71:this.$=et[lt-4],Ft.setClickEvent(et[lt-3],et[lt-2],et[lt-1]),Ft.setTooltip(et[lt-3],et[lt]);break;case 76:Ft.setCssClass(et[lt-1],et[lt])}},table:[{3:1,4:2,5:E,6:4,7:5,8:k,9:M,10:O,11:L,12:6,13:11,19:F,23:P},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:E,6:4,7:5,8:k,9:M,10:O,11:L,12:6,13:11,19:F,23:P},{1:[2,9]},g($,[2,5]),g($,[2,6]),g($,[2,7]),g($,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:W},g([17,22],[2,13]),{6:30,7:29,8:k,9:M,10:O,11:L,13:11,19:F,24:21,26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:K,40:nt,42:ht,43:J,48:bt,50:at,51:st,62:St,63:qt,65:Nt,69:yt,83:Bt,84:kt,85:ft,86:rt},{16:[1,49]},{18:50,21:[1,51]},{16:[2,15]},{25:[1,52]},{16:[1,53],25:[2,17]},g(dt,[2,25],{32:[1,54]}),g(dt,[2,27]),g(dt,[2,28]),g(dt,[2,29]),g(dt,[2,30]),g(dt,[2,31]),g(dt,[2,32]),g(dt,[2,33]),{39:[1,55]},{41:[1,56]},g(dt,[2,36]),g(dt,[2,44],{52:57,54:60,55:61,32:[1,59],53:[1,58],56:G,57:Lt,58:V,59:Rt,60:Yt,61:Gt}),{27:68,28:43,29:44,83:Bt,84:kt,85:ft,86:rt},g(dt,[2,46]),g(dt,[2,47]),{28:69,83:Bt,84:kt,85:ft},{27:70,28:43,29:44,83:Bt,84:kt,85:ft,86:rt},{27:71,28:43,29:44,83:Bt,84:kt,85:ft,86:rt},{27:72,28:43,29:44,83:Bt,84:kt,85:ft,86:rt},{53:[1,73]},g(ye,[2,20],{28:43,29:44,27:74,30:[1,75],83:Bt,84:kt,85:ft,86:rt}),g(ye,[2,21],{30:[1,76]}),g(qe,[2,90]),g(qe,[2,91]),g(qe,[2,92]),g([16,25,30,32,44,45,53,56,57,58,59,60,61,66,68],[2,93]),g(xe,[2,10]),{15:77,22:W},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:k,9:M,10:O,11:L,13:11,19:F,24:78,25:[2,18],26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:K,40:nt,42:ht,43:J,48:bt,50:at,51:st,62:St,63:qt,65:Nt,69:yt,83:Bt,84:kt,85:ft,86:rt},g(dt,[2,26]),g(dt,[2,34]),g(dt,[2,35]),{27:79,28:43,29:44,53:[1,80],83:Bt,84:kt,85:ft,86:rt},{52:81,54:60,55:61,56:G,57:Lt,58:V,59:Rt,60:Yt,61:Gt},g(dt,[2,45]),{55:82,60:Yt,61:Gt},g(he,[2,55],{54:83,56:G,57:Lt,58:V,59:Rt}),g(me,[2,56]),g(me,[2,57]),g(me,[2,58]),g(me,[2,59]),g(Ie,[2,60]),g(Ie,[2,61]),g(dt,[2,37],{44:[1,84],45:[1,85]}),{49:[1,86]},{53:[1,87]},{53:[1,88]},{66:[1,89],68:[1,90]},{28:91,83:Bt,84:kt,85:ft},g(ye,[2,22]),g(ye,[2,23]),g(ye,[2,24]),{16:[1,92]},{25:[2,19]},g(Le,[2,48]),{27:93,28:43,29:44,83:Bt,84:kt,85:ft,86:rt},{27:94,28:43,29:44,53:[1,95],83:Bt,84:kt,85:ft,86:rt},g(he,[2,54],{54:96,56:G,57:Lt,58:V,59:Rt}),g(he,[2,53]),{28:97,83:Bt,84:kt,85:ft},{46:98,50:ve},{27:100,28:43,29:44,83:Bt,84:kt,85:ft,86:rt},g(dt,[2,62],{53:[1,101]}),g(dt,[2,64],{53:[1,103],64:[1,102]}),g(dt,[2,68],{53:[1,104],67:[1,105]}),g(dt,[2,72],{53:[1,107],64:[1,106]}),g(dt,[2,76]),g(xe,[2,11]),g(Le,[2,50]),g(Le,[2,49]),{27:108,28:43,29:44,83:Bt,84:kt,85:ft,86:rt},g(he,[2,52]),g(dt,[2,38],{45:[1,109]}),{47:[1,110]},{46:111,47:[2,42],50:ve},g(dt,[2,41]),g(dt,[2,63]),g(dt,[2,65]),g(dt,[2,66],{64:[1,112]}),g(dt,[2,69]),g(dt,[2,70],{53:[1,113]}),g(dt,[2,73]),g(dt,[2,74],{64:[1,114]}),g(Le,[2,51]),{46:115,50:ve},g(dt,[2,39]),{47:[2,43]},g(dt,[2,67]),g(dt,[2,71]),g(dt,[2,75]),{47:[1,116]},g(dt,[2,40])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],51:[2,14],52:[2,16],78:[2,19],111:[2,43]},parseError:function($t,fe){if(!fe.recoverable){var oe=new Error($t);throw oe.hash=fe,oe}this.trace($t)},parse:function($t){var fe=this,oe=[0],Ft=[],Me=[null],et=[],Ne=this.table,lt="",Ae=0,ae=0,we=0,Ye=2,Pe=1,ln=et.slice.call(arguments,1),De=Object.create(this.lexer),Ke={yy:{}};for(var rn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rn)&&(Ke.yy[rn]=this.yy[rn]);De.setInput($t,Ke.yy),Ke.yy.lexer=De,Ke.yy.parser=this,De.yylloc===void 0&&(De.yylloc={});var on=De.yylloc;et.push(on);var Oe=De.options&&De.options.ranges;function dn(){var un;return typeof(un=Ft.pop()||De.lex()||Pe)!="number"&&(un instanceof Array&&(un=(Ft=un).pop()),un=fe.symbols_[un]||un),un}typeof Ke.yy.parseError=="function"?this.parseError=Ke.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var mn,We,$e,Ue,Qe,qn,zt,Dn,Ht,gn={};;){if($e=oe[oe.length-1],this.defaultActions[$e]?Ue=this.defaultActions[$e]:(mn==null&&(mn=dn()),Ue=Ne[$e]&&Ne[$e][mn]),Ue===void 0||!Ue.length||!Ue[0]){var In="";for(qn in Ht=[],Ne[$e])this.terminals_[qn]&&qn>Ye&&Ht.push("'"+this.terminals_[qn]+"'");In=De.showPosition?"Parse error on line "+(Ae+1)+`: `+De.showPosition()+` Expecting `+Ht.join(", ")+", got '"+(this.terminals_[mn]||mn)+"'":"Parse error on line "+(Ae+1)+": Unexpected "+(mn==Pe?"end of input":"'"+(this.terminals_[mn]||mn)+"'"),this.parseError(In,{text:De.match,token:this.terminals_[mn]||mn,line:De.yylineno,loc:on,expected:Ht})}if(Ue[0]instanceof Array&&Ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$e+", token: "+mn);switch(Ue[0]){case 1:oe.push(mn),Me.push(De.yytext),et.push(De.yylloc),oe.push(Ue[1]),mn=null,We?(mn=We,We=null):(ae=De.yyleng,lt=De.yytext,Ae=De.yylineno,on=De.yylloc,we>0);break;case 2:if(zt=this.productions_[Ue[1]][1],gn.$=Me[Me.length-zt],gn._$={first_line:et[et.length-(zt||1)].first_line,last_line:et[et.length-1].last_line,first_column:et[et.length-(zt||1)].first_column,last_column:et[et.length-1].last_column},Oe&&(gn._$.range=[et[et.length-(zt||1)].range[0],et[et.length-1].range[1]]),(Qe=this.performAction.apply(gn,[lt,ae,Ae,Ke.yy,Ue[1],Me,et].concat(ln)))!==void 0)return Qe;zt&&(oe=oe.slice(0,-1*zt*2),Me=Me.slice(0,-1*zt),et=et.slice(0,-1*zt)),oe.push(this.productions_[Ue[1]][0]),Me.push(gn.$),et.push(gn._$),Dn=Ne[oe[oe.length-2]][oe[oe.length-1]],oe.push(Dn);break;case 3:return!0}}return!0}},be={EOF:1,parseError:function($t,fe){if(!this.yy.parser)throw new Error($t);this.yy.parser.parseError($t,fe)},setInput:function($t,fe){return this.yy=fe||this.yy||{},this._input=$t,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 $t=this._input[0];return this.yytext+=$t,this.yyleng++,this.offset++,this.match+=$t,this.matched+=$t,$t.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),$t},unput:function($t){var fe=$t.length,oe=$t.split(/(?:\r\n?|\n)/g);this._input=$t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-fe),this.offset-=fe;var Ft=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 Me=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===Ft.length?this.yylloc.first_column:0)+Ft[Ft.length-oe.length].length-oe[0].length:this.yylloc.first_column-fe},this.options.ranges&&(this.yylloc.range=[Me[0],Me[0]+this.yyleng-fe]),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($t){this.unput(this.match.slice($t))},pastInput:function(){var $t=this.matched.substr(0,this.matched.length-this.match.length);return($t.length>20?"...":"")+$t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var $t=this.match;return $t.length<20&&($t+=this._input.substr(0,20-$t.length)),($t.substr(0,20)+($t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var $t=this.pastInput(),fe=new Array($t.length+1).join("-");return $t+this.upcomingInput()+` `+fe+"^"},test_match:function($t,fe){var oe,Ft,Me;if(this.options.backtrack_lexer&&(Me={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&&(Me.yylloc.range=this.yylloc.range.slice(0))),(Ft=$t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ft.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ft?Ft[Ft.length-1].length-Ft[Ft.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+$t[0].length},this.yytext+=$t[0],this.match+=$t[0],this.matches=$t,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($t[0].length),this.matched+=$t[0],oe=this.performAction.call(this,this.yy,this,fe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),oe)return oe;if(this._backtrack){for(var et in Me)this[et]=Me[et];return!1}return!1},next:function(){if(this.done)return this.EOF;var $t,fe,oe,Ft;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Me=this._currentRules(),et=0;etfe[0].length)){if(fe=oe,Ft=et,this.options.backtrack_lexer){if(($t=this.test_match(oe,Me[et]))!==!1)return $t;if(this._backtrack){fe=!1;continue}return!1}if(!this.options.flex)break}return fe?($t=this.test_match(fe,Me[Ft]))!==!1&&$t: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($t){this.conditionStack.push($t)},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($t){return($t=this.conditionStack.length-1-Math.abs($t||0))>=0?this.conditionStack[$t]:"INITIAL"},pushState:function($t){this.begin($t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function($t,fe,oe,Ft){switch(oe){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:case 10:case 19:case 26:break;case 11:return this.begin("acc_title"),38;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),40;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 36:case 39:case 42:case 45:case 48:case 51:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 20:case 21:return 23;case 22:return this.begin("struct"),45;case 23:return"EOF_IN_STRUCT";case 24:return"OPEN_IN_STRUCT";case 25:return this.popState(),47;case 27:return"MEMBER";case 28:return 43;case 29:return 69;case 30:return 62;case 31:return 63;case 32:return 65;case 33:return 48;case 34:return 49;case 35:this.begin("generic");break;case 37:return"GENERICTYPE";case 38:this.begin("string");break;case 40:return"STR";case 41:this.begin("bqstring");break;case 43:return"BQUOTE_STR";case 44:this.begin("href");break;case 46:return 68;case 47:this.begin("callback_name");break;case 49:this.popState(),this.begin("callback_args");break;case 50:return 66;case 52:return 67;case 53:case 54:case 55:case 56:return 64;case 57:case 58:return 57;case 59:case 60:return 59;case 61:return 58;case 62:return 56;case 63:return 60;case 64:return 61;case 65:return 32;case 66:return 44;case 67:return 81;case 68:return"DOT";case 69:return"PLUS";case 70:return 78;case 71:case 72:return"EQUALS";case 73:return 85;case 74:return"PUNCTUATION";case 75:return 84;case 76:return 83;case 77:return 80;case 78:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\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:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[51,52],inclusive:!1},callback_name:{rules:[48,49,50],inclusive:!1},href:{rules:[45,46],inclusive:!1},struct:{rules:[23,24,25,26,27],inclusive:!1},generic:{rules:[36,37],inclusive:!1},bqstring:{rules:[42,43],inclusive:!1},string:{rules:[39,40],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,28,29,30,31,32,33,34,35,38,41,44,47,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],inclusive:!0}}};function Ge(){this.yy={}}return kn.lexer=be,Ge.prototype=kn,kn.Parser=Ge,new Ge}();T.parser=b,T.Parser=b.Parser,T.parse=function(){return b.parse.apply(b,arguments)},T.main=function(g){g[1]||(console.log("Usage: "+g[0]+" FILE"),process.exit(1));var E=f(8218).readFileSync(f(6470).normalize(g[1]),"utf8");return T.parser.parse(E)},f.c[f.s]===p&&T.main(process.argv.slice(1))},5890:(p,T,f)=>{p=f.nmd(p);var b=function(){var g=function(rt,dt,G,Lt){for(G=G||{},Lt=rt.length;Lt--;G[rt[Lt]]=dt);return G},E=[1,2],k=[1,5],M=[6,9,11,23,25,27,29,30,49],O=[1,17],L=[1,18],F=[1,19],P=[1,20],$=[1,21],W=[1,24],K=[1,29],nt=[1,30],ht=[1,31],J=[1,32],bt=[6,9,11,15,20,23,25,27,29,30,42,43,44,45,49],at=[1,45],st=[30,46,47],St=[4,6,9,11,23,25,27,29,30,49],qt=[42,43,44,45],Nt=[22,37],yt=[1,64],Bt={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,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,".":31,attribute:32,attributeType:33,attributeName:34,attributeKeyType:35,attributeComment:36,ATTRIBUTE_WORD:37,ATTRIBUTE_KEY:38,COMMENT:39,cardinality:40,relType:41,ZERO_OR_ONE:42,ZERO_OR_MORE:43,ONE_OR_MORE:44,ONLY_ONE:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:".",37:"ATTRIBUTE_WORD",38:"ATTRIBUTE_KEY",39:"COMMENT",42:"ZERO_OR_ONE",43:"ZERO_OR_MORE",44:"ONE_OR_MORE",45:"ONLY_ONE",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD",49:"open_directive",50:"type_directive",51:"arg_directive",52:"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],[10,2],[10,2],[10,2],[10,1],[17,1],[17,3],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[36,1],[18,3],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(rt,dt,G,Lt,V,Rt,Yt){var Gt=Rt.length-1;switch(V){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:Rt[Gt-1].push(Rt[Gt]),this.$=Rt[Gt-1];break;case 5:case 6:case 20:case 28:case 29:case 30:case 40:this.$=Rt[Gt];break;case 12:Lt.addEntity(Rt[Gt-4]),Lt.addEntity(Rt[Gt-2]),Lt.addRelationship(Rt[Gt-4],Rt[Gt],Rt[Gt-2],Rt[Gt-3]);break;case 13:Lt.addEntity(Rt[Gt-3]),Lt.addAttributes(Rt[Gt-3],Rt[Gt-1]);break;case 14:Lt.addEntity(Rt[Gt-2]);break;case 15:Lt.addEntity(Rt[Gt]);break;case 16:case 17:this.$=Rt[Gt].trim(),Lt.setAccTitle(this.$);break;case 18:case 19:this.$=Rt[Gt].trim(),Lt.setAccDescription(this.$);break;case 21:this.$=Rt[Gt-2]+Rt[Gt-1]+Rt[Gt];break;case 22:this.$=[Rt[Gt]];break;case 23:Rt[Gt].push(Rt[Gt-1]),this.$=Rt[Gt];break;case 24:this.$={attributeType:Rt[Gt-1],attributeName:Rt[Gt]};break;case 25:this.$={attributeType:Rt[Gt-2],attributeName:Rt[Gt-1],attributeKeyType:Rt[Gt]};break;case 26:this.$={attributeType:Rt[Gt-2],attributeName:Rt[Gt-1],attributeComment:Rt[Gt]};break;case 27:this.$={attributeType:Rt[Gt-3],attributeName:Rt[Gt-2],attributeKeyType:Rt[Gt-1],attributeComment:Rt[Gt]};break;case 31:case 39:this.$=Rt[Gt].replace(/"/g,"");break;case 32:this.$={cardA:Rt[Gt],relType:Rt[Gt-1],cardB:Rt[Gt-2]};break;case 33:this.$=Lt.Cardinality.ZERO_OR_ONE;break;case 34:this.$=Lt.Cardinality.ZERO_OR_MORE;break;case 35:this.$=Lt.Cardinality.ONE_OR_MORE;break;case 36:this.$=Lt.Cardinality.ONLY_ONE;break;case 37:this.$=Lt.Identification.NON_IDENTIFYING;break;case 38:this.$=Lt.Identification.IDENTIFYING;break;case 41:Lt.parseDirective("%%{","open_directive");break;case 42:Lt.parseDirective(Rt[Gt],"type_directive");break;case 43:Rt[Gt]=Rt[Gt].trim().replace(/'/g,'"'),Lt.parseDirective(Rt[Gt],"arg_directive");break;case 44:Lt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:E,7:3,12:4,49:k},{1:[3]},g(M,[2,3],{5:6}),{3:7,4:E,7:3,12:4,49:k},{13:8,50:[1,9]},{50:[2,41]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:O,25:L,27:F,29:P,30:$,49:k},{1:[2,2]},{14:22,15:[1,23],52:W},g([15,52],[2,42]),g(M,[2,8],{1:[2,1]}),g(M,[2,4]),{7:15,10:25,12:4,17:16,23:O,25:L,27:F,29:P,30:$,49:k},g(M,[2,6]),g(M,[2,7]),g(M,[2,11]),g(M,[2,15],{18:26,40:28,20:[1,27],42:K,43:nt,44:ht,45:J}),{24:[1,33]},{26:[1,34]},{28:[1,35]},g(M,[2,19]),g(bt,[2,20],{31:[1,36]}),{11:[1,37]},{16:38,51:[1,39]},{11:[2,44]},g(M,[2,5]),{17:40,30:$},{21:41,22:[1,42],32:43,33:44,37:at},{41:46,46:[1,47],47:[1,48]},g(st,[2,33]),g(st,[2,34]),g(st,[2,35]),g(st,[2,36]),g(M,[2,16]),g(M,[2,17]),g(M,[2,18]),{17:49,30:$},g(St,[2,9]),{14:50,52:W},{52:[2,43]},{15:[1,51]},{22:[1,52]},g(M,[2,14]),{21:53,22:[2,22],32:43,33:44,37:at},{34:54,37:[1,55]},{37:[2,28]},{40:56,42:K,43:nt,44:ht,45:J},g(qt,[2,37]),g(qt,[2,38]),g(bt,[2,21]),{11:[1,57]},{19:58,30:[1,60],48:[1,59]},g(M,[2,13]),{22:[2,23]},g(Nt,[2,24],{35:61,36:62,38:[1,63],39:yt}),g([22,37,38,39],[2,29]),{30:[2,32]},g(St,[2,10]),g(M,[2,12]),g(M,[2,39]),g(M,[2,40]),g(Nt,[2,25],{36:65,39:yt}),g(Nt,[2,26]),g([22,37,39],[2,30]),g(Nt,[2,31]),g(Nt,[2,27])],defaultActions:{5:[2,41],7:[2,2],24:[2,44],39:[2,43],45:[2,28],53:[2,23],56:[2,32]},parseError:function(rt,dt){if(!dt.recoverable){var G=new Error(rt);throw G.hash=dt,G}this.trace(rt)},parse:function(rt){var dt=this,G=[0],Lt=[],V=[null],Rt=[],Yt=this.table,Gt="",ye=0,qe=0,xe=0,he=2,me=1,Ie=Rt.slice.call(arguments,1),Le=Object.create(this.lexer),ve={yy:{}};for(var kn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kn)&&(ve.yy[kn]=this.yy[kn]);Le.setInput(rt,ve.yy),ve.yy.lexer=Le,ve.yy.parser=this,Le.yylloc===void 0&&(Le.yylloc={});var be=Le.yylloc;Rt.push(be);var Ge=Le.options&&Le.options.ranges;function $t(){var Pe;return typeof(Pe=Lt.pop()||Le.lex()||me)!="number"&&(Pe instanceof Array&&(Pe=(Lt=Pe).pop()),Pe=dt.symbols_[Pe]||Pe),Pe}typeof ve.yy.parseError=="function"?this.parseError=ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var fe,oe,Ft,Me,et,Ne,lt,Ae,ae,we={};;){if(Ft=G[G.length-1],this.defaultActions[Ft]?Me=this.defaultActions[Ft]:(fe==null&&(fe=$t()),Me=Yt[Ft]&&Yt[Ft][fe]),Me===void 0||!Me.length||!Me[0]){var Ye="";for(Ne in ae=[],Yt[Ft])this.terminals_[Ne]&&Ne>he&&ae.push("'"+this.terminals_[Ne]+"'");Ye=Le.showPosition?"Parse error on line "+(ye+1)+`: `+Le.showPosition()+` Expecting `+ae.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":"Parse error on line "+(ye+1)+": Unexpected "+(fe==me?"end of input":"'"+(this.terminals_[fe]||fe)+"'"),this.parseError(Ye,{text:Le.match,token:this.terminals_[fe]||fe,line:Le.yylineno,loc:be,expected:ae})}if(Me[0]instanceof Array&&Me.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ft+", token: "+fe);switch(Me[0]){case 1:G.push(fe),V.push(Le.yytext),Rt.push(Le.yylloc),G.push(Me[1]),fe=null,oe?(fe=oe,oe=null):(qe=Le.yyleng,Gt=Le.yytext,ye=Le.yylineno,be=Le.yylloc,xe>0);break;case 2:if(lt=this.productions_[Me[1]][1],we.$=V[V.length-lt],we._$={first_line:Rt[Rt.length-(lt||1)].first_line,last_line:Rt[Rt.length-1].last_line,first_column:Rt[Rt.length-(lt||1)].first_column,last_column:Rt[Rt.length-1].last_column},Ge&&(we._$.range=[Rt[Rt.length-(lt||1)].range[0],Rt[Rt.length-1].range[1]]),(et=this.performAction.apply(we,[Gt,qe,ye,ve.yy,Me[1],V,Rt].concat(Ie)))!==void 0)return et;lt&&(G=G.slice(0,-1*lt*2),V=V.slice(0,-1*lt),Rt=Rt.slice(0,-1*lt)),G.push(this.productions_[Me[1]][0]),V.push(we.$),Rt.push(we._$),Ae=Yt[G[G.length-2]][G[G.length-1]],G.push(Ae);break;case 3:return!0}}return!0}},kt={EOF:1,parseError:function(rt,dt){if(!this.yy.parser)throw new Error(rt);this.yy.parser.parseError(rt,dt)},setInput:function(rt,dt){return this.yy=dt||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 dt=rt.length,G=rt.split(/(?:\r\n?|\n)/g);this._input=rt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-dt),this.offset-=dt;var Lt=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),G.length-1&&(this.yylineno-=G.length-1);var V=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:G?(G.length===Lt.length?this.yylloc.first_column:0)+Lt[Lt.length-G.length].length-G[0].length:this.yylloc.first_column-dt},this.options.ranges&&(this.yylloc.range=[V[0],V[0]+this.yyleng-dt]),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(),dt=new Array(rt.length+1).join("-");return rt+this.upcomingInput()+` `+dt+"^"},test_match:function(rt,dt){var G,Lt,V;if(this.options.backtrack_lexer&&(V={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&&(V.yylloc.range=this.yylloc.range.slice(0))),(Lt=rt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Lt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Lt?Lt[Lt.length-1].length-Lt[Lt.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],G=this.performAction.call(this,this.yy,this,dt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),G)return G;if(this._backtrack){for(var Rt in V)this[Rt]=V[Rt];return!1}return!1},next:function(){if(this.done)return this.EOF;var rt,dt,G,Lt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var V=this._currentRules(),Rt=0;Rtdt[0].length)){if(dt=G,Lt=Rt,this.options.backtrack_lexer){if((rt=this.test_match(G,V[Rt]))!==!1)return rt;if(this._backtrack){dt=!1;continue}return!1}if(!this.options.flex)break}return dt?(rt=this.test_match(dt,V[Lt]))!==!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,dt,G,Lt){switch(G){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),49;case 8:return this.begin("type_directive"),50;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),52;case 11:return 51;case 12:case 13:case 15:case 20:case 24:break;case 14:return 11;case 16:return 9;case 17:return 48;case 18:return 4;case 19:return this.begin("block"),20;case 21:return 38;case 22:return 37;case 23:return 39;case 25:return this.popState(),22;case 26:case 39:return dt.yytext[0];case 27:case 31:return 42;case 28:case 32:return 43;case 29:case 33:return 44;case 30:return 45;case 34:case 36:case 37:return 46;case 35:return 47;case 38:return 30;case 40:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/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:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[20,21,22,23,24,25,26],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,27,28,29,30,31,32,33,34,35,36,37,38,39,40],inclusive:!0}}};function ft(){this.yy={}}return Bt.lexer=kt,ft.prototype=Bt,Bt.Parser=ft,new ft}();T.parser=b,T.Parser=b.Parser,T.parse=function(){return b.parse.apply(b,arguments)},T.main=function(g){g[1]||(console.log("Usage: "+g[0]+" FILE"),process.exit(1));var E=f(8009).readFileSync(f(6470).normalize(g[1]),"utf8");return T.parser.parse(E)},f.c[f.s]===p&&T.main(process.argv.slice(1))},3602:(p,T,f)=>{p=f.nmd(p);var b=function(){var g=function(vn,nr,Re,Ve){for(Re=Re||{},Ve=vn.length;Ve--;Re[vn[Ve]]=nr);return Re},E=[1,9],k=[1,7],M=[1,6],O=[1,8],L=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],F=[2,10],P=[1,20],$=[1,21],W=[1,22],K=[1,23],nt=[1,30],ht=[1,32],J=[1,33],bt=[1,34],at=[1,62],st=[1,48],St=[1,52],qt=[1,36],Nt=[1,37],yt=[1,38],Bt=[1,39],kt=[1,40],ft=[1,56],rt=[1,63],dt=[1,51],G=[1,53],Lt=[1,55],V=[1,59],Rt=[1,60],Yt=[1,41],Gt=[1,42],ye=[1,43],qe=[1,44],xe=[1,61],he=[1,50],me=[1,54],Ie=[1,57],Le=[1,58],ve=[1,49],kn=[1,66],be=[1,71],Ge=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],$t=[1,75],fe=[1,74],oe=[1,76],Ft=[20,21,23,81,82],Me=[1,99],et=[1,104],Ne=[1,107],lt=[1,108],Ae=[1,101],ae=[1,106],we=[1,109],Ye=[1,102],Pe=[1,114],ln=[1,113],De=[1,103],Ke=[1,105],rn=[1,110],on=[1,111],Oe=[1,112],dn=[1,115],mn=[20,21,22,23,81,82],We=[20,21,22,23,53,81,82],$e=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],Ue=[20,21,23],Qe=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],qn=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],zt=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],Dn=[1,149],Ht=[1,157],gn=[1,158],In=[1,159],un=[1,160],Gn=[1,144],er=[1,145],$r=[1,141],An=[1,152],jn=[1,153],Pn=[1,154],On=[1,155],zn=[1,156],$n=[1,161],Cn=[1,162],Vn=[1,147],Tn=[1,150],Nn=[1,146],Zn=[1,143],ua=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],yr=[1,165],Ci=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],_n=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],xi=[12,21,22,24],kr=[22,106],br=[1,250],li=[1,245],ai=[1,246],gi=[1,254],ti=[1,251],yi=[1,248],ei=[1,247],mr=[1,249],ni=[1,252],ui=[1,253],hi=[1,255],wi=[1,273],io=[20,21,23,106],Cr=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],Ia={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,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$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",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"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],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,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],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(vn,nr,Re,Ve,Er,Vt,ka){var re=Vt.length-1;switch(Er){case 5:Ve.parseDirective("%%{","open_directive");break;case 6:Ve.parseDirective(Vt[re],"type_directive");break;case 7:Vt[re]=Vt[re].trim().replace(/'/g,'"'),Ve.parseDirective(Vt[re],"arg_directive");break;case 8:Ve.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:Vt[re]!==[]&&Vt[re-1].push(Vt[re]),this.$=Vt[re-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=Vt[re];break;case 19:Ve.setDirection("TB"),this.$="TB";break;case 20:Ve.setDirection(Vt[re-1]),this.$=Vt[re-1];break;case 35:this.$=Vt[re-1].nodes;break;case 41:this.$=Ve.addSubGraph(Vt[re-6],Vt[re-1],Vt[re-4]);break;case 42:this.$=Ve.addSubGraph(Vt[re-3],Vt[re-1],Vt[re-3]);break;case 43:this.$=Ve.addSubGraph(void 0,Vt[re-1],void 0);break;case 45:this.$=Vt[re].trim(),Ve.setAccTitle(this.$);break;case 46:case 47:this.$=Vt[re].trim(),Ve.setAccDescription(this.$);break;case 51:Ve.addLink(Vt[re-2].stmt,Vt[re],Vt[re-1]),this.$={stmt:Vt[re],nodes:Vt[re].concat(Vt[re-2].nodes)};break;case 52:Ve.addLink(Vt[re-3].stmt,Vt[re-1],Vt[re-2]),this.$={stmt:Vt[re-1],nodes:Vt[re-1].concat(Vt[re-3].nodes)};break;case 53:this.$={stmt:Vt[re-1],nodes:Vt[re-1]};break;case 54:this.$={stmt:Vt[re],nodes:Vt[re]};break;case 55:case 123:case 125:this.$=[Vt[re]];break;case 56:this.$=Vt[re-4].concat(Vt[re]);break;case 57:this.$=[Vt[re-2]],Ve.setClass(Vt[re-2],Vt[re]);break;case 58:this.$=Vt[re-3],Ve.addVertex(Vt[re-3],Vt[re-1],"square");break;case 59:this.$=Vt[re-3],Ve.addVertex(Vt[re-3],Vt[re-1],"doublecircle");break;case 60:this.$=Vt[re-5],Ve.addVertex(Vt[re-5],Vt[re-2],"circle");break;case 61:this.$=Vt[re-3],Ve.addVertex(Vt[re-3],Vt[re-1],"ellipse");break;case 62:this.$=Vt[re-3],Ve.addVertex(Vt[re-3],Vt[re-1],"stadium");break;case 63:this.$=Vt[re-3],Ve.addVertex(Vt[re-3],Vt[re-1],"subroutine");break;case 64:this.$=Vt[re-7],Ve.addVertex(Vt[re-7],Vt[re-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Vt[re-5],Vt[re-3]]]));break;case 65:this.$=Vt[re-3],Ve.addVertex(Vt[re-3],Vt[re-1],"cylinder");break;case 66:this.$=Vt[re-3],Ve.addVertex(Vt[re-3],Vt[re-1],"round");break;case 67:this.$=Vt[re-3],Ve.addVertex(Vt[re-3],Vt[re-1],"diamond");break;case 68:this.$=Vt[re-5],Ve.addVertex(Vt[re-5],Vt[re-2],"hexagon");break;case 69:this.$=Vt[re-3],Ve.addVertex(Vt[re-3],Vt[re-1],"odd");break;case 70:this.$=Vt[re-3],Ve.addVertex(Vt[re-3],Vt[re-1],"trapezoid");break;case 71:this.$=Vt[re-3],Ve.addVertex(Vt[re-3],Vt[re-1],"inv_trapezoid");break;case 72:this.$=Vt[re-3],Ve.addVertex(Vt[re-3],Vt[re-1],"lean_right");break;case 73:this.$=Vt[re-3],Ve.addVertex(Vt[re-3],Vt[re-1],"lean_left");break;case 74:this.$=Vt[re],Ve.addVertex(Vt[re]);break;case 75:Vt[re-1].text=Vt[re],this.$=Vt[re-1];break;case 76:case 77:Vt[re-2].text=Vt[re-1],this.$=Vt[re-2];break;case 79:var ri=Ve.destructLink(Vt[re],Vt[re-2]);this.$={type:ri.type,stroke:ri.stroke,length:ri.length,text:Vt[re-1]};break;case 80:ri=Ve.destructLink(Vt[re]),this.$={type:ri.type,stroke:ri.stroke,length:ri.length};break;case 81:this.$=Vt[re-1];break;case 83:case 97:case 153:case 151:this.$=Vt[re-1]+""+Vt[re];break;case 98:case 99:this.$=Vt[re-4],Ve.addClass(Vt[re-2],Vt[re]);break;case 100:this.$=Vt[re-4],Ve.setClass(Vt[re-2],Vt[re]);break;case 101:case 109:this.$=Vt[re-1],Ve.setClickEvent(Vt[re-1],Vt[re]);break;case 102:case 110:this.$=Vt[re-3],Ve.setClickEvent(Vt[re-3],Vt[re-2]),Ve.setTooltip(Vt[re-3],Vt[re]);break;case 103:this.$=Vt[re-2],Ve.setClickEvent(Vt[re-2],Vt[re-1],Vt[re]);break;case 104:this.$=Vt[re-4],Ve.setClickEvent(Vt[re-4],Vt[re-3],Vt[re-2]),Ve.setTooltip(Vt[re-4],Vt[re]);break;case 105:case 111:this.$=Vt[re-1],Ve.setLink(Vt[re-1],Vt[re]);break;case 106:case 112:this.$=Vt[re-3],Ve.setLink(Vt[re-3],Vt[re-2]),Ve.setTooltip(Vt[re-3],Vt[re]);break;case 107:case 113:this.$=Vt[re-3],Ve.setLink(Vt[re-3],Vt[re-2],Vt[re]);break;case 108:case 114:this.$=Vt[re-5],Ve.setLink(Vt[re-5],Vt[re-4],Vt[re]),Ve.setTooltip(Vt[re-5],Vt[re-2]);break;case 115:this.$=Vt[re-4],Ve.addVertex(Vt[re-2],void 0,void 0,Vt[re]);break;case 116:case 118:this.$=Vt[re-4],Ve.updateLink(Vt[re-2],Vt[re]);break;case 117:this.$=Vt[re-4],Ve.updateLink([Vt[re-2]],Vt[re]);break;case 119:this.$=Vt[re-8],Ve.updateLinkInterpolate([Vt[re-6]],Vt[re-2]),Ve.updateLink([Vt[re-6]],Vt[re]);break;case 120:this.$=Vt[re-8],Ve.updateLinkInterpolate(Vt[re-6],Vt[re-2]),Ve.updateLink(Vt[re-6],Vt[re]);break;case 121:this.$=Vt[re-6],Ve.updateLinkInterpolate([Vt[re-4]],Vt[re]);break;case 122:this.$=Vt[re-6],Ve.updateLinkInterpolate(Vt[re-4],Vt[re]);break;case 124:case 126:Vt[re-2].push(Vt[re]),this.$=Vt[re-2];break;case 128:this.$=Vt[re-1]+Vt[re];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:E,16:4,21:k,22:M,24:O},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:E,16:4,21:k,22:M,24:O},g(L,F,{17:11}),{7:12,13:[1,13]},{16:14,21:k,22:M,24:O},{16:15,21:k,22:M,24:O},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:P,21:$,22:W,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:nt,43:31,44:ht,46:J,48:bt,50:35,51:45,52:at,54:46,66:st,67:St,86:qt,87:Nt,88:yt,89:Bt,90:kt,91:ft,95:rt,105:dt,106:G,109:Lt,111:V,112:Rt,116:47,118:Yt,119:Gt,120:ye,121:qe,122:xe,123:he,124:me,125:Ie,126:Le,127:ve},{8:64,10:[1,65],15:kn},g([10,15],[2,6]),g(L,[2,17]),g(L,[2,18]),g(L,[2,19]),{20:[1,68],21:[1,69],22:be,27:67,30:70},g(Ge,[2,11]),g(Ge,[2,12]),g(Ge,[2,13]),g(Ge,[2,14]),g(Ge,[2,15]),g(Ge,[2,16]),{9:72,20:$t,21:fe,23:oe,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:$t,21:fe,23:oe},{9:81,20:$t,21:fe,23:oe},{9:82,20:$t,21:fe,23:oe},{9:83,20:$t,21:fe,23:oe},{9:84,20:$t,21:fe,23:oe},{9:86,20:$t,21:fe,22:[1,85],23:oe},g(Ge,[2,44]),{45:[1,87]},{47:[1,88]},g(Ge,[2,47]),g(Ft,[2,54],{30:89,22:be}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:Me,52:et,66:Ne,67:lt,84:[1,97],91:Ae,97:96,98:[1,94],100:[1,95],105:ae,106:we,109:Ye,111:Pe,112:ln,115:100,117:98,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},g(Ge,[2,158]),g(Ge,[2,159]),g(Ge,[2,160]),g(Ge,[2,161]),g(mn,[2,55],{53:[1,116]}),g(We,[2,74],{116:129,40:[1,117],52:at,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:st,67:St,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:ft,95:rt,105:dt,106:G,109:Lt,111:V,112:Rt,122:xe,123:he,124:me,125:Ie,126:Le,127:ve}),g($e,[2,150]),g($e,[2,175]),g($e,[2,176]),g($e,[2,177]),g($e,[2,178]),g($e,[2,179]),g($e,[2,180]),g($e,[2,181]),g($e,[2,182]),g($e,[2,183]),g($e,[2,184]),g($e,[2,185]),g($e,[2,186]),g($e,[2,187]),g($e,[2,188]),g($e,[2,189]),g($e,[2,190]),{9:130,20:$t,21:fe,23:oe},{11:131,14:[1,132]},g(Ue,[2,8]),g(L,[2,20]),g(L,[2,26]),g(L,[2,27]),{21:[1,133]},g(Qe,[2,34],{30:134,22:be}),g(Ge,[2,35]),{50:135,51:45,52:at,54:46,66:st,67:St,91:ft,95:rt,105:dt,106:G,109:Lt,111:V,112:Rt,116:47,122:xe,123:he,124:me,125:Ie,126:Le,127:ve},g(qn,[2,48]),g(qn,[2,49]),g(qn,[2,50]),g(zt,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:Dn,24:Ht,26:gn,38:In,39:139,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},g([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),g(Ge,[2,36]),g(Ge,[2,37]),g(Ge,[2,38]),g(Ge,[2,39]),g(Ge,[2,40]),{22:Dn,24:Ht,26:gn,38:In,39:163,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},g(ua,F,{17:164}),g(Ge,[2,45]),g(Ge,[2,46]),g(Ft,[2,53],{52:yr}),{26:Me,52:et,66:Ne,67:lt,91:Ae,97:166,102:[1,167],105:ae,106:we,109:Ye,111:Pe,112:ln,115:100,117:98,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{95:[1,168],103:169,105:[1,170]},{26:Me,52:et,66:Ne,67:lt,91:Ae,95:[1,171],97:172,105:ae,106:we,109:Ye,111:Pe,112:ln,115:100,117:98,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{26:Me,52:et,66:Ne,67:lt,91:Ae,97:173,105:ae,106:we,109:Ye,111:Pe,112:ln,115:100,117:98,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},g(Ue,[2,101],{22:[1,174],99:[1,175]}),g(Ue,[2,105],{22:[1,176]}),g(Ue,[2,109],{115:100,117:178,22:[1,177],26:Me,52:et,66:Ne,67:lt,91:Ae,105:ae,106:we,109:Ye,111:Pe,112:ln,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn}),g(Ue,[2,111],{22:[1,179]}),g(Ci,[2,152]),g(Ci,[2,154]),g(Ci,[2,155]),g(Ci,[2,156]),g(Ci,[2,157]),g(_n,[2,162]),g(_n,[2,163]),g(_n,[2,164]),g(_n,[2,165]),g(_n,[2,166]),g(_n,[2,167]),g(_n,[2,168]),g(_n,[2,169]),g(_n,[2,170]),g(_n,[2,171]),g(_n,[2,172]),g(_n,[2,173]),g(_n,[2,174]),{52:at,54:180,66:st,67:St,91:ft,95:rt,105:dt,106:G,109:Lt,111:V,112:Rt,116:47,122:xe,123:he,124:me,125:Ie,126:Le,127:ve},{22:Dn,24:Ht,26:gn,38:In,39:181,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,39:182,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,39:184,42:un,52:et,57:[1,183],66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,39:185,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,39:186,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,39:187,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{66:[1,188]},{22:Dn,24:Ht,26:gn,38:In,39:189,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,39:190,42:un,52:et,66:Ne,67:lt,71:[1,191],73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,39:192,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,39:193,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,39:194,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},g($e,[2,151]),g(xi,[2,3]),{8:195,15:kn},{15:[2,7]},g(L,[2,28]),g(Qe,[2,33]),g(Ft,[2,51],{30:196,22:be}),g(zt,[2,75],{22:[1,197]}),{22:[1,198]},{22:Dn,24:Ht,26:gn,38:In,39:199,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,82:[1,200],83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},g(_n,[2,82]),g(_n,[2,84]),g(_n,[2,140]),g(_n,[2,141]),g(_n,[2,142]),g(_n,[2,143]),g(_n,[2,144]),g(_n,[2,145]),g(_n,[2,146]),g(_n,[2,147]),g(_n,[2,148]),g(_n,[2,149]),g(_n,[2,85]),g(_n,[2,86]),g(_n,[2,87]),g(_n,[2,88]),g(_n,[2,89]),g(_n,[2,90]),g(_n,[2,91]),g(_n,[2,92]),g(_n,[2,93]),g(_n,[2,94]),g(_n,[2,95]),{9:203,20:$t,21:fe,22:Dn,23:oe,24:Ht,26:gn,38:In,40:[1,202],42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{18:18,19:19,20:P,21:$,22:W,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:nt,42:[1,204],43:31,44:ht,46:J,48:bt,50:35,51:45,52:at,54:46,66:st,67:St,86:qt,87:Nt,88:yt,89:Bt,90:kt,91:ft,95:rt,105:dt,106:G,109:Lt,111:V,112:Rt,116:47,118:Yt,119:Gt,120:ye,121:qe,122:xe,123:he,124:me,125:Ie,126:Le,127:ve},{22:be,30:205},{22:[1,206],26:Me,52:et,66:Ne,67:lt,91:Ae,105:ae,106:we,109:Ye,111:Pe,112:ln,115:100,117:178,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},g(kr,[2,123]),{22:[1,211]},{22:[1,212],26:Me,52:et,66:Ne,67:lt,91:Ae,105:ae,106:we,109:Ye,111:Pe,112:ln,115:100,117:178,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:[1,213],26:Me,52:et,66:Ne,67:lt,91:Ae,105:ae,106:we,109:Ye,111:Pe,112:ln,115:100,117:178,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{84:[1,214]},g(Ue,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},g(Ci,[2,153]),{84:[1,219],101:[1,220]},g(mn,[2,57],{116:129,52:at,66:st,67:St,91:ft,95:rt,105:dt,106:G,109:Lt,111:V,112:Rt,122:xe,123:he,124:me,125:Ie,126:Le,127:ve}),{22:Dn,24:Ht,26:gn,38:In,41:[1,221],42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,42:un,52:et,56:[1,222],66:Ne,67:lt,73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,39:223,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,42:un,52:et,58:[1,224],66:Ne,67:lt,73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,42:un,52:et,60:[1,225],66:Ne,67:lt,73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,42:un,52:et,62:[1,226],66:Ne,67:lt,73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,42:un,52:et,64:[1,227],66:Ne,67:lt,73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{67:[1,228]},{22:Dn,24:Ht,26:gn,38:In,42:un,52:et,66:Ne,67:lt,70:[1,229],73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,42:un,52:et,66:Ne,67:lt,72:[1,230],73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,39:231,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,41:[1,232],42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,42:un,52:et,66:Ne,67:lt,73:Gn,75:[1,233],77:[1,234],81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{22:Dn,24:Ht,26:gn,38:In,42:un,52:et,66:Ne,67:lt,73:Gn,75:[1,236],77:[1,235],81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{9:237,20:$t,21:fe,23:oe},g(Ft,[2,52],{52:yr}),g(zt,[2,77]),g(zt,[2,76]),{22:Dn,24:Ht,26:gn,38:In,42:un,52:et,66:Ne,67:lt,68:[1,238],73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},g(zt,[2,79]),g(_n,[2,83]),{22:Dn,24:Ht,26:gn,38:In,39:239,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},g(ua,F,{17:240}),g(Ge,[2,43]),{51:241,52:at,54:46,66:st,67:St,91:ft,95:rt,105:dt,106:G,109:Lt,111:V,112:Rt,116:47,122:xe,123:he,124:me,125:Ie,126:Le,127:ve},{22:br,66:li,67:ai,86:gi,96:242,102:ti,105:yi,107:243,108:244,109:ei,110:mr,111:ni,112:ui,113:hi},{22:br,66:li,67:ai,86:gi,96:256,102:ti,105:yi,107:243,108:244,109:ei,110:mr,111:ni,112:ui,113:hi},{22:br,66:li,67:ai,86:gi,96:257,102:ti,104:[1,258],105:yi,107:243,108:244,109:ei,110:mr,111:ni,112:ui,113:hi},{22:br,66:li,67:ai,86:gi,96:259,102:ti,104:[1,260],105:yi,107:243,108:244,109:ei,110:mr,111:ni,112:ui,113:hi},{105:[1,261]},{22:br,66:li,67:ai,86:gi,96:262,102:ti,105:yi,107:243,108:244,109:ei,110:mr,111:ni,112:ui,113:hi},{22:br,66:li,67:ai,86:gi,96:263,102:ti,105:yi,107:243,108:244,109:ei,110:mr,111:ni,112:ui,113:hi},{26:Me,52:et,66:Ne,67:lt,91:Ae,97:264,105:ae,106:we,109:Ye,111:Pe,112:ln,115:100,117:98,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},g(Ue,[2,102]),{84:[1,265]},g(Ue,[2,106],{22:[1,266]}),g(Ue,[2,107]),g(Ue,[2,110]),g(Ue,[2,112],{22:[1,267]}),g(Ue,[2,113]),g(We,[2,58]),g(We,[2,59]),{22:Dn,24:Ht,26:gn,38:In,42:un,52:et,58:[1,268],66:Ne,67:lt,73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},g(We,[2,66]),g(We,[2,61]),g(We,[2,62]),g(We,[2,63]),{66:[1,269]},g(We,[2,65]),g(We,[2,67]),{22:Dn,24:Ht,26:gn,38:In,42:un,52:et,66:Ne,67:lt,72:[1,270],73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},g(We,[2,69]),g(We,[2,70]),g(We,[2,72]),g(We,[2,71]),g(We,[2,73]),g(xi,[2,4]),g([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:Dn,24:Ht,26:gn,38:In,41:[1,271],42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{18:18,19:19,20:P,21:$,22:W,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:nt,42:[1,272],43:31,44:ht,46:J,48:bt,50:35,51:45,52:at,54:46,66:st,67:St,86:qt,87:Nt,88:yt,89:Bt,90:kt,91:ft,95:rt,105:dt,106:G,109:Lt,111:V,112:Rt,116:47,118:Yt,119:Gt,120:ye,121:qe,122:xe,123:he,124:me,125:Ie,126:Le,127:ve},g(mn,[2,56]),g(Ue,[2,115],{106:wi}),g(io,[2,125],{108:274,22:br,66:li,67:ai,86:gi,102:ti,105:yi,109:ei,110:mr,111:ni,112:ui,113:hi}),g(Cr,[2,127]),g(Cr,[2,129]),g(Cr,[2,130]),g(Cr,[2,131]),g(Cr,[2,132]),g(Cr,[2,133]),g(Cr,[2,134]),g(Cr,[2,135]),g(Cr,[2,136]),g(Cr,[2,137]),g(Cr,[2,138]),g(Cr,[2,139]),g(Ue,[2,116],{106:wi}),g(Ue,[2,117],{106:wi}),{22:[1,275]},g(Ue,[2,118],{106:wi}),{22:[1,276]},g(kr,[2,124]),g(Ue,[2,98],{106:wi}),g(Ue,[2,99],{106:wi}),g(Ue,[2,100],{115:100,117:178,26:Me,52:et,66:Ne,67:lt,91:Ae,105:ae,106:we,109:Ye,111:Pe,112:ln,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn}),g(Ue,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:$t,21:fe,23:oe},g(Ge,[2,42]),{22:br,66:li,67:ai,86:gi,102:ti,105:yi,107:283,108:244,109:ei,110:mr,111:ni,112:ui,113:hi},g(Cr,[2,128]),{26:Me,52:et,66:Ne,67:lt,91:Ae,97:284,105:ae,106:we,109:Ye,111:Pe,112:ln,115:100,117:98,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{26:Me,52:et,66:Ne,67:lt,91:Ae,97:285,105:ae,106:we,109:Ye,111:Pe,112:ln,115:100,117:98,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},g(Ue,[2,108]),g(Ue,[2,114]),g(We,[2,60]),{22:Dn,24:Ht,26:gn,38:In,39:286,42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:140,84:$r,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},g(We,[2,68]),g(ua,F,{17:287}),g(io,[2,126],{108:274,22:br,66:li,67:ai,86:gi,102:ti,105:yi,109:ei,110:mr,111:ni,112:ui,113:hi}),g(Ue,[2,121],{115:100,117:178,22:[1,288],26:Me,52:et,66:Ne,67:lt,91:Ae,105:ae,106:we,109:Ye,111:Pe,112:ln,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn}),g(Ue,[2,122],{115:100,117:178,22:[1,289],26:Me,52:et,66:Ne,67:lt,91:Ae,105:ae,106:we,109:Ye,111:Pe,112:ln,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn}),{22:Dn,24:Ht,26:gn,38:In,41:[1,290],42:un,52:et,66:Ne,67:lt,73:Gn,81:er,83:201,85:151,86:An,87:jn,88:Pn,89:On,90:zn,91:$n,92:Cn,94:142,95:Vn,105:ae,106:we,109:Tn,111:Pe,112:ln,113:Nn,114:Zn,115:148,122:De,123:Ke,124:rn,125:on,126:Oe,127:dn},{18:18,19:19,20:P,21:$,22:W,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:nt,42:[1,291],43:31,44:ht,46:J,48:bt,50:35,51:45,52:at,54:46,66:st,67:St,86:qt,87:Nt,88:yt,89:Bt,90:kt,91:ft,95:rt,105:dt,106:G,109:Lt,111:V,112:Rt,116:47,118:Yt,119:Gt,120:ye,121:qe,122:xe,123:he,124:me,125:Ie,126:Le,127:ve},{22:br,66:li,67:ai,86:gi,96:292,102:ti,105:yi,107:243,108:244,109:ei,110:mr,111:ni,112:ui,113:hi},{22:br,66:li,67:ai,86:gi,96:293,102:ti,105:yi,107:243,108:244,109:ei,110:mr,111:ni,112:ui,113:hi},g(We,[2,64]),g(Ge,[2,41]),g(Ue,[2,119],{106:wi}),g(Ue,[2,120],{106:wi})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(vn,nr){if(!nr.recoverable){var Re=new Error(vn);throw Re.hash=nr,Re}this.trace(vn)},parse:function(vn){var nr=this,Re=[0],Ve=[],Er=[null],Vt=[],ka=this.table,re="",ri=0,Io=0,Fs=0,bc=2,Ea=1,Xn=Vt.slice.call(arguments,1),jr=Object.create(this.lexer),Mi={yy:{}};for(var Hr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Hr)&&(Mi.yy[Hr]=this.yy[Hr]);jr.setInput(vn,Mi.yy),Mi.yy.lexer=jr,Mi.yy.parser=this,jr.yylloc===void 0&&(jr.yylloc={});var Ri=jr.yylloc;Vt.push(Ri);var Ji=jr.options&&jr.options.ranges;function Bi(){var da;return typeof(da=Ve.pop()||jr.lex()||Ea)!="number"&&(da instanceof Array&&(da=(Ve=da).pop()),da=nr.symbols_[da]||da),da}typeof Mi.yy.parseError=="function"?this.parseError=Mi.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Or,fi,oi,qr,fa,Qi,Ni,Ta,Jr,di={};;){if(oi=Re[Re.length-1],this.defaultActions[oi]?qr=this.defaultActions[oi]:(Or==null&&(Or=Bi()),qr=ka[oi]&&ka[oi][Or]),qr===void 0||!qr.length||!qr[0]){var Sa="";for(Qi in Jr=[],ka[oi])this.terminals_[Qi]&&Qi>bc&&Jr.push("'"+this.terminals_[Qi]+"'");Sa=jr.showPosition?"Parse error on line "+(ri+1)+`: `+jr.showPosition()+` Expecting `+Jr.join(", ")+", got '"+(this.terminals_[Or]||Or)+"'":"Parse error on line "+(ri+1)+": Unexpected "+(Or==Ea?"end of input":"'"+(this.terminals_[Or]||Or)+"'"),this.parseError(Sa,{text:jr.match,token:this.terminals_[Or]||Or,line:jr.yylineno,loc:Ri,expected:Jr})}if(qr[0]instanceof Array&&qr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+oi+", token: "+Or);switch(qr[0]){case 1:Re.push(Or),Er.push(jr.yytext),Vt.push(jr.yylloc),Re.push(qr[1]),Or=null,fi?(Or=fi,fi=null):(Io=jr.yyleng,re=jr.yytext,ri=jr.yylineno,Ri=jr.yylloc,Fs>0);break;case 2:if(Ni=this.productions_[qr[1]][1],di.$=Er[Er.length-Ni],di._$={first_line:Vt[Vt.length-(Ni||1)].first_line,last_line:Vt[Vt.length-1].last_line,first_column:Vt[Vt.length-(Ni||1)].first_column,last_column:Vt[Vt.length-1].last_column},Ji&&(di._$.range=[Vt[Vt.length-(Ni||1)].range[0],Vt[Vt.length-1].range[1]]),(fa=this.performAction.apply(di,[re,Io,ri,Mi.yy,qr[1],Er,Vt].concat(Xn)))!==void 0)return fa;Ni&&(Re=Re.slice(0,-1*Ni*2),Er=Er.slice(0,-1*Ni),Vt=Vt.slice(0,-1*Ni)),Re.push(this.productions_[qr[1]][0]),Er.push(di.$),Vt.push(di._$),Ta=ka[Re[Re.length-2]][Re[Re.length-1]],Re.push(Ta);break;case 3:return!0}}return!0}},ha={EOF:1,parseError:function(vn,nr){if(!this.yy.parser)throw new Error(vn);this.yy.parser.parseError(vn,nr)},setInput:function(vn,nr){return this.yy=nr||this.yy||{},this._input=vn,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 vn=this._input[0];return this.yytext+=vn,this.yyleng++,this.offset++,this.match+=vn,this.matched+=vn,vn.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),vn},unput:function(vn){var nr=vn.length,Re=vn.split(/(?:\r\n?|\n)/g);this._input=vn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-nr),this.offset-=nr;var Ve=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),Re.length-1&&(this.yylineno-=Re.length-1);var Er=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:Re?(Re.length===Ve.length?this.yylloc.first_column:0)+Ve[Ve.length-Re.length].length-Re[0].length:this.yylloc.first_column-nr},this.options.ranges&&(this.yylloc.range=[Er[0],Er[0]+this.yyleng-nr]),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(vn){this.unput(this.match.slice(vn))},pastInput:function(){var vn=this.matched.substr(0,this.matched.length-this.match.length);return(vn.length>20?"...":"")+vn.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var vn=this.match;return vn.length<20&&(vn+=this._input.substr(0,20-vn.length)),(vn.substr(0,20)+(vn.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var vn=this.pastInput(),nr=new Array(vn.length+1).join("-");return vn+this.upcomingInput()+` `+nr+"^"},test_match:function(vn,nr){var Re,Ve,Er;if(this.options.backtrack_lexer&&(Er={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&&(Er.yylloc.range=this.yylloc.range.slice(0))),(Ve=vn[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ve.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ve?Ve[Ve.length-1].length-Ve[Ve.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+vn[0].length},this.yytext+=vn[0],this.match+=vn[0],this.matches=vn,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(vn[0].length),this.matched+=vn[0],Re=this.performAction.call(this,this.yy,this,nr,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Re)return Re;if(this._backtrack){for(var Vt in Er)this[Vt]=Er[Vt];return!1}return!1},next:function(){if(this.done)return this.EOF;var vn,nr,Re,Ve;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Er=this._currentRules(),Vt=0;Vtnr[0].length)){if(nr=Re,Ve=Vt,this.options.backtrack_lexer){if((vn=this.test_match(Re,Er[Vt]))!==!1)return vn;if(this._backtrack){nr=!1;continue}return!1}if(!this.options.flex)break}return nr?(vn=this.test_match(nr,Er[Ve]))!==!1&&vn: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(vn){this.conditionStack.push(vn)},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(vn){return(vn=this.conditionStack.length-1-Math.abs(vn||0))>=0?this.conditionStack[vn]:"INITIAL"},pushState:function(vn){this.begin(vn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(vn,nr,Re,Ve){switch(Re){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:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:case 24:case 27:case 30:case 33:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 25:return 100;case 26:this.begin("callbackname");break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 31:return 99;case 32:this.begin("click");break;case 34:return 90;case 35:case 36:return vn.lex.firstGraph()&&this.begin("dir"),24;case 37:return 38;case 38:return 42;case 39:case 40:case 41:case 42:return 101;case 43:return this.popState(),25;case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:return this.popState(),26;case 54:return 118;case 55:return 119;case 56:return 120;case 57:return 121;case 58:return 105;case 59:return 111;case 60:return 53;case 61:return 67;case 62:return 52;case 63:return 20;case 64:return 106;case 65:return 126;case 66:case 67:case 68:return 82;case 69:case 70:case 71:return 81;case 72:return 59;case 73:return 60;case 74:return 61;case 75:return 62;case 76:return 63;case 77:return 64;case 78:return 65;case 79:return 69;case 80:return 70;case 81:return 55;case 82:return 56;case 83:return 109;case 84:return 112;case 85:return 127;case 86:return 124;case 87:return 113;case 88:case 89:return 125;case 90:return 114;case 91:return 73;case 92:return 92;case 93:return"SEP";case 94:return 91;case 95:return 66;case 96:return 75;case 97:return 74;case 98:return 77;case 99:return 76;case 100:return 122;case 101:return 123;case 102:return 68;case 103:return 57;case 104:return 58;case 105:return 40;case 106:return 41;case 107:return 71;case 108:return 72;case 109:return 133;case 110:return 21;case 111:return 22;case 112:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?: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:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[43,44,45,46,47,48,49,50,51,52,53],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,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,104,105,106,107,108,109,110,111,112],inclusive:!0}}};function ji(){this.yy={}}return Ia.lexer=ha,ji.prototype=Ia,Ia.Parser=ji,new ji}();T.parser=b,T.Parser=b.Parser,T.parse=function(){return b.parse.apply(b,arguments)},T.main=function(g){g[1]||(console.log("Usage: "+g[0]+" FILE"),process.exit(1));var E=f(5354).readFileSync(f(6470).normalize(g[1]),"utf8");return T.parser.parse(E)},f.c[f.s]===p&&T.main(process.argv.slice(1))},9959:(p,T,f)=>{p=f.nmd(p);var b=function(){var g=function(ft,rt,dt,G){for(dt=dt||{},G=ft.length;G--;dt[ft[G]]=rt);return dt},E=[1,3],k=[1,5],M=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],O=[1,15],L=[1,16],F=[1,17],P=[1,18],$=[1,19],W=[1,20],K=[1,21],nt=[1,22],ht=[1,23],J=[1,24],bt=[1,25],at=[1,26],st=[1,28],St=[1,30],qt=[1,33],Nt=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],yt={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,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,clickStatement:26,taskTxt:27,taskData:28,openDirective:29,typeDirective:30,closeDirective:31,":":32,argDirective:33,click:34,callbackname:35,callbackargs:36,href:37,clickStatementDebug:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$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:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"taskTxt",28:"taskData",32:":",34:"click",35:"callbackname",36:"callbackargs",37:"href",39:"open_directive",40:"type_directive",41:"arg_directive",42:"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,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[26,2],[26,3],[26,3],[26,4],[26,3],[26,4],[26,2],[38,2],[38,3],[38,3],[38,4],[38,3],[38,4],[38,2],[29,1],[30,1],[33,1],[31,1]],performAction:function(ft,rt,dt,G,Lt,V,Rt){var Yt=V.length-1;switch(Lt){case 2:return V[Yt-1];case 3:case 7:case 8:this.$=[];break;case 4:V[Yt-1].push(V[Yt]),this.$=V[Yt-1];break;case 5:case 6:this.$=V[Yt];break;case 9:G.setDateFormat(V[Yt].substr(11)),this.$=V[Yt].substr(11);break;case 10:G.enableInclusiveEndDates(),this.$=V[Yt].substr(18);break;case 11:G.TopAxis(),this.$=V[Yt].substr(8);break;case 12:G.setAxisFormat(V[Yt].substr(11)),this.$=V[Yt].substr(11);break;case 13:G.setExcludes(V[Yt].substr(9)),this.$=V[Yt].substr(9);break;case 14:G.setIncludes(V[Yt].substr(9)),this.$=V[Yt].substr(9);break;case 15:G.setTodayMarker(V[Yt].substr(12)),this.$=V[Yt].substr(12);break;case 16:G.setDiagramTitle(V[Yt].substr(6)),this.$=V[Yt].substr(6);break;case 17:this.$=V[Yt].trim(),G.setAccTitle(this.$);break;case 18:case 19:this.$=V[Yt].trim(),G.setAccDescription(this.$);break;case 20:G.addSection(V[Yt].substr(8)),this.$=V[Yt].substr(8);break;case 22:G.addTask(V[Yt-1],V[Yt]),this.$="task";break;case 26:this.$=V[Yt-1],G.setClickEvent(V[Yt-1],V[Yt],null);break;case 27:this.$=V[Yt-2],G.setClickEvent(V[Yt-2],V[Yt-1],V[Yt]);break;case 28:this.$=V[Yt-2],G.setClickEvent(V[Yt-2],V[Yt-1],null),G.setLink(V[Yt-2],V[Yt]);break;case 29:this.$=V[Yt-3],G.setClickEvent(V[Yt-3],V[Yt-2],V[Yt-1]),G.setLink(V[Yt-3],V[Yt]);break;case 30:this.$=V[Yt-2],G.setClickEvent(V[Yt-2],V[Yt],null),G.setLink(V[Yt-2],V[Yt-1]);break;case 31:this.$=V[Yt-3],G.setClickEvent(V[Yt-3],V[Yt-1],V[Yt]),G.setLink(V[Yt-3],V[Yt-2]);break;case 32:this.$=V[Yt-1],G.setLink(V[Yt-1],V[Yt]);break;case 33:case 39:this.$=V[Yt-1]+" "+V[Yt];break;case 34:case 35:case 37:this.$=V[Yt-2]+" "+V[Yt-1]+" "+V[Yt];break;case 36:case 38:this.$=V[Yt-3]+" "+V[Yt-2]+" "+V[Yt-1]+" "+V[Yt];break;case 40:G.parseDirective("%%{","open_directive");break;case 41:G.parseDirective(V[Yt],"type_directive");break;case 42:V[Yt]=V[Yt].trim().replace(/'/g,'"'),G.parseDirective(V[Yt],"arg_directive");break;case 43:G.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:E,29:4,39:k},{1:[3]},{3:6,4:2,5:E,29:4,39:k},g(M,[2,3],{6:7}),{30:8,40:[1,9]},{40:[2,40]},{1:[2,1]},{4:29,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:O,13:L,14:F,15:P,16:$,17:W,18:K,19:nt,20:ht,22:J,24:bt,25:at,26:27,27:st,29:4,34:St,39:k},{31:31,32:[1,32],42:qt},g([32,42],[2,41]),g(M,[2,8],{1:[2,2]}),g(M,[2,4]),{4:29,10:34,12:O,13:L,14:F,15:P,16:$,17:W,18:K,19:nt,20:ht,22:J,24:bt,25:at,26:27,27:st,29:4,34:St,39:k},g(M,[2,6]),g(M,[2,7]),g(M,[2,9]),g(M,[2,10]),g(M,[2,11]),g(M,[2,12]),g(M,[2,13]),g(M,[2,14]),g(M,[2,15]),g(M,[2,16]),{21:[1,35]},{23:[1,36]},g(M,[2,19]),g(M,[2,20]),g(M,[2,21]),{28:[1,37]},g(M,[2,23]),{35:[1,38],37:[1,39]},{11:[1,40]},{33:41,41:[1,42]},{11:[2,43]},g(M,[2,5]),g(M,[2,17]),g(M,[2,18]),g(M,[2,22]),g(M,[2,26],{36:[1,43],37:[1,44]}),g(M,[2,32],{35:[1,45]}),g(Nt,[2,24]),{31:46,42:qt},{42:[2,42]},g(M,[2,27],{37:[1,47]}),g(M,[2,28]),g(M,[2,30],{36:[1,48]}),{11:[1,49]},g(M,[2,29]),g(M,[2,31]),g(Nt,[2,25])],defaultActions:{5:[2,40],6:[2,1],33:[2,43],42:[2,42]},parseError:function(ft,rt){if(!rt.recoverable){var dt=new Error(ft);throw dt.hash=rt,dt}this.trace(ft)},parse:function(ft){var rt=this,dt=[0],G=[],Lt=[null],V=[],Rt=this.table,Yt="",Gt=0,ye=0,qe=0,xe=2,he=1,me=V.slice.call(arguments,1),Ie=Object.create(this.lexer),Le={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(Le.yy[ve]=this.yy[ve]);Ie.setInput(ft,Le.yy),Le.yy.lexer=Ie,Le.yy.parser=this,Ie.yylloc===void 0&&(Ie.yylloc={});var kn=Ie.yylloc;V.push(kn);var be=Ie.options&&Ie.options.ranges;function Ge(){var Ye;return typeof(Ye=G.pop()||Ie.lex()||he)!="number"&&(Ye instanceof Array&&(Ye=(G=Ye).pop()),Ye=rt.symbols_[Ye]||Ye),Ye}typeof Le.yy.parseError=="function"?this.parseError=Le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var $t,fe,oe,Ft,Me,et,Ne,lt,Ae,ae={};;){if(oe=dt[dt.length-1],this.defaultActions[oe]?Ft=this.defaultActions[oe]:($t==null&&($t=Ge()),Ft=Rt[oe]&&Rt[oe][$t]),Ft===void 0||!Ft.length||!Ft[0]){var we="";for(et in Ae=[],Rt[oe])this.terminals_[et]&&et>xe&&Ae.push("'"+this.terminals_[et]+"'");we=Ie.showPosition?"Parse error on line "+(Gt+1)+`: `+Ie.showPosition()+` Expecting `+Ae.join(", ")+", got '"+(this.terminals_[$t]||$t)+"'":"Parse error on line "+(Gt+1)+": Unexpected "+($t==he?"end of input":"'"+(this.terminals_[$t]||$t)+"'"),this.parseError(we,{text:Ie.match,token:this.terminals_[$t]||$t,line:Ie.yylineno,loc:kn,expected:Ae})}if(Ft[0]instanceof Array&&Ft.length>1)throw new Error("Parse Error: multiple actions possible at state: "+oe+", token: "+$t);switch(Ft[0]){case 1:dt.push($t),Lt.push(Ie.yytext),V.push(Ie.yylloc),dt.push(Ft[1]),$t=null,fe?($t=fe,fe=null):(ye=Ie.yyleng,Yt=Ie.yytext,Gt=Ie.yylineno,kn=Ie.yylloc,qe>0);break;case 2:if(Ne=this.productions_[Ft[1]][1],ae.$=Lt[Lt.length-Ne],ae._$={first_line:V[V.length-(Ne||1)].first_line,last_line:V[V.length-1].last_line,first_column:V[V.length-(Ne||1)].first_column,last_column:V[V.length-1].last_column},be&&(ae._$.range=[V[V.length-(Ne||1)].range[0],V[V.length-1].range[1]]),(Me=this.performAction.apply(ae,[Yt,ye,Gt,Le.yy,Ft[1],Lt,V].concat(me)))!==void 0)return Me;Ne&&(dt=dt.slice(0,-1*Ne*2),Lt=Lt.slice(0,-1*Ne),V=V.slice(0,-1*Ne)),dt.push(this.productions_[Ft[1]][0]),Lt.push(ae.$),V.push(ae._$),lt=Rt[dt[dt.length-2]][dt[dt.length-1]],dt.push(lt);break;case 3:return!0}}return!0}},Bt={EOF:1,parseError:function(ft,rt){if(!this.yy.parser)throw new Error(ft);this.yy.parser.parseError(ft,rt)},setInput:function(ft,rt){return this.yy=rt||this.yy||{},this._input=ft,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 ft=this._input[0];return this.yytext+=ft,this.yyleng++,this.offset++,this.match+=ft,this.matched+=ft,ft.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),ft},unput:function(ft){var rt=ft.length,dt=ft.split(/(?:\r\n?|\n)/g);this._input=ft+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-rt),this.offset-=rt;var G=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),dt.length-1&&(this.yylineno-=dt.length-1);var Lt=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:dt?(dt.length===G.length?this.yylloc.first_column:0)+G[G.length-dt.length].length-dt[0].length:this.yylloc.first_column-rt},this.options.ranges&&(this.yylloc.range=[Lt[0],Lt[0]+this.yyleng-rt]),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(ft){this.unput(this.match.slice(ft))},pastInput:function(){var ft=this.matched.substr(0,this.matched.length-this.match.length);return(ft.length>20?"...":"")+ft.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ft=this.match;return ft.length<20&&(ft+=this._input.substr(0,20-ft.length)),(ft.substr(0,20)+(ft.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ft=this.pastInput(),rt=new Array(ft.length+1).join("-");return ft+this.upcomingInput()+` `+rt+"^"},test_match:function(ft,rt){var dt,G,Lt;if(this.options.backtrack_lexer&&(Lt={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&&(Lt.yylloc.range=this.yylloc.range.slice(0))),(G=ft[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=G.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:G?G[G.length-1].length-G[G.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ft[0].length},this.yytext+=ft[0],this.match+=ft[0],this.matches=ft,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(ft[0].length),this.matched+=ft[0],dt=this.performAction.call(this,this.yy,this,rt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),dt)return dt;if(this._backtrack){for(var V in Lt)this[V]=Lt[V];return!1}return!1},next:function(){if(this.done)return this.EOF;var ft,rt,dt,G;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Lt=this._currentRules(),V=0;Vrt[0].length)){if(rt=dt,G=V,this.options.backtrack_lexer){if((ft=this.test_match(dt,Lt[V]))!==!1)return ft;if(this._backtrack){rt=!1;continue}return!1}if(!this.options.flex)break}return rt?(ft=this.test_match(rt,Lt[G]))!==!1&&ft: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(ft){this.conditionStack.push(ft)},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(ft){return(ft=this.conditionStack.length-1-Math.abs(ft||0))>=0?this.conditionStack[ft]:"INITIAL"},pushState:function(ft){this.begin(ft)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ft,rt,dt,G){switch(dt){case 0:return this.begin("open_directive"),39;case 1:return this.begin("type_directive"),40;case 2:return this.popState(),this.begin("arg_directive"),32;case 3:return this.popState(),this.popState(),42;case 4:return 41;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 20:case 23:case 26:case 29:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:case 13:case 14:case 16:case 17:case 18:break;case 15:return 11;case 19:this.begin("href");break;case 21:return 37;case 22:this.begin("callbackname");break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 35;case 27:return 36;case 28:this.begin("click");break;case 30:return 34;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 17;case 37:return 16;case 38:return 18;case 39:return"date";case 40:return 19;case 41:return"accDescription";case 42:return 25;case 43:return 27;case 44:return 28;case 45:return 32;case 46:return 7;case 47:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/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,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},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:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],inclusive:!0}}};function kt(){this.yy={}}return yt.lexer=Bt,kt.prototype=yt,yt.Parser=kt,new kt}();T.parser=b,T.Parser=b.Parser,T.parse=function(){return b.parse.apply(b,arguments)},T.main=function(g){g[1]||(console.log("Usage: "+g[0]+" FILE"),process.exit(1));var E=f(6878).readFileSync(f(6470).normalize(g[1]),"utf8");return T.parser.parse(E)},f.c[f.s]===p&&T.main(process.argv.slice(1))},2553:(p,T,f)=>{p=f.nmd(p);var b=function(){var g=function(Bt,kt,ft,rt){for(ft=ft||{},rt=Bt.length;rt--;ft[Bt[rt]]=kt);return ft},E=[1,4],k=[1,7],M=[1,5],O=[1,9],L=[1,6],F=[2,6],P=[1,16],$=[6,8,14,20,22,24,25,27,29,32,35,37,49,53],W=[8,14,20,22,24,25,27,29,32,35,37],K=[8,13,14,20,22,24,25,27,29,32,35,37],nt=[1,26],ht=[6,8,14,49,53],J=[8,14,53],bt=[1,64],at=[1,65],st=[1,66],St=[8,14,33,36,41,53],qt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ID:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,MERGE:35,COMMIT_TAG:36,COMMIT:37,commit_arg:38,COMMIT_TYPE:39,commitType:40,COMMIT_MSG:41,NORMAL:42,REVERSE:43,HIGHLIGHT:44,openDirective:45,typeDirective:46,closeDirective:47,argDirective:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,";":53,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",28:"ID",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"MERGE",36:"COMMIT_TAG",37:"COMMIT",39:"COMMIT_TYPE",41:"COMMIT_MSG",42:"NORMAL",43:"REVERSE",44:"HIGHLIGHT",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive",53:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[18,2],[18,4],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[38,0],[38,1],[40,1],[40,1],[40,1],[5,3],[5,5],[45,1],[46,1],[48,1],[47,1],[4,1],[4,1],[4,1]],performAction:function(Bt,kt,ft,rt,dt,G,Lt){var V=G.length-1;switch(dt){case 3:return G[V];case 4:return G[V-1];case 5:return rt.setDirection(G[V-3]),G[V-1];case 7:rt.setOptions(G[V-1]),this.$=G[V];break;case 8:G[V-1]+=G[V],this.$=G[V-1];break;case 10:this.$=[];break;case 11:G[V-1].push(G[V]),this.$=G[V-1];break;case 12:this.$=G[V-1];break;case 17:this.$=G[V].trim(),rt.setAccTitle(this.$);break;case 18:case 19:this.$=G[V].trim(),rt.setAccDescription(this.$);break;case 20:rt.addSection(G[V].substr(8)),this.$=G[V].substr(8);break;case 22:rt.checkout(G[V]);break;case 23:rt.branch(G[V]);break;case 24:rt.branch(G[V-2],G[V]);break;case 25:rt.cherryPick(G[V]);break;case 26:rt.merge(G[V]);break;case 27:rt.merge(G[V-2],G[V]);break;case 28:rt.commit(G[V]);break;case 29:rt.commit("","",rt.commitType.NORMAL,G[V]);break;case 30:rt.commit("","",G[V],"");break;case 31:rt.commit("","",G[V],G[V-2]);break;case 32:rt.commit("","",G[V-2],G[V]);break;case 33:rt.commit("",G[V],rt.commitType.NORMAL,"");break;case 34:rt.commit("",G[V-2],rt.commitType.NORMAL,G[V]);break;case 35:rt.commit("",G[V],rt.commitType.NORMAL,G[V-2]);break;case 36:rt.commit("",G[V-2],G[V],"");break;case 37:rt.commit("",G[V],G[V-2],"");break;case 38:rt.commit("",G[V-4],G[V-2],G[V]);break;case 39:rt.commit("",G[V-4],G[V],G[V-2]);break;case 40:rt.commit("",G[V-2],G[V-4],G[V]);break;case 41:rt.commit("",G[V],G[V-4],G[V-2]);break;case 42:rt.commit("",G[V],G[V-2],G[V-4]);break;case 43:rt.commit("",G[V-2],G[V],G[V-4]);break;case 44:rt.commit(G[V],"",rt.commitType.NORMAL,"");break;case 45:rt.commit(G[V],"",rt.commitType.NORMAL,G[V-2]);break;case 46:rt.commit(G[V-2],"",rt.commitType.NORMAL,G[V]);break;case 47:rt.commit(G[V-2],"",G[V],"");break;case 48:rt.commit(G[V],"",G[V-2],"");break;case 49:rt.commit(G[V],G[V-2],rt.commitType.NORMAL,"");break;case 50:rt.commit(G[V-2],G[V],rt.commitType.NORMAL,"");break;case 51:rt.commit(G[V-4],"",G[V-2],G[V]);break;case 52:rt.commit(G[V-4],"",G[V],G[V-2]);break;case 53:rt.commit(G[V-2],"",G[V-4],G[V]);break;case 54:rt.commit(G[V],"",G[V-4],G[V-2]);break;case 55:rt.commit(G[V],"",G[V-2],G[V-4]);break;case 56:rt.commit(G[V-2],"",G[V],G[V-4]);break;case 57:rt.commit(G[V-4],G[V],G[V-2],"");break;case 58:rt.commit(G[V-4],G[V-2],G[V],"");break;case 59:rt.commit(G[V-2],G[V],G[V-4],"");break;case 60:rt.commit(G[V],G[V-2],G[V-4],"");break;case 61:rt.commit(G[V],G[V-4],G[V-2],"");break;case 62:rt.commit(G[V-2],G[V-4],G[V],"");break;case 63:rt.commit(G[V-4],G[V],rt.commitType.NORMAL,G[V-2]);break;case 64:rt.commit(G[V-4],G[V-2],rt.commitType.NORMAL,G[V]);break;case 65:rt.commit(G[V-2],G[V],rt.commitType.NORMAL,G[V-4]);break;case 66:rt.commit(G[V],G[V-2],rt.commitType.NORMAL,G[V-4]);break;case 67:rt.commit(G[V],G[V-4],rt.commitType.NORMAL,G[V-2]);break;case 68:rt.commit(G[V-2],G[V-4],rt.commitType.NORMAL,G[V]);break;case 69:rt.commit(G[V-6],G[V-4],G[V-2],G[V]);break;case 70:rt.commit(G[V-6],G[V-4],G[V],G[V-2]);break;case 71:rt.commit(G[V-6],G[V-2],G[V-4],G[V]);break;case 72:rt.commit(G[V-6],G[V],G[V-4],G[V-2]);break;case 73:rt.commit(G[V-6],G[V-2],G[V],G[V-4]);break;case 74:rt.commit(G[V-6],G[V],G[V-2],G[V-4]);break;case 75:rt.commit(G[V-4],G[V-6],G[V-2],G[V]);break;case 76:rt.commit(G[V-4],G[V-6],G[V],G[V-2]);break;case 77:rt.commit(G[V-2],G[V-6],G[V-4],G[V]);break;case 78:rt.commit(G[V],G[V-6],G[V-4],G[V-2]);break;case 79:rt.commit(G[V-2],G[V-6],G[V],G[V-4]);break;case 80:rt.commit(G[V],G[V-6],G[V-2],G[V-4]);break;case 81:rt.commit(G[V],G[V-4],G[V-2],G[V-6]);break;case 82:rt.commit(G[V-2],G[V-4],G[V],G[V-6]);break;case 83:rt.commit(G[V],G[V-2],G[V-4],G[V-6]);break;case 84:rt.commit(G[V-2],G[V],G[V-4],G[V-6]);break;case 85:rt.commit(G[V-4],G[V-2],G[V],G[V-6]);break;case 86:rt.commit(G[V-4],G[V],G[V-2],G[V-6]);break;case 87:rt.commit(G[V-2],G[V-4],G[V-6],G[V]);break;case 88:rt.commit(G[V],G[V-4],G[V-6],G[V-2]);break;case 89:rt.commit(G[V-2],G[V],G[V-6],G[V-4]);break;case 90:rt.commit(G[V],G[V-2],G[V-6],G[V-4]);break;case 91:rt.commit(G[V-4],G[V-2],G[V-6],G[V]);break;case 92:rt.commit(G[V-4],G[V],G[V-6],G[V-2]);break;case 93:this.$="";break;case 94:this.$=G[V];break;case 95:this.$=rt.commitType.NORMAL;break;case 96:this.$=rt.commitType.REVERSE;break;case 97:this.$=rt.commitType.HIGHLIGHT;break;case 100:rt.parseDirective("%%{","open_directive");break;case 101:rt.parseDirective(G[V],"type_directive");break;case 102:G[V]=G[V].trim().replace(/'/g,'"'),rt.parseDirective(G[V],"arg_directive");break;case 103:rt.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:E,8:k,14:M,45:8,49:O,53:L},{1:[3]},{3:10,4:2,5:3,6:E,8:k,14:M,45:8,49:O,53:L},{3:11,4:2,5:3,6:E,8:k,14:M,45:8,49:O,53:L},{7:12,8:F,9:[1,13],10:[1,14],11:15,14:P},g($,[2,104]),g($,[2,105]),g($,[2,106]),{46:17,50:[1,18]},{50:[2,100]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:F,11:15,14:P},{9:[1,21]},g(W,[2,10],{12:22,13:[1,23]}),g(K,[2,9]),{9:[1,25],47:24,52:nt},g([9,52],[2,101]),{1:[2,3]},{8:[1,27]},{7:28,8:F,11:15,14:P},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],35:[1,42],37:[1,41]},g(K,[2,8]),g(ht,[2,98]),{48:45,51:[1,46]},g(ht,[2,103]),{1:[2,4]},{8:[1,47]},g(W,[2,11]),{4:48,8:k,14:M,53:L},g(W,[2,13]),g(J,[2,14]),g(J,[2,15]),g(J,[2,16]),{21:[1,49]},{23:[1,50]},g(J,[2,19]),g(J,[2,20]),g(J,[2,21]),{28:[1,51]},g(J,[2,93],{38:52,33:[1,55],34:[1,57],36:[1,53],39:[1,54],41:[1,56]}),{28:[1,58]},{33:[1,59]},{28:[1,60]},{47:61,52:nt},{52:[2,102]},{1:[2,5]},g(W,[2,12]),g(J,[2,17]),g(J,[2,18]),g(J,[2,22]),g(J,[2,28]),{34:[1,62]},{40:63,42:bt,43:at,44:st},{34:[1,67]},{34:[1,68]},g(J,[2,94]),g(J,[2,26],{36:[1,69]}),{34:[1,70]},g(J,[2,23],{30:[1,71]}),g(ht,[2,99]),g(J,[2,29],{33:[1,73],39:[1,72],41:[1,74]}),g(J,[2,30],{33:[1,76],36:[1,75],41:[1,77]}),g(St,[2,95]),g(St,[2,96]),g(St,[2,97]),g(J,[2,33],{36:[1,78],39:[1,79],41:[1,80]}),g(J,[2,44],{33:[1,83],36:[1,81],39:[1,82]}),{34:[1,84]},g(J,[2,25]),{31:[1,85]},{40:86,42:bt,43:at,44:st},{34:[1,87]},{34:[1,88]},{34:[1,89]},{34:[1,90]},{34:[1,91]},{34:[1,92]},{40:93,42:bt,43:at,44:st},{34:[1,94]},{34:[1,95]},{40:96,42:bt,43:at,44:st},{34:[1,97]},g(J,[2,27]),g(J,[2,24]),g(J,[2,31],{33:[1,98],41:[1,99]}),g(J,[2,35],{39:[1,100],41:[1,101]}),g(J,[2,45],{33:[1,103],39:[1,102]}),g(J,[2,32],{33:[1,104],41:[1,105]}),g(J,[2,37],{36:[1,106],41:[1,107]}),g(J,[2,48],{33:[1,109],36:[1,108]}),g(J,[2,34],{39:[1,110],41:[1,111]}),g(J,[2,36],{36:[1,112],41:[1,113]}),g(J,[2,49],{36:[1,115],39:[1,114]}),g(J,[2,46],{33:[1,117],39:[1,116]}),g(J,[2,47],{33:[1,119],36:[1,118]}),g(J,[2,50],{36:[1,121],39:[1,120]}),{34:[1,122]},{34:[1,123]},{40:124,42:bt,43:at,44:st},{34:[1,125]},{40:126,42:bt,43:at,44:st},{34:[1,127]},{34:[1,128]},{34:[1,129]},{34:[1,130]},{34:[1,131]},{34:[1,132]},{34:[1,133]},{40:134,42:bt,43:at,44:st},{34:[1,135]},{34:[1,136]},{34:[1,137]},{40:138,42:bt,43:at,44:st},{34:[1,139]},{40:140,42:bt,43:at,44:st},{34:[1,141]},{34:[1,142]},{34:[1,143]},{40:144,42:bt,43:at,44:st},{34:[1,145]},g(J,[2,42],{41:[1,146]}),g(J,[2,55],{33:[1,147]}),g(J,[2,43],{41:[1,148]}),g(J,[2,66],{39:[1,149]}),g(J,[2,56],{33:[1,150]}),g(J,[2,65],{39:[1,151]}),g(J,[2,41],{41:[1,152]}),g(J,[2,54],{33:[1,153]}),g(J,[2,40],{41:[1,154]}),g(J,[2,60],{36:[1,155]}),g(J,[2,53],{33:[1,156]}),g(J,[2,59],{36:[1,157]}),g(J,[2,39],{41:[1,158]}),g(J,[2,67],{39:[1,159]}),g(J,[2,38],{41:[1,160]}),g(J,[2,61],{36:[1,161]}),g(J,[2,62],{36:[1,162]}),g(J,[2,68],{39:[1,163]}),g(J,[2,52],{33:[1,164]}),g(J,[2,63],{39:[1,165]}),g(J,[2,51],{33:[1,166]}),g(J,[2,57],{36:[1,167]}),g(J,[2,58],{36:[1,168]}),g(J,[2,64],{39:[1,169]}),{34:[1,170]},{34:[1,171]},{34:[1,172]},{40:173,42:bt,43:at,44:st},{34:[1,174]},{40:175,42:bt,43:at,44:st},{34:[1,176]},{34:[1,177]},{34:[1,178]},{34:[1,179]},{34:[1,180]},{34:[1,181]},{34:[1,182]},{40:183,42:bt,43:at,44:st},{34:[1,184]},{34:[1,185]},{34:[1,186]},{40:187,42:bt,43:at,44:st},{34:[1,188]},{40:189,42:bt,43:at,44:st},{34:[1,190]},{34:[1,191]},{34:[1,192]},{40:193,42:bt,43:at,44:st},g(J,[2,83]),g(J,[2,84]),g(J,[2,81]),g(J,[2,82]),g(J,[2,86]),g(J,[2,85]),g(J,[2,90]),g(J,[2,89]),g(J,[2,88]),g(J,[2,87]),g(J,[2,92]),g(J,[2,91]),g(J,[2,80]),g(J,[2,79]),g(J,[2,78]),g(J,[2,77]),g(J,[2,75]),g(J,[2,76]),g(J,[2,74]),g(J,[2,73]),g(J,[2,72]),g(J,[2,71]),g(J,[2,69]),g(J,[2,70])],defaultActions:{9:[2,100],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,102],47:[2,5]},parseError:function(Bt,kt){if(!kt.recoverable){var ft=new Error(Bt);throw ft.hash=kt,ft}this.trace(Bt)},parse:function(Bt){var kt=this,ft=[0],rt=[],dt=[null],G=[],Lt=this.table,V="",Rt=0,Yt=0,Gt=0,ye=2,qe=1,xe=G.slice.call(arguments,1),he=Object.create(this.lexer),me={yy:{}};for(var Ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ie)&&(me.yy[Ie]=this.yy[Ie]);he.setInput(Bt,me.yy),me.yy.lexer=he,me.yy.parser=this,he.yylloc===void 0&&(he.yylloc={});var Le=he.yylloc;G.push(Le);var ve=he.options&&he.options.ranges;function kn(){var ae;return typeof(ae=rt.pop()||he.lex()||qe)!="number"&&(ae instanceof Array&&(ae=(rt=ae).pop()),ae=kt.symbols_[ae]||ae),ae}typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var be,Ge,$t,fe,oe,Ft,Me,et,Ne,lt={};;){if($t=ft[ft.length-1],this.defaultActions[$t]?fe=this.defaultActions[$t]:(be==null&&(be=kn()),fe=Lt[$t]&&Lt[$t][be]),fe===void 0||!fe.length||!fe[0]){var Ae="";for(Ft in Ne=[],Lt[$t])this.terminals_[Ft]&&Ft>ye&&Ne.push("'"+this.terminals_[Ft]+"'");Ae=he.showPosition?"Parse error on line "+(Rt+1)+`: `+he.showPosition()+` Expecting `+Ne.join(", ")+", got '"+(this.terminals_[be]||be)+"'":"Parse error on line "+(Rt+1)+": Unexpected "+(be==qe?"end of input":"'"+(this.terminals_[be]||be)+"'"),this.parseError(Ae,{text:he.match,token:this.terminals_[be]||be,line:he.yylineno,loc:Le,expected:Ne})}if(fe[0]instanceof Array&&fe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$t+", token: "+be);switch(fe[0]){case 1:ft.push(be),dt.push(he.yytext),G.push(he.yylloc),ft.push(fe[1]),be=null,Ge?(be=Ge,Ge=null):(Yt=he.yyleng,V=he.yytext,Rt=he.yylineno,Le=he.yylloc,Gt>0);break;case 2:if(Me=this.productions_[fe[1]][1],lt.$=dt[dt.length-Me],lt._$={first_line:G[G.length-(Me||1)].first_line,last_line:G[G.length-1].last_line,first_column:G[G.length-(Me||1)].first_column,last_column:G[G.length-1].last_column},ve&&(lt._$.range=[G[G.length-(Me||1)].range[0],G[G.length-1].range[1]]),(oe=this.performAction.apply(lt,[V,Yt,Rt,me.yy,fe[1],dt,G].concat(xe)))!==void 0)return oe;Me&&(ft=ft.slice(0,-1*Me*2),dt=dt.slice(0,-1*Me),G=G.slice(0,-1*Me)),ft.push(this.productions_[fe[1]][0]),dt.push(lt.$),G.push(lt._$),et=Lt[ft[ft.length-2]][ft[ft.length-1]],ft.push(et);break;case 3:return!0}}return!0}},Nt={EOF:1,parseError:function(Bt,kt){if(!this.yy.parser)throw new Error(Bt);this.yy.parser.parseError(Bt,kt)},setInput:function(Bt,kt){return this.yy=kt||this.yy||{},this._input=Bt,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 Bt=this._input[0];return this.yytext+=Bt,this.yyleng++,this.offset++,this.match+=Bt,this.matched+=Bt,Bt.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),Bt},unput:function(Bt){var kt=Bt.length,ft=Bt.split(/(?:\r\n?|\n)/g);this._input=Bt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-kt),this.offset-=kt;var rt=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),ft.length-1&&(this.yylineno-=ft.length-1);var dt=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:ft?(ft.length===rt.length?this.yylloc.first_column:0)+rt[rt.length-ft.length].length-ft[0].length:this.yylloc.first_column-kt},this.options.ranges&&(this.yylloc.range=[dt[0],dt[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(Bt){this.unput(this.match.slice(Bt))},pastInput:function(){var Bt=this.matched.substr(0,this.matched.length-this.match.length);return(Bt.length>20?"...":"")+Bt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Bt=this.match;return Bt.length<20&&(Bt+=this._input.substr(0,20-Bt.length)),(Bt.substr(0,20)+(Bt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Bt=this.pastInput(),kt=new Array(Bt.length+1).join("-");return Bt+this.upcomingInput()+` `+kt+"^"},test_match:function(Bt,kt){var ft,rt,dt;if(this.options.backtrack_lexer&&(dt={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&&(dt.yylloc.range=this.yylloc.range.slice(0))),(rt=Bt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=rt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:rt?rt[rt.length-1].length-rt[rt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Bt[0].length},this.yytext+=Bt[0],this.match+=Bt[0],this.matches=Bt,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(Bt[0].length),this.matched+=Bt[0],ft=this.performAction.call(this,this.yy,this,kt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ft)return ft;if(this._backtrack){for(var G in dt)this[G]=dt[G];return!1}return!1},next:function(){if(this.done)return this.EOF;var Bt,kt,ft,rt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var dt=this._currentRules(),G=0;Gkt[0].length)){if(kt=ft,rt=G,this.options.backtrack_lexer){if((Bt=this.test_match(ft,dt[G]))!==!1)return Bt;if(this._backtrack){kt=!1;continue}return!1}if(!this.options.flex)break}return kt?(Bt=this.test_match(kt,dt[rt]))!==!1&&Bt: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(Bt){this.conditionStack.push(Bt)},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(Bt){return(Bt=this.conditionStack.length-1-Math.abs(Bt||0))>=0?this.conditionStack[Bt]:"INITIAL"},pushState:function(Bt){this.begin(Bt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Bt,kt,ft,rt){switch(ft){case 0:return this.begin("open_directive"),49;case 1:return this.begin("type_directive"),50;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),52;case 4:return 51;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 35:case 38:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:case 14:case 15:break;case 16:return 6;case 17:return 37;case 18:return 33;case 19:return 39;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 36;case 25:return 29;case 26:return 30;case 27:return 35;case 28:return 32;case 29:return 27;case 30:case 31:return 10;case 32:return 9;case 33:return"CARET";case 34:this.begin("options");break;case 36:return 13;case 37:this.begin("string");break;case 39:return 34;case 40:return 31;case 41:return 28;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch\b)/i,/^(?:order:)/i,/^(?:merge\b)/i,/^(?:cherry-pick\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+)/i,/^(?:[a-zA-Z][-_\./a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},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},options:{rules:[35,36],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,37,40,41,42],inclusive:!0}}};function yt(){this.yy={}}return qt.lexer=Nt,yt.prototype=qt,qt.Parser=yt,new yt}();T.parser=b,T.Parser=b.Parser,T.parse=function(){return b.parse.apply(b,arguments)},T.main=function(g){g[1]||(console.log("Usage: "+g[0]+" FILE"),process.exit(1));var E=f(8183).readFileSync(f(6470).normalize(g[1]),"utf8");return T.parser.parse(E)},f.c[f.s]===p&&T.main(process.argv.slice(1))},6765:(p,T,f)=>{p=f.nmd(p);var b=function(){var g=function(L,F,P,$){for(P=P||{},$=L.length;$--;P[L[$]]=F);return P},E=[6,9,10],k={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(L,F,P,$,W,K,nt){switch(K.length,W){case 1:return $;case 4:break;case 6:$.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},g(E,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},g(E,[2,3]),g(E,[2,4]),g(E,[2,5]),g(E,[2,6])],defaultActions:{4:[2,1]},parseError:function(L,F){if(!F.recoverable){var P=new Error(L);throw P.hash=F,P}this.trace(L)},parse:function(L){var F=this,P=[0],$=[],W=[null],K=[],nt=this.table,ht="",J=0,bt=0,at=0,st=2,St=1,qt=K.slice.call(arguments,1),Nt=Object.create(this.lexer),yt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(yt.yy[Bt]=this.yy[Bt]);Nt.setInput(L,yt.yy),yt.yy.lexer=Nt,yt.yy.parser=this,Nt.yylloc===void 0&&(Nt.yylloc={});var kt=Nt.yylloc;K.push(kt);var ft=Nt.options&&Nt.options.ranges;function rt(){var me;return typeof(me=$.pop()||Nt.lex()||St)!="number"&&(me instanceof Array&&(me=($=me).pop()),me=F.symbols_[me]||me),me}typeof yt.yy.parseError=="function"?this.parseError=yt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var dt,G,Lt,V,Rt,Yt,Gt,ye,qe,xe={};;){if(Lt=P[P.length-1],this.defaultActions[Lt]?V=this.defaultActions[Lt]:(dt==null&&(dt=rt()),V=nt[Lt]&&nt[Lt][dt]),V===void 0||!V.length||!V[0]){var he="";for(Yt in qe=[],nt[Lt])this.terminals_[Yt]&&Yt>st&&qe.push("'"+this.terminals_[Yt]+"'");he=Nt.showPosition?"Parse error on line "+(J+1)+`: `+Nt.showPosition()+` Expecting `+qe.join(", ")+", got '"+(this.terminals_[dt]||dt)+"'":"Parse error on line "+(J+1)+": Unexpected "+(dt==St?"end of input":"'"+(this.terminals_[dt]||dt)+"'"),this.parseError(he,{text:Nt.match,token:this.terminals_[dt]||dt,line:Nt.yylineno,loc:kt,expected:qe})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Lt+", token: "+dt);switch(V[0]){case 1:P.push(dt),W.push(Nt.yytext),K.push(Nt.yylloc),P.push(V[1]),dt=null,G?(dt=G,G=null):(bt=Nt.yyleng,ht=Nt.yytext,J=Nt.yylineno,kt=Nt.yylloc,at>0);break;case 2:if(Gt=this.productions_[V[1]][1],xe.$=W[W.length-Gt],xe._$={first_line:K[K.length-(Gt||1)].first_line,last_line:K[K.length-1].last_line,first_column:K[K.length-(Gt||1)].first_column,last_column:K[K.length-1].last_column},ft&&(xe._$.range=[K[K.length-(Gt||1)].range[0],K[K.length-1].range[1]]),(Rt=this.performAction.apply(xe,[ht,bt,J,yt.yy,V[1],W,K].concat(qt)))!==void 0)return Rt;Gt&&(P=P.slice(0,-1*Gt*2),W=W.slice(0,-1*Gt),K=K.slice(0,-1*Gt)),P.push(this.productions_[V[1]][0]),W.push(xe.$),K.push(xe._$),ye=nt[P[P.length-2]][P[P.length-1]],P.push(ye);break;case 3:return!0}}return!0}},M={EOF:1,parseError:function(L,F){if(!this.yy.parser)throw new Error(L);this.yy.parser.parseError(L,F)},setInput:function(L,F){return this.yy=F||this.yy||{},this._input=L,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 L=this._input[0];return this.yytext+=L,this.yyleng++,this.offset++,this.match+=L,this.matched+=L,L.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),L},unput:function(L){var F=L.length,P=L.split(/(?:\r\n?|\n)/g);this._input=L+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-F),this.offset-=F;var $=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),P.length-1&&(this.yylineno-=P.length-1);var W=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:P?(P.length===$.length?this.yylloc.first_column:0)+$[$.length-P.length].length-P[0].length:this.yylloc.first_column-F},this.options.ranges&&(this.yylloc.range=[W[0],W[0]+this.yyleng-F]),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(L){this.unput(this.match.slice(L))},pastInput:function(){var L=this.matched.substr(0,this.matched.length-this.match.length);return(L.length>20?"...":"")+L.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var L=this.match;return L.length<20&&(L+=this._input.substr(0,20-L.length)),(L.substr(0,20)+(L.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var L=this.pastInput(),F=new Array(L.length+1).join("-");return L+this.upcomingInput()+` `+F+"^"},test_match:function(L,F){var P,$,W;if(this.options.backtrack_lexer&&(W={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&&(W.yylloc.range=this.yylloc.range.slice(0))),($=L[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=$.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$?$[$.length-1].length-$[$.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+L[0].length},this.yytext+=L[0],this.match+=L[0],this.matches=L,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(L[0].length),this.matched+=L[0],P=this.performAction.call(this,this.yy,this,F,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),P)return P;if(this._backtrack){for(var K in W)this[K]=W[K];return!1}return!1},next:function(){if(this.done)return this.EOF;var L,F,P,$;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var W=this._currentRules(),K=0;KF[0].length)){if(F=P,$=K,this.options.backtrack_lexer){if((L=this.test_match(P,W[K]))!==!1)return L;if(this._backtrack){F=!1;continue}return!1}if(!this.options.flex)break}return F?(L=this.test_match(F,W[$]))!==!1&&L: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(L){this.conditionStack.push(L)},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(L){return(L=this.conditionStack.length-1-Math.abs(L||0))>=0?this.conditionStack[L]:"INITIAL"},pushState:function(L){this.begin(L)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(L,F,P,$){switch(P){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 O(){this.yy={}}return k.lexer=M,O.prototype=k,k.Parser=O,new O}();T.parser=b,T.Parser=b.Parser,T.parse=function(){return b.parse.apply(b,arguments)},T.main=function(g){g[1]||(console.log("Usage: "+g[0]+" FILE"),process.exit(1));var E=f(1428).readFileSync(f(6470).normalize(g[1]),"utf8");return T.parser.parse(E)},f.c[f.s]===p&&T.main(process.argv.slice(1))},7062:(p,T,f)=>{p=f.nmd(p);var b=function(){var g=function(kt,ft,rt,dt){for(rt=rt||{},dt=kt.length;dt--;rt[kt[dt]]=ft);return rt},E=[1,4],k=[1,5],M=[1,6],O=[1,7],L=[1,9],F=[1,11,13,15,17,19,20,26,27,28,29],P=[2,5],$=[1,6,11,13,15,17,19,20,26,27,28,29],W=[26,27,28],K=[2,8],nt=[1,18],ht=[1,19],J=[1,20],bt=[1,21],at=[1,22],st=[1,23],St=[1,28],qt=[6,26,27,28,29],Nt={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,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"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,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(kt,ft,rt,dt,G,Lt,V){var Rt=Lt.length-1;switch(G){case 4:dt.setShowData(!0);break;case 7:this.$=Lt[Rt-1];break;case 9:dt.addSection(Lt[Rt-1],dt.cleanupValue(Lt[Rt]));break;case 10:this.$=Lt[Rt].trim(),dt.setDiagramTitle(this.$);break;case 11:this.$=Lt[Rt].trim(),dt.setAccTitle(this.$);break;case 12:case 13:this.$=Lt[Rt].trim(),dt.setAccDescription(this.$);break;case 14:dt.addSection(Lt[Rt].substr(8)),this.$=Lt[Rt].substr(8);break;case 21:dt.parseDirective("%%{","open_directive");break;case 22:dt.parseDirective(Lt[Rt],"type_directive");break;case 23:Lt[Rt]=Lt[Rt].trim().replace(/'/g,'"'),dt.parseDirective(Lt[Rt],"arg_directive");break;case 24:dt.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:E,21:8,26:k,27:M,28:O,29:L},{1:[3]},{3:10,4:2,5:3,6:E,21:8,26:k,27:M,28:O,29:L},{3:11,4:2,5:3,6:E,21:8,26:k,27:M,28:O,29:L},g(F,P,{7:12,8:[1,13]}),g($,[2,18]),g($,[2,19]),g($,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},g(W,K,{21:8,9:16,10:17,5:24,1:[2,3],11:nt,13:ht,15:J,17:bt,19:at,20:st,29:L}),g(F,P,{7:25}),{23:26,24:[1,27],32:St},g([24,32],[2,22]),g(F,[2,6]),{4:29,26:k,27:M,28:O},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},g(W,[2,13]),g(W,[2,14]),g(W,[2,15]),g(W,K,{21:8,9:16,10:17,5:24,1:[2,4],11:nt,13:ht,15:J,17:bt,19:at,20:st,29:L}),g(qt,[2,16]),{25:34,31:[1,35]},g(qt,[2,24]),g(F,[2,7]),g(W,[2,9]),g(W,[2,10]),g(W,[2,11]),g(W,[2,12]),{23:36,32:St},{32:[2,23]},g(qt,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(kt,ft){if(!ft.recoverable){var rt=new Error(kt);throw rt.hash=ft,rt}this.trace(kt)},parse:function(kt){var ft=this,rt=[0],dt=[],G=[null],Lt=[],V=this.table,Rt="",Yt=0,Gt=0,ye=0,qe=2,xe=1,he=Lt.slice.call(arguments,1),me=Object.create(this.lexer),Ie={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(Ie.yy[Le]=this.yy[Le]);me.setInput(kt,Ie.yy),Ie.yy.lexer=me,Ie.yy.parser=this,me.yylloc===void 0&&(me.yylloc={});var ve=me.yylloc;Lt.push(ve);var kn=me.options&&me.options.ranges;function be(){var we;return typeof(we=dt.pop()||me.lex()||xe)!="number"&&(we instanceof Array&&(we=(dt=we).pop()),we=ft.symbols_[we]||we),we}typeof Ie.yy.parseError=="function"?this.parseError=Ie.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ge,$t,fe,oe,Ft,Me,et,Ne,lt,Ae={};;){if(fe=rt[rt.length-1],this.defaultActions[fe]?oe=this.defaultActions[fe]:(Ge==null&&(Ge=be()),oe=V[fe]&&V[fe][Ge]),oe===void 0||!oe.length||!oe[0]){var ae="";for(Me in lt=[],V[fe])this.terminals_[Me]&&Me>qe&<.push("'"+this.terminals_[Me]+"'");ae=me.showPosition?"Parse error on line "+(Yt+1)+`: `+me.showPosition()+` Expecting `+lt.join(", ")+", got '"+(this.terminals_[Ge]||Ge)+"'":"Parse error on line "+(Yt+1)+": Unexpected "+(Ge==xe?"end of input":"'"+(this.terminals_[Ge]||Ge)+"'"),this.parseError(ae,{text:me.match,token:this.terminals_[Ge]||Ge,line:me.yylineno,loc:ve,expected:lt})}if(oe[0]instanceof Array&&oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+fe+", token: "+Ge);switch(oe[0]){case 1:rt.push(Ge),G.push(me.yytext),Lt.push(me.yylloc),rt.push(oe[1]),Ge=null,$t?(Ge=$t,$t=null):(Gt=me.yyleng,Rt=me.yytext,Yt=me.yylineno,ve=me.yylloc,ye>0);break;case 2:if(et=this.productions_[oe[1]][1],Ae.$=G[G.length-et],Ae._$={first_line:Lt[Lt.length-(et||1)].first_line,last_line:Lt[Lt.length-1].last_line,first_column:Lt[Lt.length-(et||1)].first_column,last_column:Lt[Lt.length-1].last_column},kn&&(Ae._$.range=[Lt[Lt.length-(et||1)].range[0],Lt[Lt.length-1].range[1]]),(Ft=this.performAction.apply(Ae,[Rt,Gt,Yt,Ie.yy,oe[1],G,Lt].concat(he)))!==void 0)return Ft;et&&(rt=rt.slice(0,-1*et*2),G=G.slice(0,-1*et),Lt=Lt.slice(0,-1*et)),rt.push(this.productions_[oe[1]][0]),G.push(Ae.$),Lt.push(Ae._$),Ne=V[rt[rt.length-2]][rt[rt.length-1]],rt.push(Ne);break;case 3:return!0}}return!0}},yt={EOF:1,parseError:function(kt,ft){if(!this.yy.parser)throw new Error(kt);this.yy.parser.parseError(kt,ft)},setInput:function(kt,ft){return this.yy=ft||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 ft=kt.length,rt=kt.split(/(?:\r\n?|\n)/g);this._input=kt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ft),this.offset-=ft;var dt=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),rt.length-1&&(this.yylineno-=rt.length-1);var G=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:rt?(rt.length===dt.length?this.yylloc.first_column:0)+dt[dt.length-rt.length].length-rt[0].length:this.yylloc.first_column-ft},this.options.ranges&&(this.yylloc.range=[G[0],G[0]+this.yyleng-ft]),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(),ft=new Array(kt.length+1).join("-");return kt+this.upcomingInput()+` `+ft+"^"},test_match:function(kt,ft){var rt,dt,G;if(this.options.backtrack_lexer&&(G={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&&(G.yylloc.range=this.yylloc.range.slice(0))),(dt=kt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=dt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:dt?dt[dt.length-1].length-dt[dt.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],rt=this.performAction.call(this,this.yy,this,ft,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),rt)return rt;if(this._backtrack){for(var Lt in G)this[Lt]=G[Lt];return!1}return!1},next:function(){if(this.done)return this.EOF;var kt,ft,rt,dt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var G=this._currentRules(),Lt=0;Ltft[0].length)){if(ft=rt,dt=Lt,this.options.backtrack_lexer){if((kt=this.test_match(rt,G[Lt]))!==!1)return kt;if(this._backtrack){ft=!1;continue}return!1}if(!this.options.flex)break}return ft?(kt=this.test_match(ft,G[dt]))!==!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,ft,rt,dt){switch(rt){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:case 6:case 8:case 9:break;case 7:return 26;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:case 20:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},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:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};function Bt(){this.yy={}}return Nt.lexer=yt,Bt.prototype=Nt,Nt.Parser=Bt,new Bt}();T.parser=b,T.Parser=b.Parser,T.parse=function(){return b.parse.apply(b,arguments)},T.main=function(g){g[1]||(console.log("Usage: "+g[0]+" FILE"),process.exit(1));var E=f(4551).readFileSync(f(6470).normalize(g[1]),"utf8");return T.parser.parse(E)},f.c[f.s]===p&&T.main(process.argv.slice(1))},3176:(p,T,f)=>{p=f.nmd(p);var b=function(){var g=function($t,fe,oe,Ft){for(oe=oe||{},Ft=$t.length;Ft--;oe[$t[Ft]]=fe);return oe},E=[1,3],k=[1,5],M=[1,6],O=[1,7],L=[1,8],F=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],P=[1,22],$=[2,13],W=[1,26],K=[1,27],nt=[1,28],ht=[1,29],J=[1,30],bt=[1,31],at=[1,24],st=[1,32],St=[1,33],qt=[1,36],Nt=[71,72],yt=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],Bt=[1,56],kt=[1,57],ft=[1,58],rt=[1,59],dt=[1,60],G=[1,61],Lt=[1,62],V=[62,63],Rt=[1,74],Yt=[1,70],Gt=[1,71],ye=[1,72],qe=[1,73],xe=[1,75],he=[1,79],me=[1,80],Ie=[1,77],Le=[1,78],ve=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],kn={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,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function($t,fe,oe,Ft,Me,et,Ne){var lt=et.length-1;switch(Me){case 6:this.$=et[lt].trim(),Ft.setAccTitle(this.$);break;case 7:case 8:this.$=et[lt].trim(),Ft.setAccDescription(this.$);break;case 9:Ft.parseDirective("%%{","open_directive");break;case 10:Ft.parseDirective(et[lt],"type_directive");break;case 11:et[lt]=et[lt].trim().replace(/'/g,'"'),Ft.parseDirective(et[lt],"arg_directive");break;case 12:Ft.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:Ft.addRequirement(et[lt-3],et[lt-4]);break;case 20:Ft.setNewReqId(et[lt-2]);break;case 21:Ft.setNewReqText(et[lt-2]);break;case 22:Ft.setNewReqRisk(et[lt-2]);break;case 23:Ft.setNewReqVerifyMethod(et[lt-2]);break;case 26:this.$=Ft.RequirementType.REQUIREMENT;break;case 27:this.$=Ft.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=Ft.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=Ft.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=Ft.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=Ft.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=Ft.RiskLevel.LOW_RISK;break;case 33:this.$=Ft.RiskLevel.MED_RISK;break;case 34:this.$=Ft.RiskLevel.HIGH_RISK;break;case 35:this.$=Ft.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=Ft.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=Ft.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=Ft.VerifyType.VERIFY_TEST;break;case 39:Ft.addElement(et[lt-3]);break;case 40:Ft.setNewElementType(et[lt-2]);break;case 41:Ft.setNewElementDocRef(et[lt-2]);break;case 44:Ft.addRelationship(et[lt-2],et[lt],et[lt-4]);break;case 45:Ft.addRelationship(et[lt-2],et[lt-4],et[lt]);break;case 46:this.$=Ft.Relationships.CONTAINS;break;case 47:this.$=Ft.Relationships.COPIES;break;case 48:this.$=Ft.Relationships.DERIVES;break;case 49:this.$=Ft.Relationships.SATISFIES;break;case 50:this.$=Ft.Relationships.VERIFIES;break;case 51:this.$=Ft.Relationships.REFINES;break;case 52:this.$=Ft.Relationships.TRACES}},table:[{3:1,4:2,6:E,9:4,14:k,16:M,18:O,19:L},{1:[3]},{3:10,4:2,5:[1,9],6:E,9:4,14:k,16:M,18:O,19:L},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},g(F,[2,8]),{20:[2,9]},{3:16,4:2,6:E,9:4,14:k,16:M,18:O,19:L},{1:[2,2]},{4:21,5:P,7:17,8:$,9:4,14:k,16:M,18:O,19:L,23:18,24:19,25:20,26:23,32:25,40:W,41:K,42:nt,43:ht,44:J,45:bt,53:at,71:st,72:St},{11:34,12:[1,35],22:qt},g([12,22],[2,10]),g(F,[2,6]),g(F,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:P,7:38,8:$,9:4,14:k,16:M,18:O,19:L,23:18,24:19,25:20,26:23,32:25,40:W,41:K,42:nt,43:ht,44:J,45:bt,53:at,71:st,72:St},{4:21,5:P,7:39,8:$,9:4,14:k,16:M,18:O,19:L,23:18,24:19,25:20,26:23,32:25,40:W,41:K,42:nt,43:ht,44:J,45:bt,53:at,71:st,72:St},{4:21,5:P,7:40,8:$,9:4,14:k,16:M,18:O,19:L,23:18,24:19,25:20,26:23,32:25,40:W,41:K,42:nt,43:ht,44:J,45:bt,53:at,71:st,72:St},{4:21,5:P,7:41,8:$,9:4,14:k,16:M,18:O,19:L,23:18,24:19,25:20,26:23,32:25,40:W,41:K,42:nt,43:ht,44:J,45:bt,53:at,71:st,72:St},{4:21,5:P,7:42,8:$,9:4,14:k,16:M,18:O,19:L,23:18,24:19,25:20,26:23,32:25,40:W,41:K,42:nt,43:ht,44:J,45:bt,53:at,71:st,72:St},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},g(Nt,[2,26]),g(Nt,[2,27]),g(Nt,[2,28]),g(Nt,[2,29]),g(Nt,[2,30]),g(Nt,[2,31]),g(yt,[2,55]),g(yt,[2,56]),g(F,[2,4]),{13:51,21:[1,52]},g(F,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:Bt,65:kt,66:ft,67:rt,68:dt,69:G,70:Lt},{61:63,64:Bt,65:kt,66:ft,67:rt,68:dt,69:G,70:Lt},{11:64,22:qt},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},g(V,[2,46]),g(V,[2,47]),g(V,[2,48]),g(V,[2,49]),g(V,[2,50]),g(V,[2,51]),g(V,[2,52]),{63:[1,68]},g(F,[2,5]),{5:Rt,29:69,30:Yt,33:Gt,35:ye,37:qe,39:xe},{5:he,39:me,55:76,56:Ie,58:Le},{32:81,71:st,72:St},{32:82,71:st,72:St},g(ve,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:Rt,29:87,30:Yt,33:Gt,35:ye,37:qe,39:xe},g(ve,[2,25]),g(ve,[2,39]),{31:[1,88]},{31:[1,89]},{5:he,39:me,55:90,56:Ie,58:Le},g(ve,[2,43]),g(ve,[2,44]),g(ve,[2,45]),{32:91,71:st,72:St},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},g(ve,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},g(ve,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:Rt,29:116,30:Yt,33:Gt,35:ye,37:qe,39:xe},{5:Rt,29:117,30:Yt,33:Gt,35:ye,37:qe,39:xe},{5:Rt,29:118,30:Yt,33:Gt,35:ye,37:qe,39:xe},{5:Rt,29:119,30:Yt,33:Gt,35:ye,37:qe,39:xe},{5:he,39:me,55:120,56:Ie,58:Le},{5:he,39:me,55:121,56:Ie,58:Le},g(ve,[2,20]),g(ve,[2,21]),g(ve,[2,22]),g(ve,[2,23]),g(ve,[2,40]),g(ve,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function($t,fe){if(!fe.recoverable){var oe=new Error($t);throw oe.hash=fe,oe}this.trace($t)},parse:function($t){var fe=this,oe=[0],Ft=[],Me=[null],et=[],Ne=this.table,lt="",Ae=0,ae=0,we=0,Ye=2,Pe=1,ln=et.slice.call(arguments,1),De=Object.create(this.lexer),Ke={yy:{}};for(var rn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rn)&&(Ke.yy[rn]=this.yy[rn]);De.setInput($t,Ke.yy),Ke.yy.lexer=De,Ke.yy.parser=this,De.yylloc===void 0&&(De.yylloc={});var on=De.yylloc;et.push(on);var Oe=De.options&&De.options.ranges;function dn(){var un;return typeof(un=Ft.pop()||De.lex()||Pe)!="number"&&(un instanceof Array&&(un=(Ft=un).pop()),un=fe.symbols_[un]||un),un}typeof Ke.yy.parseError=="function"?this.parseError=Ke.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var mn,We,$e,Ue,Qe,qn,zt,Dn,Ht,gn={};;){if($e=oe[oe.length-1],this.defaultActions[$e]?Ue=this.defaultActions[$e]:(mn==null&&(mn=dn()),Ue=Ne[$e]&&Ne[$e][mn]),Ue===void 0||!Ue.length||!Ue[0]){var In="";for(qn in Ht=[],Ne[$e])this.terminals_[qn]&&qn>Ye&&Ht.push("'"+this.terminals_[qn]+"'");In=De.showPosition?"Parse error on line "+(Ae+1)+`: `+De.showPosition()+` Expecting `+Ht.join(", ")+", got '"+(this.terminals_[mn]||mn)+"'":"Parse error on line "+(Ae+1)+": Unexpected "+(mn==Pe?"end of input":"'"+(this.terminals_[mn]||mn)+"'"),this.parseError(In,{text:De.match,token:this.terminals_[mn]||mn,line:De.yylineno,loc:on,expected:Ht})}if(Ue[0]instanceof Array&&Ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$e+", token: "+mn);switch(Ue[0]){case 1:oe.push(mn),Me.push(De.yytext),et.push(De.yylloc),oe.push(Ue[1]),mn=null,We?(mn=We,We=null):(ae=De.yyleng,lt=De.yytext,Ae=De.yylineno,on=De.yylloc,we>0);break;case 2:if(zt=this.productions_[Ue[1]][1],gn.$=Me[Me.length-zt],gn._$={first_line:et[et.length-(zt||1)].first_line,last_line:et[et.length-1].last_line,first_column:et[et.length-(zt||1)].first_column,last_column:et[et.length-1].last_column},Oe&&(gn._$.range=[et[et.length-(zt||1)].range[0],et[et.length-1].range[1]]),(Qe=this.performAction.apply(gn,[lt,ae,Ae,Ke.yy,Ue[1],Me,et].concat(ln)))!==void 0)return Qe;zt&&(oe=oe.slice(0,-1*zt*2),Me=Me.slice(0,-1*zt),et=et.slice(0,-1*zt)),oe.push(this.productions_[Ue[1]][0]),Me.push(gn.$),et.push(gn._$),Dn=Ne[oe[oe.length-2]][oe[oe.length-1]],oe.push(Dn);break;case 3:return!0}}return!0}},be={EOF:1,parseError:function($t,fe){if(!this.yy.parser)throw new Error($t);this.yy.parser.parseError($t,fe)},setInput:function($t,fe){return this.yy=fe||this.yy||{},this._input=$t,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 $t=this._input[0];return this.yytext+=$t,this.yyleng++,this.offset++,this.match+=$t,this.matched+=$t,$t.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),$t},unput:function($t){var fe=$t.length,oe=$t.split(/(?:\r\n?|\n)/g);this._input=$t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-fe),this.offset-=fe;var Ft=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 Me=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===Ft.length?this.yylloc.first_column:0)+Ft[Ft.length-oe.length].length-oe[0].length:this.yylloc.first_column-fe},this.options.ranges&&(this.yylloc.range=[Me[0],Me[0]+this.yyleng-fe]),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($t){this.unput(this.match.slice($t))},pastInput:function(){var $t=this.matched.substr(0,this.matched.length-this.match.length);return($t.length>20?"...":"")+$t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var $t=this.match;return $t.length<20&&($t+=this._input.substr(0,20-$t.length)),($t.substr(0,20)+($t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var $t=this.pastInput(),fe=new Array($t.length+1).join("-");return $t+this.upcomingInput()+` `+fe+"^"},test_match:function($t,fe){var oe,Ft,Me;if(this.options.backtrack_lexer&&(Me={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&&(Me.yylloc.range=this.yylloc.range.slice(0))),(Ft=$t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ft.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ft?Ft[Ft.length-1].length-Ft[Ft.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+$t[0].length},this.yytext+=$t[0],this.match+=$t[0],this.matches=$t,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($t[0].length),this.matched+=$t[0],oe=this.performAction.call(this,this.yy,this,fe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),oe)return oe;if(this._backtrack){for(var et in Me)this[et]=Me[et];return!1}return!1},next:function(){if(this.done)return this.EOF;var $t,fe,oe,Ft;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Me=this._currentRules(),et=0;etfe[0].length)){if(fe=oe,Ft=et,this.options.backtrack_lexer){if(($t=this.test_match(oe,Me[et]))!==!1)return $t;if(this._backtrack){fe=!1;continue}return!1}if(!this.options.flex)break}return fe?($t=this.test_match(fe,Me[Ft]))!==!1&&$t: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($t){this.conditionStack.push($t)},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($t){return($t=this.conditionStack.length-1-Math.abs($t||0))>=0?this.conditionStack[$t]:"INITIAL"},pushState:function($t){this.begin($t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function($t,fe,oe,Ft){switch(oe){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 53:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:case 15:case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 54:return"qString";case 55:return fe.yytext=fe.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/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:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},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:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,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,45,46,47,48,49,50,51,52,55],inclusive:!0}}};function Ge(){this.yy={}}return kn.lexer=be,Ge.prototype=kn,kn.Parser=Ge,new Ge}();T.parser=b,T.Parser=b.Parser,T.parse=function(){return b.parse.apply(b,arguments)},T.main=function(g){g[1]||(console.log("Usage: "+g[0]+" FILE"),process.exit(1));var E=f(8800).readFileSync(f(6470).normalize(g[1]),"utf8");return T.parser.parse(E)},f.c[f.s]===p&&T.main(process.argv.slice(1))},6876:(p,T,f)=>{p=f.nmd(p);var b=function(){var g=function($t,fe,oe,Ft){for(oe=oe||{},Ft=$t.length;Ft--;oe[$t[Ft]]=fe);return oe},E=[1,2],k=[1,3],M=[1,5],O=[1,7],L=[2,5],F=[1,15],P=[1,17],$=[1,18],W=[1,19],K=[1,21],nt=[1,22],ht=[1,23],J=[1,29],bt=[1,30],at=[1,31],st=[1,32],St=[1,33],qt=[1,34],Nt=[1,35],yt=[1,36],Bt=[1,37],kt=[1,38],ft=[1,39],rt=[1,40],dt=[1,43],G=[1,44],Lt=[1,45],V=[1,46],Rt=[1,47],Yt=[1,48],Gt=[1,51],ye=[1,4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],qe=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,53,58,59,60,61,69,79],xe=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,52,53,58,59,60,61,69,79],he=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,51,53,58,59,60,61,69,79],me=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,53,58,59,60,61,69,79],Ie=[67,68,69],Le=[1,121],ve=[1,4,5,7,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],kn={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,NUM:23,off:24,activate:25,deactivate:26,note_statement:27,links_statement:28,link_statement:29,properties_statement:30,details_statement:31,title:32,legacy_title:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,loop:39,end:40,rect:41,opt:42,alt:43,else_sections:44,par:45,par_sections:46,critical:47,option_sections:48,break:49,option:50,and:51,else:52,note:53,placement:54,text2:55,over:56,actor_pair:57,links:58,link:59,properties:60,details:61,spaceList:62,",":63,left_of:64,right_of:65,signaltype:66,"+":67,"-":68,ACTOR:69,SOLID_OPEN_ARROW:70,DOTTED_OPEN_ARROW:71,SOLID_ARROW:72,DOTTED_ARROW:73,SOLID_CROSS:74,DOTTED_CROSS:75,SOLID_POINT:76,DOTTED_POINT:77,TXT:78,open_directive:79,type_directive:80,arg_directive:81,close_directive:82,$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:"NUM",24:"off",25:"activate",26:"deactivate",32:"title",33:"legacy_title",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",39:"loop",40:"end",41:"rect",42:"opt",43:"alt",45:"par",47:"critical",49:"break",50:"option",51:"and",52:"else",53:"note",56:"over",58:"links",59:"link",60:"properties",61:"details",63:",",64:"left_of",65:"right_of",67:"+",68:"-",69:"ACTOR",70:"SOLID_OPEN_ARROW",71:"DOTTED_OPEN_ARROW",72:"SOLID_ARROW",73:"DOTTED_ARROW",74:"SOLID_CROSS",75:"DOTTED_CROSS",76:"SOLID_POINT",77:"DOTTED_POINT",78:"TXT",79:"open_directive",80:"type_directive",81:"arg_directive",82:"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,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[48,1],[48,4],[46,1],[46,4],[44,1],[44,4],[27,4],[27,4],[28,3],[29,3],[30,3],[31,3],[62,2],[62,1],[57,3],[57,1],[54,1],[54,1],[21,5],[21,5],[21,4],[17,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[55,1],[11,1],[12,1],[15,1],[13,1]],performAction:function($t,fe,oe,Ft,Me,et,Ne){var lt=et.length-1;switch(Me){case 4:return Ft.apply(et[lt]),et[lt];case 5:case 9:this.$=[];break;case 6:et[lt-1].push(et[lt]),this.$=et[lt-1];break;case 7:case 8:case 56:this.$=et[lt];break;case 12:et[lt-3].type="addParticipant",et[lt-3].description=Ft.parseMessage(et[lt-1]),this.$=et[lt-3];break;case 13:et[lt-1].type="addParticipant",this.$=et[lt-1];break;case 14:et[lt-3].type="addActor",et[lt-3].description=Ft.parseMessage(et[lt-1]),this.$=et[lt-3];break;case 15:et[lt-1].type="addActor",this.$=et[lt-1];break;case 17:this.$={type:"sequenceIndex",sequenceIndex:Number(et[lt-2]),sequenceIndexStep:Number(et[lt-1]),sequenceVisible:!0,signalType:Ft.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(et[lt-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Ft.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Ft.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Ft.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"activeStart",signalType:Ft.LINETYPE.ACTIVE_START,actor:et[lt-1]};break;case 22:this.$={type:"activeEnd",signalType:Ft.LINETYPE.ACTIVE_END,actor:et[lt-1]};break;case 28:Ft.setDiagramTitle(et[lt].substring(6)),this.$=et[lt].substring(6);break;case 29:Ft.setDiagramTitle(et[lt].substring(7)),this.$=et[lt].substring(7);break;case 30:this.$=et[lt].trim(),Ft.setAccTitle(this.$);break;case 31:case 32:this.$=et[lt].trim(),Ft.setAccDescription(this.$);break;case 33:et[lt-1].unshift({type:"loopStart",loopText:Ft.parseMessage(et[lt-2]),signalType:Ft.LINETYPE.LOOP_START}),et[lt-1].push({type:"loopEnd",loopText:et[lt-2],signalType:Ft.LINETYPE.LOOP_END}),this.$=et[lt-1];break;case 34:et[lt-1].unshift({type:"rectStart",color:Ft.parseMessage(et[lt-2]),signalType:Ft.LINETYPE.RECT_START}),et[lt-1].push({type:"rectEnd",color:Ft.parseMessage(et[lt-2]),signalType:Ft.LINETYPE.RECT_END}),this.$=et[lt-1];break;case 35:et[lt-1].unshift({type:"optStart",optText:Ft.parseMessage(et[lt-2]),signalType:Ft.LINETYPE.OPT_START}),et[lt-1].push({type:"optEnd",optText:Ft.parseMessage(et[lt-2]),signalType:Ft.LINETYPE.OPT_END}),this.$=et[lt-1];break;case 36:et[lt-1].unshift({type:"altStart",altText:Ft.parseMessage(et[lt-2]),signalType:Ft.LINETYPE.ALT_START}),et[lt-1].push({type:"altEnd",signalType:Ft.LINETYPE.ALT_END}),this.$=et[lt-1];break;case 37:et[lt-1].unshift({type:"parStart",parText:Ft.parseMessage(et[lt-2]),signalType:Ft.LINETYPE.PAR_START}),et[lt-1].push({type:"parEnd",signalType:Ft.LINETYPE.PAR_END}),this.$=et[lt-1];break;case 38:et[lt-1].unshift({type:"criticalStart",criticalText:Ft.parseMessage(et[lt-2]),signalType:Ft.LINETYPE.CRITICAL_START}),et[lt-1].push({type:"criticalEnd",signalType:Ft.LINETYPE.CRITICAL_END}),this.$=et[lt-1];break;case 39:et[lt-1].unshift({type:"breakStart",breakText:Ft.parseMessage(et[lt-2]),signalType:Ft.LINETYPE.BREAK_START}),et[lt-1].push({type:"breakEnd",optText:Ft.parseMessage(et[lt-2]),signalType:Ft.LINETYPE.BREAK_END}),this.$=et[lt-1];break;case 42:this.$=et[lt-3].concat([{type:"option",optionText:Ft.parseMessage(et[lt-1]),signalType:Ft.LINETYPE.CRITICAL_OPTION},et[lt]]);break;case 44:this.$=et[lt-3].concat([{type:"and",parText:Ft.parseMessage(et[lt-1]),signalType:Ft.LINETYPE.PAR_AND},et[lt]]);break;case 46:this.$=et[lt-3].concat([{type:"else",altText:Ft.parseMessage(et[lt-1]),signalType:Ft.LINETYPE.ALT_ELSE},et[lt]]);break;case 47:this.$=[et[lt-1],{type:"addNote",placement:et[lt-2],actor:et[lt-1].actor,text:et[lt]}];break;case 48:et[lt-2]=[].concat(et[lt-1],et[lt-1]).slice(0,2),et[lt-2][0]=et[lt-2][0].actor,et[lt-2][1]=et[lt-2][1].actor,this.$=[et[lt-1],{type:"addNote",placement:Ft.PLACEMENT.OVER,actor:et[lt-2].slice(0,2),text:et[lt]}];break;case 49:this.$=[et[lt-1],{type:"addLinks",actor:et[lt-1].actor,text:et[lt]}];break;case 50:this.$=[et[lt-1],{type:"addALink",actor:et[lt-1].actor,text:et[lt]}];break;case 51:this.$=[et[lt-1],{type:"addProperties",actor:et[lt-1].actor,text:et[lt]}];break;case 52:this.$=[et[lt-1],{type:"addDetails",actor:et[lt-1].actor,text:et[lt]}];break;case 55:this.$=[et[lt-2],et[lt]];break;case 57:this.$=Ft.PLACEMENT.LEFTOF;break;case 58:this.$=Ft.PLACEMENT.RIGHTOF;break;case 59:this.$=[et[lt-4],et[lt-1],{type:"addMessage",from:et[lt-4].actor,to:et[lt-1].actor,signalType:et[lt-3],msg:et[lt]},{type:"activeStart",signalType:Ft.LINETYPE.ACTIVE_START,actor:et[lt-1]}];break;case 60:this.$=[et[lt-4],et[lt-1],{type:"addMessage",from:et[lt-4].actor,to:et[lt-1].actor,signalType:et[lt-3],msg:et[lt]},{type:"activeEnd",signalType:Ft.LINETYPE.ACTIVE_END,actor:et[lt-4]}];break;case 61:this.$=[et[lt-3],et[lt-1],{type:"addMessage",from:et[lt-3].actor,to:et[lt-1].actor,signalType:et[lt-2],msg:et[lt]}];break;case 62:this.$={type:"addParticipant",actor:et[lt]};break;case 63:this.$=Ft.LINETYPE.SOLID_OPEN;break;case 64:this.$=Ft.LINETYPE.DOTTED_OPEN;break;case 65:this.$=Ft.LINETYPE.SOLID;break;case 66:this.$=Ft.LINETYPE.DOTTED;break;case 67:this.$=Ft.LINETYPE.SOLID_CROSS;break;case 68:this.$=Ft.LINETYPE.DOTTED_CROSS;break;case 69:this.$=Ft.LINETYPE.SOLID_POINT;break;case 70:this.$=Ft.LINETYPE.DOTTED_POINT;break;case 71:this.$=Ft.parseMessage(et[lt].trim().substring(1));break;case 72:Ft.parseDirective("%%{","open_directive");break;case 73:Ft.parseDirective(et[lt],"type_directive");break;case 74:et[lt]=et[lt].trim().replace(/'/g,'"'),Ft.parseDirective(et[lt],"arg_directive");break;case 75:Ft.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:E,5:k,6:4,7:M,11:6,79:O},{1:[3]},{3:8,4:E,5:k,6:4,7:M,11:6,79:O},{3:9,4:E,5:k,6:4,7:M,11:6,79:O},{3:10,4:E,5:k,6:4,7:M,11:6,79:O},g([1,4,5,16,20,22,25,26,32,33,34,36,38,39,41,42,43,45,47,49,53,58,59,60,61,69,79],L,{8:11}),{12:12,80:[1,13]},{80:[2,72]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:F,5:P,6:41,9:14,10:16,11:6,16:$,17:42,20:W,21:20,22:K,25:nt,26:ht,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:at,36:st,38:St,39:qt,41:Nt,42:yt,43:Bt,45:kt,47:ft,49:rt,53:dt,58:G,59:Lt,60:V,61:Rt,69:Yt,79:O},{13:49,14:[1,50],82:Gt},g([14,82],[2,73]),g(ye,[2,6]),{6:41,10:52,11:6,16:$,17:42,20:W,21:20,22:K,25:nt,26:ht,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:at,36:st,38:St,39:qt,41:Nt,42:yt,43:Bt,45:kt,47:ft,49:rt,53:dt,58:G,59:Lt,60:V,61:Rt,69:Yt,79:O},g(ye,[2,8]),g(ye,[2,9]),{17:53,69:Yt},{17:54,69:Yt},{5:[1,55]},{5:[1,58],23:[1,56],24:[1,57]},{17:59,69:Yt},{17:60,69:Yt},{5:[1,61]},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},g(ye,[2,28]),g(ye,[2,29]),{35:[1,66]},{37:[1,67]},g(ye,[2,32]),{19:[1,68]},{19:[1,69]},{19:[1,70]},{19:[1,71]},{19:[1,72]},{19:[1,73]},{19:[1,74]},g(ye,[2,40]),{66:75,70:[1,76],71:[1,77],72:[1,78],73:[1,79],74:[1,80],75:[1,81],76:[1,82],77:[1,83]},{54:84,56:[1,85],64:[1,86],65:[1,87]},{17:88,69:Yt},{17:89,69:Yt},{17:90,69:Yt},{17:91,69:Yt},g([5,18,63,70,71,72,73,74,75,76,77,78],[2,62]),{5:[1,92]},{15:93,81:[1,94]},{5:[2,75]},g(ye,[2,7]),{5:[1,96],18:[1,95]},{5:[1,98],18:[1,97]},g(ye,[2,16]),{5:[1,100],23:[1,99]},{5:[1,101]},g(ye,[2,20]),{5:[1,102]},{5:[1,103]},g(ye,[2,23]),g(ye,[2,24]),g(ye,[2,25]),g(ye,[2,26]),g(ye,[2,27]),g(ye,[2,30]),g(ye,[2,31]),g(qe,L,{8:104}),g(qe,L,{8:105}),g(qe,L,{8:106}),g(xe,L,{44:107,8:108}),g(he,L,{46:109,8:110}),g(me,L,{48:111,8:112}),g(qe,L,{8:113}),{17:116,67:[1,114],68:[1,115],69:Yt},g(Ie,[2,63]),g(Ie,[2,64]),g(Ie,[2,65]),g(Ie,[2,66]),g(Ie,[2,67]),g(Ie,[2,68]),g(Ie,[2,69]),g(Ie,[2,70]),{17:117,69:Yt},{17:119,57:118,69:Yt},{69:[2,57]},{69:[2,58]},{55:120,78:Le},{55:122,78:Le},{55:123,78:Le},{55:124,78:Le},g(ve,[2,10]),{13:125,82:Gt},{82:[2,74]},{19:[1,126]},g(ye,[2,13]),{19:[1,127]},g(ye,[2,15]),{5:[1,128]},g(ye,[2,18]),g(ye,[2,19]),g(ye,[2,21]),g(ye,[2,22]),{4:F,5:P,6:41,9:14,10:16,11:6,16:$,17:42,20:W,21:20,22:K,25:nt,26:ht,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:at,36:st,38:St,39:qt,40:[1,129],41:Nt,42:yt,43:Bt,45:kt,47:ft,49:rt,53:dt,58:G,59:Lt,60:V,61:Rt,69:Yt,79:O},{4:F,5:P,6:41,9:14,10:16,11:6,16:$,17:42,20:W,21:20,22:K,25:nt,26:ht,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:at,36:st,38:St,39:qt,40:[1,130],41:Nt,42:yt,43:Bt,45:kt,47:ft,49:rt,53:dt,58:G,59:Lt,60:V,61:Rt,69:Yt,79:O},{4:F,5:P,6:41,9:14,10:16,11:6,16:$,17:42,20:W,21:20,22:K,25:nt,26:ht,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:at,36:st,38:St,39:qt,40:[1,131],41:Nt,42:yt,43:Bt,45:kt,47:ft,49:rt,53:dt,58:G,59:Lt,60:V,61:Rt,69:Yt,79:O},{40:[1,132]},{4:F,5:P,6:41,9:14,10:16,11:6,16:$,17:42,20:W,21:20,22:K,25:nt,26:ht,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:at,36:st,38:St,39:qt,40:[2,45],41:Nt,42:yt,43:Bt,45:kt,47:ft,49:rt,52:[1,133],53:dt,58:G,59:Lt,60:V,61:Rt,69:Yt,79:O},{40:[1,134]},{4:F,5:P,6:41,9:14,10:16,11:6,16:$,17:42,20:W,21:20,22:K,25:nt,26:ht,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:at,36:st,38:St,39:qt,40:[2,43],41:Nt,42:yt,43:Bt,45:kt,47:ft,49:rt,51:[1,135],53:dt,58:G,59:Lt,60:V,61:Rt,69:Yt,79:O},{40:[1,136]},{4:F,5:P,6:41,9:14,10:16,11:6,16:$,17:42,20:W,21:20,22:K,25:nt,26:ht,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:at,36:st,38:St,39:qt,40:[2,41],41:Nt,42:yt,43:Bt,45:kt,47:ft,49:rt,50:[1,137],53:dt,58:G,59:Lt,60:V,61:Rt,69:Yt,79:O},{4:F,5:P,6:41,9:14,10:16,11:6,16:$,17:42,20:W,21:20,22:K,25:nt,26:ht,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:at,36:st,38:St,39:qt,40:[1,138],41:Nt,42:yt,43:Bt,45:kt,47:ft,49:rt,53:dt,58:G,59:Lt,60:V,61:Rt,69:Yt,79:O},{17:139,69:Yt},{17:140,69:Yt},{55:141,78:Le},{55:142,78:Le},{55:143,78:Le},{63:[1,144],78:[2,56]},{5:[2,49]},{5:[2,71]},{5:[2,50]},{5:[2,51]},{5:[2,52]},{5:[1,145]},{5:[1,146]},{5:[1,147]},g(ye,[2,17]),g(ye,[2,33]),g(ye,[2,34]),g(ye,[2,35]),g(ye,[2,36]),{19:[1,148]},g(ye,[2,37]),{19:[1,149]},g(ye,[2,38]),{19:[1,150]},g(ye,[2,39]),{55:151,78:Le},{55:152,78:Le},{5:[2,61]},{5:[2,47]},{5:[2,48]},{17:153,69:Yt},g(ve,[2,11]),g(ye,[2,12]),g(ye,[2,14]),g(xe,L,{8:108,44:154}),g(he,L,{8:110,46:155}),g(me,L,{8:112,48:156}),{5:[2,59]},{5:[2,60]},{78:[2,55]},{40:[2,46]},{40:[2,44]},{40:[2,42]}],defaultActions:{7:[2,72],8:[2,1],9:[2,2],10:[2,3],51:[2,75],86:[2,57],87:[2,58],94:[2,74],120:[2,49],121:[2,71],122:[2,50],123:[2,51],124:[2,52],141:[2,61],142:[2,47],143:[2,48],151:[2,59],152:[2,60],153:[2,55],154:[2,46],155:[2,44],156:[2,42]},parseError:function($t,fe){if(!fe.recoverable){var oe=new Error($t);throw oe.hash=fe,oe}this.trace($t)},parse:function($t){var fe=this,oe=[0],Ft=[],Me=[null],et=[],Ne=this.table,lt="",Ae=0,ae=0,we=0,Ye=2,Pe=1,ln=et.slice.call(arguments,1),De=Object.create(this.lexer),Ke={yy:{}};for(var rn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rn)&&(Ke.yy[rn]=this.yy[rn]);De.setInput($t,Ke.yy),Ke.yy.lexer=De,Ke.yy.parser=this,De.yylloc===void 0&&(De.yylloc={});var on=De.yylloc;et.push(on);var Oe=De.options&&De.options.ranges;function dn(){var un;return typeof(un=Ft.pop()||De.lex()||Pe)!="number"&&(un instanceof Array&&(un=(Ft=un).pop()),un=fe.symbols_[un]||un),un}typeof Ke.yy.parseError=="function"?this.parseError=Ke.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var mn,We,$e,Ue,Qe,qn,zt,Dn,Ht,gn={};;){if($e=oe[oe.length-1],this.defaultActions[$e]?Ue=this.defaultActions[$e]:(mn==null&&(mn=dn()),Ue=Ne[$e]&&Ne[$e][mn]),Ue===void 0||!Ue.length||!Ue[0]){var In="";for(qn in Ht=[],Ne[$e])this.terminals_[qn]&&qn>Ye&&Ht.push("'"+this.terminals_[qn]+"'");In=De.showPosition?"Parse error on line "+(Ae+1)+`: `+De.showPosition()+` Expecting `+Ht.join(", ")+", got '"+(this.terminals_[mn]||mn)+"'":"Parse error on line "+(Ae+1)+": Unexpected "+(mn==Pe?"end of input":"'"+(this.terminals_[mn]||mn)+"'"),this.parseError(In,{text:De.match,token:this.terminals_[mn]||mn,line:De.yylineno,loc:on,expected:Ht})}if(Ue[0]instanceof Array&&Ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$e+", token: "+mn);switch(Ue[0]){case 1:oe.push(mn),Me.push(De.yytext),et.push(De.yylloc),oe.push(Ue[1]),mn=null,We?(mn=We,We=null):(ae=De.yyleng,lt=De.yytext,Ae=De.yylineno,on=De.yylloc,we>0);break;case 2:if(zt=this.productions_[Ue[1]][1],gn.$=Me[Me.length-zt],gn._$={first_line:et[et.length-(zt||1)].first_line,last_line:et[et.length-1].last_line,first_column:et[et.length-(zt||1)].first_column,last_column:et[et.length-1].last_column},Oe&&(gn._$.range=[et[et.length-(zt||1)].range[0],et[et.length-1].range[1]]),(Qe=this.performAction.apply(gn,[lt,ae,Ae,Ke.yy,Ue[1],Me,et].concat(ln)))!==void 0)return Qe;zt&&(oe=oe.slice(0,-1*zt*2),Me=Me.slice(0,-1*zt),et=et.slice(0,-1*zt)),oe.push(this.productions_[Ue[1]][0]),Me.push(gn.$),et.push(gn._$),Dn=Ne[oe[oe.length-2]][oe[oe.length-1]],oe.push(Dn);break;case 3:return!0}}return!0}},be={EOF:1,parseError:function($t,fe){if(!this.yy.parser)throw new Error($t);this.yy.parser.parseError($t,fe)},setInput:function($t,fe){return this.yy=fe||this.yy||{},this._input=$t,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 $t=this._input[0];return this.yytext+=$t,this.yyleng++,this.offset++,this.match+=$t,this.matched+=$t,$t.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),$t},unput:function($t){var fe=$t.length,oe=$t.split(/(?:\r\n?|\n)/g);this._input=$t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-fe),this.offset-=fe;var Ft=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 Me=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===Ft.length?this.yylloc.first_column:0)+Ft[Ft.length-oe.length].length-oe[0].length:this.yylloc.first_column-fe},this.options.ranges&&(this.yylloc.range=[Me[0],Me[0]+this.yyleng-fe]),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($t){this.unput(this.match.slice($t))},pastInput:function(){var $t=this.matched.substr(0,this.matched.length-this.match.length);return($t.length>20?"...":"")+$t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var $t=this.match;return $t.length<20&&($t+=this._input.substr(0,20-$t.length)),($t.substr(0,20)+($t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var $t=this.pastInput(),fe=new Array($t.length+1).join("-");return $t+this.upcomingInput()+` `+fe+"^"},test_match:function($t,fe){var oe,Ft,Me;if(this.options.backtrack_lexer&&(Me={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&&(Me.yylloc.range=this.yylloc.range.slice(0))),(Ft=$t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ft.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ft?Ft[Ft.length-1].length-Ft[Ft.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+$t[0].length},this.yytext+=$t[0],this.match+=$t[0],this.matches=$t,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($t[0].length),this.matched+=$t[0],oe=this.performAction.call(this,this.yy,this,fe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),oe)return oe;if(this._backtrack){for(var et in Me)this[et]=Me[et];return!1}return!1},next:function(){if(this.done)return this.EOF;var $t,fe,oe,Ft;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Me=this._currentRules(),et=0;etfe[0].length)){if(fe=oe,Ft=et,this.options.backtrack_lexer){if(($t=this.test_match(oe,Me[et]))!==!1)return $t;if(this._backtrack){fe=!1;continue}return!1}if(!this.options.flex)break}return fe?($t=this.test_match(fe,Me[Ft]))!==!1&&$t: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($t){this.conditionStack.push($t)},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($t){return($t=this.conditionStack.length-1-Math.abs($t||0))>=0?this.conditionStack[$t]:"INITIAL"},pushState:function($t){this.begin($t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function($t,fe,oe,Ft){switch(oe){case 0:return this.begin("open_directive"),79;case 1:return this.begin("type_directive"),80;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),82;case 4:return 81;case 5:case 52:case 65:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 23;case 12:return this.begin("ID"),16;case 13:return this.begin("ID"),20;case 14:return fe.yytext=fe.yytext.trim(),this.begin("ALIAS"),69;case 15:return this.popState(),this.popState(),this.begin("LINE"),18;case 16:return this.popState(),this.popState(),5;case 17:return this.begin("LINE"),39;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),52;case 22:return this.begin("LINE"),45;case 23:return this.begin("LINE"),51;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),50;case 26:return this.begin("LINE"),49;case 27:return this.popState(),19;case 28:return 40;case 29:return 64;case 30:return 65;case 31:return 58;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 56;case 36:return 53;case 37:return this.begin("ID"),25;case 38:return this.begin("ID"),26;case 39:return 32;case 40:return 33;case 41:return this.begin("acc_title"),34;case 42:return this.popState(),"acc_title_value";case 43:return this.begin("acc_descr"),36;case 44:return this.popState(),"acc_descr_value";case 45:this.begin("acc_descr_multiline");break;case 46:this.popState();break;case 47:return"acc_descr_multiline_value";case 48:return 7;case 49:return 22;case 50:return 24;case 51:return 63;case 53:return fe.yytext=fe.yytext.trim(),69;case 54:return 72;case 55:return 73;case 56:return 70;case 57:return 71;case 58:return 74;case 59:return 75;case 60:return 76;case 61:return 77;case 62:return 78;case 63:return 67;case 64:return 68;case 66:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \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,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\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\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\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:{acc_descr_multiline:{rules:[46,47],inclusive:!1},acc_descr:{rules:[44],inclusive:!1},acc_title:{rules:[42],inclusive:!1},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,14],inclusive:!1},ALIAS:{rules:[7,8,15,16],inclusive:!1},LINE:{rules:[7,8,27],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,45,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66],inclusive:!0}}};function Ge(){this.yy={}}return kn.lexer=be,Ge.prototype=kn,kn.Parser=Ge,new Ge}();T.parser=b,T.Parser=b.Parser,T.parse=function(){return b.parse.apply(b,arguments)},T.main=function(g){g[1]||(console.log("Usage: "+g[0]+" FILE"),process.exit(1));var E=f(1993).readFileSync(f(6470).normalize(g[1]),"utf8");return T.parser.parse(E)},f.c[f.s]===p&&T.main(process.argv.slice(1))},3584:(p,T,f)=>{p=f.nmd(p);var b=function(){var g=function(xe,he,me,Ie){for(me=me||{},Ie=xe.length;Ie--;me[xe[Ie]]=he);return me},E=[1,2],k=[1,3],M=[1,5],O=[1,7],L=[2,5],F=[1,15],P=[1,17],$=[1,19],W=[1,20],K=[1,21],nt=[1,22],ht=[1,33],J=[1,23],bt=[1,24],at=[1,25],st=[1,26],St=[1,27],qt=[1,30],Nt=[1,31],yt=[1,32],Bt=[1,35],kt=[1,36],ft=[1,37],rt=[1,38],dt=[1,34],G=[1,41],Lt=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],V=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Rt=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Yt=[4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Gt={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,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,openDirective:36,typeDirective:37,closeDirective:38,":":39,argDirective:40,direction_tb:41,direction_bt:42,direction_rl:43,direction_lr:44,eol:45,";":46,EDGE_STATE:47,left_of:48,right_of:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,$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",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",39:":",41:"direction_tb",42:"direction_bt",43:"direction_rl",44:"direction_lr",46:";",47:"EDGE_STATE",48:"left_of",49:"right_of",50:"open_directive",51:"type_directive",52:"arg_directive",53:"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],[10,2],[10,2],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[45,1],[45,1],[11,1],[11,1],[28,1],[28,1],[36,1],[37,1],[40,1],[38,1]],performAction:function(xe,he,me,Ie,Le,ve,kn){var be=ve.length-1;switch(Le){case 4:return Ie.setRootDoc(ve[be]),ve[be];case 5:this.$=[];break;case 6:ve[be]!="nl"&&(ve[be-1].push(ve[be]),this.$=ve[be-1]);break;case 7:case 8:case 39:case 40:this.$=ve[be];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:ve[be],type:"default",description:""};break;case 11:this.$={stmt:"state",id:ve[be-1],type:"default",description:Ie.trimColon(ve[be])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:ve[be-2],type:"default",description:""},state2:{stmt:"state",id:ve[be],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:ve[be-3],type:"default",description:""},state2:{stmt:"state",id:ve[be-1],type:"default",description:""},description:ve[be].substr(1).trim()};break;case 17:this.$={stmt:"state",id:ve[be-3],type:"default",description:"",doc:ve[be-1]};break;case 18:var Ge=ve[be],$t=ve[be-2].trim();if(ve[be].match(":")){var fe=ve[be].split(":");Ge=fe[0],$t=[$t,fe[1]]}this.$={stmt:"state",id:Ge,type:"default",description:$t};break;case 19:this.$={stmt:"state",id:ve[be-3],type:"default",description:ve[be-5],doc:ve[be-1]};break;case 20:this.$={stmt:"state",id:ve[be],type:"fork"};break;case 21:this.$={stmt:"state",id:ve[be],type:"join"};break;case 22:this.$={stmt:"state",id:ve[be],type:"choice"};break;case 23:this.$={stmt:"state",id:Ie.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:ve[be-1].trim(),note:{position:ve[be-2].trim(),text:ve[be].trim()}};break;case 28:this.$=ve[be].trim(),Ie.setAccTitle(this.$);break;case 29:case 30:this.$=ve[be].trim(),Ie.setAccDescription(this.$);break;case 33:Ie.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 34:Ie.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 35:Ie.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 36:Ie.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 43:Ie.parseDirective("%%{","open_directive");break;case 44:Ie.parseDirective(ve[be],"type_directive");break;case 45:ve[be]=ve[be].trim().replace(/'/g,'"'),Ie.parseDirective(ve[be],"arg_directive");break;case 46:Ie.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:E,5:k,6:4,7:M,36:6,50:O},{1:[3]},{3:8,4:E,5:k,6:4,7:M,36:6,50:O},{3:9,4:E,5:k,6:4,7:M,36:6,50:O},{3:10,4:E,5:k,6:4,7:M,36:6,50:O},g([1,4,5,14,15,17,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],L,{8:11}),{37:12,51:[1,13]},{51:[2,43]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:F,5:P,6:28,9:14,10:16,11:18,14:$,15:W,17:K,20:nt,22:ht,23:J,24:bt,25:at,26:st,27:St,30:29,31:qt,33:Nt,35:yt,36:6,41:Bt,42:kt,43:ft,44:rt,47:dt,50:O},{38:39,39:[1,40],53:G},g([39,53],[2,44]),g(Lt,[2,6]),{6:28,10:42,11:18,14:$,15:W,17:K,20:nt,22:ht,23:J,24:bt,25:at,26:st,27:St,30:29,31:qt,33:Nt,35:yt,36:6,41:Bt,42:kt,43:ft,44:rt,47:dt,50:O},g(Lt,[2,8]),g(Lt,[2,9]),g(Lt,[2,10],{12:[1,43],13:[1,44]}),g(Lt,[2,14]),{16:[1,45]},g(Lt,[2,16],{18:[1,46]}),{21:[1,47]},g(Lt,[2,20]),g(Lt,[2,21]),g(Lt,[2,22]),g(Lt,[2,23]),{28:48,29:[1,49],48:[1,50],49:[1,51]},g(Lt,[2,26]),g(Lt,[2,27]),{32:[1,52]},{34:[1,53]},g(Lt,[2,30]),g(V,[2,39]),g(V,[2,40]),g(Lt,[2,33]),g(Lt,[2,34]),g(Lt,[2,35]),g(Lt,[2,36]),g(Rt,[2,31]),{40:54,52:[1,55]},g(Rt,[2,46]),g(Lt,[2,7]),g(Lt,[2,11]),{11:56,22:ht,47:dt},g(Lt,[2,15]),g(Yt,L,{8:57}),{22:[1,58]},{22:[1,59]},{21:[1,60]},{22:[2,41]},{22:[2,42]},g(Lt,[2,28]),g(Lt,[2,29]),{38:61,53:G},{53:[2,45]},g(Lt,[2,12],{12:[1,62]}),{4:F,5:P,6:28,9:14,10:16,11:18,14:$,15:W,17:K,19:[1,63],20:nt,22:ht,23:J,24:bt,25:at,26:st,27:St,30:29,31:qt,33:Nt,35:yt,36:6,41:Bt,42:kt,43:ft,44:rt,47:dt,50:O},g(Lt,[2,18],{18:[1,64]}),{29:[1,65]},{22:[1,66]},g(Rt,[2,32]),g(Lt,[2,13]),g(Lt,[2,17]),g(Yt,L,{8:67}),g(Lt,[2,24]),g(Lt,[2,25]),{4:F,5:P,6:28,9:14,10:16,11:18,14:$,15:W,17:K,19:[1,68],20:nt,22:ht,23:J,24:bt,25:at,26:st,27:St,30:29,31:qt,33:Nt,35:yt,36:6,41:Bt,42:kt,43:ft,44:rt,47:dt,50:O},g(Lt,[2,19])],defaultActions:{7:[2,43],8:[2,1],9:[2,2],10:[2,3],50:[2,41],51:[2,42],55:[2,45]},parseError:function(xe,he){if(!he.recoverable){var me=new Error(xe);throw me.hash=he,me}this.trace(xe)},parse:function(xe){var he=this,me=[0],Ie=[],Le=[null],ve=[],kn=this.table,be="",Ge=0,$t=0,fe=0,oe=2,Ft=1,Me=ve.slice.call(arguments,1),et=Object.create(this.lexer),Ne={yy:{}};for(var lt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,lt)&&(Ne.yy[lt]=this.yy[lt]);et.setInput(xe,Ne.yy),Ne.yy.lexer=et,Ne.yy.parser=this,et.yylloc===void 0&&(et.yylloc={});var Ae=et.yylloc;ve.push(Ae);var ae=et.options&&et.options.ranges;function we(){var $e;return typeof($e=Ie.pop()||et.lex()||Ft)!="number"&&($e instanceof Array&&($e=(Ie=$e).pop()),$e=he.symbols_[$e]||$e),$e}typeof Ne.yy.parseError=="function"?this.parseError=Ne.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ye,Pe,ln,De,Ke,rn,on,Oe,dn,mn={};;){if(ln=me[me.length-1],this.defaultActions[ln]?De=this.defaultActions[ln]:(Ye==null&&(Ye=we()),De=kn[ln]&&kn[ln][Ye]),De===void 0||!De.length||!De[0]){var We="";for(rn in dn=[],kn[ln])this.terminals_[rn]&&rn>oe&&dn.push("'"+this.terminals_[rn]+"'");We=et.showPosition?"Parse error on line "+(Ge+1)+`: `+et.showPosition()+` Expecting `+dn.join(", ")+", got '"+(this.terminals_[Ye]||Ye)+"'":"Parse error on line "+(Ge+1)+": Unexpected "+(Ye==Ft?"end of input":"'"+(this.terminals_[Ye]||Ye)+"'"),this.parseError(We,{text:et.match,token:this.terminals_[Ye]||Ye,line:et.yylineno,loc:Ae,expected:dn})}if(De[0]instanceof Array&&De.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ln+", token: "+Ye);switch(De[0]){case 1:me.push(Ye),Le.push(et.yytext),ve.push(et.yylloc),me.push(De[1]),Ye=null,Pe?(Ye=Pe,Pe=null):($t=et.yyleng,be=et.yytext,Ge=et.yylineno,Ae=et.yylloc,fe>0);break;case 2:if(on=this.productions_[De[1]][1],mn.$=Le[Le.length-on],mn._$={first_line:ve[ve.length-(on||1)].first_line,last_line:ve[ve.length-1].last_line,first_column:ve[ve.length-(on||1)].first_column,last_column:ve[ve.length-1].last_column},ae&&(mn._$.range=[ve[ve.length-(on||1)].range[0],ve[ve.length-1].range[1]]),(Ke=this.performAction.apply(mn,[be,$t,Ge,Ne.yy,De[1],Le,ve].concat(Me)))!==void 0)return Ke;on&&(me=me.slice(0,-1*on*2),Le=Le.slice(0,-1*on),ve=ve.slice(0,-1*on)),me.push(this.productions_[De[1]][0]),Le.push(mn.$),ve.push(mn._$),Oe=kn[me[me.length-2]][me[me.length-1]],me.push(Oe);break;case 3:return!0}}return!0}},ye={EOF:1,parseError:function(xe,he){if(!this.yy.parser)throw new Error(xe);this.yy.parser.parseError(xe,he)},setInput:function(xe,he){return this.yy=he||this.yy||{},this._input=xe,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 xe=this._input[0];return this.yytext+=xe,this.yyleng++,this.offset++,this.match+=xe,this.matched+=xe,xe.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),xe},unput:function(xe){var he=xe.length,me=xe.split(/(?:\r\n?|\n)/g);this._input=xe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var Ie=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),me.length-1&&(this.yylineno-=me.length-1);var Le=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:me?(me.length===Ie.length?this.yylloc.first_column:0)+Ie[Ie.length-me.length].length-me[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[Le[0],Le[0]+this.yyleng-he]),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(xe){this.unput(this.match.slice(xe))},pastInput:function(){var xe=this.matched.substr(0,this.matched.length-this.match.length);return(xe.length>20?"...":"")+xe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var xe=this.match;return xe.length<20&&(xe+=this._input.substr(0,20-xe.length)),(xe.substr(0,20)+(xe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var xe=this.pastInput(),he=new Array(xe.length+1).join("-");return xe+this.upcomingInput()+` `+he+"^"},test_match:function(xe,he){var me,Ie,Le;if(this.options.backtrack_lexer&&(Le={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&&(Le.yylloc.range=this.yylloc.range.slice(0))),(Ie=xe[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ie.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ie?Ie[Ie.length-1].length-Ie[Ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+xe[0].length},this.yytext+=xe[0],this.match+=xe[0],this.matches=xe,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(xe[0].length),this.matched+=xe[0],me=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),me)return me;if(this._backtrack){for(var ve in Le)this[ve]=Le[ve];return!1}return!1},next:function(){if(this.done)return this.EOF;var xe,he,me,Ie;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Le=this._currentRules(),ve=0;vehe[0].length)){if(he=me,Ie=ve,this.options.backtrack_lexer){if((xe=this.test_match(me,Le[ve]))!==!1)return xe;if(this._backtrack){he=!1;continue}return!1}if(!this.options.flex)break}return he?(xe=this.test_match(he,Le[Ie]))!==!1&&xe: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(xe){this.conditionStack.push(xe)},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(xe){return(xe=this.conditionStack.length-1-Math.abs(xe||0))>=0?this.conditionStack[xe]:"INITIAL"},pushState:function(xe){this.begin(xe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(xe,he,me,Ie){switch(me){case 0:case 33:return 41;case 1:case 34:return 42;case 2:case 35:return 43;case 3:case 36:return 44;case 4:return this.begin("open_directive"),50;case 5:return this.begin("type_directive"),51;case 6:return this.popState(),this.begin("arg_directive"),39;case 7:return this.popState(),this.popState(),53;case 8:return 52;case 9:case 10:case 12:case 13:case 14:case 15:case 46:case 52:break;case 11:case 66:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 24:case 40:case 43:this.popState();break;case 19:return this.begin("acc_title"),31;case 20:return this.popState(),"acc_title_value";case 21:return this.begin("acc_descr"),33;case 22:return this.popState(),"acc_descr_value";case 23:this.begin("acc_descr_multiline");break;case 25:return"acc_descr_multiline_value";case 26:this.pushState("STATE");break;case 27:case 30:return this.popState(),he.yytext=he.yytext.slice(0,-8).trim(),23;case 28:case 31:return this.popState(),he.yytext=he.yytext.slice(0,-8).trim(),24;case 29:case 32:return this.popState(),he.yytext=he.yytext.slice(0,-10).trim(),25;case 37:this.begin("STATE_STRING");break;case 38:return this.popState(),this.pushState("STATE_ID"),"AS";case 39:case 54:return this.popState(),"ID";case 41:return"STATE_DESCR";case 42:return 17;case 44:return this.popState(),this.pushState("struct"),18;case 45:return this.popState(),19;case 47:return this.begin("NOTE"),27;case 48:return this.popState(),this.pushState("NOTE_ID"),48;case 49:return this.popState(),this.pushState("NOTE_ID"),49;case 50:this.popState(),this.pushState("FLOATING_NOTE");break;case 51:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 53:return"NOTE_TEXT";case 55:return this.popState(),this.pushState("NOTE_TEXT"),22;case 56:return this.popState(),he.yytext=he.yytext.substr(2).trim(),29;case 57:return this.popState(),he.yytext=he.yytext.slice(0,-8).trim(),29;case 58:case 59:return 7;case 60:return 14;case 61:return 47;case 62:return 22;case 63:return he.yytext=he.yytext.trim(),12;case 64:return 13;case 65:return 26;case 67: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,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/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,26,33,34,35,36,45,46,47,61,62,63,64,65],inclusive:!1},FLOATING_NOTE_ID:{rules:[54],inclusive:!1},FLOATING_NOTE:{rules:[51,52,53],inclusive:!1},NOTE_TEXT:{rules:[56,57],inclusive:!1},NOTE_ID:{rules:[55],inclusive:!1},NOTE:{rules:[48,49,50],inclusive:!1},acc_descr_multiline:{rules:[24,25],inclusive:!1},acc_descr:{rules:[22],inclusive:!1},acc_title:{rules:[20],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[39],inclusive:!1},STATE_STRING:{rules:[40,41],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,27,28,29,30,31,32,37,38,42,43,44],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,21,23,26,44,47,58,59,60,61,62,63,64,66,67],inclusive:!0}}};function qe(){this.yy={}}return Gt.lexer=ye,qe.prototype=Gt,Gt.Parser=qe,new qe}();T.parser=b,T.Parser=b.Parser,T.parse=function(){return b.parse.apply(b,arguments)},T.main=function(g){g[1]||(console.log("Usage: "+g[0]+" FILE"),process.exit(1));var E=f(3069).readFileSync(f(6470).normalize(g[1]),"utf8");return T.parser.parse(E)},f.c[f.s]===p&&T.main(process.argv.slice(1))},9763:(p,T,f)=>{p=f.nmd(p);var b=function(){var g=function(at,st,St,qt){for(St=St||{},qt=at.length;qt--;St[at[qt]]=st);return St},E=[1,2],k=[1,5],M=[6,9,11,17,18,20,22,23,24,26],O=[1,15],L=[1,16],F=[1,17],P=[1,18],$=[1,19],W=[1,20],K=[1,24],nt=[4,6,9,11,17,18,20,22,23,24,26],ht={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,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"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,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(at,st,St,qt,Nt,yt,Bt){var kt=yt.length-1;switch(Nt){case 1:return yt[kt-1];case 3:case 7:case 8:this.$=[];break;case 4:yt[kt-1].push(yt[kt]),this.$=yt[kt-1];break;case 5:case 6:this.$=yt[kt];break;case 11:qt.setDiagramTitle(yt[kt].substr(6)),this.$=yt[kt].substr(6);break;case 12:this.$=yt[kt].trim(),qt.setAccTitle(this.$);break;case 13:case 14:this.$=yt[kt].trim(),qt.setAccDescription(this.$);break;case 15:qt.addSection(yt[kt].substr(8)),this.$=yt[kt].substr(8);break;case 16:qt.addTask(yt[kt-1],yt[kt]),this.$="task";break;case 18:qt.parseDirective("%%{","open_directive");break;case 19:qt.parseDirective(yt[kt],"type_directive");break;case 20:yt[kt]=yt[kt].trim().replace(/'/g,'"'),qt.parseDirective(yt[kt],"arg_directive");break;case 21:qt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:E,7:3,12:4,26:k},{1:[3]},g(M,[2,3],{5:6}),{3:7,4:E,7:3,12:4,26:k},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:O,18:L,20:F,22:P,23:$,24:W,26:k},{1:[2,2]},{14:22,15:[1,23],29:K},g([15,29],[2,19]),g(M,[2,8],{1:[2,1]}),g(M,[2,4]),{7:21,10:25,12:4,17:O,18:L,20:F,22:P,23:$,24:W,26:k},g(M,[2,6]),g(M,[2,7]),g(M,[2,11]),{19:[1,26]},{21:[1,27]},g(M,[2,14]),g(M,[2,15]),{25:[1,28]},g(M,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},g(M,[2,5]),g(M,[2,12]),g(M,[2,13]),g(M,[2,16]),g(nt,[2,9]),{14:32,29:K},{29:[2,20]},{11:[1,33]},g(nt,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(at,st){if(!st.recoverable){var St=new Error(at);throw St.hash=st,St}this.trace(at)},parse:function(at){var st=this,St=[0],qt=[],Nt=[null],yt=[],Bt=this.table,kt="",ft=0,rt=0,dt=0,G=2,Lt=1,V=yt.slice.call(arguments,1),Rt=Object.create(this.lexer),Yt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(Yt.yy[Gt]=this.yy[Gt]);Rt.setInput(at,Yt.yy),Yt.yy.lexer=Rt,Yt.yy.parser=this,Rt.yylloc===void 0&&(Rt.yylloc={});var ye=Rt.yylloc;yt.push(ye);var qe=Rt.options&&Rt.options.ranges;function xe(){var Ft;return typeof(Ft=qt.pop()||Rt.lex()||Lt)!="number"&&(Ft instanceof Array&&(Ft=(qt=Ft).pop()),Ft=st.symbols_[Ft]||Ft),Ft}typeof Yt.yy.parseError=="function"?this.parseError=Yt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var he,me,Ie,Le,ve,kn,be,Ge,$t,fe={};;){if(Ie=St[St.length-1],this.defaultActions[Ie]?Le=this.defaultActions[Ie]:(he==null&&(he=xe()),Le=Bt[Ie]&&Bt[Ie][he]),Le===void 0||!Le.length||!Le[0]){var oe="";for(kn in $t=[],Bt[Ie])this.terminals_[kn]&&kn>G&&$t.push("'"+this.terminals_[kn]+"'");oe=Rt.showPosition?"Parse error on line "+(ft+1)+`: `+Rt.showPosition()+` Expecting `+$t.join(", ")+", got '"+(this.terminals_[he]||he)+"'":"Parse error on line "+(ft+1)+": Unexpected "+(he==Lt?"end of input":"'"+(this.terminals_[he]||he)+"'"),this.parseError(oe,{text:Rt.match,token:this.terminals_[he]||he,line:Rt.yylineno,loc:ye,expected:$t})}if(Le[0]instanceof Array&&Le.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ie+", token: "+he);switch(Le[0]){case 1:St.push(he),Nt.push(Rt.yytext),yt.push(Rt.yylloc),St.push(Le[1]),he=null,me?(he=me,me=null):(rt=Rt.yyleng,kt=Rt.yytext,ft=Rt.yylineno,ye=Rt.yylloc,dt>0);break;case 2:if(be=this.productions_[Le[1]][1],fe.$=Nt[Nt.length-be],fe._$={first_line:yt[yt.length-(be||1)].first_line,last_line:yt[yt.length-1].last_line,first_column:yt[yt.length-(be||1)].first_column,last_column:yt[yt.length-1].last_column},qe&&(fe._$.range=[yt[yt.length-(be||1)].range[0],yt[yt.length-1].range[1]]),(ve=this.performAction.apply(fe,[kt,rt,ft,Yt.yy,Le[1],Nt,yt].concat(V)))!==void 0)return ve;be&&(St=St.slice(0,-1*be*2),Nt=Nt.slice(0,-1*be),yt=yt.slice(0,-1*be)),St.push(this.productions_[Le[1]][0]),Nt.push(fe.$),yt.push(fe._$),Ge=Bt[St[St.length-2]][St[St.length-1]],St.push(Ge);break;case 3:return!0}}return!0}},J={EOF:1,parseError:function(at,st){if(!this.yy.parser)throw new Error(at);this.yy.parser.parseError(at,st)},setInput:function(at,st){return this.yy=st||this.yy||{},this._input=at,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 at=this._input[0];return this.yytext+=at,this.yyleng++,this.offset++,this.match+=at,this.matched+=at,at.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),at},unput:function(at){var st=at.length,St=at.split(/(?:\r\n?|\n)/g);this._input=at+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-st),this.offset-=st;var qt=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),St.length-1&&(this.yylineno-=St.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:St?(St.length===qt.length?this.yylloc.first_column:0)+qt[qt.length-St.length].length-St[0].length:this.yylloc.first_column-st},this.options.ranges&&(this.yylloc.range=[Nt[0],Nt[0]+this.yyleng-st]),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(at){this.unput(this.match.slice(at))},pastInput:function(){var at=this.matched.substr(0,this.matched.length-this.match.length);return(at.length>20?"...":"")+at.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var at=this.match;return at.length<20&&(at+=this._input.substr(0,20-at.length)),(at.substr(0,20)+(at.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var at=this.pastInput(),st=new Array(at.length+1).join("-");return at+this.upcomingInput()+` `+st+"^"},test_match:function(at,st){var St,qt,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))),(qt=at[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=qt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:qt?qt[qt.length-1].length-qt[qt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+at[0].length},this.yytext+=at[0],this.match+=at[0],this.matches=at,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(at[0].length),this.matched+=at[0],St=this.performAction.call(this,this.yy,this,st,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),St)return St;if(this._backtrack){for(var yt in Nt)this[yt]=Nt[yt];return!1}return!1},next:function(){if(this.done)return this.EOF;var at,st,St,qt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Nt=this._currentRules(),yt=0;ytst[0].length)){if(st=St,qt=yt,this.options.backtrack_lexer){if((at=this.test_match(St,Nt[yt]))!==!1)return at;if(this._backtrack){st=!1;continue}return!1}if(!this.options.flex)break}return st?(at=this.test_match(st,Nt[qt]))!==!1&&at: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(at){this.conditionStack.push(at)},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(at){return(at=this.conditionStack.length-1-Math.abs(at||0))>=0?this.conditionStack[at]:"INITIAL"},pushState:function(at){this.begin(at)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(at,st,St,qt){switch(St){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24: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,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/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},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};function bt(){this.yy={}}return ht.lexer=J,bt.prototype=ht,ht.Parser=bt,new bt}();T.parser=b,T.Parser=b.Parser,T.parse=function(){return b.parse.apply(b,arguments)},T.main=function(g){g[1]||(console.log("Usage: "+g[0]+" FILE"),process.exit(1));var E=f(9143).readFileSync(f(6470).normalize(g[1]),"utf8");return T.parser.parse(E)},f.c[f.s]===p&&T.main(process.argv.slice(1))},7967:(p,T)=>{T.N=void 0;var f=/^([^\w]*)(javascript|data|vbscript)/im,b=/&#(\w+)(^\w|;)?/g,g=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,E=/^([^:]+):/gm,k=[".","/"];T.N=function(M){var O,L=(O=M||"",O.replace(b,function($,W){return String.fromCharCode(W)})).replace(g,"").trim();if(!L)return"about:blank";if(function($){return k.indexOf($[0])>-1}(L))return L;var F=L.match(E);if(!F)return L;var P=F[0];return f.test(P)?"about:blank":L}},3841:p=>{p.exports=function(T,f){return T.intersect(f)}},1689:(p,T,f)=>{f.d(T,{Z:()=>Uv});var b=f(1941),g=f.n(b),E={debug:1,info:2,warn:3,error:4,fatal:5},k={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},M=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(i)&&(i=i.toLowerCase(),E[i]!==void 0&&(i=E[i])),k.trace=function(){},k.debug=function(){},k.info=function(){},k.warn=function(){},k.error=function(){},k.fatal=function(){},i<=E.fatal&&(k.fatal=console.error?console.error.bind(console,O("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",O("FATAL"))),i<=E.error&&(k.error=console.error?console.error.bind(console,O("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",O("ERROR"))),i<=E.warn&&(k.warn=console.warn?console.warn.bind(console,O("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",O("WARN"))),i<=E.info&&(k.info=console.info?console.info.bind(console,O("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",O("INFO"))),i<=E.debug&&(k.debug=console.debug?console.debug.bind(console,O("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",O("DEBUG")))},O=function(i){var a=g()().format("ss.SSS");return"%c".concat(a," : ").concat(i," : ")};function L(i,a){let s;if(a===void 0)for(const u of i)u!=null&&(s=u)&&(s=u);else{let u=-1;for(let d of i)(d=a(d,++u,i))!=null&&(s=d)&&(s=d)}return s}function F(i,a){let s;if(a===void 0)for(const u of i)u!=null&&(s>u||s===void 0&&u>=u)&&(s=u);else{let u=-1;for(let d of i)(d=a(d,++u,i))!=null&&(s>d||s===void 0&&d>=d)&&(s=d)}return s}function P(i){return i}var $=1e-6;function W(i){return"translate("+i+",0)"}function K(i){return"translate(0,"+i+")"}function nt(i){return a=>+i(a)}function ht(i,a){return a=Math.max(0,i.bandwidth()-2*a)/2,i.round()&&(a=Math.round(a)),s=>+i(s)+a}function J(){return!this.__axis}function bt(i,a){var s=[],u=null,d=null,_=6,m=6,x=3,C=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,A=i===1||i===4?-1:1,B=i===4||i===2?"x":"y",Y=i===1||i===3?W:K;function j(X){var vt=u==null?a.ticks?a.ticks.apply(a,s):a.domain():u,ut=d==null?a.tickFormat?a.tickFormat.apply(a,s):P:d,wt=Math.max(_,0)+x,xt=a.range(),Dt=+xt[0]+C,At=+xt[xt.length-1]+C,Zt=(a.bandwidth?ht:nt)(a.copy(),C),se=X.selection?X.selection():X,jt=se.selectAll(".domain").data([null]),ne=se.selectAll(".tick").data(vt,a).order(),ie=ne.exit(),Ot=ne.enter().append("g").attr("class","tick"),It=ne.select("line"),Ct=ne.select("text");jt=jt.merge(jt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ne=ne.merge(Ot),It=It.merge(Ot.append("line").attr("stroke","currentColor").attr(B+"2",A*_)),Ct=Ct.merge(Ot.append("text").attr("fill","currentColor").attr(B,A*wt).attr("dy",i===1?"0em":i===3?"0.71em":"0.32em")),X!==se&&(jt=jt.transition(X),ne=ne.transition(X),It=It.transition(X),Ct=Ct.transition(X),ie=ie.transition(X).attr("opacity",$).attr("transform",function(mt){return isFinite(mt=Zt(mt))?Y(mt+C):this.getAttribute("transform")}),Ot.attr("opacity",$).attr("transform",function(mt){var Ut=this.parentNode.__axis;return Y((Ut&&isFinite(Ut=Ut(mt))?Ut:Zt(mt))+C)})),ie.remove(),jt.attr("d",i===4||i===2?m?"M"+A*m+","+Dt+"H"+C+"V"+At+"H"+A*m:"M"+C+","+Dt+"V"+At:m?"M"+Dt+","+A*m+"V"+C+"H"+At+"V"+A*m:"M"+Dt+","+C+"H"+At),ne.attr("opacity",1).attr("transform",function(mt){return Y(Zt(mt)+C)}),It.attr(B+"2",A*_),Ct.attr(B,A*wt).text(ut),se.filter(J).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",i===2?"start":i===4?"end":"middle"),se.each(function(){this.__axis=Zt})}return j.scale=function(X){return arguments.length?(a=X,j):a},j.ticks=function(){return s=Array.from(arguments),j},j.tickArguments=function(X){return arguments.length?(s=X==null?[]:Array.from(X),j):s.slice()},j.tickValues=function(X){return arguments.length?(u=X==null?null:Array.from(X),j):u&&u.slice()},j.tickFormat=function(X){return arguments.length?(d=X,j):d},j.tickSize=function(X){return arguments.length?(_=m=+X,j):_},j.tickSizeInner=function(X){return arguments.length?(_=+X,j):_},j.tickSizeOuter=function(X){return arguments.length?(m=+X,j):m},j.tickPadding=function(X){return arguments.length?(x=+X,j):x},j.offset=function(X){return arguments.length?(C=+X,j):C},j}function at(){}function st(i){return i==null?at:function(){return this.querySelector(i)}}function St(i){return i==null?[]:Array.isArray(i)?i:Array.from(i)}function qt(){return[]}function Nt(i){return i==null?qt:function(){return this.querySelectorAll(i)}}function yt(i){return function(){return this.matches(i)}}function Bt(i){return function(a){return a.matches(i)}}var kt=Array.prototype.find;function ft(){return this.firstElementChild}var rt=Array.prototype.filter;function dt(){return Array.from(this.children)}function G(i){return new Array(i.length)}function Lt(i,a){this.ownerDocument=i.ownerDocument,this.namespaceURI=i.namespaceURI,this._next=null,this._parent=i,this.__data__=a}function V(i){return function(){return i}}function Rt(i,a,s,u,d,_){for(var m,x=0,C=a.length,A=_.length;xa?1:i>=a?0:NaN}Lt.prototype={constructor:Lt,appendChild:function(i){return this._parent.insertBefore(i,this._next)},insertBefore:function(i,a){return this._parent.insertBefore(i,a)},querySelector:function(i){return this._parent.querySelector(i)},querySelectorAll:function(i){return this._parent.querySelectorAll(i)}};var xe="http://www.w3.org/1999/xhtml";const he={svg:"http://www.w3.org/2000/svg",xhtml:xe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function me(i){var a=i+="",s=a.indexOf(":");return s>=0&&(a=i.slice(0,s))!=="xmlns"&&(i=i.slice(s+1)),he.hasOwnProperty(a)?{space:he[a],local:i}:i}function Ie(i){return function(){this.removeAttribute(i)}}function Le(i){return function(){this.removeAttributeNS(i.space,i.local)}}function ve(i,a){return function(){this.setAttribute(i,a)}}function kn(i,a){return function(){this.setAttributeNS(i.space,i.local,a)}}function be(i,a){return function(){var s=a.apply(this,arguments);s==null?this.removeAttribute(i):this.setAttribute(i,s)}}function Ge(i,a){return function(){var s=a.apply(this,arguments);s==null?this.removeAttributeNS(i.space,i.local):this.setAttributeNS(i.space,i.local,s)}}function $t(i){return i.ownerDocument&&i.ownerDocument.defaultView||i.document&&i||i.defaultView}function fe(i){return function(){this.style.removeProperty(i)}}function oe(i,a,s){return function(){this.style.setProperty(i,a,s)}}function Ft(i,a,s){return function(){var u=a.apply(this,arguments);u==null?this.style.removeProperty(i):this.style.setProperty(i,u,s)}}function Me(i,a){return i.style.getPropertyValue(a)||$t(i).getComputedStyle(i,null).getPropertyValue(a)}function et(i){return function(){delete this[i]}}function Ne(i,a){return function(){this[i]=a}}function lt(i,a){return function(){var s=a.apply(this,arguments);s==null?delete this[i]:this[i]=s}}function Ae(i){return i.trim().split(/^|\s+/)}function ae(i){return i.classList||new we(i)}function we(i){this._node=i,this._names=Ae(i.getAttribute("class")||"")}function Ye(i,a){for(var s=ae(i),u=-1,d=a.length;++u=0&&(s=a.slice(u+1),a=a.slice(0,u)),{type:a,name:s}})}function Gn(i){return function(){var a=this.__on;if(a){for(var s,u=0,d=-1,_=a.length;u<_;++u)s=a[u],i.type&&s.type!==i.type||s.name!==i.name?a[++d]=s:this.removeEventListener(s.type,s.listener,s.options);++d?a.length=d:delete this.__on}}}function er(i,a,s){return function(){var u,d=this.__on,_=function(C){return function(A){C.call(this,A,this.__data__)}}(a);if(d){for(var m=0,x=d.length;m=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};var Pn=[null];function On(i,a){this._groups=i,this._parents=a}function zn(){return new On([[document.documentElement]],Pn)}On.prototype=zn.prototype={constructor:On,select:function(i){typeof i!="function"&&(i=st(i));for(var a=this._groups,s=a.length,u=new Array(s),d=0;d=se&&(se=Zt+1);!(At=wt[se])&&++se=0;)(u=d[_])&&(m&&4^u.compareDocumentPosition(m)&&m.parentNode.insertBefore(u,m),m=u);return this},sort:function(i){function a(Y,j){return Y&&j?i(Y.__data__,j.__data__):!Y-!j}i||(i=qe);for(var s=this._groups,u=s.length,d=new Array(u),_=0;_1?this.each((a==null?fe:typeof a=="function"?Ft:oe)(i,a,s==null?"":s)):Me(this.node(),i)},property:function(i,a){return arguments.length>1?this.each((a==null?et:typeof a=="function"?lt:Ne)(i,a)):this.node()[i]},classed:function(i,a){var s=Ae(i+"");if(arguments.length<2){for(var u=ae(this.node()),d=-1,_=s.length;++d<_;)if(!u.contains(s[d]))return!1;return!0}return this.each((typeof a=="function"?Ke:a?ln:De)(s,a))},text:function(i){return arguments.length?this.each(i==null?rn:(typeof i=="function"?Oe:on)(i)):this.node().textContent},html:function(i){return arguments.length?this.each(i==null?dn:(typeof i=="function"?We:mn)(i)):this.node().innerHTML},raise:function(){return this.each($e)},lower:function(){return this.each(Ue)},append:function(i){var a=typeof i=="function"?i:zt(i);return this.select(function(){return this.appendChild(a.apply(this,arguments))})},insert:function(i,a){var s=typeof i=="function"?i:zt(i),u=a==null?Dn:typeof a=="function"?a:st(a);return this.select(function(){return this.insertBefore(s.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(Ht)},clone:function(i){return this.select(i?In:gn)},datum:function(i){return arguments.length?this.property("__data__",i):this.node().__data__},on:function(i,a,s){var u,d,_=un(i+""),m=_.length;if(!(arguments.length<2)){for(x=a?er:Gn,u=0;u{}};function Vn(){for(var i,a=0,s=arguments.length,u={};a=0&&(u=s.slice(d+1),s=s.slice(0,d)),s&&!a.hasOwnProperty(s))throw new Error("unknown type: "+s);return{type:s,name:u}})}function Zn(i,a){for(var s,u=0,d=i.length;u0)for(var s,u,d=new Array(s),_=0;_=0&&a._call.call(void 0,i),a=a._next;--xi})()}finally{xi=0,function(){for(var i,a,s=Ci,u=1/0;s;)s._call?(u>s._time&&(u=s._time),i=s,s=s._next):(a=s._next,s._next=null,s=i?i._next=a:Ci=a);_n=i,io(u)}(),ai=0}}function wi(){var i=ti.now(),a=i-li;a>1e3&&(gi-=a,li=i)}function io(i){xi||(kr&&(kr=clearTimeout(kr)),i-ai>24?(i<1/0&&(kr=setTimeout(hi,i-ti.now()-gi)),br&&(br=clearInterval(br))):(br||(li=ti.now(),br=setInterval(wi,1e3)),xi=1,yi(hi)))}function Cr(i,a,s){var u=new ni;return a=a==null?0:+a,u.restart(d=>{u.stop(),i(d+a)},a,s),u}ni.prototype=ui.prototype={constructor:ni,restart:function(i,a,s){if(typeof i!="function")throw new TypeError("callback is not a function");s=(s==null?ei():+s)+(a==null?0:+a),this._next||_n===this||(_n?_n._next=this:Ci=this,_n=this),this._call=i,this._time=s,io()},stop:function(){this._call&&(this._call=null,this._time=1/0,io())}};var Ia=yr("start","end","cancel","interrupt"),ha=[];function ji(i,a,s,u,d,_){var m=i.__transition;if(m){if(s in m)return}else i.__transition={};(function(x,C,A){var B,Y=x.__transition;function j(ut){var wt,xt,Dt,At;if(A.state!==1)return vt();for(wt in Y)if((At=Y[wt]).name===A.name){if(At.state===3)return Cr(j);At.state===4?(At.state=6,At.timer.stop(),At.on.call("interrupt",x,x.__data__,At.index,At.group),delete Y[wt]):+wt0)throw new Error("too late; already scheduled");return s}function nr(i,a){var s=Re(i,a);if(s.state>3)throw new Error("too late; already running");return s}function Re(i,a){var s=i.__transition;if(!s||!(s=s[a]))throw new Error("transition not found");return s}function Ve(i,a){return i=+i,a=+a,function(s){return i*(1-s)+a*s}}var Er,Vt=180/Math.PI,ka={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function re(i,a,s,u,d,_){var m,x,C;return(m=Math.sqrt(i*i+a*a))&&(i/=m,a/=m),(C=i*s+a*u)&&(s-=i*C,u-=a*C),(x=Math.sqrt(s*s+u*u))&&(s/=x,u/=x,C/=x),i*u180?B+=360:B-A>180&&(A+=360),j.push({i:Y.push(d(Y)+"rotate(",null,u)-2,x:Ve(A,B)})):B&&Y.push(d(Y)+"rotate("+B+u)}(_.rotate,m.rotate,x,C),function(A,B,Y,j){A!==B?j.push({i:Y.push(d(Y)+"skewX(",null,u)-2,x:Ve(A,B)}):B&&Y.push(d(Y)+"skewX("+B+u)}(_.skewX,m.skewX,x,C),function(A,B,Y,j,X,vt){if(A!==Y||B!==j){var ut=X.push(d(X)+"scale(",null,",",null,")");vt.push({i:ut-4,x:Ve(A,Y)},{i:ut-2,x:Ve(B,j)})}else Y===1&&j===1||X.push(d(X)+"scale("+Y+","+j+")")}(_.scaleX,_.scaleY,m.scaleX,m.scaleY,x,C),_=m=null,function(A){for(var B,Y=-1,j=C.length;++Y>8&15|a>>4&240,a>>4&15|240&a,(15&a)<<4|15&a,1):s===8?Kt(a>>24&255,a>>16&255,a>>8&255,(255&a)/255):s===4?Kt(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=qr.exec(i))?new rr(a[1],a[2],a[3],1):(a=fa.exec(i))?new rr(255*a[1]/100,255*a[2]/100,255*a[3]/100,1):(a=Qi.exec(i))?Kt(a[1],a[2],a[3],a[4]):(a=Ni.exec(i))?Kt(255*a[1]/100,255*a[2]/100,255*a[3]/100,a[4]):(a=Ta.exec(i))?ta(a[1],a[2]/100,a[3]/100,1):(a=Jr.exec(i))?ta(a[1],a[2]/100,a[3]/100,a[4]):di.hasOwnProperty(i)?rl(di[i]):i==="transparent"?new rr(NaN,NaN,NaN,0):null}function rl(i){return new rr(i>>16&255,i>>8&255,255&i,1)}function Kt(i,a,s,u){return u<=0&&(i=a=s=NaN),new rr(i,a,s,u)}function pn(i){return i instanceof Hr||(i=Oo(i)),i?new rr((i=i.rgb()).r,i.g,i.b,i.opacity):new rr}function en(i,a,s,u){return arguments.length===1?pn(i):new rr(i,a,s,u==null?1:u)}function rr(i,a,s,u){this.r=+i,this.g=+a,this.b=+s,this.opacity=+u}function Wr(){return"#"+si(this.r)+si(this.g)+si(this.b)}function Gr(){var i=this.opacity;return((i=isNaN(i)?1:Math.max(0,Math.min(1,i)))===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))+(i===1?")":", "+i+")")}function si(i){return((i=Math.max(0,Math.min(255,Math.round(i)||0)))<16?"0":"")+i.toString(16)}function ta(i,a,s,u){return u<=0?i=a=s=NaN:s<=0||s>=1?i=a=NaN:a<=0&&(i=NaN),new Rr(i,a,s,u)}function Aa(i){if(i instanceof Rr)return new Rr(i.h,i.s,i.l,i.opacity);if(i instanceof Hr||(i=Oo(i)),!i)return new Rr;if(i instanceof Rr)return i;var a=(i=i.rgb()).r/255,s=i.g/255,u=i.b/255,d=Math.min(a,s,u),_=Math.max(a,s,u),m=NaN,x=_-d,C=(_+d)/2;return x?(m=a===_?(s-u)/x+6*(s0&&C<1?0:m,new Rr(m,x,C,i.opacity)}function Rr(i,a,s,u){this.h=+i,this.s=+a,this.l=+s,this.opacity=+u}function ii(i,a,s){return 255*(i<60?a+(s-a)*i/60:i<180?s:i<240?a+(s-a)*(240-i)/60:a)}jr(Hr,Oo,{copy:function(i){return Object.assign(new this.constructor,this,i)},displayable:function(){return this.rgb().displayable()},hex:Sa,formatHex:Sa,formatHsl:function(){return Aa(this).formatHsl()},formatRgb:da,toString:da}),jr(rr,en,Mi(Hr,{brighter:function(i){return i=i==null?Ji:Math.pow(Ji,i),new rr(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=i==null?Ri:Math.pow(Ri,i),new rr(this.r*i,this.g*i,this.b*i,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:Wr,formatHex:Wr,formatRgb:Gr,toString:Gr})),jr(Rr,function(i,a,s,u){return arguments.length===1?Aa(i):new Rr(i,a,s,u==null?1:u)},Mi(Hr,{brighter:function(i){return i=i==null?Ji:Math.pow(Ji,i),new Rr(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?Ri:Math.pow(Ri,i),new Rr(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=this.h%360+360*(this.h<0),a=isNaN(i)||isNaN(this.s)?0:this.s,s=this.l,u=s+(s<.5?s:1-s)*a,d=2*s-u;return new rr(ii(i>=240?i-240:i+120,d,u),ii(i,d,u),ii(i<120?i+240:i-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 i=this.opacity;return((i=isNaN(i)?1:Math.max(0,Math.min(1,i)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(i===1?")":", "+i+")")}}));const il=i=>()=>i;function Wl(i,a){var s=a-i;return s?function(u,d){return function(_){return u+_*d}}(i,s):il(isNaN(i)?a:i)}const Gl=function i(a){var s=function(d){return(d=+d)==1?Wl:function(_,m){return m-_?function(x,C,A){return x=Math.pow(x,A),C=Math.pow(C,A)-x,A=1/A,function(B){return Math.pow(x+B*C,A)}}(_,m,d):il(isNaN(_)?m:_)}}(a);function u(d,_){var m=s((d=en(d)).r,(_=en(_)).r),x=s(d.g,_.g),C=s(d.b,_.b),A=Wl(d.opacity,_.opacity);return function(B){return d.r=m(B),d.g=x(B),d.b=C(B),d.opacity=A(B),d+""}}return u.gamma=i,u}(1);var ao=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vl=new RegExp(ao.source,"g");function Zl(i,a){var s,u,d,_=ao.lastIndex=Vl.lastIndex=0,m=-1,x=[],C=[];for(i+="",a+="";(s=ao.exec(i))&&(u=Vl.exec(a));)(d=u.index)>_&&(d=a.slice(_,d),x[m]?x[m]+=d:x[++m]=d),(s=s[0])===(u=u[0])?x[m]?x[m]+=u:x[++m]=u:(x[++m]=null,C.push({i:m,x:Ve(s,u)})),_=Vl.lastIndex;return _=0&&(x=x.slice(0,C)),!x||x==="start"})}(a)?vn:nr;return function(){var m=_(this,i),x=m.on;x!==u&&(d=(u=x).copy()).on(a,s),m.on=d}}var e0=$n.prototype.constructor;function Oa(i){return function(){this.style.removeProperty(i)}}function n0(i,a,s){return function(u){this.style.setProperty(i,a.call(this,u),s)}}function dh(i,a,s){var u,d;function _(){var m=a.apply(this,arguments);return m!==d&&(u=(d=m)&&n0(i,m,s)),u}return _._value=a,_}function ph(i){return function(a){this.textContent=i.call(this,a)}}function Bo(i){var a,s;function u(){var d=i.apply(this,arguments);return d!==s&&(a=(s=d)&&ph(d)),a}return u._value=i,u}var sl=0;function so(i,a,s,u){this._groups=i,this._parents=a,this._name=s,this._id=u}function cl(){return++sl}var Ra=$n.prototype;so.prototype={constructor:so,select:function(i){var a=this._name,s=this._id;typeof i!="function"&&(i=st(i));for(var u=this._groups,d=u.length,_=new Array(d),m=0;m2&&u.state<5,u.state=6,u.timer.stop(),u.on.call(d?"interrupt":"cancel",a,a.__data__,u.index,u.group),delete m[_]):x=!1;x&&delete a.__transition}})(this,i)})},$n.prototype.transition=function(i){var a,s;i instanceof so?(a=i._id,i=i._name):(a=cl(),(s=Ps).time=ei(),i=i==null?null:i+"");for(var u=this._groups,d=u.length,_=0;_>8&15|a>>4&240,a>>4&15|240&a,(15&a)<<4|15&a,1):s===8?xr(a>>24&255,a>>16&255,a>>8&255,(255&a)/255):s===4?xr(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=tt.exec(i))?new _r(a[1],a[2],a[3],1):(a=_t.exec(i))?new _r(255*a[1]/100,255*a[2]/100,255*a[3]/100,1):(a=te.exec(i))?xr(a[1],a[2],a[3],a[4]):(a=Se.exec(i))?xr(255*a[1]/100,255*a[2]/100,255*a[3]/100,a[4]):(a=Fe.exec(i))?Gd(a[1],a[2]/100,a[3]/100,1):(a=Ze.exec(i))?Gd(a[1],a[2]/100,a[3]/100,a[4]):Xe.hasOwnProperty(i)?Rn(Xe[i]):i==="transparent"?new _r(NaN,NaN,NaN,0):null}function Rn(i){return new _r(i>>16&255,i>>8&255,255&i,1)}function xr(i,a,s,u){return u<=0&&(i=a=s=NaN),new _r(i,a,s,u)}function Tr(i){return i instanceof ki||(i=Un(i)),i?new _r((i=i.rgb()).r,i.g,i.b,i.opacity):new _r}function Ur(i,a,s,u){return arguments.length===1?Tr(i):new _r(i,a,s,u==null?1:u)}function _r(i,a,s,u){this.r=+i,this.g=+a,this.b=+s,this.opacity=+u}function Ba(){return"#"+gh(this.r)+gh(this.g)+gh(this.b)}function Us(){var i=this.opacity;return((i=isNaN(i)?1:Math.max(0,Math.min(1,i)))===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))+(i===1?")":", "+i+")")}function gh(i){return((i=Math.max(0,Math.min(255,Math.round(i)||0)))<16?"0":"")+i.toString(16)}function Gd(i,a,s,u){return u<=0?i=a=s=NaN:s<=0||s>=1?i=a=NaN:a<=0&&(i=NaN),new Po(i,a,s,u)}function yh(i){if(i instanceof Po)return new Po(i.h,i.s,i.l,i.opacity);if(i instanceof ki||(i=Un(i)),!i)return new Po;if(i instanceof Po)return i;var a=(i=i.rgb()).r/255,s=i.g/255,u=i.b/255,d=Math.min(a,s,u),_=Math.max(a,s,u),m=NaN,x=_-d,C=(_+d)/2;return x?(m=a===_?(s-u)/x+6*(s0&&C<1?0:m,new Po(m,x,C,i.opacity)}function Po(i,a,s,u){this.h=+i,this.s=+a,this.l=+s,this.opacity=+u}function mh(i,a,s){return 255*(i<60?a+(s-a)*i/60:i<180?s:i<240?a+(s-a)*(240-i)/60:a)}Fo(ki,Un,{copy:function(i){return Object.assign(new this.constructor,this,i)},displayable:function(){return this.rgb().displayable()},hex:an,formatHex:an,formatHsl:function(){return yh(this).formatHsl()},formatRgb:hn,toString:hn}),Fo(_r,Ur,ea(ki,{brighter:function(i){return i=i==null?Za:Math.pow(Za,i),new _r(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=i==null?co:Math.pow(co,i),new _r(this.r*i,this.g*i,this.b*i,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:Ba,formatHex:Ba,formatRgb:Us,toString:Us})),Fo(Po,function(i,a,s,u){return arguments.length===1?yh(i):new Po(i,a,s,u==null?1:u)},ea(ki,{brighter:function(i){return i=i==null?Za:Math.pow(Za,i),new Po(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?co:Math.pow(co,i),new Po(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=this.h%360+360*(this.h<0),a=isNaN(i)||isNaN(this.s)?0:this.s,s=this.l,u=s+(s<.5?s:1-s)*a,d=2*s-u;return new _r(mh(i>=240?i-240:i+120,d,u),mh(i,d,u),mh(i<120?i+240:i-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 i=this.opacity;return((i=isNaN(i)?1:Math.max(0,Math.min(1,i)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(i===1?")":", "+i+")")}}));const ky=Math.PI/180,Ey=180/Math.PI,Vd=.96422,Zd=.82521,Ty=4/29,Xd=6/29,r0=3*Xd*Xd;function Kd(i){if(i instanceof cs)return new cs(i.l,i.a,i.b,i.opacity);if(i instanceof zs)return Sy(i);i instanceof _r||(i=Tr(i));var a,s,u=e2(i.r),d=e2(i.g),_=e2(i.b),m=Jd((.2225045*u+.7168786*d+.0606169*_)/1);return u===d&&d===_?a=s=m:(a=Jd((.4360747*u+.3850649*d+.1430804*_)/Vd),s=Jd((.0139322*u+.0971045*d+.7141733*_)/Zd)),new cs(116*m-16,500*(a-m),200*(m-s),i.opacity)}function cs(i,a,s,u){this.l=+i,this.a=+a,this.b=+s,this.opacity=+u}function Jd(i){return i>.008856451679035631?Math.pow(i,1/3):i/r0+Ty}function Qd(i){return i>Xd?i*i*i:r0*(i-Ty)}function t2(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function e2(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function zv(i){if(i instanceof zs)return new zs(i.h,i.c,i.l,i.opacity);if(i instanceof cs||(i=Kd(i)),i.a===0&&i.b===0)return new zs(NaN,0()=>i;function Ay(i,a){return function(s){return i+s*a}}function _h(i,a){var s=a-i;return s?Ay(i,s):r2(isNaN(i)?a:i)}function Yv(i){return function(a,s){var u=i((a=n2(a)).h,(s=n2(s)).h),d=_h(a.c,s.c),_=_h(a.l,s.l),m=_h(a.opacity,s.opacity);return function(x){return a.h=u(x),a.c=d(x),a.l=_(x),a.opacity=m(x),a+""}}}const $v=Yv(function(i,a){var s=a-i;return s?Ay(i,s>180||s<-180?s-360*Math.round(s/360):s):r2(isNaN(i)?a:i)});var i2=Math.sqrt(50),a2=Math.sqrt(10),o2=Math.sqrt(2);function s2(i,a,s){var u=(a-i)/Math.max(0,s),d=Math.floor(Math.log(u)/Math.LN10),_=u/Math.pow(10,d);return d>=0?(_>=i2?10:_>=a2?5:_>=o2?2:1)*Math.pow(10,d):-Math.pow(10,-d)/(_>=i2?10:_>=a2?5:_>=o2?2:1)}function c2(i,a,s){var u=Math.abs(a-i)/Math.max(0,s),d=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),_=u/d;return _>=i2?d*=10:_>=a2?d*=5:_>=o2&&(d*=2),aa?1:i>=a?0:NaN}function u2(i){let a=i,s=i,u=i;function d(_,m,x=0,C=_.length){if(x>>1;u(_[A],m)<0?x=A+1:C=A}while(xi(_)-m,s=l2,u=(_,m)=>l2(i(_),m)),{left:d,center:function(_,m,x=0,C=_.length){const A=d(_,m,x,C-1);return A>x&&a(_[A-1],m)>-a(_[A],m)?A-1:A},right:function(_,m,x=0,C=_.length){if(x>>1;u(_[A],m)<=0?x=A+1:C=A}while(x>8&15|a>>4&240,a>>4&15|240&a,(15&a)<<4|15&a,1):s===8?l0(a>>24&255,a>>16&255,a>>8&255,(255&a)/255):s===4?l0(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=Wv.exec(i))?new lo(a[1],a[2],a[3],1):(a=f2.exec(i))?new lo(255*a[1]/100,255*a[2]/100,255*a[3]/100,1):(a=Gv.exec(i))?l0(a[1],a[2],a[3],a[4]):(a=Cy.exec(i))?l0(255*a[1]/100,255*a[2]/100,255*a[3]/100,a[4]):(a=d2.exec(i))?Ny(a[1],a[2]/100,a[3]/100,1):(a=My.exec(i))?Ny(a[1],a[2]/100,a[3]/100,a[4]):s0.hasOwnProperty(i)?c0(s0[i]):i==="transparent"?new lo(NaN,NaN,NaN,0):null}function c0(i){return new lo(i>>16&255,i>>8&255,255&i,1)}function l0(i,a,s,u){return u<=0&&(i=a=s=NaN),new lo(i,a,s,u)}function u0(i){return i instanceof us||(i=Ql(i)),i?new lo((i=i.rgb()).r,i.g,i.b,i.opacity):new lo}function tu(i,a,s,u){return arguments.length===1?u0(i):new lo(i,a,s,u==null?1:u)}function lo(i,a,s,u){this.r=+i,this.g=+a,this.b=+s,this.opacity=+u}function fs(){return"#"+h0(this.r)+h0(this.g)+h0(this.b)}function p2(){var i=this.opacity;return((i=isNaN(i)?1:Math.max(0,Math.min(1,i)))===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))+(i===1?")":", "+i+")")}function h0(i){return((i=Math.max(0,Math.min(255,Math.round(i)||0)))<16?"0":"")+i.toString(16)}function Ny(i,a,s,u){return u<=0?i=a=s=NaN:s<=0||s>=1?i=a=NaN:a<=0&&(i=NaN),new Xa(i,a,s,u)}function Ly(i){if(i instanceof Xa)return new Xa(i.h,i.s,i.l,i.opacity);if(i instanceof us||(i=Ql(i)),!i)return new Xa;if(i instanceof Xa)return i;var a=(i=i.rgb()).r/255,s=i.g/255,u=i.b/255,d=Math.min(a,s,u),_=Math.max(a,s,u),m=NaN,x=_-d,C=(_+d)/2;return x?(m=a===_?(s-u)/x+6*(s0&&C<1?0:m,new Xa(m,x,C,i.opacity)}function Xa(i,a,s,u){this.h=+i,this.s=+a,this.l=+s,this.opacity=+u}function g2(i,a,s){return 255*(i<60?a+(s-a)*i/60:i<180?s:i<240?a+(s-a)*(240-i)/60:a)}i0(us,Ql,{copy:function(i){return Object.assign(new this.constructor,this,i)},displayable:function(){return this.rgb().displayable()},hex:ul,formatHex:ul,formatHsl:function(){return Ly(this).formatHsl()},formatRgb:hl,toString:hl}),i0(lo,tu,h2(us,{brighter:function(i){return i=i==null?o0:Math.pow(o0,i),new lo(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=i==null?a0:Math.pow(a0,i),new lo(this.r*i,this.g*i,this.b*i,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:fs,formatHex:fs,formatRgb:p2,toString:p2})),i0(Xa,function(i,a,s,u){return arguments.length===1?Ly(i):new Xa(i,a,s,u==null?1:u)},h2(us,{brighter:function(i){return i=i==null?o0:Math.pow(o0,i),new Xa(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?a0:Math.pow(a0,i),new Xa(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=this.h%360+360*(this.h<0),a=isNaN(i)||isNaN(this.s)?0:this.s,s=this.l,u=s+(s<.5?s:1-s)*a,d=2*s-u;return new lo(g2(i>=240?i-240:i+120,d,u),g2(i,d,u),g2(i<120?i+240:i-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 i=this.opacity;return((i=isNaN(i)?1:Math.max(0,Math.min(1,i)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(i===1?")":", "+i+")")}}));const y2=i=>()=>i;function Dy(i,a){var s=a-i;return s?function(u,d){return function(_){return u+_*d}}(i,s):y2(isNaN(i)?a:i)}const f0=function i(a){var s=function(d){return(d=+d)==1?Dy:function(_,m){return m-_?function(x,C,A){return x=Math.pow(x,A),C=Math.pow(C,A)-x,A=1/A,function(B){return Math.pow(x+B*C,A)}}(_,m,d):y2(isNaN(_)?m:_)}}(a);function u(d,_){var m=s((d=tu(d)).r,(_=tu(_)).r),x=s(d.g,_.g),C=s(d.b,_.b),A=Dy(d.opacity,_.opacity);return function(B){return d.r=m(B),d.g=x(B),d.b=C(B),d.opacity=A(B),d+""}}return u.gamma=i,u}(1);function Vv(i,a){var s,u=a?a.length:0,d=i?Math.min(u,i.length):0,_=new Array(d),m=new Array(u);for(s=0;s_&&(d=a.slice(_,d),x[m]?x[m]+=d:x[++m]=d),(s=s[0])===(u=u[0])?x[m]?x[m]+=u:x[++m]=u:(x[++m]=null,C.push({i:m,x:d0(s,u)})),_=vh.lastIndex;return _X&&(vt=j,j=X,X=vt),A=function(wt){return Math.max(j,Math.min(X,wt))}),u=ut>2?b2:Kv,d=_=null,Y}function Y(j){return j==null||isNaN(j=+j)?s:(d||(d=u(m.map(i),x,C)))(i(A(j)))}return Y.invert=function(j){return A(a((_||(_=u(x,m.map(i),d0)))(j)))},Y.domain=function(j){return arguments.length?(m=Array.from(j,Ry),B()):m.slice()},Y.range=function(j){return arguments.length?(x=Array.from(j),B()):x.slice()},Y.rangeRound=function(j){return x=Array.from(j),C=g0,B()},Y.clamp=function(j){return arguments.length?(A=!!j||eu,B()):A!==eu},Y.interpolate=function(j){return arguments.length?(C=j,B()):C},Y.unknown=function(j){return arguments.length?(s=j,Y):s},function(j,X){return i=j,a=X,B()}}()(eu,eu)}function Ys(i,a){switch(arguments.length){case 0:break;case 1:this.range(i);break;default:this.range(a).domain(i)}return this}var By,x2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bh(i){if(!(a=x2.exec(i)))throw new Error("invalid format: "+i);var a;return new $s({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 $s(i){this.fill=i.fill===void 0?" ":i.fill+"",this.align=i.align===void 0?">":i.align+"",this.sign=i.sign===void 0?"-":i.sign+"",this.symbol=i.symbol===void 0?"":i.symbol+"",this.zero=!!i.zero,this.width=i.width===void 0?void 0:+i.width,this.comma=!!i.comma,this.precision=i.precision===void 0?void 0:+i.precision,this.trim=!!i.trim,this.type=i.type===void 0?"":i.type+""}function _0(i,a){if((s=(i=a?i.toExponential(a-1):i.toExponential()).indexOf("e"))<0)return null;var s,u=i.slice(0,s);return[u.length>1?u[0]+u.slice(2):u,+i.slice(s+1)]}function nu(i){return(i=_0(Math.abs(i)))?i[1]:NaN}function Fy(i,a){var s=_0(i,a);if(!s)return i+"";var u=s[0],d=s[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")}bh.prototype=$s.prototype,$s.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 Py={"%":(i,a)=>(100*i).toFixed(a),b:i=>Math.round(i).toString(2),c:i=>i+"",d:function(i){return Math.abs(i=Math.round(i))>=1e21?i.toLocaleString("en").replace(/,/g,""):i.toString(10)},e:(i,a)=>i.toExponential(a),f:(i,a)=>i.toFixed(a),g:(i,a)=>i.toPrecision(a),o:i=>Math.round(i).toString(8),p:(i,a)=>Fy(100*i,a),r:Fy,s:function(i,a){var s=_0(i,a);if(!s)return i+"";var u=s[0],d=s[1],_=d-(By=3*Math.max(-8,Math.min(8,Math.floor(d/3))))+1,m=u.length;return _===m?u:_>m?u+new Array(_-m+1).join("0"):_>0?u.slice(0,_)+"."+u.slice(_):"0."+new Array(1-_).join("0")+_0(i,Math.max(0,a+_-1))[0]},X:i=>Math.round(i).toString(16).toUpperCase(),x:i=>Math.round(i).toString(16)};function Uy(i){return i}var w2,uo,xh,k2=Array.prototype.map,js=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Jv(i){var a=i.domain;return i.ticks=function(s){var u=a();return function(d,_,m){var x,C,A,B,Y=-1;if(m=+m,(d=+d)==(_=+_)&&m>0)return[d];if((x=_0){let j=Math.round(d/B),X=Math.round(_/B);for(j*B_&&--X,A=new Array(C=X-j+1);++Y_&&--X,A=new Array(C=X-j+1);++Y0;){if((d=s2(C,A,s))===u)return _[m]=C,_[x]=A,a(_);if(d>0)C=Math.floor(C/d)*d,A=Math.ceil(A/d)*d;else{if(!(d<0))break;C=Math.ceil(C*d)/d,A=Math.floor(A*d)/d}u=d}return i},i}function zy(){var i=m0();return i.copy=function(){return y0(i,zy())},Ys.apply(i,arguments),Jv(i)}w2=function(i){var a,s,u=i.grouping===void 0||i.thousands===void 0?Uy:(a=k2.call(i.grouping,Number),s=i.thousands+"",function(j,X){for(var vt=j.length,ut=[],wt=0,xt=a[0],Dt=0;vt>0&&xt>0&&(Dt+xt+1>X&&(xt=Math.max(1,X-Dt)),ut.push(j.substring(vt-=xt,vt+xt)),!((Dt+=xt+1)>X));)xt=a[wt=(wt+1)%a.length];return ut.reverse().join(s)}),d=i.currency===void 0?"":i.currency[0]+"",_=i.currency===void 0?"":i.currency[1]+"",m=i.decimal===void 0?".":i.decimal+"",x=i.numerals===void 0?Uy:function(j){return function(X){return X.replace(/[0-9]/g,function(vt){return j[+vt]})}}(k2.call(i.numerals,String)),C=i.percent===void 0?"%":i.percent+"",A=i.minus===void 0?"\u2212":i.minus+"",B=i.nan===void 0?"NaN":i.nan+"";function Y(j){var X=(j=bh(j)).fill,vt=j.align,ut=j.sign,wt=j.symbol,xt=j.zero,Dt=j.width,At=j.comma,Zt=j.precision,se=j.trim,jt=j.type;jt==="n"?(At=!0,jt="g"):Py[jt]||(Zt===void 0&&(Zt=12),se=!0,jt="g"),(xt||X==="0"&&vt==="=")&&(xt=!0,X="0",vt="=");var ne=wt==="$"?d:wt==="#"&&/[boxX]/.test(jt)?"0"+jt.toLowerCase():"",ie=wt==="$"?_:/[%p]/.test(jt)?C:"",Ot=Py[jt],It=/[defgprs%]/.test(jt);function Ct(mt){var Ut,Tt,Te,Ce=ne,Qt=ie;if(jt==="c")Qt=Ot(mt)+Qt,mt="";else{var ke=(mt=+mt)<0||1/mt<0;if(mt=isNaN(mt)?B:Ot(Math.abs(mt),Zt),se&&(mt=function(ze){t:for(var je,yn=ze.length,cn=1,Ln=-1;cn0&&(Ln=0)}return Ln>0?ze.slice(0,Ln)+ze.slice(je+1):ze}(mt)),ke&&+mt==0&&ut!=="+"&&(ke=!1),Ce=(ke?ut==="("?ut:A:ut==="-"||ut==="("?"":ut)+Ce,Qt=(jt==="s"?js[8+By/3]:"")+Qt+(ke&&ut==="("?")":""),It){for(Ut=-1,Tt=mt.length;++Ut(Te=mt.charCodeAt(Ut))||Te>57){Qt=(Te===46?m+mt.slice(Ut+1):mt.slice(Ut))+Qt,mt=mt.slice(0,Ut);break}}}At&&!xt&&(mt=u(mt,1/0));var pe=Ce.length+mt.length+Qt.length,Ee=pe>1)+Ce+mt+Qt+Ee.slice(pe);break;default:mt=Ee+Ce+mt+Qt}return x(mt)}return Zt=Zt===void 0?6:/[gprs]/.test(jt)?Math.max(1,Math.min(21,Zt)):Math.max(0,Math.min(20,Zt)),Ct.toString=function(){return j+""},Ct}return{format:Y,formatPrefix:function(j,X){var vt=Y(((j=bh(j)).type="f",j)),ut=3*Math.max(-8,Math.min(8,Math.floor(nu(X)/3))),wt=Math.pow(10,-ut),xt=js[8+ut/3];return function(Dt){return vt(wt*Dt)+xt}}}}({thousands:",",grouping:[3],currency:["$",""]}),uo=w2.format,xh=w2.formatPrefix;class Yy extends Map{constructor(a,s=$y){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:s}}),a!=null)for(const[u,d]of a)this.set(u,d)}get(a){return super.get(E2(this,a))}has(a){return super.has(E2(this,a))}set(a,s){return super.set(function({_intern:u,_key:d},_){const m=d(_);return u.has(m)?u.get(m):(u.set(m,_),_)}(this,a),s)}delete(a){return super.delete(function({_intern:s,_key:u},d){const _=u(d);return s.has(_)&&(d=s.get(_),s.delete(_)),d}(this,a))}}function E2({_intern:i,_key:a},s){const u=a(s);return i.has(u)?i.get(u):s}function $y(i){return i!==null&&typeof i=="object"?i.valueOf():i}const wh=Symbol("implicit");function kc(){var i=new Yy,a=[],s=[],u=wh;function d(_){let m=i.get(_);if(m===void 0){if(u!==wh)return u;i.set(_,m=a.push(_)-1)}return s[m%s.length]}return d.domain=function(_){if(!arguments.length)return a.slice();a=[],i=new Yy;for(const m of _)i.has(m)||i.set(m,a.push(m)-1);return d},d.range=function(_){return arguments.length?(s=Array.from(_),d):s.slice()},d.unknown=function(_){return arguments.length?(u=_,d):u},d.copy=function(){return kc(a,s).unknown(u)},Ys.apply(d,arguments),d}const ru=1e3,Ec=6e4,kh=36e5,T2=864e5,S2=6048e5,v0=31536e6;var b0=new Date,x0=new Date;function Hi(i,a,s,u){function d(_){return i(_=arguments.length===0?new Date:new Date(+_)),_}return d.floor=function(_){return i(_=new Date(+_)),_},d.ceil=function(_){return i(_=new Date(_-1)),a(_,1),i(_),_},d.round=function(_){var m=d(_),x=d.ceil(_);return _-m0))return A;do A.push(C=new Date(+_)),a(_,x),i(_);while(C<_&&_=m)for(;i(m),!_(m);)m.setTime(m-1)},function(m,x){if(m>=m)if(x<0)for(;++x<=0;)for(;a(m,-1),!_(m););else for(;--x>=0;)for(;a(m,1),!_(m););})},s&&(d.count=function(_,m){return b0.setTime(+_),x0.setTime(+m),i(b0),i(x0),Math.floor(s(b0,x0))},d.every=function(_){return _=Math.floor(_),isFinite(_)&&_>0?_>1?d.filter(u?function(m){return u(m)%_==0}:function(m){return d.count(0,m)%_==0}):d:null}),d}var w0=Hi(function(){},function(i,a){i.setTime(+i+a)},function(i,a){return a-i});w0.every=function(i){return i=Math.floor(i),isFinite(i)&&i>0?i>1?Hi(function(a){a.setTime(Math.floor(a/i)*i)},function(a,s){a.setTime(+a+s*i)},function(a,s){return(s-a)/i}):w0:null};const A2=w0;var jy=Hi(function(i){i.setTime(i-i.getMilliseconds())},function(i,a){i.setTime(+i+a*ru)},function(i,a){return(a-i)/ru},function(i){return i.getUTCSeconds()});const iu=jy;var Qv=Hi(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*ru)},function(i,a){i.setTime(+i+a*Ec)},function(i,a){return(a-i)/Ec},function(i){return i.getMinutes()});const Eh=Qv;var Uo=Hi(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*ru-i.getMinutes()*Ec)},function(i,a){i.setTime(+i+a*kh)},function(i,a){return(a-i)/kh},function(i){return i.getHours()});const k0=Uo;var C2=Hi(i=>i.setHours(0,0,0,0),(i,a)=>i.setDate(i.getDate()+a),(i,a)=>(a-i-(a.getTimezoneOffset()-i.getTimezoneOffset())*Ec)/T2,i=>i.getDate()-1);const au=C2;function Hs(i){return Hi(function(a){a.setDate(a.getDate()-(a.getDay()+7-i)%7),a.setHours(0,0,0,0)},function(a,s){a.setDate(a.getDate()+7*s)},function(a,s){return(s-a-(s.getTimezoneOffset()-a.getTimezoneOffset())*Ec)/S2})}var E0=Hs(0),M2=Hs(1);Hs(2),Hs(3);var Tc=Hs(4);Hs(5),Hs(6);var ds=Hi(function(i){i.setDate(1),i.setHours(0,0,0,0)},function(i,a){i.setMonth(i.getMonth()+a)},function(i,a){return a.getMonth()-i.getMonth()+12*(a.getFullYear()-i.getFullYear())},function(i){return i.getMonth()});const N2=ds;var L2=Hi(function(i){i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,a){i.setFullYear(i.getFullYear()+a)},function(i,a){return a.getFullYear()-i.getFullYear()},function(i){return i.getFullYear()});L2.every=function(i){return isFinite(i=Math.floor(i))&&i>0?Hi(function(a){a.setFullYear(Math.floor(a.getFullYear()/i)*i),a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,s){a.setFullYear(a.getFullYear()+s*i)}):null};const qs=L2;Hi(function(i){i.setUTCSeconds(0,0)},function(i,a){i.setTime(+i+a*Ec)},function(i,a){return(a-i)/Ec},function(i){return i.getUTCMinutes()}),Hi(function(i){i.setUTCMinutes(0,0,0)},function(i,a){i.setTime(+i+a*kh)},function(i,a){return(a-i)/kh},function(i){return i.getUTCHours()});var D2=Hi(function(i){i.setUTCHours(0,0,0,0)},function(i,a){i.setUTCDate(i.getUTCDate()+a)},function(i,a){return(a-i)/T2},function(i){return i.getUTCDate()-1});const Th=D2;function zo(i){return Hi(function(a){a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-i)%7),a.setUTCHours(0,0,0,0)},function(a,s){a.setUTCDate(a.getUTCDate()+7*s)},function(a,s){return(s-a)/S2})}var Hy=zo(0),T0=zo(1);zo(2),zo(3);var ou=zo(4);zo(5),zo(6),Hi(function(i){i.setUTCDate(1),i.setUTCHours(0,0,0,0)},function(i,a){i.setUTCMonth(i.getUTCMonth()+a)},function(i,a){return a.getUTCMonth()-i.getUTCMonth()+12*(a.getUTCFullYear()-i.getUTCFullYear())},function(i){return i.getUTCMonth()});var qy=Hi(function(i){i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,a){i.setUTCFullYear(i.getUTCFullYear()+a)},function(i,a){return a.getUTCFullYear()-i.getUTCFullYear()},function(i){return i.getUTCFullYear()});qy.every=function(i){return isFinite(i=Math.floor(i))&&i>0?Hi(function(a){a.setUTCFullYear(Math.floor(a.getUTCFullYear()/i)*i),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,s){a.setUTCFullYear(a.getUTCFullYear()+s*i)}):null};const Fa=qy;function fl(i,a,s,u,d,_){const m=[[iu,1,ru],[iu,5,5e3],[iu,15,15e3],[iu,30,3e4],[_,1,Ec],[_,5,3e5],[_,15,9e5],[_,30,18e5],[d,1,kh],[d,3,108e5],[d,6,216e5],[d,12,432e5],[u,1,T2],[u,2,1728e5],[s,1,S2],[a,1,2592e6],[a,3,7776e6],[i,1,v0]];function x(C,A,B){const Y=Math.abs(A-C)/B,j=u2(([,,ut])=>ut).right(m,Y);if(j===m.length)return i.every(c2(C/v0,A/v0,B));if(j===0)return A2.every(Math.max(c2(C,A,B),1));const[X,vt]=m[Y/m[j-1][2][a.toLowerCase(),s]))}function S0(i,a,s){var u=qi.exec(a.slice(s,s+1));return u?(i.w=+u[0],s+u[0].length):-1}function B2(i,a,s){var u=qi.exec(a.slice(s,s+1));return u?(i.u=+u[0],s+u[0].length):-1}function n4(i,a,s){var u=qi.exec(a.slice(s,s+2));return u?(i.U=+u[0],s+u[0].length):-1}function r4(i,a,s){var u=qi.exec(a.slice(s,s+2));return u?(i.V=+u[0],s+u[0].length):-1}function i4(i,a,s){var u=qi.exec(a.slice(s,s+2));return u?(i.W=+u[0],s+u[0].length):-1}function Vy(i,a,s){var u=qi.exec(a.slice(s,s+4));return u?(i.y=+u[0],s+u[0].length):-1}function Zy(i,a,s){var u=qi.exec(a.slice(s,s+2));return u?(i.y=+u[0]+(+u[0]>68?1900:2e3),s+u[0].length):-1}function Xy(i,a,s){var u=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(s,s+6));return u?(i.Z=u[1]?0:-(u[2]+(u[3]||"00")),s+u[0].length):-1}function F2(i,a,s){var u=qi.exec(a.slice(s,s+1));return u?(i.q=3*u[0]-3,s+u[0].length):-1}function Ky(i,a,s){var u=qi.exec(a.slice(s,s+2));return u?(i.m=u[0]-1,s+u[0].length):-1}function P2(i,a,s){var u=qi.exec(a.slice(s,s+2));return u?(i.d=+u[0],s+u[0].length):-1}function Ka(i,a,s){var u=qi.exec(a.slice(s,s+3));return u?(i.m=0,i.d=+u[0],s+u[0].length):-1}function Nh(i,a,s){var u=qi.exec(a.slice(s,s+2));return u?(i.H=+u[0],s+u[0].length):-1}function dl(i,a,s){var u=qi.exec(a.slice(s,s+2));return u?(i.M=+u[0],s+u[0].length):-1}function Jy(i,a,s){var u=qi.exec(a.slice(s,s+2));return u?(i.S=+u[0],s+u[0].length):-1}function a4(i,a,s){var u=qi.exec(a.slice(s,s+3));return u?(i.L=+u[0],s+u[0].length):-1}function o4(i,a,s){var u=qi.exec(a.slice(s,s+6));return u?(i.L=Math.floor(u[0]/1e3),s+u[0].length):-1}function s4(i,a,s){var u=O2.exec(a.slice(s,s+1));return u?s+u[0].length:-1}function c4(i,a,s){var u=qi.exec(a.slice(s));return u?(i.Q=+u[0],s+u[0].length):-1}function l4(i,a,s){var u=qi.exec(a.slice(s));return u?(i.s=+u[0],s+u[0].length):-1}function Qy(i,a){return Mr(i.getDate(),a,2)}function pl(i,a){return Mr(i.getHours(),a,2)}function tm(i,a){return Mr(i.getHours()%12||12,a,2)}function u4(i,a){return Mr(1+au.count(qs(i),i),a,3)}function em(i,a){return Mr(i.getMilliseconds(),a,3)}function h4(i,a){return em(i,a)+"000"}function f4(i,a){return Mr(i.getMonth()+1,a,2)}function d4(i,a){return Mr(i.getMinutes(),a,2)}function p4(i,a){return Mr(i.getSeconds(),a,2)}function g4(i){var a=i.getDay();return a===0?7:a}function y4(i,a){return Mr(E0.count(qs(i)-1,i),a,2)}function nm(i){var a=i.getDay();return a>=4||a===0?Tc(i):Tc.ceil(i)}function m4(i,a){return i=nm(i),Mr(Tc.count(qs(i),i)+(qs(i).getDay()===4),a,2)}function _4(i){return i.getDay()}function rm(i,a){return Mr(M2.count(qs(i)-1,i),a,2)}function v4(i,a){return Mr(i.getFullYear()%100,a,2)}function b4(i,a){return Mr((i=nm(i)).getFullYear()%100,a,2)}function im(i,a){return Mr(i.getFullYear()%1e4,a,4)}function am(i,a){var s=i.getDay();return Mr((i=s>=4||s===0?Tc(i):Tc.ceil(i)).getFullYear()%1e4,a,4)}function om(i){var a=i.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+Mr(a/60|0,"0",2)+Mr(a%60,"0",2)}function sm(i,a){return Mr(i.getUTCDate(),a,2)}function x4(i,a){return Mr(i.getUTCHours(),a,2)}function cm(i,a){return Mr(i.getUTCHours()%12||12,a,2)}function Sc(i,a){return Mr(1+Th.count(Fa(i),i),a,3)}function lm(i,a){return Mr(i.getUTCMilliseconds(),a,3)}function w4(i,a){return lm(i,a)+"000"}function um(i,a){return Mr(i.getUTCMonth()+1,a,2)}function k4(i,a){return Mr(i.getUTCMinutes(),a,2)}function E4(i,a){return Mr(i.getUTCSeconds(),a,2)}function hm(i){var a=i.getUTCDay();return a===0?7:a}function A0(i,a){return Mr(Hy.count(Fa(i)-1,i),a,2)}function fm(i){var a=i.getUTCDay();return a>=4||a===0?ou(i):ou.ceil(i)}function Lh(i,a){return i=fm(i),Mr(ou.count(Fa(i),i)+(Fa(i).getUTCDay()===4),a,2)}function T4(i){return i.getUTCDay()}function U2(i,a){return Mr(T0.count(Fa(i)-1,i),a,2)}function S4(i,a){return Mr(i.getUTCFullYear()%100,a,2)}function A4(i,a){return Mr((i=fm(i)).getUTCFullYear()%100,a,2)}function dm(i,a){return Mr(i.getUTCFullYear()%1e4,a,4)}function su(i,a){var s=i.getUTCDay();return Mr((i=s>=4||s===0?ou(i):ou.ceil(i)).getUTCFullYear()%1e4,a,4)}function C4(){return"+0000"}function z2(){return"%"}function pm(i){return+i}function gm(i){return Math.floor(+i/1e3)}function M4(i){return new Date(i)}function N4(i){return i instanceof Date?+i:+new Date(+i)}function ym(i,a,s,u,d,_,m,x,C,A){var B=m0(),Y=B.invert,j=B.domain,X=A(".%L"),vt=A(":%S"),ut=A("%I:%M"),wt=A("%I %p"),xt=A("%a %d"),Dt=A("%b %d"),At=A("%B"),Zt=A("%Y");function se(jt){return(C(jt)=12)]},q:function(Ot){return 1+~~(Ot.getMonth()/3)},Q:pm,s:gm,S:p4,u:g4,U:y4,V:m4,w:_4,W:rm,x:null,X:null,y:v4,Y:im,Z:om,"%":z2},Zt={a:function(Ot){return m[Ot.getUTCDay()]},A:function(Ot){return _[Ot.getUTCDay()]},b:function(Ot){return C[Ot.getUTCMonth()]},B:function(Ot){return x[Ot.getUTCMonth()]},c:null,d:sm,e:sm,f:w4,g:A4,G:su,H:x4,I:cm,j:Sc,L:lm,m:um,M:k4,p:function(Ot){return d[+(Ot.getUTCHours()>=12)]},q:function(Ot){return 1+~~(Ot.getUTCMonth()/3)},Q:pm,s:gm,S:E4,u:hm,U:A0,V:Lh,w:T4,W:U2,x:null,X:null,y:S4,Y:dm,Z:C4,"%":z2},se={a:function(Ot,It,Ct){var mt=X.exec(It.slice(Ct));return mt?(Ot.w=vt.get(mt[0].toLowerCase()),Ct+mt[0].length):-1},A:function(Ot,It,Ct){var mt=Y.exec(It.slice(Ct));return mt?(Ot.w=j.get(mt[0].toLowerCase()),Ct+mt[0].length):-1},b:function(Ot,It,Ct){var mt=xt.exec(It.slice(Ct));return mt?(Ot.m=Dt.get(mt[0].toLowerCase()),Ct+mt[0].length):-1},B:function(Ot,It,Ct){var mt=ut.exec(It.slice(Ct));return mt?(Ot.m=wt.get(mt[0].toLowerCase()),Ct+mt[0].length):-1},c:function(Ot,It,Ct){return ie(Ot,a,It,Ct)},d:P2,e:P2,f:o4,g:Zy,G:Vy,H:Nh,I:Nh,j:Ka,L:a4,m:Ky,M:dl,p:function(Ot,It,Ct){var mt=A.exec(It.slice(Ct));return mt?(Ot.p=B.get(mt[0].toLowerCase()),Ct+mt[0].length):-1},q:F2,Q:c4,s:l4,S:Jy,u:B2,U:n4,V:r4,w:S0,W:i4,x:function(Ot,It,Ct){return ie(Ot,s,It,Ct)},X:function(Ot,It,Ct){return ie(Ot,u,It,Ct)},y:Zy,Y:Vy,Z:Xy,"%":s4};function jt(Ot,It){return function(Ct){var mt,Ut,Tt,Te=[],Ce=-1,Qt=0,ke=Ot.length;for(Ct instanceof Date||(Ct=new Date(+Ct));++Ce53)return null;"w"in Tt||(Tt.w=1),"Z"in Tt?(Ut=(mt=I2(Sh(Tt.y,0,1))).getUTCDay(),mt=Ut>4||Ut===0?T0.ceil(mt):T0(mt),mt=Th.offset(mt,7*(Tt.V-1)),Tt.y=mt.getUTCFullYear(),Tt.m=mt.getUTCMonth(),Tt.d=mt.getUTCDate()+(Tt.w+6)%7):(Ut=(mt=ps(Sh(Tt.y,0,1))).getDay(),mt=Ut>4||Ut===0?M2.ceil(mt):M2(mt),mt=au.offset(mt,7*(Tt.V-1)),Tt.y=mt.getFullYear(),Tt.m=mt.getMonth(),Tt.d=mt.getDate()+(Tt.w+6)%7)}else("W"in Tt||"U"in Tt)&&("w"in Tt||(Tt.w="u"in Tt?Tt.u%7:"W"in Tt?1:0),Ut="Z"in Tt?I2(Sh(Tt.y,0,1)).getUTCDay():ps(Sh(Tt.y,0,1)).getDay(),Tt.m=0,Tt.d="W"in Tt?(Tt.w+6)%7+7*Tt.W-(Ut+5)%7:Tt.w+7*Tt.U-(Ut+6)%7);return"Z"in Tt?(Tt.H+=Tt.Z/100|0,Tt.M+=Tt.Z%100,I2(Tt)):ps(Tt)}}function ie(Ot,It,Ct,mt){for(var Ut,Tt,Te=0,Ce=It.length,Qt=Ct.length;Te=Qt)return-1;if((Ut=It.charCodeAt(Te++))===37){if(Ut=It.charAt(Te++),!(Tt=se[Ut in gs?It.charAt(Te++):Ut])||(mt=Tt(Ot,Ct,mt))<0)return-1}else if(Ut!=Ct.charCodeAt(mt++))return-1}return mt}return At.x=jt(s,At),At.X=jt(u,At),At.c=jt(a,At),Zt.x=jt(s,Zt),Zt.X=jt(u,Zt),Zt.c=jt(a,Zt),{format:function(Ot){var It=jt(Ot+="",At);return It.toString=function(){return Ot},It},parse:function(Ot){var It=ne(Ot+="",!1);return It.toString=function(){return Ot},It},utcFormat:function(Ot){var It=jt(Ot+="",Zt);return It.toString=function(){return Ot},It},utcParse:function(Ot){var It=ne(Ot+="",!0);return It.toString=function(){return Ot},It}}}({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"]}),Gy=Ah.format,Ah.parse,Ah.utcFormat,Ah.utcParse;var I4=Array.prototype.find;function O4(){return this.firstElementChild}var $2=Array.prototype.filter;function R4(){return Array.from(this.children)}function bm(i){return new Array(i.length)}function C0(i,a){this.ownerDocument=i.ownerDocument,this.namespaceURI=i.namespaceURI,this._next=null,this._parent=i,this.__data__=a}function B4(i){return function(){return i}}function Wi(i,a,s,u,d,_){for(var m,x=0,C=a.length,A=_.length;xa?1:i>=a?0:NaN}C0.prototype={constructor:C0,appendChild:function(i){return this._parent.insertBefore(i,this._next)},insertBefore:function(i,a){return this._parent.insertBefore(i,a)},querySelector:function(i){return this._parent.querySelector(i)},querySelectorAll:function(i){return this._parent.querySelectorAll(i)}};var j2="http://www.w3.org/1999/xhtml";const Dh={svg:"http://www.w3.org/2000/svg",xhtml:j2,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function lu(i){var a=i+="",s=a.indexOf(":");return s>=0&&(a=i.slice(0,s))!=="xmlns"&&(i=i.slice(s+1)),Dh.hasOwnProperty(a)?{space:Dh[a],local:i}:i}function wm(i){return function(){this.removeAttribute(i)}}function Ua(i){return function(){this.removeAttributeNS(i.space,i.local)}}function P4(i,a){return function(){this.setAttribute(i,a)}}function U4(i,a){return function(){this.setAttributeNS(i.space,i.local,a)}}function z4(i,a){return function(){var s=a.apply(this,arguments);s==null?this.removeAttribute(i):this.setAttribute(i,s)}}function Y4(i,a){return function(){var s=a.apply(this,arguments);s==null?this.removeAttributeNS(i.space,i.local):this.setAttributeNS(i.space,i.local,s)}}function H2(i){return i.ownerDocument&&i.ownerDocument.defaultView||i.document&&i||i.defaultView}function $4(i){return function(){this.style.removeProperty(i)}}function j4(i,a,s){return function(){this.style.setProperty(i,a,s)}}function H4(i,a,s){return function(){var u=a.apply(this,arguments);u==null?this.style.removeProperty(i):this.style.setProperty(i,u,s)}}function uu(i,a){return i.style.getPropertyValue(a)||H2(i).getComputedStyle(i,null).getPropertyValue(a)}function q4(i){return function(){delete this[i]}}function W4(i,a){return function(){this[i]=a}}function G4(i,a){return function(){var s=a.apply(this,arguments);s==null?delete this[i]:this[i]=s}}function km(i){return i.trim().split(/^|\s+/)}function q2(i){return i.classList||new Ih(i)}function Ih(i){this._node=i,this._names=km(i.getAttribute("class")||"")}function gl(i,a){for(var s=q2(i),u=-1,d=a.length;++u=0&&(s=a.slice(u+1),a=a.slice(0,u)),{type:a,name:s}})}function Im(i){return function(){var a=this.__on;if(a){for(var s,u=0,d=-1,_=a.length;u<_;++u)s=a[u],i.type&&s.type!==i.type||s.name!==i.name?a[++d]=s:this.removeEventListener(s.type,s.listener,s.options);++d?a.length=d:delete this.__on}}}function Jn(i,a,s){return function(){var u,d=this.__on,_=function(C){return function(A){C.call(this,A,this.__data__)}}(a);if(d){for(var m=0,x=d.length;m=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};var hu=[null];function zr(i,a){this._groups=i,this._parents=a}function Vr(){return new zr([[document.documentElement]],hu)}zr.prototype=Vr.prototype={constructor:zr,select:function(i){typeof i!="function"&&(i=cu(i));for(var a=this._groups,s=a.length,u=new Array(s),d=0;d=se&&(se=Zt+1);!(At=wt[se])&&++se=0;)(u=d[_])&&(m&&4^u.compareDocumentPosition(m)&&m.parentNode.insertBefore(u,m),m=u);return this},sort:function(i){function a(Y,j){return Y&&j?i(Y.__data__,j.__data__):!Y-!j}i||(i=F4);for(var s=this._groups,u=s.length,d=new Array(u),_=0;_1?this.each((a==null?$4:typeof a=="function"?H4:j4)(i,a,s==null?"":s)):uu(this.node(),i)},property:function(i,a){return arguments.length>1?this.each((a==null?q4:typeof a=="function"?G4:W4)(i,a)):this.node()[i]},classed:function(i,a){var s=km(i+"");if(arguments.length<2){for(var u=q2(this.node()),d=-1,_=s.length;++d<_;)if(!u.contains(s[d]))return!1;return!0}return this.each((typeof a=="function"?M0:a?V4:Oh)(s,a))},text:function(i){return arguments.length?this.each(i==null?Em:(typeof i=="function"?Sm:Tm)(i)):this.node().textContent},html:function(i){return arguments.length?this.each(i==null?N0:(typeof i=="function"?G2:L0)(i)):this.node().innerHTML},raise:function(){return this.each(Am)},lower:function(){return this.each(Cm)},append:function(i){var a=typeof i=="function"?i:V2(i);return this.select(function(){return this.appendChild(a.apply(this,arguments))})},insert:function(i,a){var s=typeof i=="function"?i:V2(i),u=a==null?Lm:typeof a=="function"?a:cu(a);return this.select(function(){return this.insertBefore(s.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(Dm)},clone:function(i){return this.select(i?D0:Cc)},datum:function(i){return arguments.length?this.property("__data__",i):this.node().__data__},on:function(i,a,s){var u,d,_=I0(i+""),m=_.length;if(!(arguments.length<2)){for(x=a?Jn:Im,u=0;uys)if(Math.abs(B*x-C*A)>ys&&d){var j=s-_,X=u-m,vt=x*x+C*C,ut=j*j+X*X,wt=Math.sqrt(vt),xt=Math.sqrt(Y),Dt=d*Math.tan((ga-Math.acos((vt+Y-ut)/(2*wt*xt)))/2),At=Dt/xt,Zt=Dt/wt;Math.abs(At-1)>ys&&(this._+="L"+(i+At*A)+","+(a+At*B)),this._+="A"+d+","+d+",0,0,"+ +(B*j>A*X)+","+(this._x1=i+Zt*x)+","+(this._y1=a+Zt*C)}else this._+="L"+(this._x1=i)+","+(this._y1=a)},arc:function(i,a,s,u,d,_){i=+i,a=+a,_=!!_;var m=(s=+s)*Math.cos(u),x=s*Math.sin(u),C=i+m,A=a+x,B=1^_,Y=_?u-d:d-u;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+C+","+A:(Math.abs(this._x1-C)>ys||Math.abs(this._y1-A)>ys)&&(this._+="L"+C+","+A),s&&(Y<0&&(Y=Y%Mn+Mn),Y>Om?this._+="A"+s+","+s+",0,1,"+B+","+(i-m)+","+(a-x)+"A"+s+","+s+",0,1,"+B+","+(this._x1=C)+","+(this._y1=A):Y>ys&&(this._+="A"+s+","+s+",0,"+ +(Y>=ga)+","+B+","+(this._x1=i+s*Math.cos(d))+","+(this._y1=a+s*Math.sin(d))))},rect:function(i,a,s,u){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+a)+"h"+ +s+"v"+ +u+"h"+-s+"Z"},toString:function(){return this._}};const xn=O0;function Nr(i){return function(){return i}}var Di=Math.abs,na=Math.atan2,Nc=Math.cos,za=Math.max,R0=Math.min,Lr=Math.sin,Ws=Math.sqrt,Ya=1e-12,du=Math.PI,pu=du/2,Bh=2*du;function Yo(i){return i>1?0:i<-1?du:Math.acos(i)}function Z2(i){return i>=1?pu:i<=-1?-pu:Math.asin(i)}function Rm(i){return i.innerRadius}function X2(i){return i.outerRadius}function K2(i){return i.startAngle}function J2(i){return i.endAngle}function B0(i){return i&&i.padAngle}function F0(i,a,s,u,d,_,m,x){var C=s-i,A=u-a,B=m-d,Y=x-_,j=Y*C-B*A;if(!(j*jTt*Tt+Te*Te&&(ie=It,Ot=Ct),{cx:ie,cy:Ot,x01:-B,y01:-Y,x11:ie*(d/se-1),y11:Ot*(d/se-1)}}function Q2(){var i=Rm,a=X2,s=Nr(0),u=null,d=K2,_=J2,m=B0,x=null;function C(){var A,B,Y=+i.apply(this,arguments),j=+a.apply(this,arguments),X=d.apply(this,arguments)-pu,vt=_.apply(this,arguments)-pu,ut=Di(vt-X),wt=vt>X;if(x||(x=A=xn()),jYa)if(ut>Bh-Ya)x.moveTo(j*Nc(X),j*Lr(X)),x.arc(0,0,j,X,vt,!wt),Y>Ya&&(x.moveTo(Y*Nc(vt),Y*Lr(vt)),x.arc(0,0,Y,vt,X,wt));else{var xt,Dt,At=X,Zt=vt,se=X,jt=vt,ne=ut,ie=ut,Ot=m.apply(this,arguments)/2,It=Ot>Ya&&(u?+u.apply(this,arguments):Ws(Y*Y+j*j)),Ct=R0(Di(j-Y)/2,+s.apply(this,arguments)),mt=Ct,Ut=Ct;if(It>Ya){var Tt=Z2(It/Y*Lr(Ot)),Te=Z2(It/j*Lr(Ot));(ne-=2*Tt)>Ya?(se+=Tt*=wt?1:-1,jt-=Tt):(ne=0,se=jt=(X+vt)/2),(ie-=2*Te)>Ya?(At+=Te*=wt?1:-1,Zt-=Te):(ie=0,At=Zt=(X+vt)/2)}var Ce=j*Nc(At),Qt=j*Lr(At),ke=Y*Nc(jt),pe=Y*Lr(jt);if(Ct>Ya){var Ee,ze=j*Nc(Zt),je=j*Lr(Zt),yn=Y*Nc(se),cn=Y*Lr(se);if(utYa?Ut>Ya?(xt=ho(yn,cn,Ce,Qt,j,Ut,wt),Dt=ho(ze,je,ke,pe,j,Ut,wt),x.moveTo(xt.cx+xt.x01,xt.cy+xt.y01),UtYa&&ne>Ya?mt>Ya?(xt=ho(ke,pe,ze,je,Y,-mt,wt),Dt=ho(Ce,Qt,yn,cn,Y,-mt,wt),x.lineTo(xt.cx+xt.x01,xt.cy+xt.y01),mti?1:a>=i?0:NaN}function gu(i){return i}function yu(){}function yl(i,a,s){i._context.bezierCurveTo((2*i._x0+i._x1)/3,(2*i._y0+i._y1)/3,(i._x0+2*i._x1)/3,(i._y0+2*i._y1)/3,(i._x0+4*i._x1+a)/6,(i._y0+4*i._y1+s)/6)}function Fh(i){this._context=i}function Qr(i){return new Fh(i)}function $a(i){this._context=i}function mi(i){this._context=i}function Ja(i){this._context=i}function Lc(i){return i<0?-1:1}function tp(i,a,s){var u=i._x1-i._x0,d=a-i._x1,_=(i._y1-i._y0)/(u||d<0&&-0),m=(s-i._y1)/(d||u<0&&-0),x=(_*d+m*u)/(u+d);return(Lc(_)+Lc(m))*Math.min(Math.abs(_),Math.abs(m),.5*Math.abs(x))||0}function ep(i,a){var s=i._x1-i._x0;return s?(3*(i._y1-i._y0)/s-a)/2:a}function Dc(i,a,s){var u=i._x0,d=i._y0,_=i._x1,m=i._y1,x=(_-u)/3;i._context.bezierCurveTo(u+x,d+x*a,_-x,m-x*s,_,m)}function jo(i){this._context=i}function ms(i){this._context=new mu(i)}function mu(i){this._context=i}function Ph(i){this._context=i}function Uh(i){var a,s,u=i.length-1,d=new Array(u),_=new Array(u),m=new Array(u);for(d[0]=0,_[0]=2,m[0]=i[0]+2*i[1],a=1;a=0;--a)d[a]=(m[a]-d[a+1])/_[a];for(_[u-1]=(i[u]+d[u-1])/2,a=0;a=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,a),this._context.lineTo(i,a);else{var s=this._x*(1-this._t)+i*this._t;this._context.lineTo(s,this._y),this._context.lineTo(s,a)}}this._x=i,this._y=a}};var _u=new Date,vu=new Date;function wo(i,a,s,u){function d(_){return i(_=arguments.length===0?new Date:new Date(+_)),_}return d.floor=function(_){return i(_=new Date(+_)),_},d.ceil=function(_){return i(_=new Date(_-1)),a(_,1),i(_),_},d.round=function(_){var m=d(_),x=d.ceil(_);return _-m0))return A;do A.push(C=new Date(+_)),a(_,x),i(_);while(C<_&&_=m)for(;i(m),!_(m);)m.setTime(m-1)},function(m,x){if(m>=m)if(x<0)for(;++x<=0;)for(;a(m,-1),!_(m););else for(;--x>=0;)for(;a(m,1),!_(m););})},s&&(d.count=function(_,m){return _u.setTime(+_),vu.setTime(+m),i(_u),i(vu),Math.floor(s(_u,vu))},d.every=function(_){return _=Math.floor(_),isFinite(_)&&_>0?_>1?d.filter(u?function(m){return u(m)%_==0}:function(m){return d.count(0,m)%_==0}):d:null}),d}const zh=864e5,z0=6048e5;function Gs(i){return wo(function(a){a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-i)%7),a.setUTCHours(0,0,0,0)},function(a,s){a.setUTCDate(a.getUTCDate()+7*s)},function(a,s){return(s-a)/z0})}var np=Gs(0),Y0=Gs(1);Gs(2),Gs(3);var bu=Gs(4);Gs(5),Gs(6);var ja=wo(function(i){i.setUTCHours(0,0,0,0)},function(i,a){i.setUTCDate(i.getUTCDate()+a)},function(i,a){return(a-i)/zh},function(i){return i.getUTCDate()-1});const Ca=ja;function Ii(i){return wo(function(a){a.setDate(a.getDate()-(a.getDay()+7-i)%7),a.setHours(0,0,0,0)},function(a,s){a.setDate(a.getDate()+7*s)},function(a,s){return(s-a-6e4*(s.getTimezoneOffset()-a.getTimezoneOffset()))/z0})}var Yh=Ii(0),Ho=Ii(1);Ii(2),Ii(3);var _l=Ii(4);Ii(5),Ii(6);var Pm=wo(i=>i.setHours(0,0,0,0),(i,a)=>i.setDate(i.getDate()+a),(i,a)=>(a-i-6e4*(a.getTimezoneOffset()-i.getTimezoneOffset()))/zh,i=>i.getDate()-1);const rp=Pm;var ip=wo(function(i){i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,a){i.setFullYear(i.getFullYear()+a)},function(i,a){return a.getFullYear()-i.getFullYear()},function(i){return i.getFullYear()});ip.every=function(i){return isFinite(i=Math.floor(i))&&i>0?wo(function(a){a.setFullYear(Math.floor(a.getFullYear()/i)*i),a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,s){a.setFullYear(a.getFullYear()+s*i)}):null};const xu=ip;var Um=wo(function(i){i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,a){i.setUTCFullYear(i.getUTCFullYear()+a)},function(i,a){return a.getUTCFullYear()-i.getUTCFullYear()},function(i){return i.getUTCFullYear()});Um.every=function(i){return isFinite(i=Math.floor(i))&&i>0?wo(function(a){a.setUTCFullYear(Math.floor(a.getUTCFullYear()/i)*i),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,s){a.setUTCFullYear(a.getUTCFullYear()+s*i)}):null};const $h=Um;function Ha(i){if(0<=i.y&&i.y<100){var a=new Date(-1,i.m,i.d,i.H,i.M,i.S,i.L);return a.setFullYear(i.y),a}return new Date(i.y,i.m,i.d,i.H,i.M,i.S,i.L)}function ap(i){if(0<=i.y&&i.y<100){var a=new Date(Date.UTC(-1,i.m,i.d,i.H,i.M,i.S,i.L));return a.setUTCFullYear(i.y),a}return new Date(Date.UTC(i.y,i.m,i.d,i.H,i.M,i.S,i.L))}function wu(i,a,s){return{y:i,m:a,d:s,H:0,M:0,S:0,L:0}}var jh,fo,$0={"-":"",_:" ",0:"0"},Ti=/^\s*\d+/,zm=/^%/,X4=/[\\^$*+?|[\]().{}]/g;function Dr(i,a,s){var u=i<0?"-":"",d=(u?-i:i)+"",_=d.length;return u+(_[a.toLowerCase(),s]))}function K4(i,a,s){var u=Ti.exec(a.slice(s,s+1));return u?(i.w=+u[0],s+u[0].length):-1}function $m(i,a,s){var u=Ti.exec(a.slice(s,s+1));return u?(i.u=+u[0],s+u[0].length):-1}function J4(i,a,s){var u=Ti.exec(a.slice(s,s+2));return u?(i.U=+u[0],s+u[0].length):-1}function ku(i,a,s){var u=Ti.exec(a.slice(s,s+2));return u?(i.V=+u[0],s+u[0].length):-1}function op(i,a,s){var u=Ti.exec(a.slice(s,s+2));return u?(i.W=+u[0],s+u[0].length):-1}function j0(i,a,s){var u=Ti.exec(a.slice(s,s+4));return u?(i.y=+u[0],s+u[0].length):-1}function H0(i,a,s){var u=Ti.exec(a.slice(s,s+2));return u?(i.y=+u[0]+(+u[0]>68?1900:2e3),s+u[0].length):-1}function jm(i,a,s){var u=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(s,s+6));return u?(i.Z=u[1]?0:-(u[2]+(u[3]||"00")),s+u[0].length):-1}function Hm(i,a,s){var u=Ti.exec(a.slice(s,s+1));return u?(i.q=3*u[0]-3,s+u[0].length):-1}function qm(i,a,s){var u=Ti.exec(a.slice(s,s+2));return u?(i.m=u[0]-1,s+u[0].length):-1}function sp(i,a,s){var u=Ti.exec(a.slice(s,s+2));return u?(i.d=+u[0],s+u[0].length):-1}function Wm(i,a,s){var u=Ti.exec(a.slice(s,s+3));return u?(i.m=0,i.d=+u[0],s+u[0].length):-1}function cp(i,a,s){var u=Ti.exec(a.slice(s,s+2));return u?(i.H=+u[0],s+u[0].length):-1}function Q4(i,a,s){var u=Ti.exec(a.slice(s,s+2));return u?(i.M=+u[0],s+u[0].length):-1}function Gm(i,a,s){var u=Ti.exec(a.slice(s,s+2));return u?(i.S=+u[0],s+u[0].length):-1}function q0(i,a,s){var u=Ti.exec(a.slice(s,s+3));return u?(i.L=+u[0],s+u[0].length):-1}function W0(i,a,s){var u=Ti.exec(a.slice(s,s+6));return u?(i.L=Math.floor(u[0]/1e3),s+u[0].length):-1}function Vm(i,a,s){var u=zm.exec(a.slice(s,s+1));return u?s+u[0].length:-1}function Zm(i,a,s){var u=Ti.exec(a.slice(s));return u?(i.Q=+u[0],s+u[0].length):-1}function lp(i,a,s){var u=Ti.exec(a.slice(s));return u?(i.s=+u[0],s+u[0].length):-1}function G0(i,a){return Dr(i.getDate(),a,2)}function Xm(i,a){return Dr(i.getHours(),a,2)}function Km(i,a){return Dr(i.getHours()%12||12,a,2)}function t5(i,a){return Dr(1+rp.count(xu(i),i),a,3)}function Jm(i,a){return Dr(i.getMilliseconds(),a,3)}function up(i,a){return Jm(i,a)+"000"}function Qm(i,a){return Dr(i.getMonth()+1,a,2)}function Wh(i,a){return Dr(i.getMinutes(),a,2)}function V0(i,a){return Dr(i.getSeconds(),a,2)}function Z0(i){var a=i.getDay();return a===0?7:a}function e5(i,a){return Dr(Yh.count(xu(i)-1,i),a,2)}function X0(i){var a=i.getDay();return a>=4||a===0?_l(i):_l.ceil(i)}function K0(i,a){return i=X0(i),Dr(_l.count(xu(i),i)+(xu(i).getDay()===4),a,2)}function J0(i){return i.getDay()}function hp(i,a){return Dr(Ho.count(xu(i)-1,i),a,2)}function Eu(i,a){return Dr(i.getFullYear()%100,a,2)}function n5(i,a){return Dr((i=X0(i)).getFullYear()%100,a,2)}function r5(i,a){return Dr(i.getFullYear()%1e4,a,4)}function i5(i,a){var s=i.getDay();return Dr((i=s>=4||s===0?_l(i):_l.ceil(i)).getFullYear()%1e4,a,4)}function t_(i){var a=i.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+Dr(a/60|0,"0",2)+Dr(a%60,"0",2)}function Q0(i,a){return Dr(i.getUTCDate(),a,2)}function a5(i,a){return Dr(i.getUTCHours(),a,2)}function tf(i,a){return Dr(i.getUTCHours()%12||12,a,2)}function e_(i,a){return Dr(1+Ca.count($h(i),i),a,3)}function fp(i,a){return Dr(i.getUTCMilliseconds(),a,3)}function ef(i,a){return fp(i,a)+"000"}function n_(i,a){return Dr(i.getUTCMonth()+1,a,2)}function r_(i,a){return Dr(i.getUTCMinutes(),a,2)}function i_(i,a){return Dr(i.getUTCSeconds(),a,2)}function o5(i){var a=i.getUTCDay();return a===0?7:a}function a_(i,a){return Dr(np.count($h(i)-1,i),a,2)}function o_(i){var a=i.getUTCDay();return a>=4||a===0?bu(i):bu.ceil(i)}function s_(i,a){return i=o_(i),Dr(bu.count($h(i),i)+($h(i).getUTCDay()===4),a,2)}function c_(i){return i.getUTCDay()}function l_(i,a){return Dr(Y0.count($h(i)-1,i),a,2)}function s5(i,a){return Dr(i.getUTCFullYear()%100,a,2)}function c5(i,a){return Dr((i=o_(i)).getUTCFullYear()%100,a,2)}function Gh(i,a){return Dr(i.getUTCFullYear()%1e4,a,4)}function u_(i,a){var s=i.getUTCDay();return Dr((i=s>=4||s===0?bu(i):bu.ceil(i)).getUTCFullYear()%1e4,a,4)}function h_(){return"+0000"}function nf(){return"%"}function rf(i){return+i}function af(i){return Math.floor(+i/1e3)}jh=function(i){var a=i.dateTime,s=i.date,u=i.time,d=i.periods,_=i.days,m=i.shortDays,x=i.months,C=i.shortMonths,A=Hh(d),B=qh(d),Y=Hh(_),j=qh(_),X=Hh(m),vt=qh(m),ut=Hh(x),wt=qh(x),xt=Hh(C),Dt=qh(C),At={a:function(Ot){return m[Ot.getDay()]},A:function(Ot){return _[Ot.getDay()]},b:function(Ot){return C[Ot.getMonth()]},B:function(Ot){return x[Ot.getMonth()]},c:null,d:G0,e:G0,f:up,g:n5,G:i5,H:Xm,I:Km,j:t5,L:Jm,m:Qm,M:Wh,p:function(Ot){return d[+(Ot.getHours()>=12)]},q:function(Ot){return 1+~~(Ot.getMonth()/3)},Q:rf,s:af,S:V0,u:Z0,U:e5,V:K0,w:J0,W:hp,x:null,X:null,y:Eu,Y:r5,Z:t_,"%":nf},Zt={a:function(Ot){return m[Ot.getUTCDay()]},A:function(Ot){return _[Ot.getUTCDay()]},b:function(Ot){return C[Ot.getUTCMonth()]},B:function(Ot){return x[Ot.getUTCMonth()]},c:null,d:Q0,e:Q0,f:ef,g:c5,G:u_,H:a5,I:tf,j:e_,L:fp,m:n_,M:r_,p:function(Ot){return d[+(Ot.getUTCHours()>=12)]},q:function(Ot){return 1+~~(Ot.getUTCMonth()/3)},Q:rf,s:af,S:i_,u:o5,U:a_,V:s_,w:c_,W:l_,x:null,X:null,y:s5,Y:Gh,Z:h_,"%":nf},se={a:function(Ot,It,Ct){var mt=X.exec(It.slice(Ct));return mt?(Ot.w=vt.get(mt[0].toLowerCase()),Ct+mt[0].length):-1},A:function(Ot,It,Ct){var mt=Y.exec(It.slice(Ct));return mt?(Ot.w=j.get(mt[0].toLowerCase()),Ct+mt[0].length):-1},b:function(Ot,It,Ct){var mt=xt.exec(It.slice(Ct));return mt?(Ot.m=Dt.get(mt[0].toLowerCase()),Ct+mt[0].length):-1},B:function(Ot,It,Ct){var mt=ut.exec(It.slice(Ct));return mt?(Ot.m=wt.get(mt[0].toLowerCase()),Ct+mt[0].length):-1},c:function(Ot,It,Ct){return ie(Ot,a,It,Ct)},d:sp,e:sp,f:W0,g:H0,G:j0,H:cp,I:cp,j:Wm,L:q0,m:qm,M:Q4,p:function(Ot,It,Ct){var mt=A.exec(It.slice(Ct));return mt?(Ot.p=B.get(mt[0].toLowerCase()),Ct+mt[0].length):-1},q:Hm,Q:Zm,s:lp,S:Gm,u:$m,U:J4,V:ku,w:K4,W:op,x:function(Ot,It,Ct){return ie(Ot,s,It,Ct)},X:function(Ot,It,Ct){return ie(Ot,u,It,Ct)},y:H0,Y:j0,Z:jm,"%":Vm};function jt(Ot,It){return function(Ct){var mt,Ut,Tt,Te=[],Ce=-1,Qt=0,ke=Ot.length;for(Ct instanceof Date||(Ct=new Date(+Ct));++Ce53)return null;"w"in Tt||(Tt.w=1),"Z"in Tt?(Ut=(mt=ap(wu(Tt.y,0,1))).getUTCDay(),mt=Ut>4||Ut===0?Y0.ceil(mt):Y0(mt),mt=Ca.offset(mt,7*(Tt.V-1)),Tt.y=mt.getUTCFullYear(),Tt.m=mt.getUTCMonth(),Tt.d=mt.getUTCDate()+(Tt.w+6)%7):(Ut=(mt=Ha(wu(Tt.y,0,1))).getDay(),mt=Ut>4||Ut===0?Ho.ceil(mt):Ho(mt),mt=rp.offset(mt,7*(Tt.V-1)),Tt.y=mt.getFullYear(),Tt.m=mt.getMonth(),Tt.d=mt.getDate()+(Tt.w+6)%7)}else("W"in Tt||"U"in Tt)&&("w"in Tt||(Tt.w="u"in Tt?Tt.u%7:"W"in Tt?1:0),Ut="Z"in Tt?ap(wu(Tt.y,0,1)).getUTCDay():Ha(wu(Tt.y,0,1)).getDay(),Tt.m=0,Tt.d="W"in Tt?(Tt.w+6)%7+7*Tt.W-(Ut+5)%7:Tt.w+7*Tt.U-(Ut+6)%7);return"Z"in Tt?(Tt.H+=Tt.Z/100|0,Tt.M+=Tt.Z%100,ap(Tt)):Ha(Tt)}}function ie(Ot,It,Ct,mt){for(var Ut,Tt,Te=0,Ce=It.length,Qt=Ct.length;Te=Qt)return-1;if((Ut=It.charCodeAt(Te++))===37){if(Ut=It.charAt(Te++),!(Tt=se[Ut in $0?It.charAt(Te++):Ut])||(mt=Tt(Ot,Ct,mt))<0)return-1}else if(Ut!=Ct.charCodeAt(mt++))return-1}return mt}return At.x=jt(s,At),At.X=jt(u,At),At.c=jt(a,At),Zt.x=jt(s,Zt),Zt.X=jt(u,Zt),Zt.c=jt(a,Zt),{format:function(Ot){var It=jt(Ot+="",At);return It.toString=function(){return Ot},It},parse:function(Ot){var It=ne(Ot+="",!1);return It.toString=function(){return Ot},It},utcFormat:function(Ot){var It=jt(Ot+="",Zt);return It.toString=function(){return Ot},It},utcParse:function(Ot){var It=ne(Ot+="",!0);return It.toString=function(){return Ot},It}}}({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"]}),fo=jh.format,jh.parse,jh.utcFormat,jh.utcParse;var dp={value:()=>{}};function Vs(){for(var i,a=0,s=arguments.length,u={};a=0&&(u=s.slice(d+1),s=s.slice(0,d)),s&&!a.hasOwnProperty(s))throw new Error("unknown type: "+s);return{type:s,name:u}})}function f_(i,a){for(var s,u=0,d=i.length;u0)for(var s,u,d=new Array(s),_=0;_=0&&a._call.call(void 0,i),a=a._next;--_s})()}finally{_s=0,function(){for(var i,a,s=Zs,u=1/0;s;)s._call?(u>s._time&&(u=s._time),i=s,s=s._next):(a=s._next,s._next=null,s=i?i._next=a:Zs=a);Ic=i,Qh(u)}(),Rc=0}}function Tu(){var i=Qa.now(),a=i-vl;a>1e3&&(Zh-=a,vl=i)}function Qh(i){_s||(Oc&&(Oc=clearTimeout(Oc)),i-Rc>24?(i<1/0&&(Oc=setTimeout(Jh,i-Qa.now()-Zh)),Vh&&(Vh=clearInterval(Vh))):(Vh||(vl=Qa.now(),Vh=setInterval(Tu,1e3)),_s=1,qo(Jh)))}function sf(i,a,s){var u=new Bc;return a=a==null?0:+a,u.restart(d=>{u.stop(),i(d+a)},a,s),u}Bc.prototype=Kh.prototype={constructor:Bc,restart:function(i,a,s){if(typeof i!="function")throw new TypeError("callback is not a function");s=(s==null?Xh():+s)+(a==null?0:+a),this._next||Ic===this||(Ic?Ic._next=this:Zs=this,Ic=this),this._call=i,this._time=s,Qh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qh())}};var t1=p_("start","end","cancel","interrupt"),Wo=[];function vs(i,a,s,u,d,_){var m=i.__transition;if(m){if(s in m)return}else i.__transition={};(function(x,C,A){var B,Y=x.__transition;function j(ut){var wt,xt,Dt,At;if(A.state!==1)return vt();for(wt in Y)if((At=Y[wt]).name===A.name){if(At.state===3)return sf(j);At.state===4?(At.state=6,At.timer.stop(),At.on.call("interrupt",x,x.__data__,At.index,At.group),delete Y[wt]):+wt0)throw new Error("too late; already scheduled");return s}function bs(i,a){var s=Go(i,a);if(s.state>3)throw new Error("too late; already running");return s}function Go(i,a){var s=i.__transition;if(!s||!(s=s[a]))throw new Error("transition not found");return s}function Xs(i,a){return i=+i,a=+a,function(s){return i*(1-s)+a*s}}var lf,g_=180/Math.PI,gp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function yp(i,a,s,u,d,_){var m,x,C;return(m=Math.sqrt(i*i+a*a))&&(i/=m,a/=m),(C=i*s+a*u)&&(s-=i*C,u-=a*C),(x=Math.sqrt(s*s+u*u))&&(s/=x,u/=x,C/=x),i*u180?B+=360:B-A>180&&(A+=360),j.push({i:Y.push(d(Y)+"rotate(",null,u)-2,x:Xs(A,B)})):B&&Y.push(d(Y)+"rotate("+B+u)}(_.rotate,m.rotate,x,C),function(A,B,Y,j){A!==B?j.push({i:Y.push(d(Y)+"skewX(",null,u)-2,x:Xs(A,B)}):B&&Y.push(d(Y)+"skewX("+B+u)}(_.skewX,m.skewX,x,C),function(A,B,Y,j,X,vt){if(A!==Y||B!==j){var ut=X.push(d(X)+"scale(",null,",",null,")");vt.push({i:ut-4,x:Xs(A,Y)},{i:ut-2,x:Xs(B,j)})}else Y===1&&j===1||X.push(d(X)+"scale("+Y+","+j+")")}(_.scaleX,_.scaleY,m.scaleX,m.scaleY,x,C),_=m=null,function(A){for(var B,Y=-1,j=C.length;++Y_&&(d=a.slice(_,d),x[m]?x[m]+=d:x[++m]=d),(s=s[0])===(u=u[0])?x[m]?x[m]+=u:x[++m]=u:(x[++m]=null,C.push({i:m,x:Xs(s,u)})),_=Au.lastIndex;return _=0&&(x=x.slice(0,C)),!x||x==="start"})}(a)?cf:bs;return function(){var m=_(this,i),x=m.on;x!==u&&(d=(u=x).copy()).on(a,s),m.on=d}}var k_=Fn.prototype.constructor;function Vo(i){return function(){this.style.removeProperty(i)}}function Tp(i,a,s){return function(u){this.style.setProperty(i,a.call(this,u),s)}}function Sp(i,a,s){var u,d;function _(){var m=a.apply(this,arguments);return m!==d&&(u=(d=m)&&Tp(i,m,s)),u}return _._value=a,_}function E_(i){return function(a){this.textContent=i.call(this,a)}}function hf(i){var a,s;function u(){var d=i.apply(this,arguments);return d!==s&&(a=(s=d)&&E_(d)),a}return u._value=i,u}var T_=0;function Ks(i,a,s,u){this._groups=i,this._parents=a,this._name=s,this._id=u}function Ap(){return++T_}var po=Fn.prototype;Ks.prototype={constructor:Ks,select:function(i){var a=this._name,s=this._id;typeof i!="function"&&(i=cu(i));for(var u=this._groups,d=u.length,_=new Array(d),m=0;m2&&u.state<5,u.state=6,u.timer.stop(),u.on.call(d?"interrupt":"cancel",a,a.__data__,u.index,u.group),delete m[_]):x=!1;x&&delete a.__transition}})(this,i)})},Fn.prototype.transition=function(i){var a,s;i instanceof Ks?(a=i._id,i=i._name):(a=Ap(),(s=Cp).time=Xh(),i=i==null?null:i+"");for(var u=this._groups,d=u.length,_=0;_a?1:i>=a?0:NaN}Fc.prototype={constructor:Fc,appendChild:function(i){return this._parent.insertBefore(i,this._next)},insertBefore:function(i,a){return this._parent.insertBefore(i,a)},querySelector:function(i){return this._parent.querySelector(i)},querySelectorAll:function(i){return this._parent.querySelectorAll(i)}};var l1="http://www.w3.org/1999/xhtml";const C_={svg:"http://www.w3.org/2000/svg",xhtml:l1,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function df(i){var a=i+="",s=a.indexOf(":");return s>=0&&(a=i.slice(0,s))!=="xmlns"&&(i=i.slice(s+1)),C_.hasOwnProperty(a)?{space:C_[a],local:i}:i}function Op(i){return function(){this.removeAttribute(i)}}function x5(i){return function(){this.removeAttributeNS(i.space,i.local)}}function Rp(i,a){return function(){this.setAttribute(i,a)}}function w5(i,a){return function(){this.setAttributeNS(i.space,i.local,a)}}function Bp(i,a){return function(){var s=a.apply(this,arguments);s==null?this.removeAttribute(i):this.setAttribute(i,s)}}function k5(i,a){return function(){var s=a.apply(this,arguments);s==null?this.removeAttributeNS(i.space,i.local):this.setAttributeNS(i.space,i.local,s)}}function pf(i){return i.ownerDocument&&i.ownerDocument.defaultView||i.document&&i||i.defaultView}function E5(i){return function(){this.style.removeProperty(i)}}function T5(i,a,s){return function(){this.style.setProperty(i,a,s)}}function S5(i,a,s){return function(){var u=a.apply(this,arguments);u==null?this.style.removeProperty(i):this.style.setProperty(i,u,s)}}function Cu(i,a){return i.style.getPropertyValue(a)||pf(i).getComputedStyle(i,null).getPropertyValue(a)}function A5(i){return function(){delete this[i]}}function C5(i,a){return function(){this[i]=a}}function Fp(i,a){return function(){var s=a.apply(this,arguments);s==null?delete this[i]:this[i]=s}}function M_(i){return i.trim().split(/^|\s+/)}function Pp(i){return i.classList||new Up(i)}function Up(i){this._node=i,this._names=M_(i.getAttribute("class")||"")}function xl(i,a){for(var s=Pp(i),u=-1,d=a.length;++u=0&&(s=a.slice(u+1),a=a.slice(0,u)),{type:a,name:s}})}function I5(i){return function(){var a=this.__on;if(a){for(var s,u=0,d=-1,_=a.length;u<_;++u)s=a[u],i.type&&s.type!==i.type||s.name!==i.name?a[++d]=s:this.removeEventListener(s.type,s.listener,s.options);++d?a.length=d:delete this.__on}}}function U_(i,a,s){return function(){var u,d=this.__on,_=function(C){return function(A){C.call(this,A,this.__data__)}}(a);if(d){for(var m=0,x=d.length;m=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};var h1=[null];function Zo(i,a){this._groups=i,this._parents=a}function $_(){return new Zo([[document.documentElement]],h1)}Zo.prototype=$_.prototype={constructor:Zo,select:function(i){typeof i!="function"&&(i=Np(i));for(var a=this._groups,s=a.length,u=new Array(s),d=0;d=se&&(se=Zt+1);!(At=wt[se])&&++se=0;)(u=d[_])&&(m&&4^u.compareDocumentPosition(m)&&m.parentNode.insertBefore(u,m),m=u);return this},sort:function(i){function a(Y,j){return Y&&j?i(Y.__data__,j.__data__):!Y-!j}i||(i=b5);for(var s=this._groups,u=s.length,d=new Array(u),_=0;_1?this.each((a==null?E5:typeof a=="function"?S5:T5)(i,a,s==null?"":s)):Cu(this.node(),i)},property:function(i,a){return arguments.length>1?this.each((a==null?A5:typeof a=="function"?Fp:C5)(i,a)):this.node()[i]},classed:function(i,a){var s=M_(i+"");if(arguments.length<2){for(var u=Pp(this.node()),d=-1,_=s.length;++d<_;)if(!u.contains(s[d]))return!1;return!0}return this.each((typeof a=="function"?gf:a?L_:M5)(s,a))},text:function(i){return arguments.length?this.each(i==null?D_:(typeof i=="function"?N5:zp)(i)):this.node().textContent},html:function(i){return arguments.length?this.each(i==null?u1:(typeof i=="function"?O_:I_)(i)):this.node().innerHTML},raise:function(){return this.each(R_)},lower:function(){return this.each(B_)},append:function(i){var a=typeof i=="function"?i:P_(i);return this.select(function(){return this.appendChild(a.apply(this,arguments))})},insert:function(i,a){var s=typeof i=="function"?i:P_(i),u=a==null?L5:typeof a=="function"?a:Np(a);return this.select(function(){return this.insertBefore(s.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(mf)},clone:function(i){return this.select(i?Mu:wl)},datum:function(i){return arguments.length?this.property("__data__",i):this.node().__data__},on:function(i,a,s){var u,d,_=D5(i+""),m=_.length;if(!(arguments.length<2)){for(x=a?U_:I5,u=0;u{}};function j_(){for(var i,a=0,s=arguments.length,u={};a=0&&(u=s.slice(d+1),s=s.slice(0,d)),s&&!a.hasOwnProperty(s))throw new Error("unknown type: "+s);return{type:s,name:u}})}function Yp(i,a){for(var s,u=0,d=i.length;u0)for(var s,u,d=new Array(s),_=0;_=0&&a._call.call(void 0,i),a=a._next;--Nu})()}finally{Nu=0,function(){for(var i,a,s=xf,u=1/0;s;)s._call?(u>s._time&&(u=s._time),i=s,s=s._next):(a=s._next,s._next=null,s=i?i._next=a:xf=a);Pc=i,Ef(u)}(),zc=0}}function q_(){var i=p1.now(),a=i-d1;a>1e3&&(wf-=a,d1=i)}function Ef(i){Nu||(Uc&&(Uc=clearTimeout(Uc)),i-zc>24?(i<1/0&&(Uc=setTimeout(Du,i-p1.now()-wf)),Lu&&(Lu=clearInterval(Lu))):(Lu||(d1=p1.now(),Lu=setInterval(q_,1e3)),Nu=1,H_(Du)))}function Hp(i,a,s){var u=new kf;return a=a==null?0:+a,u.restart(d=>{u.stop(),i(d+a)},a,s),u}kf.prototype=jp.prototype={constructor:kf,restart:function(i,a,s){if(typeof i!="function")throw new TypeError("callback is not a function");s=(s==null?$p():+s)+(a==null?0:+a),this._next||Pc===this||(Pc?Pc._next=this:xf=this,Pc=this),this._call=i,this._time=s,Ef()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ef())}};var P5=B5("start","end","cancel","interrupt"),U5=[];function Tf(i,a,s,u,d,_){var m=i.__transition;if(m){if(s in m)return}else i.__transition={};(function(x,C,A){var B,Y=x.__transition;function j(ut){var wt,xt,Dt,At;if(A.state!==1)return vt();for(wt in Y)if((At=Y[wt]).name===A.name){if(At.state===3)return Hp(j);At.state===4?(At.state=6,At.timer.stop(),At.on.call("interrupt",x,x.__data__,At.index,At.group),delete Y[wt]):+wt0)throw new Error("too late; already scheduled");return s}function xs(i,a){var s=Xo(i,a);if(s.state>3)throw new Error("too late; already running");return s}function Xo(i,a){var s=i.__transition;if(!s||!(s=s[a]))throw new Error("transition not found");return s}function Js(i,a){return i=+i,a=+a,function(s){return i*(1-s)+a*s}}var Af,g1=180/Math.PI,qp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function W_(i,a,s,u,d,_){var m,x,C;return(m=Math.sqrt(i*i+a*a))&&(i/=m,a/=m),(C=i*s+a*u)&&(s-=i*C,u-=a*C),(x=Math.sqrt(s*s+u*u))&&(s/=x,u/=x,C/=x),i*u180?B+=360:B-A>180&&(A+=360),j.push({i:Y.push(d(Y)+"rotate(",null,u)-2,x:Js(A,B)})):B&&Y.push(d(Y)+"rotate("+B+u)}(_.rotate,m.rotate,x,C),function(A,B,Y,j){A!==B?j.push({i:Y.push(d(Y)+"skewX(",null,u)-2,x:Js(A,B)}):B&&Y.push(d(Y)+"skewX("+B+u)}(_.skewX,m.skewX,x,C),function(A,B,Y,j,X,vt){if(A!==Y||B!==j){var ut=X.push(d(X)+"scale(",null,",",null,")");vt.push({i:ut-4,x:Js(A,Y)},{i:ut-2,x:Js(B,j)})}else Y===1&&j===1||X.push(d(X)+"scale("+Y+","+j+")")}(_.scaleX,_.scaleY,m.scaleX,m.scaleY,x,C),_=m=null,function(A){for(var B,Y=-1,j=C.length;++Y>8&15|a>>4&240,a>>4&15|240&a,(15&a)<<4|15&a,1):s===8?_1(a>>24&255,a>>16&255,a>>8&255,(255&a)/255):s===4?_1(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=Ko.exec(i))?new to(a[1],a[2],a[3],1):(a=Qs.exec(i))?new to(255*a[1]/100,255*a[2]/100,255*a[3]/100,1):(a=X_.exec(i))?_1(a[1],a[2],a[3],a[4]):(a=Mf.exec(i))?_1(255*a[1]/100,255*a[2]/100,255*a[3]/100,a[4]):(a=kl.exec(i))?b1(a[1],a[2]/100,a[3]/100,1):(a=Vp.exec(i))?b1(a[1],a[2]/100,a[3]/100,a[4]):Nf.hasOwnProperty(i)?Df(Nf[i]):i==="transparent"?new to(NaN,NaN,NaN,0):null}function Df(i){return new to(i>>16&255,i>>8&255,255&i,1)}function _1(i,a,s,u){return u<=0&&(i=a=s=NaN),new to(i,a,s,u)}function ya(i){return i instanceof ws||(i=m1(i)),i?new to((i=i.rgb()).r,i.g,i.b,i.opacity):new to}function v1(i,a,s,u){return arguments.length===1?ya(i):new to(i,a,s,u==null?1:u)}function to(i,a,s,u){this.r=+i,this.g=+a,this.b=+s,this.opacity=+u}function K_(){return"#"+El(this.r)+El(this.g)+El(this.b)}function J_(){var i=this.opacity;return((i=isNaN(i)?1:Math.max(0,Math.min(1,i)))===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))+(i===1?")":", "+i+")")}function El(i){return((i=Math.max(0,Math.min(255,Math.round(i)||0)))<16?"0":"")+i.toString(16)}function b1(i,a,s,u){return u<=0?i=a=s=NaN:s<=0||s>=1?i=a=NaN:a<=0&&(i=NaN),new Jo(i,a,s,u)}function Xp(i){if(i instanceof Jo)return new Jo(i.h,i.s,i.l,i.opacity);if(i instanceof ws||(i=m1(i)),!i)return new Jo;if(i instanceof Jo)return i;var a=(i=i.rgb()).r/255,s=i.g/255,u=i.b/255,d=Math.min(a,s,u),_=Math.max(a,s,u),m=NaN,x=_-d,C=(_+d)/2;return x?(m=a===_?(s-u)/x+6*(s0&&C<1?0:m,new Jo(m,x,C,i.opacity)}function Jo(i,a,s,u){this.h=+i,this.s=+a,this.l=+s,this.opacity=+u}function tc(i,a,s){return 255*(i<60?a+(s-a)*i/60:i<180?s:i<240?a+(s-a)*(240-i)/60:a)}Gp(ws,m1,{copy:function(i){return Object.assign(new this.constructor,this,i)},displayable:function(){return this.rgb().displayable()},hex:Lf,formatHex:Lf,formatHsl:function(){return Xp(this).formatHsl()},formatRgb:Zp,toString:Zp}),Gp(to,v1,Z_(ws,{brighter:function(i){return i=i==null?y1:Math.pow(y1,i),new to(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=i==null?Cf:Math.pow(Cf,i),new to(this.r*i,this.g*i,this.b*i,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:K_,formatHex:K_,formatRgb:J_,toString:J_})),Gp(Jo,function(i,a,s,u){return arguments.length===1?Xp(i):new Jo(i,a,s,u==null?1:u)},Z_(ws,{brighter:function(i){return i=i==null?y1:Math.pow(y1,i),new Jo(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?Cf:Math.pow(Cf,i),new Jo(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=this.h%360+360*(this.h<0),a=isNaN(i)||isNaN(this.s)?0:this.s,s=this.l,u=s+(s<.5?s:1-s)*a,d=2*s-u;return new to(tc(i>=240?i-240:i+120,d,u),tc(i,d,u),tc(i<120?i+240:i-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 i=this.opacity;return((i=isNaN(i)?1:Math.max(0,Math.min(1,i)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(i===1?")":", "+i+")")}}));const Kp=i=>()=>i;function Jp(i,a){var s=a-i;return s?function(u,d){return function(_){return u+_*d}}(i,s):Kp(isNaN(i)?a:i)}const Qp=function i(a){var s=function(d){return(d=+d)==1?Jp:function(_,m){return m-_?function(x,C,A){return x=Math.pow(x,A),C=Math.pow(C,A)-x,A=1/A,function(B){return Math.pow(x+B*C,A)}}(_,m,d):Kp(isNaN(_)?m:_)}}(a);function u(d,_){var m=s((d=v1(d)).r,(_=v1(_)).r),x=s(d.g,_.g),C=s(d.b,_.b),A=Jp(d.opacity,_.opacity);return function(B){return d.r=m(B),d.g=x(B),d.b=C(B),d.opacity=A(B),d+""}}return u.gamma=i,u}(1);var If=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Of=new RegExp(If.source,"g");function H5(i,a){var s,u,d,_=If.lastIndex=Of.lastIndex=0,m=-1,x=[],C=[];for(i+="",a+="";(s=If.exec(i))&&(u=Of.exec(a));)(d=u.index)>_&&(d=a.slice(_,d),x[m]?x[m]+=d:x[++m]=d),(s=s[0])===(u=u[0])?x[m]?x[m]+=u:x[++m]=u:(x[++m]=null,C.push({i:m,x:Js(s,u)})),_=Of.lastIndex;return _=0&&(x=x.slice(0,C)),!x||x==="start"})}(a)?Sf:xs;return function(){var m=_(this,i),x=m.on;x!==u&&(d=(u=x).copy()).on(a,s),m.on=d}}var c3=f1.prototype.constructor;function Rf(i){return function(){this.style.removeProperty(i)}}function ig(i,a,s){return function(u){this.style.setProperty(i,a.call(this,u),s)}}function Gi(i,a,s){var u,d;function _(){var m=a.apply(this,arguments);return m!==d&&(u=(d=m)&&ig(i,m,s)),u}return _._value=a,_}function ag(i){return function(a){this.textContent=i.call(this,a)}}function Tl(i){var a,s;function u(){var d=i.apply(this,arguments);return d!==s&&(a=(s=d)&&ag(d)),a}return u._value=i,u}var Z5=0;function Es(i,a,s,u){this._groups=i,this._parents=a,this._name=s,this._id=u}function og(){return++Z5}var ec=f1.prototype;Es.prototype={constructor:Es,select:function(i){var a=this._name,s=this._id;typeof i!="function"&&(i=Np(i));for(var u=this._groups,d=u.length,_=new Array(d),m=0;m2&&u.state<5,u.state=6,u.timer.stop(),u.on.call(d?"interrupt":"cancel",a,a.__data__,u.index,u.group),delete m[_]):x=!1;x&&delete a.__transition}})(this,i)})},f1.prototype.transition=function(i){var a,s;i instanceof Es?(a=i._id,i=i._name):(a=og(),(s=Bf).time=$p(),i=i==null?null:i+"");for(var u=this._groups,d=u.length,_=0;_0?nc(Pu,--go):0,Fu--,_i===10&&(Fu=1,Uf--),_i}function Qo(){return _i=go2||$f(_i)>3?"":" "}function jf(i,a){for(;--a&&Qo()&&!(_i<48||_i>102||_i>57&&_i<65||_i>70&&_i<97););return Yf(i,w1()+(a<6&&Yc()==32&&Qo()==32))}function zu(i){for(;Qo();)switch(_i){case i:return go;case 34:case 39:i!==34&&i!==39&&zu(_i);break;case 40:i===41&&zu(i);break;case 92:Qo()}return go}function d3(i,a){for(;Qo()&&i+_i!==57&&(i+_i!==84||Yc()!==47););return"/*"+Yf(a,go-1)+"*"+Cl(i===47?i:Qo())}function Ml(i){for(;!$f(Yc());)Qo();return Yf(i,go)}function k1(i){return function(a){return Pu="",a}($c("",null,null,null,[""],i=function(a){return Uf=Fu=1,u3=rc(Pu=a),go=0,[]}(i),0,[0],i))}function $c(i,a,s,u,d,_,m,x,C){for(var A=0,B=0,Y=m,j=0,X=0,vt=0,ut=1,wt=1,xt=1,Dt=0,At="",Zt=d,se=_,jt=u,ne=At;wt;)switch(vt=Dt,Dt=Qo()){case 40:if(vt!=108&&ne.charCodeAt(Y-1)==58){l3(ne+=Ff(Uu(Dt),"&","&\f"),"&\f")!=-1&&(xt=-1);break}case 34:case 39:case 91:ne+=Uu(Dt);break;case 9:case 10:case 13:case 32:ne+=f3(vt);break;case 92:ne+=jf(w1()-1,7);continue;case 47:switch(Yc()){case 42:case 47:Pf(p3(d3(Qo(),w1()),a,s),C);break;default:ne+="/"}break;case 123*ut:x[A++]=rc(ne)*xt;case 125*ut:case 59:case 0:switch(Dt){case 0:case 125:wt=0;case 59+B:X>0&&rc(ne)-Y&&Pf(X>32?jc(ne+";",u,s,Y-1):jc(Ff(ne," ","")+";",u,s,Y-2),C);break;case 59:ne+=";";default:if(Pf(jt=hg(ne,a,s,A,B,d,x,At,Zt=[],se=[],Y),_),Dt===123)if(B===0)$c(ne,a,jt,jt,Zt,_,Y,x,se);else switch(j){case 100:case 109:case 115:$c(i,jt,jt,u&&Pf(hg(i,jt,jt,0,0,d,x,At,d,Zt=[],Y),se),d,se,Y,x,u?Zt:se);break;default:$c(ne,jt,jt,jt,[""],se,0,x,se)}}A=B=X=0,ut=xt=1,At=ne="",Y=m;break;case 58:Y=1+rc(ne),X=vt;default:if(ut<1){if(Dt==123)--ut;else if(Dt==125&&ut++==0&&h3()==125)continue}switch(ne+=Cl(Dt),Dt*ut){case 38:xt=B>0?1:(ne+="\f",-1);break;case 44:x[A++]=(rc(ne)-1)*xt,xt=1;break;case 64:Yc()===45&&(ne+=Uu(Qo())),j=Yc(),B=Y=rc(At=ne+=Ml(w1())),Dt++;break;case 45:vt===45&&rc(ne)==2&&(ut=0)}}return _}function hg(i,a,s,u,d,_,m,x,C,A,B){for(var Y=d-1,j=d===0?_:[""],X=lg(j),vt=0,ut=0,wt=0;vt0?j[xt]+" "+Dt:Ff(Dt,/&\f/g,j[xt])))&&(C[wt++]=At);return zf(i,a,s,d===0?sg:x,C,A,B)}function p3(i,a,s){return zf(i,a,s,x1,Cl(_i),Bu(i,2,-2),0)}function jc(i,a,s,u){return zf(i,a,s,cg,Bu(i,0,u),Bu(i,u+1,-1),u)}const fg="9.1.2";var ic=f(7967),g3=f(7856),dg=f.n(g3),y3=function(i){var a=i.replace(/\\u[\dA-F]{4}/gi,function(s){return String.fromCharCode(parseInt(s.replace(/\\u/g,""),16))});return a=(a=(a=a.replace(/\\x([0-9a-f]{2})/gi,function(s,u){return String.fromCharCode(parseInt(u,16))})).replace(/\\[\d\d\d]{3}/gi,function(s){return String.fromCharCode(parseInt(s.replace(/\\/g,""),8))})).replace(/\\[\d\d\d]{2}/gi,function(s){return String.fromCharCode(parseInt(s.replace(/\\/g,""),8))})},m3=function(i){for(var a="",s=0;s>=0;){if(!((s=i.indexOf("=0)){a+=i,s=-1;break}a+=i.substr(0,s),(s=(i=i.substr(s+1)).indexOf("<\/script>"))>=0&&(s+=9,i=i.substr(s))}var u=y3(a);return(u=(u=(u=(u=u.replaceAll(/script>/gi,"#")).replaceAll(/javascript:/gi,"#")).replaceAll(/javascript&colon/gi,"#")).replaceAll(/onerror=/gi,"onerror:")).replaceAll(/`)}else m.securityLevel!=="loose"&&(ne=dg().sanitize(ne,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));if(s!==void 0)switch(vt){case"flowchart":case"flowchart-v2":s(ne,fr.bindFunctions);break;case"gantt":s(ne,nh.bindFunctions);break;case"class":case"classDiagram":s(ne,ts.bindFunctions);break;default:s(ne)}else k.debug("CB = undefined!");Et.forEach(function(mt){mt()}),Et=[];var It=m.securityLevel==="sandbox"?"#i"+i:"#d"+i,Ct=He(It).node();return Ct!==null&&typeof Ct.remove=="function"&&He(It).node().remove(),ne},parse:function(i){var a=!1;try{i+=` `;var s=Jt(),u=cr.detectInit(i,s);u&&k.info("reinit ",u);var d,_=cr.detectType(i,s);switch(k.debug("Type "+_),_){case"c4":B3.clear(),(d=U3()).parser.yy=U3();break;case"gitGraph":Jc.clear(),(d=Tv()).parser.yy=Jc;break;case"flowchart":case"flowchart-v2":fr.clear(),(d=Ad()).parser.yy=fr;break;case"sequence":_e.clear(),(d=D()).parser.yy=_e;break;case"gantt":(d=qb()).parser.yy=nh;break;case"class":case"classDiagram":(d=q3()).parser.yy=ts;break;case"state":case"stateDiagram":(d=g6()).parser.yy=la;break;case"info":k.debug("info info info"),(d=rh()).parser.yy=Hl;break;case"pie":k.debug("pie"),(d=Cv()).parser.yy=my;break;case"er":k.debug("er"),(d=Q3()).parser.yy=Ga;break;case"journey":k.debug("Journey"),(d=rx()).parser.yy=A6;break;case"requirement":case"requirementDiagram":k.debug("RequirementDiagram"),(d=Mv()).parser.yy=ah}d.parser.yy.graphType=_,d.parser.yy.parseError=function(m,x){throw{str:m,hash:x}},d.parse(i)}catch(m){if(a=!0,!Uv.parseError)throw m;m.str!=null?Uv.parseError(m.str,m.hash):Uv.parseError(m)}return!a},parseDirective:function(i,a,s,u){try{if(a!==void 0)switch(a=a.trim(),s){case"open_directive":xy={};break;case"type_directive":xy.type=a.toLowerCase();break;case"arg_directive":xy.args=JSON.parse(a);break;case"close_directive":(function(d,_,m){switch(k.debug("Directive type=".concat(_.type," with args:"),_.args),_.type){case"init":case"initialize":["config"].forEach(function(x){_.args[x]!==void 0&&(m==="flowchart-v2"&&(m="flowchart"),_.args[m]=_.args[x],delete _.args[x])}),k.debug("sanitize in handleDirective",_.args),Kf(_.args),k.debug("sanitize in handleDirective (done)",_.args),_.args,Lg(_.args);break;case"wrap":case"nowrap":d&&d.setWrap&&d.setWrap(_.type==="wrap");break;case"themeCss":k.warn("themeCss encountered");break;default:k.warn("Unhandled directive: source: '%%{".concat(_.type,": ").concat(JSON.stringify(_.args?_.args:{}),"}%%"),_)}})(i,xy,u),xy=null}}catch(d){k.error("Error while rendering sequenceDiagram directive: ".concat(a," jison context: ").concat(s)),k.error(d.message)}},initialize:function(i){i&&i.fontFamily&&(i.themeVariables&&i.themeVariables.fontFamily||(i.themeVariables={fontFamily:i.fontFamily})),function(s){Cg=Zi({},s)}(i),i&&i.theme&&oc[i.theme]?i.themeVariables=oc[i.theme].getThemeVariables(i.themeVariables):i&&(i.themeVariables=oc.default.getThemeVariables(i.themeVariables));var a=u6(i)==="object"?function(s){return ra=Zi({},Ol),ra=Zi(ra,s),s.theme&&oc[s.theme]&&(ra.themeVariables=oc[s.theme].getThemeVariables(s.themeVariables)),ju=Qf(ra,A1),ra}(i):Ng();F6(a),M(a.logLevel)},reinitialize:function(){},getConfig:Jt,setConfig:function(i){return Zi(ju,i),Jt()},getSiteConfig:Ng,updateSiteConfig:function(i){return ra=Zi(ra,i),Qf(ra,A1),ra},reset:function(){C1()},globalReset:function(){C1(),F6(Jt())},defaultConfig:Ol});M(Jt().logLevel),C1(Jt());const Oi=hx;var P6=function(){var i,a,s=Oi.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(bo.sequenceConfig=arguments[0]),i=arguments[1]):i=arguments[0],typeof arguments[arguments.length-1]=="function"?(a=arguments[arguments.length-1],k.debug("Callback function found")):s.mermaid!==void 0&&(typeof s.mermaid.callback=="function"?(a=s.mermaid.callback,k.debug("Callback function found")):k.debug("No Callback function found")),i=i===void 0?document.querySelectorAll(".mermaid"):typeof i=="string"?document.querySelectorAll(i):i instanceof window.Node?[i]:i,k.debug("Start On Load before: "+bo.startOnLoad),bo.startOnLoad!==void 0&&(k.debug("Start On Load inner: "+bo.startOnLoad),Oi.updateSiteConfig({startOnLoad:bo.startOnLoad})),bo.ganttConfig!==void 0&&Oi.updateSiteConfig({gantt:bo.ganttConfig});for(var u,d=new cr.initIdGeneratior(s.deterministicIds,s.deterministicIDSeed),_=function(x){var C=i[x];if(C.getAttribute("data-processed"))return"continue";C.setAttribute("data-processed",!0);var A="mermaid-".concat(d.next());u=C.innerHTML,u=cr.entityDecode(u).trim().replace(//gi,"
");var B=cr.detectInit(u);B&&k.debug("Detected early reinit: ",B),Oi.render(A,u,function(Y,j){C.innerHTML=Y,a!==void 0&&a(A),j&&j(C)},C)},m=0;m{p.exports={graphlib:f(6614),dagre:f(1463),intersect:f(8114),render:f(5787),util:f(8355),version:f(5689)}},9144:(p,T,f)=>{var b=f(8355);function g(E,k,M,O){var L=E.append("marker").attr("id",k).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");b.applyStyle(L,M[O+"Style"]),M[O+"Class"]&&L.attr("class",M[O+"Class"])}p.exports={default:g,normal:g,vee:function(E,k,M,O){var L=E.append("marker").attr("id",k).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");b.applyStyle(L,M[O+"Style"]),M[O+"Class"]&&L.attr("class",M[O+"Class"])},undirected:function(E,k,M,O){var L=E.append("marker").attr("id",k).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");b.applyStyle(L,M[O+"Style"]),M[O+"Class"]&&L.attr("class",M[O+"Class"])}}},5632:(p,T,f)=>{var b=f(8355),g=f(4322),E=f(1322);p.exports=function(k,M){var O,L=M.nodes().filter(function(P){return b.isSubgraph(M,P)}),F=k.selectAll("g.cluster").data(L,function(P){return P});return F.selectAll("*").remove(),F.enter().append("g").attr("class","cluster").attr("id",function(P){return M.node(P).id}).style("opacity",0),F=k.selectAll("g.cluster"),b.applyTransition(F,M).style("opacity",1),F.each(function(P){var $=M.node(P),W=g.select(this);g.select(this).append("rect");var K=W.append("g").attr("class","label");E(K,$,$.clusterLabelPos)}),F.selectAll("rect").each(function(P){var $=M.node(P),W=g.select(this);b.applyStyle(W,$.style)}),O=F.exit?F.exit():F.selectAll(null),b.applyTransition(O,M).style("opacity",0).remove(),F}},6315:(p,T,f)=>{var b=f(1034),g=f(1322),E=f(8355),k=f(4322);p.exports=function(M,O){var L,F=M.selectAll("g.edgeLabel").data(O.edges(),function(P){return E.edgeToId(P)}).classed("update",!0);return F.exit().remove(),F.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(F=M.selectAll("g.edgeLabel")).each(function(P){var $=k.select(this);$.select(".label").remove();var W=O.edge(P),K=g($,O.edge(P),0,0).classed("label",!0),nt=K.node().getBBox();W.labelId&&K.attr("id",W.labelId),b.has(W,"width")||(W.width=nt.width),b.has(W,"height")||(W.height=nt.height)}),L=F.exit?F.exit():F.selectAll(null),E.applyTransition(L,O).style("opacity",0).remove(),F}},940:(p,T,f)=>{var b=f(1034),g=f(3042),E=f(8355),k=f(4322);function M(O,L){var F=(k.line||k.svg.line)().x(function(P){return P.x}).y(function(P){return P.y});return(F.curve||F.interpolate)(O.curve),F(L)}p.exports=function(O,L,F){var P=O.selectAll("g.edgePath").data(L.edges(),function(K){return E.edgeToId(K)}).classed("update",!0),$=function(K,nt){var ht=K.enter().append("g").attr("class","edgePath").style("opacity",0);return ht.append("path").attr("class","path").attr("d",function(J){var bt=nt.edge(J),at=nt.node(J.v).elem;return M(bt,b.range(bt.points.length).map(function(){return St=(st=at).getBBox(),{x:(qt=st.ownerSVGElement.getScreenCTM().inverse().multiply(st.getScreenCTM()).translate(St.width/2,St.height/2)).e,y:qt.f};var st,St,qt}))}),ht.append("defs"),ht}(P,L);(function(K,nt){var ht=K.exit();E.applyTransition(ht,nt).style("opacity",0).remove()})(P,L);var W=P.merge!==void 0?P.merge($):P;return E.applyTransition(W,L).style("opacity",1),W.each(function(K){var nt=k.select(this),ht=L.edge(K);ht.elem=this,ht.id&&nt.attr("id",ht.id),E.applyClass(nt,ht.class,(nt.classed("update")?"update ":"")+"edgePath")}),W.selectAll("path.path").each(function(K){var nt=L.edge(K);nt.arrowheadId=b.uniqueId("arrowhead");var ht=k.select(this).attr("marker-end",function(){return"url("+(J=location.href,bt=nt.arrowheadId,J.split("#")[0]+"#"+bt+")");var J,bt}).style("fill","none");E.applyTransition(ht,L).attr("d",function(J){return function(bt,at){var st=bt.edge(at),St=bt.node(at.v),qt=bt.node(at.w),Nt=st.points.slice(1,st.points.length-1);return Nt.unshift(g(St,Nt[0])),Nt.push(g(qt,Nt[Nt.length-1])),M(st,Nt)}(L,J)}),E.applyStyle(ht,nt.style)}),W.selectAll("defs *").remove(),W.selectAll("defs").each(function(K){var nt=L.edge(K);(0,F[nt.arrowhead])(k.select(this),nt.arrowheadId,nt,"arrowhead")}),W}},607:(p,T,f)=>{var b=f(1034),g=f(1322),E=f(8355),k=f(4322);p.exports=function(M,O,L){var F,P=O.nodes().filter(function(W){return!E.isSubgraph(O,W)}),$=M.selectAll("g.node").data(P,function(W){return W}).classed("update",!0);return $.exit().remove(),$.enter().append("g").attr("class","node").style("opacity",0),($=M.selectAll("g.node")).each(function(W){var K=O.node(W),nt=k.select(this);E.applyClass(nt,K.class,(nt.classed("update")?"update ":"")+"node"),nt.select("g.label").remove();var ht=nt.append("g").attr("class","label"),J=g(ht,K),bt=L[K.shape],at=b.pick(J.node().getBBox(),"width","height");K.elem=this,K.id&&nt.attr("id",K.id),K.labelId&&ht.attr("id",K.labelId),b.has(K,"width")&&(at.width=K.width),b.has(K,"height")&&(at.height=K.height),at.width+=K.paddingLeft+K.paddingRight,at.height+=K.paddingTop+K.paddingBottom,ht.attr("transform","translate("+(K.paddingLeft-K.paddingRight)/2+","+(K.paddingTop-K.paddingBottom)/2+")");var st=k.select(this);st.select(".label-container").remove();var St=bt(st,at,K).classed("label-container",!0);E.applyStyle(St,K.style);var qt=St.node().getBBox();K.width=qt.width,K.height=qt.height}),F=$.exit?$.exit():$.selectAll(null),E.applyTransition(F,O).style("opacity",0).remove(),$}},4322:(p,T,f)=>{var b;if(!b)try{b=f(7188)}catch{}b||(b=window.d3),p.exports=b},1463:(p,T,f)=>{var b;try{b=f(681)}catch{}b||(b=window.dagre),p.exports=b},6614:(p,T,f)=>{var b;try{b=f(8282)}catch{}b||(b=window.graphlib),p.exports=b},8114:(p,T,f)=>{p.exports={node:f(3042),circle:f(6587),ellipse:f(3260),polygon:f(5337),rect:f(8049)}},6587:(p,T,f)=>{var b=f(3260);p.exports=function(g,E,k){return b(g,E,E,k)}},3260:p=>{p.exports=function(T,f,b,g){var E=T.x,k=T.y,M=E-g.x,O=k-g.y,L=Math.sqrt(f*f*O*O+b*b*M*M),F=Math.abs(f*b*M/L);g.x{function T(f,b){return f*b>0}p.exports=function(f,b,g,E){var k,M,O,L,F,P,$,W,K,nt,ht,J,bt;if(k=b.y-f.y,O=f.x-b.x,F=b.x*f.y-f.x*b.y,K=k*g.x+O*g.y+F,nt=k*E.x+O*E.y+F,!(K!==0&&nt!==0&&T(K,nt)||(M=E.y-g.y,L=g.x-E.x,P=E.x*g.y-g.x*E.y,$=M*f.x+L*f.y+P,W=M*b.x+L*b.y+P,$!==0&&W!==0&&T($,W)||(ht=k*L-M*O)==0)))return J=Math.abs(ht/2),{x:(bt=O*P-L*F)<0?(bt-J)/ht:(bt+J)/ht,y:(bt=M*F-k*P)<0?(bt-J)/ht:(bt+J)/ht}}},3042:p=>{p.exports=function(T,f){return T.intersect(f)}},5337:(p,T,f)=>{var b=f(6808);p.exports=function(g,E,k){var M=g.x,O=g.y,L=[],F=Number.POSITIVE_INFINITY,P=Number.POSITIVE_INFINITY;E.forEach(function(bt){F=Math.min(F,bt.x),P=Math.min(P,bt.y)});for(var $=M-g.width/2-F,W=O-g.height/2-P,K=0;K1&&L.sort(function(bt,at){var st=bt.x-k.x,St=bt.y-k.y,qt=Math.sqrt(st*st+St*St),Nt=at.x-k.x,yt=at.y-k.y,Bt=Math.sqrt(Nt*Nt+yt*yt);return qt{p.exports=function(T,f){var b,g,E=T.x,k=T.y,M=f.x-E,O=f.y-k,L=T.width/2,F=T.height/2;return Math.abs(O)*L>Math.abs(M)*F?(O<0&&(F=-F),b=O===0?0:F*M/O,g=F):(M<0&&(L=-L),b=L,g=M===0?0:L*O/M),{x:E+b,y:k+g}}},8284:(p,T,f)=>{var b=f(8355);p.exports=function(g,E){var k=g.append("foreignObject").attr("width","100000"),M=k.append("xhtml:div");M.attr("xmlns","http://www.w3.org/1999/xhtml");var O=E.label;switch(typeof O){case"function":M.insert(O);break;case"object":M.insert(function(){return O});break;default:M.html(O)}b.applyStyle(M,E.labelStyle),M.style("display","inline-block"),M.style("white-space","nowrap");var L=M.node().getBoundingClientRect();return k.attr("width",L.width).attr("height",L.height),k}},1322:(p,T,f)=>{var b=f(7318),g=f(8284),E=f(8287);p.exports=function(k,M,O){var L=M.label,F=k.append("g");M.labelType==="svg"?E(F,M):typeof L!="string"||M.labelType==="html"?g(F,M):b(F,M);var P,$=F.node().getBBox();switch(O){case"top":P=-M.height/2;break;case"bottom":P=M.height/2-$.height;break;default:P=-$.height/2}return F.attr("transform","translate("+-$.width/2+","+P+")"),F}},8287:(p,T,f)=>{var b=f(8355);p.exports=function(g,E){var k=g;return k.node().appendChild(E.label),b.applyStyle(k,E.labelStyle),k}},7318:(p,T,f)=>{var b=f(8355);p.exports=function(g,E){for(var k=g.append("text"),M=function(L){for(var F,P="",$=!1,W=0;W{var b;try{b={defaults:f(1747),each:f(6073),isFunction:f(3560),isPlainObject:f(8630),pick:f(9722),has:f(8721),range:f(6026),uniqueId:f(3955)}}catch{}b||(b=window._),p.exports=b},6381:(p,T,f)=>{var b=f(8355),g=f(4322);p.exports=function(E,k){var M=E.filter(function(){return!g.select(this).classed("update")});function O(L){var F=k.node(L);return"translate("+F.x+","+F.y+")"}M.attr("transform",O),b.applyTransition(E,k).style("opacity",1).attr("transform",O),b.applyTransition(M.selectAll("rect"),k).attr("width",function(L){return k.node(L).width}).attr("height",function(L){return k.node(L).height}).attr("x",function(L){return-k.node(L).width/2}).attr("y",function(L){return-k.node(L).height/2})}},4577:(p,T,f)=>{var b=f(8355),g=f(4322),E=f(1034);p.exports=function(k,M){function O(L){var F=M.edge(L);return E.has(F,"x")?"translate("+F.x+","+F.y+")":""}k.filter(function(){return!g.select(this).classed("update")}).attr("transform",O),b.applyTransition(k,M).style("opacity",1).attr("transform",O)}},4849:(p,T,f)=>{var b=f(8355),g=f(4322);p.exports=function(E,k){function M(O){var L=k.node(O);return"translate("+L.x+","+L.y+")"}E.filter(function(){return!g.select(this).classed("update")}).attr("transform",M),b.applyTransition(E,k).style("opacity",1).attr("transform",M)}},5787:(p,T,f)=>{var b=f(1034),g=f(4322),E=f(1463).layout;p.exports=function(){var L=f(607),F=f(5632),P=f(6315),$=f(940),W=f(4849),K=f(4577),nt=f(6381),ht=f(4418),J=f(9144),bt=function(at,st){(function(ft){ft.nodes().forEach(function(rt){var dt=ft.node(rt);b.has(dt,"label")||ft.children(rt).length||(dt.label=rt),b.has(dt,"paddingX")&&b.defaults(dt,{paddingLeft:dt.paddingX,paddingRight:dt.paddingX}),b.has(dt,"paddingY")&&b.defaults(dt,{paddingTop:dt.paddingY,paddingBottom:dt.paddingY}),b.has(dt,"padding")&&b.defaults(dt,{paddingLeft:dt.padding,paddingRight:dt.padding,paddingTop:dt.padding,paddingBottom:dt.padding}),b.defaults(dt,k),b.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(G){dt[G]=Number(dt[G])}),b.has(dt,"width")&&(dt._prevWidth=dt.width),b.has(dt,"height")&&(dt._prevHeight=dt.height)}),ft.edges().forEach(function(rt){var dt=ft.edge(rt);b.has(dt,"label")||(dt.label=""),b.defaults(dt,M)})})(st);var St=O(at,"output"),qt=O(St,"clusters"),Nt=O(St,"edgePaths"),yt=P(O(St,"edgeLabels"),st),Bt=L(O(St,"nodes"),st,ht);E(st),W(Bt,st),K(yt,st),$(Nt,st,J);var kt=F(qt,st);nt(kt,st),function(ft){b.each(ft.nodes(),function(rt){var dt=ft.node(rt);b.has(dt,"_prevWidth")?dt.width=dt._prevWidth:delete dt.width,b.has(dt,"_prevHeight")?dt.height=dt._prevHeight:delete dt.height,delete dt._prevWidth,delete dt._prevHeight})}(st)};return bt.createNodes=function(at){return arguments.length?(L=at,bt):L},bt.createClusters=function(at){return arguments.length?(F=at,bt):F},bt.createEdgeLabels=function(at){return arguments.length?(P=at,bt):P},bt.createEdgePaths=function(at){return arguments.length?($=at,bt):$},bt.shapes=function(at){return arguments.length?(ht=at,bt):ht},bt.arrows=function(at){return arguments.length?(J=at,bt):J},bt};var k={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},M={arrowhead:"normal",curve:g.curveLinear};function O(L,F){var P=L.select("g."+F);return P.empty()&&(P=L.append("g").attr("class",F)),P}},4418:(p,T,f)=>{var b=f(8049),g=f(3260),E=f(6587),k=f(5337);p.exports={rect:function(M,O,L){var F=M.insert("rect",":first-child").attr("rx",L.rx).attr("ry",L.ry).attr("x",-O.width/2).attr("y",-O.height/2).attr("width",O.width).attr("height",O.height);return L.intersect=function(P){return b(L,P)},F},ellipse:function(M,O,L){var F=O.width/2,P=O.height/2,$=M.insert("ellipse",":first-child").attr("x",-O.width/2).attr("y",-O.height/2).attr("rx",F).attr("ry",P);return L.intersect=function(W){return g(L,F,P,W)},$},circle:function(M,O,L){var F=Math.max(O.width,O.height)/2,P=M.insert("circle",":first-child").attr("x",-O.width/2).attr("y",-O.height/2).attr("r",F);return L.intersect=function($){return E(L,F,$)},P},diamond:function(M,O,L){var F=O.width*Math.SQRT2/2,P=O.height*Math.SQRT2/2,$=[{x:0,y:-P},{x:-F,y:0},{x:0,y:P},{x:F,y:0}],W=M.insert("polygon",":first-child").attr("points",$.map(function(K){return K.x+","+K.y}).join(" "));return L.intersect=function(K){return k(L,$,K)},W}}},8355:(p,T,f)=>{var b=f(1034);p.exports={isSubgraph:function(k,M){return!!k.children(M).length},edgeToId:function(k){return E(k.v)+":"+E(k.w)+":"+E(k.name)},applyStyle:function(k,M){M&&k.attr("style",M)},applyClass:function(k,M,O){M&&k.attr("class",M).attr("class",O+" "+k.attr("class"))},applyTransition:function(k,M){var O=M.graph();if(b.isPlainObject(O)){var L=O.transition;if(b.isFunction(L))return L(k)}return k}};var g=/:/g;function E(k){return k?String(k).replace(g,"\\:"):""}},5689:p=>{p.exports="0.6.4"},7188:(p,T,f)=>{f.r(T),f.d(T,{FormatSpecifier:()=>M0,active:()=>Wv,arc:()=>Xg,area:()=>Ga,areaRadial:()=>tv,ascending:()=>g,autoType:()=>g4,axisBottom:()=>Ye,axisLeft:()=>Pe,axisRight:()=>we,axisTop:()=>ae,bisect:()=>L,bisectLeft:()=>O,bisectRight:()=>M,bisector:()=>E,blob:()=>M4,brush:()=>m2,brushSelection:()=>Zv,brushX:()=>d0,brushY:()=>Xv,buffer:()=>ym,chord:()=>v2,clientPoint:()=>cl,cluster:()=>A5,color:()=>Gr,contourDensity:()=>Mh,contours:()=>qi,create:()=>Cb,creator:()=>Cr,cross:()=>$,csv:()=>mm,csvFormat:()=>o4,csvFormatBody:()=>s4,csvFormatRow:()=>l4,csvFormatRows:()=>c4,csvFormatValue:()=>Qy,csvParse:()=>Jy,csvParseRows:()=>a4,cubehelix:()=>Fa,curveBasis:()=>rv,curveBasisClosed:()=>Pb,curveBasisOpen:()=>Ub,curveBundle:()=>zb,curveCardinal:()=>Yb,curveCardinalClosed:()=>$b,curveCardinalOpen:()=>jb,curveCatmullRom:()=>Hb,curveCatmullRomClosed:()=>sv,curveCatmullRomOpen:()=>cy,curveLinear:()=>B1,curveLinearClosed:()=>Dd,curveMonotoneX:()=>ly,curveMonotoneY:()=>Ju,curveNatural:()=>$1,curveStep:()=>hy,curveStepAfter:()=>uv,curveStepBefore:()=>lv,customEvent:()=>ri,descending:()=>W,deviation:()=>ht,dispatch:()=>dn,drag:()=>Zy,dragDisable:()=>Bi,dragEnable:()=>Or,dsv:()=>D4,dsvFormat:()=>Nh,easeBack:()=>dm,easeBackIn:()=>S4,easeBackInOut:()=>dm,easeBackOut:()=>A4,easeBounce:()=>Lh,easeBounceIn:()=>fm,easeBounceInOut:()=>T4,easeBounceOut:()=>Lh,easeCircle:()=>hm,easeCircleIn:()=>k4,easeCircleInOut:()=>hm,easeCircleOut:()=>E4,easeCubic:()=>wc,easeCubicIn:()=>a0,easeCubicInOut:()=>wc,easeCubicOut:()=>o0,easeElastic:()=>z2,easeElasticIn:()=>C4,easeElasticInOut:()=>pm,easeElasticOut:()=>z2,easeExp:()=>um,easeExpIn:()=>lm,easeExpInOut:()=>um,easeExpOut:()=>w4,easeLinear:()=>nm,easePoly:()=>im,easePolyIn:()=>v4,easePolyInOut:()=>im,easePolyOut:()=>b4,easeQuad:()=>rm,easeQuadIn:()=>m4,easeQuadInOut:()=>rm,easeQuadOut:()=>_4,easeSin:()=>cm,easeSinIn:()=>sm,easeSinInOut:()=>cm,easeSinOut:()=>x4,entries:()=>S2,event:()=>Re,extent:()=>J,forceCenter:()=>B4,forceCollide:()=>z4,forceLink:()=>$4,forceManyBody:()=>W4,forceRadial:()=>G4,forceSimulation:()=>q4,forceX:()=>km,forceY:()=>q2,format:()=>L0,formatDefaultLocale:()=>Nm,formatLocale:()=>Mm,formatPrefix:()=>G2,formatSpecifier:()=>Oh,geoAlbers:()=>T_,geoAlbersUsa:()=>Ks,geoArea:()=>Z4,geoAzimuthalEqualArea:()=>y5,geoAzimuthalEqualAreaRaw:()=>Cp,geoAzimuthalEquidistant:()=>Np,geoAzimuthalEquidistantRaw:()=>Mp,geoBounds:()=>jh,geoCentroid:()=>J4,geoCircle:()=>Q4,geoClipAntimeridian:()=>up,geoClipCircle:()=>Qm,geoClipExtent:()=>e5,geoClipRectangle:()=>Z0,geoConicConformal:()=>_5,geoConicConformalRaw:()=>Dp,geoConicEqualArea:()=>hf,geoConicEqualAreaRaw:()=>E_,geoConicEquidistant:()=>A_,geoConicEquidistantRaw:()=>S_,geoContains:()=>o_,geoDistance:()=>tf,geoEqualEarth:()=>b5,geoEqualEarthRaw:()=>Ip,geoEquirectangular:()=>v5,geoEquirectangularRaw:()=>a1,geoGnomonic:()=>C_,geoGnomonicRaw:()=>l1,geoGraticule:()=>l_,geoGraticule10:()=>s5,geoIdentity:()=>df,geoInterpolate:()=>c5,geoLength:()=>t_,geoMercator:()=>m5,geoMercatorRaw:()=>r1,geoNaturalEarth1:()=>x5,geoNaturalEarth1Raw:()=>Op,geoOrthographic:()=>w5,geoOrthographicRaw:()=>Rp,geoPath:()=>h5,geoProjection:()=>Vo,geoProjectionMutator:()=>Tp,geoRotation:()=>sp,geoStereographic:()=>k5,geoStereographicRaw:()=>Bp,geoStream:()=>Yo,geoTransform:()=>f5,geoTransverseMercator:()=>E5,geoTransverseMercatorRaw:()=>pf,gray:()=>Qv,hcl:()=>Tc,hierarchy:()=>Fp,histogram:()=>Lt,hsl:()=>Zl,html:()=>bm,image:()=>vm,interpolate:()=>sl,interpolateArray:()=>Wd,interpolateBasis:()=>Pr,interpolateBasisClosed:()=>al,interpolateBlues:()=>bb,interpolateBrBG:()=>z3,interpolateBuGn:()=>Yg,interpolateBuPu:()=>Xi,interpolateCividis:()=>kb,interpolateCool:()=>Gg,interpolateCubehelix:()=>Af,interpolateCubehelixDefault:()=>Eb,interpolateCubehelixLong:()=>g1,interpolateDate:()=>e0,interpolateDiscrete:()=>F5,interpolateGnBu:()=>od,interpolateGreens:()=>xb,interpolateGreys:()=>Vu,interpolateHcl:()=>xs,interpolateHclLong:()=>Xo,interpolateHsl:()=>P5,interpolateHslLong:()=>U5,interpolateHue:()=>kf,interpolateInferno:()=>dd,interpolateLab:()=>Tf,interpolateMagma:()=>Ab,interpolateNumber:()=>Oa,interpolateNumberArray:()=>fh,interpolateObject:()=>n0,interpolateOrRd:()=>I1,interpolateOranges:()=>V3,interpolatePRGn:()=>nd,interpolatePiYG:()=>Sn,interpolatePlasma:()=>pd,interpolatePuBu:()=>Hg,interpolatePuBuGn:()=>cd,interpolatePuOr:()=>Fg,interpolatePuRd:()=>O1,interpolatePurples:()=>wb,interpolateRainbow:()=>Ma,interpolateRdBu:()=>rd,interpolateRdGy:()=>Y3,interpolateRdPu:()=>H3,interpolateRdYlBu:()=>Mo,interpolateRdYlGn:()=>mb,interpolateReds:()=>fd,interpolateRgb:()=>xc,interpolateRgbBasis:()=>Kl,interpolateRgbBasisClosed:()=>Ro,interpolateRound:()=>jp,interpolateSinebow:()=>es,interpolateSpectral:()=>$3,interpolateString:()=>Bo,interpolateTransformCss:()=>Vd,interpolateTransformSvg:()=>Zd,interpolateTurbo:()=>Z3,interpolateViridis:()=>Sb,interpolateWarm:()=>Tb,interpolateYlGn:()=>vb,interpolateYlGnBu:()=>_b,interpolateYlOrBr:()=>Wc,interpolateYlOrRd:()=>W3,interpolateZoom:()=>Ef,interrupt:()=>Ba,interval:()=>vv,isoFormat:()=>mv,isoParse:()=>_v,json:()=>O4,keys:()=>kh,lab:()=>Eh,lch:()=>M2,line:()=>_d,lineRadial:()=>Jg,linkHorizontal:()=>Ul,linkRadial:()=>Is,linkVertical:()=>Xu,local:()=>X3,map:()=>js,matcher:()=>Qe,max:()=>Gt,mean:()=>ye,median:()=>qe,merge:()=>xe,min:()=>he,mouse:()=>Ps,namespace:()=>Gn,namespaces:()=>un,nest:()=>Jv,now:()=>tt,pack:()=>I5,packEnclose:()=>L_,packSiblings:()=>P_,pairs:()=>F,partition:()=>Zo,path:()=>$s,permute:()=>me,pie:()=>pc,piecewise:()=>qp,pointRadial:()=>Pl,polygonArea:()=>G_,polygonCentroid:()=>z5,polygonContains:()=>Gp,polygonHull:()=>Wp,polygonLength:()=>Z_,precisionFixed:()=>V2,precisionPrefix:()=>Lm,precisionRound:()=>Dm,quadtree:()=>Dh,quantile:()=>V,quantize:()=>W_,radialArea:()=>tv,radialLine:()=>Jg,randomBates:()=>ks,randomExponential:()=>j5,randomIrwinHall:()=>Ou,randomLogNormal:()=>Iu,randomNormal:()=>y1,randomUniform:()=>Cf,range:()=>Nt,rgb:()=>Rr,ribbon:()=>w2,scaleBand:()=>Lf,scaleDiverging:()=>Ao,scaleDivergingLog:()=>Ls,scaleDivergingPow:()=>ed,scaleDivergingSqrt:()=>R3,scaleDivergingSymlog:()=>L1,scaleIdentity:()=>Jp,scaleImplicit:()=>Vp,scaleLinear:()=>Kp,scaleLog:()=>e3,scaleOrdinal:()=>Nf,scalePoint:()=>m1,scalePow:()=>rg,scaleQuantile:()=>o3,scaleQuantize:()=>s3,scaleSequential:()=>To,scaleSequentialLog:()=>So,scaleSequentialPow:()=>Hu,scaleSequentialQuantile:()=>Hc,scaleSequentialSqrt:()=>Ns,scaleSequentialSymlog:()=>N1,scaleSqrt:()=>V5,scaleSymlog:()=>i3,scaleThreshold:()=>c3,scaleTime:()=>Qf,scaleUtc:()=>Ms,scan:()=>Ie,schemeAccent:()=>B3,schemeBlues:()=>ld,schemeBrBG:()=>Og,schemeBuGn:()=>id,schemeBuPu:()=>ad,schemeCategory10:()=>qc,schemeDark2:()=>F3,schemeGnBu:()=>$g,schemeGreens:()=>G3,schemeGreys:()=>Wg,schemeOrRd:()=>Wu,schemeOranges:()=>R1,schemePRGn:()=>Rg,schemePaired:()=>P3,schemePastel1:()=>cc,schemePastel2:()=>gb,schemePiYG:()=>D1,schemePuBu:()=>jg,schemePuBuGn:()=>sd,schemePuOr:()=>Bg,schemePuRd:()=>j3,schemePurples:()=>ud,schemeRdBu:()=>qu,schemeRdGy:()=>Co,schemeRdPu:()=>qg,schemeRdYlBu:()=>Pg,schemeRdYlGn:()=>Ug,schemeReds:()=>hd,schemeSet1:()=>yb,schemeSet2:()=>_a,schemeSet3:()=>U3,schemeSpectral:()=>zg,schemeTableau10:()=>eo,schemeYlGn:()=>Gu,schemeYlGnBu:()=>ts,schemeYlOrBr:()=>Fi,schemeYlOrRd:()=>q3,select:()=>Hr,selectAll:()=>Nb,selection:()=>Mi,selector:()=>We,selectorAll:()=>Ue,set:()=>Ec,shuffle:()=>Le,stack:()=>fv,stackOffsetDiverging:()=>eh,stackOffsetExpand:()=>dv,stackOffsetNone:()=>th,stackOffsetSilhouette:()=>Ui,stackOffsetWiggle:()=>pv,stackOrderAppearance:()=>Yl,stackOrderAscending:()=>fy,stackOrderDescending:()=>nh,stackOrderInsideOut:()=>yv,stackOrderNone:()=>Zc,stackOrderReverse:()=>Xc,stratify:()=>vf,style:()=>Tn,sum:()=>ve,svg:()=>C0,symbol:()=>Ad,symbolCircle:()=>Ku,symbolCross:()=>xd,symbolDiamond:()=>U1,symbolSquare:()=>ny,symbolStar:()=>Ed,symbolTriangle:()=>Td,symbolWye:()=>fr,symbols:()=>Fb,text:()=>cu,thresholdFreedmanDiaconis:()=>Rt,thresholdScott:()=>Yt,thresholdSturges:()=>G,tickFormat:()=>Jo,tickIncrement:()=>rt,tickStep:()=>dt,ticks:()=>ft,timeDay:()=>_i,timeDays:()=>Pu,timeFormat:()=>Ll,timeFormatDefaultLocale:()=>Mg,timeFormatLocale:()=>T1,timeFriday:()=>Bu,timeFridays:()=>Fu,timeHour:()=>h3,timeHours:()=>Qo,timeInterval:()=>Gi,timeMillisecond:()=>zu,timeMilliseconds:()=>d3,timeMinute:()=>w1,timeMinutes:()=>Yf,timeMonday:()=>Ru,timeMondays:()=>Pf,timeMonth:()=>og,timeMonths:()=>ec,timeParse:()=>S1,timeSaturday:()=>rc,timeSaturdays:()=>u3,timeSecond:()=>Uu,timeSeconds:()=>f3,timeSunday:()=>Cl,timeSundays:()=>lg,timeThursday:()=>nc,timeThursdays:()=>Uf,timeTuesday:()=>Ff,timeTuesdays:()=>ug,timeWednesday:()=>l3,timeWednesdays:()=>X5,timeWeek:()=>Cl,timeWeeks:()=>lg,timeYear:()=>Tl,timeYears:()=>Z5,timeout:()=>hn,timer:()=>Se,timerFlush:()=>Fe,touch:()=>Ra,touches:()=>Lb,transition:()=>i0,transpose:()=>kn,tree:()=>Nu,treemap:()=>wf,treemapBinary:()=>p1,treemapDice:()=>h1,treemapResquarify:()=>$p,treemapSlice:()=>Uc,treemapSliceDice:()=>H_,treemapSquarify:()=>zc,tsv:()=>_m,tsvFormat:()=>em,tsvFormatBody:()=>h4,tsvFormatRow:()=>d4,tsvFormatRows:()=>f4,tsvFormatValue:()=>p4,tsvParse:()=>tm,tsvParseRows:()=>u4,utcDay:()=>E1,utcDays:()=>ma,utcFormat:()=>Dl,utcFriday:()=>fg,utcFridays:()=>Ts,utcHour:()=>C1,utcHours:()=>Dg,utcMillisecond:()=>zu,utcMilliseconds:()=>d3,utcMinute:()=>td,utcMinutes:()=>Ig,utcMonday:()=>$c,utcMondays:()=>dg,utcMonth:()=>Jt,utcMonths:()=>pb,utcParse:()=>Yu,utcSaturday:()=>ic,utcSaturdays:()=>Hf,utcSecond:()=>Uu,utcSeconds:()=>f3,utcSunday:()=>k1,utcSundays:()=>g3,utcThursday:()=>jc,utcThursdays:()=>_3,utcTuesday:()=>hg,utcTuesdays:()=>y3,utcWednesday:()=>p3,utcWednesdays:()=>m3,utcWeek:()=>k1,utcWeeks:()=>g3,utcYear:()=>Ss,utcYears:()=>K5,values:()=>T2,variance:()=>nt,version:()=>b,voronoi:()=>my,window:()=>zn,xml:()=>R4,zip:()=>Ge,zoom:()=>Yi,zoomIdentity:()=>Qc,zoomTransform:()=>Mv});var b="5.16.0";function g(o,l){return ol?1:o>=l?0:NaN}function E(o){var l;return o.length===1&&(l=o,o=function(h,y){return g(l(h),y)}),{left:function(h,y,v,w){for(v==null&&(v=0),w==null&&(w=h.length);v>>1;o(h[N],y)<0?v=N+1:w=N}return v},right:function(h,y,v,w){for(v==null&&(v=0),w==null&&(w=h.length);v>>1;o(h[N],y)>0?w=N:v=N+1}return v}}}var k=E(g),M=k.right,O=k.left;const L=M;function F(o,l){l==null&&(l=P);for(var h=0,y=o.length-1,v=o[0],w=new Array(y<0?0:y);ho?1:l>=o?0:NaN}function K(o){return o===null?NaN:+o}function nt(o,l){var h,y,v=o.length,w=0,N=-1,S=0,D=0;if(l==null)for(;++N1)return D/(w-1)}function ht(o,l){var h=nt(o,l);return h&&Math.sqrt(h)}function J(o,l){var h,y,v,w=o.length,N=-1;if(l==null){for(;++N=h)for(y=v=h;++Nh&&(y=h),v=h)for(y=v=h;++Nh&&(y=h),v0)return[o];if((y=l0)for(o=Math.ceil(o/N),l=Math.floor(l/N),w=new Array(v=Math.ceil(l-o+1));++S=0?(w>=yt?10:w>=Bt?5:w>=kt?2:1)*Math.pow(10,v):-Math.pow(10,-v)/(w>=yt?10:w>=Bt?5:w>=kt?2:1)}function dt(o,l,h){var y=Math.abs(l-o)/Math.max(0,h),v=Math.pow(10,Math.floor(Math.log(y)/Math.LN10)),w=y/v;return w>=yt?v*=10:w>=Bt?v*=5:w>=kt&&(v*=2),lq;)U.pop(),--Z;var Q,ct=new Array(Z+1);for(w=0;w<=Z;++w)(Q=ct[w]=[]).x0=w>0?U[w-1]:z,Q.x1=w=1)return+h(o[y-1],y-1,o);var y,v=(y-1)*l,w=Math.floor(v),N=+h(o[w],w,o);return N+(+h(o[w+1],w+1,o)-N)*(v-w)}}function Rt(o,l,h){return o=st.call(o,K).sort(g),Math.ceil((h-l)/(2*(V(o,.75)-V(o,.25))*Math.pow(o.length,-1/3)))}function Yt(o,l,h){return Math.ceil((h-l)/(3.5*ht(o)*Math.pow(o.length,-1/3)))}function Gt(o,l){var h,y,v=o.length,w=-1;if(l==null){for(;++w=h)for(y=h;++wy&&(y=h)}else for(;++w=h)for(y=h;++wy&&(y=h);return y}function ye(o,l){var h,y=o.length,v=y,w=-1,N=0;if(l==null)for(;++w=0;)for(l=(y=o[v]).length;--l>=0;)h[--N]=y[l];return h}function he(o,l){var h,y,v=o.length,w=-1;if(l==null){for(;++w=h)for(y=h;++wh&&(y=h)}else for(;++w=h)for(y=h;++wh&&(y=h);return y}function me(o,l){for(var h=l.length,y=new Array(h);h--;)y[h]=o[l[h]];return y}function Ie(o,l){if(h=o.length){var h,y,v=0,w=0,N=o[w];for(l==null&&(l=g);++v=0&&(y=h.slice(v+1),h=h.slice(0,v)),h&&!l.hasOwnProperty(h))throw new Error("unknown type: "+h);return{type:h,name:y}})}function on(o,l){for(var h,y=0,v=o.length;y0)for(var h,y,v=new Array(h),w=0;wl?1:o>=l?0:NaN}zt.prototype={constructor:zt,appendChild:function(o){return this._parent.insertBefore(o,this._next)},insertBefore:function(o,l){return this._parent.insertBefore(o,l)},querySelector:function(o){return this._parent.querySelector(o)},querySelectorAll:function(o){return this._parent.querySelectorAll(o)}};var In="http://www.w3.org/1999/xhtml";const un={svg:"http://www.w3.org/2000/svg",xhtml:In,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Gn(o){var l=o+="",h=l.indexOf(":");return h>=0&&(l=o.slice(0,h))!=="xmlns"&&(o=o.slice(h+1)),un.hasOwnProperty(l)?{space:un[l],local:o}:o}function er(o){return function(){this.removeAttribute(o)}}function $r(o){return function(){this.removeAttributeNS(o.space,o.local)}}function An(o,l){return function(){this.setAttribute(o,l)}}function jn(o,l){return function(){this.setAttributeNS(o.space,o.local,l)}}function Pn(o,l){return function(){var h=l.apply(this,arguments);h==null?this.removeAttribute(o):this.setAttribute(o,h)}}function On(o,l){return function(){var h=l.apply(this,arguments);h==null?this.removeAttributeNS(o.space,o.local):this.setAttributeNS(o.space,o.local,h)}}function zn(o){return o.ownerDocument&&o.ownerDocument.defaultView||o.document&&o||o.defaultView}function $n(o){return function(){this.style.removeProperty(o)}}function Cn(o,l,h){return function(){this.style.setProperty(o,l,h)}}function Vn(o,l,h){return function(){var y=l.apply(this,arguments);y==null?this.style.removeProperty(o):this.style.setProperty(o,y,h)}}function Tn(o,l){return o.style.getPropertyValue(l)||zn(o).getComputedStyle(o,null).getPropertyValue(l)}function Nn(o){return function(){delete this[o]}}function Zn(o,l){return function(){this[o]=l}}function ua(o,l){return function(){var h=l.apply(this,arguments);h==null?delete this[o]:this[o]=h}}function yr(o){return o.trim().split(/^|\s+/)}function Ci(o){return o.classList||new _n(o)}function _n(o){this._node=o,this._names=yr(o.getAttribute("class")||"")}function xi(o,l){for(var h=Ci(o),y=-1,v=l.length;++y=0&&(this._names.splice(l,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(o){return this._names.indexOf(o)>=0}};var nr={},Re=null;function Ve(o,l,h){return o=Er(o,l,h),function(y){var v=y.relatedTarget;v&&(v===this||8&v.compareDocumentPosition(this))||o.call(this,y)}}function Er(o,l,h){return function(y){var v=Re;Re=y;try{o.call(this,this.__data__,l,h)}finally{Re=v}}}function Vt(o){return o.trim().split(/^|\s+/).map(function(l){var h="",y=l.indexOf(".");return y>=0&&(h=l.slice(y+1),l=l.slice(0,y)),{type:l,name:h}})}function ka(o){return function(){var l=this.__on;if(l){for(var h,y=0,v=-1,w=l.length;y=Wt&&(Wt=Mt+1);!(pt=it[Wt])&&++Wt=0;)(y=v[w])&&(N&&4^y.compareDocumentPosition(N)&&N.parentNode.insertBefore(y,N),N=y);return this},sort:function(o){function l(q,U){return q&&U?o(q.__data__,U.__data__):!q-!U}o||(o=gn);for(var h=this._groups,y=h.length,v=new Array(y),w=0;w1?this.each((l==null?$n:typeof l=="function"?Vn:Cn)(o,l,h==null?"":h)):Tn(this.node(),o)},property:function(o,l){return arguments.length>1?this.each((l==null?Nn:typeof l=="function"?ua:Zn)(o,l)):this.node()[o]},classed:function(o,l){var h=yr(o+"");if(arguments.length<2){for(var y=Ci(this.node()),v=-1,w=h.length;++v>8&15|l>>4&240,l>>4&15|240&l,(15&l)<<4|15&l,1):h===8?ta(l>>24&255,l>>16&255,l>>8&255,(255&l)/255):h===4?ta(l>>12&15|l>>8&240,l>>8&15|l>>4&240,l>>4&15|240&l,((15&l)<<4|15&l)/255):null):(l=Sa.exec(o))?new ii(l[1],l[2],l[3],1):(l=da.exec(o))?new ii(255*l[1]/100,255*l[2]/100,255*l[3]/100,1):(l=Oo.exec(o))?ta(l[1],l[2],l[3],l[4]):(l=rl.exec(o))?ta(255*l[1]/100,255*l[2]/100,255*l[3]/100,l[4]):(l=Kt.exec(o))?ao(l[1],l[2]/100,l[3]/100,1):(l=pn.exec(o))?ao(l[1],l[2]/100,l[3]/100,l[4]):en.hasOwnProperty(o)?si(en[o]):o==="transparent"?new ii(NaN,NaN,NaN,0):null}function si(o){return new ii(o>>16&255,o>>8&255,255&o,1)}function ta(o,l,h,y){return y<=0&&(o=l=h=NaN),new ii(o,l,h,y)}function Aa(o){return o instanceof qr||(o=Gr(o)),o?new ii((o=o.rgb()).r,o.g,o.b,o.opacity):new ii}function Rr(o,l,h,y){return arguments.length===1?Aa(o):new ii(o,l,h,y==null?1:y)}function ii(o,l,h,y){this.r=+o,this.g=+l,this.b=+h,this.opacity=+y}function il(){return"#"+Gl(this.r)+Gl(this.g)+Gl(this.b)}function Wl(){var o=this.opacity;return((o=isNaN(o)?1:Math.max(0,Math.min(1,o)))===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))+(o===1?")":", "+o+")")}function Gl(o){return((o=Math.max(0,Math.min(255,Math.round(o)||0)))<16?"0":"")+o.toString(16)}function ao(o,l,h,y){return y<=0?o=l=h=NaN:h<=0||h>=1?o=l=NaN:l<=0&&(o=NaN),new oo(o,l,h,y)}function Vl(o){if(o instanceof oo)return new oo(o.h,o.s,o.l,o.opacity);if(o instanceof qr||(o=Gr(o)),!o)return new oo;if(o instanceof oo)return o;var l=(o=o.rgb()).r/255,h=o.g/255,y=o.b/255,v=Math.min(l,h,y),w=Math.max(l,h,y),N=NaN,S=w-v,D=(w+v)/2;return S?(N=l===w?(h-y)/S+6*(h0&&D<1?0:N,new oo(N,S,D,o.opacity)}function Zl(o,l,h,y){return arguments.length===1?Vl(o):new oo(o,l,h,y==null?1:y)}function oo(o,l,h,y){this.h=+o,this.s=+l,this.l=+h,this.opacity=+y}function nn(o,l,h){return 255*(o<60?l+(h-l)*o/60:o<180?h:o<240?l+(h-l)*(240-o)/60:l)}function uh(o,l,h,y,v){var w=o*o,N=w*o;return((1-3*o+3*w-N)*l+(4-6*w+3*N)*h+(1+3*o+3*w-3*N)*y+N*v)/6}function Pr(o){var l=o.length-1;return function(h){var y=h<=0?h=0:h>=1?(h=1,l-1):Math.floor(h*l),v=o[y],w=o[y+1],N=y>0?o[y-1]:2*v-w,S=y180||h<-180?h-360*Math.round(h/360):h):ol(isNaN(o)?l:o)}function Li(o,l){var h=l-o;return h?Xl(o,h):ol(isNaN(o)?l:o)}fi(qr,Gr,{copy:function(o){return Object.assign(new this.constructor,this,o)},displayable:function(){return this.rgb().displayable()},hex:rr,formatHex:rr,formatHsl:function(){return Vl(this).formatHsl()},formatRgb:Wr,toString:Wr}),fi(ii,Rr,oi(qr,{brighter:function(o){return o=o==null?Qi:Math.pow(Qi,o),new ii(this.r*o,this.g*o,this.b*o,this.opacity)},darker:function(o){return o=o==null?fa:Math.pow(fa,o),new ii(this.r*o,this.g*o,this.b*o,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:il,formatHex:il,formatRgb:Wl,toString:Wl})),fi(oo,Zl,oi(qr,{brighter:function(o){return o=o==null?Qi:Math.pow(Qi,o),new oo(this.h,this.s,this.l*o,this.opacity)},darker:function(o){return o=o==null?fa:Math.pow(fa,o),new oo(this.h,this.s,this.l*o,this.opacity)},rgb:function(){var o=this.h%360+360*(this.h<0),l=isNaN(o)||isNaN(this.s)?0:this.s,h=this.l,y=h+(h<.5?h:1-h)*l,v=2*h-y;return new ii(nn(o>=240?o-240:o+120,v,y),nn(o,v,y),nn(o<120?o+240:o-120,v,y),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 o=this.opacity;return((o=isNaN(o)?1:Math.max(0,Math.min(1,o)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(o===1?")":", "+o+")")}}));const xc=function o(l){var h=function(v){return(v=+v)==1?Li:function(w,N){return N-w?function(S,D,R){return S=Math.pow(S,R),D=Math.pow(D,R)-S,R=1/R,function(z){return Math.pow(S+z*D,R)}}(w,N,v):ol(isNaN(w)?N:w)}}(l);function y(v,w){var N=h((v=Rr(v)).r,(w=Rr(w)).r),S=h(v.g,w.g),D=h(v.b,w.b),R=Li(v.opacity,w.opacity);return function(z){return v.r=N(z),v.g=S(z),v.b=D(z),v.opacity=R(z),v+""}}return y.gamma=o,y}(1);function hh(o){return function(l){var h,y,v=l.length,w=new Array(v),N=new Array(v),S=new Array(v);for(h=0;hw&&(v=l.slice(w,v),S[N]?S[N]+=v:S[++N]=v),(h=h[0])===(y=y[0])?S[N]?S[N]+=y:S[++N]=y:(S[++N]=null,D.push({i:N,x:Oa(h,y)})),w=ph.lastIndex;return w=0&&l._call.call(null,o),l=l._next;--ea}function Ze(){pa=(Za=I.now())+sr,ea=ki=0;try{Fe()}finally{ea=0,function(){for(var o,l,h=Jl,y=1/0;h;)h._call?(y>h._time&&(y=h._time),o=h,h=h._next):(l=h._next,h._next=null,h=o?o._next=l:Jl=l);Fo=o,an(y)}(),pa=0}}function Xe(){var o=I.now(),l=o-Za;l>1e3&&(sr-=l,Za=o)}function an(o){ea||(ki&&(ki=clearTimeout(ki)),o-pa>24?(o<1/0&&(ki=setTimeout(Ze,o-I.now()-sr)),co&&(co=clearInterval(co))):(co||(Za=I.now(),co=setInterval(Xe,1e3)),ea=1,H(Ze)))}function hn(o,l,h){var y=new te;return l=l==null?0:+l,y.restart(function(v){y.stop(),o(v+l)},l,h),y}te.prototype=Se.prototype={constructor:te,restart:function(o,l,h){if(typeof o!="function")throw new TypeError("callback is not a function");h=(h==null?tt():+h)+(l==null?0:+l),this._next||Fo===this||(Fo?Fo._next=this:Jl=this,Fo=this),this._call=o,this._time=h,an()},stop:function(){this._call&&(this._call=null,this._time=1/0,an())}};var Un=dn("start","end","cancel","interrupt"),Rn=[];function xr(o,l,h,y,v,w){var N=o.__transition;if(N){if(h in N)return}else o.__transition={};(function(S,D,R){var z,q=S.__transition;function U(ct){var ot,it,gt,pt;if(R.state!==1)return Q();for(ot in q)if((pt=q[ot]).name===R.name){if(pt.state===3)return hn(U);pt.state===4?(pt.state=6,pt.timer.stop(),pt.on.call("interrupt",S,S.__data__,pt.index,pt.group),delete q[ot]):+ot0)throw new Error("too late; already scheduled");return h}function Ur(o,l){var h=_r(o,l);if(h.state>3)throw new Error("too late; already running");return h}function _r(o,l){var h=o.__transition;if(!h||!(h=h[l]))throw new Error("transition not found");return h}function Ba(o,l){var h,y,v,w=o.__transition,N=!0;if(w){for(v in l=l==null?null:l+"",w)(h=w[v]).name===l?(y=h.state>2&&h.state<5,h.state=6,h.timer.stop(),h.on.call(y?"interrupt":"cancel",o,o.__data__,h.index,h.group),delete w[v]):N=!1;N&&delete o.__transition}}var Us,gh,Gd,yh,Po=180/Math.PI,mh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ky(o,l,h,y,v,w){var N,S,D;return(N=Math.sqrt(o*o+l*l))&&(o/=N,l/=N),(D=o*h+l*y)&&(h-=o*D,y-=l*D),(S=Math.sqrt(h*h+y*y))&&(h/=S,y/=S,D/=S),o*y180?z+=360:z-R>180&&(R+=360),U.push({i:q.push(v(q)+"rotate(",null,y)-2,x:Oa(R,z)})):z&&q.push(v(q)+"rotate("+z+y)}(w.rotate,N.rotate,S,D),function(R,z,q,U){R!==z?U.push({i:q.push(v(q)+"skewX(",null,y)-2,x:Oa(R,z)}):z&&q.push(v(q)+"skewX("+z+y)}(w.skewX,N.skewX,S,D),function(R,z,q,U,Z,Q){if(R!==q||z!==U){var ct=Z.push(v(Z)+"scale(",null,",",null,")");Q.push({i:ct-4,x:Oa(R,q)},{i:ct-2,x:Oa(z,U)})}else q===1&&U===1||Z.push(v(Z)+"scale("+q+","+U+")")}(w.scaleX,w.scaleY,N.scaleX,N.scaleY,S,D),w=N=null,function(R){for(var z,q=-1,U=D.length;++q=0&&(S=S.slice(0,D)),!S||S==="start"})}(l)?Tr:Ur;return function(){var N=w(this,o),S=N.on;S!==y&&(v=(y=S).copy()).on(l,h),N.on=v}}var o2=Mi.prototype.constructor;function s2(o){return function(){this.style.removeProperty(o)}}function c2(o,l,h){return function(y){this.style.setProperty(o,l.call(this,y),h)}}function l2(o,l,h){var y,v;function w(){var N=l.apply(this,arguments);return N!==v&&(y=(v=N)&&c2(o,N,h)),y}return w._value=l,w}function u2(o){return function(l){this.textContent=o.call(this,l)}}function jv(o){var l,h;function y(){var v=o.apply(this,arguments);return v!==h&&(l=(h=v)&&u2(v)),l}return y._value=o,y}var Hv=0;function ls(o,l,h,y){this._groups=o,this._parents=l,this._name=h,this._id=y}function i0(o){return Mi().transition(o)}function h2(){return++Hv}var us=Mi.prototype;function a0(o){return o*o*o}function o0(o){return--o*o*o+1}function wc(o){return((o*=2)<=1?o*o*o:(o-=2)*o*o+2)/2}ls.prototype=i0.prototype={constructor:ls,select:function(o){var l=this._name,h=this._id;typeof o!="function"&&(o=We(o));for(var y=this._groups,v=y.length,w=new Array(v),N=0;N1&&h.name===l)return new ls([[o]],qv,l,+y)}return null}function f2(o){return function(){return o}}function Gv(o,l,h){this.target=o,this.type=l,this.selection=h}function Cy(){Re.stopImmediatePropagation()}function d2(){Re.preventDefault(),Re.stopImmediatePropagation()}var My={name:"drag"},s0={name:"space"},ul={name:"handle"},hl={name:"center"};function Ql(o){return[+o[0],+o[1]]}function c0(o){return[Ql(o[0]),Ql(o[1])]}function l0(o){return function(l){return Ra(l,Re.touches,o)}}var u0={name:"x",handles:["w","e"].map(Xa),input:function(o,l){return o==null?null:[[+o[0],l[0][1]],[+o[1],l[1][1]]]},output:function(o){return o&&[o[0][0],o[1][0]]}},tu={name:"y",handles:["n","s"].map(Xa),input:function(o,l){return o==null?null:[[l[0][0],+o[0]],[l[1][0],+o[1]]]},output:function(o){return o&&[o[0][1],o[1][1]]}},lo={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Xa),input:function(o){return o==null?null:c0(o)},output:function(o){return o}},fs={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"},p2={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"},Ny={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ly={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Xa(o){return{type:o}}function g2(){return!Re.ctrlKey&&!Re.button}function y2(){var o=this.ownerSVGElement||this;return o.hasAttribute("viewBox")?[[(o=o.viewBox.baseVal).x,o.y],[o.x+o.width,o.y+o.height]]:[[0,0],[o.width.baseVal.value,o.height.baseVal.value]]}function Dy(){return navigator.maxTouchPoints||"ontouchstart"in this}function f0(o){for(;!o.__brush;)if(!(o=o.parentNode))return;return o.__brush}function Vv(o){return o[0][0]===o[1][0]||o[0][1]===o[1][1]}function Zv(o){var l=o.__brush;return l?l.dim.output(l.selection):null}function d0(){return vh(u0)}function Xv(){return vh(tu)}function m2(){return vh(lo)}function vh(o){var l,h=y2,y=g2,v=Dy,w=!0,N=dn("start","brush","end"),S=6;function D(ot){var it=ot.property("__brush",ct).selectAll(".overlay").data([Xa("overlay")]);it.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",fs.overlay).merge(it).each(function(){var pt=f0(this).extent;Hr(this).attr("x",pt[0][0]).attr("y",pt[0][1]).attr("width",pt[1][0]-pt[0][0]).attr("height",pt[1][1]-pt[0][1])}),ot.selectAll(".selection").data([Xa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",fs.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var gt=ot.selectAll(".handle").data(o.handles,function(pt){return pt.type});gt.exit().remove(),gt.enter().append("rect").attr("class",function(pt){return"handle handle--"+pt.type}).attr("cursor",function(pt){return fs[pt.type]}),ot.each(R).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",U).filter(v).on("touchstart.brush",U).on("touchmove.brush",Z).on("touchend.brush touchcancel.brush",Q).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(){var ot=Hr(this),it=f0(this).selection;it?(ot.selectAll(".selection").style("display",null).attr("x",it[0][0]).attr("y",it[0][1]).attr("width",it[1][0]-it[0][0]).attr("height",it[1][1]-it[0][1]),ot.selectAll(".handle").style("display",null).attr("x",function(gt){return gt.type[gt.type.length-1]==="e"?it[1][0]-S/2:it[0][0]-S/2}).attr("y",function(gt){return gt.type[0]==="s"?it[1][1]-S/2:it[0][1]-S/2}).attr("width",function(gt){return gt.type==="n"||gt.type==="s"?it[1][0]-it[0][0]+S:S}).attr("height",function(gt){return gt.type==="e"||gt.type==="w"?it[1][1]-it[0][1]+S:S})):ot.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function z(ot,it,gt){var pt=ot.__brush.emitter;return!pt||gt&&pt.clean?new q(ot,it,gt):pt}function q(ot,it,gt){this.that=ot,this.args=it,this.state=ot.__brush,this.active=0,this.clean=gt}function U(){if((!l||Re.touches)&&y.apply(this,arguments)){var ot,it,gt,pt,Mt,Wt,ee,le,Be,Xt,_e,Et=this,Pt=Re.target.__data__.type,ue=(w&&Re.metaKey?Pt="overlay":Pt)==="selection"?My:w&&Re.altKey?hl:ul,ce=o===tu?null:Ny[Pt],de=o===u0?null:Ly[Pt],tn=f0(Et),fn=tn.extent,Bn=tn.selection,dr=fn[0][0],Kn=fn[0][1],bn=fn[1][0],Ar=fn[1][1],Wn=0,Hn=0,wr=ce&&de&&w&&Re.shiftKey,wa=Re.touches?l0(Re.changedTouches[0].identifier):Ps,$i=wa(Et),vc=$i,el=z(Et,arguments,!0).beforestart();Pt==="overlay"?(Bn&&(Be=!0),tn.selection=Bn=[[ot=o===tu?dr:$i[0],gt=o===u0?Kn:$i[1]],[Mt=o===tu?bn:ot,ee=o===u0?Ar:gt]]):(ot=Bn[0][0],gt=Bn[0][1],Mt=Bn[1][0],ee=Bn[1][1]),it=ot,pt=gt,Wt=Mt,le=ee;var X1=Hr(Et).attr("pointer-events","none"),Rs=X1.selectAll(".overlay").attr("cursor",fs[Pt]);if(Re.touches)el.moved=Lv,el.ended=Dv;else{var Nv=Hr(Re.view).on("mousemove.brush",Lv,!0).on("mouseup.brush",Dv,!0);w&&Nv.on("keydown.brush",Kb,!0).on("keyup.brush",Jb,!0),Bi(Re.view)}Cy(),Ba(Et),R.call(Et),el.start()}function Lv(){var Lo=wa(Et);!wr||Xt||_e||(Math.abs(Lo[0]-vc[0])>Math.abs(Lo[1]-vc[1])?_e=!0:Xt=!0),vc=Lo,Be=!0,d2(),oh()}function oh(){var Lo;switch(Wn=vc[0]-$i[0],Hn=vc[1]-$i[1],ue){case s0:case My:ce&&(Wn=Math.max(dr-ot,Math.min(bn-Mt,Wn)),it=ot+Wn,Wt=Mt+Wn),de&&(Hn=Math.max(Kn-gt,Math.min(Ar-ee,Hn)),pt=gt+Hn,le=ee+Hn);break;case ul:ce<0?(Wn=Math.max(dr-ot,Math.min(bn-ot,Wn)),it=ot+Wn,Wt=Mt):ce>0&&(Wn=Math.max(dr-Mt,Math.min(bn-Mt,Wn)),it=ot,Wt=Mt+Wn),de<0?(Hn=Math.max(Kn-gt,Math.min(Ar-gt,Hn)),pt=gt+Hn,le=ee):de>0&&(Hn=Math.max(Kn-ee,Math.min(Ar-ee,Hn)),pt=gt,le=ee+Hn);break;case hl:ce&&(it=Math.max(dr,Math.min(bn,ot-Wn*ce)),Wt=Math.max(dr,Math.min(bn,Mt+Wn*ce))),de&&(pt=Math.max(Kn,Math.min(Ar,gt-Hn*de)),le=Math.max(Kn,Math.min(Ar,ee+Hn*de)))}Wt0&&(ot=it-Wn),de<0?ee=le-Hn:de>0&&(gt=pt-Hn),ue=s0,Rs.attr("cursor",fs.selection),oh());break;default:return}d2()}function Jb(){switch(Re.keyCode){case 16:wr&&(Xt=_e=wr=!1,oh());break;case 18:ue===hl&&(ce<0?Mt=Wt:ce>0&&(ot=it),de<0?ee=le:de>0&&(gt=pt),ue=ul,oh());break;case 32:ue===s0&&(Re.altKey?(ce&&(Mt=Wt-Wn*ce,ot=it+Wn*ce),de&&(ee=le-Hn*de,gt=pt+Hn*de),ue=hl):(ce<0?Mt=Wt:ce>0&&(ot=it),de<0?ee=le:de>0&&(gt=pt),ue=ul),Rs.attr("cursor",fs[Pt]),oh());break;default:return}d2()}}function Z(){z(this,arguments).moved()}function Q(){z(this,arguments).ended()}function ct(){var ot=this.__brush||{selection:null};return ot.extent=c0(h.apply(this,arguments)),ot.dim=o,ot}return D.move=function(ot,it){ot.selection?ot.on("start.brush",function(){z(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){z(this,arguments).end()}).tween("brush",function(){var gt=this,pt=gt.__brush,Mt=z(gt,arguments),Wt=pt.selection,ee=o.input(typeof it=="function"?it.apply(this,arguments):it,pt.extent),le=sl(Wt,ee);function Be(Xt){pt.selection=Xt===1&&ee===null?null:le(Xt),R.call(gt),Mt.brush()}return Wt!==null&&ee!==null?Be:Be(1)}):ot.each(function(){var gt=this,pt=arguments,Mt=gt.__brush,Wt=o.input(typeof it=="function"?it.apply(gt,pt):it,Mt.extent),ee=z(gt,pt).beforestart();Ba(gt),Mt.selection=Wt===null?null:Wt,R.call(gt),ee.start().brush().end()})},D.clear=function(ot){D.move(ot,null)},q.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(ot){ri(new Gv(D,ot,o.output(this.state.selection)),N.apply,N,[ot,this.that,this.args])}},D.extent=function(ot){return arguments.length?(h=typeof ot=="function"?ot:f2(c0(ot)),D):h},D.filter=function(ot){return arguments.length?(y=typeof ot=="function"?ot:f2(!!ot),D):y},D.touchable=function(ot){return arguments.length?(v=typeof ot=="function"?ot:f2(!!ot),D):v},D.handleSize=function(ot){return arguments.length?(S=+ot,D):S},D.keyModifiers=function(ot){return arguments.length?(w=!!ot,D):w},D.on=function(){var ot=N.on.apply(N,arguments);return ot===N?D:ot},D}var Iy=Math.cos,Oy=Math.sin,p0=Math.PI,g0=p0/2,Ry=2*p0,_2=Math.max;function eu(o){return function(l,h){return o(l.source.value+l.target.value,h.source.value+h.target.value)}}function v2(){var o=0,l=null,h=null,y=null;function v(w){var N,S,D,R,z,q,U=w.length,Z=[],Q=Nt(U),ct=[],ot=[],it=ot.groups=new Array(U),gt=new Array(U*U);for(N=0,z=-1;++zYs)if(Math.abs(z*S-D*R)>Ys&&v){var U=h-w,Z=y-N,Q=S*S+D*D,ct=U*U+Z*Z,ot=Math.sqrt(Q),it=Math.sqrt(q),gt=v*Math.tan((y0-Math.acos((Q+q-ct)/(2*ot*it)))/2),pt=gt/it,Mt=gt/ot;Math.abs(pt-1)>Ys&&(this._+="L"+(o+pt*R)+","+(l+pt*z)),this._+="A"+v+","+v+",0,0,"+ +(z*U>R*Z)+","+(this._x1=o+Mt*S)+","+(this._y1=l+Mt*D)}else this._+="L"+(this._x1=o)+","+(this._y1=l)},arc:function(o,l,h,y,v,w){o=+o,l=+l,w=!!w;var N=(h=+h)*Math.cos(y),S=h*Math.sin(y),D=o+N,R=l+S,z=1^w,q=w?y-v:v-y;if(h<0)throw new Error("negative radius: "+h);this._x1===null?this._+="M"+D+","+R:(Math.abs(this._x1-D)>Ys||Math.abs(this._y1-R)>Ys)&&(this._+="L"+D+","+R),h&&(q<0&&(q=q%m0+m0),q>By?this._+="A"+h+","+h+",0,1,"+z+","+(o-N)+","+(l-S)+"A"+h+","+h+",0,1,"+z+","+(this._x1=D)+","+(this._y1=R):q>Ys&&(this._+="A"+h+","+h+",0,"+ +(q>=y0)+","+z+","+(this._x1=o+h*Math.cos(v))+","+(this._y1=l+h*Math.sin(v))))},rect:function(o,l,h,y){this._+="M"+(this._x0=this._x1=+o)+","+(this._y0=this._y1=+l)+"h"+ +h+"v"+ +y+"h"+-h+"Z"},toString:function(){return this._}};const $s=bh;function _0(o){return o.source}function nu(o){return o.target}function Fy(o){return o.radius}function Py(o){return o.startAngle}function Uy(o){return o.endAngle}function w2(){var o=_0,l=nu,h=Fy,y=Py,v=Uy,w=null;function N(){var S,D=Kv.call(arguments),R=o.apply(this,D),z=l.apply(this,D),q=+h.apply(this,(D[0]=R,D)),U=y.apply(this,D)-g0,Z=v.apply(this,D)-g0,Q=q*Iy(U),ct=q*Oy(U),ot=+h.apply(this,(D[0]=z,D)),it=y.apply(this,D)-g0,gt=v.apply(this,D)-g0;if(w||(w=S=$s()),w.moveTo(Q,ct),w.arc(0,0,q,U,Z),U===it&&Z===gt||(w.quadraticCurveTo(0,0,ot*Iy(it),ot*Oy(it)),w.arc(0,0,ot,it,gt)),w.quadraticCurveTo(0,0,Q,ct),w.closePath(),S)return w=null,S+""||null}return N.radius=function(S){return arguments.length?(h=typeof S=="function"?S:b2(+S),N):h},N.startAngle=function(S){return arguments.length?(y=typeof S=="function"?S:b2(+S),N):y},N.endAngle=function(S){return arguments.length?(v=typeof S=="function"?S:b2(+S),N):v},N.source=function(S){return arguments.length?(o=S,N):o},N.target=function(S){return arguments.length?(l=S,N):l},N.context=function(S){return arguments.length?(w=S==null?null:S,N):w},N}var uo="$";function xh(){}function k2(o,l){var h=new xh;if(o instanceof xh)o.each(function(S,D){h.set(D,S)});else if(Array.isArray(o)){var y,v=-1,w=o.length;if(l==null)for(;++v=y.length)return o!=null&&S.sort(o),l!=null?l(S):S;for(var q,U,Z,Q=-1,ct=S.length,ot=y[D++],it=js(),gt=R();++Qy.length)return S;var R,z=v[D-1];return l!=null&&D>=y.length?R=S.entries():(R=[],S.each(function(q,U){R.push({key:U,values:N(q,D)})})),z!=null?R.sort(function(q,U){return z(q.key,U.key)}):R}return h={object:function(S){return w(S,0,zy,Yy)},map:function(S){return w(S,0,E2,$y)},entries:function(S){return N(w(S,0,E2,$y),0)},key:function(S){return y.push(S),h},sortKeys:function(S){return v[y.length-1]=S,h},sortValues:function(S){return o=S,h},rollup:function(S){return l=S,h}}}function zy(){return{}}function Yy(o,l,h){o[l]=h}function E2(){return js()}function $y(o,l,h){o.set(l,h)}function wh(){}var kc=js.prototype;function ru(o,l){var h=new wh;if(o instanceof wh)o.each(function(w){h.add(w)});else if(o){var y=-1,v=o.length;if(l==null)for(;++y.008856451679035631?Math.pow(o,1/3):o/jy+w0}function C2(o){return o>A2?o*o*o:jy*(o-w0)}function au(o){return 255*(o<=.0031308?12.92*o:1.055*Math.pow(o,1/2.4)-.055)}function Hs(o){return(o/=255)<=.04045?o/12.92:Math.pow((o+.055)/1.055,2.4)}function E0(o){if(o instanceof ds)return new ds(o.h,o.c,o.l,o.opacity);if(o instanceof Uo||(o=iu(o)),o.a===0&&o.b===0)return new ds(NaN,0y!=Z>y&&h<(U-R)*(y-z)/(Z-z)+R&&(v=-v)}return v}function Ah(o,l,h){var y,v,w,N;return function(S,D,R){return(D[0]-S[0])*(R[1]-S[1])==(R[0]-S[0])*(D[1]-S[1])}(o,l,h)&&(v=o[y=+(o[0]===l[0])],w=h[y],N=l[y],v<=w&&w<=N||N<=w&&w<=v)}function Gy(){}var gs=[[],[[[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 qi(){var o=1,l=1,h=G,y=S;function v(D){var R=h(D);if(Array.isArray(R))R=R.slice().sort(t4);else{var z=J(D),q=z[0],U=z[1];R=dt(q,U,R),R=Nt(Math.floor(q/R)*R,Math.floor(U/R)*R,R)}return R.map(function(Z){return w(D,Z)})}function w(D,R){var z=[],q=[];return function(U,Z,Q){var ct,ot,it,gt,pt,Mt,Wt=new Array,ee=new Array;for(ct=ot=-1,gt=U[0]>=Z,gs[gt<<1].forEach(le);++ct=Z,gs[it|gt<<1].forEach(le);for(gs[gt<<0].forEach(le);++ot=Z,pt=U[ot*o]>=Z,gs[gt<<1|pt<<2].forEach(le);++ct=Z,Mt=pt,pt=U[ot*o+ct+1]>=Z,gs[it|gt<<1|pt<<2|Mt<<3].forEach(le);gs[gt|pt<<3].forEach(le)}for(ct=-1,pt=U[ot*o]>=Z,gs[pt<<2].forEach(le);++ct=Z,gs[pt<<2|Mt<<3].forEach(le);function le(Be){var Xt,_e,Et=[Be[0][0]+ct,Be[0][1]+ot],Pt=[Be[1][0]+ct,Be[1][1]+ot],ue=N(Et),ce=N(Pt);(Xt=ee[ue])?(_e=Wt[ce])?(delete ee[Xt.end],delete Wt[_e.start],Xt===_e?(Xt.ring.push(Pt),Q(Xt.ring)):Wt[Xt.start]=ee[_e.end]={start:Xt.start,end:_e.end,ring:Xt.ring.concat(_e.ring)}):(delete ee[Xt.end],Xt.ring.push(Pt),ee[Xt.end=ce]=Xt):(Xt=Wt[ce])?(_e=ee[ue])?(delete Wt[Xt.start],delete ee[_e.end],Xt===_e?(Xt.ring.push(Pt),Q(Xt.ring)):Wt[_e.start]=ee[Xt.end]={start:_e.start,end:Xt.end,ring:_e.ring.concat(Xt.ring)}):(delete Wt[Xt.start],Xt.ring.unshift(Et),Wt[Xt.start=ue]=Xt):Wt[ue]=ee[ce]={start:ue,end:ce,ring:[Et,Pt]}}gs[pt<<3].forEach(le)}(D,R,function(U){y(U,D,R),function(Z){for(var Q=0,ct=Z.length,ot=Z[ct-1][1]*Z[0][0]-Z[ct-1][0]*Z[0][1];++Q0?z.push([U]):q.push(U)}),q.forEach(function(U){for(var Z,Q=0,ct=z.length;Q0&&Z0&&Q0&&z>0))throw new Error("invalid size");return o=R,l=z,v},v.thresholds=function(D){return arguments.length?(h=typeof D=="function"?D:Array.isArray(D)?ps(Wy.call(D)):ps(D),v):h},v.smooth=function(D){return arguments.length?(y=D?S:Gy,v):y===S},v}function O2(o,l,h){for(var y=o.width,v=o.height,w=1+(h<<1),N=0;N=h&&(S>=w&&(D-=o.data[S-w+N*y]),l.data[S-h+N*y]=D/Math.min(S+1,y-1+w-S,w))}function R2(o,l,h){for(var y=o.width,v=o.height,w=1+(h<<1),N=0;N=h&&(S>=w&&(D-=o.data[N+(S-w)*y]),l.data[N+(S-h)*y]=D/Math.min(S+1,v-1+w-S,w))}function Mr(o){return o[0]}function e4(o){return o[1]}function Ch(){return 1}function Mh(){var o=Mr,l=e4,h=Ch,y=960,v=500,w=20,N=2,S=3*w,D=y+2*S>>N,R=v+2*S>>N,z=ps(20);function q(it){var gt=new Float32Array(D*R),pt=new Float32Array(D*R);it.forEach(function(ee,le,Be){var Xt=+o(ee,le,Be)+S>>N,_e=+l(ee,le,Be)+S>>N,Et=+h(ee,le,Be);Xt>=0&&Xt=0&&_e>N),R2({width:D,height:R,data:pt},{width:D,height:R,data:gt},w>>N),O2({width:D,height:R,data:gt},{width:D,height:R,data:pt},w>>N),R2({width:D,height:R,data:pt},{width:D,height:R,data:gt},w>>N),O2({width:D,height:R,data:gt},{width:D,height:R,data:pt},w>>N),R2({width:D,height:R,data:pt},{width:D,height:R,data:gt},w>>N);var Mt=z(gt);if(!Array.isArray(Mt)){var Wt=Gt(gt);Mt=dt(0,Wt,Mt),(Mt=Nt(0,Math.floor(Wt/Mt)*Mt,Mt)).shift()}return qi().thresholds(Mt).size([D,R])(gt).map(U)}function U(it){return it.value*=Math.pow(2,-2*N),it.coordinates.forEach(Z),it}function Z(it){it.forEach(Q)}function Q(it){it.forEach(ct)}function ct(it){it[0]=it[0]*Math.pow(2,N)-S,it[1]=it[1]*Math.pow(2,N)-S}function ot(){return D=y+2*(S=3*w)>>N,R=v+2*S>>N,q}return q.x=function(it){return arguments.length?(o=typeof it=="function"?it:ps(+it),q):o},q.y=function(it){return arguments.length?(l=typeof it=="function"?it:ps(+it),q):l},q.weight=function(it){return arguments.length?(h=typeof it=="function"?it:ps(+it),q):h},q.size=function(it){if(!arguments.length)return[y,v];var gt=Math.ceil(it[0]),pt=Math.ceil(it[1]);if(!(gt>=0||gt>=0))throw new Error("invalid size");return y=gt,v=pt,ot()},q.cellSize=function(it){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return N=Math.floor(Math.log(it)/Math.LN2),ot()},q.thresholds=function(it){return arguments.length?(z=typeof it=="function"?it:Array.isArray(it)?ps(Wy.call(it)):ps(it),q):z},q.bandwidth=function(it){if(!arguments.length)return Math.sqrt(w*(w+1));if(!((it=+it)>=0))throw new Error("invalid bandwidth");return w=Math.round((Math.sqrt(4*it*it+1)-1)/2),ot()},q}function S0(o){return function(){return o}}function B2(o,l,h,y,v,w,N,S,D,R){this.target=o,this.type=l,this.subject=h,this.identifier=y,this.active=v,this.x=w,this.y=N,this.dx=S,this.dy=D,this._=R}function n4(){return!Re.ctrlKey&&!Re.button}function r4(){return this.parentNode}function i4(o){return o==null?{x:Re.x,y:Re.y}:o}function Vy(){return navigator.maxTouchPoints||"ontouchstart"in this}function Zy(){var o,l,h,y,v=n4,w=r4,N=i4,S=Vy,D={},R=dn("start","drag","end"),z=0,q=0;function U(Mt){Mt.on("mousedown.drag",Z).filter(S).on("touchstart.drag",ot).on("touchmove.drag",it).on("touchend.drag touchcancel.drag",gt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Z(){if(!y&&v.apply(this,arguments)){var Mt=pt("mouse",w.apply(this,arguments),Ps,this,arguments);Mt&&(Hr(Re.view).on("mousemove.drag",Q,!0).on("mouseup.drag",ct,!0),Bi(Re.view),Ri(),h=!1,o=Re.clientX,l=Re.clientY,Mt("start"))}}function Q(){if(Ji(),!h){var Mt=Re.clientX-o,Wt=Re.clientY-l;h=Mt*Mt+Wt*Wt>q}D.mouse("drag")}function ct(){Hr(Re.view).on("mousemove.drag mouseup.drag",null),Or(Re.view,h),Ji(),D.mouse("end")}function ot(){if(v.apply(this,arguments)){var Mt,Wt,ee=Re.changedTouches,le=w.apply(this,arguments),Be=ee.length;for(Mt=0;Mt=q?Q=!0:(pt=S.charCodeAt(U++))===10?ct=!0:pt===13&&(ct=!0,S.charCodeAt(U)===10&&++U),S.slice(Mt+1,gt-1).replace(/""/g,'"')}for(;U9999?"+"+Ka(Z,6):Ka(Z,4)}(D.getUTCFullYear())+"-"+Ka(D.getUTCMonth()+1,2)+"-"+Ka(D.getUTCDate(),2)+(U?"T"+Ka(R,2)+":"+Ka(z,2)+":"+Ka(q,2)+"."+Ka(U,3)+"Z":q?"T"+Ka(R,2)+":"+Ka(z,2)+":"+Ka(q,2)+"Z":z||R?"T"+Ka(R,2)+":"+Ka(z,2)+"Z":"")}(S):l.test(S+="")?'"'+S.replace(/"/g,'""')+'"':S}return{parse:function(S,D){var R,z,q=y(S,function(U,Z){if(R)return R(U,Z-1);z=U,R=D?function(Q,ct){var ot=Ky(Q);return function(it,gt){return ct(ot(it),gt,Q)}}(U,D):Ky(U)});return q.columns=z||[],q},parseRows:y,format:function(S,D){return D==null&&(D=P2(S)),[D.map(N).join(o)].concat(v(S,D)).join(` `)},formatBody:function(S,D){return D==null&&(D=P2(S)),v(S,D).join(` `)},formatRows:function(S){return S.map(w).join(` `)},formatRow:w,formatValue:N}}var dl=Nh(","),Jy=dl.parse,a4=dl.parseRows,o4=dl.format,s4=dl.formatBody,c4=dl.formatRows,l4=dl.formatRow,Qy=dl.formatValue,pl=Nh(" "),tm=pl.parse,u4=pl.parseRows,em=pl.format,h4=pl.formatBody,f4=pl.formatRows,d4=pl.formatRow,p4=pl.formatValue;function g4(o){for(var l in o){var h,y,v=o[l].trim();if(v)if(v==="true")v=!0;else if(v==="false")v=!1;else if(v==="NaN")v=NaN;else if(isNaN(h=+v)){if(!(y=v.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;y4&&y[4]&&!y[7]&&(v=v.replace(/-/g,"/").replace(/T/," ")),v=new Date(v)}else v=h;else v=null;o[l]=v}return o}var y4=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function nm(o){return+o}function m4(o){return o*o}function _4(o){return o*(2-o)}function rm(o){return((o*=2)<=1?o*o:--o*(2-o)+1)/2}var v4=function o(l){function h(y){return Math.pow(y,l)}return l=+l,h.exponent=o,h}(3),b4=function o(l){function h(y){return 1-Math.pow(1-y,l)}return l=+l,h.exponent=o,h}(3),im=function o(l){function h(y){return((y*=2)<=1?Math.pow(y,l):2-Math.pow(2-y,l))/2}return l=+l,h.exponent=o,h}(3),am=Math.PI,om=am/2;function sm(o){return+o==1?1:1-Math.cos(o*om)}function x4(o){return Math.sin(o*om)}function cm(o){return(1-Math.cos(am*o))/2}function Sc(o){return 1.0009775171065494*(Math.pow(2,-10*o)-.0009765625)}function lm(o){return Sc(1-+o)}function w4(o){return 1-Sc(o)}function um(o){return((o*=2)<=1?Sc(1-o):2-Sc(o-1))/2}function k4(o){return 1-Math.sqrt(1-o*o)}function E4(o){return Math.sqrt(1- --o*o)}function hm(o){return((o*=2)<=1?1-Math.sqrt(1-o*o):Math.sqrt(1-(o-=2)*o)+1)/2}var A0=7.5625;function fm(o){return 1-Lh(1-o)}function Lh(o){return(o=+o)<.36363636363636365?A0*o*o:o<.7272727272727273?A0*(o-=.5454545454545454)*o+.75:o<.9090909090909091?A0*(o-=.8181818181818182)*o+.9375:A0*(o-=.9545454545454546)*o+.984375}function T4(o){return((o*=2)<=1?1-Lh(1-o):Lh(o-1)+1)/2}var U2=1.70158,S4=function o(l){function h(y){return(y=+y)*y*(l*(y-1)+y)}return l=+l,h.overshoot=o,h}(U2),A4=function o(l){function h(y){return--y*y*((y+1)*l+y)+1}return l=+l,h.overshoot=o,h}(U2),dm=function o(l){function h(y){return((y*=2)<1?y*y*((l+1)*y-l):(y-=2)*y*((l+1)*y+l)+2)/2}return l=+l,h.overshoot=o,h}(U2),su=2*Math.PI,C4=function o(l,h){var y=Math.asin(1/(l=Math.max(1,l)))*(h/=su);function v(w){return l*Sc(- --w)*Math.sin((y-w)/h)}return v.amplitude=function(w){return o(w,h*su)},v.period=function(w){return o(l,w)},v}(1,.3),z2=function o(l,h){var y=Math.asin(1/(l=Math.max(1,l)))*(h/=su);function v(w){return 1-l*Sc(w=+w)*Math.sin((w+y)/h)}return v.amplitude=function(w){return o(w,h*su)},v.period=function(w){return o(l,w)},v}(1,.3),pm=function o(l,h){var y=Math.asin(1/(l=Math.max(1,l)))*(h/=su);function v(w){return((w=2*w-1)<0?l*Sc(-w)*Math.sin((y-w)/h):2-l*Sc(w)*Math.sin((y+w)/h))/2}return v.amplitude=function(w){return o(w,h*su)},v.period=function(w){return o(l,w)},v}(1,.3);function gm(o){if(!o.ok)throw new Error(o.status+" "+o.statusText);return o.blob()}function M4(o,l){return fetch(o,l).then(gm)}function N4(o){if(!o.ok)throw new Error(o.status+" "+o.statusText);return o.arrayBuffer()}function ym(o,l){return fetch(o,l).then(N4)}function L4(o){if(!o.ok)throw new Error(o.status+" "+o.statusText);return o.text()}function cu(o,l){return fetch(o,l).then(L4)}function Y2(o){return function(l,h,y){return arguments.length===2&&typeof h=="function"&&(y=h,h=void 0),cu(l,h).then(function(v){return o(v,y)})}}function D4(o,l,h,y){arguments.length===3&&typeof h=="function"&&(y=h,h=void 0);var v=Nh(o);return cu(l,h).then(function(w){return v.parse(w,y)})}var mm=Y2(Jy),_m=Y2(tm);function vm(o,l){return new Promise(function(h,y){var v=new Image;for(var w in l)v[w]=l[w];v.onerror=y,v.onload=function(){h(v)},v.src=o})}function I4(o){if(!o.ok)throw new Error(o.status+" "+o.statusText);if(o.status!==204&&o.status!==205)return o.json()}function O4(o,l){return fetch(o,l).then(I4)}function $2(o){return function(l,h){return cu(l,h).then(function(y){return new DOMParser().parseFromString(y,o)})}}const R4=$2("application/xml");var bm=$2("text/html"),C0=$2("image/svg+xml");function B4(o,l){var h;function y(){var v,w,N=h.length,S=0,D=0;for(v=0;v=(w=(ct+it)/2))?ct=w:it=w,(z=h>=(N=(ot+gt)/2))?ot=N:gt=N,v=Z,!(Z=Z[q=z<<1|R]))return v[q]=Q,o;if(S=+o._x.call(null,Z.data),D=+o._y.call(null,Z.data),l===S&&h===D)return Q.next=Z,v?v[q]=Q:o._root=Q,o;do v=v?v[q]=new Array(4):o._root=new Array(4),(R=l>=(w=(ct+it)/2))?ct=w:it=w,(z=h>=(N=(ot+gt)/2))?ot=N:gt=N;while((q=z<<1|R)==(U=(D>=N)<<1|S>=w));return v[U]=Z,v[q]=Q,o}function Pa(o,l,h,y,v){this.node=o,this.x0=l,this.y0=h,this.x1=y,this.y1=v}function F4(o){return o[0]}function j2(o){return o[1]}function Dh(o,l,h){var y=new lu(l==null?F4:l,h==null?j2:h,NaN,NaN,NaN,NaN);return o==null?y:y.addAll(o)}function lu(o,l,h,y,v,w){this._x=o,this._y=l,this._x0=h,this._y0=y,this._x1=v,this._y1=w,this._root=void 0}function wm(o){for(var l={data:o.data},h=l;o=o.next;)h=h.next={data:o.data};return l}var Ua=Dh.prototype=lu.prototype;function P4(o){return o.x+o.vx}function U4(o){return o.y+o.vy}function z4(o){var l,h,y=1,v=1;function w(){for(var D,R,z,q,U,Z,Q,ct=l.length,ot=0;otq+Xt||WtU+Xt||eez.index){var _e=q-le.x-le.vx,Et=U-le.y-le.vy,Pt=_e*_e+Et*Et;PtD.r&&(D.r=D[R].r)}function S(){if(l){var D,R,z=l.length;for(h=new Array(z),D=0;Dz&&(z=y),vq&&(q=v));if(D>z||R>q)return this;for(this.cover(D,R).cover(z,q),h=0;ho||o>=v||y>l||l>=w;)switch(S=(lU||(w=D.y0)>Z||(N=D.x1)=it)<<1|o>=ot)&&(D=Q[Q.length-1],Q[Q.length-1]=Q[Q.length-1-R],Q[Q.length-1-R]=D)}else{var gt=o-+this._x.call(null,ct.data),pt=l-+this._y.call(null,ct.data),Mt=gt*gt+pt*pt;if(Mt=(S=(Q+ot)/2))?Q=S:ot=S,(z=N>=(D=(ct+it)/2))?ct=D:it=D,l=Z,!(Z=Z[q=z<<1|R]))return this;if(!Z.length)break;(l[q+1&3]||l[q+2&3]||l[q+3&3])&&(h=l,U=q)}for(;Z.data!==o;)if(y=Z,!(Z=Z.next))return this;return(v=Z.next)&&delete Z.next,y?(v?y.next=v:delete y.next,this):l?(v?l[q]=v:delete l[q],(Z=l[0]||l[1]||l[2]||l[3])&&Z===(l[3]||l[2]||l[1]||l[0])&&!Z.length&&(h?h[U]=Z:this._root=Z),this):(this._root=v,this)},Ua.removeAll=function(o){for(var l=0,h=o.length;l1?(ct==null?S.remove(Q):S.set(Q,Z(ct)),l):S.get(Q)},find:function(Q,ct,ot){var it,gt,pt,Mt,Wt,ee=0,le=o.length;for(ot==null?ot=1/0:ot*=ot,ee=0;ee1?(R.on(Q,ct),l):R.on(Q)}}}function W4(){var o,l,h,y,v=Wi(-30),w=1,N=1/0,S=.81;function D(U){var Z,Q=o.length,ct=Dh(o,j4,H4).visitAfter(z);for(h=U,Z=0;Z=N)){(U.data!==l||U.next)&&(ot===0&&(pt+=(ot=Ac())*ot),it===0&&(pt+=(it=Ac())*it),pt1?y[0]+y.slice(2):y,+o.slice(h+1)]}function gl(o){return(o=Ih(Math.abs(o)))?o[1]:NaN}var W2,V4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Oh(o){if(!(l=V4.exec(o)))throw new Error("invalid format: "+o);var l;return new M0({fill:l[1],align:l[2],sign:l[3],symbol:l[4],zero:l[5],width:l[6],comma:l[7],precision:l[8]&&l[8].slice(1),trim:l[9],type:l[10]})}function M0(o){this.fill=o.fill===void 0?" ":o.fill+"",this.align=o.align===void 0?">":o.align+"",this.sign=o.sign===void 0?"-":o.sign+"",this.symbol=o.symbol===void 0?"":o.symbol+"",this.zero=!!o.zero,this.width=o.width===void 0?void 0:+o.width,this.comma=!!o.comma,this.precision=o.precision===void 0?void 0:+o.precision,this.trim=!!o.trim,this.type=o.type===void 0?"":o.type+""}function Em(o,l){var h=Ih(o,l);if(!h)return o+"";var y=h[0],v=h[1];return v<0?"0."+new Array(-v).join("0")+y:y.length>v+1?y.slice(0,v+1)+"."+y.slice(v+1):y+new Array(v-y.length+2).join("0")}Oh.prototype=M0.prototype,M0.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 Tm={"%":function(o,l){return(100*o).toFixed(l)},b:function(o){return Math.round(o).toString(2)},c:function(o){return o+""},d:function(o){return Math.abs(o=Math.round(o))>=1e21?o.toLocaleString("en").replace(/,/g,""):o.toString(10)},e:function(o,l){return o.toExponential(l)},f:function(o,l){return o.toFixed(l)},g:function(o,l){return o.toPrecision(l)},o:function(o){return Math.round(o).toString(8)},p:function(o,l){return Em(100*o,l)},r:Em,s:function(o,l){var h=Ih(o,l);if(!h)return o+"";var y=h[0],v=h[1],w=v-(W2=3*Math.max(-8,Math.min(8,Math.floor(v/3))))+1,N=y.length;return w===N?y:w>N?y+new Array(w-N+1).join("0"):w>0?y.slice(0,w)+"."+y.slice(w):"0."+new Array(1-w).join("0")+Ih(o,Math.max(0,l+w-1))[0]},X:function(o){return Math.round(o).toString(16).toUpperCase()},x:function(o){return Math.round(o).toString(16)}};function Sm(o){return o}var N0,L0,G2,Am=Array.prototype.map,Cm=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Mm(o){var l,h,y=o.grouping===void 0||o.thousands===void 0?Sm:(l=Am.call(o.grouping,Number),h=o.thousands+"",function(U,Z){for(var Q=U.length,ct=[],ot=0,it=l[0],gt=0;Q>0&&it>0&&(gt+it+1>Z&&(it=Math.max(1,Z-gt)),ct.push(U.substring(Q-=it,Q+it)),!((gt+=it+1)>Z));)it=l[ot=(ot+1)%l.length];return ct.reverse().join(h)}),v=o.currency===void 0?"":o.currency[0]+"",w=o.currency===void 0?"":o.currency[1]+"",N=o.decimal===void 0?".":o.decimal+"",S=o.numerals===void 0?Sm:function(U){return function(Z){return Z.replace(/[0-9]/g,function(Q){return U[+Q]})}}(Am.call(o.numerals,String)),D=o.percent===void 0?"%":o.percent+"",R=o.minus===void 0?"-":o.minus+"",z=o.nan===void 0?"NaN":o.nan+"";function q(U){var Z=(U=Oh(U)).fill,Q=U.align,ct=U.sign,ot=U.symbol,it=U.zero,gt=U.width,pt=U.comma,Mt=U.precision,Wt=U.trim,ee=U.type;ee==="n"?(pt=!0,ee="g"):Tm[ee]||(Mt===void 0&&(Mt=12),Wt=!0,ee="g"),(it||Z==="0"&&Q==="=")&&(it=!0,Z="0",Q="=");var le=ot==="$"?v:ot==="#"&&/[boxX]/.test(ee)?"0"+ee.toLowerCase():"",Be=ot==="$"?w:/[%p]/.test(ee)?D:"",Xt=Tm[ee],_e=/[defgprs%]/.test(ee);function Et(Pt){var ue,ce,de,tn=le,fn=Be;if(ee==="c")fn=Xt(Pt)+fn,Pt="";else{var Bn=(Pt=+Pt)<0||1/Pt<0;if(Pt=isNaN(Pt)?z:Xt(Math.abs(Pt),Mt),Wt&&(Pt=function(bn){t:for(var Ar,Wn=bn.length,Hn=1,wr=-1;Hn0&&(wr=0)}return wr>0?bn.slice(0,wr)+bn.slice(Ar+1):bn}(Pt)),Bn&&+Pt==0&&ct!=="+"&&(Bn=!1),tn=(Bn?ct==="("?ct:R:ct==="-"||ct==="("?"":ct)+tn,fn=(ee==="s"?Cm[8+W2/3]:"")+fn+(Bn&&ct==="("?")":""),_e){for(ue=-1,ce=Pt.length;++ue(de=Pt.charCodeAt(ue))||de>57){fn=(de===46?N+Pt.slice(ue+1):Pt.slice(ue))+fn,Pt=Pt.slice(0,ue);break}}}pt&&!it&&(Pt=y(Pt,1/0));var dr=tn.length+Pt.length+fn.length,Kn=dr>1)+tn+Pt+fn+Kn.slice(dr);break;default:Pt=Kn+tn+Pt+fn}return S(Pt)}return Mt=Mt===void 0?6:/[gprs]/.test(ee)?Math.max(1,Math.min(21,Mt)):Math.max(0,Math.min(20,Mt)),Et.toString=function(){return U+""},Et}return{format:q,formatPrefix:function(U,Z){var Q=q(((U=Oh(U)).type="f",U)),ct=3*Math.max(-8,Math.min(8,Math.floor(gl(Z)/3))),ot=Math.pow(10,-ct),it=Cm[8+ct/3];return function(gt){return Q(ot*gt)+it}}}}function Nm(o){return N0=Mm(o),L0=N0.format,G2=N0.formatPrefix,N0}function V2(o){return Math.max(0,-gl(Math.abs(o)))}function Lm(o,l){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(gl(l)/3)))-gl(Math.abs(o)))}function Dm(o,l){return o=Math.abs(o),l=Math.abs(l)-o,Math.max(0,gl(l)-gl(o))+1}function Cc(){return new D0}function D0(){this.reset()}Nm({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),D0.prototype={constructor:D0,reset:function(){this.s=this.t=0},add:function(o){Im(I0,o,this.t),Im(this,I0.s,this.s),this.s?this.t+=I0.t:this.s=I0.t},valueOf:function(){return this.s}};var I0=new D0;function Im(o,l,h){var y=o.s=l+h,v=y-l,w=y-v;o.t=l-w+(h-v)}var Jn=1e-6,Rh=1e-12,pr=Math.PI,Ei=pr/2,hu=pr/4,zr=2*pr,Vr=180/pr,Fn=pr/180,He=Math.abs,Mc=Math.atan,ga=Math.atan2,Mn=Math.cos,ys=Math.ceil,Om=Math.exp,fu=Math.log,O0=Math.pow,xn=Math.sin,Nr=Math.sign||function(o){return o>0?1:o<0?-1:0},Di=Math.sqrt,na=Math.tan;function Nc(o){return o>1?0:o<-1?pr:Math.acos(o)}function za(o){return o>1?Ei:o<-1?-Ei:Math.asin(o)}function R0(o){return(o=xn(o/2))*o}function Lr(){}function Ws(o,l){o&&du.hasOwnProperty(o.type)&&du[o.type](o,l)}var Ya={Feature:function(o,l){Ws(o.geometry,l)},FeatureCollection:function(o,l){for(var h=o.features,y=-1,v=h.length;++y=0?1:-1,v=y*h,w=Mn(l=(l*=Fn)/2+hu),N=xn(l),S=J2*N,D=K2*w+S*Mn(v),R=S*y*xn(v);B0.add(ga(R,D)),X2=o,K2=w,J2=N}function Z4(o){return F0.reset(),Yo(o,ho),2*F0}function P0(o){return[ga(o[1],o[0]),za(o[2])]}function $o(o){var l=o[0],h=o[1],y=Mn(h);return[y*Mn(l),y*xn(l),xn(h)]}function U0(o,l){return o[0]*l[0]+o[1]*l[1]+o[2]*l[2]}function gu(o,l){return[o[1]*l[2]-o[2]*l[1],o[2]*l[0]-o[0]*l[2],o[0]*l[1]-o[1]*l[0]]}function yu(o,l){o[0]+=l[0],o[1]+=l[1],o[2]+=l[2]}function yl(o,l){return[o[0]*l,o[1]*l,o[2]*l]}function Fh(o){var l=Di(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]);o[0]/=l,o[1]/=l,o[2]/=l}var Qr,$a,mi,Ja,Lc,tp,ep,Dc,jo,ms,mu,Ph,Uh,ml,_u,vu,wo,zh,z0,Gs,np,Y0,bu,ja,Ca,Ii,Yh=Cc(),Ho={point:_l,lineStart:rp,lineEnd:ip,polygonStart:function(){Ho.point=xu,Ho.lineStart=Um,Ho.lineEnd=$h,Yh.reset(),ho.polygonStart()},polygonEnd:function(){ho.polygonEnd(),Ho.point=_l,Ho.lineStart=rp,Ho.lineEnd=ip,B0<0?(Qr=-(mi=180),$a=-(Ja=90)):Yh>Jn?Ja=90:Yh<-1e-6&&($a=-90),ms[0]=Qr,ms[1]=mi},sphere:function(){Qr=-(mi=180),$a=-(Ja=90)}};function _l(o,l){jo.push(ms=[Qr=o,mi=o]),l<$a&&($a=l),l>Ja&&(Ja=l)}function Pm(o,l){var h=$o([o*Fn,l*Fn]);if(Dc){var y=gu(Dc,h),v=gu([y[1],-y[0],0],y);Fh(v),v=P0(v);var w,N=o-Lc,S=N>0?1:-1,D=v[0]*Vr*S,R=He(N)>180;R^(S*LcJa&&(Ja=w):R^(S*Lc<(D=(D+360)%360-180)&&DJa&&(Ja=l)),R?oHa(Qr,mi)&&(mi=o):Ha(o,mi)>Ha(Qr,mi)&&(Qr=o):mi>=Qr?(omi&&(mi=o)):o>Lc?Ha(Qr,o)>Ha(Qr,mi)&&(mi=o):Ha(o,mi)>Ha(Qr,mi)&&(Qr=o)}else jo.push(ms=[Qr=o,mi=o]);l<$a&&($a=l),l>Ja&&(Ja=l),Dc=h,Lc=o}function rp(){Ho.point=Pm}function ip(){ms[0]=Qr,ms[1]=mi,Ho.point=_l,Dc=null}function xu(o,l){if(Dc){var h=o-Lc;Yh.add(He(h)>180?h+(h>0?360:-360):h)}else tp=o,ep=l;ho.point(o,l),Pm(o,l)}function Um(){ho.lineStart()}function $h(){xu(tp,ep),ho.lineEnd(),He(Yh)>Jn&&(Qr=-(mi=180)),ms[0]=Qr,ms[1]=mi,Dc=null}function Ha(o,l){return(l-=o)<0?l+360:l}function ap(o,l){return o[0]-l[0]}function wu(o,l){return o[0]<=o[1]?o[0]<=l&&l<=o[1]:lHa(y[0],y[1])&&(y[1]=v[1]),Ha(v[0],y[1])>Ha(y[0],y[1])&&(y[0]=v[0])):w.push(y=v);for(N=-1/0,l=0,y=w[h=w.length-1];l<=h;y=v,++l)v=w[l],(S=Ha(y[1],v[0]))>N&&(N=S,Qr=v[0],mi=y[1])}return jo=ms=null,Qr===1/0||$a===1/0?[[NaN,NaN],[NaN,NaN]]:[[Qr,$a],[mi,Ja]]}var fo={sphere:Lr,point:$0,lineStart:zm,lineEnd:Ym,polygonStart:function(){fo.lineStart=Hh,fo.lineEnd=qh},polygonEnd:function(){fo.lineStart=zm,fo.lineEnd=Ym}};function $0(o,l){o*=Fn;var h=Mn(l*=Fn);Ti(h*Mn(o),h*xn(o),xn(l))}function Ti(o,l,h){++mu,Uh+=(o-Uh)/mu,ml+=(l-ml)/mu,_u+=(h-_u)/mu}function zm(){fo.point=X4}function X4(o,l){o*=Fn;var h=Mn(l*=Fn);ja=h*Mn(o),Ca=h*xn(o),Ii=xn(l),fo.point=Dr,Ti(ja,Ca,Ii)}function Dr(o,l){o*=Fn;var h=Mn(l*=Fn),y=h*Mn(o),v=h*xn(o),w=xn(l),N=ga(Di((N=Ca*w-Ii*v)*N+(N=Ii*y-ja*w)*N+(N=ja*v-Ca*y)*N),ja*y+Ca*v+Ii*w);Ph+=N,vu+=N*(ja+(ja=y)),wo+=N*(Ca+(Ca=v)),zh+=N*(Ii+(Ii=w)),Ti(ja,Ca,Ii)}function Ym(){fo.point=$0}function Hh(){fo.point=K4}function qh(){$m(Y0,bu),fo.point=$0}function K4(o,l){Y0=o,bu=l,o*=Fn,l*=Fn,fo.point=$m;var h=Mn(l);ja=h*Mn(o),Ca=h*xn(o),Ii=xn(l),Ti(ja,Ca,Ii)}function $m(o,l){o*=Fn;var h=Mn(l*=Fn),y=h*Mn(o),v=h*xn(o),w=xn(l),N=Ca*w-Ii*v,S=Ii*y-ja*w,D=ja*v-Ca*y,R=Di(N*N+S*S+D*D),z=za(R),q=R&&-z/R;z0+=q*N,Gs+=q*S,np+=q*D,Ph+=z,vu+=z*(ja+(ja=y)),wo+=z*(Ca+(Ca=v)),zh+=z*(Ii+(Ii=w)),Ti(ja,Ca,Ii)}function J4(o){mu=Ph=Uh=ml=_u=vu=wo=zh=z0=Gs=np=0,Yo(o,fo);var l=z0,h=Gs,y=np,v=l*l+h*h+y*y;return vpr?o+Math.round(-o/zr)*zr:o,l]}function H0(o,l,h){return(o%=zr)?l||h?op(Hm(o),qm(l,h)):Hm(o):l||h?qm(l,h):j0}function jm(o){return function(l,h){return[(l+=o)>pr?l-zr:l<-pr?l+zr:l,h]}}function Hm(o){var l=jm(o);return l.invert=jm(-o),l}function qm(o,l){var h=Mn(o),y=xn(o),v=Mn(l),w=xn(l);function N(S,D){var R=Mn(D),z=Mn(S)*R,q=xn(S)*R,U=xn(D),Z=U*h+z*y;return[ga(q*v-Z*w,z*h-U*y),za(Z*v+q*w)]}return N.invert=function(S,D){var R=Mn(D),z=Mn(S)*R,q=xn(S)*R,U=xn(D),Z=U*v-q*w;return[ga(q*v+U*w,z*h+Z*y),za(Z*h-z*y)]},N}function sp(o){function l(h){return(h=o(h[0]*Fn,h[1]*Fn))[0]*=Vr,h[1]*=Vr,h}return o=H0(o[0]*Fn,o[1]*Fn,o.length>2?o[2]*Fn:0),l.invert=function(h){return(h=o.invert(h[0]*Fn,h[1]*Fn))[0]*=Vr,h[1]*=Vr,h},l}function Wm(o,l,h,y,v,w){if(h){var N=Mn(l),S=xn(l),D=y*h;v==null?(v=l+y*zr,w=l-D/2):(v=cp(N,v),w=cp(N,w),(y>0?vw)&&(v+=y*zr));for(var R,z=v;y>0?z>w:z1&&l.push(l.pop().concat(l.shift()))},result:function(){var h=l;return l=[],o=null,h}}}function q0(o,l){return He(o[0]-l[0])=0;--w)v.point((z=R[w])[0],z[1]);else y(U.x,U.p.x,-1,v);U=U.p}R=(U=U.o).z,Z=!Z}while(!U.v);v.lineEnd()}}}function Zm(o){if(l=o.length){for(var l,h,y=0,v=o[0];++y=0?1:-1,Xt=Be*le,_e=Xt>pr,Et=ct*Wt;if(lp.add(ga(Et*Be*xn(Xt),ot*ee+Et*Mn(Xt))),N+=_e?le+Be*zr:le,_e^Z>=h^pt>=h){var Pt=gu($o(U),$o(gt));Fh(Pt);var ue=gu(w,Pt);Fh(ue);var ce=(_e^le>=0?-1:1)*za(ue[2]);(y>ce||y===ce&&(Pt[0]||Pt[1]))&&(S+=_e^le>=0?1:-1)}}return(N<-1e-6||N0){for(q||(v.polygonStart(),q=!0),v.lineStart(),Mt=0;Mt1&&2&Be&&Xt.push(Xt.pop().concat(Xt.shift())),N.push(Xt.filter(t5))}return U}}function t5(o){return o.length>1}function Jm(o,l){return((o=o.x)[0]<0?o[1]-Ei-Jn:Ei-o[1])-((l=l.x)[0]<0?l[1]-Ei-Jn:Ei-l[1])}const up=Km(function(){return!0},function(o){var l,h=NaN,y=NaN,v=NaN;return{lineStart:function(){o.lineStart(),l=1},point:function(w,N){var S=w>0?pr:-pr,D=He(w-h);He(D-pr)0?Ei:-Ei),o.point(v,y),o.lineEnd(),o.lineStart(),o.point(S,y),o.point(w,y),l=0):v!==S&&D>=pr&&(He(h-v)Jn?Mc((xn(z)*(Q=Mn(U))*xn(q)-xn(U)*(Z=Mn(z))*xn(R))/(Z*Q*ct)):(z+U)/2}(h,y,w,N),o.point(v,y),o.lineEnd(),o.lineStart(),o.point(S,y),l=0),o.point(h=w,y=N),v=S},lineEnd:function(){o.lineEnd(),h=y=NaN},clean:function(){return 2-l}}},function(o,l,h,y){var v;if(o==null)v=h*Ei,y.point(-pr,v),y.point(0,v),y.point(pr,v),y.point(pr,0),y.point(pr,-v),y.point(0,-v),y.point(-pr,-v),y.point(-pr,0),y.point(-pr,v);else if(He(o[0]-l[0])>Jn){var w=o[0]0,v=He(l)>Jn;function w(D,R){return Mn(D)*Mn(R)>l}function N(D,R,z){var q=[1,0,0],U=gu($o(D),$o(R)),Z=U0(U,U),Q=U[0],ct=Z-Q*Q;if(!ct)return!z&&D;var ot=l*Z/ct,it=-l*Q/ct,gt=gu(q,U),pt=yl(q,ot);yu(pt,yl(U,it));var Mt=gt,Wt=U0(pt,Mt),ee=U0(Mt,Mt),le=Wt*Wt-ee*(U0(pt,pt)-1);if(!(le<0)){var Be=Di(le),Xt=yl(Mt,(-Wt-Be)/ee);if(yu(Xt,pt),Xt=P0(Xt),!z)return Xt;var _e,Et=D[0],Pt=R[0],ue=D[1],ce=R[1];Pt0^Xt[1]<(He(Xt[0]-Et)pr^(Et<=Xt[0]&&Xt[0]<=Pt)){var fn=yl(Mt,(-Wt+Be)/ee);return yu(fn,pt),[Xt,P0(fn)]}}}function S(D,R){var z=y?o:pr-o,q=0;return D<-z?q|=1:D>z&&(q|=2),R<-z?q|=4:R>z&&(q|=8),q}return Km(w,function(D){var R,z,q,U,Z;return{lineStart:function(){U=q=!1,Z=1},point:function(Q,ct){var ot,it=[Q,ct],gt=w(Q,ct),pt=y?gt?0:S(Q,ct):gt?S(Q+(Q<0?pr:-pr),ct):0;if(!R&&(U=q=gt)&&D.lineStart(),gt!==q&&(!(ot=N(R,it))||q0(R,ot)||q0(it,ot))&&(it[2]=1),gt!==q)Z=0,gt?(D.lineStart(),ot=N(it,R),D.point(ot[0],ot[1])):(ot=N(R,it),D.point(ot[0],ot[1],2),D.lineEnd()),R=ot;else if(v&&R&&y^gt){var Mt;pt&z||!(Mt=N(it,R,!0))||(Z=0,y?(D.lineStart(),D.point(Mt[0][0],Mt[0][1]),D.point(Mt[1][0],Mt[1][1]),D.lineEnd()):(D.point(Mt[1][0],Mt[1][1]),D.lineEnd(),D.lineStart(),D.point(Mt[0][0],Mt[0][1],3)))}!gt||R&&q0(R,it)||D.point(it[0],it[1]),R=it,q=gt,z=pt},lineEnd:function(){q&&D.lineEnd(),R=null},clean:function(){return Z|(U&&q)<<1}}},function(D,R,z,q){Wm(q,o,h,z,D,R)},y?[0,-o]:[-pr,o-pr])}var Wh=1e9,V0=-Wh;function Z0(o,l,h,y){function v(R,z){return o<=R&&R<=h&&l<=z&&z<=y}function w(R,z,q,U){var Z=0,Q=0;if(R==null||(Z=N(R,q))!==(Q=N(z,q))||D(R,z)<0^q>0)do U.point(Z===0||Z===3?o:h,Z>1?y:l);while((Z=(Z+q+4)%4)!==Q);else U.point(z[0],z[1])}function N(R,z){return He(R[0]-o)0?0:3:He(R[0]-h)0?2:1:He(R[1]-l)0?1:0:z>0?3:2}function S(R,z){return D(R.x,z.x)}function D(R,z){var q=N(R,1),U=N(z,1);return q!==U?q-U:q===0?z[1]-R[1]:q===1?R[0]-z[0]:q===2?R[1]-z[1]:z[0]-R[0]}return function(R){var z,q,U,Z,Q,ct,ot,it,gt,pt,Mt,Wt=R,ee=Gm(),le={point:Be,lineStart:function(){le.point=Xt,q&&q.push(U=[]),pt=!0,gt=!1,ot=it=NaN},lineEnd:function(){z&&(Xt(Z,Q),ct&>&&ee.rejoin(),z.push(ee.result())),le.point=Be,gt&&Wt.lineEnd()},polygonStart:function(){Wt=ee,z=[],q=[],Mt=!0},polygonEnd:function(){var _e=function(){for(var ue=0,ce=0,de=q.length;cey&&(Ar-tn)*(y-fn)>(Wn-fn)*(o-tn)&&++ue:Wn<=y&&(Ar-tn)*(y-fn)<(Wn-fn)*(o-tn)&&--ue;return ue}(),Et=Mt&&_e,Pt=(z=xe(z)).length;(Et||Pt)&&(R.polygonStart(),Et&&(R.lineStart(),w(null,null,1,R),R.lineEnd()),Pt&&Vm(z,S,_e,w,R),R.polygonEnd()),Wt=R,z=q=U=null}};function Be(_e,Et){v(_e,Et)&&Wt.point(_e,Et)}function Xt(_e,Et){var Pt=v(_e,Et);if(q&&U.push([_e,Et]),pt)Z=_e,Q=Et,ct=Pt,pt=!1,Pt&&(Wt.lineStart(),Wt.point(_e,Et));else if(Pt&>)Wt.point(_e,Et);else{var ue=[ot=Math.max(V0,Math.min(Wh,ot)),it=Math.max(V0,Math.min(Wh,it))],ce=[_e=Math.max(V0,Math.min(Wh,_e)),Et=Math.max(V0,Math.min(Wh,Et))];(function(de,tn,fn,Bn,dr,Kn){var bn,Ar=de[0],Wn=de[1],Hn=0,wr=1,wa=tn[0]-Ar,$i=tn[1]-Wn;if(bn=fn-Ar,wa||!(bn>0)){if(bn/=wa,wa<0){if(bn0){if(bn>wr)return;bn>Hn&&(Hn=bn)}if(bn=dr-Ar,wa||!(bn<0)){if(bn/=wa,wa<0){if(bn>wr)return;bn>Hn&&(Hn=bn)}else if(wa>0){if(bn0)){if(bn/=$i,$i<0){if(bn0){if(bn>wr)return;bn>Hn&&(Hn=bn)}if(bn=Kn-Wn,$i||!(bn<0)){if(bn/=$i,$i<0){if(bn>wr)return;bn>Hn&&(Hn=bn)}else if($i>0){if(bn0&&(de[0]=Ar+Hn*wa,de[1]=Wn+Hn*$i),wr<1&&(tn[0]=Ar+wr*wa,tn[1]=Wn+wr*$i),!0}}}}})(ue,ce,o,l,h,y)?(gt||(Wt.lineStart(),Wt.point(ue[0],ue[1])),Wt.point(ce[0],ce[1]),Pt||Wt.lineEnd(),Mt=!1):Pt&&(Wt.lineStart(),Wt.point(_e,Et),Mt=!1)}ot=_e,it=Et,gt=Pt}return le}}function e5(){var o,l,h,y=0,v=0,w=960,N=500;return h={stream:function(S){return o&&l===S?o:o=Z0(y,v,w,N)(l=S)},extent:function(S){return arguments.length?(y=+S[0][0],v=+S[0][1],w=+S[1][0],N=+S[1][1],o=l=null,h):[[y,v],[w,N]]}}}var X0,K0,J0,hp=Cc(),Eu={sphere:Lr,point:Lr,lineStart:function(){Eu.point=r5,Eu.lineEnd=n5},lineEnd:Lr,polygonStart:Lr,polygonEnd:Lr};function n5(){Eu.point=Eu.lineEnd=Lr}function r5(o,l){X0=o*=Fn,K0=xn(l*=Fn),J0=Mn(l),Eu.point=i5}function i5(o,l){o*=Fn;var h=xn(l*=Fn),y=Mn(l),v=He(o-X0),w=Mn(v),N=y*xn(v),S=J0*h-K0*y*w,D=K0*h+J0*y*w;hp.add(ga(Di(N*N+S*S),D)),X0=o,K0=h,J0=y}function t_(o){return hp.reset(),Yo(o,Eu),+hp}var Q0=[null,null],a5={type:"LineString",coordinates:Q0};function tf(o,l){return Q0[0]=o,Q0[1]=l,t_(a5)}var e_={Feature:function(o,l){return ef(o.geometry,l)},FeatureCollection:function(o,l){for(var h=o.features,y=-1,v=h.length;++y0&&(v=tf(o[w],o[w-1]))>0&&h<=v&&y<=v&&(h+y-v)*(1-Math.pow((h-y)/v,2))Jn}).map(D)).concat(Nt(ys(w/Z)*Z,v,Z).filter(function(pt){return He(pt%ct)>Jn}).map(R))}return it.lines=function(){return gt().map(function(pt){return{type:"LineString",coordinates:pt}})},it.outline=function(){return{type:"Polygon",coordinates:[z(y).concat(q(N).slice(1),z(h).reverse().slice(1),q(S).reverse().slice(1))]}},it.extent=function(pt){return arguments.length?it.extentMajor(pt).extentMinor(pt):it.extentMinor()},it.extentMajor=function(pt){return arguments.length?(y=+pt[0][0],h=+pt[1][0],S=+pt[0][1],N=+pt[1][1],y>h&&(pt=y,y=h,h=pt),S>N&&(pt=S,S=N,N=pt),it.precision(ot)):[[y,S],[h,N]]},it.extentMinor=function(pt){return arguments.length?(l=+pt[0][0],o=+pt[1][0],w=+pt[0][1],v=+pt[1][1],l>o&&(pt=l,l=o,o=pt),w>v&&(pt=w,w=v,v=pt),it.precision(ot)):[[l,w],[o,v]]},it.step=function(pt){return arguments.length?it.stepMajor(pt).stepMinor(pt):it.stepMinor()},it.stepMajor=function(pt){return arguments.length?(Q=+pt[0],ct=+pt[1],it):[Q,ct]},it.stepMinor=function(pt){return arguments.length?(U=+pt[0],Z=+pt[1],it):[U,Z]},it.precision=function(pt){return arguments.length?(ot=+pt,D=s_(w,v,90),R=c_(l,o,ot),z=s_(S,N,90),q=c_(y,h,ot),it):ot},it.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function s5(){return l_()()}function c5(o,l){var h=o[0]*Fn,y=o[1]*Fn,v=l[0]*Fn,w=l[1]*Fn,N=Mn(y),S=xn(y),D=Mn(w),R=xn(w),z=N*Mn(h),q=N*xn(h),U=D*Mn(v),Z=D*xn(v),Q=2*za(Di(R0(w-y)+N*D*R0(v-h))),ct=xn(Q),ot=Q?function(it){var gt=xn(it*=Q)/ct,pt=xn(Q-it)/ct,Mt=pt*z+gt*U,Wt=pt*q+gt*Z,ee=pt*S+gt*R;return[ga(Wt,Mt)*Vr,ga(ee,Di(Mt*Mt+Wt*Wt))*Vr]}:function(){return[h*Vr,y*Vr]};return ot.distance=Q,ot}function Gh(o){return o}var u_,h_,nf,rf,af=Cc(),dp=Cc(),Vs={point:Lr,lineStart:Lr,lineEnd:Lr,polygonStart:function(){Vs.lineStart=of,Vs.lineEnd=d_},polygonEnd:function(){Vs.lineStart=Vs.lineEnd=Vs.point=Lr,af.add(He(dp)),dp.reset()},result:function(){var o=af/2;return af.reset(),o}};function of(){Vs.point=l5}function l5(o,l){Vs.point=f_,u_=nf=o,h_=rf=l}function f_(o,l){dp.add(rf*o-nf*l),nf=o,rf=l}function d_(){f_(u_,h_)}const p_=Vs;var Zs=1/0,Ic=Zs,_s=-Zs,Oc=_s,Vh={point:function(o,l){o_s&&(_s=o),lOc&&(Oc=l)},lineStart:Lr,lineEnd:Lr,polygonStart:Lr,polygonEnd:Lr,result:function(){var o=[[Zs,Ic],[_s,Oc]];return _s=Oc=-(Ic=Zs=1/0),o}};const vl=Vh;var Rc,Zh,Qa,qo,Xh=0,pp=0,Bc=0,Kh=0,Jh=0,Tu=0,Qh=0,sf=0,t1=0,Wo={point:vs,lineStart:cf,lineEnd:Xs,polygonStart:function(){Wo.lineStart=lf,Wo.lineEnd=g_},polygonEnd:function(){Wo.point=vs,Wo.lineStart=cf,Wo.lineEnd=Xs},result:function(){var o=t1?[Qh/t1,sf/t1]:Tu?[Kh/Tu,Jh/Tu]:Bc?[Xh/Bc,pp/Bc]:[NaN,NaN];return Xh=pp=Bc=Kh=Jh=Tu=Qh=sf=t1=0,o}};function vs(o,l){Xh+=o,pp+=l,++Bc}function cf(){Wo.point=bs}function bs(o,l){Wo.point=Go,vs(Qa=o,qo=l)}function Go(o,l){var h=o-Qa,y=l-qo,v=Di(h*h+y*y);Kh+=v*(Qa+o)/2,Jh+=v*(qo+l)/2,Tu+=v,vs(Qa=o,qo=l)}function Xs(){Wo.point=vs}function lf(){Wo.point=gp}function g_(){yp(Rc,Zh)}function gp(o,l){Wo.point=yp,vs(Rc=Qa=o,Zh=qo=l)}function yp(o,l){var h=o-Qa,y=l-qo,v=Di(h*h+y*y);Kh+=v*(Qa+o)/2,Jh+=v*(qo+l)/2,Tu+=v,Qh+=(v=qo*o-Qa*l)*(Qa+o),sf+=v*(qo+l),t1+=3*v,vs(Qa=o,qo=l)}const mp=Wo;function y_(o){this._context=o}y_.prototype={_radius:4.5,pointRadius:function(o){return this._radius=o,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(o,l){switch(this._point){case 0:this._context.moveTo(o,l),this._point=1;break;case 1:this._context.lineTo(o,l);break;default:this._context.moveTo(o+this._radius,l),this._context.arc(o,l,this._radius,0,zr)}},result:Lr};var _p,m_,__,bl,Su,e1=Cc(),Au={point:Lr,lineStart:function(){Au.point=u5},lineEnd:function(){_p&&vp(m_,__),Au.point=Lr},polygonStart:function(){_p=!0},polygonEnd:function(){_p=null},result:function(){var o=+e1;return e1.reset(),o}};function u5(o,l){Au.point=vp,m_=bl=o,__=Su=l}function vp(o,l){bl-=o,Su-=l,e1.add(Di(bl*bl+Su*Su)),bl=o,Su=l}const v_=Au;function b_(){this._string=[]}function x_(o){return"m0,"+o+"a"+o+","+o+" 0 1,1 0,"+-2*o+"a"+o+","+o+" 0 1,1 0,"+2*o+"z"}function h5(o,l){var h,y,v=4.5;function w(N){return N&&(typeof v=="function"&&y.pointRadius(+v.apply(this,arguments)),Yo(N,h(y))),y.result()}return w.area=function(N){return Yo(N,h(p_)),p_.result()},w.measure=function(N){return Yo(N,h(v_)),v_.result()},w.bounds=function(N){return Yo(N,h(vl)),vl.result()},w.centroid=function(N){return Yo(N,h(mp)),mp.result()},w.projection=function(N){return arguments.length?(h=N==null?(o=null,Gh):(o=N).stream,w):o},w.context=function(N){return arguments.length?(y=N==null?(l=null,new b_):new y_(l=N),typeof v!="function"&&y.pointRadius(v),w):l},w.pointRadius=function(N){return arguments.length?(v=typeof N=="function"?N:(y.pointRadius(+N),+N),w):v},w.projection(o).context(l)}function f5(o){return{stream:n1(o)}}function n1(o){return function(l){var h=new bp;for(var y in o)h[y]=o[y];return h.stream=l,h}}function bp(){}function xp(o,l,h){var y=o.clipExtent&&o.clipExtent();return o.scale(150).translate([0,0]),y!=null&&o.clipExtent(null),Yo(h,o.stream(vl)),l(vl.result()),y!=null&&o.clipExtent(y),o}function uf(o,l,h){return xp(o,function(y){var v=l[1][0]-l[0][0],w=l[1][1]-l[0][1],N=Math.min(v/(y[1][0]-y[0][0]),w/(y[1][1]-y[0][1])),S=+l[0][0]+(v-N*(y[1][0]+y[0][0]))/2,D=+l[0][1]+(w-N*(y[1][1]+y[0][1]))/2;o.scale(150*N).translate([S,D])},h)}function wp(o,l,h){return uf(o,[[0,0],l],h)}function kp(o,l,h){return xp(o,function(y){var v=+l,w=v/(y[1][0]-y[0][0]),N=(v-w*(y[1][0]+y[0][0]))/2,S=-w*y[0][1];o.scale(150*w).translate([N,S])},h)}function Ep(o,l,h){return xp(o,function(y){var v=+l,w=v/(y[1][1]-y[0][1]),N=-w*y[0][0],S=(v-w*(y[1][1]+y[0][1]))/2;o.scale(150*w).translate([N,S])},h)}b_.prototype={_radius:4.5,_circle:x_(4.5),pointRadius:function(o){return(o=+o)!==this._radius&&(this._radius=o,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(o,l){switch(this._point){case 0:this._string.push("M",o,",",l),this._point=1;break;case 1:this._string.push("L",o,",",l);break;default:this._circle==null&&(this._circle=x_(this._radius)),this._string.push("M",o,",",l,this._circle)}},result:function(){if(this._string.length){var o=this._string.join("");return this._string=[],o}return null}},bp.prototype={constructor:bp,point:function(o,l){this.stream.point(o,l)},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 d5=Mn(30*Fn);function w_(o,l){return+l?function(h,y){function v(w,N,S,D,R,z,q,U,Z,Q,ct,ot,it,gt){var pt=q-w,Mt=U-N,Wt=pt*pt+Mt*Mt;if(Wt>4*y&&it--){var ee=D+Q,le=R+ct,Be=z+ot,Xt=Di(ee*ee+le*le+Be*Be),_e=za(Be/=Xt),Et=He(He(Be)-1)y||He((pt*de+Mt*tn)/Wt-.5)>.3||D*Q+R*ct+z*ot2?de[2]%360*Fn:0,ue()):[ot*Vr,it*Vr,gt*Vr]},Et.angle=function(de){return arguments.length?(pt=de%360*Fn,ue()):pt*Vr},Et.reflectX=function(de){return arguments.length?(Mt=de?-1:1,ue()):Mt<0},Et.reflectY=function(de){return arguments.length?(Wt=de?-1:1,ue()):Wt<0},Et.precision=function(de){return arguments.length?(N=w_(S,_e=de*de),ce()):Di(_e)},Et.fitExtent=function(de,tn){return uf(Et,de,tn)},Et.fitSize=function(de,tn){return wp(Et,de,tn)},Et.fitWidth=function(de,tn){return kp(Et,de,tn)},Et.fitHeight=function(de,tn){return Ep(Et,de,tn)},function(){return l=o.apply(this,arguments),Et.invert=l.invert&&Pt,ue()}}function Sp(o){var l=0,h=pr/3,y=Tp(o),v=y(l,h);return v.parallels=function(w){return arguments.length?y(l=w[0]*Fn,h=w[1]*Fn):[l*Vr,h*Vr]},v}function E_(o,l){var h=xn(o),y=(h+xn(l))/2;if(He(y)=.12&&ot<.234&&ct>=-.425&&ct<-.214?S:ot>=.166&&ot<.234&&ct>=-.214&&ct<-.115?D:N).invert(U)},z.stream=function(U){return o&&l===U?o:(Z=[N.stream(l=U),S.stream(U),D.stream(U)],Q=Z.length,o={point:function(ct,ot){for(var it=-1;++it0?S<-Ei+Jn&&(S=-Ei+Jn):S>Ei-Jn&&(S=Ei-Jn);var D=v/O0(i1(S),y);return[D*xn(y*N),v-D*Mn(y*N)]}return w.invert=function(N,S){var D=v-S,R=Nr(y)*Di(N*N+D*D),z=ga(N,He(D))*Nr(D);return D*y<0&&(z-=pr*Nr(N)*Nr(D)),[z/y,2*Mc(O0(v/R,1/y))-Ei]},w}function _5(){return Sp(Dp).scale(109.5).parallels([30,30])}function a1(o,l){return[o,l]}function v5(){return Vo(a1).scale(152.63)}function S_(o,l){var h=Mn(o),y=o===l?xn(o):(h-Mn(l))/(l-o),v=h/y+o;if(He(y)2?y[2]+90:90]):[(y=h())[0],y[1],y[2]-90]},h([0,0,90]).scale(159.155)}function T5(o,l){return o.parent===l.parent?1:2}function S5(o,l){return o+l.x}function Cu(o,l){return Math.max(o,l.y)}function A5(){var o=T5,l=1,h=1,y=!1;function v(w){var N,S=0;w.eachAfter(function(U){var Z=U.children;Z?(U.x=function(Q){return Q.reduce(S5,0)/Q.length}(Z),U.y=function(Q){return 1+Q.reduce(Cu,0)}(Z)):(U.x=N?S+=o(U,N):0,U.y=0,N=U)});var D=function(U){for(var Z;Z=U.children;)U=Z[0];return U}(w),R=function(U){for(var Z;Z=U.children;)U=Z[Z.length-1];return U}(w),z=D.x-o(D,R)/2,q=R.x+o(R,D)/2;return w.eachAfter(y?function(U){U.x=(U.x-w.x)*l,U.y=(w.y-U.y)*h}:function(U){U.x=(U.x-z)/(q-z)*l,U.y=(1-(w.y?U.y/w.y:1))*h})}return v.separation=function(w){return arguments.length?(o=w,v):o},v.size=function(w){return arguments.length?(y=!1,l=+w[0],h=+w[1],v):y?null:[l,h]},v.nodeSize=function(w){return arguments.length?(y=!0,l=+w[0],h=+w[1],v):y?[l,h]:null},v}function C5(o){var l=0,h=o.children,y=h&&h.length;if(y)for(;--y>=0;)l+=h[y].value;else l=1;o.value=l}function Fp(o,l){var h,y,v,w,N,S=new xl(o),D=+o.value&&(S.value=o.value),R=[S];for(l==null&&(l=M_);h=R.pop();)if(D&&(h.value=+h.data.value),(v=l(h.data))&&(N=v.length))for(h.children=new Array(N),w=N-1;w>=0;--w)R.push(y=h.children[w]=new xl(v[w])),y.parent=h,y.depth=h.depth+1;return S.eachBefore(Up)}function M_(o){return o.children}function Pp(o){o.data=o.data.data}function Up(o){var l=0;do o.height=l;while((o=o.parent)&&o.height<++l)}function xl(o){this.data=o,this.depth=this.height=0,this.parent=null}Ip.invert=function(o,l){for(var h,y=l,v=y*y,w=v*v*v,N=0;N<12&&(w=(v=(y-=h=(y*(Fc+o1*v+w*(s1+c1*v))-l)/(Fc+3*o1*v+w*(7*s1+9*c1*v)))*y)*v*v,!(He(h)Jn&&--v>0);return[o/(.8707+(w=y*y)*(w*(w*w*w*(.003971-.001529*w)-.013791)-.131979)),y]},Rp.invert=po(za),Bp.invert=po(function(o){return 2*Mc(o)}),pf.invert=function(o,l){return[-l,2*Mc(Om(o))-Ei]},xl.prototype=Fp.prototype={constructor:xl,count:function(){return this.eachAfter(C5)},each:function(o){var l,h,y,v,w=this,N=[w];do for(l=N.reverse(),N=[];w=l.pop();)if(o(w),h=w.children)for(y=0,v=h.length;y=0;--h)v.push(l[h]);return this},sum:function(o){return this.eachAfter(function(l){for(var h=+o(l.data)||0,y=l.children,v=y&&y.length;--v>=0;)h+=y[v].value;l.value=h})},sort:function(o){return this.eachBefore(function(l){l.children&&l.children.sort(o)})},path:function(o){for(var l=this,h=function(w,N){if(w===N)return w;var S=w.ancestors(),D=N.ancestors(),R=null;for(w=S.pop(),N=D.pop();w===N;)R=w,w=S.pop(),N=D.pop();return R}(l,o),y=[l];l!==h;)l=l.parent,y.push(l);for(var v=y.length;o!==h;)y.splice(v,0,o),o=o.parent;return y},ancestors:function(){for(var o=this,l=[o];o=o.parent;)l.push(o);return l},descendants:function(){var o=[];return this.each(function(l){o.push(l)}),o},leaves:function(){var o=[];return this.eachBefore(function(l){l.children||o.push(l)}),o},links:function(){var o=this,l=[];return o.each(function(h){h!==o&&l.push({source:h.parent,target:h})}),l},copy:function(){return Fp(this).eachBefore(Pp)}};var N_=Array.prototype.slice;function L_(o){for(var l,h,y=0,v=(o=function(N){for(var S,D,R=N.length;R;)D=Math.random()*R--|0,S=N[R],N[R]=N[D],N[D]=S;return N}(N_.call(o))).length,w=[];y0&&h*h>y*y+v*v}function zp(o,l){for(var h=0;h(N*=N)?(y=(R+N-v)/(2*R),w=Math.sqrt(Math.max(0,N/R-y*y)),h.x=o.x-y*S-w*D,h.y=o.y-y*D+w*S):(y=(R+v-N)/(2*R),w=Math.sqrt(Math.max(0,v/R-y*y)),h.x=l.x+y*S-w*D,h.y=l.y+y*D+w*S)):(h.x=l.x+h.r,h.y=l.y)}function R_(o,l){var h=o.r+l.r-1e-6,y=l.x-o.x,v=l.y-o.y;return h>0&&h*h>y*y+v*v}function B_(o){var l=o._,h=o.next._,y=l.r+h.r,v=(l.x*h.r+h.x*l.r)/y,w=(l.y*h.r+h.y*l.r)/y;return v*v+w*w}function yf(o){this._=o,this.next=null,this.previous=null}function F_(o){if(!(v=o.length))return 0;var l,h,y,v,w,N,S,D,R,z,q;if((l=o[0]).x=0,l.y=0,!(v>1))return l.r;if(h=o[1],l.x=-h.r,h.x=l.r,h.y=0,!(v>2))return l.r+h.r;O_(h,l,y=o[2]),l=new yf(l),h=new yf(h),y=new yf(y),l.next=y.previous=h,h.next=l.previous=y,y.next=h.previous=l;t:for(S=3;S0)throw new Error("cycle");return N}return h.id=function(y){return arguments.length?(o=mf(y),h):o},h.parentId=function(y){return arguments.length?(l=mf(y),h):l},h}function R5(o,l){return o.parent===l.parent?1:2}function Yp(o){var l=o.children;return l?l[0]:o.t}function bf(o){var l=o.children;return l?l[l.length-1]:o.t}function B5(o,l,h){var y=h/(l.i-o.i);l.c-=y,l.s+=h,o.c+=y,l.z+=h,l.m+=h}function xf(o,l,h){return o.a.parent===l.parent?o.a:h}function Pc(o,l){this._=o,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=l}function Nu(){var o=R5,l=1,h=1,y=null;function v(D){var R=function(it){for(var gt,pt,Mt,Wt,ee,le=new Pc(it,0),Be=[le];gt=Be.pop();)if(Mt=gt._.children)for(gt.children=new Array(ee=Mt.length),Wt=ee-1;Wt>=0;--Wt)Be.push(pt=gt.children[Wt]=new Pc(Mt[Wt],Wt)),pt.parent=gt;return(le.parent=new Pc(null,0)).children=[le],le}(D);if(R.eachAfter(w),R.parent.m=-R.z,R.eachBefore(N),y)D.eachBefore(S);else{var z=D,q=D,U=D;D.eachBefore(function(it){it.xq.x&&(q=it),it.depth>U.depth&&(U=it)});var Z=z===q?1:o(z,q)/2,Q=Z-z.x,ct=l/(q.x+Z+Q),ot=h/(U.depth||1);D.eachBefore(function(it){it.x=(it.x+Q)*ct,it.y=it.depth*ot})}return D}function w(D){var R=D.children,z=D.parent.children,q=D.i?z[D.i-1]:null;if(R){(function(Z){for(var Q,ct=0,ot=0,it=Z.children,gt=it.length;--gt>=0;)(Q=it[gt]).z+=ct,Q.m+=ct,ct+=Q.s+(ot+=Q.c)})(D);var U=(R[0].z+R[R.length-1].z)/2;q?(D.z=q.z+o(D._,q._),D.m=D.z-U):D.z=U}else q&&(D.z=q.z+o(D._,q._));D.parent.A=function(Z,Q,ct){if(Q){for(var ot,it=Z,gt=Z,pt=Q,Mt=it.parent.children[0],Wt=it.m,ee=gt.m,le=pt.m,Be=Mt.m;pt=bf(pt),it=Yp(it),pt&⁢)Mt=Yp(Mt),(gt=bf(gt)).a=Z,(ot=pt.z+le-it.z-Wt+o(pt._,it._))>0&&(B5(xf(pt,Z,ct),Z,ot),Wt+=ot,ee+=ot),le+=pt.m,Wt+=it.m,Be+=Mt.m,ee+=gt.m;pt&&!bf(gt)&&(gt.t=pt,gt.m+=le-ee),it&&!Yp(Mt)&&(Mt.t=it,Mt.m+=Wt-Be,ct=Z)}return ct}(D,q,D.parent.A||z[0])}function N(D){D._.x=D.z+D.parent.m,D.m+=D.parent.m}function S(D){D.x*=l,D.y=D.depth*h}return v.separation=function(D){return arguments.length?(o=D,v):o},v.size=function(D){return arguments.length?(y=!1,l=+D[0],h=+D[1],v):y?null:[l,h]},v.nodeSize=function(D){return arguments.length?(y=!0,l=+D[0],h=+D[1],v):y?[l,h]:null},v}function Uc(o,l,h,y,v){for(var w,N=o.children,S=-1,D=N.length,R=o.value&&(v-h)/o.value;++SU&&(U=S),ot=z*z*ct,(Z=Math.max(U/ot,ot/q))>Q){z-=S;break}Q=Z}it.push(N={value:z,dice:D1?y:1)},h}(Lu);function wf(){var o=zc,l=!1,h=1,y=1,v=[0],w=wl,N=wl,S=wl,D=wl,R=wl;function z(U){return U.x0=U.y0=0,U.x1=h,U.y1=y,U.eachBefore(q),v=[0],l&&U.eachBefore(Y_),U}function q(U){var Z=v[U.depth],Q=U.x0+Z,ct=U.y0+Z,ot=U.x1-Z,it=U.y1-Z;ot=U-1){var gt=S[q];return gt.x0=Q,gt.y0=ct,gt.x1=ot,void(gt.y1=it)}for(var pt=R[q],Mt=Z/2+pt,Wt=q+1,ee=U-1;Wt>>1;R[le]it-ct){var _e=(Q*Xt+ot*Be)/Z;z(q,Wt,Be,Q,ct,_e,it),z(Wt,U,Xt,_e,ct,ot,it)}else{var Et=(ct*Xt+it*Be)/Z;z(q,Wt,Be,Q,ct,ot,Et),z(Wt,U,Xt,Q,Et,ot,it)}})(0,D,o.value,l,h,y,v)}function H_(o,l,h,y,v){(1&o.depth?Uc:h1)(o,l,h,y,v)}const $p=function o(l){function h(y,v,w,N,S){if((D=y._squarify)&&D.ratio===l)for(var D,R,z,q,U,Z=-1,Q=D.length,ct=y.value;++Z1?y:1)},h}(Lu);function F5(o){var l=o.length;return function(h){return o[Math.max(0,Math.min(l-1,Math.floor(h*l)))]}}function kf(o,l){var h=Va(+o,+l);return function(y){var v=h(y);return v-360*Math.floor(v/360)}}function jp(o,l){return o=+o,l=+l,function(h){return Math.round(o*(1-h)+l*h)}}var Du=Math.SQRT2;function q_(o){return((o=Math.exp(o))+1/o)/2}function Ef(o,l){var h,y,v=o[0],w=o[1],N=o[2],S=l[0],D=l[1],R=l[2],z=S-v,q=D-w,U=z*z+q*q;if(U<1e-12)y=Math.log(R/N)/Du,h=function(gt){return[v+gt*z,w+gt*q,N*Math.exp(Du*gt*y)]};else{var Z=Math.sqrt(U),Q=(R*R-N*N+4*U)/(2*N*2*Z),ct=(R*R-N*N-4*U)/(2*R*2*Z),ot=Math.log(Math.sqrt(Q*Q+1)-Q),it=Math.log(Math.sqrt(ct*ct+1)-ct);y=(it-ot)/Du,h=function(gt){var pt,Mt=gt*y,Wt=q_(ot),ee=N/(2*Z)*(Wt*(pt=Du*Mt+ot,((pt=Math.exp(2*pt))-1)/(pt+1))-function(le){return((le=Math.exp(le))-1/le)/2}(ot));return[v+ee*z,w+ee*q,N*Wt/q_(Du*Mt+ot)]}}return h.duration=1e3*y,h}function Hp(o){return function(l,h){var y=o((l=Zl(l)).h,(h=Zl(h)).h),v=Li(l.s,h.s),w=Li(l.l,h.l),N=Li(l.opacity,h.opacity);return function(S){return l.h=y(S),l.s=v(S),l.l=w(S),l.opacity=N(S),l+""}}}const P5=Hp(Va);var U5=Hp(Li);function Tf(o,l){var h=Li((o=Eh(o)).l,(l=Eh(l)).l),y=Li(o.a,l.a),v=Li(o.b,l.b),w=Li(o.opacity,l.opacity);return function(N){return o.l=h(N),o.a=y(N),o.b=v(N),o.opacity=w(N),o+""}}function Sf(o){return function(l,h){var y=o((l=Tc(l)).h,(h=Tc(h)).h),v=Li(l.c,h.c),w=Li(l.l,h.l),N=Li(l.opacity,h.opacity);return function(S){return l.h=y(S),l.c=v(S),l.l=w(S),l.opacity=N(S),l+""}}}const xs=Sf(Va);var Xo=Sf(Li);function Js(o){return function l(h){function y(v,w){var N=o((v=Fa(v)).h,(w=Fa(w)).h),S=Li(v.s,w.s),D=Li(v.l,w.l),R=Li(v.opacity,w.opacity);return function(z){return v.h=N(z),v.s=S(z),v.l=D(Math.pow(z,h)),v.opacity=R(z),v+""}}return h=+h,y.gamma=l,y}(1)}const Af=Js(Va);var g1=Js(Li);function qp(o,l){for(var h=0,y=l.length-1,v=l[0],w=new Array(y<0?0:y);h1&&Y5(o[h[y-2]],o[h[y-1]],o[v])<=0;)--y;h[y++]=v}return h.slice(0,y)}function Wp(o){if((h=o.length)<3)return null;var l,h,y=new Array(h),v=new Array(h);for(l=0;l=0;--l)R.push(o[y[w[l]][2]]);for(l=+S;lS!=R>S&&N<(D-h)*(S-y)/(R-y)+h&&(z=!z),D=h,R=y;return z}function Z_(o){for(var l,h,y=-1,v=o.length,w=o[v-1],N=w[0],S=w[1],D=0;++y1);return y+v*S*Math.sqrt(-2*Math.log(N)/N)}}return h.source=o,h}(ws),Iu=function o(l){function h(){var y=y1.source(l).apply(this,arguments);return function(){return Math.exp(y())}}return h.source=o,h}(ws),Ou=function o(l){function h(y){return function(){for(var v=0,w=0;wy&&(l=h,h=y,y=l),function(v){return Math.max(h,Math.min(y,v))}}function K_(o,l,h){var y=o[0],v=o[1],w=l[0],N=l[1];return v2?J_:K_,v=w=null,q}function q(U){return isNaN(U=+U)?h:(v||(v=y(N.map(o),S,D)))(o(R(U)))}return q.invert=function(U){return R(l((w||(w=y(S,N.map(o),Oa)))(U)))},q.domain=function(U){return arguments.length?(N=Mf.call(U,Df),R===ya||(R=to(N)),z()):N.slice()},q.range=function(U){return arguments.length?(S=kl.call(U),z()):S.slice()},q.rangeRound=function(U){return S=kl.call(U),D=jp,z()},q.clamp=function(U){return arguments.length?(R=U?to(N):ya,q):R!==ya},q.interpolate=function(U){return arguments.length?(D=U,z()):D},q.unknown=function(U){return arguments.length?(h=U,q):h},function(U,Z){return o=U,l=Z,z()}}function Xp(o,l){return b1()(o,l)}function Jo(o,l,h,y){var v,w=dt(o,l,h);switch((y=Oh(y==null?",f":y)).type){case"s":var N=Math.max(Math.abs(o),Math.abs(l));return y.precision!=null||isNaN(v=Lm(w,N))||(y.precision=v),G2(y,N);case"":case"e":case"g":case"p":case"r":y.precision!=null||isNaN(v=Dm(w,Math.max(Math.abs(o),Math.abs(l))))||(y.precision=v-(y.type==="e"));break;case"f":case"%":y.precision!=null||isNaN(v=V2(w))||(y.precision=v-2*(y.type==="%"))}return L0(y)}function tc(o){var l=o.domain;return o.ticks=function(h){var y=l();return ft(y[0],y[y.length-1],h==null?10:h)},o.tickFormat=function(h,y){var v=l();return Jo(v[0],v[v.length-1],h==null?10:h,y)},o.nice=function(h){h==null&&(h=10);var y,v=l(),w=0,N=v.length-1,S=v[w],D=v[N];return D0?y=rt(S=Math.floor(S/y)*y,D=Math.ceil(D/y)*y,h):y<0&&(y=rt(S=Math.ceil(S*y)/y,D=Math.floor(D*y)/y,h)),y>0?(v[w]=Math.floor(S/y)*y,v[N]=Math.ceil(D/y)*y,l(v)):y<0&&(v[w]=Math.ceil(S*y)/y,v[N]=Math.floor(D*y)/y,l(v)),o},o}function Kp(){var o=Xp(ya,ya);return o.copy=function(){return El(o,Kp())},Ko.apply(o,arguments),tc(o)}function Jp(o){var l;function h(y){return isNaN(y=+y)?l:y}return h.invert=h,h.domain=h.range=function(y){return arguments.length?(o=Mf.call(y,Df),h):o.slice()},h.unknown=function(y){return arguments.length?(l=y,h):l},h.copy=function(){return Jp(o).unknown(l)},o=arguments.length?Mf.call(o,Df):[0,1],tc(h)}function Qp(o,l){var h,y=0,v=(o=o.slice()).length-1,w=o[y],N=o[v];return N0){for(;ctq)break;gt.push(Q)}}else for(;ct=1;--Z)if(!((Q=U*Z)q)break;gt.push(Q)}}else gt=ft(ct,ot,Math.min(ot-ct,it)).map(h);return D?gt.reverse():gt},y.tickFormat=function(S,D){if(D==null&&(D=w===10?".0e":","),typeof D!="function"&&(D=L0(D)),S===1/0)return D;S==null&&(S=10);var R=Math.max(1,w*S/y.ticks().length);return function(z){var q=z/h(Math.round(l(z)));return q*w0?y[S-1]:l[0],S=y?[v[y-1],h]:[v[R-1],v[R]]},N.unknown=function(D){return arguments.length&&(o=D),N},N.thresholds=function(){return v.slice()},N.copy=function(){return s3().domain([l,h]).range(w).unknown(o)},Ko.apply(tc(N),arguments)}function c3(){var o,l=[.5],h=[0,1],y=1;function v(w){return w<=w?h[L(l,w,0,y)]:o}return v.domain=function(w){return arguments.length?(l=kl.call(w),y=Math.min(l.length,h.length-1),v):l.slice()},v.range=function(w){return arguments.length?(h=kl.call(w),y=Math.min(l.length,h.length-1),v):h.slice()},v.invertExtent=function(w){var N=h.indexOf(w);return[l[N-1],l[N]]},v.unknown=function(w){return arguments.length?(o=w,v):o},v.copy=function(){return c3().domain(l).range(h).unknown(o)},Ko.apply(v,arguments)}var Rf=new Date,ig=new Date;function Gi(o,l,h,y){function v(w){return o(w=arguments.length===0?new Date:new Date(+w)),w}return v.floor=function(w){return o(w=new Date(+w)),w},v.ceil=function(w){return o(w=new Date(w-1)),l(w,1),o(w),w},v.round=function(w){var N=v(w),S=v.ceil(w);return w-N0))return R;do R.push(D=new Date(+w)),l(w,S),o(w);while(D=N)for(;o(N),!w(N);)N.setTime(N-1)},function(N,S){if(N>=N)if(S<0)for(;++S<=0;)for(;l(N,-1),!w(N););else for(;--S>=0;)for(;l(N,1),!w(N););})},h&&(v.count=function(w,N){return Rf.setTime(+w),ig.setTime(+N),o(Rf),o(ig),Math.floor(h(Rf,ig))},v.every=function(w){return w=Math.floor(w),isFinite(w)&&w>0?w>1?v.filter(y?function(N){return y(N)%w==0}:function(N){return v.count(0,N)%w==0}):v:null}),v}var ag=Gi(function(o){o.setMonth(0,1),o.setHours(0,0,0,0)},function(o,l){o.setFullYear(o.getFullYear()+l)},function(o,l){return l.getFullYear()-o.getFullYear()},function(o){return o.getFullYear()});ag.every=function(o){return isFinite(o=Math.floor(o))&&o>0?Gi(function(l){l.setFullYear(Math.floor(l.getFullYear()/o)*o),l.setMonth(0,1),l.setHours(0,0,0,0)},function(l,h){l.setFullYear(l.getFullYear()+h*o)}):null};const Tl=ag;var Z5=ag.range,Es=Gi(function(o){o.setDate(1),o.setHours(0,0,0,0)},function(o,l){o.setMonth(o.getMonth()+l)},function(o,l){return l.getMonth()-o.getMonth()+12*(l.getFullYear()-o.getFullYear())},function(o){return o.getMonth()});const og=Es;var ec=Es.range,Bf=1e3,Sl=6e4,x1=36e5,sg=864e5,cg=6048e5;function Al(o){return Gi(function(l){l.setDate(l.getDate()-(l.getDay()+7-o)%7),l.setHours(0,0,0,0)},function(l,h){l.setDate(l.getDate()+7*h)},function(l,h){return(h-l-(h.getTimezoneOffset()-l.getTimezoneOffset())*Sl)/cg})}var Cl=Al(0),Ru=Al(1),Ff=Al(2),l3=Al(3),nc=Al(4),Bu=Al(5),rc=Al(6),lg=Cl.range,Pf=Ru.range,ug=Ff.range,X5=l3.range,Uf=nc.range,Fu=Bu.range,u3=rc.range,go=Gi(function(o){o.setHours(0,0,0,0)},function(o,l){o.setDate(o.getDate()+l)},function(o,l){return(l-o-(l.getTimezoneOffset()-o.getTimezoneOffset())*Sl)/sg},function(o){return o.getDate()-1});const _i=go;var Pu=go.range,zf=Gi(function(o){o.setTime(o-o.getMilliseconds()-o.getSeconds()*Bf-o.getMinutes()*Sl)},function(o,l){o.setTime(+o+l*x1)},function(o,l){return(l-o)/x1},function(o){return o.getHours()});const h3=zf;var Qo=zf.range,Yc=Gi(function(o){o.setTime(o-o.getMilliseconds()-o.getSeconds()*Bf)},function(o,l){o.setTime(+o+l*Sl)},function(o,l){return(l-o)/Sl},function(o){return o.getMinutes()});const w1=Yc;var Yf=Yc.range,$f=Gi(function(o){o.setTime(o-o.getMilliseconds())},function(o,l){o.setTime(+o+l*Bf)},function(o,l){return(l-o)/Bf},function(o){return o.getUTCSeconds()});const Uu=$f;var f3=$f.range,jf=Gi(function(){},function(o,l){o.setTime(+o+l)},function(o,l){return l-o});jf.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?Gi(function(l){l.setTime(Math.floor(l/o)*o)},function(l,h){l.setTime(+l+h*o)},function(l,h){return(h-l)/o}):jf:null};const zu=jf;var d3=jf.range;function Ml(o){return Gi(function(l){l.setUTCDate(l.getUTCDate()-(l.getUTCDay()+7-o)%7),l.setUTCHours(0,0,0,0)},function(l,h){l.setUTCDate(l.getUTCDate()+7*h)},function(l,h){return(h-l)/cg})}var k1=Ml(0),$c=Ml(1),hg=Ml(2),p3=Ml(3),jc=Ml(4),fg=Ml(5),ic=Ml(6),g3=k1.range,dg=$c.range,y3=hg.range,m3=p3.range,_3=jc.range,Ts=fg.range,Hf=ic.range,v3=Gi(function(o){o.setUTCHours(0,0,0,0)},function(o,l){o.setUTCDate(o.getUTCDate()+l)},function(o,l){return(l-o)/sg},function(o){return o.getUTCDate()-1});const E1=v3;var ma=v3.range,Qn=Gi(function(o){o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0)},function(o,l){o.setUTCFullYear(o.getUTCFullYear()+l)},function(o,l){return l.getUTCFullYear()-o.getUTCFullYear()},function(o){return o.getUTCFullYear()});Qn.every=function(o){return isFinite(o=Math.floor(o))&&o>0?Gi(function(l){l.setUTCFullYear(Math.floor(l.getUTCFullYear()/o)*o),l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0)},function(l,h){l.setUTCFullYear(l.getUTCFullYear()+h*o)}):null};const Ss=Qn;var K5=Qn.range;function pg(o){if(0<=o.y&&o.y<100){var l=new Date(-1,o.m,o.d,o.H,o.M,o.S,o.L);return l.setFullYear(o.y),l}return new Date(o.y,o.m,o.d,o.H,o.M,o.S,o.L)}function ir(o){if(0<=o.y&&o.y<100){var l=new Date(Date.UTC(-1,o.m,o.d,o.H,o.M,o.S,o.L));return l.setUTCFullYear(o.y),l}return new Date(Date.UTC(o.y,o.m,o.d,o.H,o.M,o.S,o.L))}function ko(o,l,h){return{y:o,m:l,d:h,H:0,M:0,S:0,L:0}}function T1(o){var l=o.dateTime,h=o.date,y=o.time,v=o.periods,w=o.days,N=o.shortDays,S=o.months,D=o.shortMonths,R=Je(v),z=ac(v),q=Je(w),U=ac(w),Z=Je(N),Q=ac(N),ct=Je(S),ot=ac(S),it=Je(D),gt=ac(D),pt={a:function(Xt){return N[Xt.getDay()]},A:function(Xt){return w[Xt.getDay()]},b:function(Xt){return D[Xt.getMonth()]},B:function(Xt){return S[Xt.getMonth()]},c:null,d:oc,e:oc,f:ob,g:Vf,G:fb,H:bg,I:xg,j:wg,L:Il,m:sb,M:cb,p:function(Xt){return v[+(Xt.getHours()>=12)]},q:function(Xt){return 1+~~(Xt.getMonth()/3)},Q:Jf,s:Cg,S:lb,u:T3,U:Eo,V:S3,w:Eg,W:Gf,x:null,X:null,y:ub,Y:hb,Z:A3,"%":cr},Mt={a:function(Xt){return N[Xt.getUTCDay()]},A:function(Xt){return w[Xt.getUTCDay()]},b:function(Xt){return D[Xt.getUTCMonth()]},B:function(Xt){return S[Xt.getUTCMonth()]},c:null,d:Tg,e:Tg,f:C3,g:yo,G:Kf,H:Zf,I:As,j:$u,L:sc,m:M3,M:N3,p:function(Xt){return v[+(Xt.getUTCHours()>=12)]},q:function(Xt){return 1+~~(Xt.getUTCMonth()/3)},Q:Jf,s:Cg,S:Zi,u:db,U:L3,V:Sg,w:Cs,W:Ag,x:null,X:null,y:I3,Y:Xf,Z:O3,"%":cr},Wt={a:function(Xt,_e,Et){var Pt=Z.exec(_e.slice(Et));return Pt?(Xt.w=Q[Pt[0].toLowerCase()],Et+Pt[0].length):-1},A:function(Xt,_e,Et){var Pt=q.exec(_e.slice(Et));return Pt?(Xt.w=U[Pt[0].toLowerCase()],Et+Pt[0].length):-1},b:function(Xt,_e,Et){var Pt=it.exec(_e.slice(Et));return Pt?(Xt.m=gt[Pt[0].toLowerCase()],Et+Pt[0].length):-1},B:function(Xt,_e,Et){var Pt=ct.exec(_e.slice(Et));return Pt?(Xt.m=ot[Pt[0].toLowerCase()],Et+Pt[0].length):-1},c:function(Xt,_e,Et){return Be(Xt,l,_e,Et)},d:k3,e:k3,f:rb,g:w3,G:Wf,H:E3,I:E3,j:mg,L:nb,m:tb,M:eb,p:function(Xt,_e,Et){var Pt=R.exec(_e.slice(Et));return Pt?(Xt.p=z[Pt[0].toLowerCase()],Et+Pt[0].length):-1},q:yg,Q:ib,s:ab,S:_g,u:x3,U:Sr,V:tr,w:wn,W:qa,x:function(Xt,_e,Et){return Be(Xt,h,_e,Et)},X:function(Xt,_e,Et){return Be(Xt,y,_e,Et)},y:w3,Y:Wf,Z:Q5,"%":vg};function ee(Xt,_e){return function(Et){var Pt,ue,ce,de=[],tn=-1,fn=0,Bn=Xt.length;for(Et instanceof Date||(Et=new Date(+Et));++tn53)return null;"w"in ce||(ce.w=1),"Z"in ce?(ue=(Pt=ir(ko(ce.y,0,1))).getUTCDay(),Pt=ue>4||ue===0?$c.ceil(Pt):$c(Pt),Pt=E1.offset(Pt,7*(ce.V-1)),ce.y=Pt.getUTCFullYear(),ce.m=Pt.getUTCMonth(),ce.d=Pt.getUTCDate()+(ce.w+6)%7):(ue=(Pt=pg(ko(ce.y,0,1))).getDay(),Pt=ue>4||ue===0?Ru.ceil(Pt):Ru(Pt),Pt=_i.offset(Pt,7*(ce.V-1)),ce.y=Pt.getFullYear(),ce.m=Pt.getMonth(),ce.d=Pt.getDate()+(ce.w+6)%7)}else("W"in ce||"U"in ce)&&("w"in ce||(ce.w="u"in ce?ce.u%7:"W"in ce?1:0),ue="Z"in ce?ir(ko(ce.y,0,1)).getUTCDay():pg(ko(ce.y,0,1)).getDay(),ce.m=0,ce.d="W"in ce?(ce.w+6)%7+7*ce.W-(ue+5)%7:ce.w+7*ce.U-(ue+6)%7);return"Z"in ce?(ce.H+=ce.Z/100|0,ce.M+=ce.Z%100,ir(ce)):pg(ce)}}function Be(Xt,_e,Et,Pt){for(var ue,ce,de=0,tn=_e.length,fn=Et.length;de=fn)return-1;if((ue=_e.charCodeAt(de++))===37){if(ue=_e.charAt(de++),!(ce=Wt[ue in gg?_e.charAt(de++):ue])||(Pt=ce(Xt,Et,Pt))<0)return-1}else if(ue!=Et.charCodeAt(Pt++))return-1}return Pt}return pt.x=ee(h,pt),pt.X=ee(y,pt),pt.c=ee(l,pt),Mt.x=ee(h,Mt),Mt.X=ee(y,Mt),Mt.c=ee(l,Mt),{format:function(Xt){var _e=ee(Xt+="",pt);return _e.toString=function(){return Xt},_e},parse:function(Xt){var _e=le(Xt+="",!1);return _e.toString=function(){return Xt},_e},utcFormat:function(Xt){var _e=ee(Xt+="",Mt);return _e.toString=function(){return Xt},_e},utcParse:function(Xt){var _e=le(Xt+="",!0);return _e.toString=function(){return Xt},_e}}}var Nl,Ll,S1,Dl,Yu,gg={"-":"",_:" ",0:"0"},Vi=/^\s*\d+/,qf=/^%/,J5=/[\\^$*+?|[\]().{}]/g;function hr(o,l,h){var y=o<0?"-":"",v=(y?-o:o)+"",w=v.length;return y+(w68?1900:2e3),h+y[0].length):-1}function Q5(o,l,h){var y=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(l.slice(h,h+6));return y?(o.Z=y[1]?0:-(y[2]+(y[3]||"00")),h+y[0].length):-1}function yg(o,l,h){var y=Vi.exec(l.slice(h,h+1));return y?(o.q=3*y[0]-3,h+y[0].length):-1}function tb(o,l,h){var y=Vi.exec(l.slice(h,h+2));return y?(o.m=y[0]-1,h+y[0].length):-1}function k3(o,l,h){var y=Vi.exec(l.slice(h,h+2));return y?(o.d=+y[0],h+y[0].length):-1}function mg(o,l,h){var y=Vi.exec(l.slice(h,h+3));return y?(o.m=0,o.d=+y[0],h+y[0].length):-1}function E3(o,l,h){var y=Vi.exec(l.slice(h,h+2));return y?(o.H=+y[0],h+y[0].length):-1}function eb(o,l,h){var y=Vi.exec(l.slice(h,h+2));return y?(o.M=+y[0],h+y[0].length):-1}function _g(o,l,h){var y=Vi.exec(l.slice(h,h+2));return y?(o.S=+y[0],h+y[0].length):-1}function nb(o,l,h){var y=Vi.exec(l.slice(h,h+3));return y?(o.L=+y[0],h+y[0].length):-1}function rb(o,l,h){var y=Vi.exec(l.slice(h,h+6));return y?(o.L=Math.floor(y[0]/1e3),h+y[0].length):-1}function vg(o,l,h){var y=qf.exec(l.slice(h,h+1));return y?h+y[0].length:-1}function ib(o,l,h){var y=Vi.exec(l.slice(h));return y?(o.Q=+y[0],h+y[0].length):-1}function ab(o,l,h){var y=Vi.exec(l.slice(h));return y?(o.s=+y[0],h+y[0].length):-1}function oc(o,l){return hr(o.getDate(),l,2)}function bg(o,l){return hr(o.getHours(),l,2)}function xg(o,l){return hr(o.getHours()%12||12,l,2)}function wg(o,l){return hr(1+_i.count(Tl(o),o),l,3)}function Il(o,l){return hr(o.getMilliseconds(),l,3)}function ob(o,l){return Il(o,l)+"000"}function sb(o,l){return hr(o.getMonth()+1,l,2)}function cb(o,l){return hr(o.getMinutes(),l,2)}function lb(o,l){return hr(o.getSeconds(),l,2)}function T3(o){var l=o.getDay();return l===0?7:l}function Eo(o,l){return hr(Cl.count(Tl(o)-1,o),l,2)}function kg(o){var l=o.getDay();return l>=4||l===0?nc(o):nc.ceil(o)}function S3(o,l){return o=kg(o),hr(nc.count(Tl(o),o)+(Tl(o).getDay()===4),l,2)}function Eg(o){return o.getDay()}function Gf(o,l){return hr(Ru.count(Tl(o)-1,o),l,2)}function ub(o,l){return hr(o.getFullYear()%100,l,2)}function Vf(o,l){return hr((o=kg(o)).getFullYear()%100,l,2)}function hb(o,l){return hr(o.getFullYear()%1e4,l,4)}function fb(o,l){var h=o.getDay();return hr((o=h>=4||h===0?nc(o):nc.ceil(o)).getFullYear()%1e4,l,4)}function A3(o){var l=o.getTimezoneOffset();return(l>0?"-":(l*=-1,"+"))+hr(l/60|0,"0",2)+hr(l%60,"0",2)}function Tg(o,l){return hr(o.getUTCDate(),l,2)}function Zf(o,l){return hr(o.getUTCHours(),l,2)}function As(o,l){return hr(o.getUTCHours()%12||12,l,2)}function $u(o,l){return hr(1+E1.count(Ss(o),o),l,3)}function sc(o,l){return hr(o.getUTCMilliseconds(),l,3)}function C3(o,l){return sc(o,l)+"000"}function M3(o,l){return hr(o.getUTCMonth()+1,l,2)}function N3(o,l){return hr(o.getUTCMinutes(),l,2)}function Zi(o,l){return hr(o.getUTCSeconds(),l,2)}function db(o){var l=o.getUTCDay();return l===0?7:l}function L3(o,l){return hr(k1.count(Ss(o)-1,o),l,2)}function D3(o){var l=o.getUTCDay();return l>=4||l===0?jc(o):jc.ceil(o)}function Sg(o,l){return o=D3(o),hr(jc.count(Ss(o),o)+(Ss(o).getUTCDay()===4),l,2)}function Cs(o){return o.getUTCDay()}function Ag(o,l){return hr($c.count(Ss(o)-1,o),l,2)}function I3(o,l){return hr(o.getUTCFullYear()%100,l,2)}function yo(o,l){return hr((o=D3(o)).getUTCFullYear()%100,l,2)}function Xf(o,l){return hr(o.getUTCFullYear()%1e4,l,4)}function Kf(o,l){var h=o.getUTCDay();return hr((o=h>=4||h===0?jc(o):jc.ceil(o)).getUTCFullYear()%1e4,l,4)}function O3(){return"+0000"}function cr(){return"%"}function Jf(o){return+o}function Cg(o){return Math.floor(+o/1e3)}function Mg(o){return Nl=T1(o),Ll=Nl.format,S1=Nl.parse,Dl=Nl.utcFormat,Yu=Nl.utcParse,Nl}Mg({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 Ol=31536e6;function ra(o){return new Date(o)}function A1(o){return o instanceof Date?+o:+new Date(+o)}function ju(o,l,h,y,v,w,N,S,D){var R=Xp(ya,ya),z=R.invert,q=R.domain,U=D(".%L"),Z=D(":%S"),Q=D("%I:%M"),ct=D("%I %p"),ot=D("%a %d"),it=D("%b %d"),gt=D("%B"),pt=D("%Y"),Mt=[[N,1,1e3],[N,5,5e3],[N,15,15e3],[N,30,3e4],[w,1,6e4],[w,5,3e5],[w,15,9e5],[w,30,18e5],[v,1,36e5],[v,3,108e5],[v,6,216e5],[v,12,432e5],[y,1,864e5],[y,2,1728e5],[h,1,6048e5],[l,1,2592e6],[l,3,7776e6],[o,1,Ol]];function Wt(le){return(N(le)1)&&(o-=Math.floor(o));var l=Math.abs(o-.5);return va.h=360*o-100,va.s=1.5-1.5*l,va.l=.8-.9*l,va+""}var pi=Rr(),lc=Math.PI/3,vr=2*Math.PI/3;function es(o){var l;return o=(.5-o)*Math.PI,pi.r=255*(l=Math.sin(o))*l,pi.g=255*(l=Math.sin(o+lc))*l,pi.b=255*(l=Math.sin(o+vr))*l,pi+""}function Z3(o){return o=Math.max(0,Math.min(1,o)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+o*(1172.33-o*(10793.56-o*(33300.12-o*(38394.49-14825.05*o)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+o*(557.33+o*(1225.33-o*(3574.96-o*(1073.77+707.56*o)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+o*(3211.1-o*(15327.97-o*(27814-o*(22569.18-6838.66*o)))))))+")"}function Rl(o){var l=o.length;return function(h){return o[Math.max(0,Math.min(l-1,Math.floor(h*l)))]}}const Sb=Rl(ur("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Ab=Rl(ur("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),dd=Rl(ur("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),pd=Rl(ur("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Cb(o){return Hr(Cr(o).call(document.documentElement))}var Mb=0;function X3(){return new Vg}function Vg(){this._="@"+(++Mb).toString(36)}function Nb(o){return typeof o=="string"?new Xn([document.querySelectorAll(o)],[document.documentElement]):new Xn([o==null?[]:o],Ea)}function Lb(o,l){l==null&&(l=so().touches);for(var h=0,y=l?l.length:0,v=new Array(y);h1?0:o<-1?hc:Math.acos(o)}function Zg(o){return o>=1?fc:o<=-1?-fc:Math.asin(o)}function gd(o){return o.innerRadius}function xa(o){return o.outerRadius}function Ib(o){return o.startAngle}function yd(o){return o.endAngle}function Ob(o){return o&&o.padAngle}function J3(o,l,h,y,v,w,N,S){var D=h-o,R=y-l,z=N-v,q=S-w,U=q*D-z*R;if(!(U*Uce*ce+de*de&&(Be=_e,Xt=Et),{cx:Be,cy:Xt,x01:-z,y01:-q,x11:Be*(v/Wt-1),y11:Xt*(v/Wt-1)}}function Xg(){var o=gd,l=xa,h=gr(0),y=null,v=Ib,w=yd,N=Ob,S=null;function D(){var R,z,q=+o.apply(this,arguments),U=+l.apply(this,arguments),Z=v.apply(this,arguments)-fc,Q=w.apply(this,arguments)-fc,ct=K3(Q-Z),ot=Q>Z;if(S||(S=R=$s()),Uba)if(ct>dc-ba)S.moveTo(U*ns(Z),U*mo(Z)),S.arc(0,0,U,Z,Q,!ot),q>ba&&(S.moveTo(q*ns(Q),q*mo(Q)),S.arc(0,0,q,Q,Z,ot));else{var it,gt,pt=Z,Mt=Q,Wt=Z,ee=Q,le=ct,Be=ct,Xt=N.apply(this,arguments)/2,_e=Xt>ba&&(y?+y.apply(this,arguments):Bl(q*q+U*U)),Et=Ds(K3(U-q)/2,+h.apply(this,arguments)),Pt=Et,ue=Et;if(_e>ba){var ce=Zg(_e/q*mo(Xt)),de=Zg(_e/U*mo(Xt));(le-=2*ce)>ba?(Wt+=ce*=ot?1:-1,ee-=ce):(le=0,Wt=ee=(Z+Q)/2),(Be-=2*de)>ba?(pt+=de*=ot?1:-1,Mt-=de):(Be=0,pt=Mt=(Z+Q)/2)}var tn=U*ns(pt),fn=U*mo(pt),Bn=q*ns(ee),dr=q*mo(ee);if(Et>ba){var Kn,bn=U*ns(Mt),Ar=U*mo(Mt),Wn=q*ns(Wt),Hn=q*mo(Wt);if(ctba?ue>ba?(it=md(Wn,Hn,tn,fn,U,ue,ot),gt=md(bn,Ar,Bn,dr,U,ue,ot),S.moveTo(it.cx+it.x01,it.cy+it.y01),ueba&&le>ba?Pt>ba?(it=md(Bn,dr,bn,Ar,q,-Pt,ot),gt=md(tn,fn,Wn,Hn,q,-Pt,ot),S.lineTo(it.cx+it.x01,it.cy+it.y01),Pt=U;--Z)S.point(gt[Z],pt[Z]);S.lineEnd(),S.areaEnd()}it&&(gt[q]=+o(Q,q,z),pt[q]=+h(Q,q,z),S.point(l?+l(Q,q,z):gt[q],y?+y(Q,q,z):pt[q]))}if(ct)return S=null,ct+""||null}function R(){return _d().defined(v).curve(N).context(w)}return D.x=function(z){return arguments.length?(o=typeof z=="function"?z:gr(+z),l=null,D):o},D.x0=function(z){return arguments.length?(o=typeof z=="function"?z:gr(+z),D):o},D.x1=function(z){return arguments.length?(l=z==null?null:typeof z=="function"?z:gr(+z),D):l},D.y=function(z){return arguments.length?(h=typeof z=="function"?z:gr(+z),y=null,D):h},D.y0=function(z){return arguments.length?(h=typeof z=="function"?z:gr(+z),D):h},D.y1=function(z){return arguments.length?(y=z==null?null:typeof z=="function"?z:gr(+z),D):y},D.lineX0=D.lineY0=function(){return R().x(o).y(h)},D.lineY1=function(){return R().x(o).y(y)},D.lineX1=function(){return R().x(l).y(h)},D.defined=function(z){return arguments.length?(v=typeof z=="function"?z:gr(!!z),D):v},D.curve=function(z){return arguments.length?(N=z,w!=null&&(S=N(w)),D):N},D.context=function(z){return arguments.length?(z==null?w=S=null:S=N(w=z),D):w},D}function Rb(o,l){return lo?1:l>=o?0:NaN}function Q3(o){return o}function pc(){var o=Q3,l=Rb,h=null,y=gr(0),v=gr(dc),w=gr(0);function N(S){var D,R,z,q,U,Z=S.length,Q=0,ct=new Array(Z),ot=new Array(Z),it=+y.apply(this,arguments),gt=Math.min(dc,Math.max(-dc,v.apply(this,arguments)-it)),pt=Math.min(Math.abs(gt)/Z,w.apply(this,arguments)),Mt=pt*(gt<0?-1:1);for(D=0;D0&&(Q+=U);for(l!=null?ct.sort(function(Wt,ee){return l(ot[Wt],ot[ee])}):h!=null&&ct.sort(function(Wt,ee){return h(S[Wt],S[ee])}),D=0,z=Q?(gt-Z*Mt)/Q:0;D0?U*z:0)+Mt,ot[R]={data:S[R],index:D,value:U,startAngle:it,endAngle:q,padAngle:pt};return ot}return N.value=function(S){return arguments.length?(o=typeof S=="function"?S:gr(+S),N):o},N.sortValues=function(S){return arguments.length?(l=S,h=null,N):l},N.sort=function(S){return arguments.length?(h=S,l=null,N):h},N.startAngle=function(S){return arguments.length?(y=typeof S=="function"?S:gr(+S),N):y},N.endAngle=function(S){return arguments.length?(v=typeof S=="function"?S:gr(+S),N):v},N.padAngle=function(S){return arguments.length?(w=typeof S=="function"?S:gr(+S),N):w},N}Kg.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(o,l){switch(o=+o,l=+l,this._point){case 0:this._point=1,this._line?this._context.lineTo(o,l):this._context.moveTo(o,l);break;case 1:this._point=2;default:this._context.lineTo(o,l)}}};var gc=vd(B1);function Xr(o){this._curve=o}function vd(o){function l(h){return new Xr(o(h))}return l._curve=o,l}function Zu(o){var l=o.curve;return o.angle=o.x,delete o.x,o.radius=o.y,delete o.y,o.curve=function(h){return arguments.length?l(vd(h)):l()._curve},o}function Jg(){return Zu(_d().curve(gc))}function tv(){var o=Ga().curve(gc),l=o.curve,h=o.lineX0,y=o.lineX1,v=o.lineY0,w=o.lineY1;return o.angle=o.x,delete o.x,o.startAngle=o.x0,delete o.x0,o.endAngle=o.x1,delete o.x1,o.radius=o.y,delete o.y,o.innerRadius=o.y0,delete o.y0,o.outerRadius=o.y1,delete o.y1,o.lineStartAngle=function(){return Zu(h())},delete o.lineX0,o.lineEndAngle=function(){return Zu(y())},delete o.lineX1,o.lineInnerRadius=function(){return Zu(v())},delete o.lineY0,o.lineOuterRadius=function(){return Zu(w())},delete o.lineY1,o.curve=function(N){return arguments.length?l(vd(N)):l()._curve},o}function Pl(o,l){return[(l=+l)*Math.cos(o-=Math.PI/2),l*Math.sin(o)]}Xr.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(o,l){this._curve.point(l*Math.sin(o),l*-Math.cos(o))}};var P1=Array.prototype.slice;function yc(o){return o.source}function bd(o){return o.target}function Qg(o){var l=yc,h=bd,y=Fl,v=F1,w=null;function N(){var S,D=P1.call(arguments),R=l.apply(this,D),z=h.apply(this,D);if(w||(w=S=$s()),o(w,+y.apply(this,(D[0]=R,D)),+v.apply(this,D),+y.apply(this,(D[0]=z,D)),+v.apply(this,D)),S)return w=null,S+""||null}return N.source=function(S){return arguments.length?(l=S,N):l},N.target=function(S){return arguments.length?(h=S,N):h},N.x=function(S){return arguments.length?(y=typeof S=="function"?S:gr(+S),N):y},N.y=function(S){return arguments.length?(v=typeof S=="function"?S:gr(+S),N):v},N.context=function(S){return arguments.length?(w=S==null?null:S,N):w},N}function ev(o,l,h,y,v){o.moveTo(l,h),o.bezierCurveTo(l=(l+y)/2,h,l,v,y,v)}function ty(o,l,h,y,v){o.moveTo(l,h),o.bezierCurveTo(l,h=(h+v)/2,y,h,y,v)}function Si(o,l,h,y,v){var w=Pl(l,h),N=Pl(l,h=(h+v)/2),S=Pl(y,h),D=Pl(y,v);o.moveTo(w[0],w[1]),o.bezierCurveTo(N[0],N[1],S[0],S[1],D[0],D[1])}function Ul(){return Qg(ev)}function Xu(){return Qg(ty)}function Is(){var o=Qg(Si);return o.angle=o.x,delete o.x,o.radius=o.y,delete o.y,o}const Ku={draw:function(o,l){var h=Math.sqrt(l/hc);o.moveTo(h,0),o.arc(0,0,h,0,dc)}},xd={draw:function(o,l){var h=Math.sqrt(l/5)/2;o.moveTo(-3*h,-h),o.lineTo(-h,-h),o.lineTo(-h,-3*h),o.lineTo(h,-3*h),o.lineTo(h,-h),o.lineTo(3*h,-h),o.lineTo(3*h,h),o.lineTo(h,h),o.lineTo(h,3*h),o.lineTo(-h,3*h),o.lineTo(-h,h),o.lineTo(-3*h,h),o.closePath()}};var wd=Math.sqrt(1/3),ey=2*wd;const U1={draw:function(o,l){var h=Math.sqrt(l/ey),y=h*wd;o.moveTo(0,-h),o.lineTo(y,0),o.lineTo(0,h),o.lineTo(-y,0),o.closePath()}};var z1=Math.sin(hc/10)/Math.sin(7*hc/10),kd=Math.sin(dc/10)*z1,Bb=-Math.cos(dc/10)*z1;const Ed={draw:function(o,l){var h=Math.sqrt(.8908130915292852*l),y=kd*h,v=Bb*h;o.moveTo(0,-h),o.lineTo(y,v);for(var w=1;w<5;++w){var N=dc*w/5,S=Math.cos(N),D=Math.sin(N);o.lineTo(D*h,-S*h),o.lineTo(S*y-D*v,D*y+S*v)}o.closePath()}},ny={draw:function(o,l){var h=Math.sqrt(l),y=-h/2;o.rect(y,y,h,h)}};var ry=Math.sqrt(3);const Td={draw:function(o,l){var h=-Math.sqrt(l/(3*ry));o.moveTo(0,2*h),o.lineTo(-ry*h,-h),o.lineTo(ry*h,-h),o.closePath()}};var _o=-.5,No=Math.sqrt(3)/2,Sd=1/Math.sqrt(12),nv=3*(Sd/2+1);const fr={draw:function(o,l){var h=Math.sqrt(l/nv),y=h/2,v=h*Sd,w=y,N=h*Sd+h,S=-w,D=N;o.moveTo(y,v),o.lineTo(w,N),o.lineTo(S,D),o.lineTo(_o*y-No*v,No*y+_o*v),o.lineTo(_o*w-No*N,No*w+_o*N),o.lineTo(_o*S-No*D,No*S+_o*D),o.lineTo(_o*y+No*v,_o*v-No*y),o.lineTo(_o*w+No*N,_o*N-No*w),o.lineTo(_o*S+No*D,_o*D-No*S),o.closePath()}};var Fb=[Ku,xd,U1,ny,Ed,Td,fr];function Ad(){var o=gr(Ku),l=gr(64),h=null;function y(){var v;if(h||(h=v=$s()),o.apply(this,arguments).draw(h,+l.apply(this,arguments)),v)return h=null,v+""||null}return y.type=function(v){return arguments.length?(o=typeof v=="function"?v:gr(v),y):o},y.size=function(v){return arguments.length?(l=typeof v=="function"?v:gr(+v),y):l},y.context=function(v){return arguments.length?(h=v==null?null:v,y):h},y}function Gc(){}function Na(o,l,h){o._context.bezierCurveTo((2*o._x0+o._x1)/3,(2*o._y0+o._y1)/3,(o._x0+2*o._x1)/3,(o._y0+2*o._y1)/3,(o._x0+4*o._x1+l)/6,(o._y0+4*o._y1+h)/6)}function Cd(o){this._context=o}function rv(o){return new Cd(o)}function iv(o){this._context=o}function Pb(o){return new iv(o)}function av(o){this._context=o}function Ub(o){return new av(o)}function ov(o,l){this._basis=new Cd(o),this._beta=l}Cd.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:Na(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(o,l){switch(o=+o,l=+l,this._point){case 0:this._point=1,this._line?this._context.lineTo(o,l):this._context.moveTo(o,l);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:Na(this,o,l)}this._x0=this._x1,this._x1=o,this._y0=this._y1,this._y1=l}},iv.prototype={areaStart:Gc,areaEnd:Gc,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(o,l){switch(o=+o,l=+l,this._point){case 0:this._point=1,this._x2=o,this._y2=l;break;case 1:this._point=2,this._x3=o,this._y3=l;break;case 2:this._point=3,this._x4=o,this._y4=l,this._context.moveTo((this._x0+4*this._x1+o)/6,(this._y0+4*this._y1+l)/6);break;default:Na(this,o,l)}this._x0=this._x1,this._x1=o,this._y0=this._y1,this._y1=l}},av.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(o,l){switch(o=+o,l=+l,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var h=(this._x0+4*this._x1+o)/6,y=(this._y0+4*this._y1+l)/6;this._line?this._context.lineTo(h,y):this._context.moveTo(h,y);break;case 3:this._point=4;default:Na(this,o,l)}this._x0=this._x1,this._x1=o,this._y0=this._y1,this._y1=l}},ov.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var o=this._x,l=this._y,h=o.length-1;if(h>0)for(var y,v=o[0],w=l[0],N=o[h]-v,S=l[h]-w,D=-1;++D<=h;)y=D/h,this._basis.point(this._beta*o[D]+(1-this._beta)*(v+y*N),this._beta*l[D]+(1-this._beta)*(w+y*S));this._x=this._y=null,this._basis.lineEnd()},point:function(o,l){this._x.push(+o),this._y.push(+l)}};const zb=function o(l){function h(y){return l===1?new Cd(y):new ov(y,l)}return h.beta=function(y){return o(+y)},h}(.85);function Md(o,l,h){o._context.bezierCurveTo(o._x1+o._k*(o._x2-o._x0),o._y1+o._k*(o._y2-o._y0),o._x2+o._k*(o._x1-l),o._y2+o._k*(o._y1-h),o._x2,o._y2)}function iy(o,l){this._context=o,this._k=(1-l)/6}iy.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(o,l){switch(o=+o,l=+l,this._point){case 0:this._point=1,this._line?this._context.lineTo(o,l):this._context.moveTo(o,l);break;case 1:this._point=2,this._x1=o,this._y1=l;break;case 2:this._point=3;default:Md(this,o,l)}this._x0=this._x1,this._x1=this._x2,this._x2=o,this._y0=this._y1,this._y1=this._y2,this._y2=l}};const Yb=function o(l){function h(y){return new iy(y,l)}return h.tension=function(y){return o(+y)},h}(0);function ay(o,l){this._context=o,this._k=(1-l)/6}ay.prototype={areaStart:Gc,areaEnd:Gc,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(o,l){switch(o=+o,l=+l,this._point){case 0:this._point=1,this._x3=o,this._y3=l;break;case 1:this._point=2,this._context.moveTo(this._x4=o,this._y4=l);break;case 2:this._point=3,this._x5=o,this._y5=l;break;default:Md(this,o,l)}this._x0=this._x1,this._x1=this._x2,this._x2=o,this._y0=this._y1,this._y1=this._y2,this._y2=l}};const $b=function o(l){function h(y){return new ay(y,l)}return h.tension=function(y){return o(+y)},h}(0);function rs(o,l){this._context=o,this._k=(1-l)/6}rs.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(o,l){switch(o=+o,l=+l,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,o,l)}this._x0=this._x1,this._x1=this._x2,this._x2=o,this._y0=this._y1,this._y1=this._y2,this._y2=l}};const jb=function o(l){function h(y){return new rs(y,l)}return h.tension=function(y){return o(+y)},h}(0);function Nd(o,l,h){var y=o._x1,v=o._y1,w=o._x2,N=o._y2;if(o._l01_a>ba){var S=2*o._l01_2a+3*o._l01_a*o._l12_a+o._l12_2a,D=3*o._l01_a*(o._l01_a+o._l12_a);y=(y*S-o._x0*o._l12_2a+o._x2*o._l01_2a)/D,v=(v*S-o._y0*o._l12_2a+o._y2*o._l01_2a)/D}if(o._l23_a>ba){var R=2*o._l23_2a+3*o._l23_a*o._l12_a+o._l12_2a,z=3*o._l23_a*(o._l23_a+o._l12_a);w=(w*R+o._x1*o._l23_2a-l*o._l12_2a)/z,N=(N*R+o._y1*o._l23_2a-h*o._l12_2a)/z}o._context.bezierCurveTo(y,v,w,N,o._x2,o._y2)}function oy(o,l){this._context=o,this._alpha=l}oy.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(o,l){if(o=+o,l=+l,this._point){var h=this._x2-o,y=this._y2-l;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(h*h+y*y,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(o,l):this._context.moveTo(o,l);break;case 1:this._point=2;break;case 2:this._point=3;default:Nd(this,o,l)}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=o,this._y0=this._y1,this._y1=this._y2,this._y2=l}};const Hb=function o(l){function h(y){return l?new oy(y,l):new iy(y,0)}return h.alpha=function(y){return o(+y)},h}(.5);function sy(o,l){this._context=o,this._alpha=l}sy.prototype={areaStart:Gc,areaEnd:Gc,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(o,l){if(o=+o,l=+l,this._point){var h=this._x2-o,y=this._y2-l;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(h*h+y*y,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=o,this._y3=l;break;case 1:this._point=2,this._context.moveTo(this._x4=o,this._y4=l);break;case 2:this._point=3,this._x5=o,this._y5=l;break;default:Nd(this,o,l)}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=o,this._y0=this._y1,this._y1=this._y2,this._y2=l}};const sv=function o(l){function h(y){return l?new sy(y,l):new ay(y,0)}return h.alpha=function(y){return o(+y)},h}(.5);function cv(o,l){this._context=o,this._alpha=l}cv.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(o,l){if(o=+o,l=+l,this._point){var h=this._x2-o,y=this._y2-l;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(h*h+y*y,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:Nd(this,o,l)}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=o,this._y0=this._y1,this._y1=this._y2,this._y2=l}};const cy=function o(l){function h(y){return l?new cv(y,l):new rs(y,0)}return h.alpha=function(y){return o(+y)},h}(.5);function Ld(o){this._context=o}function Dd(o){return new Ld(o)}function is(o){return o<0?-1:1}function Id(o,l,h){var y=o._x1-o._x0,v=l-o._x1,w=(o._y1-o._y0)/(y||v<0&&-0),N=(h-o._y1)/(v||y<0&&-0),S=(w*v+N*y)/(y+v);return(is(w)+is(N))*Math.min(Math.abs(w),Math.abs(N),.5*Math.abs(S))||0}function Od(o,l){var h=o._x1-o._x0;return h?(3*(o._y1-o._y0)/h-l)/2:l}function zl(o,l,h){var y=o._x0,v=o._y0,w=o._x1,N=o._y1,S=(w-y)/3;o._context.bezierCurveTo(y+S,v+S*l,w-S,N-S*h,w,N)}function Vc(o){this._context=o}function Rd(o){this._context=new Bd(o)}function Bd(o){this._context=o}function ly(o){return new Vc(o)}function Ju(o){return new Rd(o)}function uy(o){this._context=o}function Y1(o){var l,h,y=o.length-1,v=new Array(y),w=new Array(y),N=new Array(y);for(v[0]=0,w[0]=2,N[0]=o[0]+2*o[1],l=1;l=0;--l)v[l]=(N[l]-v[l+1])/w[l];for(w[y-1]=(o[y]+v[y-1])/2,l=0;l1)for(var h,y,v,w=1,N=o[l[0]],S=N.length;w=0;)h[l]=l;return h}function hv(o,l){return o[l]}function fv(){var o=gr([]),l=Zc,h=th,y=hv;function v(w){var N,S,D=o.apply(this,arguments),R=w.length,z=D.length,q=new Array(z);for(N=0;N0){for(var h,y,v,w=0,N=o[0].length;w0)for(var h,y,v,w,N,S,D=0,R=o[l[0]].length;D0?(y[0]=w,y[1]=w+=v):v<0?(y[1]=N,y[0]=N+=v):(y[0]=0,y[1]=v)}function Ui(o,l){if((h=o.length)>0){for(var h,y=0,v=o[l[0]],w=v.length;y0&&(y=(h=o[l[0]]).length)>0){for(var h,y,v,w=0,N=1;Nw&&(w=l,y=h);return y}function fy(o){var l=o.map(dy);return Zc(o).sort(function(h,y){return l[h]-l[y]})}function dy(o){for(var l,h=0,y=-1,v=o.length;++y=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(o,l){switch(o=+o,l=+l,this._point){case 0:this._point=1,this._line?this._context.lineTo(o,l):this._context.moveTo(o,l);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,l),this._context.lineTo(o,l);else{var h=this._x*(1-this._t)+o*this._t;this._context.lineTo(h,this._y),this._context.lineTo(h,l)}}this._x=o,this._y=l}};var no="%Y-%m-%dT%H:%M:%S.%LZ",qb=Date.prototype.toISOString?function(o){return o.toISOString()}:Dl(no);const mv=qb;var Wb=+new Date("2000-01-01T00:00:00.000Z")?function(o){var l=new Date(o);return isNaN(l)?null:l}:Yu(no);const _v=Wb;function vv(o,l,h){var y=new te,v=l;return l==null?(y.restart(o,l,h),y):(l=+l,h=h==null?tt():+h,y.restart(function w(N){N+=v,y.restart(w,v+=l,h),o(N)},l,h),y)}function bv(o){return function(){return o}}function Fd(o){return o[0]}function Gb(o){return o[1]}function zi(){this._=null}function oa(o){o.U=o.C=o.L=o.R=o.P=o.N=null}function Kc(o,l){var h=l,y=l.R,v=h.U;v?v.L===h?v.L=y:v.R=y:o._=y,y.U=v,h.U=y,h.R=y.L,h.R&&(h.R.U=h),y.L=h}function vi(o,l){var h=l,y=l.L,v=h.U;v?v.L===h?v.L=y:v.R=y:o._=y,y.U=v,h.U=y,h.L=y.R,h.L&&(h.L.U=h),y.R=h}function sa(o){for(;o.L;)o=o.L;return o}zi.prototype={constructor:zi,insert:function(o,l){var h,y,v;if(o){if(l.P=o,l.N=o.N,o.N&&(o.N.P=l),o.N=l,o.R){for(o=o.R;o.L;)o=o.L;o.L=l}else o.R=l;h=o}else this._?(o=sa(this._),l.P=null,l.N=o,o.P=o.L=l,h=o):(l.P=l.N=null,this._=l,h=null);for(l.L=l.R=null,l.U=h,l.C=!0,o=l;h&&h.C;)h===(y=h.U).L?(v=y.R)&&v.C?(h.C=v.C=!1,y.C=!0,o=y):(o===h.R&&(Kc(this,h),h=(o=h).U),h.C=!1,y.C=!0,vi(this,y)):(v=y.L)&&v.C?(h.C=v.C=!1,y.C=!0,o=y):(o===h.L&&(vi(this,h),h=(o=h).U),h.C=!1,y.C=!0,Kc(this,y)),h=o.U;this._.C=!1},remove:function(o){o.N&&(o.N.P=o.P),o.P&&(o.P.N=o.N),o.N=o.P=null;var l,h,y,v=o.U,w=o.L,N=o.R;if(h=w?N?sa(N):w:N,v?v.L===o?v.L=h:v.R=h:this._=h,w&&N?(y=h.C,h.C=o.C,h.L=w,w.U=h,h!==N?(v=h.U,h.U=o.U,o=h.R,v.L=o,h.R=N,N.U=h):(h.U=v,v=h,o=h.R)):(y=o.C,o=h),o&&(o.U=v),!y)if(o&&o.C)o.C=!1;else{do{if(o===this._)break;if(o===v.L){if((l=v.R).C&&(l.C=!1,v.C=!0,Kc(this,v),l=v.R),l.L&&l.L.C||l.R&&l.R.C){l.R&&l.R.C||(l.L.C=!1,l.C=!0,vi(this,l),l=v.R),l.C=v.C,v.C=l.R.C=!1,Kc(this,v),o=this._;break}}else if((l=v.L).C&&(l.C=!1,v.C=!0,vi(this,v),l=v.L),l.L&&l.L.C||l.R&&l.R.C){l.L&&l.L.C||(l.R.C=!1,l.C=!0,Kc(this,l),l=v.L),l.C=v.C,v.C=l.L.C=!1,vi(this,v),o=this._;break}l.C=!0,o=v,v=v.U}while(!o.C);o&&(o.C=!1)}}};const py=zi;function as(o,l,h,y){var v=[null,null],w=La.push(v)-1;return v.left=o,v.right=l,h&&j1(v,o,l,h),y&&j1(v,l,o,y),vo[o.index].halfedges.push(w),vo[l.index].halfedges.push(w),v}function $l(o,l,h){var y=[l,h];return y.left=o,y}function j1(o,l,h,y){o[0]||o[1]?o.left===h?o[1]=y:o[0]=y:(o[0]=y,o.left=l,o.right=h)}function xv(o,l,h,y,v){var w,N=o[0],S=o[1],D=N[0],R=N[1],z=0,q=1,U=S[0]-D,Z=S[1]-R;if(w=l-D,U||!(w>0)){if(w/=U,U<0){if(w0){if(w>q)return;w>z&&(z=w)}if(w=y-D,U||!(w<0)){if(w/=U,U<0){if(w>q)return;w>z&&(z=w)}else if(U>0){if(w0)){if(w/=Z,Z<0){if(w0){if(w>q)return;w>z&&(z=w)}if(w=v-R,Z||!(w<0)){if(w/=Z,Z<0){if(w>q)return;w>z&&(z=w)}else if(Z>0){if(w0||q<1)||(z>0&&(o[0]=[D+z*U,R+z*Z]),q<1&&(o[1]=[D+q*U,R+q*Z]),!0)}}}}}function wv(o,l,h,y,v){var w=o[1];if(w)return!0;var N,S,D=o[0],R=o.left,z=o.right,q=R[0],U=R[1],Z=z[0],Q=z[1],ct=(q+Z)/2,ot=(U+Q)/2;if(Q===U){if(ct=y)return;if(q>Z){if(D){if(D[1]>=v)return}else D=[ct,h];w=[ct,v]}else{if(D){if(D[1]1)if(q>Z){if(D){if(D[1]>=v)return}else D=[(h-S)/N,h];w=[(v-S)/N,v]}else{if(D){if(D[1]=y)return}else D=[l,N*l+S];w=[y,N*y+S]}else{if(D){if(D[0]=-Zb)){var Z=D*D+R*R,Q=z*z+q*q,ct=(q*Z-R*Q)/U,ot=(D*Q-z*Z)/U,it=Ev.pop()||new Tv;it.arc=o,it.site=v,it.x=ct+N,it.y=(it.cy=ot+S)+Math.sqrt(ct*ct+ot*ot),o.circle=it;for(var gt=null,pt=rh._;pt;)if(it.yYr)S=S.L;else{if(!((v=w-Av(S,N))>Yr)){y>-Yr?(l=S.P,h=S):v>-Yr?(l=S,h=S.N):l=h=S;break}if(!S.R){l=S;break}S=S.R}(function(Wt){vo[Wt.index]={site:Wt,halfedges:[]}})(o);var D=W1(o);if(Hl.insert(l,D),l||h){if(l===h)return Ki(l),h=W1(l.site),Hl.insert(D,h),D.edge=h.edge=as(l.site,D.site),Os(l),void Os(h);if(h){Ki(l),Ki(h);var R=l.site,z=R[0],q=R[1],U=o[0]-z,Z=o[1]-q,Q=h.site,ct=Q[0]-z,ot=Q[1]-q,it=2*(U*ot-Z*ct),gt=U*U+Z*Z,pt=ct*ct+ot*ot,Mt=[(ot*gt-Z*pt)/it+z,(U*pt-ct*gt)/it+q];j1(h.edge,R,Q,Mt),D.edge=as(R,o,null,Mt),h.edge=as(o,Q,null,Mt),Os(l),Os(h)}else D.edge=as(l.site,D.site)}}function yy(o,l){var h=o.site,y=h[0],v=h[1],w=v-l;if(!w)return y;var N=o.P;if(!N)return-1/0;var S=(h=N.site)[0],D=h[1],R=D-l;if(!R)return S;var z=S-y,q=1/w-1/R,U=z/R;return q?(-U+Math.sqrt(U*U-2*q*(z*z/(-2*R)-D+R/2+v-w/2)))/q+y:(y+S)/2}function Av(o,l){var h=o.N;if(h)return yy(h,l);var y=o.site;return y[1]===l?y[0]:1/0}var Hl,vo,rh,La,Yr=1e-6,Zb=1e-12;function Cv(o,l,h){return(o[0]-h[0])*(l[1]-o[1])-(o[0]-l[0])*(h[1]-o[1])}function Ud(o,l){return l[1]-o[1]||l[0]-o[0]}function G1(o,l){var h,y,v,w=o.sort(Ud).pop();for(La=[],vo=new Array(o.length),Hl=new py,rh=new py;;)if(v=Jc,w&&(!v||w[1]Yr||Math.abs(Q[0][1]-Q[1][1])>Yr)||delete La[ct]})(N,S,D,R),function(z,q,U,Z){var Q,ct,ot,it,gt,pt,Mt,Wt,ee,le,Be,Xt,_e=vo.length,Et=!0;for(Q=0;Q<_e;++Q)if(ct=vo[Q]){for(ot=ct.site,it=(gt=ct.halfedges).length;it--;)La[gt[it]]||gt.splice(it,1);for(it=0,pt=gt.length;itYr||Math.abs(Xt-ee)>Yr)&&(gt.splice(it,0,La.push($l(ot,le,Math.abs(Be-z)Yr?[z,Math.abs(Wt-z)Yr?[Math.abs(ee-Z)Yr?[U,Math.abs(Wt-U)Yr?[Math.abs(ee-q)=S)return null;var D=o-v.site[0],R=l-v.site[1],z=D*D+R*R;do v=w.cells[y=N],N=null,v.halfedges.forEach(function(q){var U=w.edges[q],Z=U.left;if(Z!==v.site&&Z||(Z=U.right)){var Q=o-Z[0],ct=l-Z[1],ot=Q*Q+ct*ct;oty?(y+v)/2:Math.min(0,y)||Math.max(0,v),N>w?(w+N)/2:Math.min(0,w)||Math.max(0,N))}function Yi(){var o,l,h=Z1,y=tl,v=Xb,w=ah,N=_y,S=[0,1/0],D=[[-1/0,-1/0],[1/0,1/0]],R=250,z=Ef,q=dn("start","zoom","end"),U=500,Z=0;function Q(Et){Et.property("__zoom",ih).on("wheel.zoom",Wt).on("mousedown.zoom",ee).on("dblclick.zoom",le).filter(N).on("touchstart.zoom",Be).on("touchmove.zoom",Xt).on("touchend.zoom touchcancel.zoom",_e).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function ct(Et,Pt){return(Pt=Math.max(S[0],Math.min(S[1],Pt)))===Et.k?Et:new _c(Pt,Et.x,Et.y)}function ot(Et,Pt,ue){var ce=Pt[0]-ue[0]*Et.k,de=Pt[1]-ue[1]*Et.k;return ce===Et.x&&de===Et.y?Et:new _c(Et.k,ce,de)}function it(Et){return[(+Et[0][0]+ +Et[1][0])/2,(+Et[0][1]+ +Et[1][1])/2]}function gt(Et,Pt,ue){Et.on("start.zoom",function(){pt(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){pt(this,arguments).end()}).tween("zoom",function(){var ce=this,de=arguments,tn=pt(ce,de),fn=y.apply(ce,de),Bn=ue==null?it(fn):typeof ue=="function"?ue.apply(ce,de):ue,dr=Math.max(fn[1][0]-fn[0][0],fn[1][1]-fn[0][1]),Kn=ce.__zoom,bn=typeof Pt=="function"?Pt.apply(ce,de):Pt,Ar=z(Kn.invert(Bn).concat(dr/Kn.k),bn.invert(Bn).concat(dr/bn.k));return function(Wn){if(Wn===1)Wn=bn;else{var Hn=Ar(Wn),wr=dr/Hn[2];Wn=new _c(wr,Bn[0]-Hn[0]*wr,Bn[1]-Hn[1]*wr)}tn.zoom(null,Wn)}})}function pt(Et,Pt,ue){return!ue&&Et.__zooming||new Mt(Et,Pt)}function Mt(Et,Pt){this.that=Et,this.args=Pt,this.active=0,this.extent=y.apply(Et,Pt),this.taps=0}function Wt(){if(h.apply(this,arguments)){var Et=pt(this,arguments),Pt=this.__zoom,ue=Math.max(S[0],Math.min(S[1],Pt.k*Math.pow(2,w.apply(this,arguments)))),ce=Ps(this);if(Et.wheel)Et.mouse[0][0]===ce[0]&&Et.mouse[0][1]===ce[1]||(Et.mouse[1]=Pt.invert(Et.mouse[0]=ce)),clearTimeout(Et.wheel);else{if(Pt.k===ue)return;Et.mouse=[ce,Pt.invert(ce)],Ba(this),Et.start()}ca(),Et.wheel=setTimeout(de,150),Et.zoom("mouse",v(ot(ct(Pt,ue),Et.mouse[0],Et.mouse[1]),Et.extent,D))}function de(){Et.wheel=null,Et.end()}}function ee(){if(!l&&h.apply(this,arguments)){var Et=pt(this,arguments,!0),Pt=Hr(Re.view).on("mousemove.zoom",tn,!0).on("mouseup.zoom",fn,!0),ue=Ps(this),ce=Re.clientX,de=Re.clientY;Bi(Re.view),V1(),Et.mouse=[ue,this.__zoom.invert(ue)],Ba(this),Et.start()}function tn(){if(ca(),!Et.moved){var Bn=Re.clientX-ce,dr=Re.clientY-de;Et.moved=Bn*Bn+dr*dr>Z}Et.zoom("mouse",v(ot(Et.that.__zoom,Et.mouse[0]=Ps(Et.that),Et.mouse[1]),Et.extent,D))}function fn(){Pt.on("mousemove.zoom mouseup.zoom",null),Or(Re.view,Et.moved),ca(),Et.end()}}function le(){if(h.apply(this,arguments)){var Et=this.__zoom,Pt=Ps(this),ue=Et.invert(Pt),ce=Et.k*(Re.shiftKey?.5:2),de=v(ot(ct(Et,ce),Pt,ue),y.apply(this,arguments),D);ca(),R>0?Hr(this).transition().duration(R).call(gt,de,Pt):Hr(this).call(Q.transform,de)}}function Be(){if(h.apply(this,arguments)){var Et,Pt,ue,ce,de=Re.touches,tn=de.length,fn=pt(this,arguments,Re.changedTouches.length===tn);for(V1(),Pt=0;Pt{p.exports={graphlib:f(574),layout:f(8123),debug:f(7570),util:{time:f(1138).time,notime:f(1138).notime},version:f(8177)}},2188:(p,T,f)=>{var b=f(8436),g=f(4079);p.exports={run:function(E){var k=E.graph().acyclicer==="greedy"?g(E,function(M){return function(O){return M.edge(O).weight}}(E)):function(M){var O=[],L={},F={};return b.forEach(M.nodes(),function P($){b.has(F,$)||(F[$]=!0,L[$]=!0,b.forEach(M.outEdges($),function(W){b.has(L,W.w)?O.push(W):P(W.w)}),delete L[$])}),O}(E);b.forEach(k,function(M){var O=E.edge(M);E.removeEdge(M),O.forwardName=M.name,O.reversed=!0,E.setEdge(M.w,M.v,O,b.uniqueId("rev"))})},undo:function(E){b.forEach(E.edges(),function(k){var M=E.edge(k);if(M.reversed){E.removeEdge(k);var O=M.forwardName;delete M.reversed,delete M.forwardName,E.setEdge(k.w,k.v,M,O)}})}}},1133:(p,T,f)=>{var b=f(8436),g=f(1138);function E(k,M,O,L,F,P){var $={width:0,height:0,rank:P,borderType:M},W=F[M][P-1],K=g.addDummyNode(k,"border",$,O);F[M][P]=K,k.setParent(K,L),W&&k.setEdge(W,K,{weight:1})}p.exports=function(k){b.forEach(k.children(),function M(O){var L=k.children(O),F=k.node(O);if(L.length&&b.forEach(L,M),b.has(F,"minRank")){F.borderLeft=[],F.borderRight=[];for(var P=F.minRank,$=F.maxRank+1;P<$;++P)E(k,"borderLeft","_bl",O,F,P),E(k,"borderRight","_br",O,F,P)}})}},3258:(p,T,f)=>{var b=f(8436);function g(O){b.forEach(O.nodes(),function(L){E(O.node(L))}),b.forEach(O.edges(),function(L){E(O.edge(L))})}function E(O){var L=O.width;O.width=O.height,O.height=L}function k(O){O.y=-O.y}function M(O){var L=O.x;O.x=O.y,O.y=L}p.exports={adjust:function(O){var L=O.graph().rankdir.toLowerCase();L!=="lr"&&L!=="rl"||g(O)},undo:function(O){var L=O.graph().rankdir.toLowerCase();L!=="bt"&&L!=="rl"||function(F){b.forEach(F.nodes(),function(P){k(F.node(P))}),b.forEach(F.edges(),function(P){var $=F.edge(P);b.forEach($.points,k),b.has($,"y")&&k($)})}(O),L!=="lr"&&L!=="rl"||(function(F){b.forEach(F.nodes(),function(P){M(F.node(P))}),b.forEach(F.edges(),function(P){var $=F.edge(P);b.forEach($.points,M),b.has($,"x")&&M($)})}(O),g(O))}}},7822:p=>{function T(){var g={};g._next=g._prev=g,this._sentinel=g}function f(g){g._prev._next=g._next,g._next._prev=g._prev,delete g._next,delete g._prev}function b(g,E){if(g!=="_next"&&g!=="_prev")return E}p.exports=T,T.prototype.dequeue=function(){var g=this._sentinel,E=g._prev;if(E!==g)return f(E),E},T.prototype.enqueue=function(g){var E=this._sentinel;g._prev&&g._next&&f(g),g._next=E._next,E._next._prev=g,E._next=g,g._prev=E},T.prototype.toString=function(){for(var g=[],E=this._sentinel,k=E._prev;k!==E;)g.push(JSON.stringify(k,b)),k=k._prev;return"["+g.join(", ")+"]"}},7570:(p,T,f)=>{var b=f(8436),g=f(1138),E=f(574).Graph;p.exports={debugOrdering:function(k){var M=g.buildLayerMatrix(k),O=new E({compound:!0,multigraph:!0}).setGraph({});return b.forEach(k.nodes(),function(L){O.setNode(L,{label:L}),O.setParent(L,"layer"+k.node(L).rank)}),b.forEach(k.edges(),function(L){O.setEdge(L.v,L.w,{},L.name)}),b.forEach(M,function(L,F){var P="layer"+F;O.setNode(P,{rank:"same"}),b.reduce(L,function($,W){return O.setEdge($,W,{style:"invis"}),W})}),O}}},574:(p,T,f)=>{var b;try{b=f(8282)}catch{}b||(b=window.graphlib),p.exports=b},4079:(p,T,f)=>{var b=f(8436),g=f(574).Graph,E=f(7822);p.exports=function(L,F){if(L.nodeCount()<=1)return[];var P=function(W,K){var nt=new g,ht=0,J=0;b.forEach(W.nodes(),function(st){nt.setNode(st,{v:st,in:0,out:0})}),b.forEach(W.edges(),function(st){var St=nt.edge(st.v,st.w)||0,qt=K(st),Nt=St+qt;nt.setEdge(st.v,st.w,Nt),J=Math.max(J,nt.node(st.v).out+=qt),ht=Math.max(ht,nt.node(st.w).in+=qt)});var bt=b.range(J+ht+3).map(function(){return new E}),at=ht+1;return b.forEach(nt.nodes(),function(st){O(bt,at,nt.node(st))}),{graph:nt,buckets:bt,zeroIdx:at}}(L,F||k),$=function(W,K,nt){for(var ht,J=[],bt=K[K.length-1],at=K[0];W.nodeCount();){for(;ht=at.dequeue();)M(W,K,nt,ht);for(;ht=bt.dequeue();)M(W,K,nt,ht);if(W.nodeCount()){for(var st=K.length-2;st>0;--st)if(ht=K[st].dequeue()){J=J.concat(M(W,K,nt,ht,!0));break}}}return J}(P.graph,P.buckets,P.zeroIdx);return b.flatten(b.map($,function(W){return L.outEdges(W.v,W.w)}),!0)};var k=b.constant(1);function M(L,F,P,$,W){var K=W?[]:void 0;return b.forEach(L.inEdges($.v),function(nt){var ht=L.edge(nt),J=L.node(nt.v);W&&K.push({v:nt.v,w:nt.w}),J.out-=ht,O(F,P,J)}),b.forEach(L.outEdges($.v),function(nt){var ht=L.edge(nt),J=nt.w,bt=L.node(J);bt.in-=ht,O(F,P,bt)}),L.removeNode($.v),K}function O(L,F,P){P.out?P.in?L[P.out-P.in+F].enqueue(P):L[L.length-1].enqueue(P):L[0].enqueue(P)}},8123:(p,T,f)=>{var b=f(8436),g=f(2188),E=f(5995),k=f(8093),M=f(1138).normalizeRanks,O=f(4219),L=f(1138).removeEmptyRanks,F=f(2981),P=f(1133),$=f(3258),W=f(3408),K=f(7873),nt=f(1138),ht=f(574).Graph;p.exports=function(ft,rt){var dt=rt&&rt.debugTiming?nt.time:nt.notime;dt("layout",function(){var G=dt(" buildLayoutGraph",function(){return function(Lt){var V=new ht({multigraph:!0,compound:!0}),Rt=kt(Lt.graph());return V.setGraph(b.merge({},bt,Bt(Rt,J),b.pick(Rt,at))),b.forEach(Lt.nodes(),function(Yt){var Gt=kt(Lt.node(Yt));V.setNode(Yt,b.defaults(Bt(Gt,st),St)),V.setParent(Yt,Lt.parent(Yt))}),b.forEach(Lt.edges(),function(Yt){var Gt=kt(Lt.edge(Yt));V.setEdge(Yt,b.merge({},Nt,Bt(Gt,qt),b.pick(Gt,yt)))}),V}(ft)});dt(" runLayout",function(){(function(Lt,V){V(" makeSpaceForEdgeLabels",function(){(function(Rt){var Yt=Rt.graph();Yt.ranksep/=2,b.forEach(Rt.edges(),function(Gt){var ye=Rt.edge(Gt);ye.minlen*=2,ye.labelpos.toLowerCase()!=="c"&&(Yt.rankdir==="TB"||Yt.rankdir==="BT"?ye.width+=ye.labeloffset:ye.height+=ye.labeloffset)})})(Lt)}),V(" removeSelfEdges",function(){(function(Rt){b.forEach(Rt.edges(),function(Yt){if(Yt.v===Yt.w){var Gt=Rt.node(Yt.v);Gt.selfEdges||(Gt.selfEdges=[]),Gt.selfEdges.push({e:Yt,label:Rt.edge(Yt)}),Rt.removeEdge(Yt)}})})(Lt)}),V(" acyclic",function(){g.run(Lt)}),V(" nestingGraph.run",function(){F.run(Lt)}),V(" rank",function(){k(nt.asNonCompoundGraph(Lt))}),V(" injectEdgeLabelProxies",function(){(function(Rt){b.forEach(Rt.edges(),function(Yt){var Gt=Rt.edge(Yt);if(Gt.width&&Gt.height){var ye=Rt.node(Yt.v),qe={rank:(Rt.node(Yt.w).rank-ye.rank)/2+ye.rank,e:Yt};nt.addDummyNode(Rt,"edge-proxy",qe,"_ep")}})})(Lt)}),V(" removeEmptyRanks",function(){L(Lt)}),V(" nestingGraph.cleanup",function(){F.cleanup(Lt)}),V(" normalizeRanks",function(){M(Lt)}),V(" assignRankMinMax",function(){(function(Rt){var Yt=0;b.forEach(Rt.nodes(),function(Gt){var ye=Rt.node(Gt);ye.borderTop&&(ye.minRank=Rt.node(ye.borderTop).rank,ye.maxRank=Rt.node(ye.borderBottom).rank,Yt=b.max(Yt,ye.maxRank))}),Rt.graph().maxRank=Yt})(Lt)}),V(" removeEdgeLabelProxies",function(){(function(Rt){b.forEach(Rt.nodes(),function(Yt){var Gt=Rt.node(Yt);Gt.dummy==="edge-proxy"&&(Rt.edge(Gt.e).labelRank=Gt.rank,Rt.removeNode(Yt))})})(Lt)}),V(" normalize.run",function(){E.run(Lt)}),V(" parentDummyChains",function(){O(Lt)}),V(" addBorderSegments",function(){P(Lt)}),V(" order",function(){W(Lt)}),V(" insertSelfEdges",function(){(function(Rt){var Yt=nt.buildLayerMatrix(Rt);b.forEach(Yt,function(Gt){var ye=0;b.forEach(Gt,function(qe,xe){var he=Rt.node(qe);he.order=xe+ye,b.forEach(he.selfEdges,function(me){nt.addDummyNode(Rt,"selfedge",{width:me.label.width,height:me.label.height,rank:he.rank,order:xe+ ++ye,e:me.e,label:me.label},"_se")}),delete he.selfEdges})})})(Lt)}),V(" adjustCoordinateSystem",function(){$.adjust(Lt)}),V(" position",function(){K(Lt)}),V(" positionSelfEdges",function(){(function(Rt){b.forEach(Rt.nodes(),function(Yt){var Gt=Rt.node(Yt);if(Gt.dummy==="selfedge"){var ye=Rt.node(Gt.e.v),qe=ye.x+ye.width/2,xe=ye.y,he=Gt.x-qe,me=ye.height/2;Rt.setEdge(Gt.e,Gt.label),Rt.removeNode(Yt),Gt.label.points=[{x:qe+2*he/3,y:xe-me},{x:qe+5*he/6,y:xe-me},{x:qe+he,y:xe},{x:qe+5*he/6,y:xe+me},{x:qe+2*he/3,y:xe+me}],Gt.label.x=Gt.x,Gt.label.y=Gt.y}})})(Lt)}),V(" removeBorderNodes",function(){(function(Rt){b.forEach(Rt.nodes(),function(Yt){if(Rt.children(Yt).length){var Gt=Rt.node(Yt),ye=Rt.node(Gt.borderTop),qe=Rt.node(Gt.borderBottom),xe=Rt.node(b.last(Gt.borderLeft)),he=Rt.node(b.last(Gt.borderRight));Gt.width=Math.abs(he.x-xe.x),Gt.height=Math.abs(qe.y-ye.y),Gt.x=xe.x+Gt.width/2,Gt.y=ye.y+Gt.height/2}}),b.forEach(Rt.nodes(),function(Yt){Rt.node(Yt).dummy==="border"&&Rt.removeNode(Yt)})})(Lt)}),V(" normalize.undo",function(){E.undo(Lt)}),V(" fixupEdgeLabelCoords",function(){(function(Rt){b.forEach(Rt.edges(),function(Yt){var Gt=Rt.edge(Yt);if(b.has(Gt,"x"))switch(Gt.labelpos!=="l"&&Gt.labelpos!=="r"||(Gt.width-=Gt.labeloffset),Gt.labelpos){case"l":Gt.x-=Gt.width/2+Gt.labeloffset;break;case"r":Gt.x+=Gt.width/2+Gt.labeloffset}})})(Lt)}),V(" undoCoordinateSystem",function(){$.undo(Lt)}),V(" translateGraph",function(){(function(Rt){var Yt=Number.POSITIVE_INFINITY,Gt=0,ye=Number.POSITIVE_INFINITY,qe=0,xe=Rt.graph(),he=xe.marginx||0,me=xe.marginy||0;function Ie(Le){var ve=Le.x,kn=Le.y,be=Le.width,Ge=Le.height;Yt=Math.min(Yt,ve-be/2),Gt=Math.max(Gt,ve+be/2),ye=Math.min(ye,kn-Ge/2),qe=Math.max(qe,kn+Ge/2)}b.forEach(Rt.nodes(),function(Le){Ie(Rt.node(Le))}),b.forEach(Rt.edges(),function(Le){var ve=Rt.edge(Le);b.has(ve,"x")&&Ie(ve)}),Yt-=he,ye-=me,b.forEach(Rt.nodes(),function(Le){var ve=Rt.node(Le);ve.x-=Yt,ve.y-=ye}),b.forEach(Rt.edges(),function(Le){var ve=Rt.edge(Le);b.forEach(ve.points,function(kn){kn.x-=Yt,kn.y-=ye}),b.has(ve,"x")&&(ve.x-=Yt),b.has(ve,"y")&&(ve.y-=ye)}),xe.width=Gt-Yt+he,xe.height=qe-ye+me})(Lt)}),V(" assignNodeIntersects",function(){(function(Rt){b.forEach(Rt.edges(),function(Yt){var Gt,ye,qe=Rt.edge(Yt),xe=Rt.node(Yt.v),he=Rt.node(Yt.w);qe.points?(Gt=qe.points[0],ye=qe.points[qe.points.length-1]):(qe.points=[],Gt=he,ye=xe),qe.points.unshift(nt.intersectRect(xe,Gt)),qe.points.push(nt.intersectRect(he,ye))})})(Lt)}),V(" reversePoints",function(){(function(Rt){b.forEach(Rt.edges(),function(Yt){var Gt=Rt.edge(Yt);Gt.reversed&&Gt.points.reverse()})})(Lt)}),V(" acyclic.undo",function(){g.undo(Lt)})})(G,dt)}),dt(" updateInputGraph",function(){(function(Lt,V){b.forEach(Lt.nodes(),function(Rt){var Yt=Lt.node(Rt),Gt=V.node(Rt);Yt&&(Yt.x=Gt.x,Yt.y=Gt.y,V.children(Rt).length&&(Yt.width=Gt.width,Yt.height=Gt.height))}),b.forEach(Lt.edges(),function(Rt){var Yt=Lt.edge(Rt),Gt=V.edge(Rt);Yt.points=Gt.points,b.has(Gt,"x")&&(Yt.x=Gt.x,Yt.y=Gt.y)}),Lt.graph().width=V.graph().width,Lt.graph().height=V.graph().height})(ft,G)})})};var J=["nodesep","edgesep","ranksep","marginx","marginy"],bt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},at=["acyclicer","ranker","rankdir","align"],st=["width","height"],St={width:0,height:0},qt=["minlen","weight","width","height","labeloffset"],Nt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},yt=["labelpos"];function Bt(ft,rt){return b.mapValues(b.pick(ft,rt),Number)}function kt(ft){var rt={};return b.forEach(ft,function(dt,G){rt[G.toLowerCase()]=dt}),rt}},8436:(p,T,f)=>{var b;try{b={cloneDeep:f(361),constant:f(5703),defaults:f(1747),each:f(6073),filter:f(3105),find:f(3311),flatten:f(5564),forEach:f(4486),forIn:f(2620),has:f(8721),isUndefined:f(2353),last:f(928),map:f(5161),mapValues:f(6604),max:f(6162),merge:f(3857),min:f(3632),minBy:f(2762),now:f(7771),pick:f(9722),range:f(6026),reduce:f(4061),sortBy:f(9734),uniqueId:f(3955),values:f(2628),zipObject:f(7287)}}catch{}b||(b=window._),p.exports=b},2981:(p,T,f)=>{var b=f(8436),g=f(1138);function E(k,M,O,L,F,P,$){var W=k.children($);if(W.length){var K=g.addBorderNode(k,"_bt"),nt=g.addBorderNode(k,"_bb"),ht=k.node($);k.setParent(K,$),ht.borderTop=K,k.setParent(nt,$),ht.borderBottom=nt,b.forEach(W,function(J){E(k,M,O,L,F,P,J);var bt=k.node(J),at=bt.borderTop?bt.borderTop:J,st=bt.borderBottom?bt.borderBottom:J,St=bt.borderTop?L:2*L,qt=at!==st?1:F-P[$]+1;k.setEdge(K,at,{weight:St,minlen:qt,nestingEdge:!0}),k.setEdge(st,nt,{weight:St,minlen:qt,nestingEdge:!0})}),k.parent($)||k.setEdge(M,K,{weight:0,minlen:F+P[$]})}else $!==M&&k.setEdge(M,$,{weight:0,minlen:O})}p.exports={run:function(k){var M=g.addDummyNode(k,"root",{},"_root"),O=function($){var W={};function K(nt,ht){var J=$.children(nt);J&&J.length&&b.forEach(J,function(bt){K(bt,ht+1)}),W[nt]=ht}return b.forEach($.children(),function(nt){K(nt,1)}),W}(k),L=b.max(b.values(O))-1,F=2*L+1;k.graph().nestingRoot=M,b.forEach(k.edges(),function($){k.edge($).minlen*=F});var P=function($){return b.reduce($.edges(),function(W,K){return W+$.edge(K).weight},0)}(k)+1;b.forEach(k.children(),function($){E(k,M,F,P,L,O,$)}),k.graph().nodeRankFactor=F},cleanup:function(k){var M=k.graph();k.removeNode(M.nestingRoot),delete M.nestingRoot,b.forEach(k.edges(),function(O){k.edge(O).nestingEdge&&k.removeEdge(O)})}}},5995:(p,T,f)=>{var b=f(8436),g=f(1138);p.exports={run:function(E){E.graph().dummyChains=[],b.forEach(E.edges(),function(k){(function(M,O){var L,F,P,$=O.v,W=M.node($).rank,K=O.w,nt=M.node(K).rank,ht=O.name,J=M.edge(O),bt=J.labelRank;if(nt!==W+1){for(M.removeEdge(O),P=0,++W;W{var b=f(8436);p.exports=function(g,E,k){var M,O={};b.forEach(k,function(L){for(var F,P,$=g.parent(L);$;){if((F=g.parent($))?(P=O[F],O[F]=$):(P=M,M=$),P&&P!==$)return void E.setEdge(P,$);$=F}})}},5439:(p,T,f)=>{var b=f(8436);p.exports=function(g,E){return b.map(E,function(k){var M=g.inEdges(k);if(M.length){var O=b.reduce(M,function(L,F){var P=g.edge(F),$=g.node(F.v);return{sum:L.sum+P.weight*$.order,weight:L.weight+P.weight}},{sum:0,weight:0});return{v:k,barycenter:O.sum/O.weight,weight:O.weight}}return{v:k}})}},3128:(p,T,f)=>{var b=f(8436),g=f(574).Graph;p.exports=function(E,k,M){var O=function(F){for(var P;F.hasNode(P=b.uniqueId("_root")););return P}(E),L=new g({compound:!0}).setGraph({root:O}).setDefaultNodeLabel(function(F){return E.node(F)});return b.forEach(E.nodes(),function(F){var P=E.node(F),$=E.parent(F);(P.rank===k||P.minRank<=k&&k<=P.maxRank)&&(L.setNode(F),L.setParent(F,$||O),b.forEach(E[M](F),function(W){var K=W.v===F?W.w:W.v,nt=L.edge(K,F),ht=b.isUndefined(nt)?0:nt.weight;L.setEdge(K,F,{weight:E.edge(W).weight+ht})}),b.has(P,"minRank")&&L.setNode(F,{borderLeft:P.borderLeft[k],borderRight:P.borderRight[k]}))}),L}},6630:(p,T,f)=>{var b=f(8436);function g(E,k,M){for(var O=b.zipObject(M,b.map(M,function(K,nt){return nt})),L=b.flatten(b.map(k,function(K){return b.sortBy(b.map(E.outEdges(K),function(nt){return{pos:O[nt.w],weight:E.edge(nt).weight}}),"pos")}),!0),F=1;F0;)nt%2&&(ht+=$[nt+1]),$[nt=nt-1>>1]+=K.weight;W+=K.weight*ht})),W}p.exports=function(E,k){for(var M=0,O=1;O{var b=f(8436),g=f(2588),E=f(6630),k=f(1026),M=f(3128),O=f(5093),L=f(574).Graph,F=f(1138);function P(K,nt,ht){return b.map(nt,function(J){return M(K,J,ht)})}function $(K,nt){var ht=new L;b.forEach(K,function(J){var bt=J.graph().root,at=k(J,bt,ht,nt);b.forEach(at.vs,function(st,St){J.node(st).order=St}),O(J,ht,at.vs)})}function W(K,nt){b.forEach(nt,function(ht){b.forEach(ht,function(J,bt){K.node(J).order=bt})})}p.exports=function(K){var nt=F.maxRank(K),ht=P(K,b.range(1,nt+1),"inEdges"),J=P(K,b.range(nt-1,-1,-1),"outEdges"),bt=g(K);W(K,bt);for(var at,st=Number.POSITIVE_INFINITY,St=0,qt=0;qt<4;++St,++qt){$(St%2?ht:J,St%4>=2),bt=F.buildLayerMatrix(K);var Nt=E(K,bt);Nt{var b=f(8436);p.exports=function(g){var E={},k=b.filter(g.nodes(),function(F){return!g.children(F).length}),M=b.max(b.map(k,function(F){return g.node(F).rank})),O=b.map(b.range(M+1),function(){return[]}),L=b.sortBy(k,function(F){return g.node(F).rank});return b.forEach(L,function F(P){if(!b.has(E,P)){E[P]=!0;var $=g.node(P);O[$.rank].push(P),b.forEach(g.successors(P),F)}}),O}},9567:(p,T,f)=>{var b=f(8436);p.exports=function(g,E){var k={};return b.forEach(g,function(M,O){var L=k[M.v]={indegree:0,in:[],out:[],vs:[M.v],i:O};b.isUndefined(M.barycenter)||(L.barycenter=M.barycenter,L.weight=M.weight)}),b.forEach(E.edges(),function(M){var O=k[M.v],L=k[M.w];b.isUndefined(O)||b.isUndefined(L)||(L.indegree++,O.out.push(k[M.w]))}),function(M){var O=[];function L($){return function(W){var K,nt,ht,J;W.merged||(b.isUndefined(W.barycenter)||b.isUndefined($.barycenter)||W.barycenter>=$.barycenter)&&(nt=W,ht=0,J=0,(K=$).weight&&(ht+=K.barycenter*K.weight,J+=K.weight),nt.weight&&(ht+=nt.barycenter*nt.weight,J+=nt.weight),K.vs=nt.vs.concat(K.vs),K.barycenter=ht/J,K.weight=J,K.i=Math.min(nt.i,K.i),nt.merged=!0)}}function F($){return function(W){W.in.push($),--W.indegree==0&&M.push(W)}}for(;M.length;){var P=M.pop();O.push(P),b.forEach(P.in.reverse(),L(P)),b.forEach(P.out,F(P))}return b.map(b.filter(O,function($){return!$.merged}),function($){return b.pick($,["vs","i","barycenter","weight"])})}(b.filter(k,function(M){return!M.indegree}))}},1026:(p,T,f)=>{var b=f(8436),g=f(5439),E=f(9567),k=f(7304);p.exports=function M(O,L,F,P){var $=O.children(L),W=O.node(L),K=W?W.borderLeft:void 0,nt=W?W.borderRight:void 0,ht={};K&&($=b.filter($,function(qt){return qt!==K&&qt!==nt}));var J=g(O,$);b.forEach(J,function(qt){if(O.children(qt.v).length){var Nt=M(O,qt.v,F,P);ht[qt.v]=Nt,b.has(Nt,"barycenter")&&(yt=qt,Bt=Nt,b.isUndefined(yt.barycenter)?(yt.barycenter=Bt.barycenter,yt.weight=Bt.weight):(yt.barycenter=(yt.barycenter*yt.weight+Bt.barycenter*Bt.weight)/(yt.weight+Bt.weight),yt.weight+=Bt.weight))}var yt,Bt});var bt=E(J,F);(function(qt,Nt){b.forEach(qt,function(yt){yt.vs=b.flatten(yt.vs.map(function(Bt){return Nt[Bt]?Nt[Bt].vs:Bt}),!0)})})(bt,ht);var at=k(bt,P);if(K&&(at.vs=b.flatten([K,at.vs,nt],!0),O.predecessors(K).length)){var st=O.node(O.predecessors(K)[0]),St=O.node(O.predecessors(nt)[0]);b.has(at,"barycenter")||(at.barycenter=0,at.weight=0),at.barycenter=(at.barycenter*at.weight+st.order+St.order)/(at.weight+2),at.weight+=2}return at}},7304:(p,T,f)=>{var b=f(8436),g=f(1138);function E(k,M,O){for(var L;M.length&&(L=b.last(M)).i<=O;)M.pop(),k.push(L.vs),O++;return O}p.exports=function(k,M){var O,L=g.partition(k,function(J){return b.has(J,"barycenter")}),F=L.lhs,P=b.sortBy(L.rhs,function(J){return-J.i}),$=[],W=0,K=0,nt=0;F.sort((O=!!M,function(J,bt){return J.barycenterbt.barycenter?1:O?bt.i-J.i:J.i-bt.i})),nt=E($,P,nt),b.forEach(F,function(J){nt+=J.vs.length,$.push(J.vs),W+=J.barycenter*J.weight,K+=J.weight,nt=E($,P,nt)});var ht={vs:b.flatten($,!0)};return K&&(ht.barycenter=W/K,ht.weight=K),ht}},4219:(p,T,f)=>{var b=f(8436);p.exports=function(g){var E=function(k){var M={},O=0;return b.forEach(k.children(),function L(F){var P=O;b.forEach(k.children(F),L),M[F]={low:P,lim:O++}}),M}(g);b.forEach(g.graph().dummyChains,function(k){for(var M=g.node(k),O=M.edgeObj,L=function(nt,ht,J,bt){var at,st,St=[],qt=[],Nt=Math.min(ht[J].low,ht[bt].low),yt=Math.max(ht[J].lim,ht[bt].lim);at=J;do at=nt.parent(at),St.push(at);while(at&&(ht[at].low>Nt||yt>ht[at].lim));for(st=at,at=bt;(at=nt.parent(at))!==st;)qt.push(at);return{path:St.concat(qt.reverse()),lca:st}}(g,E,O.v,O.w),F=L.path,P=L.lca,$=0,W=F[$],K=!0;k!==O.w;){if(M=g.node(k),K){for(;(W=F[$])!==P&&g.node(W).maxRank{var b=f(8436),g=f(574).Graph,E=f(1138);function k(nt,ht){var J={};return b.reduce(ht,function(bt,at){var st=0,St=0,qt=bt.length,Nt=b.last(at);return b.forEach(at,function(yt,Bt){var kt=function(rt,dt){if(rt.node(dt).dummy)return b.find(rt.predecessors(dt),function(G){return rt.node(G).dummy})}(nt,yt),ft=kt?nt.node(kt).order:qt;(kt||yt===Nt)&&(b.forEach(at.slice(St,Bt+1),function(rt){b.forEach(nt.predecessors(rt),function(dt){var G=nt.node(dt),Lt=G.order;!(LtNt)&&O(J,kt,yt)})})}return b.reduce(ht,function(at,st){var St,qt=-1,Nt=0;return b.forEach(st,function(yt,Bt){if(nt.node(yt).dummy==="border"){var kt=nt.predecessors(yt);kt.length&&(St=nt.node(kt[0]).order,bt(st,Nt,Bt,qt,St),Nt=Bt,qt=St)}bt(st,Nt,st.length,St,at.length)}),st}),J}function O(nt,ht,J){if(ht>J){var bt=ht;ht=J,J=bt}var at=nt[ht];at||(nt[ht]=at={}),at[J]=!0}function L(nt,ht,J){if(ht>J){var bt=ht;ht=J,J=bt}return b.has(nt[ht],J)}function F(nt,ht,J,bt){var at={},st={},St={};return b.forEach(ht,function(qt){b.forEach(qt,function(Nt,yt){at[Nt]=Nt,st[Nt]=Nt,St[Nt]=yt})}),b.forEach(ht,function(qt){var Nt=-1;b.forEach(qt,function(yt){var Bt=bt(yt);if(Bt.length){Bt=b.sortBy(Bt,function(G){return St[G]});for(var kt=(Bt.length-1)/2,ft=Math.floor(kt),rt=Math.ceil(kt);ft<=rt;++ft){var dt=Bt[ft];st[yt]===yt&&Nt{var b=f(8436),g=f(1138),E=f(3573).positionX;p.exports=function(k){(function(M){var O=g.buildLayerMatrix(M),L=M.graph().ranksep,F=0;b.forEach(O,function(P){var $=b.max(b.map(P,function(W){return M.node(W).height}));b.forEach(P,function(W){M.node(W).y=F+$/2}),F+=$+L})})(k=g.asNonCompoundGraph(k)),b.forEach(E(k),function(M,O){k.node(O).x=M})}},300:(p,T,f)=>{var b=f(8436),g=f(574).Graph,E=f(6681).slack;function k(L,F){return b.forEach(L.nodes(),function P($){b.forEach(F.nodeEdges($),function(W){var K=W.v,nt=$===K?W.w:K;L.hasNode(nt)||E(F,W)||(L.setNode(nt,{}),L.setEdge($,nt,{}),P(nt))})}),L.nodeCount()}function M(L,F){return b.minBy(F.edges(),function(P){if(L.hasNode(P.v)!==L.hasNode(P.w))return E(F,P)})}function O(L,F,P){b.forEach(L.nodes(),function($){F.node($).rank+=P})}p.exports=function(L){var F,P,$=new g({directed:!1}),W=L.nodes()[0],K=L.nodeCount();for($.setNode(W,{});k($,L){var b=f(6681).longestPath,g=f(300),E=f(2472);p.exports=function(M){switch(M.graph().ranker){case"network-simplex":default:(function(O){E(O)})(M);break;case"tight-tree":(function(O){b(O),g(O)})(M);break;case"longest-path":k(M)}};var k=b},2472:(p,T,f)=>{var b=f(8436),g=f(300),E=f(6681).slack,k=f(6681).longestPath,M=f(574).alg.preorder,O=f(574).alg.postorder,L=f(1138).simplify;function F(at){at=L(at),k(at);var st,St=g(at);for(W(St),P(St,at);st=nt(St);)J(St,at,st,ht(St,at,st))}function P(at,st){var St=O(at,at.nodes());St=St.slice(0,St.length-1),b.forEach(St,function(qt){(function(Nt,yt,Bt){var kt=Nt.node(Bt).parent;Nt.edge(Bt,kt).cutvalue=$(Nt,yt,Bt)})(at,st,qt)})}function $(at,st,St){var qt=at.node(St).parent,Nt=!0,yt=st.edge(St,qt),Bt=0;return yt||(Nt=!1,yt=st.edge(qt,St)),Bt=yt.weight,b.forEach(st.nodeEdges(St),function(kt){var ft,rt,dt=kt.v===St,G=dt?kt.w:kt.v;if(G!==qt){var Lt=dt===Nt,V=st.edge(kt).weight;if(Bt+=Lt?V:-V,ft=St,rt=G,at.hasEdge(ft,rt)){var Rt=at.edge(St,G).cutvalue;Bt+=Lt?-Rt:Rt}}}),Bt}function W(at,st){arguments.length<2&&(st=at.nodes()[0]),K(at,{},1,st)}function K(at,st,St,qt,Nt){var yt=St,Bt=at.node(qt);return st[qt]=!0,b.forEach(at.neighbors(qt),function(kt){b.has(st,kt)||(St=K(at,st,St,kt,qt))}),Bt.low=yt,Bt.lim=St++,Nt?Bt.parent=Nt:delete Bt.parent,St}function nt(at){return b.find(at.edges(),function(st){return at.edge(st).cutvalue<0})}function ht(at,st,St){var qt=St.v,Nt=St.w;st.hasEdge(qt,Nt)||(qt=St.w,Nt=St.v);var yt=at.node(qt),Bt=at.node(Nt),kt=yt,ft=!1;yt.lim>Bt.lim&&(kt=Bt,ft=!0);var rt=b.filter(st.edges(),function(dt){return ft===bt(0,at.node(dt.v),kt)&&ft!==bt(0,at.node(dt.w),kt)});return b.minBy(rt,function(dt){return E(st,dt)})}function J(at,st,St,qt){var Nt=St.v,yt=St.w;at.removeEdge(Nt,yt),at.setEdge(qt.v,qt.w,{}),W(at),P(at,st),function(Bt,kt){var ft=b.find(Bt.nodes(),function(dt){return!kt.node(dt).parent}),rt=M(Bt,ft);rt=rt.slice(1),b.forEach(rt,function(dt){var G=Bt.node(dt).parent,Lt=kt.edge(dt,G),V=!1;Lt||(Lt=kt.edge(G,dt),V=!0),kt.node(dt).rank=kt.node(G).rank+(V?Lt.minlen:-Lt.minlen)})}(at,st)}function bt(at,st,St){return St.low<=st.lim&&st.lim<=St.lim}p.exports=F,F.initLowLimValues=W,F.initCutValues=P,F.calcCutValue=$,F.leaveEdge=nt,F.enterEdge=ht,F.exchangeEdges=J},6681:(p,T,f)=>{var b=f(8436);p.exports={longestPath:function(g){var E={};b.forEach(g.sources(),function k(M){var O=g.node(M);if(b.has(E,M))return O.rank;E[M]=!0;var L=b.min(b.map(g.outEdges(M),function(F){return k(F.w)-g.edge(F).minlen}));return L!==Number.POSITIVE_INFINITY&&L!=null||(L=0),O.rank=L})},slack:function(g,E){return g.node(E.w).rank-g.node(E.v).rank-g.edge(E).minlen}}},1138:(p,T,f)=>{var b=f(8436),g=f(574).Graph;function E(M,O,L,F){var P;do P=b.uniqueId(F);while(M.hasNode(P));return L.dummy=O,M.setNode(P,L),P}function k(M){return b.max(b.map(M.nodes(),function(O){var L=M.node(O).rank;if(!b.isUndefined(L))return L}))}p.exports={addDummyNode:E,simplify:function(M){var O=new g().setGraph(M.graph());return b.forEach(M.nodes(),function(L){O.setNode(L,M.node(L))}),b.forEach(M.edges(),function(L){var F=O.edge(L.v,L.w)||{weight:0,minlen:1},P=M.edge(L);O.setEdge(L.v,L.w,{weight:F.weight+P.weight,minlen:Math.max(F.minlen,P.minlen)})}),O},asNonCompoundGraph:function(M){var O=new g({multigraph:M.isMultigraph()}).setGraph(M.graph());return b.forEach(M.nodes(),function(L){M.children(L).length||O.setNode(L,M.node(L))}),b.forEach(M.edges(),function(L){O.setEdge(L,M.edge(L))}),O},successorWeights:function(M){var O=b.map(M.nodes(),function(L){var F={};return b.forEach(M.outEdges(L),function(P){F[P.w]=(F[P.w]||0)+M.edge(P).weight}),F});return b.zipObject(M.nodes(),O)},predecessorWeights:function(M){var O=b.map(M.nodes(),function(L){var F={};return b.forEach(M.inEdges(L),function(P){F[P.v]=(F[P.v]||0)+M.edge(P).weight}),F});return b.zipObject(M.nodes(),O)},intersectRect:function(M,O){var L,F,P=M.x,$=M.y,W=O.x-P,K=O.y-$,nt=M.width/2,ht=M.height/2;if(!W&&!K)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(K)*nt>Math.abs(W)*ht?(K<0&&(ht=-ht),L=ht*W/K,F=ht):(W<0&&(nt=-nt),L=nt,F=nt*K/W),{x:P+L,y:$+F}},buildLayerMatrix:function(M){var O=b.map(b.range(k(M)+1),function(){return[]});return b.forEach(M.nodes(),function(L){var F=M.node(L),P=F.rank;b.isUndefined(P)||(O[P][F.order]=L)}),O},normalizeRanks:function(M){var O=b.min(b.map(M.nodes(),function(L){return M.node(L).rank}));b.forEach(M.nodes(),function(L){var F=M.node(L);b.has(F,"rank")&&(F.rank-=O)})},removeEmptyRanks:function(M){var O=b.min(b.map(M.nodes(),function($){return M.node($).rank})),L=[];b.forEach(M.nodes(),function($){var W=M.node($).rank-O;L[W]||(L[W]=[]),L[W].push($)});var F=0,P=M.graph().nodeRankFactor;b.forEach(L,function($,W){b.isUndefined($)&&W%P!=0?--F:F&&b.forEach($,function(K){M.node(K).rank+=F})})},addBorderNode:function(M,O,L,F){var P={width:0,height:0};return arguments.length>=4&&(P.rank=L,P.order=F),E(M,"border",P,O)},maxRank:k,partition:function(M,O){var L={lhs:[],rhs:[]};return b.forEach(M,function(F){O(F)?L.lhs.push(F):L.rhs.push(F)}),L},time:function(M,O){var L=b.now();try{return O()}finally{console.log(M+" time: "+(b.now()-L)+"ms")}},notime:function(M,O){return O()}}},8177:p=>{p.exports="0.8.5"},7856:function(p){p.exports=function(){function T(lt){return T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ae){return typeof Ae}:function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},T(lt)}function f(lt,Ae){return f=Object.setPrototypeOf||function(ae,we){return ae.__proto__=we,ae},f(lt,Ae)}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g(lt,Ae,ae){return g=b()?Reflect.construct:function(we,Ye,Pe){var ln=[null];ln.push.apply(ln,Ye);var De=new(Function.bind.apply(we,ln));return Pe&&f(De,Pe.prototype),De},g.apply(null,arguments)}function E(lt){return function(Ae){if(Array.isArray(Ae))return k(Ae)}(lt)||function(Ae){if(typeof Symbol!="undefined"&&Ae[Symbol.iterator]!=null||Ae["@@iterator"]!=null)return Array.from(Ae)}(lt)||function(Ae,ae){if(Ae){if(typeof Ae=="string")return k(Ae,ae);var we=Object.prototype.toString.call(Ae).slice(8,-1);return we==="Object"&&Ae.constructor&&(we=Ae.constructor.name),we==="Map"||we==="Set"?Array.from(Ae):we==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(we)?k(Ae,ae):void 0}}(lt)||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 k(lt,Ae){(Ae==null||Ae>lt.length)&&(Ae=lt.length);for(var ae=0,we=new Array(Ae);ae1?ae-1:0),Ye=1;Ye/gm),Ge=W(/^data-[\-\w.\u00B7-\uFFFF]/),$t=W(/^aria-[\-\w]+$/),fe=W(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oe=W(/^(?:\w+script|data):/i),Ft=W(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Me=W(/^html$/i),et=function(){return typeof window=="undefined"?null:window},Ne=function(lt,Ae){if(T(lt)!=="object"||typeof lt.createPolicy!="function")return null;var ae=null,we="data-tt-policy-suffix";Ae.currentScript&&Ae.currentScript.hasAttribute(we)&&(ae=Ae.currentScript.getAttribute(we));var Ye="dompurify"+(ae?"#"+ae:"");try{return lt.createPolicy(Ye,{createHTML:function(Pe){return Pe}})}catch{return console.warn("TrustedTypes policy "+Ye+" could not be created."),null}};return function lt(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:et(),ae=function(Kt){return lt(Kt)};if(ae.version="2.3.8",ae.removed=[],!Ae||!Ae.document||Ae.document.nodeType!==9)return ae.isSupported=!1,ae;var we=Ae.document,Ye=Ae.document,Pe=Ae.DocumentFragment,ln=Ae.HTMLTemplateElement,De=Ae.Node,Ke=Ae.Element,rn=Ae.NodeFilter,on=Ae.NamedNodeMap,Oe=on===void 0?Ae.NamedNodeMap||Ae.MozNamedAttrMap:on,dn=Ae.HTMLFormElement,mn=Ae.DOMParser,We=Ae.trustedTypes,$e=Ke.prototype,Ue=V($e,"cloneNode"),Qe=V($e,"nextSibling"),qn=V($e,"childNodes"),zt=V($e,"parentNode");if(typeof ln=="function"){var Dn=Ye.createElement("template");Dn.content&&Dn.content.ownerDocument&&(Ye=Dn.content.ownerDocument)}var Ht=Ne(We,we),gn=Ht?Ht.createHTML(""):"",In=Ye,un=In.implementation,Gn=In.createNodeIterator,er=In.createDocumentFragment,$r=In.getElementsByTagName,An=we.importNode,jn={};try{jn=Lt(Ye).documentMode?Ye.documentMode:{}}catch{}var Pn={};ae.isSupported=typeof zt=="function"&&un&&un.createHTMLDocument!==void 0&&jn!==9;var On,zn,$n=kn,Cn=be,Vn=Ge,Tn=$t,Nn=oe,Zn=Ft,ua=fe,yr=null,Ci=G({},[].concat(E(Rt),E(Yt),E(Gt),E(qe),E(he))),_n=null,xi=G({},[].concat(E(me),E(Ie),E(Le),E(ve))),kr=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}})),br=null,li=null,ai=!0,gi=!0,ti=!1,yi=!1,ei=!1,mr=!1,ni=!1,ui=!1,hi=!1,wi=!1,io=!0,Cr=!0,Ia=!1,ha={},ji=null,vn=G({},["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"]),nr=null,Re=G({},["audio","video","img","source","image","track"]),Ve=null,Er=G({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vt="http://www.w3.org/1998/Math/MathML",ka="http://www.w3.org/2000/svg",re="http://www.w3.org/1999/xhtml",ri=re,Io=!1,Fs=["application/xhtml+xml","text/html"],bc="text/html",Ea=null,Xn=Ye.createElement("form"),jr=function(Kt){return Kt instanceof RegExp||Kt instanceof Function},Mi=function(Kt){Ea&&Ea===Kt||(Kt&&T(Kt)==="object"||(Kt={}),Kt=Lt(Kt),yr="ALLOWED_TAGS"in Kt?G({},Kt.ALLOWED_TAGS):Ci,_n="ALLOWED_ATTR"in Kt?G({},Kt.ALLOWED_ATTR):xi,Ve="ADD_URI_SAFE_ATTR"in Kt?G(Lt(Er),Kt.ADD_URI_SAFE_ATTR):Er,nr="ADD_DATA_URI_TAGS"in Kt?G(Lt(Re),Kt.ADD_DATA_URI_TAGS):Re,ji="FORBID_CONTENTS"in Kt?G({},Kt.FORBID_CONTENTS):vn,br="FORBID_TAGS"in Kt?G({},Kt.FORBID_TAGS):{},li="FORBID_ATTR"in Kt?G({},Kt.FORBID_ATTR):{},ha="USE_PROFILES"in Kt&&Kt.USE_PROFILES,ai=Kt.ALLOW_ARIA_ATTR!==!1,gi=Kt.ALLOW_DATA_ATTR!==!1,ti=Kt.ALLOW_UNKNOWN_PROTOCOLS||!1,yi=Kt.SAFE_FOR_TEMPLATES||!1,ei=Kt.WHOLE_DOCUMENT||!1,ui=Kt.RETURN_DOM||!1,hi=Kt.RETURN_DOM_FRAGMENT||!1,wi=Kt.RETURN_TRUSTED_TYPE||!1,ni=Kt.FORCE_BODY||!1,io=Kt.SANITIZE_DOM!==!1,Cr=Kt.KEEP_CONTENT!==!1,Ia=Kt.IN_PLACE||!1,ua=Kt.ALLOWED_URI_REGEXP||ua,ri=Kt.NAMESPACE||re,Kt.CUSTOM_ELEMENT_HANDLING&&jr(Kt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(kr.tagNameCheck=Kt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Kt.CUSTOM_ELEMENT_HANDLING&&jr(Kt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(kr.attributeNameCheck=Kt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Kt.CUSTOM_ELEMENT_HANDLING&&typeof Kt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(kr.allowCustomizedBuiltInElements=Kt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),On=On=Fs.indexOf(Kt.PARSER_MEDIA_TYPE)===-1?bc:Kt.PARSER_MEDIA_TYPE,zn=On==="application/xhtml+xml"?function(pn){return pn}:qt,yi&&(gi=!1),hi&&(ui=!0),ha&&(yr=G({},E(he)),_n=[],ha.html===!0&&(G(yr,Rt),G(_n,me)),ha.svg===!0&&(G(yr,Yt),G(_n,Ie),G(_n,ve)),ha.svgFilters===!0&&(G(yr,Gt),G(_n,Ie),G(_n,ve)),ha.mathMl===!0&&(G(yr,qe),G(_n,Le),G(_n,ve))),Kt.ADD_TAGS&&(yr===Ci&&(yr=Lt(yr)),G(yr,Kt.ADD_TAGS)),Kt.ADD_ATTR&&(_n===xi&&(_n=Lt(_n)),G(_n,Kt.ADD_ATTR)),Kt.ADD_URI_SAFE_ATTR&&G(Ve,Kt.ADD_URI_SAFE_ATTR),Kt.FORBID_CONTENTS&&(ji===vn&&(ji=Lt(ji)),G(ji,Kt.FORBID_CONTENTS)),Cr&&(yr["#text"]=!0),ei&&G(yr,["html","head","body"]),yr.table&&(G(yr,["tbody"]),delete br.tbody),$&&$(Kt),Ea=Kt)},Hr=G({},["mi","mo","mn","ms","mtext"]),Ri=G({},["foreignobject","desc","title","annotation-xml"]),Ji=G({},["title","style","font","a","script"]),Bi=G({},Yt);G(Bi,Gt),G(Bi,ye);var Or=G({},qe);G(Or,xe);var fi=function(Kt){var pn=zt(Kt);pn&&pn.tagName||(pn={namespaceURI:re,tagName:"template"});var en=qt(Kt.tagName),rr=qt(pn.tagName);return Kt.namespaceURI===ka?pn.namespaceURI===re?en==="svg":pn.namespaceURI===Vt?en==="svg"&&(rr==="annotation-xml"||Hr[rr]):Boolean(Bi[en]):Kt.namespaceURI===Vt?pn.namespaceURI===re?en==="math":pn.namespaceURI===ka?en==="math"&&Ri[rr]:Boolean(Or[en]):Kt.namespaceURI===re&&!(pn.namespaceURI===ka&&!Ri[rr])&&!(pn.namespaceURI===Vt&&!Hr[rr])&&!Or[en]&&(Ji[en]||!Bi[en])},oi=function(Kt){St(ae.removed,{element:Kt});try{Kt.parentNode.removeChild(Kt)}catch{try{Kt.outerHTML=gn}catch{Kt.remove()}}},qr=function(Kt,pn){try{St(ae.removed,{attribute:pn.getAttributeNode(Kt),from:pn})}catch{St(ae.removed,{attribute:null,from:pn})}if(pn.removeAttribute(Kt),Kt==="is"&&!_n[Kt])if(ui||hi)try{oi(pn)}catch{}else try{pn.setAttribute(Kt,"")}catch{}},fa=function(Kt){var pn,en;if(ni)Kt=""+Kt;else{var rr=Nt(Kt,/^[\r\n\t ]+/);en=rr&&rr[0]}On==="application/xhtml+xml"&&(Kt=''+Kt+"");var Wr=Ht?Ht.createHTML(Kt):Kt;if(ri===re)try{pn=new mn().parseFromString(Wr,On)}catch{}if(!pn||!pn.documentElement){pn=un.createDocument(ri,"template",null);try{pn.documentElement.innerHTML=Io?"":Wr}catch{}}var Gr=pn.body||pn.documentElement;return Kt&&en&&Gr.insertBefore(Ye.createTextNode(en),Gr.childNodes[0]||null),ri===re?$r.call(pn,ei?"html":"body")[0]:ei?pn.documentElement:Gr},Qi=function(Kt){return Gn.call(Kt.ownerDocument||Kt,Kt,rn.SHOW_ELEMENT|rn.SHOW_COMMENT|rn.SHOW_TEXT,null,!1)},Ni=function(Kt){return Kt instanceof dn&&(typeof Kt.nodeName!="string"||typeof Kt.textContent!="string"||typeof Kt.removeChild!="function"||!(Kt.attributes instanceof Oe)||typeof Kt.removeAttribute!="function"||typeof Kt.setAttribute!="function"||typeof Kt.namespaceURI!="string"||typeof Kt.insertBefore!="function")},Ta=function(Kt){return T(De)==="object"?Kt instanceof De:Kt&&T(Kt)==="object"&&typeof Kt.nodeType=="number"&&typeof Kt.nodeName=="string"},Jr=function(Kt,pn,en){Pn[Kt]&&at(Pn[Kt],function(rr){rr.call(ae,pn,en,Ea)})},di=function(Kt){var pn;if(Jr("beforeSanitizeElements",Kt,null),Ni(Kt)||ft(/[\u0080-\uFFFF]/,Kt.nodeName))return oi(Kt),!0;var en=zn(Kt.nodeName);if(Jr("uponSanitizeElement",Kt,{tagName:en,allowedTags:yr}),Kt.hasChildNodes()&&!Ta(Kt.firstElementChild)&&(!Ta(Kt.content)||!Ta(Kt.content.firstElementChild))&&ft(/<[/\w]/g,Kt.innerHTML)&&ft(/<[/\w]/g,Kt.textContent)||en==="select"&&ft(/