1263 lines
1.3 MiB
Plaintext
1263 lines
1.3 MiB
Plaintext
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;Yt<Gt;Yt++)Rt+=arguments[Yt].length;var ye=Array(Rt),qe=0;for(Yt=0;Yt<Gt;Yt++)for(var xe=arguments[Yt],he=0,me=xe.length;he<me;he++,qe++)ye[qe]=xe[he];return ye};Object.defineProperty(T,"__esModule",{value:!0}),T.TO_STRING_FIELD=T.TIMESTAMP_FIELD=T.OPTIONS_FIELD=T.CLASS_NAME_FIELD=T.BOOLEAN_FIELD=T.ARRAY_FIELD=T.BUILTIN_TYPE_UNDEFINED=T.BUILTIN_TYPE_NOT_FINITE=T.BUILTIN_TYPE_BIG_INT=T.BUILTIN_CLASS_AGGREGATE_ERROR=T.BUILTIN_CLASS_URI_ERROR=T.BUILTIN_CLASS_TYPE_ERROR=T.BUILTIN_CLASS_SYNTAX_ERROR=T.BUILTIN_CLASS_REFERENCE_ERROR=T.BUILTIN_CLASS_RANGE_ERROR=T.BUILTIN_CLASS_EVAL_ERROR=T.BUILTIN_CLASS_ERROR=T.BUILTIN_CLASS_STRING=T.BUILTIN_CLASS_SET=T.BUILTIN_CLASS_REGEXP=T.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT=T.BUILTIN_CLASS_INTL_PLURALRULES=T.BUILTIN_CLASS_INTL_NUMBERFORMAT=T.BUILTIN_CLASS_INTL_LOCALE=T.BUILTIN_CLASS_INTL_LISTFORMAT=T.BUILTIN_CLASS_INTL_DATETIMEFORMAT=T.BUILTIN_CLASS_INTL_COLLATOR=T.BUILTIN_CLASS_DATE=T.BUILTIN_CLASS_DATAVIEW=T.BUILTIN_CLASS_BOOLEAN=T.BUILTIN_CLASS_SHAREDARRAYBUFFER=T.BUILTIN_CLASS_ARRAYBUFFER=T.BUILTIN_CLASS_BIGUINT64ARRAY=T.BUILTIN_CLASS_BIGINT64ARRAY=T.BUILTIN_CLASS_FLOAT64ARRAY=T.BUILTIN_CLASS_FLOAT32ARRAY=T.BUILTIN_CLASS_UINT32ARRAY=T.BUILTIN_CLASS_INT32ARRAY=T.BUILTIN_CLASS_UINT16ARRAY=T.BUILTIN_CLASS_INT16ARRAY=T.BUILTIN_CLASS_UINT8CLAMPEDARRAY=T.BUILTIN_CLASS_UINT8ARRAY=T.BUILTIN_CLASS_INT8ARRAY=T.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED=T.ALL_BUILTIN_INTLS=T.ALL_BUILTIN_ERRORS=T.ALL_BUILTIN_ARRAYS=T.ESSERIALIZER_NULL=void 0,T.ESSERIALIZER_NULL="__ESSERIALIZER_NULL__",T.ARRAY_FIELD="ess_arr",T.BOOLEAN_FIELD="ess_bool",T.CLASS_NAME_FIELD="ess_cn",T.OPTIONS_FIELD="ess_opt",T.TIMESTAMP_FIELD="ess_ts",T.TO_STRING_FIELD="ess_str";var b="Int8Array";T.BUILTIN_CLASS_INT8ARRAY=b;var g="Uint8Array";T.BUILTIN_CLASS_UINT8ARRAY=g;var E="Uint8ClampedArray";T.BUILTIN_CLASS_UINT8CLAMPEDARRAY=E;var k="Int16Array";T.BUILTIN_CLASS_INT16ARRAY=k;var M="Uint16Array";T.BUILTIN_CLASS_UINT16ARRAY=M;var O="Int32Array";T.BUILTIN_CLASS_INT32ARRAY=O;var L="Uint32Array";T.BUILTIN_CLASS_UINT32ARRAY=L;var F="Float32Array";T.BUILTIN_CLASS_FLOAT32ARRAY=F;var P="Float64Array";T.BUILTIN_CLASS_FLOAT64ARRAY=P;var $="BigInt64Array";T.BUILTIN_CLASS_BIGINT64ARRAY=$;var W="BigUint64Array";T.BUILTIN_CLASS_BIGUINT64ARRAY=W,T.BUILTIN_CLASS_ARRAYBUFFER="ArrayBuffer",T.BUILTIN_CLASS_SHAREDARRAYBUFFER="SharedArrayBuffer",T.BUILTIN_CLASS_BOOLEAN="Boolean",T.BUILTIN_CLASS_DATAVIEW="DataView",T.BUILTIN_CLASS_DATE="Date";var K="Collator";T.BUILTIN_CLASS_INTL_COLLATOR=K;var nt="DateTimeFormat";T.BUILTIN_CLASS_INTL_DATETIMEFORMAT=nt;var ht="ListFormat";T.BUILTIN_CLASS_INTL_LISTFORMAT=ht,T.BUILTIN_CLASS_INTL_LOCALE="Locale";var J="NumberFormat";T.BUILTIN_CLASS_INTL_NUMBERFORMAT=J;var bt="PluralRules";T.BUILTIN_CLASS_INTL_PLURALRULES=bt;var at="RelativeTimeFormat";T.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT=at,T.BUILTIN_CLASS_REGEXP="RegExp",T.BUILTIN_CLASS_SET="Set";var st="String";T.BUILTIN_CLASS_STRING=st;var St="Error";T.BUILTIN_CLASS_ERROR=St;var qt="EvalError";T.BUILTIN_CLASS_EVAL_ERROR=qt;var Nt="RangeError";T.BUILTIN_CLASS_RANGE_ERROR=Nt;var yt="ReferenceError";T.BUILTIN_CLASS_REFERENCE_ERROR=yt;var Bt="SyntaxError";T.BUILTIN_CLASS_SYNTAX_ERROR=Bt;var kt="TypeError";T.BUILTIN_CLASS_TYPE_ERROR=kt;var ft="URIError";T.BUILTIN_CLASS_URI_ERROR=ft;var rt="AggregateError";T.BUILTIN_CLASS_AGGREGATE_ERROR=rt,T.BUILTIN_TYPE_BIG_INT="BI",T.BUILTIN_TYPE_NOT_FINITE="NF",T.BUILTIN_TYPE_UNDEFINED="UD";var dt=[b,g,E,k,M,O,L,F,P,$,W];T.ALL_BUILTIN_ARRAYS=dt;var G=[St,qt,Nt,yt,Bt,kt,ft,rt];T.ALL_BUILTIN_ERRORS=G;var Lt=[K,nt,ht,J,bt,at];T.ALL_BUILTIN_INTLS=Lt;var V=f([st],dt);T.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED=V},496:function(p,T,f){var b=this&&this.__spreadArrays||function(){for(var J=0,bt=0,at=arguments.length;bt<at;bt++)J+=arguments[bt].length;var st=Array(J),St=0;for(bt=0;bt<at;bt++)for(var qt=arguments[bt],Nt=0,yt=qt.length;Nt<yt;Nt++,St++)st[St]=qt[Nt];return st};Object.defineProperty(T,"__esModule",{value:!0}),T.getParentClassName=T.getClassMappingFromClassArray=T.deserializeFromParsedObjWithClassMapping=T.deserializeFromParsedObj=void 0;var g=f(821),E=f(917),k=/^\s*class\s+/;function M(J,bt,at){if(at===void 0&&(at={}),g.notObject(J))return J;if(Array.isArray(J))return O(J,bt);var st=J[E.CLASS_NAME_FIELD],St=function(Nt,yt,Bt){switch(Nt){case E.BUILTIN_CLASS_INT8ARRAY:return L(yt[E.ARRAY_FIELD],Int8Array);case E.BUILTIN_CLASS_UINT8ARRAY:return L(yt[E.ARRAY_FIELD],Uint8Array);case E.BUILTIN_CLASS_UINT8CLAMPEDARRAY:return L(yt[E.ARRAY_FIELD],Uint8ClampedArray);case E.BUILTIN_CLASS_INT16ARRAY:return L(yt[E.ARRAY_FIELD],Int16Array);case E.BUILTIN_CLASS_UINT16ARRAY:return L(yt[E.ARRAY_FIELD],Uint16Array);case E.BUILTIN_CLASS_INT32ARRAY:return L(yt[E.ARRAY_FIELD],Int32Array);case E.BUILTIN_CLASS_UINT32ARRAY:return L(yt[E.ARRAY_FIELD],Uint32Array);case E.BUILTIN_CLASS_FLOAT32ARRAY:return L(yt[E.ARRAY_FIELD],Float32Array);case E.BUILTIN_CLASS_FLOAT64ARRAY:return L(yt[E.ARRAY_FIELD],Float64Array);case E.BUILTIN_CLASS_BIGINT64ARRAY:return F(yt[E.ARRAY_FIELD],BigInt64Array);case E.BUILTIN_CLASS_BIGUINT64ARRAY:return F(yt[E.ARRAY_FIELD],BigUint64Array);case E.BUILTIN_TYPE_BIG_INT:return P(yt[E.TO_STRING_FIELD]);case E.BUILTIN_TYPE_UNDEFINED:return;case E.BUILTIN_TYPE_NOT_FINITE:return g.getValueFromToStringResult(yt[E.TO_STRING_FIELD]);case E.BUILTIN_CLASS_ARRAYBUFFER:return kt=yt[E.ARRAY_FIELD],new Uint8Array(kt).buffer;case E.BUILTIN_CLASS_SHAREDARRAYBUFFER:return function(ft){var rt=new SharedArrayBuffer(ft.length),dt=new Uint8Array(rt);return ft.forEach(function(G,Lt){dt[Lt]=G}),rt}(yt[E.ARRAY_FIELD]);case E.BUILTIN_CLASS_BOOLEAN:return function(ft){return new Boolean(ft[E.BOOLEAN_FIELD])}(yt);case E.BUILTIN_CLASS_DATAVIEW:return function(ft){return new DataView(new Uint8Array(ft).buffer)}(yt[E.ARRAY_FIELD]);case E.BUILTIN_CLASS_DATE:return function(ft){return typeof ft[E.TIMESTAMP_FIELD]=="number"?new Date(ft[E.TIMESTAMP_FIELD]):null}(yt);case E.BUILTIN_CLASS_INTL_COLLATOR:return $(yt,Intl.Collator);case E.BUILTIN_CLASS_INTL_DATETIMEFORMAT:return $(yt,Intl.DateTimeFormat);case E.BUILTIN_CLASS_INTL_LISTFORMAT:return $(yt,Intl.ListFormat);case E.BUILTIN_CLASS_INTL_LOCALE:return new Intl.Locale(yt[E.TO_STRING_FIELD]);case E.BUILTIN_CLASS_INTL_NUMBERFORMAT:return $(yt,Intl.NumberFormat);case E.BUILTIN_CLASS_INTL_PLURALRULES:return $(yt,Intl.PluralRules);case E.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT:return $(yt,Intl.RelativeTimeFormat);case E.BUILTIN_CLASS_REGEXP:return function(ft){var rt=ft[E.TO_STRING_FIELD],dt=rt.lastIndexOf("/");return new RegExp(rt.substring(1,dt),rt.substring(dt+1))}(yt);case E.BUILTIN_CLASS_SET:return function(ft,rt){return new Set(O(ft[E.ARRAY_FIELD],rt))}(yt,Bt);case E.BUILTIN_CLASS_STRING:return function(ft){return new String(ft[E.TO_STRING_FIELD])}(yt);case E.BUILTIN_CLASS_ERROR:return W(yt,Error);case E.BUILTIN_CLASS_EVAL_ERROR:return W(yt,EvalError);case E.BUILTIN_CLASS_RANGE_ERROR:return W(yt,RangeError);case E.BUILTIN_CLASS_REFERENCE_ERROR:return W(yt,ReferenceError);case E.BUILTIN_CLASS_SYNTAX_ERROR:return W(yt,SyntaxError);case E.BUILTIN_CLASS_TYPE_ERROR:return W(yt,TypeError);case E.BUILTIN_CLASS_URI_ERROR:return W(yt,URIError);case E.BUILTIN_CLASS_AGGREGATE_ERROR:return W(yt,AggregateError);default:return E.ESSERIALIZER_NULL}var kt}(st,J,bt);if(St!==E.ESSERIALIZER_NULL)return St;if(st&&!bt[st])throw new Error("Class "+st+" not found");var qt=[];return at.fieldsForConstructorParameters&&(qt=at.fieldsForConstructorParameters.map(function(Nt){return Nt in J?J[Nt]:{}})),function(Nt,yt,Bt,kt){for(var ft in yt){var rt=yt[ft];if(!kt.ignoreProperties||!kt.ignoreProperties.includes(ft))if(kt.rawProperties&&kt.rawProperties.includes(ft))Nt[ft]=JSON.stringify(rt);else{var dt=Object.getOwnPropertyDescriptor(Nt,ft);G=rt,Lt=dt,ft===E.CLASS_NAME_FIELD||Lt&&(typeof Lt.set=="function"||Lt.writable===!1&&typeof G!="object")||(dt&&dt.writable===!1&&typeof rt=="object"?nt(Nt[ft],rt,Bt):Nt[ft]=M(rt,Bt))}}var G,Lt;return Nt}(function(Nt,yt){var Bt={};if(!Nt)return Bt;var kt=Nt.length-yt.length;if(kt>0&&(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<<p.bi_valid&65535,put_short(p,p.bi_buf),p.bi_buf=T>>Buf_size-p.bi_valid,p.bi_valid+=f-Buf_size):(p.bi_buf|=T<<p.bi_valid&65535,p.bi_valid+=f)},send_code=(p,T,f)=>{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;L<HEAP_SIZE$1;L++)F=p.heap[L],$=f[f[F*2+1]*2+1]+1,$>O&&($=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<LENGTH_CODES$1-1;b++)for(base_length[b]=f,p=0;p<1<<extra_lbits[b];p++)_length_code[f++]=b;for(_length_code[f-1]=b,g=0,b=0;b<16;b++)for(base_dist[b]=g,p=0;p<1<<extra_dbits[b];p++)_dist_code[g++]=b;for(g>>=7;b<D_CODES$1;b++)for(base_dist[b]=g<<7,p=0;p<1<<extra_dbits[b]-7;p++)_dist_code[256+g++]=b;for(T=0;T<=MAX_BITS$1;T++)E[T]=0;for(p=0;p<=143;)static_ltree[p*2+1]=8,p++,E[8]++;for(;p<=255;)static_ltree[p*2+1]=9,p++,E[9]++;for(;p<=279;)static_ltree[p*2+1]=7,p++,E[7]++;for(;p<=287;)static_ltree[p*2+1]=8,p++,E[8]++;for(gen_codes(static_ltree,L_CODES$1+1,E),p=0;p<D_CODES$1;p++)static_dtree[p*2+1]=5,static_dtree[p*2]=bi_reverse(p,5);static_l_desc=new StaticTreeDesc(static_ltree,extra_lbits,LITERALS$1+1,L_CODES$1,MAX_BITS$1),static_d_desc=new StaticTreeDesc(static_dtree,extra_dbits,0,D_CODES$1,MAX_BITS$1),static_bl_desc=new StaticTreeDesc(new Array(0),extra_blbits,0,BL_CODES$1,MAX_BL_BITS)},init_block=p=>{let T;for(T=0;T<L_CODES$1;T++)p.dyn_ltree[T*2]=0;for(T=0;T<D_CODES$1;T++)p.dyn_dtree[T*2]=0;for(T=0;T<BL_CODES$1;T++)p.bl_tree[T*2]=0;p.dyn_ltree[END_BLOCK*2]=1,p.opt_len=p.static_len=0,p.last_lit=p.matches=0},bi_windup=p=>{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]<p[E]||p[g]===p[E]&&b[T]<=b[f]},pqdownheap=(p,T,f)=>{const b=p.heap[f];let g=f<<1;for(;g<=p.heap_len&&(g<p.heap_len&&smaller(T,p.heap[g+1],p.heap[g],p.depth)&&g++,!smaller(T,b,p.heap[g],p.depth));)p.heap[f]=p.heap[g],f=g,g<<=1;p.heap[f]=b},compress_block=(p,T,f)=>{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<p.last_lit);send_code(p,END_BLOCK,T)},build_tree=(p,T)=>{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<E;k++)f[k*2]!==0?(p.heap[++p.heap_len]=O=k,p.depth[k]=0):f[k*2+1]=0;for(;p.heap_len<2;)L=p.heap[++p.heap_len]=O<2?++O:0,f[L*2]=1,p.depth[L]=0,p.opt_len--,g&&(p.static_len-=b[L*2+1]);for(T.max_code=O,k=p.heap_len>>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<O&&E===k)&&(M<L?p.bl_tree[E*2]+=M:E!==0?(E!==g&&p.bl_tree[E*2]++,p.bl_tree[REP_3_6*2]++):M<=10?p.bl_tree[REPZ_3_10*2]++:p.bl_tree[REPZ_11_138*2]++,M=0,g=E,k===0?(O=138,L=3):E===k?(O=6,L=3):(O=7,L=4))},send_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),b=0;b<=f;b++)if(E=k,k=T[(b+1)*2+1],!(++M<O&&E===k)){if(M<L)do send_code(p,E,p.bl_tree);while(--M!==0);else E!==0?(E!==g&&(send_code(p,E,p.bl_tree),M--),send_code(p,REP_3_6,p.bl_tree),send_bits(p,M-3,2)):M<=10?(send_code(p,REPZ_3_10,p.bl_tree),send_bits(p,M-3,3)):(send_code(p,REPZ_11_138,p.bl_tree),send_bits(p,M-11,7));M=0,g=E,k===0?(O=138,L=3):E===k?(O=6,L=3):(O=7,L=4)}},build_bl_tree=p=>{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<b;g++)send_bits(p,p.bl_tree[bl_order[g]*2+1],3);send_tree(p,p.dyn_ltree,T-1),send_tree(p,p.dyn_dtree,f-1)},detect_data_type=p=>{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<LITERALS$1;f++)if(p.dyn_ltree[f*2]!==0)return Z_TEXT;return Z_BINARY};let static_init_done=!1;const _tr_init$1=p=>{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<E;k++)p=p>>>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<<p.hash_shift^f)&p.hash_mask,HASH=HASH_ZLIB;const flush_pending=p=>{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<MIN_MATCH)););}while(p.lookahead<MIN_LOOKAHEAD&&p.strm.avail_in!==0)},deflate_stored=(p,T)=>{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_LOOKAHEAD){if(fill_window(p),p.lookahead<MIN_LOOKAHEAD&&T===Z_NO_FLUSH$2)return BS_NEED_MORE;if(p.lookahead===0)break}if(f=0,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<MIN_MATCH-1?p.strstart:MIN_MATCH-1,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_slow=(p,T)=>{let f,b,g;for(;;){if(p.lookahead<MIN_LOOKAHEAD){if(fill_window(p),p.lookahead<MIN_LOOKAHEAD&&T===Z_NO_FLUSH$2)return BS_NEED_MORE;if(p.lookahead===0)break}if(f=0,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_length<p.max_lazy_match&&p.strstart-f<=p.w_size-MIN_LOOKAHEAD&&(p.match_length=longest_match(p,f),p.match_length<=5&&(p.strategy===Z_FILTERED||p.match_length===MIN_MATCH&&p.strstart-p.match_start>4096)&&(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<MIN_MATCH-1?p.strstart:MIN_MATCH-1,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_rle=(p,T)=>{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]&&g<E);p.match_length=MAX_MATCH-(E-g),p.match_length>p.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<<M.w_bits,M.w_mask=M.w_size-1,M.hash_bits=g+7,M.hash_size=1<<M.hash_bits,M.hash_mask=M.hash_size-1,M.hash_shift=~~((M.hash_bits+MIN_MATCH-1)/MIN_MATCH),M.window=new Uint8Array(M.w_size*2),M.head=new Uint16Array(M.hash_size),M.prev=new Uint16Array(M.w_size),M.lit_bufsize=1<<g+6,M.pending_buf_size=M.lit_bufsize*4,M.pending_buf=new Uint8Array(M.pending_buf_size),M.d_buf=1*M.lit_bufsize,M.l_buf=(1+2)*M.lit_bufsize,M.level=T,M.strategy=E,M.method=f,deflateReset(p)},deflateInit=(p,T)=>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.gzindex<g.gzhead.name.length?b=g.gzhead.name.charCodeAt(g.gzindex++)&255:b=0,put_byte(g,b)}while(b!==0);g.gzhead.hcrc&&g.pending>f&&(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.gzindex<g.gzhead.comment.length?b=g.gzhead.comment.charCodeAt(g.gzindex++)&255:b=0,put_byte(g,b)}while(b!==0);g.gzhead.hcrc&&g.pending>f&&(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<g;b++)T+=p[b].length;const f=new Uint8Array(T);for(let b=0,g=0,E=p.length;b<E;b++){let k=p[b];f.set(k,g),g+=k.length}return f},common={assign,flattenChunks};let STR_APPLY_UIA_OK=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(p){STR_APPLY_UIA_OK=!1}const _utf8len=new Uint8Array(256);for(let p=0;p<256;p++)_utf8len[p]=p>=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<k;g++)f=p.charCodeAt(g),(f&64512)===55296&&g+1<k&&(b=p.charCodeAt(g+1),(b&64512)===56320&&(f=65536+(f-55296<<10)+(b-56320),g++)),M+=f<128?1:f<2048?2:f<65536?3:4;for(T=new Uint8Array(M),E=0,g=0;E<M;g++)f=p.charCodeAt(g),(f&64512)===55296&&g+1<k&&(b=p.charCodeAt(g+1),(b&64512)===56320&&(f=65536+(f-55296<<10)+(b-56320),g++)),f<128?T[E++]=f:f<2048?(T[E++]=192|f>>>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<T;b++)f+=String.fromCharCode(p[b]);return f};var buf2string=(p,T)=>{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;b<f;){let k=p[b++];if(k<128){E[g++]=k;continue}let M=_utf8len[k];if(M>4){E[g++]=65533,b+=M-1;continue}for(k&=M===2?31:M===3?15:7;M>1&&b<f;)k=k<<6|p[b++]&63,M--;if(M>1){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<<ft.lenbits)-1,bt=(1<<ft.distbits)-1;t:do{K<15&&(W+=Bt[b++]<<K,K+=8,W+=Bt[b++]<<K,K+=8),at=nt[W&J];e:for(;;){if(st=at>>>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&&(W+=Bt[b++]<<K,K+=8),St+=W&(1<<st)-1,W>>>=st,K-=st),K<15&&(W+=Bt[b++]<<K,K+=8,W+=Bt[b++]<<K,K+=8),at=ht[W&bt];n:for(;;){if(st=at>>>24,W>>>=st,K-=st,st=at>>>16&255,st&16){if(qt=at&65535,st&=15,K<st&&(W+=Bt[b++]<<K,K+=8,K<st&&(W+=Bt[b++]<<K,K+=8)),qt+=W&(1<<st)-1,qt>O){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,st<St){St-=st;do kt[E++]=$[Nt++];while(--st);Nt=E-qt,yt=kt}}else if(P<st){if(Nt+=L+P-st,st-=P,st<St){St-=st;do kt[E++]=$[Nt++];while(--st);if(Nt=0,P<St){st=P,St-=st;do kt[E++]=$[Nt++];while(--st);Nt=E-qt,yt=kt}}}else if(Nt+=P-st,st<St){St-=st;do kt[E++]=$[Nt++];while(--st);Nt=E-qt,yt=kt}for(;St>2;)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<<st)-1)];continue n}else{T.msg="invalid distance code",ft.mode=BAD$1;break t}break}}else if((st&64)===0){at=nt[(at&65535)+(W&(1<<st)-1)];continue e}else if(st&32){ft.mode=TYPE$1;break t}else{T.msg="invalid literal/length code",ft.mode=BAD$1;break t}break}}while(b<g&&E<M);St=K>>3,b-=St,K-=St<<3,W&=(1<<K)-1,T.next_in=b,T.next_out=E,T.avail_in=b<g?5+(g-b):5-(b-g),T.avail_out=E<M?257+(M-E):257-(E-M),ft.hold=W,ft.bits=K};const MAXBITS=15,ENOUGH_LENS$1=852,ENOUGH_DISTS$1=592,CODES$1=0,LENS$1=1,DISTS$1=2,lbase=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),lext=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),dbase=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),dext=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),inflate_table=(p,T,f,b,g,E,k,M)=>{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<b;F++)ft[T[f+F]]++;for(W=O,$=MAXBITS;$>=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(W<P&&(W=P),ht=1,L=1;L<=MAXBITS;L++)if(ht<<=1,ht-=ft[L],ht<0)return-1;if(ht>0&&(p===CODES$1||$!==1))return-1;for(rt[1]=0,L=1;L<MAXBITS;L++)rt[L+1]=rt[L]+ft[L];for(F=0;F<b;F++)T[f+F]!==0&&(k[rt[T[f+F]]++]=F);if(p===CODES$1?(yt=dt=k,kt=19):p===LENS$1?(yt=lbase,Bt-=257,dt=lext,G-=257,kt=256):(yt=dbase,dt=dext,kt=-1),bt=0,F=0,L=P,Nt=E,K=W,nt=0,St=-1,J=1<<W,qt=J-1,p===LENS$1&&J>ENOUGH_LENS$1||p===DISTS$1&&J>ENOUGH_DISTS$1)return 1;for(;;){Lt=L-nt,k[F]<kt?(V=0,Rt=k[F]):k[F]>kt?(V=dt[G+k[F]],Rt=yt[Bt+k[F]]):(V=32+64,Rt=0),at=1<<L-nt,st=1<<K,P=st;do st-=at,g[Nt+(bt>>nt)+st]=Lt<<24|V<<16|Rt|0;while(st!==0);for(at=1<<L-1;bt&at;)at>>=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<<K;K+nt<$&&(ht-=ft[K+nt],!(ht<=0));)K++,ht<<=1;if(J+=1<<K,p===LENS$1&&J>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.wbits,E.wnext=0,E.whave=0,E.window=new Uint8Array(E.wsize)),b>=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<E.wsize&&(E.whave+=g))),0},inflate$2=(p,T)=>{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++]<<F,F+=8}if(f.wrap&2&&L===35615){f.check=0,Bt[0]=L&255,Bt[1]=L>>>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<<f.wbits,p.adler=f.check=1,f.mode=L&512?DICTID:TYPE,L=0,F=0;break;case FLAGS:for(;F<16;){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}if(f.flags=L,(f.flags&255)!==Z_DEFLATED){p.msg="unknown compression method",f.mode=BAD;break}if(f.flags&57344){p.msg="unknown header flags set",f.mode=BAD;break}f.head&&(f.head.text=L>>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++]<<F,F+=8}f.head&&(f.head.time=L),f.flags&512&&(Bt[0]=L&255,Bt[1]=L>>>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++]<<F,F+=8}f.head&&(f.head.xflags=L&255,f.head.os=L>>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++]<<F,F+=8}f.length=L,f.head&&(f.head.extra_len=L),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}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<M);if(f.flags&512&&(f.check=crc32_1(f.check,b,W,E)),M-=W,E+=W,Nt)break t}else f.head&&(f.head.name=null);f.length=0,f.mode=COMMENT;case COMMENT:if(f.flags&4096){if(M===0)break t;W=0;do Nt=b[E+W++],f.head&&Nt&&f.length<65536&&(f.head.comment+=String.fromCharCode(Nt));while(Nt&&W<M);if(f.flags&512&&(f.check=crc32_1(f.check,b,W,E)),M-=W,E+=W,Nt)break t}else f.head&&(f.head.comment=null);f.mode=HCRC;case HCRC:if(f.flags&512){for(;F<16;){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}if(L!==(f.check&65535)){p.msg="header crc mismatch",f.mode=BAD;break}L=0,F=0}f.head&&(f.head.hcrc=f.flags>>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,F+=8}p.adler=f.check=zswap32(L),L=0,F=0,f.mode=DICT;case DICT:if(f.havedict===0)return p.next_out=k,p.avail_out=O,p.next_in=E,p.avail_in=M,f.hold=L,f.bits=F,Z_NEED_DICT$1;p.adler=f.check=1,f.mode=TYPE;case TYPE:if(T===Z_BLOCK||T===Z_TREES)break t;case TYPEDO:if(f.last){L>>>=F&7,F-=F&7,f.mode=CHECK;break}for(;F<3;){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}switch(f.last=L&1,L>>>=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++]<<F,F+=8}if((L&65535)!==(L>>>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++]<<F,F+=8}if(f.nlen=(L&31)+257,L>>>=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<f.ncode;){for(;F<3;){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}f.lens[rt[f.have++]]=L&7,L>>>=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<f.nlen+f.ndist;){for(;ht=f.lencode[L&(1<<f.lenbits)-1],J=ht>>>24,bt=ht>>>16&255,at=ht&65535,!(J<=F);){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}if(at<16)L>>>=J,F-=J,f.lens[f.have++]=at;else{if(at===16){for(ft=J+2;F<ft;){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}if(L>>>=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<ft;){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}L>>>=J,F-=J,Nt=0,W=3+(L&7),L>>>=3,F-=3}else{for(ft=J+7;F<ft;){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}L>>>=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<<f.lenbits)-1],J=ht>>>24,bt=ht>>>16&255,at=ht&65535,!(J<=F);){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}if(bt&&(bt&240)===0){for(st=J,St=bt,qt=at;ht=f.lencode[qt+((L&(1<<st+St)-1)>>st)],J=ht>>>24,bt=ht>>>16&255,at=ht&65535,!(st+J<=F);){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}L>>>=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<ft;){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}f.length+=L&(1<<f.extra)-1,L>>>=f.extra,F-=f.extra,f.back+=f.extra}f.was=f.length,f.mode=DIST;case DIST:for(;ht=f.distcode[L&(1<<f.distbits)-1],J=ht>>>24,bt=ht>>>16&255,at=ht&65535,!(J<=F);){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}if((bt&240)===0){for(st=J,St=bt,qt=at;ht=f.distcode[qt+((L&(1<<st+St)-1)>>st)],J=ht>>>24,bt=ht>>>16&255,at=ht&65535,!(st+J<=F);){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}L>>>=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<ft;){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}f.offset+=L&(1<<f.extra)-1,L>>>=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++]<<F,F+=8}if($-=O,p.total_out+=$,f.total+=$,$&&(p.adler=f.check=f.flags?crc32_1(f.check,g,$,k-$):adler32_1(f.check,g,$,k-$)),$=O,(f.flags?L:zswap32(L))!==f.check){p.msg="incorrect data check",f.mode=BAD;break}L=0,F=0}f.mode=LENGTH;case LENGTH:if(f.wrap&&f.flags){for(;F<32;){if(M===0)break t;M--,L+=b[E++]<<F,F+=8}if(L!==(f.total&4294967295)){p.msg="incorrect length check",f.mode=BAD;break}L=0,F=0}f.mode=DONE;case DONE:yt=Z_STREAM_END$1;break t;case BAD:yt=Z_DATA_ERROR$1;break t;case MEM:return Z_MEM_ERROR$1;case SYNC:default:return Z_STREAM_ERROR$1}return p.next_out=k,p.avail_out=O,p.next_in=E,p.avail_in=M,f.hold=L,f.bits=F,(f.wsize||$!==p.avail_out&&f.mode<BAD&&(f.mode<CHECK||T!==Z_FINISH$1))&&updatewindow(p,p.output,p.next_out,$-p.avail_out),P-=p.avail_in,$-=p.avail_out,p.total_in+=P,p.total_out+=$,f.total+=$,f.wrap&&$&&(p.adler=f.check=f.flags?crc32_1(f.check,g,$,p.next_out-$):adler32_1(f.check,g,$,p.next_out-$)),p.data_type=f.bits+(f.last?64:0)+(f.mode===TYPE?128:0)+(f.mode===LEN_||f.mode===COPY_?256:0),(P===0&&$===0||T===Z_FINISH$1)&&yt===Z_OK$1&&(yt=Z_BUF_ERROR),yt},inflateEnd=p=>{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;M<p.length;){if((f=p.charCodeAt(M++))>255||(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;b<g;b+=4096)f.push(_fromCC.apply(null,p.subarray(b,b+4096)));return _btoa(f.join(""))},fromUint8Array=(p,T=!1)=>T?_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<p.length;)T=b64tab[p.charAt(E++)]<<18|b64tab[p.charAt(E++)]<<12|(b=b64tab[p.charAt(E++)])<<6|(g=b64tab[p.charAt(E++)]),f+=b===64?_fromCC(T>>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<qn.length;zt++)if((Ue=this._input.match(this.rules[qn[zt]]))&&(!$e||Ue[0].length>$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;et<Me.length;et++)if((oe=this._input.match(this.rules[Me[et]]))&&(!fe||oe[0].length>fe[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;Rt<V.length;Rt++)if((G=this._input.match(this.rules[V[Rt]]))&&(!dt||G[0].length>dt[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;Vt<Er.length;Vt++)if((Re=this._input.match(this.rules[Er[Vt]]))&&(!nr||Re[0].length>nr[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;V<Lt.length;V++)if((dt=this._input.match(this.rules[Lt[V]]))&&(!rt||dt[0].length>rt[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;G<dt.length;G++)if((ft=this._input.match(this.rules[dt[G]]))&&(!kt||ft[0].length>kt[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;K<W.length;K++)if((P=this._input.match(this.rules[W[K]]))&&(!F||P[0].length>F[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;Lt<G.length;Lt++)if((rt=this._input.match(this.rules[G[Lt]]))&&(!ft||rt[0].length>ft[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;et<Me.length;et++)if((oe=this._input.match(this.rules[Me[et]]))&&(!fe||oe[0].length>fe[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;et<Me.length;et++)if((oe=this._input.match(this.rules[Me[et]]))&&(!fe||oe[0].length>fe[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;ve<Le.length;ve++)if((me=this._input.match(this.rules[Le[ve]]))&&(!he||me[0].length>he[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,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,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;yt<Nt.length;yt++)if((St=this._input.match(this.rules[Nt[yt]]))&&(!st||St[0].length>st[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===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 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;x<A;++x)(m=a[x])?(m.__data__=_[x],u[x]=m):s[x]=new Lt(i,_[x]);for(;x<C;++x)(m=a[x])&&(d[x]=m)}function Yt(i,a,s,u,d,_,m){var x,C,A,B=new Map,Y=a.length,j=_.length,X=new Array(Y);for(x=0;x<Y;++x)(C=a[x])&&(X[x]=A=m.call(C,C.__data__,x,a)+"",B.has(A)?d[x]=C:B.set(A,C));for(x=0;x<j;++x)A=m.call(i,_[x],x,_)+"",(C=B.get(A))?(u[x]=C,C.__data__=_[x],B.delete(A)):s[x]=new Lt(i,_[x]);for(x=0;x<Y;++x)(C=a[x])&&B.get(X[x])===C&&(d[x]=C)}function Gt(i){return i.__data__}function ye(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function qe(i,a){return i<a?-1:i>a?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<d;)s.add(a[u])}function Pe(i,a){for(var s=ae(i),u=-1,d=a.length;++u<d;)s.remove(a[u])}function ln(i){return function(){Ye(this,i)}}function De(i){return function(){Pe(this,i)}}function Ke(i,a){return function(){(a.apply(this,arguments)?Ye:Pe)(this,i)}}function rn(){this.textContent=""}function on(i){return function(){this.textContent=i}}function Oe(i){return function(){var a=i.apply(this,arguments);this.textContent=a==null?"":a}}function dn(){this.innerHTML=""}function mn(i){return function(){this.innerHTML=i}}function We(i){return function(){var a=i.apply(this,arguments);this.innerHTML=a==null?"":a}}function $e(){this.nextSibling&&this.parentNode.appendChild(this)}function Ue(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Qe(i){return function(){var a=this.ownerDocument,s=this.namespaceURI;return s===xe&&a.documentElement.namespaceURI===xe?a.createElement(i):a.createElementNS(s,i)}}function qn(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function zt(i){var a=me(i);return(a.local?qn:Qe)(a)}function Dn(){return null}function Ht(){var i=this.parentNode;i&&i.removeChild(this)}function gn(){var i=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function In(){var i=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function un(i){return i.trim().split(/^|\s+/).map(function(a){var s="",u=a.indexOf(".");return 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<x;++m)if((u=d[m]).type===i.type&&u.name===i.name)return this.removeEventListener(u.type,u.listener,u.options),this.addEventListener(u.type,u.listener=_,u.options=s),void(u.value=a)}this.addEventListener(i.type,_,s),u={type:i.type,name:i.name,value:a,listener:_,options:s},d?d.push(u):this.__on=[u]}}function $r(i,a,s){var u=$t(i),d=u.CustomEvent;typeof d=="function"?d=new d(a,s):(d=u.document.createEvent("Event"),s?(d.initEvent(a,s.bubbles,s.cancelable),d.detail=s.detail):d.initEvent(a,!1,!1)),i.dispatchEvent(d)}function An(i,a){return function(){return $r(this,i,a)}}function jn(i,a){return function(){return $r(this,i,a.apply(this,arguments))}}we.prototype={add:function(i){this._names.indexOf(i)<0&&(this._names.push(i),this._node.setAttribute("class",this._names.join(" ")))},remove:function(i){var a=this._names.indexOf(i);a>=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<s;++d)for(var _,m,x=a[d],C=x.length,A=u[d]=new Array(C),B=0;B<C;++B)(_=x[B])&&(m=i.call(_,_.__data__,B,x))&&("__data__"in _&&(m.__data__=_.__data__),A[B]=m);return new On(u,this._parents)},selectAll:function(i){i=typeof i=="function"?function(B){return function(){return St(B.apply(this,arguments))}}(i):Nt(i);for(var a=this._groups,s=a.length,u=[],d=[],_=0;_<s;++_)for(var m,x=a[_],C=x.length,A=0;A<C;++A)(m=x[A])&&(u.push(i.call(m,m.__data__,A,x)),d.push(m));return new On(u,d)},selectChild:function(i){return this.select(i==null?ft:function(a){return function(){return kt.call(this.children,a)}}(typeof i=="function"?i:Bt(i)))},selectChildren:function(i){return this.selectAll(i==null?dt:function(a){return function(){return rt.call(this.children,a)}}(typeof i=="function"?i:Bt(i)))},filter:function(i){typeof i!="function"&&(i=yt(i));for(var a=this._groups,s=a.length,u=new Array(s),d=0;d<s;++d)for(var _,m=a[d],x=m.length,C=u[d]=[],A=0;A<x;++A)(_=m[A])&&i.call(_,_.__data__,A,m)&&C.push(_);return new On(u,this._parents)},data:function(i,a){if(!arguments.length)return Array.from(this,Gt);var s=a?Yt:Rt,u=this._parents,d=this._groups;typeof i!="function"&&(i=V(i));for(var _=d.length,m=new Array(_),x=new Array(_),C=new Array(_),A=0;A<_;++A){var B=u[A],Y=d[A],j=Y.length,X=ye(i.call(B,B&&B.__data__,A,u)),vt=X.length,ut=x[A]=new Array(vt),wt=m[A]=new Array(vt),xt=C[A]=new Array(j);s(B,Y,ut,wt,xt,X,a);for(var Dt,At,Zt=0,se=0;Zt<vt;++Zt)if(Dt=ut[Zt]){for(Zt>=se&&(se=Zt+1);!(At=wt[se])&&++se<vt;);Dt._next=At||null}}return(m=new On(m,u))._enter=x,m._exit=C,m},enter:function(){return new On(this._enter||this._groups.map(G),this._parents)},exit:function(){return new On(this._exit||this._groups.map(G),this._parents)},join:function(i,a,s){var u=this.enter(),d=this,_=this.exit();return typeof i=="function"?(u=i(u))&&(u=u.selection()):u=u.append(i+""),a!=null&&(d=a(d))&&(d=d.selection()),s==null?_.remove():s(_),u&&d?u.merge(d).order():d},merge:function(i){for(var a=i.selection?i.selection():i,s=this._groups,u=a._groups,d=s.length,_=u.length,m=Math.min(d,_),x=new Array(d),C=0;C<m;++C)for(var A,B=s[C],Y=u[C],j=B.length,X=x[C]=new Array(j),vt=0;vt<j;++vt)(A=B[vt]||Y[vt])&&(X[vt]=A);for(;C<d;++C)x[C]=s[C];return new On(x,this._parents)},selection:function(){return this},order:function(){for(var i=this._groups,a=-1,s=i.length;++a<s;)for(var u,d=i[a],_=d.length-1,m=d[_];--_>=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;_<u;++_){for(var m,x=s[_],C=x.length,A=d[_]=new Array(C),B=0;B<C;++B)(m=x[B])&&(A[B]=m);A.sort(a)}return new On(d,this._parents).order()},call:function(){var i=arguments[0];return arguments[0]=this,i.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var i=this._groups,a=0,s=i.length;a<s;++a)for(var u=i[a],d=0,_=u.length;d<_;++d){var m=u[d];if(m)return m}return null},size:function(){let i=0;for(const a of this)++i;return i},empty:function(){return!this.node()},each:function(i){for(var a=this._groups,s=0,u=a.length;s<u;++s)for(var d,_=a[s],m=0,x=_.length;m<x;++m)(d=_[m])&&i.call(d,d.__data__,m,_);return this},attr:function(i,a){var s=me(i);if(arguments.length<2){var u=this.node();return s.local?u.getAttributeNS(s.space,s.local):u.getAttribute(s)}return this.each((a==null?s.local?Le:Ie:typeof a=="function"?s.local?Ge:be:s.local?kn:ve)(s,a))},style:function(i,a,s){return arguments.length>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<m;++u)this.each(x(_[u],a,s));return this}var x=this.node().__on;if(x){for(var C,A=0,B=x.length;A<B;++A)for(u=0,C=x[A];u<m;++u)if((d=_[u]).type===C.type&&d.name===C.name)return C.value}},dispatch:function(i,a){return this.each((typeof a=="function"?jn:An)(i,a))},[Symbol.iterator]:function*(){for(var i=this._groups,a=0,s=i.length;a<s;++a)for(var u,d=i[a],_=0,m=d.length;_<m;++_)(u=d[_])&&(yield u)}};const $n=zn;var Cn={value:()=>{}};function Vn(){for(var i,a=0,s=arguments.length,u={};a<s;++a){if(!(i=arguments[a]+"")||i in u||/[\s.]/.test(i))throw new Error("illegal type: "+i);u[i]=[]}return new Tn(u)}function Tn(i){this._=i}function Nn(i,a){return i.trim().split(/^|\s+/).map(function(s){var u="",d=s.indexOf(".");if(d>=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;u<d;++u)if((s=i[u]).name===a)return s.value}function ua(i,a,s){for(var u=0,d=i.length;u<d;++u)if(i[u].name===a){i[u]=Cn,i=i.slice(0,u).concat(i.slice(u+1));break}return s!=null&&i.push({name:a,value:s}),i}Tn.prototype=Vn.prototype={constructor:Tn,on:function(i,a){var s,u=this._,d=Nn(i+"",u),_=-1,m=d.length;if(!(arguments.length<2)){if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++_<m;)if(s=(i=d[_]).type)u[s]=ua(u[s],i.name,a);else if(a==null)for(s in u)u[s]=ua(u[s],i.name,null);return this}for(;++_<m;)if((s=(i=d[_]).type)&&(s=Zn(u[s],i.name)))return s},copy:function(){var i={},a=this._;for(var s in a)i[s]=a[s].slice();return new Tn(i)},call:function(i,a){if((s=arguments.length-2)>0)for(var s,u,d=new Array(s),_=0;_<s;++_)d[_]=arguments[_+2];if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(_=0,s=(u=this._[i]).length;_<s;++_)u[_].value.apply(a,d)},apply:function(i,a,s){if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(var u=this._[i],d=0,_=u.length;d<_;++d)u[d].value.apply(a,s)}};const yr=Vn;var Ci,_n,xi=0,kr=0,br=0,li=0,ai=0,gi=0,ti=typeof performance=="object"&&performance.now?performance:Date,yi=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(i){setTimeout(i,17)};function ei(){return ai||(yi(mr),ai=ti.now()+gi)}function mr(){ai=0}function ni(){this._call=this._time=this._next=null}function ui(i,a,s){var u=new ni;return u.restart(i,a,s),u}function hi(){ai=(li=ti.now())+gi,xi=kr=0;try{(function(){ei(),++xi;for(var i,a=Ci;a;)(i=ai-a._time)>=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]):+wt<C&&(At.state=6,At.timer.stop(),At.on.call("cancel",x,x.__data__,At.index,At.group),delete Y[wt])}if(Cr(function(){A.state===3&&(A.state=4,A.timer.restart(X,A.delay,A.time),X(ut))}),A.state=2,A.on.call("start",x,x.__data__,A.index,A.group),A.state===2){for(A.state=3,B=new Array(Dt=A.tween.length),wt=0,xt=-1;wt<Dt;++wt)(At=A.tween[wt].value.call(x,x.__data__,A.index,A.group))&&(B[++xt]=At);B.length=xt+1}}function X(ut){for(var wt=ut<A.duration?A.ease.call(null,ut/A.duration):(A.timer.restart(vt),A.state=5,1),xt=-1,Dt=B.length;++xt<Dt;)B[xt].call(x,wt);A.state===5&&(A.on.call("end",x,x.__data__,A.index,A.group),vt())}function vt(){for(var ut in A.state=6,A.timer.stop(),delete Y[C],Y)return;delete x.__transition}Y[C]=A,A.timer=ui(function(ut){A.state=1,A.timer.restart(j,A.delay,A.time),A.delay<=ut&&j(ut-A.delay)},0,A.time)})(i,s,{name:a,index:u,group:d,on:Ia,tween:ha,time:_.time,delay:_.delay,duration:_.duration,ease:_.ease,timer:null,state:0})}function vn(i,a){var s=Re(i,a);if(s.state>0)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*u<a*s&&(i=-i,a=-a,C=-C,m=-m),{translateX:d,translateY:_,rotate:Math.atan2(a,i)*Vt,skewX:Math.atan(C)*Vt,scaleX:m,scaleY:x}}function ri(i,a,s,u){function d(_){return _.length?_.pop()+" ":""}return function(_,m){var x=[],C=[];return _=i(_),m=i(m),function(A,B,Y,j,X,vt){if(A!==Y||B!==j){var ut=X.push("translate(",null,a,null,s);vt.push({i:ut-4,x:Ve(A,Y)},{i:ut-2,x:Ve(B,j)})}else(Y||j)&&X.push("translate("+Y+a+j+s)}(_.translateX,_.translateY,m.translateX,m.translateY,x,C),function(A,B,Y,j){A!==B?(A-B>180?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<j;)x[(B=C[Y]).i]=B.x(A);return x.join("")}}}var Io=ri(function(i){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(i+"");return a.isIdentity?ka:re(a.a,a.b,a.c,a.d,a.e,a.f)},"px, ","px)","deg)"),Fs=ri(function(i){return i==null?ka:(Er||(Er=document.createElementNS("http://www.w3.org/2000/svg","g")),Er.setAttribute("transform",i),(i=Er.transform.baseVal.consolidate())?re((i=i.matrix).a,i.b,i.c,i.d,i.e,i.f):ka)},", ",")",")");function bc(i,a){var s,u;return function(){var d=nr(this,i),_=d.tween;if(_!==s){for(var m=0,x=(u=s=_).length;m<x;++m)if(u[m].name===a){(u=u.slice()).splice(m,1);break}}d.tween=u}}function Ea(i,a,s){var u,d;if(typeof s!="function")throw new Error;return function(){var _=nr(this,i),m=_.tween;if(m!==u){d=(u=m).slice();for(var x={name:a,value:s},C=0,A=d.length;C<A;++C)if(d[C].name===a){d[C]=x;break}C===A&&d.push(x)}_.tween=d}}function Xn(i,a,s){var u=i._id;return i.each(function(){var d=nr(this,u);(d.value||(d.value={}))[a]=s.apply(this,arguments)}),function(d){return Re(d,u).value[a]}}function jr(i,a,s){i.prototype=a.prototype=s,s.constructor=i}function Mi(i,a){var s=Object.create(i.prototype);for(var u in a)s[u]=a[u];return s}function Hr(){}var Ri=.7,Ji=1/Ri,Bi="\\s*([+-]?\\d+)\\s*",Or="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",fi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",oi=/^#([0-9a-f]{3,8})$/,qr=new RegExp("^rgb\\("+[Bi,Bi,Bi]+"\\)$"),fa=new RegExp("^rgb\\("+[fi,fi,fi]+"\\)$"),Qi=new RegExp("^rgba\\("+[Bi,Bi,Bi,Or]+"\\)$"),Ni=new RegExp("^rgba\\("+[fi,fi,fi,Or]+"\\)$"),Ta=new RegExp("^hsl\\("+[Or,fi,fi]+"\\)$"),Jr=new RegExp("^hsla\\("+[Or,fi,fi,Or]+"\\)$"),di={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Sa(){return this.rgb().formatHex()}function da(){return this.rgb().formatRgb()}function Oo(i){var a,s;return i=(i+"").trim().toLowerCase(),(a=oi.exec(i))?(s=a[1].length,a=parseInt(a[1],16),s===6?rl(a):s===3?new rr(a>>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*(s<u):s===_?(u-a)/x+2:(a-s)/x+4,x/=C<.5?_+d:2-_-d,m*=60):x=C>0&&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 _<a.length&&(d=a.slice(_),x[m]?x[m]+=d:x[++m]=d),x.length<2?C[0]?function(A){return function(B){return A(B)+""}}(C[0].x):function(A){return function(){return A}}(a):(a=C.length,function(A){for(var B,Y=0;Y<a;++Y)x[(B=C[Y]).i]=B.x(A);return x.join("")})}function oo(i,a){var s;return(typeof a=="number"?Ve:a instanceof Oo?Gl:(s=Oo(a))?(a=s,Gl):Zl)(i,a)}function nn(i){return function(){this.removeAttribute(i)}}function uh(i){return function(){this.removeAttributeNS(i.space,i.local)}}function Pr(i,a,s){var u,d,_=s+"";return function(){var m=this.getAttribute(i);return m===_?null:m===u?d:d=a(u=m,s)}}function al(i,a,s){var u,d,_=s+"";return function(){var m=this.getAttributeNS(i.space,i.local);return m===_?null:m===u?d:d=a(u=m,s)}}function ol(i,a,s){var u,d,_;return function(){var m,x,C=s(this);if(C!=null)return(m=this.getAttribute(i))===(x=C+"")?null:m===u&&x===d?_:(d=x,_=a(u=m,C));this.removeAttribute(i)}}function Xl(i,a,s){var u,d,_;return function(){var m,x,C=s(this);if(C!=null)return(m=this.getAttributeNS(i.space,i.local))===(x=C+"")?null:m===u&&x===d?_:(d=x,_=a(u=m,C));this.removeAttributeNS(i.space,i.local)}}function Va(i,a){return function(s){this.setAttribute(i,a.call(this,s))}}function Li(i,a){return function(s){this.setAttributeNS(i.space,i.local,a.call(this,s))}}function xc(i,a){var s,u;function d(){var _=a.apply(this,arguments);return _!==u&&(s=(u=_)&&Li(i,_)),s}return d._value=a,d}function hh(i,a){var s,u;function d(){var _=a.apply(this,arguments);return _!==u&&(s=(u=_)&&Va(i,_)),s}return d._value=a,d}function Kl(i,a){return function(){vn(this,i).delay=+a.apply(this,arguments)}}function Ro(i,a){return a=+a,function(){vn(this,i).delay=a}}function fh(i,a){return function(){nr(this,i).duration=+a.apply(this,arguments)}}function Q1(i,a){return a=+a,function(){nr(this,i).duration=a}}function Wd(i,a){if(typeof a!="function")throw new Error;return function(){nr(this,i).ease=a}}function t0(i,a,s){var u,d,_=function(m){return(m+"").trim().split(/^|\s+/).every(function(x){var C=x.indexOf(".");return C>=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;m<d;++m)for(var x,C,A=u[m],B=A.length,Y=_[m]=new Array(B),j=0;j<B;++j)(x=A[j])&&(C=i.call(x,x.__data__,j,A))&&("__data__"in x&&(C.__data__=x.__data__),Y[j]=C,ji(Y[j],a,s,j,Y,Re(x,s)));return new so(_,this._parents,a,s)},selectAll:function(i){var a=this._name,s=this._id;typeof i!="function"&&(i=Nt(i));for(var u=this._groups,d=u.length,_=[],m=[],x=0;x<d;++x)for(var C,A=u[x],B=A.length,Y=0;Y<B;++Y)if(C=A[Y]){for(var j,X=i.call(C,C.__data__,Y,A),vt=Re(C,s),ut=0,wt=X.length;ut<wt;++ut)(j=X[ut])&&ji(j,a,s,ut,X,vt);_.push(X),m.push(C)}return new so(_,m,a,s)},selectChild:Ra.selectChild,selectChildren:Ra.selectChildren,filter:function(i){typeof i!="function"&&(i=yt(i));for(var a=this._groups,s=a.length,u=new Array(s),d=0;d<s;++d)for(var _,m=a[d],x=m.length,C=u[d]=[],A=0;A<x;++A)(_=m[A])&&i.call(_,_.__data__,A,m)&&C.push(_);return new so(u,this._parents,this._name,this._id)},merge:function(i){if(i._id!==this._id)throw new Error;for(var a=this._groups,s=i._groups,u=a.length,d=s.length,_=Math.min(u,d),m=new Array(u),x=0;x<_;++x)for(var C,A=a[x],B=s[x],Y=A.length,j=m[x]=new Array(Y),X=0;X<Y;++X)(C=A[X]||B[X])&&(j[X]=C);for(;x<u;++x)m[x]=a[x];return new so(m,this._parents,this._name,this._id)},selection:function(){return new e0(this._groups,this._parents)},transition:function(){for(var i=this._name,a=this._id,s=cl(),u=this._groups,d=u.length,_=0;_<d;++_)for(var m,x=u[_],C=x.length,A=0;A<C;++A)if(m=x[A]){var B=Re(m,a);ji(m,i,s,A,x,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new so(u,this._parents,i,s)},call:Ra.call,nodes:Ra.nodes,node:Ra.node,size:Ra.size,empty:Ra.empty,each:Ra.each,on:function(i,a){var s=this._id;return arguments.length<2?Re(this.node(),s).on.on(i):this.each(t0(s,i,a))},attr:function(i,a){var s=me(i),u=s==="transform"?Fs:oo;return this.attrTween(i,typeof a=="function"?(s.local?Xl:ol)(s,u,Xn(this,"attr."+i,a)):a==null?(s.local?uh:nn)(s):(s.local?al:Pr)(s,u,a))},attrTween:function(i,a){var s="attr."+i;if(arguments.length<2)return(s=this.tween(s))&&s._value;if(a==null)return this.tween(s,null);if(typeof a!="function")throw new Error;var u=me(i);return this.tween(s,(u.local?xc:hh)(u,a))},style:function(i,a,s){var u=(i+="")=="transform"?Io:oo;return a==null?this.styleTween(i,function(d,_){var m,x,C;return function(){var A=Me(this,d),B=(this.style.removeProperty(d),Me(this,d));return A===B?null:A===m&&B===x?C:C=_(m=A,x=B)}}(i,u)).on("end.style."+i,Oa(i)):typeof a=="function"?this.styleTween(i,function(d,_,m){var x,C,A;return function(){var B=Me(this,d),Y=m(this),j=Y+"";return Y==null&&(this.style.removeProperty(d),j=Y=Me(this,d)),B===j?null:B===x&&j===C?A:(C=j,A=_(x=B,Y))}}(i,u,Xn(this,"style."+i,a))).each(function(d,_){var m,x,C,A,B="style."+_,Y="end."+B;return function(){var j=nr(this,d),X=j.on,vt=j.value[B]==null?A||(A=Oa(_)):void 0;X===m&&C===vt||(x=(m=X).copy()).on(Y,C=vt),j.on=x}}(this._id,i)):this.styleTween(i,function(d,_,m){var x,C,A=m+"";return function(){var B=Me(this,d);return B===A?null:B===x?C:C=_(x=B,m)}}(i,u,a),s).on("end.style."+i,null)},styleTween:function(i,a,s){var u="style."+(i+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(a==null)return this.tween(u,null);if(typeof a!="function")throw new Error;return this.tween(u,dh(i,a,s==null?"":s))},text:function(i){return this.tween("text",typeof i=="function"?function(a){return function(){var s=a(this);this.textContent=s==null?"":s}}(Xn(this,"text",i)):function(a){return function(){this.textContent=a}}(i==null?"":i+""))},textTween:function(i){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(i==null)return this.tween(a,null);if(typeof i!="function")throw new Error;return this.tween(a,Bo(i))},remove:function(){return this.on("end.remove",function(i){return function(){var a=this.parentNode;for(var s in this.__transition)if(+s!==i)return;a&&a.removeChild(this)}}(this._id))},tween:function(i,a){var s=this._id;if(i+="",arguments.length<2){for(var u,d=Re(this.node(),s).tween,_=0,m=d.length;_<m;++_)if((u=d[_]).name===i)return u.value;return null}return this.each((a==null?bc:Ea)(s,i,a))},delay:function(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?Kl:Ro)(a,i)):Re(this.node(),a).delay},duration:function(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?fh:Q1)(a,i)):Re(this.node(),a).duration},ease:function(i){var a=this._id;return arguments.length?this.each(Wd(a,i)):Re(this.node(),a).ease},easeVarying:function(i){if(typeof i!="function")throw new Error;return this.each(function(a,s){return function(){var u=s.apply(this,arguments);if(typeof u!="function")throw new Error;nr(this,a).ease=u}}(this._id,i))},end:function(){var i,a,s=this,u=s._id,d=s.size();return new Promise(function(_,m){var x={value:m},C={value:function(){--d==0&&_()}};s.each(function(){var A=nr(this,u),B=A.on;B!==i&&((a=(i=B).copy())._.cancel.push(x),a._.interrupt.push(x),a._.end.push(C)),A.on=a}),d===0&&_()})},[Symbol.iterator]:Ra[Symbol.iterator]};var Ps={time:null,delay:0,duration:250,ease:function(i){return((i*=2)<=1?i*i*i:(i-=2)*i*i+2)/2}};function Jl(i,a){for(var s;!(s=i.__transition)||!(s=s[a]);)if(!(i=i.parentNode))throw new Error(`transition ${a} not found`);return s}$n.prototype.interrupt=function(i){return this.each(function(){(function(a,s){var u,d,_,m=a.__transition,x=!0;if(m){for(_ in s=s==null?null:s+"",m)(u=m[_]).name===s?(d=u.state>2&&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;_<d;++_)for(var m,x=u[_],C=x.length,A=0;A<C;++A)(m=x[A])&&ji(m,i,a,A,x,s||Jl(m,a));return new so(u,this._parents,i,a)};function Fo(i,a,s){i.prototype=a.prototype=s,s.constructor=i}function ea(i,a){var s=Object.create(i.prototype);for(var u in a)s[u]=a[u];return s}function ki(){}var co=.7,Za=1/co,pa="\\s*([+-]?\\d+)\\s*",sr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",I="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",H=/^#([0-9a-f]{3,8})$/,tt=new RegExp("^rgb\\("+[pa,pa,pa]+"\\)$"),_t=new RegExp("^rgb\\("+[I,I,I]+"\\)$"),te=new RegExp("^rgba\\("+[pa,pa,pa,sr]+"\\)$"),Se=new RegExp("^rgba\\("+[I,I,I,sr]+"\\)$"),Fe=new RegExp("^hsl\\("+[sr,I,I]+"\\)$"),Ze=new RegExp("^hsla\\("+[sr,I,I,sr]+"\\)$"),Xe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function an(){return this.rgb().formatHex()}function hn(){return this.rgb().formatRgb()}function Un(i){var a,s;return i=(i+"").trim().toLowerCase(),(a=H.exec(i))?(s=a[1].length,a=parseInt(a[1],16),s===6?Rn(a):s===3?new _r(a>>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*(s<u):s===_?(u-a)/x+2:(a-s)/x+4,x/=C<.5?_+d:2-_-d,m*=60):x=C>0&&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.l&&i.l<100?0:NaN,i.l,i.opacity);var a=Math.atan2(i.b,i.a)*Ey;return new zs(a<0?a+360:a,Math.sqrt(i.a*i.a+i.b*i.b),i.l,i.opacity)}function n2(i,a,s,u){return arguments.length===1?zv(i):new zs(i,a,s,u==null?1:u)}function zs(i,a,s,u){this.h=+i,this.c=+a,this.l=+s,this.opacity=+u}function Sy(i){if(isNaN(i.h))return new cs(i.l,0,0,i.opacity);var a=i.h*ky;return new cs(i.l,Math.cos(a)*i.c,Math.sin(a)*i.c,i.opacity)}Fo(cs,function(i,a,s,u){return arguments.length===1?Kd(i):new cs(i,a,s,u==null?1:u)},ea(ki,{brighter:function(i){return new cs(this.l+18*(i==null?1:i),this.a,this.b,this.opacity)},darker:function(i){return new cs(this.l-18*(i==null?1:i),this.a,this.b,this.opacity)},rgb:function(){var i=(this.l+16)/116,a=isNaN(this.a)?i:i+this.a/500,s=isNaN(this.b)?i:i-this.b/200;return new _r(t2(3.1338561*(a=Vd*Qd(a))-1.6168667*(i=1*Qd(i))-.4906146*(s=Zd*Qd(s))),t2(-.9787684*a+1.9161415*i+.033454*s),t2(.0719453*a-.2289914*i+1.4052427*s),this.opacity)}})),Fo(zs,n2,ea(ki,{brighter:function(i){return new zs(this.h,this.c,this.l+18*(i==null?1:i),this.opacity)},darker:function(i){return new zs(this.h,this.c,this.l-18*(i==null?1:i),this.opacity)},rgb:function(){return Sy(this).rgb()}}));const r2=i=>()=>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),a<i?-d:d}function l2(i,a){return i==null||a==null?NaN:i<a?-1:i>a?1:i>=a?0:NaN}function u2(i){let a=i,s=i,u=i;function d(_,m,x=0,C=_.length){if(x<C){if(s(m,m)!==0)return C;do{const A=x+C>>>1;u(_[A],m)<0?x=A+1:C=A}while(x<C)}return x}return i.length!==2&&(a=(_,m)=>i(_)-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<C){if(s(m,m)!==0)return C;do{const A=x+C>>>1;u(_[A],m)<=0?x=A+1:C=A}while(x<C)}return x}}}const jv=u2(l2),Hv=jv.right,ls=(u2(function(i){return i===null?NaN:+i}).center,Hv);function i0(i,a,s){i.prototype=a.prototype=s,s.constructor=i}function h2(i,a){var s=Object.create(i.prototype);for(var u in a)s[u]=a[u];return s}function us(){}var a0=.7,o0=1.4285714285714286,wc="\\s*([+-]?\\d+)\\s*",ll="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",hs="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qv=/^#([0-9a-f]{3,8})$/,Wv=new RegExp("^rgb\\("+[wc,wc,wc]+"\\)$"),f2=new RegExp("^rgb\\("+[hs,hs,hs]+"\\)$"),Gv=new RegExp("^rgba\\("+[wc,wc,wc,ll]+"\\)$"),Cy=new RegExp("^rgba\\("+[hs,hs,hs,ll]+"\\)$"),d2=new RegExp("^hsl\\("+[ll,hs,hs]+"\\)$"),My=new RegExp("^hsla\\("+[ll,hs,hs,ll]+"\\)$"),s0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ul(){return this.rgb().formatHex()}function hl(){return this.rgb().formatRgb()}function Ql(i){var a,s;return i=(i+"").trim().toLowerCase(),(a=qv.exec(i))?(s=a[1].length,a=parseInt(a[1],16),s===6?c0(a):s===3?new lo(a>>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*(s<u):s===_?(u-a)/x+2:(a-s)/x+4,x/=C<.5?_+d:2-_-d,m*=60):x=C>0&&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;++s)_[s]=p0(i[s],a[s]);for(;s<u;++s)m[s]=a[s];return function(x){for(s=0;s<d;++s)m[s]=_[s](x);return m}}function Zv(i,a){var s=new Date;return i=+i,a=+a,function(u){return s.setTime(i*(1-u)+a*u),s}}function d0(i,a){return i=+i,a=+a,function(s){return i*(1-s)+a*s}}function Xv(i,a){var s,u={},d={};for(s in i!==null&&typeof i=="object"||(i={}),a!==null&&typeof a=="object"||(a={}),a)s in i?u[s]=p0(i[s],a[s]):d[s]=a[s];return function(_){for(s in u)d[s]=u[s](_);return d}}var m2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vh=new RegExp(m2.source,"g");function Iy(i,a){var s,u,d,_=m2.lastIndex=vh.lastIndex=0,m=-1,x=[],C=[];for(i+="",a+="";(s=m2.exec(i))&&(u=vh.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:d0(s,u)})),_=vh.lastIndex;return _<a.length&&(d=a.slice(_),x[m]?x[m]+=d:x[++m]=d),x.length<2?C[0]?function(A){return function(B){return A(B)+""}}(C[0].x):function(A){return function(){return A}}(a):(a=C.length,function(A){for(var B,Y=0;Y<a;++Y)x[(B=C[Y]).i]=B.x(A);return x.join("")})}function Oy(i,a){a||(a=[]);var s,u=i?Math.min(a.length,i.length):0,d=a.slice();return function(_){for(s=0;s<u;++s)d[s]=i[s]*(1-_)+a[s]*_;return d}}function p0(i,a){var s,u,d=typeof a;return a==null||d==="boolean"?y2(a):(d==="number"?d0:d==="string"?(s=Ql(a))?(a=s,f0):Iy:a instanceof Ql?f0:a instanceof Date?Zv:(u=a,!ArrayBuffer.isView(u)||u instanceof DataView?Array.isArray(a)?Vv:typeof a.valueOf!="function"&&typeof a.toString!="function"||isNaN(a)?Xv:d0:Oy))(i,a)}function g0(i,a){return i=+i,a=+a,function(s){return Math.round(i*(1-s)+a*s)}}function Ry(i){return+i}var _2=[0,1];function eu(i){return i}function v2(i,a){return(a-=i=+i)?function(u){return(u-i)/a}:(s=isNaN(a)?NaN:.5,function(){return s});var s}function Kv(i,a,s){var u=i[0],d=i[1],_=a[0],m=a[1];return d<u?(u=v2(d,u),_=s(m,_)):(u=v2(u,d),_=s(_,m)),function(x){return _(u(x))}}function b2(i,a,s){var u=Math.min(i.length,a.length)-1,d=new Array(u),_=new Array(u),m=-1;for(i[u]<i[0]&&(i=i.slice().reverse(),a=a.slice().reverse());++m<u;)d[m]=v2(i[m],i[m+1]),_[m]=s(a[m],a[m+1]);return function(x){var C=ls(i,x,1,u)-1;return _[C](d[C](x))}}function y0(i,a){return a.domain(i.domain()).range(i.range()).interpolate(i.interpolate()).clamp(i.clamp()).unknown(i.unknown())}function m0(){return function(){var i,a,s,u,d,_,m=_2,x=_2,C=p0,A=eu;function B(){var j,X,vt,ut=Math.min(m.length,x.length);return A!==eu&&(j=m[0],X=m[ut-1],j>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=_<d)&&(C=d,d=_,_=C),(B=s2(d,_,m))===0||!isFinite(B))return[];if(B>0){let j=Math.round(d/B),X=Math.round(_/B);for(j*B<d&&++j,X*B>_&&--X,A=new Array(C=X-j+1);++Y<C;)A[Y]=(j+Y)*B}else{B=-B;let j=Math.round(d*B),X=Math.round(_*B);for(j/B<d&&++j,X/B>_&&--X,A=new Array(C=X-j+1);++Y<C;)A[Y]=(j+Y)/B}return x&&A.reverse(),A}(u[0],u[u.length-1],s==null?10:s)},i.tickFormat=function(s,u){var d=a();return function(_,m,x,C){var A,B=c2(_,m,x);switch((C=bh(C==null?",f":C)).type){case"s":var Y=Math.max(Math.abs(_),Math.abs(m));return C.precision!=null||isNaN(A=function(j,X){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(nu(X)/3)))-nu(Math.abs(j)))}(B,Y))||(C.precision=A),xh(C,Y);case"":case"e":case"g":case"p":case"r":C.precision!=null||isNaN(A=function(j,X){return j=Math.abs(j),X=Math.abs(X)-j,Math.max(0,nu(X)-nu(j))+1}(B,Math.max(Math.abs(_),Math.abs(m))))||(C.precision=A-(C.type==="e"));break;case"f":case"%":C.precision!=null||isNaN(A=function(j){return Math.max(0,-nu(Math.abs(j)))}(B))||(C.precision=A-2*(C.type==="%"))}return uo(C)}(d[0],d[d.length-1],s==null?10:s,u)},i.nice=function(s){s==null&&(s=10);var u,d,_=a(),m=0,x=_.length-1,C=_[m],A=_[x],B=10;for(A<C&&(d=C,C=A,A=d,d=m,m=x,x=d);B-- >0;){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;cn<yn;++cn)switch(ze[cn]){case".":Ln=je=cn;break;case"0":Ln===0&&(Ln=cn),je=cn;break;default:if(!+ze[cn])break t;Ln>0&&(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<Tt;)if(48>(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<Dt?new Array(Dt-pe+1).join(X):"";switch(At&&xt&&(mt=u(Ee+mt,Ee.length?Dt-Qt.length:1/0),Ee=""),vt){case"<":mt=Ce+mt+Qt+Ee;break;case"=":mt=Ce+Ee+mt+Qt;break;case"^":mt=Ee.slice(0,pe=Ee.length>>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 _-m<x-_?m:x},d.offset=function(_,m){return a(_=new Date(+_),m==null?1:Math.floor(m)),_},d.range=function(_,m,x){var C,A=[];if(_=d.ceil(_),x=x==null?1:Math.floor(x),!(_<m&&x>0))return A;do A.push(C=new Date(+_)),a(_,x),i(_);while(C<_&&_<m);return A},d.filter=function(_){return Hi(function(m){if(m>=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]<m[j][2]/Y?j-1:j];return X.every(vt)}return[function(C,A,B){const Y=A<C;Y&&([C,A]=[A,C]);const j=B&&typeof B.range=="function"?B:x(C,A,B),X=j?j.range(C,+A+1):[];return Y?X.reverse():X},x]}const[Wy,t4]=fl(qs,N2,E0,au,k0,Eh);function ps(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 I2(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 Sh(i,a,s){return{y:i,m:a,d:s,H:0,M:0,S:0,L:0}}var Ah,Gy,gs={"-":"",_:" ",0:"0"},qi=/^\s*\d+/,O2=/^%/,R2=/[\\^$*+?|[\]().{}]/g;function Mr(i,a,s){var u=i<0?"-":"",d=(u?-i:i)+"",_=d.length;return u+(_<s?new Array(s-_+1).join(a)+d:d)}function e4(i){return i.replace(R2,"\\$&")}function Ch(i){return new RegExp("^(?:"+i.map(e4).join("|")+")","i")}function Mh(i){return new Map(i.map((a,s)=>[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)<jt?X:x(jt)<jt?vt:m(jt)<jt?ut:_(jt)<jt?wt:u(jt)<jt?d(jt)<jt?xt:Dt:s(jt)<jt?At:Zt)(jt)}return B.invert=function(jt){return new Date(Y(jt))},B.domain=function(jt){return arguments.length?j(Array.from(jt,N4)):j().map(M4)},B.ticks=function(jt){var ne=j();return i(ne[0],ne[ne.length-1],jt==null?10:jt)},B.tickFormat=function(jt,ne){return ne==null?se:A(ne)},B.nice=function(jt){var ne=j();return jt&&typeof jt.range=="function"||(jt=a(ne[0],ne[ne.length-1],jt==null?10:jt)),jt?j(function(ie,Ot){var It,Ct=0,mt=(ie=ie.slice()).length-1,Ut=ie[Ct],Tt=ie[mt];return Tt<Ut&&(It=Ct,Ct=mt,mt=It,It=Ut,Ut=Tt,Tt=It),ie[Ct]=Ot.floor(Ut),ie[mt]=Ot.ceil(Tt),ie}(ne,jt)):B},B.copy=function(){return y0(B,ym(i,a,s,u,d,_,m,x,C,A))},B}function L4(){}function cu(i){return i==null?L4:function(){return this.querySelector(i)}}function Y2(i){return i==null?[]:Array.isArray(i)?i:Array.from(i)}function D4(){return[]}function mm(i){return i==null?D4:function(){return this.querySelectorAll(i)}}function _m(i){return function(){return this.matches(i)}}function vm(i){return function(a){return a.matches(i)}}Ah=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=Ch(d),B=Mh(d),Y=Ch(_),j=Mh(_),X=Ch(m),vt=Mh(m),ut=Ch(x),wt=Mh(x),xt=Ch(C),Dt=Mh(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:Qy,e:Qy,f:h4,g:b4,G:am,H:pl,I:tm,j:u4,L:em,m:f4,M:d4,p:function(Ot){return d[+(Ot.getHours()>=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));++Ce<ke;)Ot.charCodeAt(Ce)===37&&(Te.push(Ot.slice(Qt,Ce)),(Ut=gs[mt=Ot.charAt(++Ce)])!=null?mt=Ot.charAt(++Ce):Ut=mt==="e"?" ":"0",(Tt=It[mt])&&(mt=Tt(Ct,Ut)),Te.push(mt),Qt=Ce+1);return Te.push(Ot.slice(Qt,Ce)),Te.join("")}}function ne(Ot,It){return function(Ct){var mt,Ut,Tt=Sh(1900,void 0,1);if(ie(Tt,Ot,Ct+="",0)!=Ct.length)return null;if("Q"in Tt)return new Date(Tt.Q);if("s"in Tt)return new Date(1e3*Tt.s+("L"in Tt?Tt.L:0));if(It&&!("Z"in Tt)&&(Tt.Z=0),"p"in Tt&&(Tt.H=Tt.H%12+12*Tt.p),Tt.m===void 0&&(Tt.m="q"in Tt?Tt.q:0),"V"in Tt){if(Tt.V<1||Tt.V>53)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<Ce;){if(mt>=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;x<A;++x)(m=a[x])?(m.__data__=_[x],u[x]=m):s[x]=new C0(i,_[x]);for(;x<C;++x)(m=a[x])&&(d[x]=m)}function Ac(i,a,s,u,d,_,m){var x,C,A,B=new Map,Y=a.length,j=_.length,X=new Array(Y);for(x=0;x<Y;++x)(C=a[x])&&(X[x]=A=m.call(C,C.__data__,x,a)+"",B.has(A)?d[x]=C:B.set(A,C));for(x=0;x<j;++x)A=m.call(i,_[x],x,_)+"",(C=B.get(A))?(u[x]=C,C.__data__=_[x],B.delete(A)):s[x]=new C0(i,_[x]);for(x=0;x<Y;++x)(C=a[x])&&B.get(X[x])===C&&(d[x]=C)}function xm(i){return i.__data__}function Pa(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function F4(i,a){return i<a?-1:i>a?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<d;)s.add(a[u])}function W2(i,a){for(var s=q2(i),u=-1,d=a.length;++u<d;)s.remove(a[u])}function V4(i){return function(){gl(this,i)}}function Oh(i){return function(){W2(this,i)}}function M0(i,a){return function(){(a.apply(this,arguments)?gl:W2)(this,i)}}function Em(){this.textContent=""}function Tm(i){return function(){this.textContent=i}}function Sm(i){return function(){var a=i.apply(this,arguments);this.textContent=a==null?"":a}}function N0(){this.innerHTML=""}function L0(i){return function(){this.innerHTML=i}}function G2(i){return function(){var a=i.apply(this,arguments);this.innerHTML=a==null?"":a}}function Am(){this.nextSibling&&this.parentNode.appendChild(this)}function Cm(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Mm(i){return function(){var a=this.ownerDocument,s=this.namespaceURI;return s===j2&&a.documentElement.namespaceURI===j2?a.createElement(i):a.createElementNS(s,i)}}function Nm(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function V2(i){var a=lu(i);return(a.local?Nm:Mm)(a)}function Lm(){return null}function Dm(){var i=this.parentNode;i&&i.removeChild(this)}function Cc(){var i=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function D0(){var i=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function I0(i){return i.trim().split(/^|\s+/).map(function(a){var s="",u=a.indexOf(".");return 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<x;++m)if((u=d[m]).type===i.type&&u.name===i.name)return this.removeEventListener(u.type,u.listener,u.options),this.addEventListener(u.type,u.listener=_,u.options=s),void(u.value=a)}this.addEventListener(i.type,_,s),u={type:i.type,name:i.name,value:a,listener:_,options:s},d?d.push(u):this.__on=[u]}}function Rh(i,a,s){var u=H2(i),d=u.CustomEvent;typeof d=="function"?d=new d(a,s):(d=u.document.createEvent("Event"),s?(d.initEvent(a,s.bubbles,s.cancelable),d.detail=s.detail):d.initEvent(a,!1,!1)),i.dispatchEvent(d)}function pr(i,a){return function(){return Rh(this,i,a)}}function Ei(i,a){return function(){return Rh(this,i,a.apply(this,arguments))}}Ih.prototype={add:function(i){this._names.indexOf(i)<0&&(this._names.push(i),this._node.setAttribute("class",this._names.join(" ")))},remove:function(i){var a=this._names.indexOf(i);a>=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<s;++d)for(var _,m,x=a[d],C=x.length,A=u[d]=new Array(C),B=0;B<C;++B)(_=x[B])&&(m=i.call(_,_.__data__,B,x))&&("__data__"in _&&(m.__data__=_.__data__),A[B]=m);return new zr(u,this._parents)},selectAll:function(i){i=typeof i=="function"?function(B){return function(){return Y2(B.apply(this,arguments))}}(i):mm(i);for(var a=this._groups,s=a.length,u=[],d=[],_=0;_<s;++_)for(var m,x=a[_],C=x.length,A=0;A<C;++A)(m=x[A])&&(u.push(i.call(m,m.__data__,A,x)),d.push(m));return new zr(u,d)},selectChild:function(i){return this.select(i==null?O4:function(a){return function(){return I4.call(this.children,a)}}(typeof i=="function"?i:vm(i)))},selectChildren:function(i){return this.selectAll(i==null?R4:function(a){return function(){return $2.call(this.children,a)}}(typeof i=="function"?i:vm(i)))},filter:function(i){typeof i!="function"&&(i=_m(i));for(var a=this._groups,s=a.length,u=new Array(s),d=0;d<s;++d)for(var _,m=a[d],x=m.length,C=u[d]=[],A=0;A<x;++A)(_=m[A])&&i.call(_,_.__data__,A,m)&&C.push(_);return new zr(u,this._parents)},data:function(i,a){if(!arguments.length)return Array.from(this,xm);var s=a?Ac:Wi,u=this._parents,d=this._groups;typeof i!="function"&&(i=B4(i));for(var _=d.length,m=new Array(_),x=new Array(_),C=new Array(_),A=0;A<_;++A){var B=u[A],Y=d[A],j=Y.length,X=Pa(i.call(B,B&&B.__data__,A,u)),vt=X.length,ut=x[A]=new Array(vt),wt=m[A]=new Array(vt),xt=C[A]=new Array(j);s(B,Y,ut,wt,xt,X,a);for(var Dt,At,Zt=0,se=0;Zt<vt;++Zt)if(Dt=ut[Zt]){for(Zt>=se&&(se=Zt+1);!(At=wt[se])&&++se<vt;);Dt._next=At||null}}return(m=new zr(m,u))._enter=x,m._exit=C,m},enter:function(){return new zr(this._enter||this._groups.map(bm),this._parents)},exit:function(){return new zr(this._exit||this._groups.map(bm),this._parents)},join:function(i,a,s){var u=this.enter(),d=this,_=this.exit();return typeof i=="function"?(u=i(u))&&(u=u.selection()):u=u.append(i+""),a!=null&&(d=a(d))&&(d=d.selection()),s==null?_.remove():s(_),u&&d?u.merge(d).order():d},merge:function(i){for(var a=i.selection?i.selection():i,s=this._groups,u=a._groups,d=s.length,_=u.length,m=Math.min(d,_),x=new Array(d),C=0;C<m;++C)for(var A,B=s[C],Y=u[C],j=B.length,X=x[C]=new Array(j),vt=0;vt<j;++vt)(A=B[vt]||Y[vt])&&(X[vt]=A);for(;C<d;++C)x[C]=s[C];return new zr(x,this._parents)},selection:function(){return this},order:function(){for(var i=this._groups,a=-1,s=i.length;++a<s;)for(var u,d=i[a],_=d.length-1,m=d[_];--_>=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;_<u;++_){for(var m,x=s[_],C=x.length,A=d[_]=new Array(C),B=0;B<C;++B)(m=x[B])&&(A[B]=m);A.sort(a)}return new zr(d,this._parents).order()},call:function(){var i=arguments[0];return arguments[0]=this,i.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var i=this._groups,a=0,s=i.length;a<s;++a)for(var u=i[a],d=0,_=u.length;d<_;++d){var m=u[d];if(m)return m}return null},size:function(){let i=0;for(const a of this)++i;return i},empty:function(){return!this.node()},each:function(i){for(var a=this._groups,s=0,u=a.length;s<u;++s)for(var d,_=a[s],m=0,x=_.length;m<x;++m)(d=_[m])&&i.call(d,d.__data__,m,_);return this},attr:function(i,a){var s=lu(i);if(arguments.length<2){var u=this.node();return s.local?u.getAttributeNS(s.space,s.local):u.getAttribute(s)}return this.each((a==null?s.local?Ua:wm:typeof a=="function"?s.local?Y4:z4:s.local?U4:P4)(s,a))},style:function(i,a,s){return arguments.length>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;u<m;++u)this.each(x(_[u],a,s));return this}var x=this.node().__on;if(x){for(var C,A=0,B=x.length;A<B;++A)for(u=0,C=x[A];u<m;++u)if((d=_[u]).type===C.type&&d.name===C.name)return C.value}},dispatch:function(i,a){return this.each((typeof a=="function"?Ei:pr)(i,a))},[Symbol.iterator]:function*(){for(var i=this._groups,a=0,s=i.length;a<s;++a)for(var u,d=i[a],_=0,m=d.length;_<m;++_)(u=d[_])&&(yield u)}};const Fn=Vr;function He(i){return typeof i=="string"?new zr([[document.querySelector(i)]],[document.documentElement]):new zr([[i]],hu)}function Mc(i){return typeof i=="string"?new zr([document.querySelectorAll(i)],[document.documentElement]):new zr([Y2(i)],hu)}const ga=Math.PI,Mn=2*ga,ys=1e-6,Om=Mn-ys;function fu(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function O0(){return new fu}fu.prototype=O0.prototype={constructor:fu,moveTo:function(i,a){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+a)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(i,a){this._+="L"+(this._x1=+i)+","+(this._y1=+a)},quadraticCurveTo:function(i,a,s,u){this._+="Q"+ +i+","+ +a+","+(this._x1=+s)+","+(this._y1=+u)},bezierCurveTo:function(i,a,s,u,d,_){this._+="C"+ +i+","+ +a+","+ +s+","+ +u+","+(this._x1=+d)+","+(this._y1=+_)},arcTo:function(i,a,s,u,d){i=+i,a=+a,s=+s,u=+u,d=+d;var _=this._x1,m=this._y1,x=s-i,C=u-a,A=_-i,B=m-a,Y=A*A+B*B;if(d<0)throw new Error("negative radius: "+d);if(this._x1===null)this._+="M"+(this._x1=i)+","+(this._y1=a);else if(Y>ys)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*j<Ya))return[i+(j=(B*(a-_)-Y*(i-d))/j)*C,a+j*A]}function ho(i,a,s,u,d,_,m){var x=i-s,C=a-u,A=(m?_:-_)/Ws(x*x+C*C),B=A*C,Y=-A*x,j=i+B,X=a+Y,vt=s+B,ut=u+Y,wt=(j+vt)/2,xt=(X+ut)/2,Dt=vt-j,At=ut-X,Zt=Dt*Dt+At*At,se=d-_,jt=j*ut-vt*X,ne=(At<0?-1:1)*Ws(za(0,se*se*Zt-jt*jt)),ie=(jt*At-Dt*ne)/Zt,Ot=(-jt*Dt-At*ne)/Zt,It=(jt*At+Dt*ne)/Zt,Ct=(-jt*Dt+At*ne)/Zt,mt=ie-wt,Ut=Ot-xt,Tt=It-wt,Te=Ct-xt;return mt*mt+Ut*Ut>Tt*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()),j<Y&&(B=j,j=Y,Y=B),j>Ya)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(ut<du&&(Ee=F0(Ce,Qt,yn,cn,ze,je,ke,pe))){var Ln=Ce-Ee[0],ar=Qt-Ee[1],Fr=ze-Ee[0],En=je-Ee[1],Kr=1/Lr(Yo((Ln*Fr+ar*En)/(Ws(Ln*Ln+ar*ar)*Ws(Fr*Fr+En*En)))/2),ci=Ws(Ee[0]*Ee[0]+Ee[1]*Ee[1]);mt=R0(Ct,(Y-ci)/(Kr-1)),Ut=R0(Ct,(j-ci)/(Kr+1))}}ie>Ya?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),Ut<Ct?x.arc(xt.cx,xt.cy,Ut,na(xt.y01,xt.x01),na(Dt.y01,Dt.x01),!wt):(x.arc(xt.cx,xt.cy,Ut,na(xt.y01,xt.x01),na(xt.y11,xt.x11),!wt),x.arc(0,0,j,na(xt.cy+xt.y11,xt.cx+xt.x11),na(Dt.cy+Dt.y11,Dt.cx+Dt.x11),!wt),x.arc(Dt.cx,Dt.cy,Ut,na(Dt.y11,Dt.x11),na(Dt.y01,Dt.x01),!wt))):(x.moveTo(Ce,Qt),x.arc(0,0,j,At,Zt,!wt)):x.moveTo(Ce,Qt),Y>Ya&&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),mt<Ct?x.arc(xt.cx,xt.cy,mt,na(xt.y01,xt.x01),na(Dt.y01,Dt.x01),!wt):(x.arc(xt.cx,xt.cy,mt,na(xt.y01,xt.x01),na(xt.y11,xt.x11),!wt),x.arc(0,0,Y,na(xt.cy+xt.y11,xt.cx+xt.x11),na(Dt.cy+Dt.y11,Dt.cx+Dt.x11),wt),x.arc(Dt.cx,Dt.cy,mt,na(Dt.y11,Dt.x11),na(Dt.y01,Dt.x01),!wt))):x.arc(0,0,Y,jt,se,wt):x.lineTo(ke,pe)}else x.moveTo(0,0);if(x.closePath(),A)return x=null,A+""||null}return C.centroid=function(){var A=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2,B=(+d.apply(this,arguments)+ +_.apply(this,arguments))/2-du/2;return[Nc(B)*A,Lr(B)*A]},C.innerRadius=function(A){return arguments.length?(i=typeof A=="function"?A:Nr(+A),C):i},C.outerRadius=function(A){return arguments.length?(a=typeof A=="function"?A:Nr(+A),C):a},C.cornerRadius=function(A){return arguments.length?(s=typeof A=="function"?A:Nr(+A),C):s},C.padRadius=function(A){return arguments.length?(u=A==null?null:typeof A=="function"?A:Nr(+A),C):u},C.startAngle=function(A){return arguments.length?(d=typeof A=="function"?A:Nr(+A),C):d},C.endAngle=function(A){return arguments.length?(_=typeof A=="function"?A:Nr(+A),C):_},C.padAngle=function(A){return arguments.length?(m=typeof A=="function"?A:Nr(+A),C):m},C.context=function(A){return arguments.length?(x=A==null?null:A,C):x},C}function Bm(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function Fm(i){this._context=i}function xo(i){return new Fm(i)}function Z4(i){return i[0]}function P0(i){return i[1]}function $o(i,a){var s=Nr(!0),u=null,d=xo,_=null;function m(x){var C,A,B,Y=(x=Bm(x)).length,j=!1;for(u==null&&(_=d(B=xn())),C=0;C<=Y;++C)!(C<Y&&s(A=x[C],C,x))===j&&((j=!j)?_.lineStart():_.lineEnd()),j&&_.point(+i(A,C,x),+a(A,C,x));if(B)return _=null,B+""||null}return i=typeof i=="function"?i:i===void 0?Z4:Nr(i),a=typeof a=="function"?a:a===void 0?P0:Nr(a),m.x=function(x){return arguments.length?(i=typeof x=="function"?x:Nr(+x),m):i},m.y=function(x){return arguments.length?(a=typeof x=="function"?x:Nr(+x),m):a},m.defined=function(x){return arguments.length?(s=typeof x=="function"?x:Nr(!!x),m):s},m.curve=function(x){return arguments.length?(d=x,u!=null&&(_=d(u)),m):d},m.context=function(x){return arguments.length?(x==null?u=_=null:_=d(u=x),m):u},m}function U0(i,a){return a<i?-1:a>i?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<u-1;++a)d[a]=1,_[a]=4,m[a]=4*i[a]+2*i[a+1];for(d[u-1]=2,_[u-1]=7,m[u-1]=8*i[u-1]+i[u],a=1;a<u;++a)s=d[a]/_[a-1],_[a]-=s,m[a]-=s*m[a-1];for(d[u-1]=m[u-1]/_[u-1],a=u-2;a>=0;--a)d[a]=(m[a]-d[a+1])/_[a];for(_[u-1]=(i[u]+d[u-1])/2,a=0;a<u-1;++a)_[a]=2*i[a+1]-d[a+1];return[d,_]}function ml(i,a){this._context=i,this._t=a}Fm.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(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:this._context.lineTo(i,a)}}},Fh.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:yl(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(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:yl(this,i,a)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}},$a.prototype={areaStart:yu,areaEnd:yu,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(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._x2=i,this._y2=a;break;case 1:this._point=2,this._x3=i,this._y3=a;break;case 2:this._point=3,this._x4=i,this._y4=a,this._context.moveTo((this._x0+4*this._x1+i)/6,(this._y0+4*this._y1+a)/6);break;default:yl(this,i,a)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}},mi.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(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var s=(this._x0+4*this._x1+i)/6,u=(this._y0+4*this._y1+a)/6;this._line?this._context.lineTo(s,u):this._context.moveTo(s,u);break;case 3:this._point=4;default:yl(this,i,a)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}},Ja.prototype={areaStart:yu,areaEnd:yu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(i,a){i=+i,a=+a,this._point?this._context.lineTo(i,a):(this._point=1,this._context.moveTo(i,a))}},jo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Dc(this,this._t0,ep(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){var s=NaN;if(a=+a,(i=+i)!==this._x1||a!==this._y1){switch(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;break;case 2:this._point=3,Dc(this,ep(this,s=tp(this,i,a)),s);break;default:Dc(this,this._t0,s=tp(this,i,a))}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a,this._t0=s}}},(ms.prototype=Object.create(jo.prototype)).point=function(i,a){jo.prototype.point.call(this,a,i)},mu.prototype={moveTo:function(i,a){this._context.moveTo(a,i)},closePath:function(){this._context.closePath()},lineTo:function(i,a){this._context.lineTo(a,i)},bezierCurveTo:function(i,a,s,u,d,_){this._context.bezierCurveTo(a,i,u,s,_,d)}},Ph.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var i=this._x,a=this._y,s=i.length;if(s)if(this._line?this._context.lineTo(i[0],a[0]):this._context.moveTo(i[0],a[0]),s===2)this._context.lineTo(i[1],a[1]);else for(var u=Uh(i),d=Uh(a),_=0,m=1;m<s;++_,++m)this._context.bezierCurveTo(u[0][_],d[0][_],u[1][_],d[1][_],i[m],a[m]);(this._line||this._line!==0&&s===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(i,a){this._x.push(+i),this._y.push(+a)}},ml.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(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 _-m<x-_?m:x},d.offset=function(_,m){return a(_=new Date(+_),m==null?1:Math.floor(m)),_},d.range=function(_,m,x){var C,A=[];if(_=d.ceil(_),x=x==null?1:Math.floor(x),!(_<m&&x>0))return A;do A.push(C=new Date(+_)),a(_,x),i(_);while(C<_&&_<m);return A},d.filter=function(_){return wo(function(m){if(m>=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+(_<s?new Array(s-_+1).join(a)+d:d)}function Ym(i){return i.replace(X4,"\\$&")}function Hh(i){return new RegExp("^(?:"+i.map(Ym).join("|")+")","i")}function qh(i){return new Map(i.map((a,s)=>[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));++Ce<ke;)Ot.charCodeAt(Ce)===37&&(Te.push(Ot.slice(Qt,Ce)),(Ut=$0[mt=Ot.charAt(++Ce)])!=null?mt=Ot.charAt(++Ce):Ut=mt==="e"?" ":"0",(Tt=It[mt])&&(mt=Tt(Ct,Ut)),Te.push(mt),Qt=Ce+1);return Te.push(Ot.slice(Qt,Ce)),Te.join("")}}function ne(Ot,It){return function(Ct){var mt,Ut,Tt=wu(1900,void 0,1);if(ie(Tt,Ot,Ct+="",0)!=Ct.length)return null;if("Q"in Tt)return new Date(Tt.Q);if("s"in Tt)return new Date(1e3*Tt.s+("L"in Tt?Tt.L:0));if(It&&!("Z"in Tt)&&(Tt.Z=0),"p"in Tt&&(Tt.H=Tt.H%12+12*Tt.p),Tt.m===void 0&&(Tt.m="q"in Tt?Tt.q:0),"V"in Tt){if(Tt.V<1||Tt.V>53)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<Ce;){if(mt>=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<s;++a){if(!(i=arguments[a]+"")||i in u||/[\s.]/.test(i))throw new Error("illegal type: "+i);u[i]=[]}return new of(u)}function of(i){this._=i}function l5(i,a){return i.trim().split(/^|\s+/).map(function(s){var u="",d=s.indexOf(".");if(d>=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;u<d;++u)if((s=i[u]).name===a)return s.value}function d_(i,a,s){for(var u=0,d=i.length;u<d;++u)if(i[u].name===a){i[u]=dp,i=i.slice(0,u).concat(i.slice(u+1));break}return s!=null&&i.push({name:a,value:s}),i}of.prototype=Vs.prototype={constructor:of,on:function(i,a){var s,u=this._,d=l5(i+"",u),_=-1,m=d.length;if(!(arguments.length<2)){if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++_<m;)if(s=(i=d[_]).type)u[s]=d_(u[s],i.name,a);else if(a==null)for(s in u)u[s]=d_(u[s],i.name,null);return this}for(;++_<m;)if((s=(i=d[_]).type)&&(s=f_(u[s],i.name)))return s},copy:function(){var i={},a=this._;for(var s in a)i[s]=a[s].slice();return new of(i)},call:function(i,a){if((s=arguments.length-2)>0)for(var s,u,d=new Array(s),_=0;_<s;++_)d[_]=arguments[_+2];if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(_=0,s=(u=this._[i]).length;_<s;++_)u[_].value.apply(a,d)},apply:function(i,a,s){if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(var u=this._[i],d=0,_=u.length;d<_;++d)u[d].value.apply(a,s)}};const p_=Vs;var Zs,Ic,_s=0,Oc=0,Vh=0,vl=0,Rc=0,Zh=0,Qa=typeof performance=="object"&&performance.now?performance:Date,qo=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(i){setTimeout(i,17)};function Xh(){return Rc||(qo(pp),Rc=Qa.now()+Zh)}function pp(){Rc=0}function Bc(){this._call=this._time=this._next=null}function Kh(i,a,s){var u=new Bc;return u.restart(i,a,s),u}function Jh(){Rc=(vl=Qa.now())+Zh,_s=Oc=0;try{(function(){Xh(),++_s;for(var i,a=Zs;a;)(i=Rc-a._time)>=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]):+wt<C&&(At.state=6,At.timer.stop(),At.on.call("cancel",x,x.__data__,At.index,At.group),delete Y[wt])}if(sf(function(){A.state===3&&(A.state=4,A.timer.restart(X,A.delay,A.time),X(ut))}),A.state=2,A.on.call("start",x,x.__data__,A.index,A.group),A.state===2){for(A.state=3,B=new Array(Dt=A.tween.length),wt=0,xt=-1;wt<Dt;++wt)(At=A.tween[wt].value.call(x,x.__data__,A.index,A.group))&&(B[++xt]=At);B.length=xt+1}}function X(ut){for(var wt=ut<A.duration?A.ease.call(null,ut/A.duration):(A.timer.restart(vt),A.state=5,1),xt=-1,Dt=B.length;++xt<Dt;)B[xt].call(x,wt);A.state===5&&(A.on.call("end",x,x.__data__,A.index,A.group),vt())}function vt(){for(var ut in A.state=6,A.timer.stop(),delete Y[C],Y)return;delete x.__transition}Y[C]=A,A.timer=Kh(function(ut){A.state=1,A.timer.restart(j,A.delay,A.time),A.delay<=ut&&j(ut-A.delay)},0,A.time)})(i,s,{name:a,index:u,group:d,on:t1,tween:Wo,time:_.time,delay:_.delay,duration:_.duration,ease:_.ease,timer:null,state:0})}function cf(i,a){var s=Go(i,a);if(s.state>0)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*u<a*s&&(i=-i,a=-a,C=-C,m=-m),{translateX:d,translateY:_,rotate:Math.atan2(a,i)*g_,skewX:Math.atan(C)*g_,scaleX:m,scaleY:x}}function mp(i,a,s,u){function d(_){return _.length?_.pop()+" ":""}return function(_,m){var x=[],C=[];return _=i(_),m=i(m),function(A,B,Y,j,X,vt){if(A!==Y||B!==j){var ut=X.push("translate(",null,a,null,s);vt.push({i:ut-4,x:Xs(A,Y)},{i:ut-2,x:Xs(B,j)})}else(Y||j)&&X.push("translate("+Y+a+j+s)}(_.translateX,_.translateY,m.translateX,m.translateY,x,C),function(A,B,Y,j){A!==B?(A-B>180?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<j;)x[(B=C[Y]).i]=B.x(A);return x.join("")}}}var y_=mp(function(i){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(i+"");return a.isIdentity?gp:yp(a.a,a.b,a.c,a.d,a.e,a.f)},"px, ","px)","deg)"),_p=mp(function(i){return i==null?gp:(lf||(lf=document.createElementNS("http://www.w3.org/2000/svg","g")),lf.setAttribute("transform",i),(i=lf.transform.baseVal.consolidate())?yp((i=i.matrix).a,i.b,i.c,i.d,i.e,i.f):gp)},", ",")",")");function m_(i,a){var s,u;return function(){var d=bs(this,i),_=d.tween;if(_!==s){for(var m=0,x=(u=s=_).length;m<x;++m)if(u[m].name===a){(u=u.slice()).splice(m,1);break}}d.tween=u}}function __(i,a,s){var u,d;if(typeof s!="function")throw new Error;return function(){var _=bs(this,i),m=_.tween;if(m!==u){d=(u=m).slice();for(var x={name:a,value:s},C=0,A=d.length;C<A;++C)if(d[C].name===a){d[C]=x;break}C===A&&d.push(x)}_.tween=d}}function bl(i,a,s){var u=i._id;return i.each(function(){var d=bs(this,u);(d.value||(d.value={}))[a]=s.apply(this,arguments)}),function(d){return Go(d,u).value[a]}}const Su=function i(a){var s=function(d){return(d=+d)==1?_h: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):r2(isNaN(_)?m:_)}}(a);function u(d,_){var m=s((d=Ur(d)).r,(_=Ur(_)).r),x=s(d.g,_.g),C=s(d.b,_.b),A=_h(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 e1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Au=new RegExp(e1.source,"g");function u5(i,a){var s,u,d,_=e1.lastIndex=Au.lastIndex=0,m=-1,x=[],C=[];for(i+="",a+="";(s=e1.exec(i))&&(u=Au.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:Xs(s,u)})),_=Au.lastIndex;return _<a.length&&(d=a.slice(_),x[m]?x[m]+=d:x[++m]=d),x.length<2?C[0]?function(A){return function(B){return A(B)+""}}(C[0].x):function(A){return function(){return A}}(a):(a=C.length,function(A){for(var B,Y=0;Y<a;++Y)x[(B=C[Y]).i]=B.x(A);return x.join("")})}function vp(i,a){var s;return(typeof a=="number"?Xs:a instanceof Un?Su:(s=Un(a))?(a=s,Su):u5)(i,a)}function v_(i){return function(){this.removeAttribute(i)}}function b_(i){return function(){this.removeAttributeNS(i.space,i.local)}}function x_(i,a,s){var u,d,_=s+"";return function(){var m=this.getAttribute(i);return m===_?null:m===u?d:d=a(u=m,s)}}function h5(i,a,s){var u,d,_=s+"";return function(){var m=this.getAttributeNS(i.space,i.local);return m===_?null:m===u?d:d=a(u=m,s)}}function f5(i,a,s){var u,d,_;return function(){var m,x,C=s(this);if(C!=null)return(m=this.getAttribute(i))===(x=C+"")?null:m===u&&x===d?_:(d=x,_=a(u=m,C));this.removeAttribute(i)}}function n1(i,a,s){var u,d,_;return function(){var m,x,C=s(this);if(C!=null)return(m=this.getAttributeNS(i.space,i.local))===(x=C+"")?null:m===u&&x===d?_:(d=x,_=a(u=m,C));this.removeAttributeNS(i.space,i.local)}}function bp(i,a){return function(s){this.setAttribute(i,a.call(this,s))}}function xp(i,a){return function(s){this.setAttributeNS(i.space,i.local,a.call(this,s))}}function uf(i,a){var s,u;function d(){var _=a.apply(this,arguments);return _!==u&&(s=(u=_)&&xp(i,_)),s}return d._value=a,d}function wp(i,a){var s,u;function d(){var _=a.apply(this,arguments);return _!==u&&(s=(u=_)&&bp(i,_)),s}return d._value=a,d}function kp(i,a){return function(){cf(this,i).delay=+a.apply(this,arguments)}}function Ep(i,a){return a=+a,function(){cf(this,i).delay=a}}function d5(i,a){return function(){bs(this,i).duration=+a.apply(this,arguments)}}function w_(i,a){return a=+a,function(){bs(this,i).duration=a}}function p5(i,a){if(typeof a!="function")throw new Error;return function(){bs(this,i).ease=a}}function g5(i,a,s){var u,d,_=function(m){return(m+"").trim().split(/^|\s+/).every(function(x){var C=x.indexOf(".");return C>=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;m<d;++m)for(var x,C,A=u[m],B=A.length,Y=_[m]=new Array(B),j=0;j<B;++j)(x=A[j])&&(C=i.call(x,x.__data__,j,A))&&("__data__"in x&&(C.__data__=x.__data__),Y[j]=C,vs(Y[j],a,s,j,Y,Go(x,s)));return new Ks(_,this._parents,a,s)},selectAll:function(i){var a=this._name,s=this._id;typeof i!="function"&&(i=mm(i));for(var u=this._groups,d=u.length,_=[],m=[],x=0;x<d;++x)for(var C,A=u[x],B=A.length,Y=0;Y<B;++Y)if(C=A[Y]){for(var j,X=i.call(C,C.__data__,Y,A),vt=Go(C,s),ut=0,wt=X.length;ut<wt;++ut)(j=X[ut])&&vs(j,a,s,ut,X,vt);_.push(X),m.push(C)}return new Ks(_,m,a,s)},selectChild:po.selectChild,selectChildren:po.selectChildren,filter:function(i){typeof i!="function"&&(i=_m(i));for(var a=this._groups,s=a.length,u=new Array(s),d=0;d<s;++d)for(var _,m=a[d],x=m.length,C=u[d]=[],A=0;A<x;++A)(_=m[A])&&i.call(_,_.__data__,A,m)&&C.push(_);return new Ks(u,this._parents,this._name,this._id)},merge:function(i){if(i._id!==this._id)throw new Error;for(var a=this._groups,s=i._groups,u=a.length,d=s.length,_=Math.min(u,d),m=new Array(u),x=0;x<_;++x)for(var C,A=a[x],B=s[x],Y=A.length,j=m[x]=new Array(Y),X=0;X<Y;++X)(C=A[X]||B[X])&&(j[X]=C);for(;x<u;++x)m[x]=a[x];return new Ks(m,this._parents,this._name,this._id)},selection:function(){return new k_(this._groups,this._parents)},transition:function(){for(var i=this._name,a=this._id,s=Ap(),u=this._groups,d=u.length,_=0;_<d;++_)for(var m,x=u[_],C=x.length,A=0;A<C;++A)if(m=x[A]){var B=Go(m,a);vs(m,i,s,A,x,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new Ks(u,this._parents,i,s)},call:po.call,nodes:po.nodes,node:po.node,size:po.size,empty:po.empty,each:po.each,on:function(i,a){var s=this._id;return arguments.length<2?Go(this.node(),s).on.on(i):this.each(g5(s,i,a))},attr:function(i,a){var s=lu(i),u=s==="transform"?_p:vp;return this.attrTween(i,typeof a=="function"?(s.local?n1:f5)(s,u,bl(this,"attr."+i,a)):a==null?(s.local?b_:v_)(s):(s.local?h5:x_)(s,u,a))},attrTween:function(i,a){var s="attr."+i;if(arguments.length<2)return(s=this.tween(s))&&s._value;if(a==null)return this.tween(s,null);if(typeof a!="function")throw new Error;var u=lu(i);return this.tween(s,(u.local?uf:wp)(u,a))},style:function(i,a,s){var u=(i+="")=="transform"?y_:vp;return a==null?this.styleTween(i,function(d,_){var m,x,C;return function(){var A=uu(this,d),B=(this.style.removeProperty(d),uu(this,d));return A===B?null:A===m&&B===x?C:C=_(m=A,x=B)}}(i,u)).on("end.style."+i,Vo(i)):typeof a=="function"?this.styleTween(i,function(d,_,m){var x,C,A;return function(){var B=uu(this,d),Y=m(this),j=Y+"";return Y==null&&(this.style.removeProperty(d),j=Y=uu(this,d)),B===j?null:B===x&&j===C?A:(C=j,A=_(x=B,Y))}}(i,u,bl(this,"style."+i,a))).each(function(d,_){var m,x,C,A,B="style."+_,Y="end."+B;return function(){var j=bs(this,d),X=j.on,vt=j.value[B]==null?A||(A=Vo(_)):void 0;X===m&&C===vt||(x=(m=X).copy()).on(Y,C=vt),j.on=x}}(this._id,i)):this.styleTween(i,function(d,_,m){var x,C,A=m+"";return function(){var B=uu(this,d);return B===A?null:B===x?C:C=_(x=B,m)}}(i,u,a),s).on("end.style."+i,null)},styleTween:function(i,a,s){var u="style."+(i+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(a==null)return this.tween(u,null);if(typeof a!="function")throw new Error;return this.tween(u,Sp(i,a,s==null?"":s))},text:function(i){return this.tween("text",typeof i=="function"?function(a){return function(){var s=a(this);this.textContent=s==null?"":s}}(bl(this,"text",i)):function(a){return function(){this.textContent=a}}(i==null?"":i+""))},textTween:function(i){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(i==null)return this.tween(a,null);if(typeof i!="function")throw new Error;return this.tween(a,hf(i))},remove:function(){return this.on("end.remove",function(i){return function(){var a=this.parentNode;for(var s in this.__transition)if(+s!==i)return;a&&a.removeChild(this)}}(this._id))},tween:function(i,a){var s=this._id;if(i+="",arguments.length<2){for(var u,d=Go(this.node(),s).tween,_=0,m=d.length;_<m;++_)if((u=d[_]).name===i)return u.value;return null}return this.each((a==null?m_:__)(s,i,a))},delay:function(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?kp:Ep)(a,i)):Go(this.node(),a).delay},duration:function(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?d5:w_)(a,i)):Go(this.node(),a).duration},ease:function(i){var a=this._id;return arguments.length?this.each(p5(a,i)):Go(this.node(),a).ease},easeVarying:function(i){if(typeof i!="function")throw new Error;return this.each(function(a,s){return function(){var u=s.apply(this,arguments);if(typeof u!="function")throw new Error;bs(this,a).ease=u}}(this._id,i))},end:function(){var i,a,s=this,u=s._id,d=s.size();return new Promise(function(_,m){var x={value:m},C={value:function(){--d==0&&_()}};s.each(function(){var A=bs(this,u),B=A.on;B!==i&&((a=(i=B).copy())._.cancel.push(x),a._.interrupt.push(x),a._.end.push(C)),A.on=a}),d===0&&_()})},[Symbol.iterator]:po[Symbol.iterator]};var Cp={time:null,delay:0,duration:250,ease:function(i){return((i*=2)<=1?i*i*i:(i-=2)*i*i+2)/2}};function y5(i,a){for(var s;!(s=i.__transition)||!(s=s[a]);)if(!(i=i.parentNode))throw new Error(`transition ${a} not found`);return s}function Mp(){}function Np(i){return i==null?Mp:function(){return this.querySelector(i)}}function r1(i){return i==null?[]:Array.isArray(i)?i:Array.from(i)}function m5(){return[]}function Lp(i){return i==null?m5:function(){return this.querySelectorAll(i)}}function i1(i){return function(){return this.matches(i)}}function Dp(i){return function(a){return a.matches(i)}}Fn.prototype.interrupt=function(i){return this.each(function(){(function(a,s){var u,d,_,m=a.__transition,x=!0;if(m){for(_ in s=s==null?null:s+"",m)(u=m[_]).name===s?(d=u.state>2&&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;_<d;++_)for(var m,x=u[_],C=x.length,A=0;A<C;++A)(m=x[A])&&vs(m,i,a,A,x,s||y5(m,a));return new Ks(u,this._parents,i,a)};var _5=Array.prototype.find;function a1(){return this.firstElementChild}var v5=Array.prototype.filter;function S_(){return Array.from(this.children)}function A_(i){return new Array(i.length)}function Fc(i,a){this.ownerDocument=i.ownerDocument,this.namespaceURI=i.namespaceURI,this._next=null,this._parent=i,this.__data__=a}function o1(i){return function(){return i}}function s1(i,a,s,u,d,_){for(var m,x=0,C=a.length,A=_.length;x<A;++x)(m=a[x])?(m.__data__=_[x],u[x]=m):s[x]=new Fc(i,_[x]);for(;x<C;++x)(m=a[x])&&(d[x]=m)}function c1(i,a,s,u,d,_,m){var x,C,A,B=new Map,Y=a.length,j=_.length,X=new Array(Y);for(x=0;x<Y;++x)(C=a[x])&&(X[x]=A=m.call(C,C.__data__,x,a)+"",B.has(A)?d[x]=C:B.set(A,C));for(x=0;x<j;++x)A=m.call(i,_[x],x,_)+"",(C=B.get(A))?(u[x]=C,C.__data__=_[x],B.delete(A)):s[x]=new Fc(i,_[x]);for(x=0;x<Y;++x)(C=a[x])&&B.get(X[x])===C&&(d[x]=C)}function ff(i){return i.__data__}function Ip(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function b5(i,a){return i<a?-1:i>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<d;)s.add(a[u])}function N_(i,a){for(var s=Pp(i),u=-1,d=a.length;++u<d;)s.remove(a[u])}function L_(i){return function(){xl(this,i)}}function M5(i){return function(){N_(this,i)}}function gf(i,a){return function(){(a.apply(this,arguments)?xl:N_)(this,i)}}function D_(){this.textContent=""}function zp(i){return function(){this.textContent=i}}function N5(i){return function(){var a=i.apply(this,arguments);this.textContent=a==null?"":a}}function u1(){this.innerHTML=""}function I_(i){return function(){this.innerHTML=i}}function O_(i){return function(){var a=i.apply(this,arguments);this.innerHTML=a==null?"":a}}function R_(){this.nextSibling&&this.parentNode.appendChild(this)}function B_(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yf(i){return function(){var a=this.ownerDocument,s=this.namespaceURI;return s===l1&&a.documentElement.namespaceURI===l1?a.createElement(i):a.createElementNS(s,i)}}function F_(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function P_(i){var a=df(i);return(a.local?F_:yf)(a)}function L5(){return null}function mf(){var i=this.parentNode;i&&i.removeChild(this)}function wl(){var i=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function Mu(){var i=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function D5(i){return i.trim().split(/^|\s+/).map(function(a){var s="",u=a.indexOf(".");return 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<x;++m)if((u=d[m]).type===i.type&&u.name===i.name)return this.removeEventListener(u.type,u.listener,u.options),this.addEventListener(u.type,u.listener=_,u.options=s),void(u.value=a)}this.addEventListener(i.type,_,s),u={type:i.type,name:i.name,value:a,listener:_,options:s},d?d.push(u):this.__on=[u]}}function _f(i,a,s){var u=pf(i),d=u.CustomEvent;typeof d=="function"?d=new d(a,s):(d=u.document.createEvent("Event"),s?(d.initEvent(a,s.bubbles,s.cancelable),d.detail=s.detail):d.initEvent(a,!1,!1)),i.dispatchEvent(d)}function z_(i,a){return function(){return _f(this,i,a)}}function Y_(i,a){return function(){return _f(this,i,a.apply(this,arguments))}}Up.prototype={add:function(i){this._names.indexOf(i)<0&&(this._names.push(i),this._node.setAttribute("class",this._names.join(" ")))},remove:function(i){var a=this._names.indexOf(i);a>=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<s;++d)for(var _,m,x=a[d],C=x.length,A=u[d]=new Array(C),B=0;B<C;++B)(_=x[B])&&(m=i.call(_,_.__data__,B,x))&&("__data__"in _&&(m.__data__=_.__data__),A[B]=m);return new Zo(u,this._parents)},selectAll:function(i){i=typeof i=="function"?function(B){return function(){return r1(B.apply(this,arguments))}}(i):Lp(i);for(var a=this._groups,s=a.length,u=[],d=[],_=0;_<s;++_)for(var m,x=a[_],C=x.length,A=0;A<C;++A)(m=x[A])&&(u.push(i.call(m,m.__data__,A,x)),d.push(m));return new Zo(u,d)},selectChild:function(i){return this.select(i==null?a1:function(a){return function(){return _5.call(this.children,a)}}(typeof i=="function"?i:Dp(i)))},selectChildren:function(i){return this.selectAll(i==null?S_:function(a){return function(){return v5.call(this.children,a)}}(typeof i=="function"?i:Dp(i)))},filter:function(i){typeof i!="function"&&(i=i1(i));for(var a=this._groups,s=a.length,u=new Array(s),d=0;d<s;++d)for(var _,m=a[d],x=m.length,C=u[d]=[],A=0;A<x;++A)(_=m[A])&&i.call(_,_.__data__,A,m)&&C.push(_);return new Zo(u,this._parents)},data:function(i,a){if(!arguments.length)return Array.from(this,ff);var s=a?c1:s1,u=this._parents,d=this._groups;typeof i!="function"&&(i=o1(i));for(var _=d.length,m=new Array(_),x=new Array(_),C=new Array(_),A=0;A<_;++A){var B=u[A],Y=d[A],j=Y.length,X=Ip(i.call(B,B&&B.__data__,A,u)),vt=X.length,ut=x[A]=new Array(vt),wt=m[A]=new Array(vt),xt=C[A]=new Array(j);s(B,Y,ut,wt,xt,X,a);for(var Dt,At,Zt=0,se=0;Zt<vt;++Zt)if(Dt=ut[Zt]){for(Zt>=se&&(se=Zt+1);!(At=wt[se])&&++se<vt;);Dt._next=At||null}}return(m=new Zo(m,u))._enter=x,m._exit=C,m},enter:function(){return new Zo(this._enter||this._groups.map(A_),this._parents)},exit:function(){return new Zo(this._exit||this._groups.map(A_),this._parents)},join:function(i,a,s){var u=this.enter(),d=this,_=this.exit();return typeof i=="function"?(u=i(u))&&(u=u.selection()):u=u.append(i+""),a!=null&&(d=a(d))&&(d=d.selection()),s==null?_.remove():s(_),u&&d?u.merge(d).order():d},merge:function(i){for(var a=i.selection?i.selection():i,s=this._groups,u=a._groups,d=s.length,_=u.length,m=Math.min(d,_),x=new Array(d),C=0;C<m;++C)for(var A,B=s[C],Y=u[C],j=B.length,X=x[C]=new Array(j),vt=0;vt<j;++vt)(A=B[vt]||Y[vt])&&(X[vt]=A);for(;C<d;++C)x[C]=s[C];return new Zo(x,this._parents)},selection:function(){return this},order:function(){for(var i=this._groups,a=-1,s=i.length;++a<s;)for(var u,d=i[a],_=d.length-1,m=d[_];--_>=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;_<u;++_){for(var m,x=s[_],C=x.length,A=d[_]=new Array(C),B=0;B<C;++B)(m=x[B])&&(A[B]=m);A.sort(a)}return new Zo(d,this._parents).order()},call:function(){var i=arguments[0];return arguments[0]=this,i.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var i=this._groups,a=0,s=i.length;a<s;++a)for(var u=i[a],d=0,_=u.length;d<_;++d){var m=u[d];if(m)return m}return null},size:function(){let i=0;for(const a of this)++i;return i},empty:function(){return!this.node()},each:function(i){for(var a=this._groups,s=0,u=a.length;s<u;++s)for(var d,_=a[s],m=0,x=_.length;m<x;++m)(d=_[m])&&i.call(d,d.__data__,m,_);return this},attr:function(i,a){var s=df(i);if(arguments.length<2){var u=this.node();return s.local?u.getAttributeNS(s.space,s.local):u.getAttribute(s)}return this.each((a==null?s.local?x5:Op:typeof a=="function"?s.local?k5:Bp:s.local?w5:Rp)(s,a))},style:function(i,a,s){return arguments.length>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<m;++u)this.each(x(_[u],a,s));return this}var x=this.node().__on;if(x){for(var C,A=0,B=x.length;A<B;++A)for(u=0,C=x[A];u<m;++u)if((d=_[u]).type===C.type&&d.name===C.name)return C.value}},dispatch:function(i,a){return this.each((typeof a=="function"?Y_:z_)(i,a))},[Symbol.iterator]:function*(){for(var i=this._groups,a=0,s=i.length;a<s;++a)for(var u,d=i[a],_=0,m=d.length;_<m;++_)(u=d[_])&&(yield u)}};const f1=$_;var O5={value:()=>{}};function j_(){for(var i,a=0,s=arguments.length,u={};a<s;++a){if(!(i=arguments[a]+"")||i in u||/[\s.]/.test(i))throw new Error("illegal type: "+i);u[i]=[]}return new vf(u)}function vf(i){this._=i}function R5(i,a){return i.trim().split(/^|\s+/).map(function(s){var u="",d=s.indexOf(".");if(d>=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;u<d;++u)if((s=i[u]).name===a)return s.value}function bf(i,a,s){for(var u=0,d=i.length;u<d;++u)if(i[u].name===a){i[u]=O5,i=i.slice(0,u).concat(i.slice(u+1));break}return s!=null&&i.push({name:a,value:s}),i}vf.prototype=j_.prototype={constructor:vf,on:function(i,a){var s,u=this._,d=R5(i+"",u),_=-1,m=d.length;if(!(arguments.length<2)){if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++_<m;)if(s=(i=d[_]).type)u[s]=bf(u[s],i.name,a);else if(a==null)for(s in u)u[s]=bf(u[s],i.name,null);return this}for(;++_<m;)if((s=(i=d[_]).type)&&(s=Yp(u[s],i.name)))return s},copy:function(){var i={},a=this._;for(var s in a)i[s]=a[s].slice();return new vf(i)},call:function(i,a){if((s=arguments.length-2)>0)for(var s,u,d=new Array(s),_=0;_<s;++_)d[_]=arguments[_+2];if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(_=0,s=(u=this._[i]).length;_<s;++_)u[_].value.apply(a,d)},apply:function(i,a,s){if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(var u=this._[i],d=0,_=u.length;d<_;++d)u[d].value.apply(a,s)}};const B5=j_;var xf,Pc,Nu=0,Uc=0,Lu=0,d1=0,zc=0,wf=0,p1=typeof performance=="object"&&performance.now?performance:Date,H_=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(i){setTimeout(i,17)};function $p(){return zc||(H_(F5),zc=p1.now()+wf)}function F5(){zc=0}function kf(){this._call=this._time=this._next=null}function jp(i,a,s){var u=new kf;return u.restart(i,a,s),u}function Du(){zc=(d1=p1.now())+wf,Nu=Uc=0;try{(function(){$p(),++Nu;for(var i,a=xf;a;)(i=zc-a._time)>=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]):+wt<C&&(At.state=6,At.timer.stop(),At.on.call("cancel",x,x.__data__,At.index,At.group),delete Y[wt])}if(Hp(function(){A.state===3&&(A.state=4,A.timer.restart(X,A.delay,A.time),X(ut))}),A.state=2,A.on.call("start",x,x.__data__,A.index,A.group),A.state===2){for(A.state=3,B=new Array(Dt=A.tween.length),wt=0,xt=-1;wt<Dt;++wt)(At=A.tween[wt].value.call(x,x.__data__,A.index,A.group))&&(B[++xt]=At);B.length=xt+1}}function X(ut){for(var wt=ut<A.duration?A.ease.call(null,ut/A.duration):(A.timer.restart(vt),A.state=5,1),xt=-1,Dt=B.length;++xt<Dt;)B[xt].call(x,wt);A.state===5&&(A.on.call("end",x,x.__data__,A.index,A.group),vt())}function vt(){for(var ut in A.state=6,A.timer.stop(),delete Y[C],Y)return;delete x.__transition}Y[C]=A,A.timer=jp(function(ut){A.state=1,A.timer.restart(j,A.delay,A.time),A.delay<=ut&&j(ut-A.delay)},0,A.time)})(i,s,{name:a,index:u,group:d,on:P5,tween:U5,time:_.time,delay:_.delay,duration:_.duration,ease:_.ease,timer:null,state:0})}function Sf(i,a){var s=Xo(i,a);if(s.state>0)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*u<a*s&&(i=-i,a=-a,C=-C,m=-m),{translateX:d,translateY:_,rotate:Math.atan2(a,i)*g1,skewX:Math.atan(C)*g1,scaleX:m,scaleY:x}}function G_(i,a,s,u){function d(_){return _.length?_.pop()+" ":""}return function(_,m){var x=[],C=[];return _=i(_),m=i(m),function(A,B,Y,j,X,vt){if(A!==Y||B!==j){var ut=X.push("translate(",null,a,null,s);vt.push({i:ut-4,x:Js(A,Y)},{i:ut-2,x:Js(B,j)})}else(Y||j)&&X.push("translate("+Y+a+j+s)}(_.translateX,_.translateY,m.translateX,m.translateY,x,C),function(A,B,Y,j){A!==B?(A-B>180?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<j;)x[(B=C[Y]).i]=B.x(A);return x.join("")}}}var z5=G_(function(i){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(i+"");return a.isIdentity?qp:W_(a.a,a.b,a.c,a.d,a.e,a.f)},"px, ","px)","deg)"),Y5=G_(function(i){return i==null?qp:(Af||(Af=document.createElementNS("http://www.w3.org/2000/svg","g")),Af.setAttribute("transform",i),(i=Af.transform.baseVal.consolidate())?W_((i=i.matrix).a,i.b,i.c,i.d,i.e,i.f):qp)},", ",")",")");function $5(i,a){var s,u;return function(){var d=xs(this,i),_=d.tween;if(_!==s){for(var m=0,x=(u=s=_).length;m<x;++m)if(u[m].name===a){(u=u.slice()).splice(m,1);break}}d.tween=u}}function V_(i,a,s){var u,d;if(typeof s!="function")throw new Error;return function(){var _=xs(this,i),m=_.tween;if(m!==u){d=(u=m).slice();for(var x={name:a,value:s},C=0,A=d.length;C<A;++C)if(d[C].name===a){d[C]=x;break}C===A&&d.push(x)}_.tween=d}}function Wp(i,a,s){var u=i._id;return i.each(function(){var d=xs(this,u);(d.value||(d.value={}))[a]=s.apply(this,arguments)}),function(d){return Xo(d,u).value[a]}}function Gp(i,a,s){i.prototype=a.prototype=s,s.constructor=i}function Z_(i,a){var s=Object.create(i.prototype);for(var u in a)s[u]=a[u];return s}function ws(){}var Cf=.7,y1=1.4285714285714286,Iu="\\s*([+-]?\\d+)\\s*",Ou="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ks="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",j5=/^#([0-9a-f]{3,8})$/,Ko=new RegExp("^rgb\\("+[Iu,Iu,Iu]+"\\)$"),Qs=new RegExp("^rgb\\("+[ks,ks,ks]+"\\)$"),X_=new RegExp("^rgba\\("+[Iu,Iu,Iu,Ou]+"\\)$"),Mf=new RegExp("^rgba\\("+[ks,ks,ks,Ou]+"\\)$"),kl=new RegExp("^hsl\\("+[Ou,ks,ks]+"\\)$"),Vp=new RegExp("^hsla\\("+[Ou,ks,ks,Ou]+"\\)$"),Nf={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Lf(){return this.rgb().formatHex()}function Zp(){return this.rgb().formatRgb()}function m1(i){var a,s;return i=(i+"").trim().toLowerCase(),(a=j5.exec(i))?(s=a[1].length,a=parseInt(a[1],16),s===6?Df(a):s===3?new to(a>>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*(s<u):s===_?(u-a)/x+2:(a-s)/x+4,x/=C<.5?_+d:2-_-d,m*=60):x=C>0&&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 _<a.length&&(d=a.slice(_),x[m]?x[m]+=d:x[++m]=d),x.length<2?C[0]?function(A){return function(B){return A(B)+""}}(C[0].x):function(A){return function(){return A}}(a):(a=C.length,function(A){for(var B,Y=0;Y<a;++Y)x[(B=C[Y]).i]=B.x(A);return x.join("")})}function Q_(i,a){var s;return(typeof a=="number"?Js:a instanceof m1?Qp:(s=m1(a))?(a=s,Qp):H5)(i,a)}function q5(i){return function(){this.removeAttribute(i)}}function t3(i){return function(){this.removeAttributeNS(i.space,i.local)}}function tg(i,a,s){var u,d,_=s+"";return function(){var m=this.getAttribute(i);return m===_?null:m===u?d:d=a(u=m,s)}}function e3(i,a,s){var u,d,_=s+"";return function(){var m=this.getAttributeNS(i.space,i.local);return m===_?null:m===u?d:d=a(u=m,s)}}function n3(i,a,s){var u,d,_;return function(){var m,x,C=s(this);if(C!=null)return(m=this.getAttribute(i))===(x=C+"")?null:m===u&&x===d?_:(d=x,_=a(u=m,C));this.removeAttribute(i)}}function r3(i,a,s){var u,d,_;return function(){var m,x,C=s(this);if(C!=null)return(m=this.getAttributeNS(i.space,i.local))===(x=C+"")?null:m===u&&x===d?_:(d=x,_=a(u=m,C));this.removeAttributeNS(i.space,i.local)}}function eg(i,a){return function(s){this.setAttribute(i,a.call(this,s))}}function i3(i,a){return function(s){this.setAttributeNS(i.space,i.local,a.call(this,s))}}function a3(i,a){var s,u;function d(){var _=a.apply(this,arguments);return _!==u&&(s=(u=_)&&i3(i,_)),s}return d._value=a,d}function W5(i,a){var s,u;function d(){var _=a.apply(this,arguments);return _!==u&&(s=(u=_)&&eg(i,_)),s}return d._value=a,d}function G5(i,a){return function(){Sf(this,i).delay=+a.apply(this,arguments)}}function ng(i,a){return a=+a,function(){Sf(this,i).delay=a}}function rg(i,a){return function(){xs(this,i).duration=+a.apply(this,arguments)}}function V5(i,a){return a=+a,function(){xs(this,i).duration=a}}function o3(i,a){if(typeof a!="function")throw new Error;return function(){xs(this,i).ease=a}}function s3(i,a,s){var u,d,_=function(m){return(m+"").trim().split(/^|\s+/).every(function(x){var C=x.indexOf(".");return C>=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;m<d;++m)for(var x,C,A=u[m],B=A.length,Y=_[m]=new Array(B),j=0;j<B;++j)(x=A[j])&&(C=i.call(x,x.__data__,j,A))&&("__data__"in x&&(C.__data__=x.__data__),Y[j]=C,Tf(Y[j],a,s,j,Y,Xo(x,s)));return new Es(_,this._parents,a,s)},selectAll:function(i){var a=this._name,s=this._id;typeof i!="function"&&(i=Lp(i));for(var u=this._groups,d=u.length,_=[],m=[],x=0;x<d;++x)for(var C,A=u[x],B=A.length,Y=0;Y<B;++Y)if(C=A[Y]){for(var j,X=i.call(C,C.__data__,Y,A),vt=Xo(C,s),ut=0,wt=X.length;ut<wt;++ut)(j=X[ut])&&Tf(j,a,s,ut,X,vt);_.push(X),m.push(C)}return new Es(_,m,a,s)},selectChild:ec.selectChild,selectChildren:ec.selectChildren,filter:function(i){typeof i!="function"&&(i=i1(i));for(var a=this._groups,s=a.length,u=new Array(s),d=0;d<s;++d)for(var _,m=a[d],x=m.length,C=u[d]=[],A=0;A<x;++A)(_=m[A])&&i.call(_,_.__data__,A,m)&&C.push(_);return new Es(u,this._parents,this._name,this._id)},merge:function(i){if(i._id!==this._id)throw new Error;for(var a=this._groups,s=i._groups,u=a.length,d=s.length,_=Math.min(u,d),m=new Array(u),x=0;x<_;++x)for(var C,A=a[x],B=s[x],Y=A.length,j=m[x]=new Array(Y),X=0;X<Y;++X)(C=A[X]||B[X])&&(j[X]=C);for(;x<u;++x)m[x]=a[x];return new Es(m,this._parents,this._name,this._id)},selection:function(){return new c3(this._groups,this._parents)},transition:function(){for(var i=this._name,a=this._id,s=og(),u=this._groups,d=u.length,_=0;_<d;++_)for(var m,x=u[_],C=x.length,A=0;A<C;++A)if(m=x[A]){var B=Xo(m,a);Tf(m,i,s,A,x,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new Es(u,this._parents,i,s)},call:ec.call,nodes:ec.nodes,node:ec.node,size:ec.size,empty:ec.empty,each:ec.each,on:function(i,a){var s=this._id;return arguments.length<2?Xo(this.node(),s).on.on(i):this.each(s3(s,i,a))},attr:function(i,a){var s=df(i),u=s==="transform"?Y5:Q_;return this.attrTween(i,typeof a=="function"?(s.local?r3:n3)(s,u,Wp(this,"attr."+i,a)):a==null?(s.local?t3:q5)(s):(s.local?e3:tg)(s,u,a))},attrTween:function(i,a){var s="attr."+i;if(arguments.length<2)return(s=this.tween(s))&&s._value;if(a==null)return this.tween(s,null);if(typeof a!="function")throw new Error;var u=df(i);return this.tween(s,(u.local?a3:W5)(u,a))},style:function(i,a,s){var u=(i+="")=="transform"?z5:Q_;return a==null?this.styleTween(i,function(d,_){var m,x,C;return function(){var A=Cu(this,d),B=(this.style.removeProperty(d),Cu(this,d));return A===B?null:A===m&&B===x?C:C=_(m=A,x=B)}}(i,u)).on("end.style."+i,Rf(i)):typeof a=="function"?this.styleTween(i,function(d,_,m){var x,C,A;return function(){var B=Cu(this,d),Y=m(this),j=Y+"";return Y==null&&(this.style.removeProperty(d),j=Y=Cu(this,d)),B===j?null:B===x&&j===C?A:(C=j,A=_(x=B,Y))}}(i,u,Wp(this,"style."+i,a))).each(function(d,_){var m,x,C,A,B="style."+_,Y="end."+B;return function(){var j=xs(this,d),X=j.on,vt=j.value[B]==null?A||(A=Rf(_)):void 0;X===m&&C===vt||(x=(m=X).copy()).on(Y,C=vt),j.on=x}}(this._id,i)):this.styleTween(i,function(d,_,m){var x,C,A=m+"";return function(){var B=Cu(this,d);return B===A?null:B===x?C:C=_(x=B,m)}}(i,u,a),s).on("end.style."+i,null)},styleTween:function(i,a,s){var u="style."+(i+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(a==null)return this.tween(u,null);if(typeof a!="function")throw new Error;return this.tween(u,Gi(i,a,s==null?"":s))},text:function(i){return this.tween("text",typeof i=="function"?function(a){return function(){var s=a(this);this.textContent=s==null?"":s}}(Wp(this,"text",i)):function(a){return function(){this.textContent=a}}(i==null?"":i+""))},textTween:function(i){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(i==null)return this.tween(a,null);if(typeof i!="function")throw new Error;return this.tween(a,Tl(i))},remove:function(){return this.on("end.remove",function(i){return function(){var a=this.parentNode;for(var s in this.__transition)if(+s!==i)return;a&&a.removeChild(this)}}(this._id))},tween:function(i,a){var s=this._id;if(i+="",arguments.length<2){for(var u,d=Xo(this.node(),s).tween,_=0,m=d.length;_<m;++_)if((u=d[_]).name===i)return u.value;return null}return this.each((a==null?$5:V_)(s,i,a))},delay:function(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?G5:ng)(a,i)):Xo(this.node(),a).delay},duration:function(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?rg:V5)(a,i)):Xo(this.node(),a).duration},ease:function(i){var a=this._id;return arguments.length?this.each(o3(a,i)):Xo(this.node(),a).ease},easeVarying:function(i){if(typeof i!="function")throw new Error;return this.each(function(a,s){return function(){var u=s.apply(this,arguments);if(typeof u!="function")throw new Error;xs(this,a).ease=u}}(this._id,i))},end:function(){var i,a,s=this,u=s._id,d=s.size();return new Promise(function(_,m){var x={value:m},C={value:function(){--d==0&&_()}};s.each(function(){var A=xs(this,u),B=A.on;B!==i&&((a=(i=B).copy())._.cancel.push(x),a._.interrupt.push(x),a._.end.push(C)),A.on=a}),d===0&&_()})},[Symbol.iterator]:ec[Symbol.iterator]};var Bf={time:null,delay:0,duration:250,ease:function(i){return((i*=2)<=1?i*i*i:(i-=2)*i*i+2)/2}};function Sl(i,a){for(var s;!(s=i.__transition)||!(s=s[a]);)if(!(i=i.parentNode))throw new Error(`transition ${a} not found`);return s}f1.prototype.interrupt=function(i){return this.each(function(){(function(a,s){var u,d,_,m=a.__transition,x=!0;if(m){for(_ in s=s==null?null:s+"",m)(u=m[_]).name===s?(d=u.state>2&&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;_<d;++_)for(var m,x=u[_],C=x.length,A=0;A<C;++A)(m=x[A])&&Tf(m,i,a,A,x,s||Sl(m,a));return new Es(u,this._parents,i,a)};var x1="comm",sg="rule",cg="decl",Al=Math.abs,Cl=String.fromCharCode;function Ru(i){return i.trim()}function Ff(i,a,s){return i.replace(a,s)}function l3(i,a){return i.indexOf(a)}function nc(i,a){return 0|i.charCodeAt(a)}function Bu(i,a,s){return i.slice(a,s)}function rc(i){return i.length}function lg(i){return i.length}function Pf(i,a){return a.push(i),i}function ug(i,a){for(var s="",u=lg(i),d=0;d<u;d++)s+=a(i[d],d,i,a)||"";return s}function X5(i,a,s,u){switch(i.type){case"@import":case cg:return i.return=i.return||i.value;case x1:return"";case"@keyframes":return i.return=i.value+"{"+ug(i.children,u)+"}";case sg:i.value=i.props.join(",")}return rc(s=ug(i.children,u))?i.return=i.value+"{"+s+"}":""}var Uf=1,Fu=1,u3=0,go=0,_i=0,Pu="";function zf(i,a,s,u,d,_,m){return{value:i,root:a,parent:s,type:u,props:d,children:_,line:Uf,column:Fu,length:m,return:""}}function h3(){return _i=go>0?nc(Pu,--go):0,Fu--,_i===10&&(Fu=1,Uf--),_i}function Qo(){return _i=go<u3?nc(Pu,go++):0,Fu++,_i===10&&(Fu=1,Uf++),_i}function Yc(){return nc(Pu,go)}function w1(){return go}function Yf(i,a){return Bu(Pu,i,a)}function $f(i){switch(i){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Uu(i){return Ru(Yf(go-1,zu(i===91?i+2:i===40?i+1:i)))}function f3(i){for(;(_i=Yc())&&_i<33;)Qo();return $f(i)>2||$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;vt<u;++vt)for(var xt=0,Dt=Bu(i,Y+1,Y=Al(ut=m[vt])),At=i;xt<X;++xt)(At=Ru(ut>0?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("<script"))>=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(/<iframe/gi,"")},_3=function(i,a){var s=i,u=!0;if(!a.flowchart||a.flowchart.htmlLabels!==!1&&a.flowchart.htmlLabels!=="false"||(u=!1),u){var d=a.securityLevel;d==="antiscript"||d==="strict"?s=m3(s):d!=="loose"&&(s=(s=(s=E1(s)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),s=v3(s))}return s},Ts=function(i,a){return i&&(a.dompurifyConfig?dg().sanitize(_3(i,a),a.dompurifyConfig):dg().sanitize(_3(i,a)))},Hf=/<br\s*\/?>/gi,v3=function(i){return i.replace(/#br#/g,"<br/>")},E1=function(i){return i.replace(Hf,"#br#")},ma=function(i){return i!=="false"&&i!==!1};const Qn={getRows:function(i){if(!i)return 1;var a=E1(i);return(a=a.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:Ts,sanitizeTextOrArray:function(i,a){return typeof i=="string"?Ts(i,a):i.flat().map(function(s){return Ts(s,a)})},hasBreaks:function(i){return Hf.test(i)},splitBreaks:function(i){return i.split(Hf)},lineBreakRegex:Hf,removeScript:m3,getUrl:function(i){var a="";return i&&(a=(a=(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),a},evaluate:ma,removeEscapes:y3},Ss={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:i=>i>=255?255:i<0?0:i,g:i=>i>=255?255:i<0?0:i,b:i=>i>=255?255:i<0?0:i,h:i=>i%360,s:i=>i>=100?100:i<0?0:i,l:i=>i>=100?100:i<0?0:i,a:i=>i>=1?1:i<0?0:i},toLinear:i=>{const a=i/255;return i>.03928?Math.pow((a+.055)/1.055,2.4):a/12.92},hue2rgb:(i,a,s)=>(s<0&&(s+=1),s>1&&(s-=1),s<1/6?i+6*(a-i)*s:s<.5?a:s<2/3?i+(a-i)*(2/3-s)*6:i),hsl2rgb:({h:i,s:a,l:s},u)=>{if(!a)return 2.55*s;i/=360,a/=100;const d=(s/=100)<.5?s*(1+a):s+a-s*a,_=2*s-d;switch(u){case"r":return 255*Ss.hue2rgb(_,d,i+1/3);case"g":return 255*Ss.hue2rgb(_,d,i);case"b":return 255*Ss.hue2rgb(_,d,i-1/3)}},rgb2hsl:({r:i,g:a,b:s},u)=>{i/=255,a/=255,s/=255;const d=Math.max(i,a,s),_=Math.min(i,a,s),m=(d+_)/2;if(u==="l")return 100*m;if(d===_)return 0;const x=d-_;if(u==="s")return 100*(m>.5?x/(2-d-_):x/(d+_));switch(d){case i:return 60*((a-s)/x+(a<s?6:0));case a:return 60*((s-i)/x+2);case s:return 60*((i-a)/x+4);default:return-1}}},K5={clamp:(i,a,s)=>a>s?Math.min(a,Math.max(s,i)):Math.min(s,Math.max(a,i)),round:i=>Math.round(1e10*i)/1e10},pg={dec2hex:i=>{const a=Math.round(i).toString(16);return a.length>1?a:`0${a}`}},ir={channel:Ss,lang:K5,unit:pg},ko={};for(let i=0;i<=255;i++)ko[i]=ir.unit.dec2hex(i);const T1=new class{constructor(i,a){this.color=a,this.changed=!1,this.data=i,this.type=new class{constructor(){this.type=0}get(){return this.type}set(s){if(this.type&&this.type!==s)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=s}reset(){this.type=0}is(s){return this.type===s}}}set(i,a){return this.color=a,this.changed=!1,this.data=i,this.type.type=0,this}_ensureHSL(){const i=this.data,{h:a,s,l:u}=i;a===void 0&&(i.h=ir.channel.rgb2hsl(i,"h")),s===void 0&&(i.s=ir.channel.rgb2hsl(i,"s")),u===void 0&&(i.l=ir.channel.rgb2hsl(i,"l"))}_ensureRGB(){const i=this.data,{r:a,g:s,b:u}=i;a===void 0&&(i.r=ir.channel.hsl2rgb(i,"r")),s===void 0&&(i.g=ir.channel.hsl2rgb(i,"g")),u===void 0&&(i.b=ir.channel.hsl2rgb(i,"b"))}get r(){const i=this.data,a=i.r;return this.type.is(2)||a===void 0?(this._ensureHSL(),ir.channel.hsl2rgb(i,"r")):a}get g(){const i=this.data,a=i.g;return this.type.is(2)||a===void 0?(this._ensureHSL(),ir.channel.hsl2rgb(i,"g")):a}get b(){const i=this.data,a=i.b;return this.type.is(2)||a===void 0?(this._ensureHSL(),ir.channel.hsl2rgb(i,"b")):a}get h(){const i=this.data,a=i.h;return this.type.is(1)||a===void 0?(this._ensureRGB(),ir.channel.rgb2hsl(i,"h")):a}get s(){const i=this.data,a=i.s;return this.type.is(1)||a===void 0?(this._ensureRGB(),ir.channel.rgb2hsl(i,"s")):a}get l(){const i=this.data,a=i.l;return this.type.is(1)||a===void 0?(this._ensureRGB(),ir.channel.rgb2hsl(i,"l")):a}get a(){return this.data.a}set r(i){this.type.set(1),this.changed=!0,this.data.r=i}set g(i){this.type.set(1),this.changed=!0,this.data.g=i}set b(i){this.type.set(1),this.changed=!0,this.data.b=i}set h(i){this.type.set(2),this.changed=!0,this.data.h=i}set s(i){this.type.set(2),this.changed=!0,this.data.s=i}set l(i){this.type.set(2),this.changed=!0,this.data.l=i}set a(i){this.changed=!0,this.data.a=i}}({r:0,g:0,b:0,a:0},"transparent"),Nl={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:i=>{if(i.charCodeAt(0)!==35)return;const a=i.match(Nl.re);if(!a)return;const s=a[1],u=parseInt(s,16),d=s.length,_=d%4==0,m=d>4,x=m?1:17,C=m?8:4,A=_?0:-1,B=m?255:15;return T1.set({r:(u>>C*(A+3)&B)*x,g:(u>>C*(A+2)&B)*x,b:(u>>C*(A+1)&B)*x,a:_?(u&B)*x/255:1},i)},stringify:i=>{const{r:a,g:s,b:u,a:d}=i;return d<1?`#${ko[Math.round(a)]}${ko[Math.round(s)]}${ko[Math.round(u)]}${ko[Math.round(255*d)]}`:`#${ko[Math.round(a)]}${ko[Math.round(s)]}${ko[Math.round(u)]}`}},Ll=Nl,S1={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:i=>{const a=i.match(S1.hueRe);if(a){const[,s,u]=a;switch(u){case"grad":return ir.channel.clamp.h(.9*parseFloat(s));case"rad":return ir.channel.clamp.h(180*parseFloat(s)/Math.PI);case"turn":return ir.channel.clamp.h(360*parseFloat(s))}}return ir.channel.clamp.h(parseFloat(i))},parse:i=>{const a=i.charCodeAt(0);if(a!==104&&a!==72)return;const s=i.match(S1.re);if(!s)return;const[,u,d,_,m,x]=s;return T1.set({h:S1._hue2deg(u),s:ir.channel.clamp.s(parseFloat(d)),l:ir.channel.clamp.l(parseFloat(_)),a:m?ir.channel.clamp.a(x?parseFloat(m)/100:parseFloat(m)):1},i)},stringify:i=>{const{h:a,s,l:u,a:d}=i;return d<1?`hsla(${ir.lang.round(a)}, ${ir.lang.round(s)}%, ${ir.lang.round(u)}%, ${d})`:`hsl(${ir.lang.round(a)}, ${ir.lang.round(s)}%, ${ir.lang.round(u)}%)`}},Dl=S1,Yu={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:i=>{i=i.toLowerCase();const a=Yu.colors[i];if(a)return Ll.parse(a)},stringify:i=>{const a=Ll.stringify(i);for(const s in Yu.colors)if(Yu.colors[s]===a)return s}},gg=Yu,Vi={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:i=>{const a=i.charCodeAt(0);if(a!==114&&a!==82)return;const s=i.match(Vi.re);if(!s)return;const[,u,d,_,m,x,C,A,B]=s;return T1.set({r:ir.channel.clamp.r(d?2.55*parseFloat(u):parseFloat(u)),g:ir.channel.clamp.g(m?2.55*parseFloat(_):parseFloat(_)),b:ir.channel.clamp.b(C?2.55*parseFloat(x):parseFloat(x)),a:A?ir.channel.clamp.a(B?parseFloat(A)/100:parseFloat(A)):1},i)},stringify:i=>{const{r:a,g:s,b:u,a:d}=i;return d<1?`rgba(${ir.lang.round(a)}, ${ir.lang.round(s)}, ${ir.lang.round(u)}, ${ir.lang.round(d)})`:`rgb(${ir.lang.round(a)}, ${ir.lang.round(s)}, ${ir.lang.round(u)})`}},qf=Vi,J5={format:{keyword:gg,hex:Ll,rgb:qf,rgba:qf,hsl:Dl,hsla:Dl},parse:i=>{if(typeof i!="string")return i;const a=Ll.parse(i)||qf.parse(i)||Dl.parse(i)||gg.parse(i);if(a)return a;throw new Error(`Unsupported color format: "${i}"`)},stringify:i=>!i.changed&&i.color?i.color:i.type.is(2)||i.data.r===void 0?Dl.stringify(i):i.a<1||!Number.isInteger(i.r)||!Number.isInteger(i.g)||!Number.isInteger(i.b)?qf.stringify(i):Ll.stringify(i)},hr=J5,b3=(i,a)=>{const s=hr.parse(i);for(const u in a)s[u]=ir.channel.clamp[u](a[u]);return hr.stringify(s)},Je=(i,a)=>{const s=hr.parse(i),u={};for(const d in a)a[d]&&(u[d]=s[d]+a[d]);return b3(i,u)},ac=(i,a,s=0,u=1)=>{if(typeof i!="number")return b3(i,{a});const d=T1.set({r:ir.channel.clamp.r(i),g:ir.channel.clamp.g(a),b:ir.channel.clamp.b(s),a:ir.channel.clamp.a(u)});return hr.stringify(d)},wn=(i,a=100)=>{const s=hr.parse(i);return s.r=255-s.r,s.g=255-s.g,s.b=255-s.b,((u,d,_=50)=>{const{r:m,g:x,b:C,a:A}=hr.parse(u),{r:B,g:Y,b:j,a:X}=hr.parse(d),vt=_/100,ut=2*vt-1,wt=A-X,xt=((ut*wt==-1?ut:(ut+wt)/(1+ut*wt))+1)/2,Dt=1-xt;return ac(m*xt+B*Dt,x*xt+Y*Dt,C*xt+j*Dt,A*vt+X*(1-vt))})(s,i,a)},x3=(i,a,s)=>{const u=hr.parse(i),d=u[a],_=ir.channel.clamp[a](d+s);return d!==_&&(u[a]=_),hr.stringify(u)},Sr=(i,a)=>x3(i,"l",-a),tr=(i,a)=>x3(i,"l",a);var qa=function(i,a){return Je(i,a?{s:-40,l:10}:{s:-40,l:-10})};function Wf(i){return Wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Wf(i)}function w3(i,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(i,u.key,u)}}var Q5=function(){function i(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,i),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var a,s;return a=i,s=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Je(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Je(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||qa(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||qa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||qa(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||qa(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||wn(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||wn(this.tertiaryColor),this.lineColor=this.lineColor||wn(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Sr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Sr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||wn(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||tr(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Je(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Je(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Je(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Je(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Je(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Je(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Je(this.primaryColor,{l:-10}),this.pie5=this.pie5||Je(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Je(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Je(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Je(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Je(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Je(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Je(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Je(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Sr(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Je(this.primaryColor,{h:-30}),this.git4=this.git4||Je(this.primaryColor,{h:-60}),this.git5=this.git5||Je(this.primaryColor,{h:-90}),this.git6=this.git6||Je(this.primaryColor,{h:60}),this.git7=this.git7||Je(this.primaryColor,{h:120}),this.darkMode?(this.git0=tr(this.git0,25),this.git1=tr(this.git1,25),this.git2=tr(this.git2,25),this.git3=tr(this.git3,25),this.git4=tr(this.git4,25),this.git5=tr(this.git5,25),this.git6=tr(this.git6,25),this.git7=tr(this.git7,25)):(this.git0=Sr(this.git0,25),this.git1=Sr(this.git1,25),this.git2=Sr(this.git2,25),this.git3=Sr(this.git3,25),this.git4=Sr(this.git4,25),this.git5=Sr(this.git5,25),this.git6=Sr(this.git6,25),this.git7=Sr(this.git7,25)),this.gitInv0=this.gitInv0||wn(this.git0),this.gitInv1=this.gitInv1||wn(this.git1),this.gitInv2=this.gitInv2||wn(this.git2),this.gitInv3=this.gitInv3||wn(this.git3),this.gitInv4=this.gitInv4||wn(this.git4),this.gitInv5=this.gitInv5||wn(this.git5),this.gitInv6=this.gitInv6||wn(this.git6),this.gitInv7=this.gitInv7||wn(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(u){var d=this;if(Wf(u)==="object"){var _=Object.keys(u);_.forEach(function(m){d[m]=u[m]}),this.updateColors(),_.forEach(function(m){d[m]=u[m]})}else this.updateColors()}}],s&&w3(a.prototype,s),Object.defineProperty(a,"prototype",{writable:!1}),i}();function yg(i){return yg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},yg(i)}function tb(i,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(i,u.key,u)}}var k3=function(){function i(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,i),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=tr(this.primaryColor,16),this.tertiaryColor=Je(this.primaryColor,{h:-160}),this.primaryBorderColor=wn(this.background),this.secondaryBorderColor=qa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=qa(this.tertiaryColor,this.darkMode),this.primaryTextColor=wn(this.primaryColor),this.secondaryTextColor=wn(this.secondaryColor),this.tertiaryTextColor=wn(this.tertiaryColor),this.lineColor=wn(this.background),this.textColor=wn(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=tr(wn("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=ac(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=Sr("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=ac(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ac(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var a,s;return a=i,s=[{key:"updateColors",value:function(){this.secondBkg=tr(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=tr(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=tr(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Je(this.primaryColor,{h:64}),this.fillType3=Je(this.secondaryColor,{h:64}),this.fillType4=Je(this.primaryColor,{h:-64}),this.fillType5=Je(this.secondaryColor,{h:-64}),this.fillType6=Je(this.primaryColor,{h:128}),this.fillType7=Je(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#0b0000",this.pie2=this.pie2||"#4d1037",this.pie3=this.pie3||"#3f5258",this.pie4=this.pie4||"#4f2f1b",this.pie5=this.pie5||"#6e0a0a",this.pie6=this.pie6||"#3b0048",this.pie7=this.pie7||"#995a01",this.pie8=this.pie8||"#154706",this.pie9=this.pie9||"#161722",this.pie10=this.pie10||"#00296f",this.pie11=this.pie11||"#01629c",this.pie12=this.pie12||"#010029",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Sr(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=tr(this.secondaryColor,20),this.git1=tr(this.pie2||this.secondaryColor,20),this.git2=tr(this.pie3||this.tertiaryColor,20),this.git3=tr(this.pie4||Je(this.primaryColor,{h:-30}),20),this.git4=tr(this.pie5||Je(this.primaryColor,{h:-60}),20),this.git5=tr(this.pie6||Je(this.primaryColor,{h:-90}),10),this.git6=tr(this.pie7||Je(this.primaryColor,{h:60}),10),this.git7=tr(this.pie8||Je(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||wn(this.git0),this.gitInv1=this.gitInv1||wn(this.git1),this.gitInv2=this.gitInv2||wn(this.git2),this.gitInv3=this.gitInv3||wn(this.git3),this.gitInv4=this.gitInv4||wn(this.git4),this.gitInv5=this.gitInv5||wn(this.git5),this.gitInv6=this.gitInv6||wn(this.git6),this.gitInv7=this.gitInv7||wn(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(u){var d=this;if(yg(u)==="object"){var _=Object.keys(u);_.forEach(function(m){d[m]=u[m]}),this.updateColors(),_.forEach(function(m){d[m]=u[m]})}else this.updateColors()}}],s&&tb(a.prototype,s),Object.defineProperty(a,"prototype",{writable:!1}),i}();function mg(i){return mg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},mg(i)}function E3(i,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(i,u.key,u)}}var eb=function(){function i(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,i),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Je(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Je(this.primaryColor,{h:-160}),this.primaryBorderColor=qa(this.primaryColor,this.darkMode),this.secondaryBorderColor=qa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=qa(this.tertiaryColor,this.darkMode),this.primaryTextColor=wn(this.primaryColor),this.secondaryTextColor=wn(this.secondaryColor),this.tertiaryTextColor=wn(this.tertiaryColor),this.lineColor=wn(this.background),this.textColor=wn(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=ac(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var a,s;return a=i,s=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=tr(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Je(this.primaryColor,{h:64}),this.fillType3=Je(this.secondaryColor,{h:64}),this.fillType4=Je(this.primaryColor,{h:-64}),this.fillType5=Je(this.secondaryColor,{h:-64}),this.fillType6=Je(this.primaryColor,{h:128}),this.fillType7=Je(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||Je(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||Je(this.primaryColor,{l:-10}),this.pie5=this.pie5||Je(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Je(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||Je(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||Je(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||Je(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||Je(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||Je(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||Je(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Je(this.primaryColor,{h:-30}),this.git4=this.git4||Je(this.primaryColor,{h:-60}),this.git5=this.git5||Je(this.primaryColor,{h:-90}),this.git6=this.git6||Je(this.primaryColor,{h:60}),this.git7=this.git7||Je(this.primaryColor,{h:120}),this.darkMode?(this.git0=tr(this.git0,25),this.git1=tr(this.git1,25),this.git2=tr(this.git2,25),this.git3=tr(this.git3,25),this.git4=tr(this.git4,25),this.git5=tr(this.git5,25),this.git6=tr(this.git6,25),this.git7=tr(this.git7,25)):(this.git0=Sr(this.git0,25),this.git1=Sr(this.git1,25),this.git2=Sr(this.git2,25),this.git3=Sr(this.git3,25),this.git4=Sr(this.git4,25),this.git5=Sr(this.git5,25),this.git6=Sr(this.git6,25),this.git7=Sr(this.git7,25)),this.gitInv0=this.gitInv0||Sr(wn(this.git0),25),this.gitInv1=this.gitInv1||wn(this.git1),this.gitInv2=this.gitInv2||wn(this.git2),this.gitInv3=this.gitInv3||wn(this.git3),this.gitInv4=this.gitInv4||wn(this.git4),this.gitInv5=this.gitInv5||wn(this.git5),this.gitInv6=this.gitInv6||wn(this.git6),this.gitInv7=this.gitInv7||wn(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||wn(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||wn(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(u){var d=this;if(mg(u)==="object"){var _=Object.keys(u);_.forEach(function(m){d[m]=u[m]}),this.updateColors(),_.forEach(function(m){d[m]=u[m]})}else this.updateColors()}}],s&&E3(a.prototype,s),Object.defineProperty(a,"prototype",{writable:!1}),i}();function _g(i){return _g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_g(i)}function nb(i,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(i,u.key,u)}}var rb=function(){function i(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,i),this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=tr("#cde498",10),this.primaryBorderColor=qa(this.primaryColor,this.darkMode),this.secondaryBorderColor=qa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=qa(this.tertiaryColor,this.darkMode),this.primaryTextColor=wn(this.primaryColor),this.secondaryTextColor=wn(this.secondaryColor),this.tertiaryTextColor=wn(this.primaryColor),this.lineColor=wn(this.background),this.textColor=wn(this.background),this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var a,s;return a=i,s=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=Sr(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Je(this.primaryColor,{h:64}),this.fillType3=Je(this.secondaryColor,{h:64}),this.fillType4=Je(this.primaryColor,{h:-64}),this.fillType5=Je(this.secondaryColor,{h:-64}),this.fillType6=Je(this.primaryColor,{h:128}),this.fillType7=Je(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Je(this.primaryColor,{l:-30}),this.pie5=this.pie5||Je(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Je(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||Je(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Je(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Je(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Je(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||Je(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||Je(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Je(this.primaryColor,{h:-30}),this.git4=this.git4||Je(this.primaryColor,{h:-60}),this.git5=this.git5||Je(this.primaryColor,{h:-90}),this.git6=this.git6||Je(this.primaryColor,{h:60}),this.git7=this.git7||Je(this.primaryColor,{h:120}),this.darkMode?(this.git0=tr(this.git0,25),this.git1=tr(this.git1,25),this.git2=tr(this.git2,25),this.git3=tr(this.git3,25),this.git4=tr(this.git4,25),this.git5=tr(this.git5,25),this.git6=tr(this.git6,25),this.git7=tr(this.git7,25)):(this.git0=Sr(this.git0,25),this.git1=Sr(this.git1,25),this.git2=Sr(this.git2,25),this.git3=Sr(this.git3,25),this.git4=Sr(this.git4,25),this.git5=Sr(this.git5,25),this.git6=Sr(this.git6,25),this.git7=Sr(this.git7,25)),this.gitInv0=this.gitInv0||wn(this.git0),this.gitInv1=this.gitInv1||wn(this.git1),this.gitInv2=this.gitInv2||wn(this.git2),this.gitInv3=this.gitInv3||wn(this.git3),this.gitInv4=this.gitInv4||wn(this.git4),this.gitInv5=this.gitInv5||wn(this.git5),this.gitInv6=this.gitInv6||wn(this.git6),this.gitInv7=this.gitInv7||wn(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(u){var d=this;if(_g(u)==="object"){var _=Object.keys(u);_.forEach(function(m){d[m]=u[m]}),this.updateColors(),_.forEach(function(m){d[m]=u[m]})}else this.updateColors()}}],s&&nb(a.prototype,s),Object.defineProperty(a,"prototype",{writable:!1}),i}();function vg(i){return vg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},vg(i)}function ib(i,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(i,u.key,u)}}var ab=function(){function i(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,i),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=tr(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Je(this.primaryColor,{h:-160}),this.primaryBorderColor=qa(this.primaryColor,this.darkMode),this.secondaryBorderColor=qa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=qa(this.tertiaryColor,this.darkMode),this.primaryTextColor=wn(this.primaryColor),this.secondaryTextColor=wn(this.secondaryColor),this.tertiaryTextColor=wn(this.tertiaryColor),this.lineColor=wn(this.background),this.textColor=wn(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var a,s;return a=i,s=[{key:"updateColors",value:function(){this.secondBkg=tr(this.contrast,55),this.border2=this.contrast,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=tr(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=tr(this.contrast,30),this.sectionBkgColor2=tr(this.contrast,30),this.taskBorderColor=Sr(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=tr(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Sr(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Je(this.primaryColor,{h:64}),this.fillType3=Je(this.secondaryColor,{h:64}),this.fillType4=Je(this.primaryColor,{h:-64}),this.fillType5=Je(this.secondaryColor,{h:-64}),this.fillType6=Je(this.primaryColor,{h:128}),this.fillType7=Je(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#F4F4F4",this.pie2=this.pie2||"#555",this.pie3=this.pie3||"#BBB",this.pie4=this.pie4||"#777",this.pie5=this.pie5||"#999",this.pie6=this.pie6||"#DDD",this.pie7=this.pie7||"#FFF",this.pie8=this.pie8||"#DDD",this.pie9=this.pie9||"#BBB",this.pie10=this.pie10||"#999",this.pie11=this.pie11||"#777",this.pie12=this.pie12||"#555",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Sr(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||Je(this.primaryColor,{h:-30}),this.git4=this.pie5||Je(this.primaryColor,{h:-60}),this.git5=this.pie6||Je(this.primaryColor,{h:-90}),this.git6=this.pie7||Je(this.primaryColor,{h:60}),this.git7=this.pie8||Je(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||wn(this.git0),this.gitInv1=this.gitInv1||wn(this.git1),this.gitInv2=this.gitInv2||wn(this.git2),this.gitInv3=this.gitInv3||wn(this.git3),this.gitInv4=this.gitInv4||wn(this.git4),this.gitInv5=this.gitInv5||wn(this.git5),this.gitInv6=this.gitInv6||wn(this.git6),this.gitInv7=this.gitInv7||wn(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(u){var d=this;if(vg(u)==="object"){var _=Object.keys(u);_.forEach(function(m){d[m]=u[m]}),this.updateColors(),_.forEach(function(m){d[m]=u[m]})}else this.updateColors()}}],s&&ib(a.prototype,s),Object.defineProperty(a,"prototype",{writable:!1}),i}();const oc={base:{getThemeVariables:function(i){var a=new Q5;return a.calculate(i),a}},dark:{getThemeVariables:function(i){var a=new k3;return a.calculate(i),a}},default:{getThemeVariables:function(i){var a=new eb;return a.calculate(i),a}},forest:{getThemeVariables:function(i){var a=new rb;return a.calculate(i),a}},neutral:{getThemeVariables:function(i){var a=new ab;return a.calculate(i),a}}};function bg(i){return function(a){if(Array.isArray(a))return xg(a)}(i)||function(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}(i)||function(a,s){if(a){if(typeof a=="string")return xg(a,s);var u=Object.prototype.toString.call(a).slice(8,-1);return u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set"?Array.from(a):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?xg(a,s):void 0}}(i)||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 xg(i,a){(a==null||a>i.length)&&(a=i.length);for(var s=0,u=new Array(a);s<a;s++)u[s]=i[s];return u}function wg(i){return wg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},wg(i)}var Il={theme:"default",themeVariables:oc.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-d3"},sequence:{hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{arrowMarkerAbsolute:!1,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},gitGraph:{diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"}};Il.class.arrowMarkerAbsolute=Il.arrowMarkerAbsolute,Il.gitGraph.arrowMarkerAbsolute=Il.arrowMarkerAbsolute;var ob=function i(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(a).reduce(function(u,d){return Array.isArray(a[d])?u:wg(a[d])==="object"&&a[d]!==null?[].concat(bg(u),[s+d],bg(i(a[d],""))):[].concat(bg(u),[s+d])},[])}(Il,"");const sb=Il;var cb=void 0;function lb(i,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(i,u.key,u)}}function T3(i,a){var s=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!s){if(Array.isArray(i)||(s=S3(i))||a&&i&&typeof i.length=="number"){s&&(i=s);var u=0,d=function(){};return{s:d,n:function(){return u>=i.length?{done:!0}:{done:!1,value:i[u++]}},e:function(C){throw C},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _,m=!0,x=!1;return{s:function(){s=s.call(i)},n:function(){var C=s.next();return m=C.done,C},e:function(C){x=!0,_=C},f:function(){try{m||s.return==null||s.return()}finally{if(x)throw _}}}}function Eo(i){return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Eo(i)}function kg(i){return function(a){if(Array.isArray(a))return Eg(a)}(i)||function(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}(i)||S3(i)||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 S3(i,a){if(i){if(typeof i=="string")return Eg(i,a);var s=Object.prototype.toString.call(i).slice(8,-1);return s==="Object"&&i.constructor&&(s=i.constructor.name),s==="Map"||s==="Set"?Array.from(i):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Eg(i,a):void 0}}function Eg(i,a){(a==null||a>i.length)&&(a=i.length);for(var s=0,u=new Array(a);s<a;s++)u[s]=i[s];return u}var Gf,ub={curveBasis:Qr,curveBasisClosed:function(i){return new $a(i)},curveBasisOpen:function(i){return new mi(i)},curveLinear:xo,curveLinearClosed:function(i){return new Ja(i)},curveMonotoneX:function(i){return new jo(i)},curveMonotoneY:function(i){return new ms(i)},curveNatural:function(i){return new Ph(i)},curveStep:function(i){return new ml(i,.5)},curveStepAfter:function(i){return new ml(i,1)},curveStepBefore:function(i){return new ml(i,0)}},Vf=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,hb=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,fb=/\s*%%.*\n/gm,A3=function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var s=new RegExp("[%]{2}(?![{]".concat(hb.source,`)(?=[}][%]{2}).*
|
|
`),"ig");i=i.trim().replace(s,"").replace(/'/gm,'"'),k.debug("Detecting diagram directive".concat(a!==null?" type:"+a:""," based on the text:").concat(i));for(var u,d=[];(u=Vf.exec(i))!==null;)if(u.index===Vf.lastIndex&&Vf.lastIndex++,u&&!a||a&&u[1]&&u[1].match(a)||a&&u[2]&&u[2].match(a)){var _=u[1]?u[1]:u[2],m=u[3]?u[3].trim():u[4]?JSON.parse(u[4].trim()):null;d.push({type:_,args:m})}return d.length===0&&d.push({type:i,args:null}),d.length===1?d[0]:d}catch(x){return k.error("ERROR: ".concat(x.message,` - Unable to parse directive
|
|
`).concat(a!==null?" type:"+a:""," based on the text:").concat(i)),{type:null,args:null}}},Tg=function(i,a){return(i=i.replace(Vf,"").replace(fb,`
|
|
`)).match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/)?"c4":i.match(/^\s*sequenceDiagram/)?"sequence":i.match(/^\s*gantt/)?"gantt":i.match(/^\s*classDiagram-v2/)?"classDiagram":i.match(/^\s*classDiagram/)?a&&a.class&&a.class.defaultRenderer==="dagre-wrapper"?"classDiagram":"class":i.match(/^\s*stateDiagram-v2/)?"stateDiagram":i.match(/^\s*stateDiagram/)?a&&a.class&&a.state.defaultRenderer==="dagre-wrapper"?"stateDiagram":"state":i.match(/^\s*gitGraph/)?"gitGraph":i.match(/^\s*flowchart/)?"flowchart-v2":i.match(/^\s*info/)?"info":i.match(/^\s*pie/)?"pie":i.match(/^\s*erDiagram/)?"er":i.match(/^\s*journey/)?"journey":i.match(/^\s*requirement/)||i.match(/^\s*requirementDiagram/)?"requirement":a&&a.flowchart&&a.flowchart.defaultRenderer==="dagre-wrapper"?"flowchart-v2":"flowchart"},Zf=function(i,a){var s={};return function(){for(var u=arguments.length,d=new Array(u),_=0;_<u;_++)d[_]=arguments[_];var m=a?a.apply(cb,d):d[0];if(m in s)return s[m];var x=i.apply(void 0,d);return s[m]=x,x}},As=function(i,a){if(!i)return a;var s="curve".concat(i.charAt(0).toUpperCase()+i.slice(1));return ub[s]||a},$u=function(i,a){return i&&a?Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)):0},sc=function(i){for(var a="",s="",u=0;u<i.length;u++)i[u]!==void 0&&(i[u].startsWith("color:")||i[u].startsWith("text-align:")?s=s+i[u]+";":a=a+i[u]+";");return{style:a,labelStyle:s}},C3=0,M3=function(){return C3++,"id-"+Math.random().toString(36).substr(2,12)+"-"+C3},N3=function(i){return function(a){for(var s="",u="0123456789abcdef",d=u.length,_=0;_<a;_++)s+=u.charAt(Math.floor(Math.random()*d));return s}(i.length)},Zi=function i(a,s,u){var d=Object.assign({depth:2,clobber:!1},u),_=d.depth,m=d.clobber;return Array.isArray(s)&&!Array.isArray(a)?(s.forEach(function(x){return i(a,x,u)}),a):Array.isArray(s)&&Array.isArray(a)?(s.forEach(function(x){a.indexOf(x)===-1&&a.push(x)}),a):a===void 0||_<=0?a!=null&&Eo(a)==="object"&&Eo(s)==="object"?Object.assign(a,s):s:(s!==void 0&&Eo(a)==="object"&&Eo(s)==="object"&&Object.keys(s).forEach(function(x){Eo(s[x])!=="object"||a[x]!==void 0&&Eo(a[x])!=="object"?(m||Eo(a[x])!=="object"&&Eo(s[x])!=="object")&&(a[x]=s[x]):(a[x]===void 0&&(a[x]=Array.isArray(s[x])?[]:{}),a[x]=i(a[x],s[x],{depth:_-1,clobber:m}))}),a)},db=function(i,a){var s=a.text.replace(Qn.lineBreakRegex," "),u=i.append("text");u.attr("x",a.x),u.attr("y",a.y),u.style("text-anchor",a.anchor),u.style("font-family",a.fontFamily),u.style("font-size",a.fontSize),u.style("font-weight",a.fontWeight),u.attr("fill",a.fill),a.class!==void 0&&u.attr("class",a.class);var d=u.append("tspan");return d.attr("x",a.x+2*a.textMargin),d.attr("fill",a.fill),d.text(s),u},L3=Zf(function(i,a,s){if(!i||(s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},s),Qn.lineBreakRegex.test(i)))return i;var u=i.split(" "),d=[],_="";return u.forEach(function(m,x){var C=Cs("".concat(m," "),s),A=Cs(_,s);if(C>a){var B=D3(m,a,"-",s),Y=B.hyphenatedStrings,j=B.remainingWord;d.push.apply(d,[_].concat(kg(Y))),_=j}else A+C>=a?(d.push(_),_=m):_=[_,m].filter(Boolean).join(" ");x+1===u.length&&d.push(_)}),d.filter(function(m){return m!==""}).join(s.joinWith)},function(i,a,s){return"".concat(i,"-").concat(a,"-").concat(s.fontSize,"-").concat(s.fontWeight,"-").concat(s.fontFamily,"-").concat(s.joinWith)}),D3=Zf(function(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",u=arguments.length>3?arguments[3]:void 0;u=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},u);var d=i.split(""),_=[],m="";return d.forEach(function(x,C){var A="".concat(m).concat(x);if(Cs(A,u)>=a){var B=C+1,Y=d.length===B,j="".concat(A).concat(s);_.push(Y?A:j),m=""}else m=A}),{hyphenatedStrings:_,remainingWord:m}},function(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",u=arguments.length>3?arguments[3]:void 0;return"".concat(i,"-").concat(a,"-").concat(s,"-").concat(u.fontSize,"-").concat(u.fontWeight,"-").concat(u.fontFamily)}),Sg=function(i,a){return a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},a),Ag(i,a).height},Cs=function(i,a){return a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},a),Ag(i,a).width},Ag=Zf(function(i,a){var s=a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},a),u=s.fontSize,d=s.fontFamily,_=s.fontWeight;if(!i)return{width:0,height:0};var m=["sans-serif",d],x=i.split(Qn.lineBreakRegex),C=[],A=He("body");if(!A.remove)return{width:0,height:0,lineHeight:0};for(var B=A.append("svg"),Y=0,j=m;Y<j.length;Y++){var X,vt=j[Y],ut=0,wt={width:0,height:0,lineHeight:0},xt=T3(x);try{for(xt.s();!(X=xt.n()).done;){var Dt=X.value,At={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};At.text=Dt;var Zt=db(B,At).style("font-size",u).style("font-weight",_).style("font-family",vt),se=(Zt._groups||Zt)[0][0].getBBox();wt.width=Math.round(Math.max(wt.width,se.width)),ut=Math.round(se.height),wt.height+=ut,wt.lineHeight=Math.round(Math.max(wt.lineHeight,ut))}}catch(jt){xt.e(jt)}finally{xt.f()}C.push(wt)}return B.remove(),C[isNaN(C[1].height)||isNaN(C[1].width)||isNaN(C[1].lineHeight)||C[0].height>C[1].height&&C[0].width>C[1].width&&C[0].lineHeight>C[1].lineHeight?0:1]},function(i,a){return"".concat(i,"-").concat(a.fontSize,"-").concat(a.fontWeight,"-").concat(a.fontFamily)}),I3=function(i,a,s){var u=new Map;return u.set("height",i),s?(u.set("width","100%"),u.set("style","max-width: ".concat(a,"px;"))):u.set("width",a),u},yo=function(i,a,s,u){(function(d,_){var m,x=T3(_);try{for(x.s();!(m=x.n()).done;){var C=m.value;d.attr(C[0],C[1])}}catch(A){x.e(A)}finally{x.f()}})(i,I3(a,s,u))},Xf=function(i,a,s,u){var d=a.node().getBBox(),_=d.width,m=d.height,x=i._label.width,C=i._label.height,A=0,B=0;_>x&&(A=(_-x)/2+s,x=_+2*s),m>C&&(B=(m-C)/2+s,C=m+2*s),yo(a,C,x,u);var Y="0 0 ".concat(x," ").concat(C);k.debug("Grpah.label",i._label,"swidth",_,"sheight",m,"width",x,"height",C,"tx",A,"ty",B,"vBox",Y),a.attr("viewBox",Y),a.select("g").attr("transform","translate(".concat(A,", ").concat(B,")"))},Kf=function i(a){k.debug("directiveSanitizer called with",a),Eo(a)==="object"&&(a.length?a.forEach(function(s){return i(s)}):Object.keys(a).forEach(function(s){k.debug("Checking key",s),s.indexOf("__")===0&&(k.debug("sanitize deleting __ option",s),delete a[s]),s.indexOf("proto")>=0&&(k.debug("sanitize deleting proto option",s),delete a[s]),s.indexOf("constr")>=0&&(k.debug("sanitize deleting constr option",s),delete a[s]),s.indexOf("themeCSS")>=0&&(k.debug("sanitizing themeCss option"),a[s]=O3(a[s])),ob.indexOf(s)<0?(k.debug("sanitize deleting option",s),delete a[s]):Eo(a[s])==="object"&&(k.debug("sanitize deleting object",s),i(a[s]))}))},O3=function(i){return(i.match(/\{/g)||[]).length!==(i.match(/\}/g)||[]).length?"{ /* ERROR: Unbalanced CSS */ }":i};const cr={assignWithDepth:Zi,wrapLabel:L3,calculateTextHeight:Sg,calculateTextWidth:Cs,calculateTextDimensions:Ag,calculateSvgSizeAttrs:I3,configureSvgSize:yo,setupGraphViewbox:Xf,detectInit:function(i,a){var s=A3(i,/(?:init\b)|(?:initialize\b)/),u={};if(Array.isArray(s)){var d=s.map(function(m){return m.args});Kf(d),u=Zi(u,kg(d))}else u=s.args;if(u){var _=Tg(i,a);["config"].forEach(function(m){u[m]!==void 0&&(_==="flowchart-v2"&&(_="flowchart"),u[_]=u[m],delete u[m])})}return u},detectDirective:A3,detectType:Tg,isSubstringInArray:function(i,a){for(var s=0;s<a.length;s++)if(a[s].match(i))return s;return-1},interpolateToCurve:As,calcLabelPosition:function(i){return i.length===1?i[0]:function(a){var s,u=0;a.forEach(function(m){u+=$u(m,s),s=m});var d=u/2,_=void 0;return s=void 0,a.forEach(function(m){if(s&&!_){var x=$u(m,s);if(x<d)d-=x;else{var C=d/x;C<=0&&(_=s),C>=1&&(_={x:m.x,y:m.y}),C>0&&C<1&&(_={x:(1-C)*s.x+C*m.x,y:(1-C)*s.y+C*m.y})}}s=m}),_}(i)},calcCardinalityPosition:function(i,a,s){var u;k.info("our points",a),a[0]!==s&&(a=a.reverse()),a.forEach(function(A){$u(A,u),u=A});var d,_=25;u=void 0,a.forEach(function(A){if(u&&!d){var B=$u(A,u);if(B<_)_-=B;else{var Y=_/B;Y<=0&&(d=u),Y>=1&&(d={x:A.x,y:A.y}),Y>0&&Y<1&&(d={x:(1-Y)*u.x+Y*A.x,y:(1-Y)*u.y+Y*A.y})}}u=A});var m=i?10:5,x=Math.atan2(a[0].y-d.y,a[0].x-d.x),C={x:0,y:0};return C.x=Math.sin(x)*m+(a[0].x+d.x)/2,C.y=-Math.cos(x)*m+(a[0].y+d.y)/2,C},calcTerminalLabelPosition:function(i,a,s){var u,d=JSON.parse(JSON.stringify(s));k.info("our points",d),a!=="start_left"&&a!=="start_right"&&(d=d.reverse()),d.forEach(function(B){$u(B,u),u=B});var _,m=25+i;u=void 0,d.forEach(function(B){if(u&&!_){var Y=$u(B,u);if(Y<m)m-=Y;else{var j=m/Y;j<=0&&(_=u),j>=1&&(_={x:B.x,y:B.y}),j>0&&j<1&&(_={x:(1-j)*u.x+j*B.x,y:(1-j)*u.y+j*B.y})}}u=B});var x=10+.5*i,C=Math.atan2(d[0].y-_.y,d[0].x-_.x),A={x:0,y:0};return A.x=Math.sin(C)*x+(d[0].x+_.x)/2,A.y=-Math.cos(C)*x+(d[0].y+_.y)/2,a==="start_left"&&(A.x=Math.sin(C+Math.PI)*x+(d[0].x+_.x)/2,A.y=-Math.cos(C+Math.PI)*x+(d[0].y+_.y)/2),a==="end_right"&&(A.x=Math.sin(C-Math.PI)*x+(d[0].x+_.x)/2-5,A.y=-Math.cos(C-Math.PI)*x+(d[0].y+_.y)/2-5),a==="end_left"&&(A.x=Math.sin(C)*x+(d[0].x+_.x)/2-5,A.y=-Math.cos(C)*x+(d[0].y+_.y)/2-5),A},formatUrl:function(i,a){var s=i.trim();if(s)return a.securityLevel!=="loose"?(0,ic.N)(s):s},getStylesFromArray:sc,generateId:M3,random:N3,memoize:Zf,runFunc:function(i){for(var a,s=i.split("."),u=s.length-1,d=s[u],_=window,m=0;m<u;m++)if(!(_=_[s[m]]))return;for(var x=arguments.length,C=new Array(x>1?x-1:0),A=1;A<x;A++)C[A-1]=arguments[A];(a=_)[d].apply(a,C)},entityDecode:function(i){return Gf=Gf||document.createElement("div"),i=escape(i).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Gf.innerHTML=i,unescape(Gf.textContent)},initIdGeneratior:function(){function i(u,d){(function(_,m){if(!(_ instanceof m))throw new TypeError("Cannot call a class as a function")})(this,i),this.deterministic=u,this.seed=d,this.count=d?d.length:0}var a,s;return a=i,(s=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&lb(a.prototype,s),Object.defineProperty(a,"prototype",{writable:!1}),i}(),directiveSanitizer:Kf,sanitizeCss:O3};function Jf(i){return Jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Jf(i)}var Cg,Mg,Ol=Object.freeze(sb),ra=Zi({},Ol),A1=[],ju=Zi({},Ol),Qf=function(i,a){for(var s=Zi({},i),u={},d=0;d<a.length;d++){var _=a[d];pb(_),u=Zi(u,_)}if(s=Zi(s,u),u.theme&&oc[u.theme]){var m=Zi({},Cg),x=Zi(m.themeVariables||{},u.themeVariables);s.themeVariables=oc[s.theme].getThemeVariables(x)}return ju=s,s},Ng=function(){return Zi({},ra)},Jt=function(){return Zi({},ju)},pb=function i(a){Object.keys(ra.secure).forEach(function(s){a[ra.secure[s]]!==void 0&&(k.debug("Denied attempt to modify a secure key ".concat(ra.secure[s]),a[ra.secure[s]]),delete a[ra.secure[s]])}),Object.keys(a).forEach(function(s){s.indexOf("__")===0&&delete a[s]}),Object.keys(a).forEach(function(s){typeof a[s]=="string"&&(a[s].indexOf("<")>-1||a[s].indexOf(">")>-1||a[s].indexOf("url(data:")>-1)&&delete a[s],Jf(a[s])==="object"&&i(a[s])})},Lg=function(i){i.fontFamily&&(i.themeVariables&&i.themeVariables.fontFamily||(i.themeVariables={fontFamily:i.fontFamily})),A1.push(i),Qf(ra,A1)},C1=function(){Qf(ra,A1=[])},Dg="",M1="",td="",Ig=function(i){return Ts(i,Jt())},Ms=function(){Dg="",td="",M1=""},Wa=function(i){Dg=Ig(i).replace(/^\s+/g,"")},ia=function(){return Dg||M1},To=function(i){td=Ig(i).replace(/\n\s+/g,`
|
|
`)},So=function(){return td},N1=function(i){M1=Ig(i)},Hu=function(){return M1},Ns=[],Hc=[""],aa="global",Ao="",Ls=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],L1=[],ed="",R3=!1,ur=function(i){return i==null?Ns:Ns.filter(function(a){return a.parentBoundary===i})},qc=function(){return R3};const B3={addPersonOrSystem:function(i,a,s,u,d,_,m){if(a!==null&&s!==null){var x={},C=Ns.find(function(A){return A.alias===a});C&&a===C.alias?x=C:(x.alias=a,Ns.push(x)),x.label=s==null?{text:""}:{text:s},x.descr=u==null?{text:""}:{text:u},x.wrap=qc(),x.sprite=d,x.tags=_,x.link=m,x.typeC4Shape={text:i},x.parentBoundary=aa}},addPersonOrSystemBoundary:function(i,a,s,u,d){if(i!==null&&a!==null){var _={},m=Ls.find(function(x){return x.alias===i});m&&i===m.alias?_=m:(_.alias=i,Ls.push(_)),_.label=a==null?{text:""}:{text:a},_.type=s==null?{text:"system"}:{text:s},_.tags=u,_.link=d,_.parentBoundary=aa,_.wrap=qc(),Ao=aa,aa=i,Hc.push(Ao)}},addContainer:function(i,a,s,u,d,_,m,x){if(a!==null&&s!==null){var C={},A=Ns.find(function(B){return B.alias===a});A&&a===A.alias?C=A:(C.alias=a,Ns.push(C)),C.label=s==null?{text:""}:{text:s},C.techn=u==null?{text:""}:{text:u},C.descr=d==null?{text:""}:{text:d},C.sprite=_,C.tags=m,C.link=x,C.wrap=qc(),C.typeC4Shape={text:i},C.parentBoundary=aa}},addContainerBoundary:function(i,a,s,u,d){if(i!==null&&a!==null){var _={},m=Ls.find(function(x){return x.alias===i});m&&i===m.alias?_=m:(_.alias=i,Ls.push(_)),_.label=a==null?{text:""}:{text:a},_.type=s==null?{text:"container"}:{text:s},_.tags=u,_.link=d,_.parentBoundary=aa,_.wrap=qc(),Ao=aa,aa=i,Hc.push(Ao)}},addComponent:function(i,a,s,u,d,_,m,x){if(a!==null&&s!==null){var C={},A=Ns.find(function(B){return B.alias===a});A&&a===A.alias?C=A:(C.alias=a,Ns.push(C)),C.label=s==null?{text:""}:{text:s},C.techn=u==null?{text:""}:{text:u},C.descr=d==null?{text:""}:{text:d},C.sprite=_,C.tags=m,C.link=x,C.wrap=qc(),C.typeC4Shape={text:i},C.parentBoundary=aa}},addDeploymentNode:function(i,a,s,u,d,_,m,x){if(a!==null&&s!==null){var C={},A=Ls.find(function(B){return B.alias===a});A&&a===A.alias?C=A:(C.alias=a,Ls.push(C)),C.label=s==null?{text:""}:{text:s},C.type=u==null?{text:"node"}:{text:u},C.descr=d==null?{text:""}:{text:u},C.tags=m,C.link=x,C.nodeType=i,C.parentBoundary=aa,C.wrap=qc(),Ao=aa,aa=a,Hc.push(Ao)}},popBoundaryParseStack:function(){aa=Ao,Hc.pop(),Ao=Hc.pop(),Hc.push(Ao)},addRel:function(i,a,s,u,d,_,m,x,C){if(i!=null&&a!=null&&s!=null&&u!=null){var A={},B=L1.find(function(Y){return Y.from===a&&Y.to===s});B?A=B:L1.push(A),A.type=i,A.from=a,A.to=s,A.label={text:u},A.descr=_==null?{text:""}:{text:_},A.techn=d==null?{text:""}:{text:d},A.sprite=m,A.tags=x,A.link=C,A.wrap=qc()}},autoWrap:qc,setWrap:function(i){R3=i},getC4ShapeArray:ur,getC4Shape:function(i){return Ns.find(function(a){return a.alias===i})},getC4ShapeKeys:function(i){return Object.keys(ur(i))},getBoundarys:function(i){return i==null?Ls:Ls.filter(function(a){return a.parentBoundary===i})},getCurrentBoundaryParse:function(){return aa},getParentBoundaryParse:function(){return Ao},getRels:function(){return L1},getTitle:function(){return ed},getC4Type:function(){return Mg},setAccTitle:Wa,getAccTitle:ia,getAccDescription:So,setAccDescription:To,parseDirective:function(i,a,s){Oi.parseDirective(this,i,a,s)},getConfig:function(){return Jt().c4},clear:function(){Ns=[],Ls=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Ao="",aa="global",Hc=[""],L1=[]},LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:function(i){var a=Ts(i,Jt());ed=a},setC4Type:function(i){var a=Ts(i,Jt());Mg=a}};function F3(i,a){(a==null||a>i.length)&&(a=i.length);for(var s=0,u=new Array(a);s<a;s++)u[s]=i[s];return u}var P3=function(i,a){var s=i.append("rect");if(s.attr("x",a.x),s.attr("y",a.y),s.attr("fill",a.fill),s.attr("stroke",a.stroke),s.attr("width",a.width),s.attr("height",a.height),s.attr("rx",a.rx),s.attr("ry",a.ry),a.attrs!=="undefined"&&a.attrs!==null)for(var u in a.attrs)s.attr(u,a.attrs[u]);return a.class!=="undefined"&&s.attr("class",a.class),s},cc=function(){function i(d,_,m,x,C,A,B){u(_.append("text").attr("x",m+C/2).attr("y",x+A/2+5).style("text-anchor","middle").text(d),B)}function a(d,_,m,x,C,A,B,Y){for(var j=Y.fontSize,X=Y.fontFamily,vt=Y.fontWeight,ut=d.split(Qn.lineBreakRegex),wt=0;wt<ut.length;wt++){var xt=wt*j-j*(ut.length-1)/2,Dt=_.append("text").attr("x",m+C/2).attr("y",x).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",j).style("font-weight",vt).style("font-family",X);Dt.append("tspan").attr("dy",xt).text(ut[wt]).attr("alignment-baseline","mathematical"),u(Dt,B)}}function s(d,_,m,x,C,A,B,Y){var j=_.append("switch"),X=j.append("foreignObject").attr("x",m).attr("y",x).attr("width",C).attr("height",A).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");X.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(d),a(d,j,m,x,C,0,B,Y),u(X,B)}function u(d,_){for(var m in _)_.hasOwnProperty(m)&&d.attr(m,_[m])}return function(d){return d.textPlacement==="fo"?s:d.textPlacement==="old"?i:a}}();const gb=function(i,a,s){var u=s[a.typeC4Shape.text+"_bg_color"],d=s[a.typeC4Shape.text+"_border_color"],_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(a.typeC4Shape.text){case"person":_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var m=i.append("g");m.attr("class","person-man");var x={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};switch(a.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":x.x=a.x,x.y=a.y,x.fill=u,x.width=a.width,x.height=a.height,x.style="stroke:"+d+";stroke-width:0.5;",x.rx=2.5,x.ry=2.5,P3(m,x);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":m.append("path").attr("fill",u).attr("stroke-width","0.5").attr("stroke",d).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",a.x).replaceAll("starty",a.y).replaceAll("half",a.width/2).replaceAll("height",a.height)),m.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",d).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",a.x).replaceAll("starty",a.y).replaceAll("half",a.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":m.append("path").attr("fill",u).attr("stroke-width","0.5").attr("stroke",d).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",a.x).replaceAll("starty",a.y).replaceAll("width",a.width).replaceAll("half",a.height/2)),m.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",d).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",a.x+a.width).replaceAll("starty",a.y).replaceAll("half",a.height/2))}var C,A,B=(C=s,A=a.typeC4Shape.text,{fontFamily:C[A+"FontFamily"],fontSize:C[A+"FontSize"],fontWeight:C[A+"FontWeight"]});switch(m.append("text").attr("fill","#FFFFFF").attr("font-family",B.fontFamily).attr("font-size",B.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",a.typeC4Shape.width).attr("x",a.x+a.width/2-a.typeC4Shape.width/2).attr("y",a.y+a.typeC4Shape.Y).text("<<"+a.typeC4Shape.text+">>"),a.typeC4Shape.text){case"person":case"external_person":(function(j,X,vt,ut,wt,xt){var Dt=j.append("image");Dt.attr("width",X),Dt.attr("height",vt),Dt.attr("x",ut),Dt.attr("y",wt);var At=xt.startsWith("data:image/png;base64")?xt:(0,ic.N)(xt);Dt.attr("xlink:href",At)})(m,48,48,a.x+a.width/2-24,a.y+a.image.Y,_)}var Y=s[a.typeC4Shape.text+"Font"]();return Y.fontWeight="bold",Y.fontSize=Y.fontSize+2,cc(s)(a.label.text,m,a.x,a.y+a.label.Y,a.width,a.height,{fill:"#FFFFFF"},Y),Y=s[a.typeC4Shape.text+"Font"](),a.thchn&&a.thchn.text!==""?cc(s)(a.thchn.text,m,a.x,a.y+a.thchn.Y,a.width,a.height,{fill:"#FFFFFF","font-style":"italic"},Y):a.type&&a.type.text!==""&&cc(s)(a.type.text,m,a.x,a.y+a.type.Y,a.width,a.height,{fill:"#FFFFFF","font-style":"italic"},Y),a.descr&&a.descr.text!==""&&(Y=s.personFont(),cc(s)(a.descr.text,m,a.x,a.y+a.descr.Y,a.width,a.height,{fill:"#FFFFFF"},Y)),a.height},yb=function(i,a,s){var u,d=i.append("g"),_=0,m=function(Y,j){var X=typeof Symbol!="undefined"&&Y[Symbol.iterator]||Y["@@iterator"];if(!X){if(Array.isArray(Y)||(X=function(At,Zt){if(At){if(typeof At=="string")return F3(At,Zt);var se=Object.prototype.toString.call(At).slice(8,-1);return se==="Object"&&At.constructor&&(se=At.constructor.name),se==="Map"||se==="Set"?Array.from(At):se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se)?F3(At,Zt):void 0}}(Y))||j&&Y&&typeof Y.length=="number"){X&&(Y=X);var vt=0,ut=function(){};return{s:ut,n:function(){return vt>=Y.length?{done:!0}:{done:!1,value:Y[vt++]}},e:function(At){throw At},f:ut}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var wt,xt=!0,Dt=!1;return{s:function(){X=X.call(Y)},n:function(){var At=X.next();return xt=At.done,At},e:function(At){Dt=!0,wt=At},f:function(){try{xt||X.return==null||X.return()}finally{if(Dt)throw wt}}}}(a);try{for(m.s();!(u=m.n()).done;){var x=u.value;if(_===0){var C=d.append("line");C.attr("x1",x.startPoint.x),C.attr("y1",x.startPoint.y),C.attr("x2",x.endPoint.x),C.attr("y2",x.endPoint.y),C.attr("stroke-width","1"),C.attr("stroke","#444444"),C.style("fill","none"),x.type!=="rel_b"&&C.attr("marker-end","url(#arrowhead)"),x.type!=="birel"&&x.type!=="rel_b"||C.attr("marker-start","url(#arrowend)"),_=-1}else{var A=d.append("path");A.attr("fill","none").attr("stroke-width","1").attr("stroke","#444444").attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",x.startPoint.x).replaceAll("starty",x.startPoint.y).replaceAll("controlx",x.startPoint.x+(x.endPoint.x-x.startPoint.x)/2-(x.endPoint.x-x.startPoint.x)/4).replaceAll("controly",x.startPoint.y+(x.endPoint.y-x.startPoint.y)/2).replaceAll("stopx",x.endPoint.x).replaceAll("stopy",x.endPoint.y)),x.type!=="rel_b"&&A.attr("marker-end","url(#arrowhead)"),x.type!=="birel"&&x.type!=="rel_b"||A.attr("marker-start","url(#arrowend)")}var B=s.messageFont();cc(s)(x.label.text,d,Math.min(x.startPoint.x,x.endPoint.x)+Math.abs(x.endPoint.x-x.startPoint.x)/2,Math.min(x.startPoint.y,x.endPoint.y)+Math.abs(x.endPoint.y-x.startPoint.y)/2,x.label.width,x.label.height,{fill:"#444444"},B),x.techn&&x.techn.text!==""&&(B=s.messageFont(),cc(s)("["+x.techn.text+"]",d,Math.min(x.startPoint.x,x.endPoint.x)+Math.abs(x.endPoint.x-x.startPoint.x)/2,Math.min(x.startPoint.y,x.endPoint.y)+Math.abs(x.endPoint.y-x.startPoint.y)/2+s.messageFontSize+5,Math.max(x.label.width,x.techn.width),x.techn.height,{fill:"#444444","font-style":"italic"},B))}}catch(Y){m.e(Y)}finally{m.f()}};ic.N;var _a=f(2536),U3=f.n(_a);function eo(i,a,s){if(a.insert!==void 0){var u=i.getAccTitle(),d=i.getAccDescription();a.attr("role","img").attr("aria-labelledby","chart-title-"+s+" chart-desc-"+s),a.insert("desc",":first-child").attr("id","chart-desc-"+s).text(d),a.insert("title",":first-child").attr("id","chart-title-"+s).text(u)}}function Zr(i,a){(a==null||a>i.length)&&(a=i.length);for(var s=0,u=new Array(a);s<a;s++)u[s]=i[s];return u}function Og(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function z3(i,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(i,u.key,u)}}function Rg(i,a,s){return a&&z3(i.prototype,a),s&&z3(i,s),Object.defineProperty(i,"prototype",{writable:!1}),i}var nd=0,D1=0;_a.parser.yy=B3;var Sn={},Bg=function(){function i(){Og(this,i),this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,Fg(_a.parser.yy.getConfig())}return Rg(i,[{key:"setData",value:function(a,s,u,d){this.nextData.startx=this.data.startx=a,this.nextData.stopx=this.data.stopx=s,this.nextData.starty=this.data.starty=u,this.nextData.stopy=this.data.stopy=d}},{key:"updateVal",value:function(a,s,u,d){a[s]===void 0?a[s]=u:a[s]=d(u,a[s])}},{key:"insert",value:function(a){this.nextData.cnt=this.nextData.cnt+1;var s=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+a.margin:this.nextData.stopx+2*a.margin,u=s+a.width,d=this.nextData.starty+2*a.margin,_=d+a.height;(s>=this.data.widthLimit||u>=this.data.widthLimit||this.nextData.cnt>Sn.c4ShapeInRow)&&(s=this.nextData.startx+a.margin+Sn.nextLinePaddingX,d=this.nextData.stopy+2*a.margin,this.nextData.stopx=u=s+a.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=_=d+a.height,this.nextData.cnt=1),a.x=s,a.y=d,this.updateVal(this.data,"startx",s,Math.min),this.updateVal(this.data,"starty",d,Math.min),this.updateVal(this.data,"stopx",u,Math.max),this.updateVal(this.data,"stopy",_,Math.max),this.updateVal(this.nextData,"startx",s,Math.min),this.updateVal(this.nextData,"starty",d,Math.min),this.updateVal(this.nextData,"stopx",u,Math.max),this.updateVal(this.nextData,"stopy",_,Math.max)}},{key:"init",value:function(){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},Fg(_a.parser.yy.getConfig())}},{key:"bumpLastMargin",value:function(a){this.data.stopx+=a,this.data.stopy+=a}}]),i}(),Fg=function(i){Zi(Sn,i),i.fontFamily&&(Sn.personFontFamily=Sn.systemFontFamily=Sn.messageFontFamily=i.fontFamily),i.fontSize&&(Sn.personFontSize=Sn.systemFontSize=Sn.messageFontSize=i.fontSize),i.fontWeight&&(Sn.personFontWeight=Sn.systemFontWeight=Sn.messageFontWeight=i.fontWeight)},qu=function(i,a){return{fontFamily:i[a+"FontFamily"],fontSize:i[a+"FontSize"],fontWeight:i[a+"FontWeight"]}},rd=function(i){return{fontFamily:i.boundaryFontFamily,fontSize:i.boundaryFontSize,fontWeight:i.boundaryFontWeight}};function Co(i,a,s,u,d){if(!a[i].width)if(s)a[i].text=L3(a[i].text,d,u),a[i].textLines=a[i].text.split(Qn.lineBreakRegex).length,a[i].width=d,a[i].height=Sg(a[i].text,u);else{var _=a[i].text.split(Qn.lineBreakRegex);a[i].textLines=_.length;var m=0;a[i].height=0,a[i].width=0;for(var x=0;x<_.length;x++)a[i].width=Math.max(Cs(_[x],u),a[i].width),m=Sg(_[x],u),a[i].height=a[i].height+m}}var Y3=function(i,a,s){a.x=s.data.startx,a.y=s.data.starty,a.width=s.data.stopx-s.data.startx,a.height=s.data.stopy-s.data.starty,a.label.y=Sn.c4ShapeMargin-35;var u=a.wrap&&Sn.wrap,d=rd(Sn);d.fontSize=d.fontSize+2,d.fontWeight="bold",Co("label",a,u,d,Cs(a.label.text,d)),function(_,m,x){var C=_.append("g"),A={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};m.nodeType&&(A={"stroke-width":1});var B={x:m.x,y:m.y,fill:"none",stroke:"#444444",width:m.width,height:m.height,rx:2.5,ry:2.5,attrs:A};P3(C,B);var Y=x.boundaryFont();Y.fontWeight="bold",Y.fontSize=Y.fontSize+2,cc(x)(m.label.text,C,m.x,m.y+m.label.Y,m.width,m.height,{fill:"#444444"},Y),m.type&&m.type.text!==""&&(Y=x.boundaryFont(),cc(x)(m.type.text,C,m.x,m.y+m.type.Y,m.width,m.height,{fill:"#444444"},Y)),m.descr&&m.descr.text!==""&&((Y=x.boundaryFont()).fontSize=Y.fontSize-2,cc(x)(m.descr.text,C,m.x,m.y+m.descr.Y,m.width,m.height,{fill:"#444444"},Y))}(i,a,Sn)},Pg=function(i,a,s,u){for(var d=0,_=0;_<u.length;_++){d=0;var m=s[u[_]],x=qu(Sn,m.typeC4Shape.text);switch(x.fontSize=x.fontSize-2,m.typeC4Shape.width=Cs("<<"+m.typeC4Shape.text+">>",x),m.typeC4Shape.height=x.fontSize+2,m.typeC4Shape.Y=Sn.c4ShapePadding,d=m.typeC4Shape.Y+m.typeC4Shape.height-4,m.image={width:0,height:0,Y:0},m.typeC4Shape.text){case"person":case"external_person":m.image.width=48,m.image.height=48,m.image.Y=d,d=m.image.Y+m.image.height}m.sprite&&(m.image.width=48,m.image.height=48,m.image.Y=d,d=m.image.Y+m.image.height);var C=m.wrap&&Sn.wrap,A=Sn.width-2*Sn.c4ShapePadding,B=qu(Sn,m.typeC4Shape.text);B.fontSize=B.fontSize+2,B.fontWeight="bold",Co("label",m,C,B,A),m.label.Y=d+8,d=m.label.Y+m.label.height,m.type&&m.type.text!==""?(m.type.text="["+m.type.text+"]",Co("type",m,C,qu(Sn,m.typeC4Shape.text),A),m.type.Y=d+5,d=m.type.Y+m.type.height):m.techn&&m.techn.text!==""&&(m.techn.text="["+m.techn.text+"]",Co("techn",m,C,qu(Sn,m.techn.text),A),m.techn.Y=d+5,d=m.techn.Y+m.techn.height);var Y=d,j=m.label.width;m.descr&&m.descr.text!==""&&(Co("descr",m,C,qu(Sn,m.typeC4Shape.text),A),m.descr.Y=d+20,d=m.descr.Y+m.descr.height,j=Math.max(m.label.width,m.descr.width),Y=d-5*m.descr.textLines),j+=Sn.c4ShapePadding,m.width=Math.max(m.width||Sn.width,j,Sn.width),m.height=Math.max(m.height||Sn.height,Y,Sn.height),m.margin=m.margin||Sn.c4ShapeMargin,i.insert(m),gb(a,m,Sn)}i.bumpLastMargin(Sn.c4ShapeMargin)},Mo=Rg(function i(a,s){Og(this,i),this.x=a,this.y=s}),Ug=function(i,a){var s=i.x,u=i.y,d=a.x,_=a.y,m=s+i.width/2,x=u+i.height/2,C=Math.abs(s-d),A=Math.abs(u-_),B=A/C,Y=i.height/i.width,j=null;return u==_&&s<d?j=new Mo(s+i.width,x):u==_&&s>d?j=new Mo(s,x):s==d&&u<_?j=new Mo(m,u+i.height):s==d&&u>_&&(j=new Mo(m,u)),s>d&&u<_?j=Y>=B?new Mo(s,x+B*i.width/2):new Mo(m-C/A*i.height/2,u+i.height):s<d&&u<_?j=Y>=B?new Mo(s+i.width,x+B*i.width/2):new Mo(m+C/A*i.height/2,u+i.height):s<d&&u>_?j=Y>=B?new Mo(s+i.width,x-B*i.width/2):new Mo(m+i.height/2*C/A,u):s>d&&u>_&&(j=Y>=B?new Mo(s,x-i.width/2*B):new Mo(m-i.height/2*C/A,u)),j},mb=function(i,a){var s={x:0,y:0};s.x=a.x+a.width/2,s.y=a.y+a.height/2;var u=Ug(i,s);return s.x=i.x+i.width/2,s.y=i.y+i.height/2,{startPoint:u,endPoint:Ug(a,s)}};function zg(i,a,s,u){var d=new Bg;d.data.widthLimit=s.data.widthLimit/Math.min(Sn.c4BoundaryInRow,u.length);for(var _=0;_<u.length;_++){var m=u[_],x=0;m.image={width:0,height:0,Y:0},m.sprite&&(m.image.width=48,m.image.height=48,m.image.Y=x,x=m.image.Y+m.image.height);var C=m.wrap&&Sn.wrap,A=rd(Sn);if(A.fontSize=A.fontSize+2,A.fontWeight="bold",Co("label",m,C,A,d.data.widthLimit),m.label.Y=x+8,x=m.label.Y+m.label.height,m.type&&m.type.text!==""&&(m.type.text="["+m.type.text+"]",Co("type",m,C,rd(Sn),d.data.widthLimit),m.type.Y=x+5,x=m.type.Y+m.type.height),m.descr&&m.descr.text!==""){var B=rd(Sn);B.fontSize=B.fontSize-2,Co("descr",m,C,B,d.data.widthLimit),m.descr.Y=x+20,x=m.descr.Y+m.descr.height}if(_==0||_%Sn.c4BoundaryInRow==0){var Y=s.data.startx+Sn.diagramMarginX,j=s.data.stopy+Sn.diagramMarginY+x;d.setData(Y,Y,j,j)}else{var X=d.data.stopx!==d.data.startx?d.data.stopx+Sn.diagramMarginX:d.data.startx,vt=d.data.starty;d.setData(X,X,vt,vt)}d.name=m.alias;var ut=_a.parser.yy.getC4ShapeArray(m.alias),wt=_a.parser.yy.getC4ShapeKeys(m.alias);wt.length>0&&Pg(d,i,ut,wt),a=m.alias;var xt=_a.parser.yy.getBoundarys(a);xt.length>0&&zg(i,a,d,xt),m.alias!=="global"&&Y3(i,m,d),s.data.stopy=Math.max(d.data.stopy+Sn.c4ShapeMargin,s.data.stopy),s.data.stopx=Math.max(d.data.stopx+Sn.c4ShapeMargin,s.data.stopx),nd=Math.max(nd,s.data.stopx),D1=Math.max(D1,s.data.stopy)}}const $3={drawPersonOrSystemArray:Pg,drawBoundary:Y3,setConf:Fg,draw:function(i,a){Sn=Jt().c4;var s,u=Jt().securityLevel;u==="sandbox"&&(s=He("#i"+a));var d=He(u==="sandbox"?s.nodes()[0].contentDocument.body:"body");u==="sandbox"&&s.nodes()[0].contentDocument,_a.parser.yy.clear(),_a.parser.yy.setWrap(Sn.wrap),_a.parser.parse(i+`
|
|
`),k.debug("C:".concat(JSON.stringify(Sn,null,2)));var _=u==="sandbox"?d.select('[id="'.concat(a,'"]')):He('[id="'.concat(a,'"]'));_.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"),function(j){j.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}(_),function(j){j.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}(_);var m=new Bg;m.setData(Sn.diagramMarginX,Sn.diagramMarginX,Sn.diagramMarginY,Sn.diagramMarginY),m.data.widthLimit=screen.availWidth,nd=Sn.diagramMarginX,D1=Sn.diagramMarginY;var x=_a.parser.yy.getTitle();_a.parser.yy.getC4Type(),zg(_,"",m,_a.parser.yy.getBoundarys("")),function(j){j.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")}(_),function(j){j.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")}(_),function(j){var X=j.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);X.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),X.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")}(_),function(j){j.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}(_),function(j,X,vt){var ut,wt,xt=0,Dt=function(It,Ct){var mt=typeof Symbol!="undefined"&&It[Symbol.iterator]||It["@@iterator"];if(!mt){if(Array.isArray(It)||(mt=function(ke,pe){if(ke){if(typeof ke=="string")return Zr(ke,pe);var Ee=Object.prototype.toString.call(ke).slice(8,-1);return Ee==="Object"&&ke.constructor&&(Ee=ke.constructor.name),Ee==="Map"||Ee==="Set"?Array.from(ke):Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee)?Zr(ke,pe):void 0}}(It))||Ct&&It&&typeof It.length=="number"){mt&&(It=mt);var Ut=0,Tt=function(){};return{s:Tt,n:function(){return Ut>=It.length?{done:!0}:{done:!1,value:It[Ut++]}},e:function(ke){throw ke},f:Tt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Te,Ce=!0,Qt=!1;return{s:function(){mt=mt.call(It)},n:function(){var ke=mt.next();return Ce=ke.done,ke},e:function(ke){Qt=!0,Te=ke},f:function(){try{Ce||mt.return==null||mt.return()}finally{if(Qt)throw Te}}}}(X);try{for(Dt.s();!(ut=Dt.n()).done;){var At=ut.value;xt+=1;var Zt=At.wrap&&Sn.wrap,se={fontFamily:(wt=Sn).messageFontFamily,fontSize:wt.messageFontSize,fontWeight:wt.messageFontWeight};_a.parser.yy.getC4Type()==="C4Dynamic"&&(At.label.text=xt+": "+At.label.text);var jt=Cs(At.label.text,se);Co("label",At,Zt,se,jt),At.techn&&At.techn.text!==""&&Co("techn",At,Zt,se,jt=Cs(At.techn.text,se)),At.descr&&At.descr.text!==""&&Co("descr",At,Zt,se,jt=Cs(At.descr.text,se));var ne=vt(At.from),ie=vt(At.to),Ot=mb(ne,ie);At.startPoint=Ot.startPoint,At.endPoint=Ot.endPoint}}catch(It){Dt.e(It)}finally{Dt.f()}yb(j,X,Sn)}(_,_a.parser.yy.getRels(),_a.parser.yy.getC4Shape),m.data.stopx=nd,m.data.stopy=D1;var C=m.data,A=C.stopy-C.starty+2*Sn.diagramMarginY,B=C.stopx-C.startx+2*Sn.diagramMarginX;x&&_.append("text").text(x).attr("x",(C.stopx-C.startx)/2-4*Sn.diagramMarginX).attr("y",C.starty+Sn.diagramMarginY),yo(_,A,B,Sn.useMaxWidth);var Y=x?60:0;_.attr("viewBox",C.startx-Sn.diagramMarginX+" -"+(Sn.diagramMarginY+Y)+" "+B+" "+(A+Y)),eo(_a.parser.yy,_,a),k.debug("models:",C)}};function id(i,a){(a==null||a>i.length)&&(a=i.length);for(var s=0,u=new Array(a);s<a;s++)u[s]=i[s];return u}var Yg="classid-",ad=[],Xi={},$g=0,od=[],Wu=function(i){return Qn.sanitizeText(i,Jt())},I1=function(i){var a="",s=i;if(i.indexOf("~")>0){var u=i.split("~");s=u[0],a=Qn.sanitizeText(u[1],Jt())}return{className:s,type:a}},sd=function(i){var a=I1(i);Xi[a.className]===void 0&&(Xi[a.className]={id:a.className,type:a.type,cssClasses:[],methods:[],members:[],annotations:[],domId:Yg+a.className+"-"+$g},$g++)},cd=function(i){for(var a=Object.keys(Xi),s=0;s<a.length;s++)if(Xi[a[s]].id===i)return Xi[a[s]].domId},jg=function(i,a){var s=I1(i).className,u=Xi[s];if(typeof a=="string"){var d=a.trim();d.startsWith("<<")&&d.endsWith(">>")?u.annotations.push(Wu(d.substring(2,d.length-2))):d.indexOf(")")>0?u.methods.push(Wu(d)):d&&u.members.push(Wu(d))}},Hg=function(i,a){i.split(",").forEach(function(s){var u=s;s[0].match(/\d/)&&(u=Yg+u),Xi[u]!==void 0&&Xi[u].cssClasses.push(a)})},j3=function(i,a,s){var u=Jt(),d=i,_=cd(d);if(u.securityLevel==="loose"&&a!==void 0&&Xi[d]!==void 0){var m=[];if(typeof s=="string"){m=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var x=0;x<m.length;x++){var C=m[x].trim();C.charAt(0)==='"'&&C.charAt(C.length-1)==='"'&&(C=C.substr(1,C.length-2)),m[x]=C}}m.length===0&&m.push(_),od.push(function(){var A=document.querySelector('[id="'.concat(_,'"]'));A!==null&&A.addEventListener("click",function(){var B;cr.runFunc.apply(cr,[a].concat(function(Y){if(Array.isArray(Y))return id(Y)}(B=m)||function(Y){if(typeof Symbol!="undefined"&&Y[Symbol.iterator]!=null||Y["@@iterator"]!=null)return Array.from(Y)}(B)||function(Y,j){if(Y){if(typeof Y=="string")return id(Y,j);var X=Object.prototype.toString.call(Y).slice(8,-1);return X==="Object"&&Y.constructor&&(X=Y.constructor.name),X==="Map"||X==="Set"?Array.from(Y):X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X)?id(Y,j):void 0}}(B)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)})}},O1={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},qg=function(i){var a=He(".mermaidTooltip");(a._groups||a)[0][0]===null&&(a=He("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),He(i).select("svg").selectAll("g.node").on("mouseover",function(){var s=He(this);if(s.attr("title")!==null){var u=this.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.text(s.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.top-14+document.body.scrollTop+"px"),s.classed("hover",!0)}}).on("mouseout",function(){a.transition().duration(500).style("opacity",0),He(this).classed("hover",!1)})};od.push(qg);var H3="TB";const ts={parseDirective:function(i,a,s){Oi.parseDirective(this,i,a,s)},setAccTitle:Wa,getAccTitle:ia,getAccDescription:So,setAccDescription:To,getConfig:function(){return Jt().class},addClass:sd,bindFunctions:function(i){od.forEach(function(a){a(i)})},clear:function(){ad=[],Xi={},(od=[]).push(qg),Ms()},getClass:function(i){return Xi[i]},getClasses:function(){return Xi},addAnnotation:function(i,a){var s=I1(i).className;Xi[s].annotations.push(a)},getRelations:function(){return ad},addRelation:function(i){k.debug("Adding relation: "+JSON.stringify(i)),sd(i.id1),sd(i.id2),i.id1=I1(i.id1).className,i.id2=I1(i.id2).className,i.relationTitle1=Qn.sanitizeText(i.relationTitle1.trim(),Jt()),i.relationTitle2=Qn.sanitizeText(i.relationTitle2.trim(),Jt()),ad.push(i)},getDirection:function(){return H3},setDirection:function(i){H3=i},addMember:jg,addMembers:function(i,a){Array.isArray(a)&&(a.reverse(),a.forEach(function(s){return jg(i,s)}))},cleanupLabel:function(i){return i.substring(0,1)===":"?Qn.sanitizeText(i.substr(1).trim(),Jt()):Wu(i.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:O1,setClickEvent:function(i,a,s){i.split(",").forEach(function(u){j3(u,a,s),Xi[u].haveCallback=!0}),Hg(i,"clickable")},setCssClass:Hg,setLink:function(i,a,s){var u=Jt();i.split(",").forEach(function(d){var _=d;d[0].match(/\d/)&&(_=Yg+_),Xi[_]!==void 0&&(Xi[_].link=cr.formatUrl(a,u),u.securityLevel==="sandbox"?Xi[_].linkTarget="_top":Xi[_].linkTarget=typeof s=="string"?Wu(s):"_blank")}),Hg(i,"clickable")},setTooltip:function(i,a){var s=Jt();i.split(",").forEach(function(u){a!==void 0&&(Xi[u].tooltip=Qn.sanitizeText(a,s))})},lookUpDomId:cd};var _b=f(681),Gu=f.n(_b),vb=f(8282),Fi=f.n(vb),Wc=f(1362),q3=f.n(Wc),W3=0,ld=function(i){var a=i.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),s=i.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return a&&!s?bb(a):s?G3(s):xb(i)},bb=function(i){var a="",s="";try{var u=i[1]?i[1].trim():"",d=i[2]?i[2].trim():"",_=i[3]?Vu(i[3].trim()):"",m=i[4]?i[4].trim():"",x=i[5]?i[5].trim():"";s=u+d+_+" "+m,a=ud(x)}catch{s=i}return{displayText:s,cssStyle:a}},G3=function(i){var a="",s="";try{var u=i[1]?i[1].trim():"",d=i[2]?i[2].trim():"",_=i[3]?Vu(i[3].trim()):"",m=i[4]?i[4].trim():"";s=u+d+"("+_+")"+(i[5]?" : "+Vu(i[5]).trim():""),a=ud(m)}catch{s=i}return{displayText:s,cssStyle:a}},xb=function(i){var a="",s="",u="",d=i.indexOf("("),_=i.indexOf(")");if(d>1&&_>d&&_<=i.length){var m="",x="",C=i.substring(0,1);C.match(/\w/)?x=i.substring(0,d).trim():(C.match(/\+|-|~|#/)&&(m=C),x=i.substring(1,d).trim());var A=i.substring(d+1,_),B=i.substring(_+1,1);s=ud(B),a=m+x+"("+Vu(A.trim())+")",_<0&&(u=i.substring(_+2).trim())!==""&&(u=" : "+Vu(u))}else a=Vu(i);return{displayText:a,cssStyle:s}},Wg=function(i,a,s,u){var d=ld(a),_=i.append("tspan").attr("x",u.padding).text(d.displayText);d.cssStyle!==""&&_.attr("style",d.cssStyle),s||_.attr("dy",u.textHeight)},Vu=function i(a){var s=a;return a.indexOf("~")!=-1?i(s=(s=s.replace("~","<")).replace("~",">")):s},ud=function(i){switch(i){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const wb=function(i,a,s){k.info("Rendering class "+a);var u,d=a.id,_={id:d,label:a.id,width:0,height:0},m=i.append("g").attr("id",cd(d)).attr("class","classGroup");u=a.link?m.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",s.textHeight+s.padding).attr("x",0):m.append("text").attr("y",s.textHeight+s.padding).attr("x",0);var x=!0;a.annotations.forEach(function(At){var Zt=u.append("tspan").text("\xAB"+At+"\xBB");x||Zt.attr("dy",s.textHeight),x=!1});var C=a.id;a.type!==void 0&&a.type!==""&&(C+="<"+a.type+">");var A=u.append("tspan").text(C).attr("class","title");x||A.attr("dy",s.textHeight);var B=u.node().getBBox().height,Y=m.append("line").attr("x1",0).attr("y1",s.padding+B+s.dividerMargin/2).attr("y2",s.padding+B+s.dividerMargin/2),j=m.append("text").attr("x",s.padding).attr("y",B+s.dividerMargin+s.textHeight).attr("fill","white").attr("class","classText");x=!0,a.members.forEach(function(At){Wg(j,At,x,s),x=!1});var X=j.node().getBBox(),vt=m.append("line").attr("x1",0).attr("y1",s.padding+B+s.dividerMargin+X.height).attr("y2",s.padding+B+s.dividerMargin+X.height),ut=m.append("text").attr("x",s.padding).attr("y",B+2*s.dividerMargin+X.height+s.textHeight).attr("fill","white").attr("class","classText");x=!0,a.methods.forEach(function(At){Wg(ut,At,x,s),x=!1});var wt=m.node().getBBox(),xt=" ";a.cssClasses.length>0&&(xt+=a.cssClasses.join(" "));var Dt=m.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",wt.width+2*s.padding).attr("height",wt.height+s.padding+.5*s.dividerMargin).attr("class",xt).node().getBBox().width;return u.node().childNodes.forEach(function(At){At.setAttribute("x",(Dt-At.getBBox().width)/2)}),a.tooltip&&u.insert("title").text(a.tooltip),Y.attr("x2",Dt),vt.attr("x2",Dt),_.width=Dt,_.height=wt.height+s.padding+.5*s.dividerMargin,_};Wc.parser.yy=ts;var hd={},fd={dividerMargin:10,padding:5,textHeight:10},R1=function(i){var a=Object.entries(hd).find(function(s){return s[1].label===i});if(a)return a[0]};const V3=function(i){Object.keys(i).forEach(function(a){fd[a]=i[a]})},kb=function(i,a){hd={},Wc.parser.yy.clear(),Wc.parser.parse(i),k.info("Rendering diagram "+i);var s,u=Jt().securityLevel;u==="sandbox"&&(s=He("#i"+a));var d,_=He(u==="sandbox"?s.nodes()[0].contentDocument.body:"body"),m=(u==="sandbox"&&s.nodes()[0].contentDocument,_.select("[id='".concat(a,"']")));m.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(d=m).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),d.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),d.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),d.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),d.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),d.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),d.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),d.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");var x=new(Fi()).Graph({multigraph:!0});x.setGraph({isMultiGraph:!0}),x.setDefaultEdgeLabel(function(){return{}});for(var C=ts.getClasses(),A=Object.keys(C),B=0;B<A.length;B++){var Y=C[A[B]],j=wb(m,Y,fd);hd[j.id]=j,x.setNode(j.id,j),k.info("Org height: "+j.height)}ts.getRelations().forEach(function(xt){k.info("tjoho"+R1(xt.id1)+R1(xt.id2)+JSON.stringify(xt)),x.setEdge(R1(xt.id1),R1(xt.id2),{relation:xt},xt.title||"DEFAULT")}),Gu().layout(x),x.nodes().forEach(function(xt){xt!==void 0&&x.node(xt)!==void 0&&(k.debug("Node "+xt+": "+JSON.stringify(x.node(xt))),_.select("#"+cd(xt)).attr("transform","translate("+(x.node(xt).x-x.node(xt).width/2)+","+(x.node(xt).y-x.node(xt).height/2)+" )"))}),x.edges().forEach(function(xt){xt!==void 0&&x.edge(xt)!==void 0&&(k.debug("Edge "+xt.v+" -> "+xt.w+": "+JSON.stringify(x.edge(xt))),function(Dt,At,Zt,se){var jt=function(cn){switch(cn){case O1.AGGREGATION:return"aggregation";case O1.EXTENSION:return"extension";case O1.COMPOSITION:return"composition";case O1.DEPENDENCY:return"dependency"}};At.points=At.points.filter(function(cn){return!Number.isNaN(cn.y)});var ne,ie,Ot=At.points,It=$o().x(function(cn){return cn.x}).y(function(cn){return cn.y}).curve(Qr),Ct=Dt.append("path").attr("d",It(Ot)).attr("id","edge"+W3).attr("class","relation"),mt="";se.arrowMarkerAbsolute&&(mt=(mt=(mt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Zt.relation.lineType==1&&Ct.attr("class","relation dashed-line"),Zt.relation.type1!=="none"&&Ct.attr("marker-start","url("+mt+"#"+jt(Zt.relation.type1)+"Start)"),Zt.relation.type2!=="none"&&Ct.attr("marker-end","url("+mt+"#"+jt(Zt.relation.type2)+"End)");var Ut,Tt,Te,Ce,Qt=At.points.length,ke=cr.calcLabelPosition(At.points);if(ne=ke.x,ie=ke.y,Qt%2!=0&&Qt>1){var pe=cr.calcCardinalityPosition(Zt.relation.type1!=="none",At.points,At.points[0]),Ee=cr.calcCardinalityPosition(Zt.relation.type2!=="none",At.points,At.points[Qt-1]);k.debug("cardinality_1_point "+JSON.stringify(pe)),k.debug("cardinality_2_point "+JSON.stringify(Ee)),Ut=pe.x,Tt=pe.y,Te=Ee.x,Ce=Ee.y}if(Zt.title!==void 0){var ze=Dt.append("g").attr("class","classLabel"),je=ze.append("text").attr("class","label").attr("x",ne).attr("y",ie).attr("fill","red").attr("text-anchor","middle").text(Zt.title);window.label=je;var yn=je.node().getBBox();ze.insert("rect",":first-child").attr("class","box").attr("x",yn.x-se.padding/2).attr("y",yn.y-se.padding/2).attr("width",yn.width+se.padding).attr("height",yn.height+se.padding)}k.info("Rendering relation "+JSON.stringify(Zt)),Zt.relationTitle1!==void 0&&Zt.relationTitle1!=="none"&&Dt.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",Ut).attr("y",Tt).attr("fill","black").attr("font-size","6").text(Zt.relationTitle1),Zt.relationTitle2!==void 0&&Zt.relationTitle2!=="none"&&Dt.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",Te).attr("y",Ce).attr("fill","black").attr("font-size","6").text(Zt.relationTitle2),W3++}(m,x.edge(xt),x.edge(xt).relation,fd))});var X=m.node().getBBox(),vt=X.width+40,ut=X.height+40;yo(m,ut,vt,fd.useMaxWidth);var wt="".concat(X.x-20," ").concat(X.y-20," ").concat(vt," ").concat(ut);k.debug("viewBox ".concat(wt)),m.attr("viewBox",wt),eo(Wc.parser.yy,m,a)};var Eb={extension:function(i,a,s){k.trace("Making markers for ",s),i.append("defs").append("marker").attr("id",a+"-extensionStart").attr("class","marker extension "+a).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id",a+"-extensionEnd").attr("class","marker extension "+a).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(i,a){i.append("defs").append("marker").attr("id",a+"-compositionStart").attr("class","marker composition "+a).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",a+"-compositionEnd").attr("class","marker composition "+a).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(i,a){i.append("defs").append("marker").attr("id",a+"-aggregationStart").attr("class","marker aggregation "+a).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",a+"-aggregationEnd").attr("class","marker aggregation "+a).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(i,a){i.append("defs").append("marker").attr("id",a+"-dependencyStart").attr("class","marker dependency "+a).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",a+"-dependencyEnd").attr("class","marker dependency "+a).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},point:function(i,a){i.append("marker").attr("id",a+"-pointEnd").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),i.append("marker").attr("id",a+"-pointStart").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(i,a){i.append("marker").attr("id",a+"-circleEnd").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),i.append("marker").attr("id",a+"-circleStart").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(i,a){i.append("marker").attr("id",a+"-crossEnd").attr("class","marker cross "+a).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),i.append("marker").attr("id",a+"-crossStart").attr("class","marker cross "+a).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(i,a){i.append("defs").append("marker").attr("id",a+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}};const Tb=function(i,a,s,u){a.forEach(function(d){Eb[d](i,s,u)})};function Gg(i){return Gg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Gg(i)}const va=function(i,a,s,u){var d,_,m,x,C,A,B=i||"";if(Gg(B)==="object"&&(B=B[0]),ma(Jt().flowchart.htmlLabels))return B=B.replace(/\\n|\n/g,"<br />"),k.info("vertexText"+B),d={isNode:u,label:B.replace(/fa[lrsb]?:fa-[\w-]+/g,function(ut){return"<i class='".concat(ut.replace(":"," "),"'></i>")}),labelStyle:a.replace("fill:","color:")},m=He(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),x=m.append("xhtml:div"),C=d.label,A=d.isNode?"nodeLabel":"edgeLabel",x.html('<span class="'+A+'" '+(d.labelStyle?'style="'+d.labelStyle+'"':"")+">"+C+"</span>"),(_=d.labelStyle)&&x.attr("style",_),x.style("display","inline-block"),x.style("white-space","nowrap"),x.attr("xmlns","http://www.w3.org/1999/xhtml"),m.node();var Y=document.createElementNS("http://www.w3.org/2000/svg","text");Y.setAttribute("style",a.replace("color:","fill:"));var j=[];j=typeof B=="string"?B.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(B)?B:[];for(var X=0;X<j.length;X++){var vt=document.createElementNS("http://www.w3.org/2000/svg","tspan");vt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),vt.setAttribute("dy","1em"),vt.setAttribute("x","0"),s?vt.setAttribute("class","title-row"):vt.setAttribute("class","row"),vt.textContent=j[X].trim(),Y.appendChild(vt)}return Y};var Ma=function(i,a,s,u){var d;d=s||"node default";var _=i.insert("g").attr("class",d).attr("id",a.domId||a.id),m=_.insert("g").attr("class","label").attr("style",a.labelStyle),x=typeof a.labelText=="string"?a.labelText:a.labelText[0],C=m.node().appendChild(va(Ts(B6(x),Jt()),a.labelStyle,!1,u)),A=C.getBBox();if(ma(Jt().flowchart.htmlLabels)){var B=C.children[0],Y=He(C);A=B.getBoundingClientRect(),Y.attr("width",A.width),Y.attr("height",A.height)}var j=a.padding/2;return m.attr("transform","translate("+-A.width/2+", "+-A.height/2+")"),{shapeSvg:_,bbox:A,halfPadding:j,label:m}},pi=function(i,a){var s=a.node().getBBox();i.width=s.width,i.height=s.height};function lc(i,a,s,u){return i.insert("polygon",":first-child").attr("points",u.map(function(d){return d.x+","+d.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-a/2+","+s/2+")")}var vr={},es={},Z3={},Rl=function(i,a){return k.trace("In isDecendant",a," ",i," = ",es[a].indexOf(i)>=0),es[a].indexOf(i)>=0},Sb=function i(a,s,u,d){k.warn("Copying children of ",a,"root",d,"data",s.node(a),d);var _=s.children(a)||[];a!==d&&_.push(a),k.warn("Copying (nodes) clusterId",a,"nodes",_),_.forEach(function(m){if(s.children(m).length>0)i(m,s,u,d);else{var x=s.node(m);k.info("cp ",m," to ",d," with parent ",a),u.setNode(m,x),d!==s.parent(m)&&(k.warn("Setting parent",m,s.parent(m)),u.setParent(m,s.parent(m))),a!==d&&m!==a?(k.debug("Setting parent",m,a),u.setParent(m,a)):(k.info("In copy ",a,"root",d,"data",s.node(a),d),k.debug("Not Setting parent for node=",m,"cluster!==rootId",a!==d,"node!==clusterId",m!==a));var C=s.edges(m);k.debug("Copying Edges",C),C.forEach(function(A){k.info("Edge",A);var B=s.edge(A.v,A.w,A.name);k.info("Edge data",B,d);try{(function(Y,j){return k.info("Decendants of ",j," is ",es[j]),k.info("Edge is ",Y),Y.v!==j&&Y.w!==j&&(es[j]?(k.info("Here "),es[j].indexOf(Y.v)>=0||!!Rl(Y.v,j)||!!Rl(Y.w,j)||es[j].indexOf(Y.w)>=0):(k.debug("Tilt, ",j,",not in decendants"),!1))})(A,d)?(k.info("Copying as ",A.v,A.w,B,A.name),u.setEdge(A.v,A.w,B,A.name),k.info("newGraph edges ",u.edges(),u.edge(u.edges()[0]))):k.info("Skipping copy of edge ",A.v,"-->",A.w," rootId: ",d," clusterId:",a)}catch(Y){k.error(Y)}})}k.debug("Removing node",m),s.removeNode(m)})},Ab=function i(a,s){for(var u=s.children(a),d=[].concat(u),_=0;_<u.length;_++)Z3[u[_]]=a,d=d.concat(i(u[_],s));return d},dd=function i(a,s){k.trace("Searching",a);var u=s.children(a);if(k.trace("Searching children of id ",a,u),u.length<1)return k.trace("This is a valid node",a),a;for(var d=0;d<u.length;d++){var _=i(u[d],s);if(_)return k.trace("Found replacement for",a," => ",_),_}},pd=function(i){return vr[i]&&vr[i].externalConnections&&vr[i]?vr[i].id:i},Cb=function(i,a){!i||a>10?k.debug("Opting out, no graph "):(k.debug("Opting in, graph "),i.nodes().forEach(function(s){i.children(s).length>0&&(k.warn("Cluster identified",s," Replacement id in edges: ",dd(s,i)),es[s]=Ab(s,i),vr[s]={id:dd(s,i),clusterData:i.node(s)})}),i.nodes().forEach(function(s){var u=i.children(s),d=i.edges();u.length>0?(k.debug("Cluster identified",s,es),d.forEach(function(_){_.v!==s&&_.w!==s&&Rl(_.v,s)^Rl(_.w,s)&&(k.warn("Edge: ",_," leaves cluster ",s),k.warn("Decendants of XXX ",s,": ",es[s]),vr[s].externalConnections=!0)})):k.debug("Not a cluster ",s,es)}),i.edges().forEach(function(s){var u=i.edge(s);k.warn("Edge "+s.v+" -> "+s.w+": "+JSON.stringify(s)),k.warn("Edge "+s.v+" -> "+s.w+": "+JSON.stringify(i.edge(s)));var d=s.v,_=s.w;if(k.warn("Fix XXX",vr,"ids:",s.v,s.w,"Translateing: ",vr[s.v]," --- ",vr[s.w]),vr[s.v]&&vr[s.w]&&vr[s.v]===vr[s.w]){k.warn("Fixing and trixing link to self - removing XXX",s.v,s.w,s.name),k.warn("Fixing and trixing - removing XXX",s.v,s.w,s.name),d=pd(s.v),_=pd(s.w),i.removeEdge(s.v,s.w,s.name);var m=s.w+"---"+s.v;i.setNode(m,{domId:m,id:m,labelStyle:"",labelText:u.label,padding:0,shape:"labelRect",style:""});var x=JSON.parse(JSON.stringify(u)),C=JSON.parse(JSON.stringify(u));x.label="",x.arrowTypeEnd="none",C.label="",x.fromCluster=s.v,C.toCluster=s.v,i.setEdge(d,m,x,s.name+"-cyclic-special"),i.setEdge(m,_,C,s.name+"-cyclic-special")}else(vr[s.v]||vr[s.w])&&(k.warn("Fixing and trixing - removing XXX",s.v,s.w,s.name),d=pd(s.v),_=pd(s.w),i.removeEdge(s.v,s.w,s.name),d!==s.v&&(u.fromCluster=s.v),_!==s.w&&(u.toCluster=s.w),k.warn("Fix Replacing with XXX",d,_,s.name),i.setEdge(d,_,u,s.name))}),k.warn("Adjusted Graph",Fi().json.write(i)),Mb(i,0),k.trace(vr))},Mb=function i(a,s){if(k.warn("extractor - ",s,Fi().json.write(a),a.children("D")),s>10)k.error("Bailing out");else{for(var u=a.nodes(),d=!1,_=0;_<u.length;_++){var m=u[_],x=a.children(m);d=d||x.length>0}if(d){k.debug("Nodes = ",u,s);for(var C=0;C<u.length;C++){var A=u[C];if(k.debug("Extracting node",A,vr,vr[A]&&!vr[A].externalConnections,!a.parent(A),a.node(A),a.children("D")," Depth ",s),vr[A])if(!vr[A].externalConnections&&a.children(A)&&a.children(A).length>0){k.warn("Cluster without external connections, without a parent and with children",A,s);var B=a.graph().rankdir==="TB"?"LR":"TB";vr[A]&&vr[A].clusterData&&vr[A].clusterData.dir&&(B=vr[A].clusterData.dir,k.warn("Fixing dir",vr[A].clusterData.dir,B));var Y=new(Fi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:B,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});k.warn("Old graph before copy",Fi().json.write(a)),Sb(A,a,Y,A),a.setNode(A,{clusterNode:!0,id:A,clusterData:vr[A].clusterData,labelText:vr[A].labelText,graph:Y}),k.warn("New graph after copy node: (",A,")",Fi().json.write(Y)),k.debug("Old graph after copy",Fi().json.write(a))}else k.warn("Cluster ** ",A," **not meeting the criteria !externalConnections:",!vr[A].externalConnections," no parent: ",!a.parent(A)," children ",a.children(A)&&a.children(A).length>0,a.children("D"),s),k.debug(vr);else k.debug("Not a cluster",A,s)}u=a.nodes(),k.warn("New list of nodes",u);for(var j=0;j<u.length;j++){var X=u[j],vt=a.node(X);k.warn(" Now next level",X,vt),vt.clusterNode&&i(vt.graph,s+1)}}else k.debug("Done, no node has children",a.nodes())}},X3=function i(a,s){if(s.length===0)return[];var u=Object.assign(s);return s.forEach(function(d){var _=a.children(d),m=i(a,_);u=u.concat(m)}),u},Vg=function(i){return X3(i,i.children())},Nb=f(3841);const Lb=function(i,a,s,u){var d=i.x,_=i.y,m=d-u.x,x=_-u.y,C=Math.sqrt(a*a*x*x+s*s*m*m),A=Math.abs(a*s*m/C);u.x<d&&(A=-A);var B=Math.abs(a*s*x/C);return u.y<_&&(B=-B),{x:d+A,y:_+B}};function gr(i,a){return i*a>0}const K3=function(i,a,s,u){var d,_,m,x,C,A,B,Y,j,X,vt,ut,wt;if(d=a.y-i.y,m=i.x-a.x,C=a.x*i.y-i.x*a.y,j=d*s.x+m*s.y+C,X=d*u.x+m*u.y+C,!(j!==0&&X!==0&&gr(j,X)||(_=u.y-s.y,x=s.x-u.x,A=u.x*s.y-s.x*u.y,B=_*i.x+x*i.y+A,Y=_*a.x+x*a.y+A,B!==0&&Y!==0&&gr(B,Y)||(vt=d*x-_*m)==0)))return ut=Math.abs(vt/2),{x:(wt=m*A-x*C)<0?(wt-ut)/vt:(wt+ut)/vt,y:(wt=_*C-d*A)<0?(wt-ut)/vt:(wt+ut)/vt}},Pi=function(i,a){var s,u,d=i.x,_=i.y,m=a.x-d,x=a.y-_,C=i.width/2,A=i.height/2;return Math.abs(x)*C>Math.abs(m)*A?(x<0&&(A=-A),s=x===0?0:A*m/x,u=A):(m<0&&(C=-C),s=C,u=m===0?0:C*x/m),{x:d+s,y:_+u}},ns=(f.n(Nb)(),function(i,a,s){return Lb(i,a,a,s)}),uc=function(i,a,s){var u=i.x,d=i.y,_=[],m=Number.POSITIVE_INFINITY,x=Number.POSITIVE_INFINITY;typeof a.forEach=="function"?a.forEach(function(vt){m=Math.min(m,vt.x),x=Math.min(x,vt.y)}):(m=Math.min(m,a.x),x=Math.min(x,a.y));for(var C=u-i.width/2-m,A=d-i.height/2-x,B=0;B<a.length;B++){var Y=a[B],j=a[B<a.length-1?B+1:0],X=K3(i,s,{x:C+Y.x,y:A+Y.y},{x:C+j.x,y:A+j.y});X&&_.push(X)}return _.length?(_.length>1&&_.sort(function(vt,ut){var wt=vt.x-s.x,xt=vt.y-s.y,Dt=Math.sqrt(wt*wt+xt*xt),At=ut.x-s.x,Zt=ut.y-s.y,se=Math.sqrt(At*At+Zt*Zt);return Dt<se?-1:Dt===se?0:1}),_[0]):i},Ds=Pi;function mo(i){return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},mo(i)}function Bl(i,a,s,u){var d=[],_=function(x){d.push(x),d.push(0)},m=function(x){d.push(0),d.push(x)};a.includes("t")?(k.debug("add top border"),_(s)):m(s),a.includes("r")?(k.debug("add right border"),_(u)):m(u),a.includes("b")?(k.debug("add bottom border"),_(s)):m(s),a.includes("l")?(k.debug("add left border"),_(u)):m(u),i.attr("stroke-dasharray",d.join(" "))}var ba=function(i,a,s){var u=i.insert("g").attr("class","node default").attr("id",a.domId||a.id),d=70,_=10;s==="LR"&&(d=10,_=70);var m=u.append("rect").attr("x",-1*d/2).attr("y",-1*_/2).attr("width",d).attr("height",_).attr("class","fork-join");return pi(a,m),a.height=a.height+a.padding/2,a.width=a.width+a.padding/2,a.intersect=function(x){return Ds(a,x)},u},hc={question:function(i,a){var s=Ma(i,a,void 0,!0),u=s.shapeSvg,d=s.bbox,_=d.width+a.padding+(d.height+a.padding),m=[{x:_/2,y:0},{x:_,y:-_/2},{x:_/2,y:-_},{x:0,y:-_/2}];k.info("Question main (Circle)");var x=lc(u,_,_,m);return x.attr("style",a.style),pi(a,x),a.intersect=function(C){return k.warn("Intersect called"),uc(a,m,C)},u},rect:function(i,a){var s=Ma(i,a,"node "+a.classes,!0),u=s.shapeSvg,d=s.bbox,_=s.halfPadding;k.trace("Classes = ",a.classes);var m=u.insert("rect",":first-child"),x=d.width+a.padding,C=d.height+a.padding;if(m.attr("class","basic label-container").attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("x",-d.width/2-_).attr("y",-d.height/2-_).attr("width",x).attr("height",C),a.props){var A=new Set(Object.keys(a.props));a.props.borders&&(Bl(m,a.props.borders,x,C),A.delete("borders")),A.forEach(function(B){k.warn("Unknown node property ".concat(B))})}return pi(a,m),a.intersect=function(B){return Ds(a,B)},u},labelRect:function(i,a){var s=Ma(i,a,"label",!0),u=s.shapeSvg;k.trace("Classes = ",a.classes);var d=u.insert("rect",":first-child");if(d.attr("width",0).attr("height",0),u.attr("class","label edgeLabel"),a.props){var _=new Set(Object.keys(a.props));a.props.borders&&(Bl(d,a.props.borders,0,0),_.delete("borders")),_.forEach(function(m){k.warn("Unknown node property ".concat(m))})}return pi(a,d),a.intersect=function(m){return Ds(a,m)},u},rectWithTitle:function(i,a){var s;s=a.classes?"node "+a.classes:"node default";var u,d=i.insert("g").attr("class",s).attr("id",a.domId||a.id),_=d.insert("rect",":first-child"),m=d.insert("line"),x=d.insert("g").attr("class","label"),C=a.labelText.flat?a.labelText.flat():a.labelText;u=mo(C)==="object"?C[0]:C,k.info("Label text abc79",u,C,mo(C)==="object");var A=x.node().appendChild(va(u,a.labelStyle,!0,!0)),B={width:0,height:0};if(ma(Jt().flowchart.htmlLabels)){var Y=A.children[0],j=He(A);B=Y.getBoundingClientRect(),j.attr("width",B.width),j.attr("height",B.height)}k.info("Text 2",C);var X=C.slice(1,C.length),vt=A.getBBox(),ut=x.node().appendChild(va(X.join?X.join("<br/>"):X,a.labelStyle,!0,!0));if(ma(Jt().flowchart.htmlLabels)){var wt=ut.children[0],xt=He(ut);B=wt.getBoundingClientRect(),xt.attr("width",B.width),xt.attr("height",B.height)}var Dt=a.padding/2;return He(ut).attr("transform","translate( "+(B.width>vt.width?0:(vt.width-B.width)/2)+", "+(vt.height+Dt+5)+")"),He(A).attr("transform","translate( "+(B.width<vt.width?0:-(vt.width-B.width)/2)+", 0)"),B=x.node().getBBox(),x.attr("transform","translate("+-B.width/2+", "+(-B.height/2-Dt+3)+")"),_.attr("class","outer title-state").attr("x",-B.width/2-Dt).attr("y",-B.height/2-Dt).attr("width",B.width+a.padding).attr("height",B.height+a.padding),m.attr("class","divider").attr("x1",-B.width/2-Dt).attr("x2",B.width/2+Dt).attr("y1",-B.height/2-Dt+vt.height+Dt).attr("y2",-B.height/2-Dt+vt.height+Dt),pi(a,_),a.intersect=function(At){return Ds(a,At)},d},choice:function(i,a){var s=i.insert("g").attr("class","node default").attr("id",a.domId||a.id);return s.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(u){return u.x+","+u.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),a.width=28,a.height=28,a.intersect=function(u){return ns(a,14,u)},s},circle:function(i,a){var s=Ma(i,a,void 0,!0),u=s.shapeSvg,d=s.bbox,_=s.halfPadding,m=u.insert("circle",":first-child");return m.attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("r",d.width/2+_).attr("width",d.width+a.padding).attr("height",d.height+a.padding),k.info("Circle main"),pi(a,m),a.intersect=function(x){return k.info("Circle intersect",a,d.width/2+_,x),ns(a,d.width/2+_,x)},u},doublecircle:function(i,a){var s=Ma(i,a,void 0,!0),u=s.shapeSvg,d=s.bbox,_=s.halfPadding,m=u.insert("g",":first-child"),x=m.insert("circle"),C=m.insert("circle");return x.attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("r",d.width/2+_+5).attr("width",d.width+a.padding+10).attr("height",d.height+a.padding+10),C.attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("r",d.width/2+_).attr("width",d.width+a.padding).attr("height",d.height+a.padding),k.info("DoubleCircle main"),pi(a,x),a.intersect=function(A){return k.info("DoubleCircle intersect",a,d.width/2+_+5,A),ns(a,d.width/2+_+5,A)},u},stadium:function(i,a){var s=Ma(i,a,void 0,!0),u=s.shapeSvg,d=s.bbox,_=d.height+a.padding,m=d.width+_/4+a.padding,x=u.insert("rect",":first-child").attr("style",a.style).attr("rx",_/2).attr("ry",_/2).attr("x",-m/2).attr("y",-_/2).attr("width",m).attr("height",_);return pi(a,x),a.intersect=function(C){return Ds(a,C)},u},hexagon:function(i,a){var s=Ma(i,a,void 0,!0),u=s.shapeSvg,d=s.bbox,_=d.height+a.padding,m=_/4,x=d.width+2*m+a.padding,C=[{x:m,y:0},{x:x-m,y:0},{x,y:-_/2},{x:x-m,y:-_},{x:m,y:-_},{x:0,y:-_/2}],A=lc(u,x,_,C);return A.attr("style",a.style),pi(a,A),a.intersect=function(B){return uc(a,C,B)},u},rect_left_inv_arrow:function(i,a){var s=Ma(i,a,void 0,!0),u=s.shapeSvg,d=s.bbox,_=d.width+a.padding,m=d.height+a.padding,x=[{x:-m/2,y:0},{x:_,y:0},{x:_,y:-m},{x:-m/2,y:-m},{x:0,y:-m/2}];return lc(u,_,m,x).attr("style",a.style),a.width=_+m,a.height=m,a.intersect=function(C){return uc(a,x,C)},u},lean_right:function(i,a){var s=Ma(i,a,void 0,!0),u=s.shapeSvg,d=s.bbox,_=d.width+a.padding,m=d.height+a.padding,x=[{x:-2*m/6,y:0},{x:_-m/6,y:0},{x:_+2*m/6,y:-m},{x:m/6,y:-m}],C=lc(u,_,m,x);return C.attr("style",a.style),pi(a,C),a.intersect=function(A){return uc(a,x,A)},u},lean_left:function(i,a){var s=Ma(i,a,void 0,!0),u=s.shapeSvg,d=s.bbox,_=d.width+a.padding,m=d.height+a.padding,x=[{x:2*m/6,y:0},{x:_+m/6,y:0},{x:_-2*m/6,y:-m},{x:-m/6,y:-m}],C=lc(u,_,m,x);return C.attr("style",a.style),pi(a,C),a.intersect=function(A){return uc(a,x,A)},u},trapezoid:function(i,a){var s=Ma(i,a,void 0,!0),u=s.shapeSvg,d=s.bbox,_=d.width+a.padding,m=d.height+a.padding,x=[{x:-2*m/6,y:0},{x:_+2*m/6,y:0},{x:_-m/6,y:-m},{x:m/6,y:-m}],C=lc(u,_,m,x);return C.attr("style",a.style),pi(a,C),a.intersect=function(A){return uc(a,x,A)},u},inv_trapezoid:function(i,a){var s=Ma(i,a,void 0,!0),u=s.shapeSvg,d=s.bbox,_=d.width+a.padding,m=d.height+a.padding,x=[{x:m/6,y:0},{x:_-m/6,y:0},{x:_+2*m/6,y:-m},{x:-2*m/6,y:-m}],C=lc(u,_,m,x);return C.attr("style",a.style),pi(a,C),a.intersect=function(A){return uc(a,x,A)},u},rect_right_inv_arrow:function(i,a){var s=Ma(i,a,void 0,!0),u=s.shapeSvg,d=s.bbox,_=d.width+a.padding,m=d.height+a.padding,x=[{x:0,y:0},{x:_+m/2,y:0},{x:_,y:-m/2},{x:_+m/2,y:-m},{x:0,y:-m}],C=lc(u,_,m,x);return C.attr("style",a.style),pi(a,C),a.intersect=function(A){return uc(a,x,A)},u},cylinder:function(i,a){var s=Ma(i,a,void 0,!0),u=s.shapeSvg,d=s.bbox,_=d.width+a.padding,m=_/2,x=m/(2.5+_/50),C=d.height+x+a.padding,A="M 0,"+x+" a "+m+","+x+" 0,0,0 "+_+" 0 a "+m+","+x+" 0,0,0 "+-_+" 0 l 0,"+C+" a "+m+","+x+" 0,0,0 "+_+" 0 l 0,"+-C,B=u.attr("label-offset-y",x).insert("path",":first-child").attr("style",a.style).attr("d",A).attr("transform","translate("+-_/2+","+-(C/2+x)+")");return pi(a,B),a.intersect=function(Y){var j=Ds(a,Y),X=j.x-a.x;if(m!=0&&(Math.abs(X)<a.width/2||Math.abs(X)==a.width/2&&Math.abs(j.y-a.y)>a.height/2-x)){var vt=x*x*(1-X*X/(m*m));vt!=0&&(vt=Math.sqrt(vt)),vt=x-vt,Y.y-a.y>0&&(vt=-vt),j.y+=vt}return j},u},start:function(i,a){var s=i.insert("g").attr("class","node default").attr("id",a.domId||a.id),u=s.insert("circle",":first-child");return u.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),pi(a,u),a.intersect=function(d){return ns(a,7,d)},s},end:function(i,a){var s=i.insert("g").attr("class","node default").attr("id",a.domId||a.id),u=s.insert("circle",":first-child"),d=s.insert("circle",":first-child");return d.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),u.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),pi(a,d),a.intersect=function(_){return ns(a,7,_)},s},note:function(i,a){var s=Ma(i,a,"node "+a.classes,!0),u=s.shapeSvg,d=s.bbox,_=s.halfPadding;k.info("Classes = ",a.classes);var m=u.insert("rect",":first-child");return m.attr("rx",a.rx).attr("ry",a.ry).attr("x",-d.width/2-_).attr("y",-d.height/2-_).attr("width",d.width+a.padding).attr("height",d.height+a.padding),pi(a,m),a.intersect=function(x){return Ds(a,x)},u},subroutine:function(i,a){var s=Ma(i,a,void 0,!0),u=s.shapeSvg,d=s.bbox,_=d.width+a.padding,m=d.height+a.padding,x=[{x:0,y:0},{x:_,y:0},{x:_,y:-m},{x:0,y:-m},{x:0,y:0},{x:-8,y:0},{x:_+8,y:0},{x:_+8,y:-m},{x:-8,y:-m},{x:-8,y:0}],C=lc(u,_,m,x);return C.attr("style",a.style),pi(a,C),a.intersect=function(A){return uc(a,x,A)},u},fork:ba,join:ba,class_box:function(i,a){var s,u=a.padding/2;s=a.classes?"node "+a.classes:"node default";var d=i.insert("g").attr("class",s).attr("id",a.domId||a.id),_=d.insert("rect",":first-child"),m=d.insert("line"),x=d.insert("line"),C=0,A=4,B=d.insert("g").attr("class","label"),Y=0,j=a.classData.annotations&&a.classData.annotations[0],X=a.classData.annotations[0]?"\xAB"+a.classData.annotations[0]+"\xBB":"",vt=B.node().appendChild(va(X,a.labelStyle,!0,!0)),ut=vt.getBBox();if(ma(Jt().flowchart.htmlLabels)){var wt=vt.children[0],xt=He(vt);ut=wt.getBoundingClientRect(),xt.attr("width",ut.width),xt.attr("height",ut.height)}a.classData.annotations[0]&&(A+=ut.height+4,C+=ut.width);var Dt=a.classData.id;a.classData.type!==void 0&&a.classData.type!==""&&(Jt().flowchart.htmlLabels?Dt+="<"+a.classData.type+">":Dt+="<"+a.classData.type+">");var At=B.node().appendChild(va(Dt,a.labelStyle,!0,!0));He(At).attr("class","classTitle");var Zt=At.getBBox();if(ma(Jt().flowchart.htmlLabels)){var se=At.children[0],jt=He(At);Zt=se.getBoundingClientRect(),jt.attr("width",Zt.width),jt.attr("height",Zt.height)}A+=Zt.height+4,Zt.width>C&&(C=Zt.width);var ne=[];a.classData.members.forEach(function(Ct){var mt=ld(Ct),Ut=mt.displayText;Jt().flowchart.htmlLabels&&(Ut=Ut.replace(/</g,"<").replace(/>/g,">"));var Tt=B.node().appendChild(va(Ut,mt.cssStyle?mt.cssStyle:a.labelStyle,!0,!0)),Te=Tt.getBBox();if(ma(Jt().flowchart.htmlLabels)){var Ce=Tt.children[0],Qt=He(Tt);Te=Ce.getBoundingClientRect(),Qt.attr("width",Te.width),Qt.attr("height",Te.height)}Te.width>C&&(C=Te.width),A+=Te.height+4,ne.push(Tt)}),A+=8;var ie=[];if(a.classData.methods.forEach(function(Ct){var mt=ld(Ct),Ut=mt.displayText;Jt().flowchart.htmlLabels&&(Ut=Ut.replace(/</g,"<").replace(/>/g,">"));var Tt=B.node().appendChild(va(Ut,mt.cssStyle?mt.cssStyle:a.labelStyle,!0,!0)),Te=Tt.getBBox();if(ma(Jt().flowchart.htmlLabels)){var Ce=Tt.children[0],Qt=He(Tt);Te=Ce.getBoundingClientRect(),Qt.attr("width",Te.width),Qt.attr("height",Te.height)}Te.width>C&&(C=Te.width),A+=Te.height+4,ie.push(Tt)}),A+=8,j){var Ot=(C-ut.width)/2;He(vt).attr("transform","translate( "+(-1*C/2+Ot)+", "+-1*A/2+")"),Y=ut.height+4}var It=(C-Zt.width)/2;return He(At).attr("transform","translate( "+(-1*C/2+It)+", "+(-1*A/2+Y)+")"),Y+=Zt.height+4,m.attr("class","divider").attr("x1",-C/2-u).attr("x2",C/2+u).attr("y1",-A/2-u+8+Y).attr("y2",-A/2-u+8+Y),Y+=8,ne.forEach(function(Ct){He(Ct).attr("transform","translate( "+-C/2+", "+(-1*A/2+Y+4)+")"),Y+=Zt.height+4}),Y+=8,x.attr("class","divider").attr("x1",-C/2-u).attr("x2",C/2+u).attr("y1",-A/2-u+8+Y).attr("y2",-A/2-u+8+Y),Y+=8,ie.forEach(function(Ct){He(Ct).attr("transform","translate( "+-C/2+", "+(-1*A/2+Y)+")"),Y+=Zt.height+4}),_.attr("class","outer title-state").attr("x",-C/2-u).attr("y",-A/2-u).attr("width",C+a.padding).attr("height",A+a.padding),pi(a,_),a.intersect=function(Ct){return Ds(a,Ct)},d}},fc={},dc=function(i){var a=fc[i.id];k.trace("Transforming node",i.diff,i,"translate("+(i.x-i.width/2-5)+", "+i.width/2+")");var s=i.diff||0;return i.clusterNode?a.attr("transform","translate("+(i.x+s-i.width/2)+", "+(i.y-i.height/2-8)+")"):a.attr("transform","translate("+i.x+", "+i.y+")"),s},Db={rect:function(i,a){k.trace("Creating subgraph rect for ",a.id,a);var s=i.insert("g").attr("class","cluster"+(a.class?" "+a.class:"")).attr("id",a.id),u=s.insert("rect",":first-child"),d=s.insert("g").attr("class","cluster-label"),_=d.node().appendChild(va(a.labelText,a.labelStyle,void 0,!0)),m=_.getBBox();if(ma(Jt().flowchart.htmlLabels)){var x=_.children[0],C=He(_);m=x.getBoundingClientRect(),C.attr("width",m.width),C.attr("height",m.height)}var A=0*a.padding,B=A/2,Y=a.width<=m.width+A?m.width+A:a.width;a.width<=m.width+A?a.diff=(m.width-a.width)/2-a.padding/2:a.diff=-a.padding/2,k.trace("Data ",a,JSON.stringify(a)),u.attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("x",a.x-Y/2).attr("y",a.y-a.height/2-B).attr("width",Y).attr("height",a.height+A),d.attr("transform","translate("+(a.x-m.width/2)+", "+(a.y-a.height/2+a.padding/3)+")");var j=u.node().getBBox();return a.width=j.width,a.height=j.height,a.intersect=function(X){return Pi(a,X)},s},roundedWithTitle:function(i,a){var s=i.insert("g").attr("class",a.classes).attr("id",a.id),u=s.insert("rect",":first-child"),d=s.insert("g").attr("class","cluster-label"),_=s.append("rect"),m=d.node().appendChild(va(a.labelText,a.labelStyle,void 0,!0)),x=m.getBBox();if(ma(Jt().flowchart.htmlLabels)){var C=m.children[0],A=He(m);x=C.getBoundingClientRect(),A.attr("width",x.width),A.attr("height",x.height)}x=m.getBBox();var B=0*a.padding,Y=B/2,j=a.width<=x.width+a.padding?x.width+a.padding:a.width;a.width<=x.width+a.padding?a.diff=(x.width+0*a.padding-a.width)/2:a.diff=-a.padding/2,u.attr("class","outer").attr("x",a.x-j/2-Y).attr("y",a.y-a.height/2-Y).attr("width",j+B).attr("height",a.height+B),_.attr("class","inner").attr("x",a.x-j/2-Y).attr("y",a.y-a.height/2-Y+x.height-1).attr("width",j+B).attr("height",a.height+B-x.height-3),d.attr("transform","translate("+(a.x-x.width/2)+", "+(a.y-a.height/2-a.padding/3+(ma(Jt().flowchart.htmlLabels)?5:3))+")");var X=u.node().getBBox();return a.height=X.height,a.intersect=function(vt){return Pi(a,vt)},s},noteGroup:function(i,a){var s=i.insert("g").attr("class","note-cluster").attr("id",a.id),u=s.insert("rect",":first-child"),d=0*a.padding,_=d/2;u.attr("rx",a.rx).attr("ry",a.ry).attr("x",a.x-a.width/2-_).attr("y",a.y-a.height/2-_).attr("width",a.width+d).attr("height",a.height+d).attr("fill","none");var m=u.node().getBBox();return a.width=m.width,a.height=m.height,a.intersect=function(x){return Pi(a,x)},s},divider:function(i,a){var s=i.insert("g").attr("class",a.classes).attr("id",a.id),u=s.insert("rect",":first-child"),d=0*a.padding,_=d/2;u.attr("class","divider").attr("x",a.x-a.width/2-_).attr("y",a.y-a.height/2).attr("width",a.width+d).attr("height",a.height+d);var m=u.node().getBBox();return a.width=m.width,a.height=m.height,a.diff=-a.padding/2,a.intersect=function(x){return Pi(a,x)},s}},Zg={},gd={},xa={},Ib=function(i,a){var s=va(a.label,a.labelStyle),u=i.insert("g").attr("class","edgeLabel"),d=u.insert("g").attr("class","label");d.node().appendChild(s);var _,m=s.getBBox();if(ma(Jt().flowchart.htmlLabels)){var x=s.children[0],C=He(s);m=x.getBoundingClientRect(),C.attr("width",m.width),C.attr("height",m.height)}if(d.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),gd[a.id]=u,a.width=m.width,a.height=m.height,a.startLabelLeft){var A=va(a.startLabelLeft,a.labelStyle),B=i.insert("g").attr("class","edgeTerminals"),Y=B.insert("g").attr("class","inner");_=Y.node().appendChild(A);var j=A.getBBox();Y.attr("transform","translate("+-j.width/2+", "+-j.height/2+")"),xa[a.id]||(xa[a.id]={}),xa[a.id].startLeft=B,yd(_,a.startLabelLeft)}if(a.startLabelRight){var X=va(a.startLabelRight,a.labelStyle),vt=i.insert("g").attr("class","edgeTerminals"),ut=vt.insert("g").attr("class","inner");_=vt.node().appendChild(X),ut.node().appendChild(X);var wt=X.getBBox();ut.attr("transform","translate("+-wt.width/2+", "+-wt.height/2+")"),xa[a.id]||(xa[a.id]={}),xa[a.id].startRight=vt,yd(_,a.startLabelRight)}if(a.endLabelLeft){var xt=va(a.endLabelLeft,a.labelStyle),Dt=i.insert("g").attr("class","edgeTerminals"),At=Dt.insert("g").attr("class","inner");_=At.node().appendChild(xt);var Zt=xt.getBBox();At.attr("transform","translate("+-Zt.width/2+", "+-Zt.height/2+")"),Dt.node().appendChild(xt),xa[a.id]||(xa[a.id]={}),xa[a.id].endLeft=Dt,yd(_,a.endLabelLeft)}if(a.endLabelRight){var se=va(a.endLabelRight,a.labelStyle),jt=i.insert("g").attr("class","edgeTerminals"),ne=jt.insert("g").attr("class","inner");_=ne.node().appendChild(se);var ie=se.getBBox();ne.attr("transform","translate("+-ie.width/2+", "+-ie.height/2+")"),jt.node().appendChild(se),xa[a.id]||(xa[a.id]={}),xa[a.id].endRight=jt,yd(_,a.endLabelRight)}};function yd(i,a){Jt().flowchart.htmlLabels&&i&&(i.style.width=9*a.length+"px",i.style.height="12px")}var Ob=function(i,a){k.info("Moving label abc78 ",i.id,i.label,gd[i.id]);var s=a.updatedPath?a.updatedPath:a.originalPath;if(i.label){var u=gd[i.id],d=i.x,_=i.y;if(s){var m=cr.calcLabelPosition(s);k.info("Moving label from (",d,",",_,") to (",m.x,",",m.y,") abc78")}u.attr("transform","translate("+d+", "+_+")")}if(i.startLabelLeft){var x=xa[i.id].startLeft,C=i.x,A=i.y;if(s){var B=cr.calcTerminalLabelPosition(i.arrowTypeStart?10:0,"start_left",s);C=B.x,A=B.y}x.attr("transform","translate("+C+", "+A+")")}if(i.startLabelRight){var Y=xa[i.id].startRight,j=i.x,X=i.y;if(s){var vt=cr.calcTerminalLabelPosition(i.arrowTypeStart?10:0,"start_right",s);j=vt.x,X=vt.y}Y.attr("transform","translate("+j+", "+X+")")}if(i.endLabelLeft){var ut=xa[i.id].endLeft,wt=i.x,xt=i.y;if(s){var Dt=cr.calcTerminalLabelPosition(i.arrowTypeEnd?10:0,"end_left",s);wt=Dt.x,xt=Dt.y}ut.attr("transform","translate("+wt+", "+xt+")")}if(i.endLabelRight){var At=xa[i.id].endRight,Zt=i.x,se=i.y;if(s){var jt=cr.calcTerminalLabelPosition(i.arrowTypeEnd?10:0,"end_right",s);Zt=jt.x,se=jt.y}At.attr("transform","translate("+Zt+", "+se+")")}},J3=function(i,a){k.warn("abc88 cutPathAtIntersect",i,a);var s=[],u=i[0],d=!1;return i.forEach(function(_){if(k.info("abc88 checking point",_,a),function(C,A){var B=C.x,Y=C.y,j=Math.abs(A.x-B),X=Math.abs(A.y-Y),vt=C.width/2,ut=C.height/2;return j>=vt||X>=ut}(a,_)||d)k.warn("abc88 outside",_,u),u=_,d||s.push(_);else{var m=function(C,A,B){k.warn(`intersection calc abc89:
|
|
outsidePoint: `.concat(JSON.stringify(A),`
|
|
insidePoint : `).concat(JSON.stringify(B),`
|
|
node : x:`).concat(C.x," y:").concat(C.y," w:").concat(C.width," h:").concat(C.height));var Y=C.x,j=C.y,X=Math.abs(Y-B.x),vt=C.width/2,ut=B.x<A.x?vt-X:vt+X,wt=C.height/2,xt=Math.abs(A.y-B.y),Dt=Math.abs(A.x-B.x);if(Math.abs(j-A.y)*vt>Math.abs(Y-A.x)*wt){var At=B.y<A.y?A.y-wt-j:j-wt-A.y;ut=Dt*At/xt;var Zt={x:B.x<A.x?B.x+ut:B.x-Dt+ut,y:B.y<A.y?B.y+xt-At:B.y-xt+At};return ut===0&&(Zt.x=A.x,Zt.y=A.y),Dt===0&&(Zt.x=A.x),xt===0&&(Zt.y=A.y),k.warn("abc89 topp/bott calc, Q ".concat(xt,", q ").concat(At,", R ").concat(Dt,", r ").concat(ut),Zt),Zt}var se=xt*(ut=B.x<A.x?A.x-vt-Y:Y-vt-A.x)/Dt,jt=B.x<A.x?B.x+Dt-ut:B.x-Dt+ut,ne=B.y<A.y?B.y+se:B.y-se;return k.warn("sides calc abc89, Q ".concat(xt,", q ").concat(se,", R ").concat(Dt,", r ").concat(ut),{_x:jt,_y:ne}),ut===0&&(jt=A.x,ne=A.y),Dt===0&&(jt=A.x),xt===0&&(ne=A.y),{x:jt,y:ne}}(a,u,_);k.warn("abc88 inside",_,u,m),k.warn("abc88 intersection",m);var x=!1;s.forEach(function(C){x=x||C.x===m.x&&C.y===m.y}),s.find(function(C){return C.x===m.x&&C.y===m.y})?k.warn("abc88 no intersect",m,s):s.push(m),d=!0}}),k.warn("abc88 returning points",s),s},md=function i(a,s,u,d){k.info("Graph in recursive render: XXX",Fi().json.write(s),d);var _=s.graph().rankdir;k.trace("Dir in recursive render - dir:",_);var m=a.insert("g").attr("class","root");s.nodes()?k.info("Recursive render XXX",s.nodes()):k.info("No nodes found for",s),s.edges().length>0&&k.trace("Recursive edges",s.edge(s.edges()[0]));var x=m.insert("g").attr("class","clusters"),C=m.insert("g").attr("class","edgePaths"),A=m.insert("g").attr("class","edgeLabels"),B=m.insert("g").attr("class","nodes");s.nodes().forEach(function(j){var X=s.node(j);if(d!==void 0){var vt=JSON.parse(JSON.stringify(d.clusterData));k.info("Setting data for cluster XXX (",j,") ",vt,d),s.setNode(d.id,vt),s.parent(j)||(k.trace("Setting parent",j,d.id),s.setParent(j,d.id,vt))}if(k.info("(Insert) Node XXX"+j+": "+JSON.stringify(s.node(j))),X&&X.clusterNode){k.info("Cluster identified",j,X.width,s.node(j));var ut=i(B,X.graph,u,s.node(j)),wt=ut.elem;pi(X,wt),X.diff=ut.diff||0,k.info("Node bounds (abc123)",j,X,X.width,X.x,X.y),function(xt,Dt){fc[Dt.id]=xt}(wt,X),k.warn("Recursive render complete ",wt,X)}else s.children(j).length>0?(k.info("Cluster - the non recursive path XXX",j,X.id,X,s),k.info(dd(X.id,s)),vr[X.id]={id:dd(X.id,s),node:X}):(k.info("Node - the non recursive path",j,X.id,X),function(xt,Dt,At){var Zt,se,jt;Dt.link?(Jt().securityLevel==="sandbox"?jt="_top":Dt.linkTarget&&(jt=Dt.linkTarget||"_blank"),Zt=xt.insert("svg:a").attr("xlink:href",Dt.link).attr("target",jt),se=hc[Dt.shape](Zt,Dt,At)):Zt=se=hc[Dt.shape](xt,Dt,At),Dt.tooltip&&se.attr("title",Dt.tooltip),Dt.class&&se.attr("class","node default "+Dt.class),fc[Dt.id]=Zt,Dt.haveCallback&&fc[Dt.id].attr("class",fc[Dt.id].attr("class")+" clickable")}(B,s.node(j),_))}),s.edges().forEach(function(j){var X=s.edge(j.v,j.w,j.name);k.info("Edge "+j.v+" -> "+j.w+": "+JSON.stringify(j)),k.info("Edge "+j.v+" -> "+j.w+": ",j," ",JSON.stringify(s.edge(j))),k.info("Fix",vr,"ids:",j.v,j.w,"Translateing: ",vr[j.v],vr[j.w]),Ib(A,X)}),s.edges().forEach(function(j){k.info("Edge "+j.v+" -> "+j.w+": "+JSON.stringify(j))}),k.info("#############################################"),k.info("### Layout ###"),k.info("#############################################"),k.info(s),Gu().layout(s),k.info("Graph after layout:",Fi().json.write(s));var Y=0;return Vg(s).forEach(function(j){var X=s.node(j);k.info("Position "+j+": "+JSON.stringify(s.node(j))),k.info("Position "+j+": ("+X.x,","+X.y,") width: ",X.width," height: ",X.height),X&&X.clusterNode?dc(X):s.children(j).length>0?(function(vt,ut){k.trace("Inserting cluster");var wt=ut.shape||"rect";Zg[ut.id]=Db[wt](vt,ut)}(x,X),vr[X.id].node=X):dc(X)}),s.edges().forEach(function(j){var X=s.edge(j);k.info("Edge "+j.v+" -> "+j.w+": "+JSON.stringify(X),X);var vt=function(ut,wt,xt,Dt,At,Zt){var se=xt.points,jt=!1,ne=Zt.node(wt.v),ie=Zt.node(wt.w);k.info("abc88 InsertEdge: ",xt),ie.intersect&&ne.intersect&&((se=se.slice(1,xt.points.length-1)).unshift(ne.intersect(se[0])),k.info("Last point",se[se.length-1],ie,ie.intersect(se[se.length-1])),se.push(ie.intersect(se[se.length-1]))),xt.toCluster&&(k.info("to cluster abc88",Dt[xt.toCluster]),se=J3(xt.points,Dt[xt.toCluster].node),jt=!0),xt.fromCluster&&(k.info("from cluster abc88",Dt[xt.fromCluster]),se=J3(se.reverse(),Dt[xt.fromCluster].node).reverse(),jt=!0);var Ot,It=se.filter(function(Ce){return!Number.isNaN(Ce.y)});Ot=(At==="graph"||At==="flowchart")&&xt.curve||Qr;var Ct,mt=$o().x(function(Ce){return Ce.x}).y(function(Ce){return Ce.y}).curve(Ot);switch(xt.thickness){case"normal":Ct="edge-thickness-normal";break;case"thick":Ct="edge-thickness-thick";break;default:Ct=""}switch(xt.pattern){case"solid":Ct+=" edge-pattern-solid";break;case"dotted":Ct+=" edge-pattern-dotted";break;case"dashed":Ct+=" edge-pattern-dashed"}var Ut=ut.append("path").attr("d",mt(It)).attr("id",xt.id).attr("class"," "+Ct+(xt.classes?" "+xt.classes:"")).attr("style",xt.style),Tt="";switch(Jt().state.arrowMarkerAbsolute&&(Tt=(Tt=(Tt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),k.info("arrowTypeStart",xt.arrowTypeStart),k.info("arrowTypeEnd",xt.arrowTypeEnd),xt.arrowTypeStart){case"arrow_cross":Ut.attr("marker-start","url("+Tt+"#"+At+"-crossStart)");break;case"arrow_point":Ut.attr("marker-start","url("+Tt+"#"+At+"-pointStart)");break;case"arrow_barb":Ut.attr("marker-start","url("+Tt+"#"+At+"-barbStart)");break;case"arrow_circle":Ut.attr("marker-start","url("+Tt+"#"+At+"-circleStart)");break;case"aggregation":Ut.attr("marker-start","url("+Tt+"#"+At+"-aggregationStart)");break;case"extension":Ut.attr("marker-start","url("+Tt+"#"+At+"-extensionStart)");break;case"composition":Ut.attr("marker-start","url("+Tt+"#"+At+"-compositionStart)");break;case"dependency":Ut.attr("marker-start","url("+Tt+"#"+At+"-dependencyStart)")}switch(xt.arrowTypeEnd){case"arrow_cross":Ut.attr("marker-end","url("+Tt+"#"+At+"-crossEnd)");break;case"arrow_point":Ut.attr("marker-end","url("+Tt+"#"+At+"-pointEnd)");break;case"arrow_barb":Ut.attr("marker-end","url("+Tt+"#"+At+"-barbEnd)");break;case"arrow_circle":Ut.attr("marker-end","url("+Tt+"#"+At+"-circleEnd)");break;case"aggregation":Ut.attr("marker-end","url("+Tt+"#"+At+"-aggregationEnd)");break;case"extension":Ut.attr("marker-end","url("+Tt+"#"+At+"-extensionEnd)");break;case"composition":Ut.attr("marker-end","url("+Tt+"#"+At+"-compositionEnd)");break;case"dependency":Ut.attr("marker-end","url("+Tt+"#"+At+"-dependencyEnd)")}var Te={};return jt&&(Te.updatedPath=se),Te.originalPath=xt.points,Te}(C,j,X,vr,u,s);Ob(X,vt)}),s.nodes().forEach(function(j){var X=s.node(j);k.info(j,X.type,X.diff),X.type==="group"&&(Y=X.diff)}),{elem:m,diff:Y}},Xg=function(i,a,s,u,d){Tb(i,s,u,d),fc={},gd={},xa={},Zg={},es={},Z3={},vr={},k.warn("Graph at first:",Fi().json.write(a)),Cb(a),k.warn("Graph after:",Fi().json.write(a)),md(i,a,u)};Wc.parser.yy=ts;var Kg={dividerMargin:10,padding:5,textHeight:10};function B1(i){var a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;default:a="none"}return a}var Fl={},F1=[],_d=function(i){return Fl[i]===void 0&&(Fl[i]={attributes:[]},k.info("Added new entity :",i)),Fl[i]};const Ga={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(i,a,s){Oi.parseDirective(this,i,a,s)},getConfig:function(){return Jt().er},addEntity:_d,addAttributes:function(i,a){var s,u=_d(i);for(s=a.length-1;s>=0;s--)u.attributes.push(a[s]),k.debug("Added attribute ",a[s].attributeName)},getEntities:function(){return Fl},addRelationship:function(i,a,s,u){var d={entityA:i,roleA:a,entityB:s,relSpec:u};F1.push(d),k.debug("Added new relationship :",d)},getRelationships:function(){return F1},clear:function(){Fl={},F1=[],Ms()},setAccTitle:Wa,getAccTitle:ia,setAccDescription:To,getAccDescription:So};var Rb=f(5890),Q3=f.n(Rb),pc={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"};const gc=pc;var Xr={},vd=function(i){return(i.entityA+i.roleA+i.entityB).replace(/\s/g,"")},Zu=0;const Jg=function(i){for(var a=Object.keys(i),s=0;s<a.length;s++)Xr[a[s]]=i[a[s]]},tv=function(i,a){k.info("Drawing ER diagram"),Ga.clear();var s=Q3().parser;s.yy=Ga;var u,d=Jt().securityLevel;d==="sandbox"&&(u=He("#i"+a));var _=He(d==="sandbox"?u.nodes()[0].contentDocument.body:"body");d==="sandbox"&&u.nodes()[0].contentDocument;try{s.parse(i)}catch{k.debug("Parsing failed")}var m,x=_.select("[id='".concat(a,"']"));(function(vt,ut){var wt;vt.append("defs").append("marker").attr("id",pc.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",ut.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),vt.append("defs").append("marker").attr("id",pc.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",ut.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(wt=vt.append("defs").append("marker").attr("id",pc.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",ut.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),wt.append("path").attr("stroke",ut.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(wt=vt.append("defs").append("marker").attr("id",pc.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",ut.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),wt.append("path").attr("stroke",ut.stroke).attr("fill","none").attr("d","M21,0 L21,18"),vt.append("defs").append("marker").attr("id",pc.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",ut.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),vt.append("defs").append("marker").attr("id",pc.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",ut.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(wt=vt.append("defs").append("marker").attr("id",pc.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",ut.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),wt.append("path").attr("stroke",ut.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(wt=vt.append("defs").append("marker").attr("id",pc.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",ut.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),wt.append("path").attr("stroke",ut.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(x,Xr),m=new(Fi()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Xr.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var C=function(vt,ut,wt){var xt;return Object.keys(ut).forEach(function(Dt){var At=vt.append("g").attr("id",Dt);xt=xt===void 0?Dt:xt;var Zt="entity-"+Dt,se=At.append("text").attr("class","er entityLabel").attr("id",Zt).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Jt().fontFamily+"; font-size: "+Xr.fontSize+"px").text(Dt),jt=function(It,Ct,mt){var Ut=Xr.entityPadding/3,Tt=Xr.entityPadding/3,Te=.85*Xr.fontSize,Ce=Ct.node().getBBox(),Qt=[],ke=!1,pe=!1,Ee=0,ze=0,je=0,yn=0,cn=Ce.height+2*Ut,Ln=1;mt.forEach(function(or){or.attributeKeyType!==void 0&&(ke=!0),or.attributeComment!==void 0&&(pe=!0)}),mt.forEach(function(or){var Ai="".concat(Ct.node().id,"-attr-").concat(Ln),lr=0,Yn=It.append("text").attr("class","er entityLabel").attr("id","".concat(Ai,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Jt().fontFamily+"; font-size: "+Te+"px").text(or.attributeType),Da=It.append("text").attr("class","er entityLabel").attr("id","".concat(Ai,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Jt().fontFamily+"; font-size: "+Te+"px").text(or.attributeName),Ir={};Ir.tn=Yn,Ir.nn=Da;var Do=Yn.node().getBBox(),J1=Da.node().getBBox();if(Ee=Math.max(Ee,Do.width),ze=Math.max(ze,J1.width),lr=Math.max(Do.height,J1.height),ke){var wy=It.append("text").attr("class","er entityLabel").attr("id","".concat(Ai,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Jt().fontFamily+"; font-size: "+Te+"px").text(or.attributeKeyType||"");Ir.kn=wy;var z6=wy.node().getBBox();je=Math.max(je,z6.width),lr=Math.max(lr,z6.height)}if(pe){var Y6=It.append("text").attr("class","er entityLabel").attr("id","".concat(Ai,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Jt().fontFamily+"; font-size: "+Te+"px").text(or.attributeComment||"");Ir.cn=Y6;var $6=Y6.node().getBBox();yn=Math.max(yn,$6.width),lr=Math.max(lr,$6.height)}Ir.height=lr,Qt.push(Ir),cn+=lr+2*Ut,Ln+=1});var ar=4;ke&&(ar+=2),pe&&(ar+=2);var Fr=Ee+ze+je+yn,En={width:Math.max(Xr.minEntityWidth,Math.max(Ce.width+2*Xr.entityPadding,Fr+Tt*ar)),height:mt.length>0?cn:Math.max(Xr.minEntityHeight,Ce.height+2*Xr.entityPadding)};if(mt.length>0){var Kr=Math.max(0,(En.width-Fr-Tt*ar)/(ar/2));Ct.attr("transform","translate("+En.width/2+","+(Ut+Ce.height/2)+")");var ci=Ce.height+2*Ut,bi="attributeBoxOdd";Qt.forEach(function(or){var Ai=ci+Ut+or.height/2;or.tn.attr("transform","translate("+Tt+","+Ai+")");var lr=It.insert("rect","#"+or.tn.node().id).attr("class","er ".concat(bi)).attr("fill",Xr.fill).attr("fill-opacity","100%").attr("stroke",Xr.stroke).attr("x",0).attr("y",ci).attr("width",Ee+2*Tt+Kr).attr("height",or.height+2*Ut),Yn=parseFloat(lr.attr("x"))+parseFloat(lr.attr("width"));or.nn.attr("transform","translate("+(Yn+Tt)+","+Ai+")");var Da=It.insert("rect","#"+or.nn.node().id).attr("class","er ".concat(bi)).attr("fill",Xr.fill).attr("fill-opacity","100%").attr("stroke",Xr.stroke).attr("x",Yn).attr("y",ci).attr("width",ze+2*Tt+Kr).attr("height",or.height+2*Ut),Ir=parseFloat(Da.attr("x"))+parseFloat(Da.attr("width"));if(ke){or.kn.attr("transform","translate("+(Ir+Tt)+","+Ai+")");var Do=It.insert("rect","#"+or.kn.node().id).attr("class","er ".concat(bi)).attr("fill",Xr.fill).attr("fill-opacity","100%").attr("stroke",Xr.stroke).attr("x",Ir).attr("y",ci).attr("width",je+2*Tt+Kr).attr("height",or.height+2*Ut);Ir=parseFloat(Do.attr("x"))+parseFloat(Do.attr("width"))}pe&&(or.cn.attr("transform","translate("+(Ir+Tt)+","+Ai+")"),It.insert("rect","#"+or.cn.node().id).attr("class","er ".concat(bi)).attr("fill",Xr.fill).attr("fill-opacity","100%").attr("stroke",Xr.stroke).attr("x",Ir).attr("y",ci).attr("width",yn+2*Tt+Kr).attr("height",or.height+2*Ut)),ci+=or.height+2*Ut,bi=bi=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else En.height=Math.max(Xr.minEntityHeight,cn),Ct.attr("transform","translate("+En.width/2+","+En.height/2+")");return En}(At,se,ut[Dt].attributes),ne=jt.width,ie=jt.height,Ot=At.insert("rect","#"+Zt).attr("class","er entityBox").attr("fill",Xr.fill).attr("fill-opacity","100%").attr("stroke",Xr.stroke).attr("x",0).attr("y",0).attr("width",ne).attr("height",ie).node().getBBox();wt.setNode(Dt,{width:Ot.width,height:Ot.height,shape:"rect",id:Dt})}),xt}(x,Ga.getEntities(),m),A=function(vt,ut){return vt.forEach(function(wt){ut.setEdge(wt.entityA,wt.entityB,{relationship:wt},vd(wt))}),vt}(Ga.getRelationships(),m);Gu().layout(m),function(vt,ut){ut.nodes().forEach(function(wt){wt!==void 0&&ut.node(wt)!==void 0&&vt.select("#"+wt).attr("transform","translate("+(ut.node(wt).x-ut.node(wt).width/2)+","+(ut.node(wt).y-ut.node(wt).height/2)+" )")})}(x,m),A.forEach(function(vt){(function(ut,wt,xt,Dt){Zu++;var At=xt.edge(wt.entityA,wt.entityB,vd(wt)),Zt=$o().x(function(Ct){return Ct.x}).y(function(Ct){return Ct.y}).curve(Qr),se=ut.insert("path","#"+Dt).attr("class","er relationshipLine").attr("d",Zt(At.points)).attr("stroke",Xr.stroke).attr("fill","none");wt.relSpec.relType===Ga.Identification.NON_IDENTIFYING&&se.attr("stroke-dasharray","8,8");var jt="";switch(Xr.arrowMarkerAbsolute&&(jt=(jt=(jt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),wt.relSpec.cardA){case Ga.Cardinality.ZERO_OR_ONE:se.attr("marker-end","url("+jt+"#"+gc.ZERO_OR_ONE_END+")");break;case Ga.Cardinality.ZERO_OR_MORE:se.attr("marker-end","url("+jt+"#"+gc.ZERO_OR_MORE_END+")");break;case Ga.Cardinality.ONE_OR_MORE:se.attr("marker-end","url("+jt+"#"+gc.ONE_OR_MORE_END+")");break;case Ga.Cardinality.ONLY_ONE:se.attr("marker-end","url("+jt+"#"+gc.ONLY_ONE_END+")")}switch(wt.relSpec.cardB){case Ga.Cardinality.ZERO_OR_ONE:se.attr("marker-start","url("+jt+"#"+gc.ZERO_OR_ONE_START+")");break;case Ga.Cardinality.ZERO_OR_MORE:se.attr("marker-start","url("+jt+"#"+gc.ZERO_OR_MORE_START+")");break;case Ga.Cardinality.ONE_OR_MORE:se.attr("marker-start","url("+jt+"#"+gc.ONE_OR_MORE_START+")");break;case Ga.Cardinality.ONLY_ONE:se.attr("marker-start","url("+jt+"#"+gc.ONLY_ONE_START+")")}var ne=se.node().getTotalLength(),ie=se.node().getPointAtLength(.5*ne),Ot="rel"+Zu,It=ut.append("text").attr("class","er relationshipLabel").attr("id",Ot).attr("x",ie.x).attr("y",ie.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Jt().fontFamily+"; font-size: "+Xr.fontSize+"px").text(wt.roleA).node().getBBox();ut.insert("rect","#"+Ot).attr("class","er relationshipLabelBox").attr("x",ie.x-It.width/2).attr("y",ie.y-It.height/2).attr("width",It.width).attr("height",It.height).attr("fill","white").attr("fill-opacity","85%")})(x,vt,m,C)});var B=Xr.diagramPadding,Y=x.node().getBBox(),j=Y.width+2*B,X=Y.height+2*B;yo(x,X,j,Xr.useMaxWidth),x.attr("viewBox","".concat(Y.x-B," ").concat(Y.y-B," ").concat(j," ").concat(X)),eo(s.yy,x,a)};function Pl(i){return Pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Pl(i)}function P1(i,a){(a==null||a>i.length)&&(a=i.length);for(var s=0,u=new Array(a);s<a;s++)u[s]=i[s];return u}var yc,bd,Qg="flowchart-",ev=0,ty=Jt(),Si={},Ul=[],Xu=[],Is=[],Ku={},xd={},wd=0,ey=!0,U1=[],z1=function(i){return Qn.sanitizeText(i,ty)},kd=function(i){for(var a=Object.keys(Si),s=0;s<a.length;s++)if(Si[a[s]].id===i)return Si[a[s]].domId;return i},Bb=function(i,a,s,u){var d={start:i,end:a,type:void 0,text:""};(u=s.text)!==void 0&&(d.text=z1(u.trim()),d.text[0]==='"'&&d.text[d.text.length-1]==='"'&&(d.text=d.text.substring(1,d.text.length-1))),s!==void 0&&(d.type=s.type,d.stroke=s.stroke,d.length=s.length),Ul.push(d)},Ed=function(i,a){i.split(",").forEach(function(s){var u=s;Si[u]!==void 0&&Si[u].classes.push(a),Ku[u]!==void 0&&Ku[u].classes.push(a)})},ny=function(i){var a=He(".mermaidTooltip");(a._groups||a)[0][0]===null&&(a=He("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),He(i).select("svg").selectAll("g.node").on("mouseover",function(){var s=He(this);if(s.attr("title")!==null){var u=this.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.text(s.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.top-14+document.body.scrollTop+"px"),s.classed("hover",!0)}}).on("mouseout",function(){a.transition().duration(500).style("opacity",0),He(this).classed("hover",!1)})};U1.push(ny);var ry=function(i){for(var a=0;a<Is.length;a++)if(Is[a].id===i)return a;return-1},Td=-1,_o=[],No=function i(a,s){var u=Is[s].nodes;if(!((Td+=1)>2e3)){if(_o[Td]=s,Is[s].id===a)return{result:!0,count:0};for(var d=0,_=1;d<u.length;){var m=ry(u[d]);if(m>=0){var x=i(a,m);if(x.result)return{result:!0,count:_+x.count};_+=x.count}d+=1}return{result:!1,count:_}}},Sd=function(i,a){var s=!1;return i.forEach(function(u){u.nodes.indexOf(a)>=0&&(s=!0)}),s},nv=function(i,a){var s=[];return i.nodes.forEach(function(u,d){Sd(a,u)||s.push(i.nodes[d])}),{nodes:s}};const fr={parseDirective:function(i,a,s){Oi.parseDirective(this,i,a,s)},defaultConfig:function(){return Ol.flowchart},setAccTitle:Wa,getAccTitle:ia,getAccDescription:So,setAccDescription:To,addVertex:function(i,a,s,u,d,_){var m,x=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},C=i;C!==void 0&&C.trim().length!==0&&(Si[C]===void 0&&(Si[C]={id:C,domId:Qg+C+"-"+ev,styles:[],classes:[]}),ev++,a!==void 0?(ty=Jt(),(m=z1(a.trim()))[0]==='"'&&m[m.length-1]==='"'&&(m=m.substring(1,m.length-1)),Si[C].text=m):Si[C].text===void 0&&(Si[C].text=i),s!==void 0&&(Si[C].type=s),u!=null&&u.forEach(function(A){Si[C].styles.push(A)}),d!=null&&d.forEach(function(A){Si[C].classes.push(A)}),_!==void 0&&(Si[C].dir=_),Si[C].props=x)},lookUpDomId:kd,addLink:function(i,a,s,u){var d,_;for(d=0;d<i.length;d++)for(_=0;_<a.length;_++)Bb(i[d],a[_],s,u)},updateLinkInterpolate:function(i,a){i.forEach(function(s){s==="default"?Ul.defaultInterpolate=a:Ul[s].interpolate=a})},updateLink:function(i,a){i.forEach(function(s){s==="default"?Ul.defaultStyle=a:(cr.isSubstringInArray("fill",a)===-1&&a.push("fill:none"),Ul[s].style=a)})},addClass:function(i,a){Xu[i]===void 0&&(Xu[i]={id:i,styles:[],textStyles:[]}),a!=null&&a.forEach(function(s){if(s.match("color")){var u=s.replace("fill","bgFill").replace("color","fill");Xu[i].textStyles.push(u)}Xu[i].styles.push(s)})},setDirection:function(i){(yc=i).match(/.*</)&&(yc="RL"),yc.match(/.*\^/)&&(yc="BT"),yc.match(/.*>/)&&(yc="LR"),yc.match(/.*v/)&&(yc="TB")},setClass:Ed,setTooltip:function(i,a){i.split(",").forEach(function(s){a!==void 0&&(xd[bd==="gen-1"?kd(s):s]=z1(a))})},getTooltip:function(i){return xd[i]},setClickEvent:function(i,a,s){i.split(",").forEach(function(u){(function(d,_,m){var x=kd(d);if(Jt().securityLevel==="loose"&&_!==void 0){var C=[];if(typeof m=="string"){C=m.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var A=0;A<C.length;A++){var B=C[A].trim();B.charAt(0)==='"'&&B.charAt(B.length-1)==='"'&&(B=B.substr(1,B.length-2)),C[A]=B}}C.length===0&&C.push(d),Si[d]!==void 0&&(Si[d].haveCallback=!0,U1.push(function(){var Y=document.querySelector('[id="'.concat(x,'"]'));Y!==null&&Y.addEventListener("click",function(){var j;cr.runFunc.apply(cr,[_].concat(function(X){if(Array.isArray(X))return P1(X)}(j=C)||function(X){if(typeof Symbol!="undefined"&&X[Symbol.iterator]!=null||X["@@iterator"]!=null)return Array.from(X)}(j)||function(X,vt){if(X){if(typeof X=="string")return P1(X,vt);var ut=Object.prototype.toString.call(X).slice(8,-1);return ut==="Object"&&X.constructor&&(ut=X.constructor.name),ut==="Map"||ut==="Set"?Array.from(X):ut==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ut)?P1(X,vt):void 0}}(j)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)}))}})(u,a,s)}),Ed(i,"clickable")},setLink:function(i,a,s){i.split(",").forEach(function(u){Si[u]!==void 0&&(Si[u].link=cr.formatUrl(a,ty),Si[u].linkTarget=s)}),Ed(i,"clickable")},bindFunctions:function(i){U1.forEach(function(a){a(i)})},getDirection:function(){return yc.trim()},getVertices:function(){return Si},getEdges:function(){return Ul},getClasses:function(){return Xu},clear:function(i){Si={},Xu={},Ul=[],(U1=[]).push(ny),Is=[],Ku={},wd=0,xd=[],ey=!0,bd=i||"gen-1",Ms()},setGen:function(i){bd=i||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(i,a,s){var u=i.trim(),d=s;i===s&&s.match(/\s/)&&(u=void 0);var _=[],m=function(Y){var j,X={boolean:{},number:{},string:{}},vt=[],ut=Y.filter(function(wt){var xt=Pl(wt);return wt.stmt&&wt.stmt==="dir"?(j=wt.value,!1):wt.trim()!==""&&(xt in X?!X[xt].hasOwnProperty(wt)&&(X[xt][wt]=!0):!(vt.indexOf(wt)>=0)&&vt.push(wt))});return{nodeList:ut,dir:j}}(_.concat.apply(_,a)),x=m.nodeList,C=m.dir;if(_=x,bd==="gen-1"){k.warn("LOOKING UP");for(var A=0;A<_.length;A++)_[A]=kd(_[A])}u=u||"subGraph"+wd,d=z1(d=d||""),wd+=1;var B={id:u,nodes:_,title:d.trim(),classes:[],dir:C};return k.info("Adding",B.id,B.nodes,B.dir),B.nodes=nv(B,Is).nodes,Is.push(B),Ku[u]=B,u},getDepthFirstPos:function(i){return _o[i]},indexNodes:function(){Td=-1,Is.length>0&&No("none",Is.length-1)},getSubGraphs:function(){return Is},destructLink:function(i,a){var s,u=function(d){var _=d.trim(),m=_.slice(0,-1),x="arrow_open";switch(_.slice(-1)){case"x":x="arrow_cross",_[0]==="x"&&(x="double_"+x,m=m.slice(1));break;case">":x="arrow_point",_[0]==="<"&&(x="double_"+x,m=m.slice(1));break;case"o":x="arrow_circle",_[0]==="o"&&(x="double_"+x,m=m.slice(1))}var C="normal",A=m.length-1;m[0]==="="&&(C="thick");var B=function(Y,j){for(var X=j.length,vt=0,ut=0;ut<X;++ut)j[ut]==="."&&++vt;return vt}(0,m);return B&&(C="dotted",A=B),{type:x,stroke:C,length:A}}(i);if(a){if(s=function(d){var _=d.trim(),m="arrow_open";switch(_[0]){case"<":m="arrow_point",_=_.slice(1);break;case"x":m="arrow_cross",_=_.slice(1);break;case"o":m="arrow_circle",_=_.slice(1)}var x="normal";return _.indexOf("=")!==-1&&(x="thick"),_.indexOf(".")!==-1&&(x="dotted"),{type:m,stroke:x}}(a),s.stroke!==u.stroke)return{type:"INVALID",stroke:"INVALID"};if(s.type==="arrow_open")s.type=u.type;else{if(s.type!==u.type)return{type:"INVALID",stroke:"INVALID"};s.type="double_"+s.type}return s.type==="double_arrow"&&(s.type="double_arrow_point"),s.length=u.length,s}return u},lex:{firstGraph:function(){return!!ey&&(ey=!1,!0)}},exists:Sd,makeUniq:nv};var Fb=f(3602),Ad=f.n(Fb),Gc=f(4949),Na=f.n(Gc),Cd=f(8284),rv=f.n(Cd);function iv(i,a,s){var u=.9*(a.width+a.height),d=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],_=rs(i,u,u,d);return s.intersect=function(m){return Na().intersect.polygon(s,d,m)},_}function Pb(i,a,s){var u=a.height,d=u/4,_=a.width+2*d,m=[{x:d,y:0},{x:_-d,y:0},{x:_,y:-u/2},{x:_-d,y:-u},{x:d,y:-u},{x:0,y:-u/2}],x=rs(i,_,u,m);return s.intersect=function(C){return Na().intersect.polygon(s,m,C)},x}function av(i,a,s){var u=a.width,d=a.height,_=[{x:-d/2,y:0},{x:u,y:0},{x:u,y:-d},{x:-d/2,y:-d},{x:0,y:-d/2}],m=rs(i,u,d,_);return s.intersect=function(x){return Na().intersect.polygon(s,_,x)},m}function Ub(i,a,s){var u=a.width,d=a.height,_=[{x:-2*d/6,y:0},{x:u-d/6,y:0},{x:u+2*d/6,y:-d},{x:d/6,y:-d}],m=rs(i,u,d,_);return s.intersect=function(x){return Na().intersect.polygon(s,_,x)},m}function ov(i,a,s){var u=a.width,d=a.height,_=[{x:2*d/6,y:0},{x:u+d/6,y:0},{x:u-2*d/6,y:-d},{x:-d/6,y:-d}],m=rs(i,u,d,_);return s.intersect=function(x){return Na().intersect.polygon(s,_,x)},m}function zb(i,a,s){var u=a.width,d=a.height,_=[{x:-2*d/6,y:0},{x:u+2*d/6,y:0},{x:u-d/6,y:-d},{x:d/6,y:-d}],m=rs(i,u,d,_);return s.intersect=function(x){return Na().intersect.polygon(s,_,x)},m}function Md(i,a,s){var u=a.width,d=a.height,_=[{x:d/6,y:0},{x:u-d/6,y:0},{x:u+2*d/6,y:-d},{x:-2*d/6,y:-d}],m=rs(i,u,d,_);return s.intersect=function(x){return Na().intersect.polygon(s,_,x)},m}function iy(i,a,s){var u=a.width,d=a.height,_=[{x:0,y:0},{x:u+d/2,y:0},{x:u,y:-d/2},{x:u+d/2,y:-d},{x:0,y:-d}],m=rs(i,u,d,_);return s.intersect=function(x){return Na().intersect.polygon(s,_,x)},m}function Yb(i,a,s){var u=a.height,d=a.width+u/4,_=i.insert("rect",":first-child").attr("rx",u/2).attr("ry",u/2).attr("x",-d/2).attr("y",-u/2).attr("width",d).attr("height",u);return s.intersect=function(m){return Na().intersect.rect(s,m)},_}function ay(i,a,s){var u=a.width,d=a.height,_=[{x:0,y:0},{x:u,y:0},{x:u,y:-d},{x:0,y:-d},{x:0,y:0},{x:-8,y:0},{x:u+8,y:0},{x:u+8,y:-d},{x:-8,y:-d},{x:-8,y:0}],m=rs(i,u,d,_);return s.intersect=function(x){return Na().intersect.polygon(s,_,x)},m}function $b(i,a,s){var u=a.width,d=u/2,_=d/(2.5+u/50),m=a.height+_,x="M 0,"+_+" a "+d+","+_+" 0,0,0 "+u+" 0 a "+d+","+_+" 0,0,0 "+-u+" 0 l 0,"+m+" a "+d+","+_+" 0,0,0 "+u+" 0 l 0,"+-m,C=i.attr("label-offset-y",_).insert("path",":first-child").attr("d",x).attr("transform","translate("+-u/2+","+-(m/2+_)+")");return s.intersect=function(A){var B=Na().intersect.rect(s,A),Y=B.x-s.x;if(d!=0&&(Math.abs(Y)<s.width/2||Math.abs(Y)==s.width/2&&Math.abs(B.y-s.y)>s.height/2-_)){var j=_*_*(1-Y*Y/(d*d));j!=0&&(j=Math.sqrt(j)),j=_-j,A.y-s.y>0&&(j=-j),B.y+=j}return B},C}function rs(i,a,s,u){return i.insert("polygon",":first-child").attr("points",u.map(function(d){return d.x+","+d.y}).join(" ")).attr("transform","translate("+-a/2+","+s/2+")")}const jb=function(i){i.shapes().question=iv,i.shapes().hexagon=Pb,i.shapes().stadium=Yb,i.shapes().subroutine=ay,i.shapes().cylinder=$b,i.shapes().rect_left_inv_arrow=av,i.shapes().lean_right=Ub,i.shapes().lean_left=ov,i.shapes().trapezoid=zb,i.shapes().inv_trapezoid=Md,i.shapes().rect_right_inv_arrow=iy};var Nd={};const oy=function(i){for(var a=Object.keys(i),s=0;s<a.length;s++)Nd[a[s]]=i[a[s]]},Hb=function(i,a){k.info("Drawing flowchart"),fr.clear(),fr.setGen("gen-1");var s=Ad().parser;s.yy=fr;var u,d=Jt().securityLevel;d==="sandbox"&&(u=He("#i"+a));var _=He(d==="sandbox"?u.nodes()[0].contentDocument.body:"body"),m=d==="sandbox"?u.nodes()[0].contentDocument:document;s.parse(i);var x=fr.getDirection();x===void 0&&(x="TD");for(var C,A=Jt().flowchart,B=A.nodeSpacing||50,Y=A.rankSpacing||50,j=new(Fi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:x,nodesep:B,ranksep:Y,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),X=fr.getSubGraphs(),vt=X.length-1;vt>=0;vt--)C=X[vt],fr.addVertex(C.id,C.title,"group",void 0,C.classes);var ut=fr.getVertices();k.warn("Get vertices",ut);var wt=fr.getEdges(),xt=0;for(xt=X.length-1;xt>=0;xt--){C=X[xt],Mc("cluster").append("text");for(var Dt=0;Dt<C.nodes.length;Dt++)k.warn("Setting subgraph",C.nodes[Dt],fr.lookUpDomId(C.nodes[Dt]),fr.lookUpDomId(C.id)),j.setParent(fr.lookUpDomId(C.nodes[Dt]),fr.lookUpDomId(C.id))}(function(ke,pe,Ee,ze,je){Jt().securityLevel;var yn=ze?ze.select('[id="'.concat(Ee,'"]')):He('[id="'.concat(Ee,'"]')),cn=je||document;Object.keys(ke).forEach(function(Ln){var ar=ke[Ln],Fr="default";ar.classes.length>0&&(Fr=ar.classes.join(" "));var En,Kr=sc(ar.styles),ci=ar.text!==void 0?ar.text:ar.id;if(ma(Jt().flowchart.htmlLabels)){var bi={label:ci.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Do){return"<i class='".concat(Do.replace(":"," "),"'></i>")})};(En=rv()(yn,bi).node()).parentNode.removeChild(En)}else{var or=cn.createElementNS("http://www.w3.org/2000/svg","text");or.setAttribute("style",Kr.labelStyle.replace("color:","fill:"));for(var Ai=ci.split(Qn.lineBreakRegex),lr=0;lr<Ai.length;lr++){var Yn=cn.createElementNS("http://www.w3.org/2000/svg","tspan");Yn.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Yn.setAttribute("dy","1em"),Yn.setAttribute("x","1"),Yn.textContent=Ai[lr],or.appendChild(Yn)}En=or}var Da=0,Ir="";switch(ar.type){case"round":Da=5,Ir="rect";break;case"square":case"group":default:Ir="rect";break;case"diamond":Ir="question";break;case"hexagon":Ir="hexagon";break;case"odd":case"odd_right":Ir="rect_left_inv_arrow";break;case"lean_right":Ir="lean_right";break;case"lean_left":Ir="lean_left";break;case"trapezoid":Ir="trapezoid";break;case"inv_trapezoid":Ir="inv_trapezoid";break;case"circle":Ir="circle";break;case"ellipse":Ir="ellipse";break;case"stadium":Ir="stadium";break;case"subroutine":Ir="subroutine";break;case"cylinder":Ir="cylinder"}k.warn("Adding node",ar.id,ar.domId),pe.setNode(fr.lookUpDomId(ar.id),{labelType:"svg",labelStyle:Kr.labelStyle,shape:Ir,label:En,rx:Da,ry:Da,class:Fr,style:Kr.style,id:fr.lookUpDomId(ar.id)})})})(ut,j,a,_,m),function(ke,pe){var Ee,ze,je=0;if(ke.defaultStyle!==void 0){var yn=sc(ke.defaultStyle);Ee=yn.style,ze=yn.labelStyle}ke.forEach(function(cn){je++;var Ln="L-"+cn.start+"-"+cn.end,ar="LS-"+cn.start,Fr="LE-"+cn.end,En={};cn.type==="arrow_open"?En.arrowhead="none":En.arrowhead="normal";var Kr="",ci="";if(cn.style!==void 0){var bi=sc(cn.style);Kr=bi.style,ci=bi.labelStyle}else switch(cn.stroke){case"normal":Kr="fill:none",Ee!==void 0&&(Kr=Ee),ze!==void 0&&(ci=ze);break;case"dotted":Kr="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":Kr=" stroke-width: 3.5px;fill:none"}En.style=Kr,En.labelStyle=ci,cn.interpolate!==void 0?En.curve=As(cn.interpolate,xo):ke.defaultInterpolate!==void 0?En.curve=As(ke.defaultInterpolate,xo):En.curve=As(Nd.curve,xo),cn.text===void 0?cn.style!==void 0&&(En.arrowheadStyle="fill: #333"):(En.arrowheadStyle="fill: #333",En.labelpos="c",ma(Jt().flowchart.htmlLabels)?(En.labelType="html",En.label='<span id="L-'.concat(Ln,'" class="edgeLabel L-').concat(ar,"' L-").concat(Fr,'" style="').concat(En.labelStyle,'">').concat(cn.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(or){return"<i class='".concat(or.replace(":"," "),"'></i>")}),"</span>")):(En.labelType="text",En.label=cn.text.replace(Qn.lineBreakRegex,`
|
|
`),cn.style===void 0&&(En.style=En.style||"stroke: #333; stroke-width: 1.5px;fill:none"),En.labelStyle=En.labelStyle.replace("color:","fill:"))),En.id=Ln,En.class=ar+" "+Fr,En.minlen=cn.length||1,pe.setEdge(fr.lookUpDomId(cn.start),fr.lookUpDomId(cn.end),En,je)})}(wt,j);var At=new(Na()).render;jb(At),At.arrows().none=function(ke,pe,Ee,ze){var je=ke.append("marker").attr("id",pe).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");Na().util.applyStyle(je,Ee[ze+"Style"])},At.arrows().normal=function(ke,pe){ke.append("marker").attr("id",pe).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};var Zt=_.select('[id="'.concat(a,'"]'));Zt.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),eo(s.yy,Zt,a);var se=_.select("#"+a+" g");for(At(se,j),se.selectAll("g.node").attr("title",function(){return fr.getTooltip(this.id)}),fr.indexNodes("subGraph"+xt),xt=0;xt<X.length;xt++)if((C=X[xt]).title!=="undefined"){var jt=m.querySelectorAll("#"+a+' [id="'+fr.lookUpDomId(C.id)+'"] rect'),ne=m.querySelectorAll("#"+a+' [id="'+fr.lookUpDomId(C.id)+'"]'),ie=jt[0].x.baseVal.value,Ot=jt[0].y.baseVal.value,It=jt[0].width.baseVal.value,Ct=He(ne[0]).select(".label");Ct.attr("transform","translate(".concat(ie+It/2,", ").concat(Ot+14,")")),Ct.attr("id",a+"Text");for(var mt=0;mt<C.classes.length;mt++)ne[0].classList.add(C.classes[mt])}ma(A.htmlLabels);for(var Ut=m.querySelectorAll('[id="'+a+'"] .edgeLabel .label'),Tt=0;Tt<Ut.length;Tt++){var Te=Ut[Tt],Ce=Te.getBBox(),Qt=m.createElementNS("http://www.w3.org/2000/svg","rect");Qt.setAttribute("rx",0),Qt.setAttribute("ry",0),Qt.setAttribute("width",Ce.width),Qt.setAttribute("height",Ce.height),Te.insertBefore(Qt,Te.firstChild)}Xf(j,Zt,A.diagramPadding,A.useMaxWidth),Object.keys(ut).forEach(function(ke){var pe=ut[ke];if(pe.link){var Ee=_.select("#"+a+' [id="'+fr.lookUpDomId(ke)+'"]');if(Ee){var ze=m.createElementNS("http://www.w3.org/2000/svg","a");ze.setAttributeNS("http://www.w3.org/2000/svg","class",pe.classes.join(" ")),ze.setAttributeNS("http://www.w3.org/2000/svg","href",pe.link),ze.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),d==="sandbox"?ze.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):pe.linkTarget&&ze.setAttributeNS("http://www.w3.org/2000/svg","target",pe.linkTarget);var je=Ee.insert(function(){return ze},":first-child"),yn=Ee.select(".label-container");yn&&je.append(function(){return yn.node()});var cn=Ee.select(".label");cn&&je.append(function(){return cn.node()})}}})};var sy={};const sv=function(i){for(var a=Object.keys(i),s=0;s<a.length;s++)sy[a[s]]=i[a[s]]},cv=function(i,a){k.info("Drawing flowchart"),fr.clear(),fr.setGen("gen-2");var s=Ad().parser;s.yy=fr,s.parse(i);var u=fr.getDirection();u===void 0&&(u="TD");var d,_=Jt().flowchart,m=_.nodeSpacing||50,x=_.rankSpacing||50,C=Jt().securityLevel;C==="sandbox"&&(d=He("#i"+a));var A,B=He(C==="sandbox"?d.nodes()[0].contentDocument.body:"body"),Y=C==="sandbox"?d.nodes()[0].contentDocument:document,j=new(Fi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:m,ranksep:x,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),X=fr.getSubGraphs();k.info("Subgraphs - ",X);for(var vt=X.length-1;vt>=0;vt--)A=X[vt],k.info("Subgraph - ",A),fr.addVertex(A.id,A.title,"group",void 0,A.classes,A.dir);var ut=fr.getVertices(),wt=fr.getEdges();k.info(wt);var xt=0;for(xt=X.length-1;xt>=0;xt--){A=X[xt],Mc("cluster").append("text");for(var Dt=0;Dt<A.nodes.length;Dt++)k.info("Setting up subgraphs",A.nodes[Dt],A.id),j.setParent(A.nodes[Dt],A.id)}(function(It,Ct,mt,Ut,Tt){var Te=Ut.select('[id="'.concat(mt,'"]'));Object.keys(It).forEach(function(Ce){var Qt=It[Ce],ke="default";Qt.classes.length>0&&(ke=Qt.classes.join(" "));var pe,Ee=sc(Qt.styles),ze=Qt.text!==void 0?Qt.text:Qt.id;if(ma(Jt().flowchart.htmlLabels)){var je={label:ze.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Kr){return"<i class='".concat(Kr.replace(":"," "),"'></i>")})};(pe=rv()(Te,je).node()).parentNode.removeChild(pe)}else{var yn=Tt.createElementNS("http://www.w3.org/2000/svg","text");yn.setAttribute("style",Ee.labelStyle.replace("color:","fill:"));for(var cn=ze.split(Qn.lineBreakRegex),Ln=0;Ln<cn.length;Ln++){var ar=Tt.createElementNS("http://www.w3.org/2000/svg","tspan");ar.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ar.setAttribute("dy","1em"),ar.setAttribute("x","1"),ar.textContent=cn[Ln],yn.appendChild(ar)}pe=yn}var Fr=0,En="";switch(Qt.type){case"round":Fr=5,En="rect";break;case"square":case"group":default:En="rect";break;case"diamond":En="question";break;case"hexagon":En="hexagon";break;case"odd":case"odd_right":En="rect_left_inv_arrow";break;case"lean_right":En="lean_right";break;case"lean_left":En="lean_left";break;case"trapezoid":En="trapezoid";break;case"inv_trapezoid":En="inv_trapezoid";break;case"circle":En="circle";break;case"ellipse":En="ellipse";break;case"stadium":En="stadium";break;case"subroutine":En="subroutine";break;case"cylinder":En="cylinder";break;case"doublecircle":En="doublecircle"}Ct.setNode(Qt.id,{labelStyle:Ee.labelStyle,shape:En,labelText:ze,rx:Fr,ry:Fr,class:ke,style:Ee.style,id:Qt.id,link:Qt.link,linkTarget:Qt.linkTarget,tooltip:fr.getTooltip(Qt.id)||"",domId:fr.lookUpDomId(Qt.id),haveCallback:Qt.haveCallback,width:Qt.type==="group"?500:void 0,dir:Qt.dir,type:Qt.type,props:Qt.props,padding:Jt().flowchart.padding}),k.info("setNode",{labelStyle:Ee.labelStyle,shape:En,labelText:ze,rx:Fr,ry:Fr,class:ke,style:Ee.style,id:Qt.id,domId:fr.lookUpDomId(Qt.id),width:Qt.type==="group"?500:void 0,type:Qt.type,dir:Qt.dir,props:Qt.props,padding:Jt().flowchart.padding})})})(ut,j,a,B,Y),function(It,Ct){k.info("abc78 edges = ",It);var mt,Ut,Tt=0,Te={};if(It.defaultStyle!==void 0){var Ce=sc(It.defaultStyle);mt=Ce.style,Ut=Ce.labelStyle}It.forEach(function(Qt){Tt++;var ke="L-"+Qt.start+"-"+Qt.end;Te[ke]===void 0?(Te[ke]=0,k.info("abc78 new entry",ke,Te[ke])):(Te[ke]++,k.info("abc78 new entry",ke,Te[ke]));var pe=ke+"-"+Te[ke];k.info("abc78 new link id to be used is",ke,pe,Te[ke]);var Ee="LS-"+Qt.start,ze="LE-"+Qt.end,je={style:"",labelStyle:""};switch(je.minlen=Qt.length||1,Qt.type==="arrow_open"?je.arrowhead="none":je.arrowhead="normal",je.arrowTypeStart="arrow_open",je.arrowTypeEnd="arrow_open",Qt.type){case"double_arrow_cross":je.arrowTypeStart="arrow_cross";case"arrow_cross":je.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":je.arrowTypeStart="arrow_point";case"arrow_point":je.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":je.arrowTypeStart="arrow_circle";case"arrow_circle":je.arrowTypeEnd="arrow_circle"}var yn="",cn="";switch(Qt.stroke){case"normal":yn="fill:none;",mt!==void 0&&(yn=mt),Ut!==void 0&&(cn=Ut),je.thickness="normal",je.pattern="solid";break;case"dotted":je.thickness="normal",je.pattern="dotted",je.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":je.thickness="thick",je.pattern="solid",je.style="stroke-width: 3.5px;fill:none;"}if(Qt.style!==void 0){var Ln=sc(Qt.style);yn=Ln.style,cn=Ln.labelStyle}je.style=je.style+=yn,je.labelStyle=je.labelStyle+=cn,Qt.interpolate!==void 0?je.curve=As(Qt.interpolate,xo):It.defaultInterpolate!==void 0?je.curve=As(It.defaultInterpolate,xo):je.curve=As(sy.curve,xo),Qt.text===void 0?Qt.style!==void 0&&(je.arrowheadStyle="fill: #333"):(je.arrowheadStyle="fill: #333",je.labelpos="c"),je.labelType="text",je.label=Qt.text.replace(Qn.lineBreakRegex,`
|
|
`),Qt.style===void 0&&(je.style=je.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),je.labelStyle=je.labelStyle.replace("color:","fill:"),je.id=pe,je.classes="flowchart-link "+Ee+" "+ze,Ct.setEdge(Qt.start,Qt.end,je,Tt)})}(wt,j);var At=B.select('[id="'.concat(a,'"]'));At.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),eo(s.yy,At,a);var Zt=B.select("#"+a+" g");if(Xg(Zt,j,["point","circle","cross"],"flowchart",a),Xf(j,At,_.diagramPadding,_.useMaxWidth),fr.indexNodes("subGraph"+xt),!_.htmlLabels)for(var se=Y.querySelectorAll('[id="'+a+'"] .edgeLabel .label'),jt=0;jt<se.length;jt++){var ne=se[jt],ie=ne.getBBox(),Ot=Y.createElementNS("http://www.w3.org/2000/svg","rect");Ot.setAttribute("rx",0),Ot.setAttribute("ry",0),Ot.setAttribute("width",ie.width),Ot.setAttribute("height",ie.height),ne.insertBefore(Ot,ne.firstChild)}Object.keys(ut).forEach(function(It){var Ct=ut[It];if(Ct.link){var mt=He("#"+a+' [id="'+It+'"]');if(mt){var Ut=Y.createElementNS("http://www.w3.org/2000/svg","a");Ut.setAttributeNS("http://www.w3.org/2000/svg","class",Ct.classes.join(" ")),Ut.setAttributeNS("http://www.w3.org/2000/svg","href",Ct.link),Ut.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),C==="sandbox"?Ut.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):Ct.linkTarget&&Ut.setAttributeNS("http://www.w3.org/2000/svg","target",Ct.linkTarget);var Tt=mt.insert(function(){return Ut},":first-child"),Te=mt.select(".label-container");Te&&Tt.append(function(){return Te.node()});var Ce=mt.select(".label");Ce&&Tt.append(function(){return Ce.node()})}}})};function cy(i,a){(a==null||a>i.length)&&(a=i.length);for(var s=0,u=new Array(a);s<a;s++)u[s]=i[s];return u}var Ld,Dd,is="",Id="",Od="",zl=[],Vc=[],Rd={},Bd=[],ly=[],Ju="",uy=["active","done","crit","milestone"],Y1=[],$1=!1,Qu=!1,hy=0,lv=function(i,a,s,u){return!(u.indexOf(i.format(a.trim()))>=0)&&(i.isoWeekday()>=6&&s.indexOf("weekends")>=0||s.indexOf(i.format("dddd").toLowerCase())>=0||s.indexOf(i.format(a.trim()))>=0)},uv=function(i,a,s,u){if(s.length&&!i.manualEndTime){var d=g()(i.startTime,a,!0);d.add(1,"d");var _=g()(i.endTime,a,!0),m=th(d,_,a,s,u);i.endTime=_.toDate(),i.renderEndTime=m}},th=function(i,a,s,u,d){for(var _=!1,m=null;i<=a;)_||(m=a.toDate()),(_=lv(i,s,u,d))&&a.add(1,"d"),i.add(1,"d");return m},Zc=function(i,a,s){s=s.trim();var u=/^after\s+([\d\w- ]+)/.exec(s.trim());if(u!==null){var d=null;if(u[1].split(" ").forEach(function(x){var C=Yl(x);C!==void 0&&(d?C.endTime>d.endTime&&(d=C):d=C)}),d)return d.endTime;var _=new Date;return _.setHours(0,0,0,0),_}var m=g()(s,a.trim(),!0);return m.isValid()?m.toDate():(k.debug("Invalid date:"+s),k.debug("With date format:"+a.trim()),new Date)},hv=function(i,a){if(i!==null)switch(i[2]){case"s":a.add(i[1],"seconds");break;case"m":a.add(i[1],"minutes");break;case"h":a.add(i[1],"hours");break;case"d":a.add(i[1],"days");break;case"w":a.add(i[1],"weeks")}return a.toDate()},fv=function(i,a,s,u){u=u||!1,s=s.trim();var d=g()(s,a.trim(),!0);return d.isValid()?(u&&d.add(1,"d"),d.toDate()):hv(/^([\d]+)([wdhms])/.exec(s.trim()),g()(i))},dv=0,eh=function(i){return i===void 0?"task"+(dv+=1):i},Ui=[],pv={},Yl=function(i){var a=pv[i];return Ui[a]},gv=function(){for(var i=function(u){var d=Ui[u],_="";switch(Ui[u].raw.startTime.type){case"prevTaskEnd":var m=Yl(d.prevTaskId);d.startTime=m.endTime;break;case"getStartDate":(_=Zc(0,is,Ui[u].raw.startTime.startData))&&(Ui[u].startTime=_)}return Ui[u].startTime&&(Ui[u].endTime=fv(Ui[u].startTime,is,Ui[u].raw.endTime.data,$1),Ui[u].endTime&&(Ui[u].processed=!0,Ui[u].manualEndTime=g()(Ui[u].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),uv(Ui[u],is,Vc,zl))),Ui[u].processed},a=!0,s=0;s<Ui.length;s++)i(s),a=a&&Ui[s].processed;return a},fy=function(i,a){i.split(",").forEach(function(s){var u=Yl(s);u!==void 0&&u.classes.push(a)})},dy=function(i,a){Y1.push(function(){var s=document.querySelector('[id="'.concat(i,'"]'));s!==null&&s.addEventListener("click",function(){a()})}),Y1.push(function(){var s=document.querySelector('[id="'.concat(i,'-text"]'));s!==null&&s.addEventListener("click",function(){a()})})};const nh={parseDirective:function(i,a,s){Oi.parseDirective(this,i,a,s)},getConfig:function(){return Jt().gantt},clear:function(){Bd=[],ly=[],Ju="",Y1=[],dv=0,Ld=void 0,Dd=void 0,Ui=[],is="",Id="",Od="",zl=[],Vc=[],$1=!1,Qu=!1,hy=0,Rd={},Ms()},setDateFormat:function(i){is=i},getDateFormat:function(){return is},enableInclusiveEndDates:function(){$1=!0},endDatesAreInclusive:function(){return $1},enableTopAxis:function(){Qu=!0},topAxisEnabled:function(){return Qu},setAxisFormat:function(i){Id=i},getAxisFormat:function(){return Id},setTodayMarker:function(i){Od=i},getTodayMarker:function(){return Od},setAccTitle:Wa,getAccTitle:ia,setDiagramTitle:N1,getDiagramTitle:Hu,setAccDescription:To,getAccDescription:So,addSection:function(i){Ju=i,Bd.push(i)},getSections:function(){return Bd},getTasks:function(){for(var i=gv(),a=0;!i&&a<10;)i=gv(),a++;return ly=Ui},addTask:function(i,a){var s={section:Ju,type:Ju,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:a},task:i,classes:[]},u=function(_,m){var x=(m.substr(0,1)===":"?m.substr(1,m.length):m).split(","),C={};yv(x,C,uy);for(var A=0;A<x.length;A++)x[A]=x[A].trim();switch(x.length){case 1:C.id=eh(),C.startTime={type:"prevTaskEnd",id:_},C.endTime={data:x[0]};break;case 2:C.id=eh(),C.startTime={type:"getStartDate",startData:x[0]},C.endTime={data:x[1]};break;case 3:C.id=eh(x[0]),C.startTime={type:"getStartDate",startData:x[1]},C.endTime={data:x[2]}}return C}(Dd,a);s.raw.startTime=u.startTime,s.raw.endTime=u.endTime,s.id=u.id,s.prevTaskId=Dd,s.active=u.active,s.done=u.done,s.crit=u.crit,s.milestone=u.milestone,s.order=hy,hy++;var d=Ui.push(s);Dd=s.id,pv[s.id]=d-1},findTaskById:Yl,addTaskOrg:function(i,a){var s={section:Ju,type:Ju,description:i,task:i,classes:[]},u=function(d,_){var m=(_.substr(0,1)===":"?_.substr(1,_.length):_).split(","),x={};yv(m,x,uy);for(var C=0;C<m.length;C++)m[C]=m[C].trim();var A="";switch(m.length){case 1:x.id=eh(),x.startTime=d.endTime,A=m[0];break;case 2:x.id=eh(),x.startTime=Zc(0,is,m[0]),A=m[1];break;case 3:x.id=eh(m[0]),x.startTime=Zc(0,is,m[1]),A=m[2]}return A&&(x.endTime=fv(x.startTime,is,A,$1),x.manualEndTime=g()(A,"YYYY-MM-DD",!0).isValid(),uv(x,is,Vc,zl)),x}(Ld,a);s.startTime=u.startTime,s.endTime=u.endTime,s.id=u.id,s.active=u.active,s.done=u.done,s.crit=u.crit,s.milestone=u.milestone,Ld=s,ly.push(s)},setIncludes:function(i){zl=i.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return zl},setExcludes:function(i){Vc=i.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return Vc},setClickEvent:function(i,a,s){i.split(",").forEach(function(u){(function(d,_,m){if(Jt().securityLevel==="loose"&&_!==void 0){var x=[];if(typeof m=="string"){x=m.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var C=0;C<x.length;C++){var A=x[C].trim();A.charAt(0)==='"'&&A.charAt(A.length-1)==='"'&&(A=A.substr(1,A.length-2)),x[C]=A}}x.length===0&&x.push(d),Yl(d)!==void 0&&dy(d,function(){var B;cr.runFunc.apply(cr,[_].concat(function(Y){if(Array.isArray(Y))return cy(Y)}(B=x)||function(Y){if(typeof Symbol!="undefined"&&Y[Symbol.iterator]!=null||Y["@@iterator"]!=null)return Array.from(Y)}(B)||function(Y,j){if(Y){if(typeof Y=="string")return cy(Y,j);var X=Object.prototype.toString.call(Y).slice(8,-1);return X==="Object"&&Y.constructor&&(X=Y.constructor.name),X==="Map"||X==="Set"?Array.from(Y):X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X)?cy(Y,j):void 0}}(B)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))})}})(u,a,s)}),fy(i,"clickable")},setLink:function(i,a){var s=a;Jt().securityLevel!=="loose"&&(s=(0,ic.N)(a)),i.split(",").forEach(function(u){Yl(u)!==void 0&&(dy(u,function(){window.open(s,"_self")}),Rd[u]=s)}),fy(i,"clickable")},getLinks:function(){return Rd},bindFunctions:function(i){Y1.forEach(function(a){a(i)})},durationToDate:hv,isInvalidDate:lv};function yv(i,a,s){for(var u=!0;u;)u=!1,s.forEach(function(d){var _=new RegExp("^\\s*"+d+"\\s*$");i[0].match(_)&&(a[d]=!0,i.shift(1),u=!0)})}var Xc,no=f(9959),qb=f.n(no);no.parser.yy=nh;const mv=function(){k.debug("Something is calling, setConf, remove the call")},Wb=function(i,a){var s=Jt().gantt;no.parser.yy.clear(),no.parser.parse(i);var u,d=Jt().securityLevel;d==="sandbox"&&(u=He("#i"+a));var _=He(d==="sandbox"?u.nodes()[0].contentDocument.body:"body"),m=d==="sandbox"?u.nodes()[0].contentDocument:document,x=m.getElementById(a);(Xc=x.parentElement.offsetWidth)===void 0&&(Xc=1200),s.useWidth!==void 0&&(Xc=s.useWidth);var C=no.parser.yy.getTasks(),A=C.length*(s.barHeight+s.barGap)+2*s.topPadding;x.setAttribute("viewBox","0 0 "+Xc+" "+A);for(var B=_.select('[id="'.concat(a,'"]')),Y=function(){return Ys.apply(ym(Wy,t4,qs,N2,E0,au,k0,Eh,iu,Gy).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([F(C,function(ut){return ut.startTime}),L(C,function(ut){return ut.endTime})]).rangeRound([0,Xc-s.leftPadding-s.rightPadding]),j=[],X=0;X<C.length;X++)j.push(C[X].type);var vt=j;j=function(ut){for(var wt={},xt=[],Dt=0,At=ut.length;Dt<At;++Dt)Object.prototype.hasOwnProperty.call(wt,ut[Dt])||(wt[ut[Dt]]=!0,xt.push(ut[Dt]));return xt}(j),C.sort(function(ut,wt){var xt=ut.startTime,Dt=wt.startTime,At=0;return xt>Dt?At=1:xt<Dt&&(At=-1),At}),function(ut,wt,xt){var Dt=s.barHeight,At=Dt+s.barGap,Zt=s.topPadding,se=s.leftPadding;zy().domain([0,j.length]).range(["#00B9FA","#F95002"]).interpolate($v),function(jt,ne,ie,Ot,It,Ct,mt,Ut){var Tt=Ct.reduce(function(Ee,ze){var je=ze.startTime;return Ee?Math.min(Ee,je):je},0),Te=Ct.reduce(function(Ee,ze){var je=ze.endTime;return Ee?Math.max(Ee,je):je},0),Ce=no.parser.yy.getDateFormat();if(Tt&&Te){for(var Qt=[],ke=null,pe=g()(Tt);pe.valueOf()<=Te;)no.parser.yy.isInvalidDate(pe,Ce,mt,Ut)?ke?ke.end=pe.clone():ke={start:pe.clone(),end:pe.clone()}:ke&&(Qt.push(ke),ke=null),pe.add(1,"d");B.append("g").selectAll("rect").data(Qt).enter().append("rect").attr("id",function(Ee){return"exclude-"+Ee.start.format("YYYY-MM-DD")}).attr("x",function(Ee){return Y(Ee.start)+ie}).attr("y",s.gridLineStartPadding).attr("width",function(Ee){var ze=Ee.end.clone().add(1,"day");return Y(ze)-Y(Ee.start)}).attr("height",It-ne-s.gridLineStartPadding).attr("transform-origin",function(Ee,ze){return(Y(Ee.start)+ie+.5*(Y(Ee.end)-Y(Ee.start))).toString()+"px "+(ze*jt+.5*It).toString()+"px"}).attr("class","exclude-range")}}(At,Zt,se,0,xt,ut,no.parser.yy.getExcludes(),no.parser.yy.getIncludes()),function(jt,ne,ie,Ot){var It,Ct=(It=Y,bt(3,It)).tickSize(-Ot+ne+s.gridLineStartPadding).tickFormat(fo(no.parser.yy.getAxisFormat()||s.axisFormat||"%Y-%m-%d"));if(B.append("g").attr("class","grid").attr("transform","translate("+jt+", "+(Ot-50)+")").call(Ct).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),nh.topAxisEnabled()||s.topAxis){var mt=function(Ut){return bt(1,Ut)}(Y).tickSize(-Ot+ne+s.gridLineStartPadding).tickFormat(fo(no.parser.yy.getAxisFormat()||s.axisFormat||"%Y-%m-%d"));B.append("g").attr("class","grid").attr("transform","translate("+jt+", "+ne+")").call(mt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(se,Zt,0,xt),function(jt,ne,ie,Ot,It,Ct,mt){B.append("g").selectAll("rect").data(jt).enter().append("rect").attr("x",0).attr("y",function(Qt,ke){return Qt.order*ne+ie-2}).attr("width",function(){return mt-s.rightPadding/2}).attr("height",ne).attr("class",function(Qt){for(var ke=0;ke<j.length;ke++)if(Qt.type===j[ke])return"section section"+ke%s.numberSectionStyles;return"section section0"});var Ut=B.append("g").selectAll("rect").data(jt).enter(),Tt=nh.getLinks();if(Ut.append("rect").attr("id",function(Qt){return Qt.id}).attr("rx",3).attr("ry",3).attr("x",function(Qt){return Qt.milestone?Y(Qt.startTime)+Ot+.5*(Y(Qt.endTime)-Y(Qt.startTime))-.5*It:Y(Qt.startTime)+Ot}).attr("y",function(Qt,ke){return Qt.order*ne+ie}).attr("width",function(Qt){return Qt.milestone?It:Y(Qt.renderEndTime||Qt.endTime)-Y(Qt.startTime)}).attr("height",It).attr("transform-origin",function(Qt,ke){return ke=Qt.order,(Y(Qt.startTime)+Ot+.5*(Y(Qt.endTime)-Y(Qt.startTime))).toString()+"px "+(ke*ne+ie+.5*It).toString()+"px"}).attr("class",function(Qt){var ke="";Qt.classes.length>0&&(ke=Qt.classes.join(" "));for(var pe=0,Ee=0;Ee<j.length;Ee++)Qt.type===j[Ee]&&(pe=Ee%s.numberSectionStyles);var ze="";return Qt.active?Qt.crit?ze+=" activeCrit":ze=" active":Qt.done?ze=Qt.crit?" doneCrit":" done":Qt.crit&&(ze+=" crit"),ze.length===0&&(ze=" task"),Qt.milestone&&(ze=" milestone "+ze),"task"+(ze+=pe)+" "+ke}),Ut.append("text").attr("id",function(Qt){return Qt.id+"-text"}).text(function(Qt){return Qt.task}).attr("font-size",s.fontSize).attr("x",function(Qt){var ke=Y(Qt.startTime),pe=Y(Qt.renderEndTime||Qt.endTime);Qt.milestone&&(ke+=.5*(Y(Qt.endTime)-Y(Qt.startTime))-.5*It),Qt.milestone&&(pe=ke+It);var Ee=this.getBBox().width;return Ee>pe-ke?pe+Ee+1.5*s.leftPadding>mt?ke+Ot-5:pe+Ot+5:(pe-ke)/2+ke+Ot}).attr("y",function(Qt,ke){return Qt.order*ne+s.barHeight/2+(s.fontSize/2-2)+ie}).attr("text-height",It).attr("class",function(Qt){var ke=Y(Qt.startTime),pe=Y(Qt.endTime);Qt.milestone&&(pe=ke+It);var Ee=this.getBBox().width,ze="";Qt.classes.length>0&&(ze=Qt.classes.join(" "));for(var je=0,yn=0;yn<j.length;yn++)Qt.type===j[yn]&&(je=yn%s.numberSectionStyles);var cn="";return Qt.active&&(cn=Qt.crit?"activeCritText"+je:"activeText"+je),Qt.done?cn=Qt.crit?cn+" doneCritText"+je:cn+" doneText"+je:Qt.crit&&(cn=cn+" critText"+je),Qt.milestone&&(cn+=" milestoneText"),Ee>pe-ke?pe+Ee+1.5*s.leftPadding>mt?ze+" taskTextOutsideLeft taskTextOutside"+je+" "+cn:ze+" taskTextOutsideRight taskTextOutside"+je+" "+cn+" width-"+Ee:ze+" taskText taskText"+je+" "+cn+" width-"+Ee}),Jt().securityLevel==="sandbox"){var Te;Te=He("#i"+a),He(Te.nodes()[0].contentDocument.body);var Ce=Te.nodes()[0].contentDocument;Ut.filter(function(Qt){return Tt[Qt.id]!==void 0}).each(function(Qt){var ke=Ce.querySelector("#"+Qt.id),pe=Ce.querySelector("#"+Qt.id+"-text"),Ee=ke.parentNode,ze=Ce.createElement("a");ze.setAttribute("xlink:href",Tt[Qt.id]),ze.setAttribute("target","_top"),Ee.appendChild(ze),ze.appendChild(ke),ze.appendChild(pe)})}}(ut,At,Zt,se,Dt,0,wt),function(jt,ne){for(var ie=[],Ot=0,It=0;It<j.length;It++)ie[It]=[j[It],(Ct=j[It],mt=vt,function(Ut){for(var Tt=Ut.length,Te={};Tt;)Te[Ut[--Tt]]=(Te[Ut[Tt]]||0)+1;return Te}(mt)[Ct]||0)];var Ct,mt;B.append("g").selectAll("text").data(ie).enter().append(function(Ut){var Tt=Ut[0].split(Qn.lineBreakRegex),Te=-(Tt.length-1)/2,Ce=m.createElementNS("http://www.w3.org/2000/svg","text");Ce.setAttribute("dy",Te+"em");for(var Qt=0;Qt<Tt.length;Qt++){var ke=m.createElementNS("http://www.w3.org/2000/svg","tspan");ke.setAttribute("alignment-baseline","central"),ke.setAttribute("x","10"),Qt>0&&ke.setAttribute("dy","1em"),ke.textContent=Tt[Qt],Ce.appendChild(ke)}return Ce}).attr("x",10).attr("y",function(Ut,Tt){if(!(Tt>0))return Ut[1]*jt/2+ne;for(var Te=0;Te<Tt;Te++)return Ot+=ie[Tt-1][1],Ut[1]*jt/2+Ot*jt+ne}).attr("font-size",s.sectionFontSize).attr("font-size",s.sectionFontSize).attr("class",function(Ut){for(var Tt=0;Tt<j.length;Tt++)if(Ut[0]===j[Tt])return"sectionTitle sectionTitle"+Tt%s.numberSectionStyles;return"sectionTitle"})}(At,Zt),function(jt,ne,ie,Ot){var It=nh.getTodayMarker();if(It!=="off"){var Ct=B.append("g").attr("class","today"),mt=new Date,Ut=Ct.append("line");Ut.attr("x1",Y(mt)+jt).attr("x2",Y(mt)+jt).attr("y1",s.titleTopMargin).attr("y2",Ot-s.titleTopMargin).attr("class","today"),It!==""&&Ut.attr("style",It.replace(/,/g,";"))}}(se,0,0,xt)}(C,Xc,A),yo(B,A,Xc,s.useMaxWidth),B.append("text").text(no.parser.yy.getDiagramTitle()).attr("x",Xc/2).attr("y",s.titleTopMargin).attr("class","titleText"),eo(no.parser.yy,B,a)};function _v(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);a&&(u=u.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),s.push.apply(s,u)}return s}function vv(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?_v(Object(s),!0).forEach(function(u){bv(i,u,s[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):_v(Object(s)).forEach(function(u){Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(s,u))})}return i}function bv(i,a,s){return a in i?Object.defineProperty(i,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[a]=s,i}var Fd=Jt().gitGraph.mainBranchName,Gb=Jt().gitGraph.mainBranchOrder,zi={},oa=null,Kc={};Kc[Fd]={name:Fd,order:Gb};var vi={};vi[Fd]=oa;var sa=Fd,py="LR",as=0;function $l(){return N3({length:7})}var j1={},xv=function(i){if(i=Qn.sanitizeText(i,Jt()),vi[i]===void 0){var a=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+i+'")');throw a.hash={text:"checkout "+i,token:"checkout "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+i+'"']},a}var s=vi[sa=i];oa=zi[s]};function wv(i,a,s){var u=i.indexOf(a);u===-1?i.push(s):i.splice(u,1,s)}function kv(i){var a=i.reduce(function(B,Y){return B.seq>Y.seq?B:Y},i[0]),s="";i.forEach(function(B){s+=B===a?" *":" |"});var u,d,_,m=[s,a.id,a.seq];for(var x in vi)vi[x]===a.id&&m.push(x);if(k.debug(m.join(" ")),a.parents&&a.parents.length==2){var C=zi[a.parents[0]];wv(i,a,C),i.push(zi[a.parents[1]])}else{if(a.parents.length==0)return;var A=zi[a.parents];wv(i,a,A)}u=i,d=function(B){return B.id},_=Object.create(null),kv(i=u.reduce(function(B,Y){var j=d(Y);return _[j]||(_[j]=!0,B.push(Y)),B},[]))}var gy=function(){var i=Object.keys(zi).map(function(a){return zi[a]});return i.forEach(function(a){k.debug(a.id)}),i.sort(function(a,s){return a.seq-s.seq}),i},H1={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};const Jc={parseDirective:function(i,a,s){Oi.parseDirective(this,i,a,s)},getConfig:function(){return Jt().gitGraph},setDirection:function(i){py=i},setOptions:function(i){k.debug("options str",i),i=(i=i&&i.trim())||"{}";try{j1=JSON.parse(i)}catch(a){k.error("error while parsing gitGraph options",a.message)}},getOptions:function(){return j1},commit:function(i,a,s,u){k.debug("Entering commit:",i,a,s,u),a=Qn.sanitizeText(a,Jt()),i=Qn.sanitizeText(i,Jt()),u=Qn.sanitizeText(u,Jt());var d={id:a||as+"-"+$l(),message:i,seq:as++,type:s||H1.NORMAL,tag:u||"",parents:oa==null?[]:[oa.id],branch:sa};oa=d,zi[d.id]=d,vi[sa]=d.id,k.debug("in pushCommit "+d.id)},branch:function(i,a){if(i=Qn.sanitizeText(i,Jt()),vi[i]!==void 0){var s=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+i+'")');throw s.hash={text:"branch "+i,token:"branch "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+i+'"']},s}vi[i]=oa!=null?oa.id:null,Kc[i]={name:i,order:a?parseInt(a,10):null},xv(i),k.debug("in createBranch")},merge:function(i,a){i=Qn.sanitizeText(i,Jt());var s=zi[vi[sa]],u=zi[vi[i]];if(sa===i){var d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},d}if(s===void 0||!s){var _=new Error('Incorrect usage of "merge". Current branch ('+sa+")has no commits");throw _.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},_}if(vi[i]===void 0){var m=new Error('Incorrect usage of "merge". Branch to be merged ('+i+") does not exist");throw m.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+i]},m}if(u===void 0||!u){var x=new Error('Incorrect usage of "merge". Branch to be merged ('+i+") has no commits");throw x.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},x}if(s===u){var C=new Error('Incorrect usage of "merge". Both branches have same head');throw C.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},C}var A={id:as+"-"+$l(),message:"merged branch "+i+" into "+sa,seq:as++,parents:[oa==null?null:oa.id,vi[i]],branch:sa,type:H1.MERGE,tag:a||""};oa=A,zi[A.id]=A,vi[sa]=A.id,k.debug(vi),k.debug("in mergeBranch")},cherryPick:function(i,a){if(i=Qn.sanitizeText(i,Jt()),a=Qn.sanitizeText(a,Jt()),!i||zi[i]===void 0){var s=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw s.hash={text:"cherryPick "+i+" "+a,token:"cherryPick "+i+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},s}var u=zi[i],d=u.branch;if(u.type===H1.MERGE){var _=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw _.hash={text:"cherryPick "+i+" "+a,token:"cherryPick "+i+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},_}if(!a||zi[a]===void 0){if(d===sa){var m=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw m.hash={text:"cherryPick "+i+" "+a,token:"cherryPick "+i+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},m}var x=zi[vi[sa]];if(x===void 0||!x){var C=new Error('Incorrect usage of "cherry-pick". Current branch ('+sa+")has no commits");throw C.hash={text:"cherryPick "+i+" "+a,token:"cherryPick "+i+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},C}var A={id:as+"-"+$l(),message:"cherry-picked "+u+" into "+sa,seq:as++,parents:[oa==null?null:oa.id,u.id],branch:sa,type:H1.CHERRY_PICK,tag:"cherry-pick:"+u.id};oa=A,zi[A.id]=A,vi[sa]=A.id,k.debug(vi),k.debug("in cheeryPick")}},checkout:xv,prettyPrint:function(){k.debug(zi),kv([gy()[0]])},clear:function(){zi={},oa=null;var i=Jt().gitGraph.mainBranchName,a=Jt().gitGraph.mainBranchOrder;(vi={})[i]=null,(Kc={})[i]={name:i,order:a},sa=i,as=0,Ms()},getBranchesAsObjArray:function(){return Object.values(Kc).map(function(i,a){return i.order!==null?i:vv(vv({},i),{},{order:parseFloat("0.".concat(a),10)})}).sort(function(i,a){return i.order-a.order}).map(function(i){return{name:i.name}})},getBranches:function(){return vi},getCommits:function(){return zi},getCommitsArray:gy,getCurrentBranch:function(){return sa},getDirection:function(){return py},getHead:function(){return oa},setAccTitle:Wa,getAccTitle:ia,getAccDescription:So,setAccDescription:To,commitType:H1};var Ev=f(2553),Tv=f.n(Ev),Os={},Ki={},jl={},q1=[],W1=0,Pd=function(i,a,s){var u=Jt().gitGraph,d=i.append("g").attr("class","commit-bullets"),_=i.append("g").attr("class","commit-labels"),m=0;Object.keys(a).sort(function(x,C){return a[x].seq-a[C].seq}).forEach(function(x,C){var A=a[x],B=Ki[A.branch].pos,Y=m+10;if(s){var j;switch(A.type){case 0:default:j="commit-normal";break;case 1:j="commit-reverse";break;case 2:j="commit-highlight";break;case 3:j="commit-merge";break;case 4:j="commit-cherry-pick"}if(A.type===2){var X=d.append("rect");X.attr("x",Y-10),X.attr("y",B-10),X.attr("height",20),X.attr("width",20),X.attr("class","commit "+A.id+" commit-highlight"+Ki[A.branch].index+" "+j+"-outer"),d.append("rect").attr("x",Y-6).attr("y",B-6).attr("height",12).attr("width",12).attr("class","commit "+A.id+" commit"+Ki[A.branch].index+" "+j+"-inner")}else if(A.type===4)d.append("circle").attr("cx",Y).attr("cy",B).attr("r",10).attr("class","commit "+A.id+" "+j),d.append("circle").attr("cx",Y-3).attr("cy",B+2).attr("r",2.75).attr("fill","#fff").attr("class","commit "+A.id+" "+j),d.append("circle").attr("cx",Y+3).attr("cy",B+2).attr("r",2.75).attr("fill","#fff").attr("class","commit "+A.id+" "+j),d.append("line").attr("x1",Y+3).attr("y1",B+1).attr("x2",Y).attr("y2",B-5).attr("stroke","#fff").attr("class","commit "+A.id+" "+j),d.append("line").attr("x1",Y-3).attr("y1",B+1).attr("x2",Y).attr("y2",B-5).attr("stroke","#fff").attr("class","commit "+A.id+" "+j);else{var vt=d.append("circle");if(vt.attr("cx",Y),vt.attr("cy",B),vt.attr("r",A.type===3?9:10),vt.attr("class","commit "+A.id+" commit"+Ki[A.branch].index),A.type===3){var ut=d.append("circle");ut.attr("cx",Y),ut.attr("cy",B),ut.attr("r",6),ut.attr("class","commit "+j+" "+A.id+" commit"+Ki[A.branch].index)}A.type===1&&d.append("path").attr("d","M ".concat(Y-5,",").concat(B-5,"L").concat(Y+5,",").concat(B+5,"M").concat(Y-5,",").concat(B+5,"L").concat(Y+5,",").concat(B-5)).attr("class","commit "+j+" "+A.id+" commit"+Ki[A.branch].index)}}if(jl[A.id]={x:m+10,y:B},s){if(A.type!==4&&A.type!==3&&u.showCommitLabel){var wt=_.append("g"),xt=wt.insert("rect").attr("class","commit-label-bkg"),Dt=wt.append("text").attr("x",m).attr("y",B+25).attr("class","commit-label").text(A.id),At=Dt.node().getBBox();if(xt.attr("x",m+10-At.width/2-2).attr("y",B+13.5).attr("width",At.width+4).attr("height",At.height+4),Dt.attr("x",m+10-At.width/2),u.rotateCommitLabel){var Zt=-7.5-(At.width+10)/25*9.5,se=10+At.width/25*8.5;wt.attr("transform","translate("+Zt+", "+se+") rotate(-45, "+m+", "+B+")")}}if(A.tag){var jt=_.insert("polygon"),ne=_.append("circle"),ie=_.append("text").attr("y",B-16).attr("class","tag-label").text(A.tag),Ot=ie.node().getBBox();ie.attr("x",m+10-Ot.width/2);var It=Ot.height/2,Ct=B-19.2;jt.attr("class","tag-label-bkg").attr("points",`
|
|
`.concat(m-Ot.width/2-2,",").concat(Ct+2,`
|
|
`).concat(m-Ot.width/2-2,",").concat(Ct-2,`
|
|
`).concat(m+10-Ot.width/2-4,",").concat(Ct-It-2,`
|
|
`).concat(m+10+Ot.width/2+4,",").concat(Ct-It-2,`
|
|
`).concat(m+10+Ot.width/2+4,",").concat(Ct+It+2,`
|
|
`).concat(m+10-Ot.width/2-4,",").concat(Ct+It+2)),ne.attr("cx",m-Ot.width/2+2).attr("cy",Ct).attr("r",1.5).attr("class","tag-hole")}}(m+=50)>W1&&(W1=m)})},Sv=function i(a,s,u){var d=u||0,_=a+Math.abs(a-s)/2;if(d>5)return _;for(var m=!0,x=0;x<q1.length;x++)Math.abs(q1[x]-_)<10&&(m=!1);return m?(q1.push(_),_):i(a,s-Math.abs(a-s)/5,d)};const Vb=function(i,a,s){Ki={},jl={},Os={},W1=0,q1=[];var u=Jt(),d=Jt().gitGraph,_=Tv().parser;_.yy=Jc,_.yy.clear(),k.debug("in gitgraph renderer",i+`
|
|
`,"id:",a,s),_.parse(i+`
|
|
`),Jc.getDirection(),Os=Jc.getCommits();var m=Jc.getBranchesAsObjArray(),x=0;m.forEach(function(vt,ut){Ki[vt.name]={pos:x,index:ut},x+=50+(d.rotateCommitLabel?40:0)});var C=He('[id="'.concat(a,'"]'));eo(_.yy,C,a),Pd(C,Os,!1),d.showBranches&&function(vt,ut){var wt=Jt().gitGraph,xt=vt.append("g");ut.forEach(function(Dt,At){var Zt=At>=8?At-8:At,se=Ki[Dt.name].pos,jt=xt.append("line");jt.attr("x1",0),jt.attr("y1",se),jt.attr("x2",W1),jt.attr("y2",se),jt.attr("class","branch branch"+Zt),q1.push(se);var ne=function(Ct){var mt=document.createElementNS("http://www.w3.org/2000/svg","text"),Ut=[];Ut=typeof Ct=="string"?Ct.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(Ct)?Ct:[];for(var Tt=0;Tt<Ut.length;Tt++){var Te=document.createElementNS("http://www.w3.org/2000/svg","tspan");Te.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Te.setAttribute("dy","1em"),Te.setAttribute("x","0"),Te.setAttribute("class","row"),Te.textContent=Ut[Tt].trim(),mt.appendChild(Te)}return mt}(Dt.name),ie=xt.insert("rect"),Ot=xt.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+Zt);Ot.node().appendChild(ne);var It=ne.getBBox();ie.attr("class","branchLabelBkg label"+Zt).attr("rx",4).attr("ry",4).attr("x",-It.width-4-(wt.rotateCommitLabel===!0?30:0)).attr("y",-It.height/2+8).attr("width",It.width+18).attr("height",It.height+4),Ot.attr("transform","translate("+(-It.width-14-(wt.rotateCommitLabel===!0?30:0))+", "+(se-It.height/2-1)+")"),ie.attr("transform","translate(-19, "+(se-It.height/2)+")")})}(C,m),function(vt,ut){var wt=vt.append("g").attr("class","commit-arrows");Object.keys(ut).forEach(function(xt,Dt){var At=ut[xt];At.parents&&At.parents.length>0&&At.parents.forEach(function(Zt){(function(se,jt,ne,ie){var Ot=Jt(),It=jl[jt.id],Ct=jl[ne.id],mt=function(Ee,ze,je){return jl[ze.id],jl[Ee.id],Object.keys(je).filter(function(yn){return je[yn].branch===ze.branch&&je[yn].seq>Ee.seq&&je[yn].seq<ze.seq}).length>0}(jt,ne,ie);Ot.arrowMarkerAbsolute&&(window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)");var Ut,Tt="",Te="",Ce=0,Qt=0,ke=Ki[ne.branch].index;if(mt){Tt="A 10 10, 0, 0, 0,",Te="A 10 10, 0, 0, 1,",Ce=10,Qt=10,ke=Ki[ne.branch].index;var pe=It.y<Ct.y?Sv(It.y,Ct.y):Sv(Ct.y,It.y);Ut=It.y<Ct.y?"M ".concat(It.x," ").concat(It.y," L ").concat(It.x," ").concat(pe-Ce," ").concat(Tt," ").concat(It.x+Qt," ").concat(pe," L ").concat(Ct.x-Ce," ").concat(pe," ").concat(Te," ").concat(Ct.x," ").concat(pe+Qt," L ").concat(Ct.x," ").concat(Ct.y):"M ".concat(It.x," ").concat(It.y," L ").concat(It.x," ").concat(pe+Ce," ").concat(Te," ").concat(It.x+Qt," ").concat(pe," L ").concat(Ct.x-Ce," ").concat(pe," ").concat(Tt," ").concat(Ct.x," ").concat(pe-Qt," L ").concat(Ct.x," ").concat(Ct.y)}else It.y<Ct.y&&(Tt="A 20 20, 0, 0, 0,",Ce=20,Qt=20,ke=Ki[ne.branch].index,Ut="M ".concat(It.x," ").concat(It.y," L ").concat(It.x," ").concat(Ct.y-Ce," ").concat(Tt," ").concat(It.x+Qt," ").concat(Ct.y," L ").concat(Ct.x," ").concat(Ct.y)),It.y>Ct.y&&(Tt="A 20 20, 0, 0, 0,",Ce=20,Qt=20,ke=Ki[jt.branch].index,Ut="M ".concat(It.x," ").concat(It.y," L ").concat(Ct.x-Ce," ").concat(It.y," ").concat(Tt," ").concat(Ct.x," ").concat(It.y-Qt," L ").concat(Ct.x," ").concat(Ct.y)),It.y===Ct.y&&(ke=Ki[jt.branch].index,Ut="M ".concat(It.x," ").concat(It.y," L ").concat(It.x," ").concat(Ct.y-Ce," ").concat(Tt," ").concat(It.x+Qt," ").concat(Ct.y," L ").concat(Ct.x," ").concat(Ct.y));se.append("path").attr("d",Ut).attr("class","arrow arrow"+ke)})(wt,ut[Zt],At,ut)})})}(C,Os),Pd(C,Os,!0);var A=d.diagramPadding,B=C.node().getBBox(),Y=B.width+2*A,j=B.height+2*A;yo(C,j,Y,u.useMaxWidth);var X="".concat(B.x-A-(d.showBranches&&d.rotateCommitLabel===!0?30:0)," ").concat(B.y-A," ").concat(Y," ").concat(j);C.attr("viewBox",X)};var yy="",Av=!1;const Hl={setMessage:function(i){k.debug("Setting message to: "+i),yy=i},getMessage:function(){return yy},setInfo:function(i){Av=i},getInfo:function(){return Av}};var vo=f(6765),rh=f.n(vo),La={};const Yr=function(i){Object.keys(i).forEach(function(a){La[a]=i[a]})};var Zb=f(7062),Cv=f.n(Zb),Ud={},G1=!1;const my={parseDirective:function(i,a,s){Oi.parseDirective(this,i,a,s)},getConfig:function(){return Jt().pie},addSection:function(i,a){i=Qn.sanitizeText(i,Jt()),Ud[i]===void 0&&(Ud[i]=a,k.debug("Added new section :",i))},getSections:function(){return Ud},cleanupValue:function(i){return i.substring(0,1)===":"&&(i=i.substring(1).trim()),Number(i.trim())},clear:function(){Ud={},G1=!1,Ms()},setAccTitle:Wa,getAccTitle:ia,setDiagramTitle:N1,getDiagramTitle:Hu,setShowData:function(i){G1=i},getShowData:function(){return G1},getAccDescription:So,setAccDescription:To};var os,mc=Jt();const _c=function(i,a){try{mc=Jt();var s=Cv().parser;s.yy=my,k.debug(`Rendering info diagram
|
|
`+i);var u,d=Jt().securityLevel;d==="sandbox"&&(u=He("#i"+a));var _=He(d==="sandbox"?u.nodes()[0].contentDocument.body:"body"),m=d==="sandbox"?u.nodes()[0].contentDocument:document;s.yy.clear(),s.parse(i),k.debug("Parsed info diagram");var x=m.getElementById(a);(os=x.parentElement.offsetWidth)===void 0&&(os=1200),mc.useWidth!==void 0&&(os=mc.useWidth),mc.pie.useWidth!==void 0&&(os=mc.pie.useWidth);var C=_.select("#"+a);yo(C,450,os,mc.pie.useMaxWidth),eo(s.yy,C,a),x.setAttribute("viewBox","0 0 "+os+" 450");var A=Math.min(os,450)/2-40,B=C.append("g").attr("transform","translate("+os/2+",225)"),Y=my.getSections(),j=0;Object.keys(Y).forEach(function(Zt){j+=Y[Zt]});var X=mc.themeVariables,vt=[X.pie1,X.pie2,X.pie3,X.pie4,X.pie5,X.pie6,X.pie7,X.pie8,X.pie9,X.pie10,X.pie11,X.pie12],ut=kc().range(vt),wt=function(){var Zt=gu,se=U0,jt=null,ne=Nr(0),ie=Nr(Bh),Ot=Nr(0);function It(Ct){var mt,Ut,Tt,Te,Ce,Qt=(Ct=Bm(Ct)).length,ke=0,pe=new Array(Qt),Ee=new Array(Qt),ze=+ne.apply(this,arguments),je=Math.min(Bh,Math.max(-Bh,ie.apply(this,arguments)-ze)),yn=Math.min(Math.abs(je)/Qt,Ot.apply(this,arguments)),cn=yn*(je<0?-1:1);for(mt=0;mt<Qt;++mt)(Ce=Ee[pe[mt]=mt]=+Zt(Ct[mt],mt,Ct))>0&&(ke+=Ce);for(se!=null?pe.sort(function(Ln,ar){return se(Ee[Ln],Ee[ar])}):jt!=null&&pe.sort(function(Ln,ar){return jt(Ct[Ln],Ct[ar])}),mt=0,Tt=ke?(je-Qt*cn)/ke:0;mt<Qt;++mt,ze=Te)Ut=pe[mt],Te=ze+((Ce=Ee[Ut])>0?Ce*Tt:0)+cn,Ee[Ut]={data:Ct[Ut],index:mt,value:Ce,startAngle:ze,endAngle:Te,padAngle:yn};return Ee}return It.value=function(Ct){return arguments.length?(Zt=typeof Ct=="function"?Ct:Nr(+Ct),It):Zt},It.sortValues=function(Ct){return arguments.length?(se=Ct,jt=null,It):se},It.sort=function(Ct){return arguments.length?(jt=Ct,se=null,It):jt},It.startAngle=function(Ct){return arguments.length?(ne=typeof Ct=="function"?Ct:Nr(+Ct),It):ne},It.endAngle=function(Ct){return arguments.length?(ie=typeof Ct=="function"?Ct:Nr(+Ct),It):ie},It.padAngle=function(Ct){return arguments.length?(Ot=typeof Ct=="function"?Ct:Nr(+Ct),It):Ot},It}().value(function(Zt){return Zt[1]}),xt=wt(Object.entries(Y)),Dt=Q2().innerRadius(0).outerRadius(A);B.selectAll("mySlices").data(xt).enter().append("path").attr("d",Dt).attr("fill",function(Zt){return ut(Zt.data[0])}).attr("class","pieCircle"),B.selectAll("mySlices").data(xt).enter().append("text").text(function(Zt){return(Zt.data[1]/j*100).toFixed(0)+"%"}).attr("transform",function(Zt){return"translate("+Dt.centroid(Zt)+")"}).style("text-anchor","middle").attr("class","slice"),B.append("text").text(s.yy.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var At=B.selectAll(".legend").data(ut.domain()).enter().append("g").attr("class","legend").attr("transform",function(Zt,se){return"translate(216,"+(22*se-22*ut.domain().length/2)+")"});At.append("rect").attr("width",18).attr("height",18).style("fill",ut).style("stroke",ut),At.data(xt).append("text").attr("x",22).attr("y",14).text(function(Zt){return s.yy.getShowData()||mc.showData||mc.pie.showData?Zt.data[0]+" ["+Zt.data[1]+"]":Zt.data[0]})}catch(Zt){k.error("Error while rendering info diagram"),k.error(Zt)}};var Qc=f(3176),Mv=f.n(Qc),V1=[],ca={},Z1={},tl={},ih={};const ah={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(i,a,s){Oi.parseDirective(this,i,a,s)},getConfig:function(){return Jt().req},addRequirement:function(i,a){return Z1[i]===void 0&&(Z1[i]={name:i,type:a,id:ca.id,text:ca.text,risk:ca.risk,verifyMethod:ca.verifyMethod}),ca={},Z1[i]},getRequirements:function(){return Z1},setNewReqId:function(i){ca!==void 0&&(ca.id=i)},setNewReqText:function(i){ca!==void 0&&(ca.text=i)},setNewReqRisk:function(i){ca!==void 0&&(ca.risk=i)},setNewReqVerifyMethod:function(i){ca!==void 0&&(ca.verifyMethod=i)},setAccTitle:Wa,getAccTitle:ia,setAccDescription:To,getAccDescription:So,addElement:function(i){return ih[i]===void 0&&(ih[i]={name:i,type:tl.type,docRef:tl.docRef},k.info("Added new requirement: ",i)),tl={},ih[i]},getElements:function(){return ih},setNewElementType:function(i){tl!==void 0&&(tl.type=i)},setNewElementDocRef:function(i){tl!==void 0&&(tl.docRef=i)},addRelationship:function(i,a,s){V1.push({type:i,src:a,dst:s})},getRelationships:function(){return V1},clear:function(){V1=[],ca={},Z1={},tl={},ih={},Ms()}};var _y={CONTAINS:"contains",ARROW:"arrow"};const Xb=_y;var Yi={},o=0,l=function(i,a){return i.insert("rect","#"+a).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Yi.rect_min_width+"px").attr("height",Yi.rect_min_height+"px")},h=function(i,a,s){var u=Yi.rect_min_width/2,d=i.append("text").attr("class","req reqLabel reqTitle").attr("id",a).attr("x",u).attr("y",Yi.rect_padding).attr("dominant-baseline","hanging"),_=0;s.forEach(function(x){_==0?d.append("tspan").attr("text-anchor","middle").attr("x",Yi.rect_min_width/2).attr("dy",0).text(x):d.append("tspan").attr("text-anchor","middle").attr("x",Yi.rect_min_width/2).attr("dy",.75*Yi.line_height).text(x),_++});var m=1.5*Yi.rect_padding+_*Yi.line_height*.75;return i.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Yi.rect_min_width).attr("y1",m).attr("y2",m),{titleNode:d,y:m}},y=function(i,a,s,u){var d=i.append("text").attr("class","req reqLabel").attr("id",a).attr("x",Yi.rect_padding).attr("y",u).attr("dominant-baseline","hanging"),_=0,m=[];return s.forEach(function(x){for(var C=x.length;C>30&&_<3;){var A=x.substring(0,30);C=(x=x.substring(30,x.length)).length,m[m.length]=A,_++}if(_==3){var B=m[m.length-1];m[m.length-1]=B.substring(0,B.length-4)+"..."}else m[m.length]=x;_=0}),m.forEach(function(x){d.append("tspan").attr("x",Yi.rect_padding).attr("dy",Yi.line_height).text(x)}),d},v=function(i){return i.replace(/\s/g,"").replace(/\./g,"_")};const w=function(i){if(i!==void 0)for(var a=Object.keys(i),s=0;s<a.length;s++)Yi[a[s]]=i[a[s]]},N=function(i,a){Qc.parser.yy=ah,Qc.parser.yy.clear(),Qc.parser.parse(i);var s,u=Jt().securityLevel;u==="sandbox"&&(s=He("#i"+a));var d=He(u==="sandbox"?s.nodes()[0].contentDocument.body:"body"),_=(u==="sandbox"&&s.nodes()[0].contentDocument,d.select("[id='".concat(a,"']")));(function(vt,ut){var wt=vt.append("defs").append("marker").attr("id",_y.CONTAINS+"_line_ending").attr("refX",0).attr("refY",ut.line_height/2).attr("markerWidth",ut.line_height).attr("markerHeight",ut.line_height).attr("orient","auto").append("g");wt.append("circle").attr("cx",ut.line_height/2).attr("cy",ut.line_height/2).attr("r",ut.line_height/2).attr("fill","none"),wt.append("line").attr("x1",0).attr("x2",ut.line_height).attr("y1",ut.line_height/2).attr("y2",ut.line_height/2).attr("stroke-width",1),wt.append("line").attr("y1",0).attr("y2",ut.line_height).attr("x1",ut.line_height/2).attr("x2",ut.line_height/2).attr("stroke-width",1),vt.append("defs").append("marker").attr("id",_y.ARROW+"_line_ending").attr("refX",ut.line_height).attr("refY",.5*ut.line_height).attr("markerWidth",ut.line_height).attr("markerHeight",ut.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
|
L`.concat(ut.line_height,",").concat(ut.line_height/2,`
|
|
M`).concat(ut.line_height,",").concat(ut.line_height/2,`
|
|
L0,`).concat(ut.line_height)).attr("stroke-width",1)})(_,Yi);var m=new(Fi()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Yi.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),x=ah.getRequirements(),C=ah.getElements(),A=ah.getRelationships();(function(vt,ut,wt){Object.keys(vt).forEach(function(xt){var Dt=vt[xt];xt=v(xt),k.info("Added new requirement: ",xt);var At=wt.append("g").attr("id",xt),Zt=l(At,"req-"+xt),se=h(At,xt+"_title",["<<".concat(Dt.type,">>"),"".concat(Dt.name)]);y(At,xt+"_body",["Id: ".concat(Dt.id),"Text: ".concat(Dt.text),"Risk: ".concat(Dt.risk),"Verification: ".concat(Dt.verifyMethod)],se.y);var jt=Zt.node().getBBox();ut.setNode(xt,{width:jt.width,height:jt.height,shape:"rect",id:xt})})})(x,m,_),function(vt,ut,wt){Object.keys(vt).forEach(function(xt){var Dt=vt[xt],At=v(xt),Zt=wt.append("g").attr("id",At),se="element-"+At,jt=l(Zt,se),ne=h(Zt,se+"_title",["<<Element>>","".concat(xt)]);y(Zt,se+"_body",["Type: ".concat(Dt.type||"Not Specified"),"Doc Ref: ".concat(Dt.docRef||"None")],ne.y);var ie=jt.node().getBBox();ut.setNode(At,{width:ie.width,height:ie.height,shape:"rect",id:At})})}(C,m,_),function(vt,ut){vt.forEach(function(wt){var xt=v(wt.src),Dt=v(wt.dst);ut.setEdge(xt,Dt,{relationship:wt})})}(A,m),Gu().layout(m),function(vt,ut){ut.nodes().forEach(function(wt){wt!==void 0&&ut.node(wt)!==void 0&&(vt.select("#"+wt),vt.select("#"+wt).attr("transform","translate("+(ut.node(wt).x-ut.node(wt).width/2)+","+(ut.node(wt).y-ut.node(wt).height/2)+" )"))})}(_,m),A.forEach(function(vt){(function(ut,wt,xt,Dt){var At=xt.edge(v(wt.src),v(wt.dst)),Zt=$o().x(function(jt){return jt.x}).y(function(jt){return jt.y}),se=ut.insert("path","#"+Dt).attr("class","er relationshipLine").attr("d",Zt(At.points)).attr("fill","none");wt.type==ah.Relationships.CONTAINS?se.attr("marker-start","url("+Qn.getUrl(Yi.arrowMarkerAbsolute)+"#"+wt.type+"_line_ending)"):(se.attr("stroke-dasharray","10,7"),se.attr("marker-end","url("+Qn.getUrl(Yi.arrowMarkerAbsolute)+"#"+Xb.ARROW+"_line_ending)")),function(jt,ne,ie,Ot){var It=ne.node().getTotalLength(),Ct=ne.node().getPointAtLength(.5*It),mt="rel"+o;o++;var Ut=jt.append("text").attr("class","req relationshipLabel").attr("id",mt).attr("x",Ct.x).attr("y",Ct.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(Ot).node().getBBox();jt.insert("rect","#"+mt).attr("class","req reqLabelBox").attr("x",Ct.x-Ut.width/2).attr("y",Ct.y-Ut.height/2).attr("width",Ut.width).attr("height",Ut.height).attr("fill","white").attr("fill-opacity","85%")}(ut,se,0,"<<".concat(wt.type,">>"))})(_,vt,m,a)});var B=Yi.rect_padding,Y=_.node().getBBox(),j=Y.width+2*B,X=Y.height+2*B;yo(_,X,j,Yi.useMaxWidth),_.attr("viewBox","".concat(Y.x-B," ").concat(Y.y-B," ").concat(j," ").concat(X)),eo(Qc.parser.yy,_,a)};var S=f(6876),D=f.n(S),R=void 0,z={},q=[],U=!1,Z=!1,Q=function(i,a,s,u){var d=z[i];d&&a===d.name&&s==null||(s!=null&&s.text!=null||(s={text:a,wrap:null,type:u}),u!=null&&s.text!=null||(s={text:a,wrap:null,type:u}),z[i]={name:a,description:s.text,wrap:s.wrap===void 0&>()||!!s.wrap,prevActor:R,links:{},properties:{},actorCnt:null,rectData:null,type:u||"participant"},R&&z[R]&&(z[R].nextActor=i),R=i)},ct=function(i){var a,s=0;for(a=0;a<q.length;a++)q[a].type===pt.ACTIVE_START&&q[a].from.actor===i&&s++,q[a].type===pt.ACTIVE_END&&q[a].from.actor===i&&s--;return s},ot=function(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{text:void 0,wrap:void 0},u=arguments.length>3?arguments[3]:void 0;if(u===pt.ACTIVE_END){var d=ct(i.actor);if(d<1){var _=new Error("Trying to inactivate an inactive participant ("+i.actor+")");throw _.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},_}}return q.push({from:i,to:a,message:s.text,wrap:s.wrap===void 0&>()||!!s.wrap,type:u}),!0},it=function(i){return z[i]},gt=function(){return Z},pt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31},Mt=function(i,a,s){s.text,s.wrap===void 0&>()||s.wrap;var u=[].concat(i,i);q.push({from:u[0],to:u[1],message:s.text,wrap:s.wrap===void 0&>()||!!s.wrap,type:pt.NOTE,placement:a})},Wt=function(i,a){var s=it(i);try{var u=Ts(a.text,Jt());u=(u=u.replace(/&/g,"&")).replace(/=/g,"="),ee(s,JSON.parse(u))}catch(d){k.error("error while parsing actor link text",d)}};function ee(i,a){if(i.links==null)i.links=a;else for(var s in a)i.links[s]=a[s]}var le=function(i,a){var s=it(i);try{var u=Ts(a.text,Jt());Be(s,JSON.parse(u))}catch(d){k.error("error while parsing actor properties text",d)}};function Be(i,a){if(i.properties==null)i.properties=a;else for(var s in a)i.properties[s]=a[s]}var Xt=function(i,a){var s=it(i),u=document.getElementById(a.text);try{var d=u.innerHTML,_=JSON.parse(d);_.properties&&Be(s,_.properties),_.links&&ee(s,_.links)}catch(m){k.error("error while parsing actor details text",m)}};const _e={addActor:Q,addMessage:function(i,a,s,u){q.push({from:i,to:a,message:s.text,wrap:s.wrap===void 0&>()||!!s.wrap,answer:u})},addSignal:ot,addLinks:Wt,addDetails:Xt,addProperties:le,autoWrap:gt,setWrap:function(i){Z=i},enableSequenceNumbers:function(){U=!0},disableSequenceNumbers:function(){U=!1},showSequenceNumbers:function(){return U},getMessages:function(){return q},getActors:function(){return z},getActor:it,getActorKeys:function(){return Object.keys(z)},getActorProperty:function(i,a){if(i!==void 0&&i.properties!==void 0)return i.properties[a]},getAccTitle:ia,getDiagramTitle:Hu,setDiagramTitle:N1,parseDirective:function(i,a,s){Oi.parseDirective(this,i,a,s)},getConfig:function(){return Jt().sequence},clear:function(){z={},q=[],U=!1,Ms()},parseMessage:function(i){var a=i.trim(),s={text:a.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:a.match(/^[:]?wrap:/)!==null||a.match(/^[:]?nowrap:/)===null&&void 0};return k.debug("parseMessage:",s),s},LINETYPE:pt,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:Mt,setAccTitle:Wa,apply:function i(a){if(a instanceof Array)a.forEach(function(s){i(s)});else switch(a.type){case"sequenceIndex":q.push({from:void 0,to:void 0,message:{start:a.sequenceIndex,step:a.sequenceIndexStep,visible:a.sequenceVisible},wrap:!1,type:a.signalType});break;case"addParticipant":Q(a.actor,a.actor,a.description,"participant");break;case"addActor":Q(a.actor,a.actor,a.description,"actor");break;case"activeStart":case"activeEnd":ot(a.actor,void 0,void 0,a.signalType);break;case"addNote":Mt(a.actor,a.placement,a.text);break;case"addLinks":Wt(a.actor,a.text);break;case"addALink":(function(s,u){var d=it(s);try{var _={},m=Ts(u.text,Jt()),x=m.indexOf("@"),C=(m=(m=m.replace(/&/g,"&")).replace(/=/g,"=")).slice(0,x-1).trim(),A=m.slice(x+1).trim();_[C]=A,ee(d,_)}catch(B){k.error("error while parsing actor link text",B)}})(a.actor,a.text);break;case"addProperties":le(a.actor,a.text);break;case"addDetails":Xt(a.actor,a.text);break;case"addMessage":ot(a.from,a.to,a.msg,a.signalType);break;case"loopStart":ot(void 0,void 0,a.loopText,a.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":ot(void 0,void 0,void 0,a.signalType);break;case"rectStart":ot(void 0,void 0,a.color,a.signalType);break;case"optStart":ot(void 0,void 0,a.optText,a.signalType);break;case"altStart":case"else":ot(void 0,void 0,a.altText,a.signalType);break;case"setAccTitle":Wa(a.text);break;case"parStart":case"and":ot(void 0,void 0,a.parText,a.signalType);break;case"criticalStart":ot(void 0,void 0,a.criticalText,a.signalType);break;case"option":ot(void 0,void 0,a.optionText,a.signalType);break;case"breakStart":ot(void 0,void 0,a.breakText,a.signalType)}},setAccDescription:To,getAccDescription:So};var Et=[],Pt=function(i,a){var s=i.append("rect");return s.attr("x",a.x),s.attr("y",a.y),s.attr("fill",a.fill),s.attr("stroke",a.stroke),s.attr("width",a.width),s.attr("height",a.height),s.attr("rx",a.rx),s.attr("ry",a.ry),a.class!==void 0&&s.attr("class",a.class),s},ue=function(i,a){var s;s=function(){var u=document.querySelectorAll(i);u.length!==0&&(u[0].addEventListener("mouseover",function(){tn("actor"+a+"_popup")}),u[0].addEventListener("mouseout",function(){fn("actor"+a+"_popup")}))},Et.push(s)},ce=function(i,a,s,u){var d=i.append("image");d.attr("x",a),d.attr("y",s);var _=(0,ic.N)(u);d.attr("xlink:href",_)},de=function(i,a,s,u){var d=i.append("use");d.attr("x",a),d.attr("y",s);var _=(0,ic.N)(u);d.attr("xlink:href","#"+_)},tn=function(i){var a=document.getElementById(i);a!=null&&(a.style.display="block")},fn=function(i){var a=document.getElementById(i);a!=null&&(a.style.display="none")},Bn=function(i,a){var s=0,u=0,d=a.text.split(Qn.lineBreakRegex),_=[],m=0,x=function(){return a.y};if(a.valign!==void 0&&a.textMargin!==void 0&&a.textMargin>0)switch(a.valign){case"top":case"start":x=function(){return Math.round(a.y+a.textMargin)};break;case"middle":case"center":x=function(){return Math.round(a.y+(s+u+a.textMargin)/2)};break;case"bottom":case"end":x=function(){return Math.round(a.y+(s+u+2*a.textMargin)-a.textMargin)}}if(a.anchor!==void 0&&a.textMargin!==void 0&&a.width!==void 0)switch(a.anchor){case"left":case"start":a.x=Math.round(a.x+a.textMargin),a.anchor="start",a.dominantBaseline="text-after-edge",a.alignmentBaseline="middle";break;case"middle":case"center":a.x=Math.round(a.x+a.width/2),a.anchor="middle",a.dominantBaseline="middle",a.alignmentBaseline="middle";break;case"right":case"end":a.x=Math.round(a.x+a.width-a.textMargin),a.anchor="end",a.dominantBaseline="text-before-edge",a.alignmentBaseline="middle"}for(var C=0;C<d.length;C++){var A=d[C];a.textMargin!==void 0&&a.textMargin===0&&a.fontSize!==void 0&&(m=C*a.fontSize);var B=i.append("text");if(B.attr("x",a.x),B.attr("y",x()),a.anchor!==void 0&&B.attr("text-anchor",a.anchor).attr("dominant-baseline",a.dominantBaseline).attr("alignment-baseline",a.alignmentBaseline),a.fontFamily!==void 0&&B.style("font-family",a.fontFamily),a.fontSize!==void 0&&B.style("font-size",a.fontSize),a.fontWeight!==void 0&&B.style("font-weight",a.fontWeight),a.fill!==void 0&&B.attr("fill",a.fill),a.class!==void 0&&B.attr("class",a.class),a.dy!==void 0?B.attr("dy",a.dy):m!==0&&B.attr("dy",m),a.tspan){var Y=B.append("tspan");Y.attr("x",a.x),a.fill!==void 0&&Y.attr("fill",a.fill),Y.text(A)}else B.text(A);a.valign!==void 0&&a.textMargin!==void 0&&a.textMargin>0&&(u+=(B._groups||B)[0][0].getBBox().height,s=u),_.push(B)}return _},dr=function(i,a){var s=i.append("polygon");return s.attr("points",function(u,d,_,m,x){return u+","+d+" "+(u+_)+","+d+" "+(u+_)+","+(d+m-7)+" "+(u+_-8.4)+","+(d+m)+" "+u+","+(d+m)}(a.x,a.y,a.width,a.height)),s.attr("class","labelBox"),a.y=a.y+a.height/2,Bn(i,a),s},Kn=-1,bn=function(i,a){i.selectAll&&i.selectAll(".actor-line").attr("class","200").attr("y2",a-55)},Ar=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},Wn=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},Hn=function(){function i(d,_,m,x,C,A,B){u(_.append("text").attr("x",m+C/2).attr("y",x+A/2+5).style("text-anchor","middle").text(d),B)}function a(d,_,m,x,C,A,B,Y){for(var j=Y.actorFontSize,X=Y.actorFontFamily,vt=Y.actorFontWeight,ut=d.split(Qn.lineBreakRegex),wt=0;wt<ut.length;wt++){var xt=wt*j-j*(ut.length-1)/2,Dt=_.append("text").attr("x",m+C/2).attr("y",x).style("text-anchor","middle").style("font-size",j).style("font-weight",vt).style("font-family",X);Dt.append("tspan").attr("x",m+C/2).attr("dy",xt).text(ut[wt]),Dt.attr("y",x+A/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),u(Dt,B)}}function s(d,_,m,x,C,A,B,Y){var j=_.append("switch"),X=j.append("foreignObject").attr("x",m).attr("y",x).attr("width",C).attr("height",A).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");X.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(d),a(d,j,m,x,C,A,B,Y),u(X,B)}function u(d,_){for(var m in _)_.hasOwnProperty(m)&&d.attr(m,_[m])}return function(d){return d.textPlacement==="fo"?s:d.textPlacement==="old"?i:a}}(),wr=function(){function i(d,_,m,x,C,A,B){u(_.append("text").attr("x",m).attr("y",x).style("text-anchor","start").text(d),B)}function a(d,_,m,x,C,A,B,Y){for(var j=Y.actorFontSize,X=Y.actorFontFamily,vt=Y.actorFontWeight,ut=d.split(Qn.lineBreakRegex),wt=0;wt<ut.length;wt++){var xt=wt*j-j*(ut.length-1)/2,Dt=_.append("text").attr("x",m).attr("y",x).style("text-anchor","start").style("font-size",j).style("font-weight",vt).style("font-family",X);Dt.append("tspan").attr("x",m).attr("dy",xt).text(ut[wt]),Dt.attr("y",x+A/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),u(Dt,B)}}function s(d,_,m,x,C,A,B,Y){var j=_.append("switch"),X=j.append("foreignObject").attr("x",m).attr("y",x).attr("width",C).attr("height",A).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");X.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(d),a(d,j,m,x,0,A,B,Y),u(X,B)}function u(d,_){for(var m in _)_.hasOwnProperty(m)&&d.attr(m,_[m])}return function(d){return d.textPlacement==="fo"?s:d.textPlacement==="old"?i:a}}();const wa=Pt,$i=function(i,a,s){switch(a.type){case"actor":return function(u,d,_){var m=d.x+d.width/2;d.y===0&&(Kn++,u.append("line").attr("id","actor"+Kn).attr("x1",m).attr("y1",80).attr("x2",m).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var x=u.append("g");x.attr("class","actor-man");var C={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};C.x=d.x,C.y=d.y,C.fill="#eaeaea",C.width=d.width,C.height=d.height,C.class="actor",C.rx=3,C.ry=3,x.append("line").attr("id","actor-man-torso"+Kn).attr("x1",m).attr("y1",d.y+25).attr("x2",m).attr("y2",d.y+45),x.append("line").attr("id","actor-man-arms"+Kn).attr("x1",m-18).attr("y1",d.y+33).attr("x2",m+18).attr("y2",d.y+33),x.append("line").attr("x1",m-18).attr("y1",d.y+60).attr("x2",m).attr("y2",d.y+45),x.append("line").attr("x1",m).attr("y1",d.y+45).attr("x2",m+16).attr("y2",d.y+60);var A=x.append("circle");A.attr("cx",d.x+d.width/2),A.attr("cy",d.y+10),A.attr("r",15),A.attr("width",d.width),A.attr("height",d.height);var B=x.node().getBBox();return d.height=B.height,Hn(_)(d.description,x,C.x,C.y+35,C.width,C.height,{class:"actor"},_),d.height}(i,a,s);case"participant":return function(u,d,_){var m=d.x+d.width/2,x=u.append("g"),C=x;d.y===0&&(Kn++,C.append("line").attr("id","actor"+Kn).attr("x1",m).attr("y1",5).attr("x2",m).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),C=x.append("g"),d.actorCnt=Kn,d.links!=null&&(C.attr("id","root-"+Kn),ue("#root-"+Kn,Kn)));var A={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},B="actor";d.properties!=null&&d.properties.class?B=d.properties.class:A.fill="#eaeaea",A.x=d.x,A.y=d.y,A.width=d.width,A.height=d.height,A.class=B,A.rx=3,A.ry=3;var Y=Pt(C,A);if(d.rectData=A,d.properties!=null&&d.properties.icon){var j=d.properties.icon.trim();j.charAt(0)==="@"?de(C,A.x+A.width-20,A.y+10,j.substr(1)):ce(C,A.x+A.width-20,A.y+10,j)}Hn(_)(d.description,C,A.x,A.y,A.width,A.height,{class:"actor"},_);var X=d.height;if(Y.node){var vt=Y.node().getBBox();d.height=vt.height,X=vt.height}return X}(i,a,s)}},vc=function(i,a,s,u,d){if(a.links===void 0||a.links===null||Object.keys(a.links).length===0)return{height:0,width:0};var _=a.links,m=a.actorCnt,x=a.rectData,C="none";d&&(C="block !important");var A=i.append("g");A.attr("id","actor"+m+"_popup"),A.attr("class","actorPopupMenu"),A.attr("display",C),ue("#actor"+m+"_popup",m);var B="";x.class!==void 0&&(B=" "+x.class);var Y=x.width>s?x.width:s,j=A.append("rect");if(j.attr("class","actorPopupMenuPanel"+B),j.attr("x",x.x),j.attr("y",x.height),j.attr("fill",x.fill),j.attr("stroke",x.stroke),j.attr("width",Y),j.attr("height",x.height),j.attr("rx",x.rx),j.attr("ry",x.ry),_!=null){var X=20;for(var vt in _){var ut=A.append("a"),wt=(0,ic.N)(_[vt]);ut.attr("xlink:href",wt),ut.attr("target","_blank"),wr(u)(vt,ut,x.x+10,x.height+X,Y,20,{class:"actor"},u),X+=30}}return j.attr("height",X),{height:x.height+X,width:Y}},el=function(i){return i.append("g")},X1=function(i,a,s,u,d){var _={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},m=a.anchored;_.x=a.startx,_.y=a.starty,_.class="activation"+d%3,_.width=a.stopx-a.startx,_.height=s-a.starty,Pt(m,_)},Rs=function(i,a,s,u){var d=u.boxMargin,_=u.boxTextMargin,m=u.labelBoxHeight,x=u.labelBoxWidth,C=u.messageFontFamily,A=u.messageFontSize,B=u.messageFontWeight,Y=i.append("g"),j=function(ut,wt,xt,Dt){return Y.append("line").attr("x1",ut).attr("y1",wt).attr("x2",xt).attr("y2",Dt).attr("class","loopLine")};j(a.startx,a.starty,a.stopx,a.starty),j(a.stopx,a.starty,a.stopx,a.stopy),j(a.startx,a.stopy,a.stopx,a.stopy),j(a.startx,a.starty,a.startx,a.stopy),a.sections!==void 0&&a.sections.forEach(function(ut){j(a.startx,ut.y,a.stopx,ut.y).style("stroke-dasharray","3, 3")});var X={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0};X.text=s,X.x=a.startx,X.y=a.starty,X.fontFamily=C,X.fontSize=A,X.fontWeight=B,X.anchor="middle",X.valign="middle",X.tspan=!1,X.width=x||50,X.height=m||20,X.textMargin=_,X.class="labelText",dr(Y,X),(X={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}).text=a.title,X.x=a.startx+x/2+(a.stopx-a.startx)/2,X.y=a.starty+d+_,X.anchor="middle",X.valign="middle",X.textMargin=_,X.class="loopText",X.fontFamily=C,X.fontSize=A,X.fontWeight=B,X.wrap=!0;var vt=Bn(Y,X);return a.sectionTitles!==void 0&&a.sectionTitles.forEach(function(ut,wt){if(ut.message){X.text=ut.message,X.x=a.startx+(a.stopx-a.startx)/2,X.y=a.sections[wt].y+d+_,X.class="loopText",X.anchor="middle",X.valign="middle",X.tspan=!1,X.fontFamily=C,X.fontSize=A,X.fontWeight=B,X.wrap=a.wrap,vt=Bn(Y,X);var xt=Math.round(vt.map(function(Dt){return(Dt._groups||Dt)[0][0].getBBox().height}).reduce(function(Dt,At){return Dt+At}));a.sections[wt].height+=xt-(d+_)}}),a.height=Math.round(a.stopy-a.starty),Y},Nv=function(i,a){Pt(i,{x:a.startx,y:a.starty,width:a.stopx-a.startx,height:a.stopy-a.starty,fill:a.fill,class:"rect"}).lower()},Lv=function(i){i.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},oh=function(i){i.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},Dv=function(i){i.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},Kb=function(i){var a=i.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},Jb=function(i){i.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},Lo=function(i){i.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},q6=function(i){i.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},h6=Ar,W6=Wn;ic.N,S.parser.yy=_e;var ge={},sn={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(function(i){return i.height||0}))+(this.loops.length===0?0:this.loops.map(function(i){return i.height||0}).reduce(function(i,a){return i+a}))+(this.messages.length===0?0:this.messages.map(function(i){return i.height||0}).reduce(function(i,a){return i+a}))+(this.notes.length===0?0:this.notes.map(function(i){return i.height||0}).reduce(function(i,a){return i+a}))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(i){this.actors.push(i)},addLoop:function(i){this.loops.push(i)},addMessage:function(i){this.messages.push(i)},addNote:function(i){this.notes.push(i)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,d6(S.parser.yy.getConfig())},updateVal:function(i,a,s,u){i[a]===void 0?i[a]=s:i[a]=u(s,i[a])},updateBounds:function(i,a,s,u){var d=this,_=0;function m(x){return function(C){_++;var A=d.sequenceItems.length-_+1;d.updateVal(C,"starty",a-A*ge.boxMargin,Math.min),d.updateVal(C,"stopy",u+A*ge.boxMargin,Math.max),d.updateVal(sn.data,"startx",i-A*ge.boxMargin,Math.min),d.updateVal(sn.data,"stopx",s+A*ge.boxMargin,Math.max),x!=="activation"&&(d.updateVal(C,"startx",i-A*ge.boxMargin,Math.min),d.updateVal(C,"stopx",s+A*ge.boxMargin,Math.max),d.updateVal(sn.data,"starty",a-A*ge.boxMargin,Math.min),d.updateVal(sn.data,"stopy",u+A*ge.boxMargin,Math.max))}}this.sequenceItems.forEach(m()),this.activations.forEach(m("activation"))},insert:function(i,a,s,u){var d=Math.min(i,s),_=Math.max(i,s),m=Math.min(a,u),x=Math.max(a,u);this.updateVal(sn.data,"startx",d,Math.min),this.updateVal(sn.data,"starty",m,Math.min),this.updateVal(sn.data,"stopx",_,Math.max),this.updateVal(sn.data,"stopy",x,Math.max),this.updateBounds(d,m,_,x)},newActivation:function(i,a,s){var u=s[i.from.actor],d=Iv(i.from.actor).length||0,_=u.x+u.width/2+(d-1)*ge.activationWidth/2;this.activations.push({startx:_,starty:this.verticalPos+2,stopx:_+ge.activationWidth,stopy:void 0,actor:i.from.actor,anchored:el(a)})},endActivation:function(i){var a=this.activations.map(function(s){return s.actor}).lastIndexOf(i.from.actor);return this.activations.splice(a,1)[0]},createLoop:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},a=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:i.message,wrap:i.wrap,width:i.width,height:0,fill:a}},newLoop:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},a=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(i,a))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(i){var a=this.sequenceItems.pop();a.sections=a.sections||[],a.sectionTitles=a.sectionTitles||[],a.sections.push({y:sn.getVerticalPos(),height:0}),a.sectionTitles.push(i),this.sequenceItems.push(a)},bumpVerticalPos:function(i){this.verticalPos=this.verticalPos+i,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},zd=function(i){return{fontFamily:i.messageFontFamily,fontSize:i.messageFontSize,fontWeight:i.messageFontWeight}},Yd=function(i){return{fontFamily:i.noteFontFamily,fontSize:i.noteFontSize,fontWeight:i.noteFontWeight}},Qb=function(i){return{fontFamily:i.actorFontFamily,fontSize:i.actorFontSize,fontWeight:i.actorFontWeight}},t6=function(i,a,s,u,d,_){if(d.hideUnusedParticipants===!0){var m=new Set;_.forEach(function(X){m.add(X.from),m.add(X.to)}),s=s.filter(function(X){return m.has(X)})}for(var x=0,C=0,A=0,B=0;B<s.length;B++){var Y=a[s[B]];Y.width=Y.width||ge.width,Y.height=Math.max(Y.height||ge.height,ge.height),Y.margin=Y.margin||ge.actorMargin,Y.x=x+C,Y.y=u;var j=$i(i,Y,ge);A=Math.max(A,j),sn.insert(Y.x,u,Y.x+Y.width,Y.height),x+=Y.width,C+=Y.margin,sn.models.addActor(Y)}sn.bumpVerticalPos(A)},f6=function(i,a,s,u){for(var d=0,_=0,m=0;m<s.length;m++){var x=a[s[m]],C=G6(x),A=vc(i,x,C,ge,ge.forceMenus);A.height>d&&(d=A.height),A.width+x.x>_&&(_=A.width+x.x)}return{maxHeight:d,maxWidth:_}},d6=function(i){Zi(ge,i),i.fontFamily&&(ge.actorFontFamily=ge.noteFontFamily=ge.messageFontFamily=i.fontFamily),i.fontSize&&(ge.actorFontSize=ge.noteFontSize=ge.messageFontSize=i.fontSize),i.fontWeight&&(ge.actorFontWeight=ge.noteFontWeight=ge.messageFontWeight=i.fontWeight)},Iv=function(i){return sn.activations.filter(function(a){return a.actor===i})},p6=function(i,a){var s=a[i],u=Iv(i);return[u.reduce(function(d,_){return Math.min(d,_.startx)},s.x+s.width/2),u.reduce(function(d,_){return Math.max(d,_.stopx)},s.x+s.width/2)]};function nl(i,a,s,u,d){sn.bumpVerticalPos(s);var _=u;if(a.id&&a.message&&i[a.id]){var m=i[a.id].width,x=zd(ge);a.message=cr.wrapLabel("[".concat(a.message,"]"),m-2*ge.wrapPadding,x),a.width=m,a.wrap=!0;var C=cr.calculateTextDimensions(a.message,x),A=Math.max(C.height,ge.labelBoxHeight);_=u+A,k.debug("".concat(A," - ").concat(a.message))}d(a),sn.bumpVerticalPos(_)}var G6=function(i){var a=0,s=Qb(ge);for(var u in i.links){var d=cr.calculateTextDimensions(u,s).width+2*ge.wrapPadding+2*ge.boxMargin;a<d&&(a=d)}return a};const vy={bounds:sn,drawActors:t6,drawActorsPopup:f6,setConf:d6,draw:function(i,a){ge=Jt().sequence;var s,u=Jt().securityLevel;u==="sandbox"&&(s=He("#i"+a));var d=He(u==="sandbox"?s.nodes()[0].contentDocument.body:"body");u==="sandbox"&&s.nodes()[0].contentDocument,S.parser.yy.clear(),S.parser.yy.setWrap(ge.wrap),S.parser.parse(i+`
|
|
`),sn.init(),k.debug("C:".concat(JSON.stringify(ge,null,2)));var _=u==="sandbox"?d.select('[id="'.concat(a,'"]')):He('[id="'.concat(a,'"]')),m=S.parser.yy.getActors(),x=S.parser.yy.getActorKeys(),C=S.parser.yy.getMessages(),A=S.parser.yy.getDiagramTitle(),B=function(jt,ne){var ie={};return ne.forEach(function(Ot){if(jt[Ot.to]&&jt[Ot.from]){var It=jt[Ot.to];if(Ot.placement===S.parser.yy.PLACEMENT.LEFTOF&&!It.prevActor||Ot.placement===S.parser.yy.PLACEMENT.RIGHTOF&&!It.nextActor)return;var Ct=Ot.placement!==void 0,mt=!Ct,Ut=Ct?Yd(ge):zd(ge),Tt=Ot.wrap?cr.wrapLabel(Ot.message,ge.width-2*ge.wrapPadding,Ut):Ot.message,Te=cr.calculateTextDimensions(Tt,Ut).width+2*ge.wrapPadding;mt&&Ot.from===It.nextActor?ie[Ot.to]=Math.max(ie[Ot.to]||0,Te):mt&&Ot.from===It.prevActor?ie[Ot.from]=Math.max(ie[Ot.from]||0,Te):mt&&Ot.from===Ot.to?(ie[Ot.from]=Math.max(ie[Ot.from]||0,Te/2),ie[Ot.to]=Math.max(ie[Ot.to]||0,Te/2)):Ot.placement===S.parser.yy.PLACEMENT.RIGHTOF?ie[Ot.from]=Math.max(ie[Ot.from]||0,Te):Ot.placement===S.parser.yy.PLACEMENT.LEFTOF?ie[It.prevActor]=Math.max(ie[It.prevActor]||0,Te):Ot.placement===S.parser.yy.PLACEMENT.OVER&&(It.prevActor&&(ie[It.prevActor]=Math.max(ie[It.prevActor]||0,Te/2)),It.nextActor&&(ie[Ot.from]=Math.max(ie[Ot.from]||0,Te/2)))}}),k.debug("maxMessageWidthPerActor:",ie),ie}(m,C);ge.height=function(jt,ne){var ie=0;for(var Ot in Object.keys(jt).forEach(function(Ut){var Tt=jt[Ut];Tt.wrap&&(Tt.description=cr.wrapLabel(Tt.description,ge.width-2*ge.wrapPadding,Qb(ge)));var Te=cr.calculateTextDimensions(Tt.description,Qb(ge));Tt.width=Tt.wrap?ge.width:Math.max(ge.width,Te.width+2*ge.wrapPadding),Tt.height=Tt.wrap?Math.max(Te.height,ge.height):ge.height,ie=Math.max(ie,Tt.height)}),ne){var It=jt[Ot];if(It){var Ct=jt[It.nextActor];if(Ct){var mt=ne[Ot]+ge.actorMargin-It.width/2-Ct.width/2;It.margin=Math.max(mt,ge.actorMargin)}}}return Math.max(ie,ge.height)}(m,B),Lo(_),Jb(_),q6(_),t6(_,m,x,0,ge,C);var Y=function(jt,ne){var ie,Ot,It,Ct={},mt=[];return jt.forEach(function(Ut){switch(Ut.id=cr.random({length:10}),Ut.type){case S.parser.yy.LINETYPE.LOOP_START:case S.parser.yy.LINETYPE.ALT_START:case S.parser.yy.LINETYPE.OPT_START:case S.parser.yy.LINETYPE.PAR_START:case S.parser.yy.LINETYPE.CRITICAL_START:case S.parser.yy.LINETYPE.BREAK_START:mt.push({id:Ut.id,msg:Ut.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case S.parser.yy.LINETYPE.ALT_ELSE:case S.parser.yy.LINETYPE.PAR_AND:case S.parser.yy.LINETYPE.CRITICAL_OPTION:Ut.message&&(ie=mt.pop(),Ct[ie.id]=ie,Ct[Ut.id]=ie,mt.push(ie));break;case S.parser.yy.LINETYPE.LOOP_END:case S.parser.yy.LINETYPE.ALT_END:case S.parser.yy.LINETYPE.OPT_END:case S.parser.yy.LINETYPE.PAR_END:case S.parser.yy.LINETYPE.CRITICAL_END:case S.parser.yy.LINETYPE.BREAK_END:ie=mt.pop(),Ct[ie.id]=ie;break;case S.parser.yy.LINETYPE.ACTIVE_START:var Tt=ne[Ut.from?Ut.from.actor:Ut.to.actor],Te=Iv(Ut.from?Ut.from.actor:Ut.to.actor).length,Ce=Tt.x+Tt.width/2+(Te-1)*ge.activationWidth/2,Qt={startx:Ce,stopx:Ce+ge.activationWidth,actor:Ut.from.actor,enabled:!0};sn.activations.push(Qt);break;case S.parser.yy.LINETYPE.ACTIVE_END:var ke=sn.activations.map(function(pe){return pe.actor}).lastIndexOf(Ut.from.actor);delete sn.activations.splice(ke,1)[0]}Ut.placement!==void 0?(Ot=function(pe,Ee){var ze=Ee[pe.from].x,je=Ee[pe.to].x,yn=pe.wrap&&pe.message,cn=cr.calculateTextDimensions(yn?cr.wrapLabel(pe.message,ge.width,Yd(ge)):pe.message,Yd(ge)),Ln={width:yn?ge.width:Math.max(ge.width,cn.width+2*ge.noteMargin),height:0,startx:Ee[pe.from].x,stopx:0,starty:0,stopy:0,message:pe.message};return pe.placement===S.parser.yy.PLACEMENT.RIGHTOF?(Ln.width=yn?Math.max(ge.width,cn.width):Math.max(Ee[pe.from].width/2+Ee[pe.to].width/2,cn.width+2*ge.noteMargin),Ln.startx=ze+(Ee[pe.from].width+ge.actorMargin)/2):pe.placement===S.parser.yy.PLACEMENT.LEFTOF?(Ln.width=Math.max(yn?ge.width:Ee[pe.from].width/2+Ee[pe.to].width/2,cn.width+2*ge.noteMargin),Ln.startx=ze-Ln.width+(Ee[pe.from].width-ge.actorMargin)/2):pe.to===pe.from?(cn=cr.calculateTextDimensions(yn?cr.wrapLabel(pe.message,Math.max(ge.width,Ee[pe.from].width),Yd(ge)):pe.message,Yd(ge)),Ln.width=yn?Math.max(ge.width,Ee[pe.from].width):Math.max(Ee[pe.from].width,ge.width,cn.width+2*ge.noteMargin),Ln.startx=ze+(Ee[pe.from].width-Ln.width)/2):(Ln.width=Math.abs(ze+Ee[pe.from].width/2-(je+Ee[pe.to].width/2))+ge.actorMargin,Ln.startx=ze<je?ze+Ee[pe.from].width/2-ge.actorMargin/2:je+Ee[pe.to].width/2-ge.actorMargin/2),yn&&(Ln.message=cr.wrapLabel(pe.message,Ln.width-2*ge.wrapPadding,Yd(ge))),k.debug("NM:[".concat(Ln.startx,",").concat(Ln.stopx,",").concat(Ln.starty,",").concat(Ln.stopy,":").concat(Ln.width,",").concat(Ln.height,"=").concat(pe.message,"]")),Ln}(Ut,ne),Ut.noteModel=Ot,mt.forEach(function(pe){(ie=pe).from=Math.min(ie.from,Ot.startx),ie.to=Math.max(ie.to,Ot.startx+Ot.width),ie.width=Math.max(ie.width,Math.abs(ie.from-ie.to))-ge.labelBoxWidth})):(It=function(pe,Ee){var ze=!1;if([S.parser.yy.LINETYPE.SOLID_OPEN,S.parser.yy.LINETYPE.DOTTED_OPEN,S.parser.yy.LINETYPE.SOLID,S.parser.yy.LINETYPE.DOTTED,S.parser.yy.LINETYPE.SOLID_CROSS,S.parser.yy.LINETYPE.DOTTED_CROSS,S.parser.yy.LINETYPE.SOLID_POINT,S.parser.yy.LINETYPE.DOTTED_POINT].includes(pe.type)&&(ze=!0),!ze)return{};var je=p6(pe.from,Ee),yn=p6(pe.to,Ee),cn=je[0]<=yn[0]?1:0,Ln=je[0]<yn[0]?0:1,ar=je.concat(yn),Fr=Math.abs(yn[Ln]-je[cn]);pe.wrap&&pe.message&&(pe.message=cr.wrapLabel(pe.message,Math.max(Fr+2*ge.wrapPadding,ge.width),zd(ge)));var En=cr.calculateTextDimensions(pe.message,zd(ge));return{width:Math.max(pe.wrap?0:En.width+2*ge.wrapPadding,Fr+2*ge.wrapPadding,ge.width),height:0,startx:je[cn],stopx:yn[Ln],starty:0,stopy:0,message:pe.message,type:pe.type,wrap:pe.wrap,fromBounds:Math.min.apply(null,ar),toBounds:Math.max.apply(null,ar)}}(Ut,ne),Ut.msgModel=It,It.startx&&It.stopx&&mt.length>0&&mt.forEach(function(pe){if(ie=pe,It.startx===It.stopx){var Ee=ne[Ut.from],ze=ne[Ut.to];ie.from=Math.min(Ee.x-It.width/2,Ee.x-Ee.width/2,ie.from),ie.to=Math.max(ze.x+It.width/2,ze.x+Ee.width/2,ie.to),ie.width=Math.max(ie.width,Math.abs(ie.to-ie.from))-ge.labelBoxWidth}else ie.from=Math.min(It.startx,ie.from),ie.to=Math.max(It.stopx,ie.to),ie.width=Math.max(ie.width,It.width)-ge.labelBoxWidth}))}),sn.activations=[],k.debug("Loop type widths:",Ct),Ct}(C,m);Lv(_),Kb(_),oh(_),Dv(_);var j=1,X=1,vt=Array();C.forEach(function(jt){var ne,ie,Ot;switch(jt.type){case S.parser.yy.LINETYPE.NOTE:ie=jt.noteModel,function(Ct,mt){sn.bumpVerticalPos(ge.boxMargin),mt.height=ge.boxMargin,mt.starty=sn.getVerticalPos();var Ut=W6();Ut.x=mt.startx,Ut.y=mt.starty,Ut.width=mt.width||ge.width,Ut.class="note";var Tt=Ct.append("g"),Te=wa(Tt,Ut),Ce=h6();Ce.x=mt.startx,Ce.y=mt.starty,Ce.width=Ut.width,Ce.dy="1em",Ce.text=mt.message,Ce.class="noteText",Ce.fontFamily=ge.noteFontFamily,Ce.fontSize=ge.noteFontSize,Ce.fontWeight=ge.noteFontWeight,Ce.anchor=ge.noteAlign,Ce.textMargin=ge.noteMargin,Ce.valign=ge.noteAlign;var Qt=Bn(Tt,Ce),ke=Math.round(Qt.map(function(pe){return(pe._groups||pe)[0][0].getBBox().height}).reduce(function(pe,Ee){return pe+Ee}));Te.attr("height",ke+2*ge.noteMargin),mt.height+=ke+2*ge.noteMargin,sn.bumpVerticalPos(ke+2*ge.noteMargin),mt.stopy=mt.starty+ke+2*ge.noteMargin,mt.stopx=mt.startx+Ut.width,sn.insert(mt.startx,mt.starty,mt.stopx,mt.stopy),sn.models.addNote(mt)}(_,ie);break;case S.parser.yy.LINETYPE.ACTIVE_START:sn.newActivation(jt,_,m);break;case S.parser.yy.LINETYPE.ACTIVE_END:(function(Ct,mt){var Ut=sn.endActivation(Ct);Ut.starty+18>mt&&(Ut.starty=mt-6,mt+=12),X1(_,Ut,mt,ge,Iv(Ct.from.actor).length),sn.insert(Ut.startx,mt-10,Ut.stopx,mt)})(jt,sn.getVerticalPos());break;case S.parser.yy.LINETYPE.LOOP_START:nl(Y,jt,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(Ct){return sn.newLoop(Ct)});break;case S.parser.yy.LINETYPE.LOOP_END:ne=sn.endLoop(),Rs(_,ne,"loop",ge),sn.bumpVerticalPos(ne.stopy-sn.getVerticalPos()),sn.models.addLoop(ne);break;case S.parser.yy.LINETYPE.RECT_START:nl(Y,jt,ge.boxMargin,ge.boxMargin,function(Ct){return sn.newLoop(void 0,Ct.message)});break;case S.parser.yy.LINETYPE.RECT_END:ne=sn.endLoop(),Nv(_,ne),sn.models.addLoop(ne),sn.bumpVerticalPos(ne.stopy-sn.getVerticalPos());break;case S.parser.yy.LINETYPE.OPT_START:nl(Y,jt,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(Ct){return sn.newLoop(Ct)});break;case S.parser.yy.LINETYPE.OPT_END:ne=sn.endLoop(),Rs(_,ne,"opt",ge),sn.bumpVerticalPos(ne.stopy-sn.getVerticalPos()),sn.models.addLoop(ne);break;case S.parser.yy.LINETYPE.ALT_START:nl(Y,jt,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(Ct){return sn.newLoop(Ct)});break;case S.parser.yy.LINETYPE.ALT_ELSE:nl(Y,jt,ge.boxMargin+ge.boxTextMargin,ge.boxMargin,function(Ct){return sn.addSectionToLoop(Ct)});break;case S.parser.yy.LINETYPE.ALT_END:ne=sn.endLoop(),Rs(_,ne,"alt",ge),sn.bumpVerticalPos(ne.stopy-sn.getVerticalPos()),sn.models.addLoop(ne);break;case S.parser.yy.LINETYPE.PAR_START:nl(Y,jt,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(Ct){return sn.newLoop(Ct)});break;case S.parser.yy.LINETYPE.PAR_AND:nl(Y,jt,ge.boxMargin+ge.boxTextMargin,ge.boxMargin,function(Ct){return sn.addSectionToLoop(Ct)});break;case S.parser.yy.LINETYPE.PAR_END:ne=sn.endLoop(),Rs(_,ne,"par",ge),sn.bumpVerticalPos(ne.stopy-sn.getVerticalPos()),sn.models.addLoop(ne);break;case S.parser.yy.LINETYPE.AUTONUMBER:j=jt.message.start||j,X=jt.message.step||X,jt.message.visible?S.parser.yy.enableSequenceNumbers():S.parser.yy.disableSequenceNumbers();break;case S.parser.yy.LINETYPE.CRITICAL_START:nl(Y,jt,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(Ct){return sn.newLoop(Ct)});break;case S.parser.yy.LINETYPE.CRITICAL_OPTION:nl(Y,jt,ge.boxMargin+ge.boxTextMargin,ge.boxMargin,function(Ct){return sn.addSectionToLoop(Ct)});break;case S.parser.yy.LINETYPE.CRITICAL_END:ne=sn.endLoop(),Rs(_,ne,"critical",ge),sn.bumpVerticalPos(ne.stopy-sn.getVerticalPos()),sn.models.addLoop(ne);break;case S.parser.yy.LINETYPE.BREAK_START:nl(Y,jt,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(Ct){return sn.newLoop(Ct)});break;case S.parser.yy.LINETYPE.BREAK_END:ne=sn.endLoop(),Rs(_,ne,"break",ge),sn.bumpVerticalPos(ne.stopy-sn.getVerticalPos()),sn.models.addLoop(ne);break;default:try{(Ot=jt.msgModel).starty=sn.getVerticalPos(),Ot.sequenceIndex=j,Ot.sequenceVisible=S.parser.yy.showSequenceNumbers();var It=function(Ct,mt){sn.bumpVerticalPos(10);var Ut,Tt=mt.startx,Te=mt.stopx,Ce=mt.message,Qt=Qn.splitBreaks(Ce).length,ke=cr.calculateTextDimensions(Ce,zd(ge)),pe=ke.height/Qt;mt.height+=pe,sn.bumpVerticalPos(pe);var Ee=ke.height-10,ze=ke.width;if(Tt===Te){Ut=sn.getVerticalPos()+Ee,ge.rightAngles||(Ee+=ge.boxMargin,Ut=sn.getVerticalPos()+Ee),Ee+=30;var je=Math.max(ze/2,ge.width/2);sn.insert(Tt-je,sn.getVerticalPos()-10+Ee,Te+je,sn.getVerticalPos()+30+Ee)}else Ee+=ge.boxMargin,Ut=sn.getVerticalPos()+Ee,sn.insert(Tt,Ut-10,Te,Ut);return sn.bumpVerticalPos(Ee),mt.height+=Ee,mt.stopy=mt.starty+mt.height,sn.insert(mt.fromBounds,mt.starty,mt.toBounds,mt.stopy),Ut}(0,Ot);vt.push({messageModel:Ot,lineStarty:It}),sn.models.addMessage(Ot)}catch(Ct){k.error("error while drawing message",Ct)}}[S.parser.yy.LINETYPE.SOLID_OPEN,S.parser.yy.LINETYPE.DOTTED_OPEN,S.parser.yy.LINETYPE.SOLID,S.parser.yy.LINETYPE.DOTTED,S.parser.yy.LINETYPE.SOLID_CROSS,S.parser.yy.LINETYPE.DOTTED_CROSS,S.parser.yy.LINETYPE.SOLID_POINT,S.parser.yy.LINETYPE.DOTTED_POINT].includes(jt.type)&&(j+=X)}),vt.forEach(function(jt){return function(ne,ie,Ot){var It=ie.startx,Ct=ie.stopx,mt=ie.starty,Ut=ie.message,Tt=ie.type,Te=ie.sequenceIndex,Ce=ie.sequenceVisible,Qt=cr.calculateTextDimensions(Ut,zd(ge)),ke=h6();ke.x=It,ke.y=mt+10,ke.width=Ct-It,ke.class="messageText",ke.dy="1em",ke.text=Ut,ke.fontFamily=ge.messageFontFamily,ke.fontSize=ge.messageFontSize,ke.fontWeight=ge.messageFontWeight,ke.anchor=ge.messageAlign,ke.valign=ge.messageAlign,ke.textMargin=ge.wrapPadding,ke.tspan=!1,Bn(ne,ke);var pe,Ee=Qt.width;It===Ct?pe=ge.rightAngles?ne.append("path").attr("d","M ".concat(It,",").concat(Ot," H ").concat(It+Math.max(ge.width/2,Ee/2)," V ").concat(Ot+25," H ").concat(It)):ne.append("path").attr("d","M "+It+","+Ot+" C "+(It+60)+","+(Ot-10)+" "+(It+60)+","+(Ot+30)+" "+It+","+(Ot+20)):((pe=ne.append("line")).attr("x1",It),pe.attr("y1",Ot),pe.attr("x2",Ct),pe.attr("y2",Ot)),Tt===S.parser.yy.LINETYPE.DOTTED||Tt===S.parser.yy.LINETYPE.DOTTED_CROSS||Tt===S.parser.yy.LINETYPE.DOTTED_POINT||Tt===S.parser.yy.LINETYPE.DOTTED_OPEN?(pe.style("stroke-dasharray","3, 3"),pe.attr("class","messageLine1")):pe.attr("class","messageLine0");var ze="";ge.arrowMarkerAbsolute&&(ze=(ze=(ze=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),pe.attr("stroke-width",2),pe.attr("stroke","none"),pe.style("fill","none"),Tt!==S.parser.yy.LINETYPE.SOLID&&Tt!==S.parser.yy.LINETYPE.DOTTED||pe.attr("marker-end","url("+ze+"#arrowhead)"),Tt!==S.parser.yy.LINETYPE.SOLID_POINT&&Tt!==S.parser.yy.LINETYPE.DOTTED_POINT||pe.attr("marker-end","url("+ze+"#filled-head)"),Tt!==S.parser.yy.LINETYPE.SOLID_CROSS&&Tt!==S.parser.yy.LINETYPE.DOTTED_CROSS||pe.attr("marker-end","url("+ze+"#crosshead)"),(Ce||ge.showSequenceNumbers)&&(pe.attr("marker-start","url("+ze+"#sequencenumber)"),ne.append("text").attr("x",It).attr("y",Ot+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(Te))}(_,jt.messageModel,jt.lineStarty)}),ge.mirrorActors&&(sn.bumpVerticalPos(2*ge.boxMargin),t6(_,m,x,sn.getVerticalPos(),ge,C),sn.bumpVerticalPos(ge.boxMargin),bn(_,sn.getVerticalPos()));var ut=f6(_,m,x),wt=sn.getBounds().bounds;k.debug("For line height fix Querying: #"+a+" .actor-line"),Mc("#"+a+" .actor-line").attr("y2",wt.stopy);var xt=wt.stopy-wt.starty;xt<ut.maxHeight&&(xt=ut.maxHeight);var Dt=xt+2*ge.diagramMarginY;ge.mirrorActors&&(Dt=Dt-ge.boxMargin+ge.bottomMarginAdj);var At=wt.stopx-wt.startx;At<ut.maxWidth&&(At=ut.maxWidth);var Zt=At+2*ge.diagramMarginX;A&&_.append("text").text(A).attr("x",(wt.stopx-wt.startx)/2-2*ge.diagramMarginX).attr("y",-25),yo(_,Dt,Zt,ge.useMaxWidth);var se=A?40:0;_.attr("viewBox",wt.startx-ge.diagramMarginX+" -"+(ge.diagramMarginY+se)+" "+Zt+" "+(Dt+se)),eo(S.parser.yy,_,a),k.debug("models:",sn.models)}};var by=f(3584),g6=f.n(by);function e6(i){return e6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e6(i)}var Ov=function(i){return JSON.parse(JSON.stringify(i))},Rv=[],V6=function i(a,s,u){if(s.stmt==="relation")i(a,s.state1,!0),i(a,s.state2,!1);else if(s.stmt==="state"&&s.id==="[*]"&&(s.id=u?a.id+"_start":a.id+"_end",s.start=u),s.doc){var d=[],_=0,m=[];for(_=0;_<s.doc.length;_++)if(s.doc[_].type==="divider"){var x=Ov(s.doc[_]);x.doc=Ov(m),d.push(x),m=[]}else m.push(s.doc[_]);if(d.length>0&&m.length>0){var C={stmt:"state",id:M3(),type:"divider",doc:Ov(m)};d.push(Ov(C)),s.doc=d}s.doc.forEach(function(A){return i(s,A,!0)})}},Bv={root:{relations:[],states:{},documents:{}}},ro=Bv.root,n6=0,Fv=function(i,a,s,u,d){ro.states[i]===void 0?ro.states[i]={id:i,descriptions:[],type:a,doc:s,note:d}:(ro.states[i].doc||(ro.states[i].doc=s),ro.states[i].type||(ro.states[i].type=a)),u&&(k.info("Adding state ",i,u),typeof u=="string"&&_6(i,u.trim()),e6(u)==="object"&&u.forEach(function(_){return _6(i,_.trim())})),d&&(ro.states[i].note=d,ro.states[i].note.text=Qn.sanitizeText(ro.states[i].note.text,Jt()))},y6=function(i){ro=(Bv={root:{relations:[],states:{},documents:{}}}).root,ro=Bv.root,n6=0,v6=[],i||Ms()},m6=function(i,a,s){var u=i,d=a,_="default",m="default";i==="[*]"&&(u="start"+ ++n6,_="start"),a==="[*]"&&(d="end"+n6,m="end"),Fv(u,_),Fv(d,m),ro.relations.push({id1:u,id2:d,title:Qn.sanitizeText(s,Jt())})},_6=function(i,a){var s=ro.states[i],u=a;u[0]===":"&&(u=u.substr(1).trim()),s.descriptions.push(Qn.sanitizeText(u,Jt()))},Z6=0,v6=[],b6="TB";const la={parseDirective:function(i,a,s){Oi.parseDirective(this,i,a,s)},getConfig:function(){return Jt().state},addState:Fv,clear:y6,getState:function(i){return ro.states[i]},getStates:function(){return ro.states},getRelations:function(){return ro.relations},getClasses:function(){return v6},getDirection:function(){return b6},addRelation:m6,getDividerId:function(){return"divider-id-"+ ++Z6},setDirection:function(i){b6=i},cleanupLabel:function(i){return i.substring(0,1)===":"?i.substr(2).trim():i.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){k.info("Documents = ",Bv)},getRootDoc:function(){return Rv},setRootDoc:function(i){k.info("Setting root doc",i),Rv=i},getRootDocV2:function(){return V6({id:"root"},{id:"root",doc:Rv},!0),{id:"root",doc:Rv}},extract:function(i){var a;a=i.doc?i.doc:i,k.info(a),y6(!0),k.info("Extract",a),a.forEach(function(s){s.stmt==="state"&&Fv(s.id,s.type,s.doc,s.description,s.note),s.stmt==="relation"&&m6(s.state1.id,s.state2.id,s.description)})},trimColon:function(i){return i&&i[0]===":"?i.substr(1).trim():i.trim()},getAccTitle:ia,setAccTitle:Wa,getAccDescription:So,setAccDescription:To};var X6={};function x6(i,a){(a==null||a>i.length)&&(a=i.length);for(var s=0,u=new Array(a);s<a;s++)u[s]=i[s];return u}var ss,K6=function(i,a,s){var u,d=Jt().state.padding,_=2*Jt().state.padding,m=i.node().getBBox(),x=m.width,C=m.x,A=i.append("text").attr("x",0).attr("y",Jt().state.titleShift).attr("font-size",Jt().state.fontSize).attr("class","state-title").text(a.id),B=A.node().getBBox().width+_,Y=Math.max(B,x);Y===x&&(Y+=_);var j=i.node().getBBox();a.doc,u=C-d,B>x&&(u=(x-Y)/2+d),Math.abs(C-j.x)<d&&B>x&&(u=C-(B-x)/2);var X=1-Jt().state.textHeight;return i.insert("rect",":first-child").attr("x",u).attr("y",X).attr("class",s?"alt-composit":"composit").attr("width",Y).attr("height",j.height+Jt().state.textHeight+Jt().state.titleShift+1).attr("rx","0"),A.attr("x",u+d),B<=x&&A.attr("x",C+(Y-_)/2-B/2+d),i.insert("rect",":first-child").attr("x",u).attr("y",Jt().state.titleShift-Jt().state.textHeight-Jt().state.padding).attr("width",Y).attr("height",3*Jt().state.textHeight).attr("rx",Jt().state.radius),i.insert("rect",":first-child").attr("x",u).attr("y",Jt().state.titleShift-Jt().state.textHeight-Jt().state.padding).attr("width",Y).attr("height",j.height+3+2*Jt().state.textHeight).attr("rx",Jt().state.radius),i},J6=function(i,a){a.attr("class","state-note");var s=a.append("rect").attr("x",0).attr("y",Jt().state.padding),u=function(m,x,C,A){var B=0,Y=A.append("text");Y.style("text-anchor","start"),Y.attr("class","noteText");var j,X=m.replace(/\r\n/g,"<br/>"),vt=(X=X.replace(/\n/g,"<br/>")).split(Qn.lineBreakRegex),ut=1.25*Jt().state.noteMargin,wt=function(At,Zt){var se=typeof Symbol!="undefined"&&At[Symbol.iterator]||At["@@iterator"];if(!se){if(Array.isArray(At)||(se=function(Ct,mt){if(Ct){if(typeof Ct=="string")return x6(Ct,mt);var Ut=Object.prototype.toString.call(Ct).slice(8,-1);return Ut==="Object"&&Ct.constructor&&(Ut=Ct.constructor.name),Ut==="Map"||Ut==="Set"?Array.from(Ct):Ut==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ut)?x6(Ct,mt):void 0}}(At))||Zt&&At&&typeof At.length=="number"){se&&(At=se);var jt=0,ne=function(){};return{s:ne,n:function(){return jt>=At.length?{done:!0}:{done:!1,value:At[jt++]}},e:function(Ct){throw Ct},f:ne}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ie,Ot=!0,It=!1;return{s:function(){se=se.call(At)},n:function(){var Ct=se.next();return Ot=Ct.done,Ct},e:function(Ct){It=!0,ie=Ct},f:function(){try{Ot||se.return==null||se.return()}finally{if(It)throw ie}}}}(vt);try{for(wt.s();!(j=wt.n()).done;){var xt=j.value.trim();if(xt.length>0){var Dt=Y.append("tspan");Dt.text(xt),ut===0&&(ut+=Dt.node().getBBox().height),B+=ut,Dt.attr("x",0+Jt().state.noteMargin),Dt.attr("y",0+B+1.25*Jt().state.noteMargin)}}}catch(At){wt.e(At)}finally{wt.f()}return{textWidth:Y.node().getBBox().width,textHeight:B}}(i,0,0,a.append("g")),d=u.textWidth,_=u.textHeight;return s.attr("height",_+2*Jt().state.noteMargin),s.attr("width",d+2*Jt().state.noteMargin),s},w6=function(i,a){var s=a.id,u={id:s,label:a.id,width:0,height:0},d=i.append("g").attr("id",s).attr("class","stateGroup");a.type==="start"&&function(x){x.append("circle").attr("class","start-state").attr("r",Jt().state.sizeUnit).attr("cx",Jt().state.padding+Jt().state.sizeUnit).attr("cy",Jt().state.padding+Jt().state.sizeUnit)}(d),a.type==="end"&&function(x){x.append("circle").attr("class","end-state-outer").attr("r",Jt().state.sizeUnit+Jt().state.miniPadding).attr("cx",Jt().state.padding+Jt().state.sizeUnit+Jt().state.miniPadding).attr("cy",Jt().state.padding+Jt().state.sizeUnit+Jt().state.miniPadding),x.append("circle").attr("class","end-state-inner").attr("r",Jt().state.sizeUnit).attr("cx",Jt().state.padding+Jt().state.sizeUnit+2).attr("cy",Jt().state.padding+Jt().state.sizeUnit+2)}(d),a.type!=="fork"&&a.type!=="join"||function(x,C){var A=Jt().state.forkWidth,B=Jt().state.forkHeight;if(C.parentId){var Y=A;A=B,B=Y}x.append("rect").style("stroke","black").style("fill","black").attr("width",A).attr("height",B).attr("x",Jt().state.padding).attr("y",Jt().state.padding)}(d,a),a.type==="note"&&J6(a.note.text,d),a.type==="divider"&&function(x){x.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Jt().state.textHeight).attr("class","divider").attr("x2",2*Jt().state.textHeight).attr("y1",0).attr("y2",0)}(d),a.type==="default"&&a.descriptions.length===0&&function(x,C){var A=x.append("text").attr("x",2*Jt().state.padding).attr("y",Jt().state.textHeight+2*Jt().state.padding).attr("font-size",Jt().state.fontSize).attr("class","state-title").text(C.id).node().getBBox();x.insert("rect",":first-child").attr("x",Jt().state.padding).attr("y",Jt().state.padding).attr("width",A.width+2*Jt().state.padding).attr("height",A.height+2*Jt().state.padding).attr("rx",Jt().state.radius)}(d,a),a.type==="default"&&a.descriptions.length>0&&function(x,C){var A=x.append("text").attr("x",2*Jt().state.padding).attr("y",Jt().state.textHeight+1.3*Jt().state.padding).attr("font-size",Jt().state.fontSize).attr("class","state-title").text(C.descriptions[0]).node().getBBox(),B=A.height,Y=x.append("text").attr("x",Jt().state.padding).attr("y",B+.4*Jt().state.padding+Jt().state.dividerMargin+Jt().state.textHeight).attr("class","state-description"),j=!0,X=!0;C.descriptions.forEach(function(xt){j||(function(Dt,At,Zt){var se=Dt.append("tspan").attr("x",2*Jt().state.padding).text(At);Zt||se.attr("dy",Jt().state.textHeight)}(Y,xt,X),X=!1),j=!1});var vt=x.append("line").attr("x1",Jt().state.padding).attr("y1",Jt().state.padding+B+Jt().state.dividerMargin/2).attr("y2",Jt().state.padding+B+Jt().state.dividerMargin/2).attr("class","descr-divider"),ut=Y.node().getBBox(),wt=Math.max(ut.width,A.width);vt.attr("x2",wt+3*Jt().state.padding),x.insert("rect",":first-child").attr("x",Jt().state.padding).attr("y",Jt().state.padding).attr("width",wt+2*Jt().state.padding).attr("height",ut.height+B+2*Jt().state.padding).attr("rx",Jt().state.radius)}(d,a);var _,m=d.node().getBBox();return u.width=m.width+2*Jt().state.padding,u.height=m.height+2*Jt().state.padding,_=u,X6[s]=_,u},k6=0;by.parser.yy=la;var r6={},Q6=function i(a,s,u,d,_,m){var x,C=new(Fi()).Graph({compound:!0,multigraph:!0}),A=!0;for(x=0;x<a.length;x++)if(a[x].stmt==="relation"){A=!1;break}u?C.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:A?1:ss.edgeLengthFactor,nodeSep:A?1:50,isMultiGraph:!0}):C.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:A?1:ss.edgeLengthFactor,nodeSep:A?1:50,ranker:"tight-tree",isMultiGraph:!0}),C.setDefaultEdgeLabel(function(){return{}}),la.extract(a);for(var B=la.getStates(),Y=la.getRelations(),j=Object.keys(B),X=0;X<j.length;X++){var vt=B[j[X]];u&&(vt.parentId=u);var ut=void 0;if(vt.doc){var wt=s.append("g").attr("id",vt.id).attr("class","stateGroup");ut=i(vt.doc,wt,vt.id,!d,_,m);var xt=(wt=K6(wt,vt,d)).node().getBBox();ut.width=xt.width,ut.height=xt.height+ss.padding/2,r6[vt.id]={y:ss.compositTitleSize}}else ut=w6(s,vt);if(vt.note){var Dt={descriptions:[],id:vt.id+"-note",note:vt.note,type:"note"},At=w6(s,Dt);vt.note.position==="left of"?(C.setNode(ut.id+"-note",At),C.setNode(ut.id,ut)):(C.setNode(ut.id,ut),C.setNode(ut.id+"-note",At)),C.setParent(ut.id,ut.id+"-group"),C.setParent(ut.id+"-note",ut.id+"-group")}else C.setNode(ut.id,ut)}k.debug("Count=",C.nodeCount(),C);var Zt=0;Y.forEach(function(ie){var Ot;Zt++,k.debug("Setting edge",ie),C.setEdge(ie.id1,ie.id2,{relation:ie,width:(Ot=ie.title,Ot?Ot.length*ss.fontSizeFactor:1),height:ss.labelHeight*Qn.getRows(ie.title).length,labelpos:"c"},"id"+Zt)}),Gu().layout(C),k.debug("Graph after layout",C.nodes());var se=s.node();C.nodes().forEach(function(ie){ie!==void 0&&C.node(ie)!==void 0?(k.warn("Node "+ie+": "+JSON.stringify(C.node(ie))),_.select("#"+se.id+" #"+ie).attr("transform","translate("+(C.node(ie).x-C.node(ie).width/2)+","+(C.node(ie).y+(r6[ie]?r6[ie].y:0)-C.node(ie).height/2)+" )"),_.select("#"+se.id+" #"+ie).attr("data-x-shift",C.node(ie).x-C.node(ie).width/2),m.querySelectorAll("#"+se.id+" #"+ie+" .divider").forEach(function(Ot){var It=Ot.parentElement,Ct=0,mt=0;It&&(It.parentElement&&(Ct=It.parentElement.getBBox().width),mt=parseInt(It.getAttribute("data-x-shift"),10),Number.isNaN(mt)&&(mt=0)),Ot.setAttribute("x1",0-mt+8),Ot.setAttribute("x2",Ct-mt-8)})):k.debug("No Node "+ie+": "+JSON.stringify(C.node(ie)))});var jt=se.getBBox();C.edges().forEach(function(ie){ie!==void 0&&C.edge(ie)!==void 0&&(k.debug("Edge "+ie.v+" -> "+ie.w+": "+JSON.stringify(C.edge(ie))),function(Ot,It,Ct){It.points=It.points.filter(function(or){return!Number.isNaN(or.y)});var mt=It.points,Ut=$o().x(function(or){return or.x}).y(function(or){return or.y}).curve(Qr),Tt=Ot.append("path").attr("d",Ut(mt)).attr("id","edge"+k6).attr("class","transition"),Te="";if(Jt().state.arrowMarkerAbsolute&&(Te=(Te=(Te=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Tt.attr("marker-end","url("+Te+"#"+function(or){switch(or){case la.relationType.AGGREGATION:return"aggregation";case la.relationType.EXTENSION:return"extension";case la.relationType.COMPOSITION:return"composition";case la.relationType.DEPENDENCY:return"dependency"}}(la.relationType.DEPENDENCY)+"End)"),Ct.title!==void 0){for(var Ce=Ot.append("g").attr("class","stateLabel"),Qt=cr.calcLabelPosition(It.points),ke=Qt.x,pe=Qt.y,Ee=Qn.getRows(Ct.title),ze=0,je=[],yn=0,cn=0,Ln=0;Ln<=Ee.length;Ln++){var ar=Ce.append("text").attr("text-anchor","middle").text(Ee[Ln]).attr("x",ke).attr("y",pe+ze),Fr=ar.node().getBBox();if(yn=Math.max(yn,Fr.width),cn=Math.min(cn,Fr.x),k.info(Fr.x,ke,pe+ze),ze===0){var En=ar.node().getBBox();ze=En.height,k.info("Title height",ze,pe)}je.push(ar)}var Kr=ze*Ee.length;if(Ee.length>1){var ci=(Ee.length-1)*ze*.5;je.forEach(function(or,Ai){return or.attr("y",pe+Ai*ze-ci)}),Kr=ze*Ee.length}var bi=Ce.node().getBBox();Ce.insert("rect",":first-child").attr("class","box").attr("x",ke-yn/2-Jt().state.padding/2).attr("y",pe-Kr/2-Jt().state.padding/2-3.5).attr("width",yn+Jt().state.padding).attr("height",Kr+Jt().state.padding),k.info(bi)}k6++}(s,C.edge(ie),C.edge(ie).relation))}),jt=se.getBBox();var ne={id:u||"root",label:u||"root",width:0,height:0};return ne.width=jt.width+2*ss.padding,ne.height=jt.height+2*ss.padding,k.debug("Doc rendered",ne,C),ne};const tx=function(i,a){ss=Jt().state;var s,u=Jt().securityLevel;u==="sandbox"&&(s=He("#i"+a));var d=He(u==="sandbox"?s.nodes()[0].contentDocument.body:"body"),_=u==="sandbox"?s.nodes()[0].contentDocument:document;by.parser.yy.clear(),by.parser.parse(i),k.debug("Rendering diagram "+i);var m=d.select("[id='".concat(a,"']"));m.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new(Fi()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var x=la.getRootDoc();Q6(x,m,void 0,!1,d,_);var C=ss.padding,A=m.node().getBBox(),B=A.width+2*C,Y=A.height+2*C;yo(m,Y,1.75*B,ss.useMaxWidth),m.attr("viewBox","".concat(A.x-ss.padding," ").concat(A.y-ss.padding," ")+B+" "+Y),eo(by.parser.yy,m,a)};var ex={},Br={},Pv=function(i,a,s,u){if(s.id!=="root"){var d="rect";s.start===!0&&(d="start"),s.start===!1&&(d="end"),s.type!=="default"&&(d=s.type),Br[s.id]||(Br[s.id]={id:s.id,shape:d,description:Qn.sanitizeText(s.id,Jt()),classes:"statediagram-state"}),s.description&&(Array.isArray(Br[s.id].description)?(Br[s.id].shape="rectWithTitle",Br[s.id].description.push(s.description)):Br[s.id].description.length>0?(Br[s.id].shape="rectWithTitle",Br[s.id].description===s.id?Br[s.id].description=[s.description]:Br[s.id].description=[Br[s.id].description,s.description]):(Br[s.id].shape="rect",Br[s.id].description=s.description),Br[s.id].description=Qn.sanitizeTextOrArray(Br[s.id].description,Jt())),Br[s.id].description.length===1&&Br[s.id].shape==="rectWithTitle"&&(Br[s.id].shape="rect"),!Br[s.id].type&&s.doc&&(k.info("Setting cluster for ",s.id,i6(s)),Br[s.id].type="group",Br[s.id].dir=i6(s),Br[s.id].shape=s.type==="divider"?"divider":"roundedWithTitle",Br[s.id].classes=Br[s.id].classes+" "+(u?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var _={labelStyle:"",shape:Br[s.id].shape,labelText:Br[s.id].description,classes:Br[s.id].classes,style:"",id:s.id,dir:Br[s.id].dir,domId:"state-"+s.id+"-"+sh,type:Br[s.id].type,padding:15};if(s.note){var m={labelStyle:"",shape:"note",labelText:s.note.text,classes:"statediagram-note",style:"",id:s.id+"----note-"+sh,domId:"state-"+s.id+"----note-"+sh,type:Br[s.id].type,padding:15},x={labelStyle:"",shape:"noteGroup",labelText:s.note.text,classes:Br[s.id].classes,style:"",id:s.id+"----parent",domId:"state-"+s.id+"----parent-"+sh,type:"group",padding:0};sh++,i.setNode(s.id+"----parent",x),i.setNode(m.id,m),i.setNode(s.id,_),i.setParent(s.id,s.id+"----parent"),i.setParent(m.id,s.id+"----parent");var C=s.id,A=m.id;s.note.position==="left of"&&(C=m.id,A=s.id),i.setEdge(C,A,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else i.setNode(s.id,_)}a&&a.id!=="root"&&(k.trace("Setting node ",s.id," to be child of its parent ",a.id),i.setParent(s.id,a.id)),s.doc&&(k.trace("Adding nodes children "),nx(i,s,s.doc,!u))},sh=0,nx=function(i,a,s,u){k.trace("items",s),s.forEach(function(d){if(d.stmt==="state"||d.stmt==="default")Pv(i,a,d,u);else if(d.stmt==="relation"){Pv(i,a,d.state1,u),Pv(i,a,d.state2,u);var _={id:"edge"+sh,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:Qn.sanitizeText(d.description,Jt()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},m=d.state1.id,x=d.state2.id;i.setEdge(m,x,_,sh),sh++}})},i6=function(i,a){var s=a||"TB";if(i.doc)for(var u=0;u<i.doc.length;u++){var d=i.doc[u];d.stmt==="dir"&&(s=d.value)}return s};const E6=function(i){for(var a=Object.keys(i),s=0;s<a.length;s++)ex[a[s]]=i[a[s]]};function T6(i){return function(a){if(Array.isArray(a))return a6(a)}(i)||function(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}(i)||function(a,s){if(a){if(typeof a=="string")return a6(a,s);var u=Object.prototype.toString.call(a).slice(8,-1);return u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set"?Array.from(a):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?a6(a,s):void 0}}(i)||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 a6(i,a){(a==null||a>i.length)&&(a=i.length);for(var s=0,u=new Array(a);s<a;s++)u[s]=i[s];return u}var $d="",o6=[],jd=[],Hd=[],S6=function(){for(var i=!0,a=0;a<Hd.length;a++)Hd[a].processed,i=i&&Hd[a].processed;return i};const A6={parseDirective:function(i,a,s){Oi.parseDirective(this,i,a,s)},getConfig:function(){return Jt().journey},clear:function(){o6.length=0,jd.length=0,$d="",Hd.length=0,Ms()},setDiagramTitle:N1,getDiagramTitle:Hu,setAccTitle:Wa,getAccTitle:ia,setAccDescription:To,getAccDescription:So,addSection:function(i){$d=i,o6.push(i)},getSections:function(){return o6},getTasks:function(){for(var i=S6(),a=0;!i&&a<100;)i=S6(),a++;return jd.push.apply(jd,Hd),jd},addTask:function(i,a){var s=a.substr(1).split(":"),u=0,d=[];s.length===1?(u=Number(s[0]),d=[]):(u=Number(s[0]),d=s[1].split(","));var _=d.map(function(x){return x.trim()}),m={section:$d,type:$d,people:_,task:i,score:u};Hd.push(m)},addTaskOrg:function(i){var a={section:$d,type:$d,description:i,task:i,classes:[]};jd.push(a)},getActors:function(){return i=[],jd.forEach(function(a){a.people&&i.push.apply(i,T6(a.people))}),T6(new Set(i)).sort();var i}};var ch=f(9763),rx=f.n(ch),C6=function(i,a){var s=i.append("rect");return s.attr("x",a.x),s.attr("y",a.y),s.attr("fill",a.fill),s.attr("stroke",a.stroke),s.attr("width",a.width),s.attr("height",a.height),s.attr("rx",a.rx),s.attr("ry",a.ry),a.class!==void 0&&s.attr("class",a.class),s},M6=function(i,a){var s=i.append("circle");return s.attr("cx",a.cx),s.attr("cy",a.cy),s.attr("class","actor-"+a.pos),s.attr("fill",a.fill),s.attr("stroke",a.stroke),s.attr("r",a.r),s.class!==void 0&&s.attr("class",s.class),a.title!==void 0&&s.append("title").text(a.title),s},N6=-1,L6=function(){function i(d,_,m,x,C,A,B,Y){u(_.append("text").attr("x",m+C/2).attr("y",x+A/2+5).style("font-color",Y).style("text-anchor","middle").text(d),B)}function a(d,_,m,x,C,A,B,Y,j){for(var X=Y.taskFontSize,vt=Y.taskFontFamily,ut=d.split(/<br\s*\/?>/gi),wt=0;wt<ut.length;wt++){var xt=wt*X-X*(ut.length-1)/2,Dt=_.append("text").attr("x",m+C/2).attr("y",x).attr("fill",j).style("text-anchor","middle").style("font-size",X).style("font-family",vt);Dt.append("tspan").attr("x",m+C/2).attr("dy",xt).text(ut[wt]),Dt.attr("y",x+A/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),u(Dt,B)}}function s(d,_,m,x,C,A,B,Y){var j=_.append("switch"),X=j.append("foreignObject").attr("x",m).attr("y",x).attr("width",C).attr("height",A).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");X.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(d),a(d,j,m,x,C,A,B,Y),u(X,B)}function u(d,_){for(var m in _)m in _&&d.attr(m,_[m])}return function(d){return d.textPlacement==="fo"?s:d.textPlacement==="old"?i:a}}();const ix=M6,ax=function(i,a,s){var u=i.append("g"),d={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};d.x=a.x,d.y=a.y,d.fill=a.fill,d.width=s.width,d.height=s.height,d.class="journey-section section-type-"+a.num,d.rx=3,d.ry=3,C6(u,d),L6(s)(a.text,u,d.x,d.y,d.width,d.height,{class:"journey-section section-type-"+a.num},s,a.colour)},ox=function(i,a){var s=a.text.replace(/<br\s*\/?>/gi," "),u=i.append("text");u.attr("x",a.x),u.attr("y",a.y),u.attr("class","legend"),u.style("text-anchor",a.anchor),a.class!==void 0&&u.attr("class",a.class);var d=u.append("tspan");return d.attr("x",a.x+2*a.textMargin),d.text(s),u},sx=function(i,a,s){var u,d,_,m=a.x+s.width/2,x=i.append("g");N6++,x.append("line").attr("id","task"+N6).attr("x1",m).attr("y1",a.y).attr("x2",m).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),u=x,d={cx:m,cy:300+30*(5-a.score),score:a.score},u.append("circle").attr("cx",d.cx).attr("cy",d.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(_=u.append("g")).append("circle").attr("cx",d.cx-5).attr("cy",d.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),_.append("circle").attr("cx",d.cx+5).attr("cy",d.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),d.score>3?function(B){var Y=Q2().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);B.append("path").attr("class","mouth").attr("d",Y).attr("transform","translate("+d.cx+","+(d.cy+2)+")")}(_):d.score<3?function(B){var Y=Q2().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);B.append("path").attr("class","mouth").attr("d",Y).attr("transform","translate("+d.cx+","+(d.cy+7)+")")}(_):function(B){B.append("line").attr("class","mouth").attr("stroke",2).attr("x1",d.cx-5).attr("y1",d.cy+7).attr("x2",d.cx+5).attr("y2",d.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(_);var C={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};C.x=a.x,C.y=a.y,C.fill=a.fill,C.width=s.width,C.height=s.height,C.class="task task-type-"+a.num,C.rx=3,C.ry=3,C6(x,C);var A=a.x+14;a.people.forEach(function(B){var Y=a.actors[B].color,j={cx:A,cy:a.y,r:7,fill:Y,stroke:"#000",title:B,pos:a.actors[B].position};M6(x,j),A+=10}),L6(s)(a.task,x,C.x,C.y,C.width,C.height,{class:"task"},s,a.colour)};ch.parser.yy=A6;var ql={},s6=Jt().journey,K1=Jt().journey.leftMargin,Bs={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(i,a,s,u){i[a]===void 0?i[a]=s:i[a]=u(s,i[a])},updateBounds:function(i,a,s,u){var d=Jt().journey,_=this,m=0;this.sequenceItems.forEach(function(x){m++;var C=_.sequenceItems.length-m+1;_.updateVal(x,"starty",a-C*d.boxMargin,Math.min),_.updateVal(x,"stopy",u+C*d.boxMargin,Math.max),_.updateVal(Bs.data,"startx",i-C*d.boxMargin,Math.min),_.updateVal(Bs.data,"stopx",s+C*d.boxMargin,Math.max),_.updateVal(x,"startx",i-C*d.boxMargin,Math.min),_.updateVal(x,"stopx",s+C*d.boxMargin,Math.max),_.updateVal(Bs.data,"starty",a-C*d.boxMargin,Math.min),_.updateVal(Bs.data,"stopy",u+C*d.boxMargin,Math.max)})},insert:function(i,a,s,u){var d=Math.min(i,s),_=Math.max(i,s),m=Math.min(a,u),x=Math.max(a,u);this.updateVal(Bs.data,"startx",d,Math.min),this.updateVal(Bs.data,"starty",m,Math.min),this.updateVal(Bs.data,"stopx",_,Math.max),this.updateVal(Bs.data,"stopy",x,Math.max),this.updateBounds(d,m,_,x)},bumpVerticalPos:function(i){this.verticalPos=this.verticalPos+i,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},c6=s6.sectionFills,D6=s6.sectionColours;const I6=function(i){Object.keys(i).forEach(function(a){s6[a]=i[a]})},cx=function(i,a){var s=Jt().journey;ch.parser.yy.clear(),ch.parser.parse(i+`
|
|
`);var u,d=Jt().securityLevel;d==="sandbox"&&(u=He("#i"+a));var _=He(d==="sandbox"?u.nodes()[0].contentDocument.body:"body");d==="sandbox"&&u.nodes()[0].contentDocument,Bs.init();var m=_.select("#"+a);m.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),m.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z");var x=ch.parser.yy.getTasks(),C=ch.parser.yy.getDiagramTitle(),A=ch.parser.yy.getActors();for(var B in ql)delete ql[B];var Y=0;A.forEach(function(wt){ql[wt]={color:s.actorColours[Y%s.actorColours.length],position:Y},Y++}),function(wt){var xt=Jt().journey,Dt=60;Object.keys(ql).forEach(function(At){var Zt=ql[At].color,se={cx:20,cy:Dt,r:7,fill:Zt,stroke:"#000",pos:ql[At].position};ix(wt,se);var jt={x:40,y:Dt+7,fill:"#666",text:At,textMargin:5|xt.boxTextMargin};ox(wt,jt),Dt+=20})}(m),Bs.insert(0,0,K1,50*Object.keys(ql).length),function(wt,xt,Dt){for(var At=Jt().journey,Zt="",se=Dt+(2*At.height+At.diagramMarginY),jt=0,ne="#CCC",ie="black",Ot=0,It=0;It<xt.length;It++){var Ct=xt[It];if(Zt!==Ct.section){ne=c6[jt%c6.length],Ot=jt%c6.length,ie=D6[jt%D6.length];var mt={x:It*At.taskMargin+It*At.width+K1,y:50,text:Ct.section,fill:ne,num:Ot,colour:ie};ax(wt,mt,At),Zt=Ct.section,jt++}var Ut=Ct.people.reduce(function(Tt,Te){return ql[Te]&&(Tt[Te]=ql[Te]),Tt},{});Ct.x=It*At.taskMargin+It*At.width+K1,Ct.y=se,Ct.width=At.diagramMarginX,Ct.height=At.diagramMarginY,Ct.colour=ie,Ct.fill=ne,Ct.num=Ot,Ct.actors=Ut,sx(wt,Ct,At),Bs.insert(Ct.x,Ct.y,Ct.x+Ct.width+At.taskMargin,450)}}(m,x,0);var j=Bs.getBounds();C&&m.append("text").text(C).attr("x",K1).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var X=j.stopy-j.starty+2*s.diagramMarginY,vt=K1+j.stopx+2*s.diagramMarginX;yo(m,X,vt,s.useMaxWidth),m.append("line").attr("x1",K1).attr("y1",4*s.height).attr("x2",vt-K1-4).attr("y2",4*s.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var ut=C?70:0;m.attr("viewBox","".concat(j.startx," -25 ").concat(vt," ").concat(X+ut)),m.attr("preserveAspectRatio","xMinYMin meet"),m.attr("height",X+ut+25),eo(ch.parser.yy,m,a)};var lx={};const l6=function(i){return`g.classGroup text {
|
|
fill: `.concat(i.nodeBorder,`;
|
|
fill: `).concat(i.classText,`;
|
|
stroke: none;
|
|
font-family: `).concat(i.fontFamily,`;
|
|
font-size: 10px;
|
|
|
|
.title {
|
|
font-weight: bolder;
|
|
}
|
|
|
|
}
|
|
|
|
.nodeLabel, .edgeLabel {
|
|
color: `).concat(i.classText,`;
|
|
}
|
|
.edgeLabel .label rect {
|
|
fill: `).concat(i.mainBkg,`;
|
|
}
|
|
.label text {
|
|
fill: `).concat(i.classText,`;
|
|
}
|
|
.edgeLabel .label span {
|
|
background: `).concat(i.mainBkg,`;
|
|
}
|
|
|
|
.classTitle {
|
|
font-weight: bolder;
|
|
}
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(i.mainBkg,`;
|
|
stroke: `).concat(i.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
|
|
.divider {
|
|
stroke: `).concat(i.nodeBorder,`;
|
|
stroke: 1;
|
|
}
|
|
|
|
g.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
g.classGroup rect {
|
|
fill: `).concat(i.mainBkg,`;
|
|
stroke: `).concat(i.nodeBorder,`;
|
|
}
|
|
|
|
g.classGroup line {
|
|
stroke: `).concat(i.nodeBorder,`;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.classLabel .box {
|
|
stroke: none;
|
|
stroke-width: 0;
|
|
fill: `).concat(i.mainBkg,`;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.classLabel .label {
|
|
fill: `).concat(i.nodeBorder,`;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.relation {
|
|
stroke: `).concat(i.lineColor,`;
|
|
stroke-width: 1;
|
|
fill: none;
|
|
}
|
|
|
|
.dashed-line{
|
|
stroke-dasharray: 3;
|
|
}
|
|
|
|
#compositionStart, .composition {
|
|
fill: `).concat(i.lineColor,` !important;
|
|
stroke: `).concat(i.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#compositionEnd, .composition {
|
|
fill: `).concat(i.lineColor,` !important;
|
|
stroke: `).concat(i.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#dependencyStart, .dependency {
|
|
fill: `).concat(i.lineColor,` !important;
|
|
stroke: `).concat(i.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#dependencyStart, .dependency {
|
|
fill: `).concat(i.lineColor,` !important;
|
|
stroke: `).concat(i.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#extensionStart, .extension {
|
|
fill: `).concat(i.lineColor,` !important;
|
|
stroke: `).concat(i.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#extensionEnd, .extension {
|
|
fill: `).concat(i.lineColor,` !important;
|
|
stroke: `).concat(i.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#aggregationStart, .aggregation {
|
|
fill: `).concat(i.mainBkg,` !important;
|
|
stroke: `).concat(i.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#aggregationEnd, .aggregation {
|
|
fill: `).concat(i.mainBkg,` !important;
|
|
stroke: `).concat(i.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.edgeTerminals {
|
|
font-size: 11px;
|
|
}
|
|
|
|
`)},O6=function(i){return`.label {
|
|
font-family: `.concat(i.fontFamily,`;
|
|
color: `).concat(i.nodeTextColor||i.textColor,`;
|
|
}
|
|
.cluster-label text {
|
|
fill: `).concat(i.titleColor,`;
|
|
}
|
|
.cluster-label span {
|
|
color: `).concat(i.titleColor,`;
|
|
}
|
|
|
|
.label text,span {
|
|
fill: `).concat(i.nodeTextColor||i.textColor,`;
|
|
color: `).concat(i.nodeTextColor||i.textColor,`;
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(i.mainBkg,`;
|
|
stroke: `).concat(i.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.node .label {
|
|
text-align: center;
|
|
}
|
|
.node.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.arrowheadPath {
|
|
fill: `).concat(i.arrowheadColor,`;
|
|
}
|
|
|
|
.edgePath .path {
|
|
stroke: `).concat(i.lineColor,`;
|
|
stroke-width: 2.0px;
|
|
}
|
|
|
|
.flowchart-link {
|
|
stroke: `).concat(i.lineColor,`;
|
|
fill: none;
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: `).concat(i.edgeLabelBackground,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
background-color: `).concat(i.edgeLabelBackground,`;
|
|
fill: `).concat(i.edgeLabelBackground,`;
|
|
}
|
|
text-align: center;
|
|
}
|
|
|
|
.cluster rect {
|
|
fill: `).concat(i.clusterBkg,`;
|
|
stroke: `).concat(i.clusterBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.cluster text {
|
|
fill: `).concat(i.titleColor,`;
|
|
}
|
|
|
|
.cluster span {
|
|
color: `).concat(i.titleColor,`;
|
|
}
|
|
/* .cluster div {
|
|
color: `).concat(i.titleColor,`;
|
|
} */
|
|
|
|
div.mermaidTooltip {
|
|
position: absolute;
|
|
text-align: center;
|
|
max-width: 200px;
|
|
padding: 2px;
|
|
font-family: `).concat(i.fontFamily,`;
|
|
font-size: 12px;
|
|
background: `).concat(i.tertiaryColor,`;
|
|
border: 1px solid `).concat(i.border2,`;
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
}
|
|
`)},R6=function(i){return`
|
|
defs #statediagram-barbEnd {
|
|
fill: `.concat(i.transitionColor,`;
|
|
stroke: `).concat(i.transitionColor,`;
|
|
}
|
|
g.stateGroup text {
|
|
fill: `).concat(i.nodeBorder,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
}
|
|
g.stateGroup text {
|
|
fill: `).concat(i.textColor,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
|
|
}
|
|
g.stateGroup .state-title {
|
|
font-weight: bolder;
|
|
fill: `).concat(i.stateLabelColor,`;
|
|
}
|
|
|
|
g.stateGroup rect {
|
|
fill: `).concat(i.mainBkg,`;
|
|
stroke: `).concat(i.nodeBorder,`;
|
|
}
|
|
|
|
g.stateGroup line {
|
|
stroke: `).concat(i.lineColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.transition {
|
|
stroke: `).concat(i.transitionColor,`;
|
|
stroke-width: 1;
|
|
fill: none;
|
|
}
|
|
|
|
.stateGroup .composit {
|
|
fill: `).concat(i.background,`;
|
|
border-bottom: 1px
|
|
}
|
|
|
|
.stateGroup .alt-composit {
|
|
fill: #e0e0e0;
|
|
border-bottom: 1px
|
|
}
|
|
|
|
.state-note {
|
|
stroke: `).concat(i.noteBorderColor,`;
|
|
fill: `).concat(i.noteBkgColor,`;
|
|
|
|
text {
|
|
fill: `).concat(i.noteTextColor,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
}
|
|
}
|
|
|
|
.stateLabel .box {
|
|
stroke: none;
|
|
stroke-width: 0;
|
|
fill: `).concat(i.mainBkg,`;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.edgeLabel .label rect {
|
|
fill: `).concat(i.labelBackgroundColor,`;
|
|
opacity: 0.5;
|
|
}
|
|
.edgeLabel .label text {
|
|
fill: `).concat(i.transitionLabelColor||i.tertiaryTextColor,`;
|
|
}
|
|
.label div .edgeLabel {
|
|
color: `).concat(i.transitionLabelColor||i.tertiaryTextColor,`;
|
|
}
|
|
|
|
.stateLabel text {
|
|
fill: `).concat(i.stateLabelColor,`;
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.node circle.state-start {
|
|
fill: `).concat(i.specialStateColor,`;
|
|
stroke: `).concat(i.specialStateColor,`;
|
|
}
|
|
|
|
.node .fork-join {
|
|
fill: `).concat(i.specialStateColor,`;
|
|
stroke: `).concat(i.specialStateColor,`;
|
|
}
|
|
|
|
.node circle.state-end {
|
|
fill: `).concat(i.innerEndBackground,`;
|
|
stroke: `).concat(i.background,`;
|
|
stroke-width: 1.5
|
|
}
|
|
.end-state-inner {
|
|
fill: `).concat(i.compositeBackground||i.background,`;
|
|
// stroke: `).concat(i.background,`;
|
|
stroke-width: 1.5
|
|
}
|
|
|
|
.node rect {
|
|
fill: `).concat(i.stateBkg||i.mainBkg,`;
|
|
stroke: `).concat(i.stateBorder||i.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
.node polygon {
|
|
fill: `).concat(i.mainBkg,`;
|
|
stroke: `).concat(i.stateBorder||i.nodeBorder,`;;
|
|
stroke-width: 1px;
|
|
}
|
|
#statediagram-barbEnd {
|
|
fill: `).concat(i.lineColor,`;
|
|
}
|
|
|
|
.statediagram-cluster rect {
|
|
fill: `).concat(i.compositeTitleBackground,`;
|
|
stroke: `).concat(i.stateBorder||i.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.cluster-label, .nodeLabel {
|
|
color: `).concat(i.stateLabelColor,`;
|
|
}
|
|
|
|
.statediagram-cluster rect.outer {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-state .divider {
|
|
stroke: `).concat(i.stateBorder||i.nodeBorder,`;
|
|
}
|
|
|
|
.statediagram-state .title-state {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-cluster.statediagram-cluster .inner {
|
|
fill: `).concat(i.compositeBackground||i.background,`;
|
|
}
|
|
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
fill: `).concat(i.altBackground?i.altBackground:"#efefef",`;
|
|
}
|
|
|
|
.statediagram-cluster .inner {
|
|
rx:0;
|
|
ry:0;
|
|
}
|
|
|
|
.statediagram-state rect.basic {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-state rect.divider {
|
|
stroke-dasharray: 10,10;
|
|
fill: `).concat(i.altBackground?i.altBackground:"#efefef",`;
|
|
}
|
|
|
|
.note-edge {
|
|
stroke-dasharray: 5;
|
|
}
|
|
|
|
.statediagram-note rect {
|
|
fill: `).concat(i.noteBkgColor,`;
|
|
stroke: `).concat(i.noteBorderColor,`;
|
|
stroke-width: 1px;
|
|
rx: 0;
|
|
ry: 0;
|
|
}
|
|
.statediagram-note rect {
|
|
fill: `).concat(i.noteBkgColor,`;
|
|
stroke: `).concat(i.noteBorderColor,`;
|
|
stroke-width: 1px;
|
|
rx: 0;
|
|
ry: 0;
|
|
}
|
|
|
|
.statediagram-note text {
|
|
fill: `).concat(i.noteTextColor,`;
|
|
}
|
|
|
|
.statediagram-note .nodeLabel {
|
|
color: `).concat(i.noteTextColor,`;
|
|
}
|
|
.statediagram .edgeLabel {
|
|
color: red; // `).concat(i.noteTextColor,`;
|
|
}
|
|
|
|
#dependencyStart, #dependencyEnd {
|
|
fill: `).concat(i.lineColor,`;
|
|
stroke: `).concat(i.lineColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
`)};var ux={flowchart:O6,"flowchart-v2":O6,sequence:function(i){return`.actor {
|
|
stroke: `.concat(i.actorBorder,`;
|
|
fill: `).concat(i.actorBkg,`;
|
|
}
|
|
|
|
text.actor > tspan {
|
|
fill: `).concat(i.actorTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.actor-line {
|
|
stroke: `).concat(i.actorLineColor,`;
|
|
}
|
|
|
|
.messageLine0 {
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: none;
|
|
stroke: `).concat(i.signalColor,`;
|
|
}
|
|
|
|
.messageLine1 {
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: 2, 2;
|
|
stroke: `).concat(i.signalColor,`;
|
|
}
|
|
|
|
#arrowhead path {
|
|
fill: `).concat(i.signalColor,`;
|
|
stroke: `).concat(i.signalColor,`;
|
|
}
|
|
|
|
.sequenceNumber {
|
|
fill: `).concat(i.sequenceNumberColor,`;
|
|
}
|
|
|
|
#sequencenumber {
|
|
fill: `).concat(i.signalColor,`;
|
|
}
|
|
|
|
#crosshead path {
|
|
fill: `).concat(i.signalColor,`;
|
|
stroke: `).concat(i.signalColor,`;
|
|
}
|
|
|
|
.messageText {
|
|
fill: `).concat(i.signalTextColor,`;
|
|
stroke: `).concat(i.signalTextColor,`;
|
|
}
|
|
|
|
.labelBox {
|
|
stroke: `).concat(i.labelBoxBorderColor,`;
|
|
fill: `).concat(i.labelBoxBkgColor,`;
|
|
}
|
|
|
|
.labelText, .labelText > tspan {
|
|
fill: `).concat(i.labelTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.loopText, .loopText > tspan {
|
|
fill: `).concat(i.loopTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.loopLine {
|
|
stroke-width: 2px;
|
|
stroke-dasharray: 2, 2;
|
|
stroke: `).concat(i.labelBoxBorderColor,`;
|
|
fill: `).concat(i.labelBoxBorderColor,`;
|
|
}
|
|
|
|
.note {
|
|
//stroke: #decc93;
|
|
stroke: `).concat(i.noteBorderColor,`;
|
|
fill: `).concat(i.noteBkgColor,`;
|
|
}
|
|
|
|
.noteText, .noteText > tspan {
|
|
fill: `).concat(i.noteTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.activation0 {
|
|
fill: `).concat(i.activationBkgColor,`;
|
|
stroke: `).concat(i.activationBorderColor,`;
|
|
}
|
|
|
|
.activation1 {
|
|
fill: `).concat(i.activationBkgColor,`;
|
|
stroke: `).concat(i.activationBorderColor,`;
|
|
}
|
|
|
|
.activation2 {
|
|
fill: `).concat(i.activationBkgColor,`;
|
|
stroke: `).concat(i.activationBorderColor,`;
|
|
}
|
|
|
|
.actorPopupMenu {
|
|
position: absolute;
|
|
}
|
|
|
|
.actorPopupMenuPanel {
|
|
position: absolute;
|
|
fill: `).concat(i.actorBkg,`;
|
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|
}
|
|
.actor-man line {
|
|
stroke: `).concat(i.actorBorder,`;
|
|
fill: `).concat(i.actorBkg,`;
|
|
}
|
|
.actor-man circle, line {
|
|
stroke: `).concat(i.actorBorder,`;
|
|
fill: `).concat(i.actorBkg,`;
|
|
stroke-width: 2px;
|
|
}
|
|
`)},gantt:function(i){return`
|
|
.mermaid-main-font {
|
|
font-family: "trebuchet ms", verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
.exclude-range {
|
|
fill: `.concat(i.excludeBkgColor,`;
|
|
}
|
|
|
|
.section {
|
|
stroke: none;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.section0 {
|
|
fill: `).concat(i.sectionBkgColor,`;
|
|
}
|
|
|
|
.section2 {
|
|
fill: `).concat(i.sectionBkgColor2,`;
|
|
}
|
|
|
|
.section1,
|
|
.section3 {
|
|
fill: `).concat(i.altSectionBkgColor,`;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.sectionTitle0 {
|
|
fill: `).concat(i.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle1 {
|
|
fill: `).concat(i.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle2 {
|
|
fill: `).concat(i.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle3 {
|
|
fill: `).concat(i.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle {
|
|
text-anchor: start;
|
|
// font-size: `).concat(i.ganttFontSize,`;
|
|
// text-height: 14px;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
|
|
}
|
|
|
|
|
|
/* Grid and axis */
|
|
|
|
.grid .tick {
|
|
stroke: `).concat(i.gridColor,`;
|
|
opacity: 0.8;
|
|
shape-rendering: crispEdges;
|
|
text {
|
|
font-family: `).concat(i.fontFamily,`;
|
|
fill: `).concat(i.textColor,`;
|
|
}
|
|
}
|
|
|
|
.grid path {
|
|
stroke-width: 0;
|
|
}
|
|
|
|
|
|
/* Today line */
|
|
|
|
.today {
|
|
fill: none;
|
|
stroke: `).concat(i.todayLineColor,`;
|
|
stroke-width: 2px;
|
|
}
|
|
|
|
|
|
/* Task styling */
|
|
|
|
/* Default task */
|
|
|
|
.task {
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.taskText {
|
|
text-anchor: middle;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
|
|
// .taskText:not([font-size]) {
|
|
// font-size: `).concat(i.ganttFontSize,`;
|
|
// }
|
|
|
|
.taskTextOutsideRight {
|
|
fill: `).concat(i.taskTextDarkColor,`;
|
|
text-anchor: start;
|
|
// font-size: `).concat(i.ganttFontSize,`;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
|
|
}
|
|
|
|
.taskTextOutsideLeft {
|
|
fill: `).concat(i.taskTextDarkColor,`;
|
|
text-anchor: end;
|
|
// font-size: `).concat(i.ganttFontSize,`;
|
|
}
|
|
|
|
/* Special case clickable */
|
|
.task.clickable {
|
|
cursor: pointer;
|
|
}
|
|
.taskText.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(i.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.taskTextOutsideLeft.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(i.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.taskTextOutsideRight.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(i.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Specific task settings for the sections*/
|
|
|
|
.taskText0,
|
|
.taskText1,
|
|
.taskText2,
|
|
.taskText3 {
|
|
fill: `).concat(i.taskTextColor,`;
|
|
}
|
|
|
|
.task0,
|
|
.task1,
|
|
.task2,
|
|
.task3 {
|
|
fill: `).concat(i.taskBkgColor,`;
|
|
stroke: `).concat(i.taskBorderColor,`;
|
|
}
|
|
|
|
.taskTextOutside0,
|
|
.taskTextOutside2
|
|
{
|
|
fill: `).concat(i.taskTextOutsideColor,`;
|
|
}
|
|
|
|
.taskTextOutside1,
|
|
.taskTextOutside3 {
|
|
fill: `).concat(i.taskTextOutsideColor,`;
|
|
}
|
|
|
|
|
|
/* Active task */
|
|
|
|
.active0,
|
|
.active1,
|
|
.active2,
|
|
.active3 {
|
|
fill: `).concat(i.activeTaskBkgColor,`;
|
|
stroke: `).concat(i.activeTaskBorderColor,`;
|
|
}
|
|
|
|
.activeText0,
|
|
.activeText1,
|
|
.activeText2,
|
|
.activeText3 {
|
|
fill: `).concat(i.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
|
|
/* Completed task */
|
|
|
|
.done0,
|
|
.done1,
|
|
.done2,
|
|
.done3 {
|
|
stroke: `).concat(i.doneTaskBorderColor,`;
|
|
fill: `).concat(i.doneTaskBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.doneText0,
|
|
.doneText1,
|
|
.doneText2,
|
|
.doneText3 {
|
|
fill: `).concat(i.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
|
|
/* Tasks on the critical line */
|
|
|
|
.crit0,
|
|
.crit1,
|
|
.crit2,
|
|
.crit3 {
|
|
stroke: `).concat(i.critBorderColor,`;
|
|
fill: `).concat(i.critBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.activeCrit0,
|
|
.activeCrit1,
|
|
.activeCrit2,
|
|
.activeCrit3 {
|
|
stroke: `).concat(i.critBorderColor,`;
|
|
fill: `).concat(i.activeTaskBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.doneCrit0,
|
|
.doneCrit1,
|
|
.doneCrit2,
|
|
.doneCrit3 {
|
|
stroke: `).concat(i.critBorderColor,`;
|
|
fill: `).concat(i.doneTaskBkgColor,`;
|
|
stroke-width: 2;
|
|
cursor: pointer;
|
|
shape-rendering: crispEdges;
|
|
}
|
|
|
|
.milestone {
|
|
transform: rotate(45deg) scale(0.8,0.8);
|
|
}
|
|
|
|
.milestoneText {
|
|
font-style: italic;
|
|
}
|
|
.doneCritText0,
|
|
.doneCritText1,
|
|
.doneCritText2,
|
|
.doneCritText3 {
|
|
fill: `).concat(i.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
.activeCritText0,
|
|
.activeCritText1,
|
|
.activeCritText2,
|
|
.activeCritText3 {
|
|
fill: `).concat(i.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
.titleText {
|
|
text-anchor: middle;
|
|
font-size: 18px;
|
|
fill: `).concat(i.textColor,` ;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
`)},classDiagram:l6,"classDiagram-v2":l6,class:l6,stateDiagram:R6,state:R6,gitGraph:function(i){return`
|
|
.commit-id,
|
|
.commit-msg,
|
|
.branch-label {
|
|
fill: lightgrey;
|
|
color: lightgrey;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
`.concat([0,1,2,3,4,5,6,7].map(function(a){return`
|
|
.branch-label`.concat(a," { fill: ").concat(i["gitBranchLabel"+a],`; }
|
|
.commit`).concat(a," { stroke: ").concat(i["git"+a],"; fill: ").concat(i["git"+a],`; }
|
|
.commit-highlight`).concat(a," { stroke: ").concat(i["gitInv"+a],"; fill: ").concat(i["gitInv"+a],`; }
|
|
.label`).concat(a," { fill: ").concat(i["git"+a],`; }
|
|
.arrow`).concat(a," { stroke: ").concat(i["git"+a],`; }
|
|
`)}).join(`
|
|
`),`
|
|
|
|
.branch {
|
|
stroke-width: 1;
|
|
stroke: `).concat(i.lineColor,`;
|
|
stroke-dasharray: 2;
|
|
}
|
|
.commit-label { font-size: 10px; fill: `).concat(i.commitLabelColor,`;}
|
|
.commit-label-bkg { font-size: 10px; fill: `).concat(i.commitLabelBackground,`; opacity: 0.5; }
|
|
.tag-label { font-size: 10px; fill: `).concat(i.tagLabelColor,`;}
|
|
.tag-label-bkg { fill: `).concat(i.tagLabelBackground,"; stroke: ").concat(i.tagLabelBorder,`; }
|
|
.tag-hole { fill: `).concat(i.textColor,`; }
|
|
|
|
.commit-merge {
|
|
stroke: `).concat(i.primaryColor,`;
|
|
fill: `).concat(i.primaryColor,`;
|
|
}
|
|
.commit-reverse {
|
|
stroke: `).concat(i.primaryColor,`;
|
|
fill: `).concat(i.primaryColor,`;
|
|
stroke-width: 3;
|
|
}
|
|
.commit-highlight-outer {
|
|
}
|
|
.commit-highlight-inner {
|
|
stroke: `).concat(i.primaryColor,`;
|
|
fill: `).concat(i.primaryColor,`;
|
|
}
|
|
|
|
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
}
|
|
`)},info:function(){return""},pie:function(i){return`
|
|
.pieCircle{
|
|
stroke: `.concat(i.pieStrokeColor,`;
|
|
stroke-width : `).concat(i.pieStrokeWidth,`;
|
|
opacity : `).concat(i.pieOpacity,`;
|
|
}
|
|
.pieTitleText {
|
|
text-anchor: middle;
|
|
font-size: `).concat(i.pieTitleTextSize,`;
|
|
fill: `).concat(i.pieTitleTextColor,`;
|
|
font-family: `).concat(i.fontFamily,`;
|
|
}
|
|
.slice {
|
|
font-family: `).concat(i.fontFamily,`;
|
|
fill: `).concat(i.pieSectionTextColor,`;
|
|
font-size:`).concat(i.pieSectionTextSize,`;
|
|
// fill: white;
|
|
}
|
|
.legend text {
|
|
fill: `).concat(i.pieLegendTextColor,`;
|
|
font-family: `).concat(i.fontFamily,`;
|
|
font-size: `).concat(i.pieLegendTextSize,`;
|
|
}
|
|
`)},er:function(i){return`
|
|
.entityBox {
|
|
fill: `.concat(i.mainBkg,`;
|
|
stroke: `).concat(i.nodeBorder,`;
|
|
}
|
|
|
|
.attributeBoxOdd {
|
|
fill: #ffffff;
|
|
stroke: `).concat(i.nodeBorder,`;
|
|
}
|
|
|
|
.attributeBoxEven {
|
|
fill: #f2f2f2;
|
|
stroke: `).concat(i.nodeBorder,`;
|
|
}
|
|
|
|
.relationshipLabelBox {
|
|
fill: `).concat(i.tertiaryColor,`;
|
|
opacity: 0.7;
|
|
background-color: `).concat(i.tertiaryColor,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
.relationshipLine {
|
|
stroke: `).concat(i.lineColor,`;
|
|
}
|
|
`)},journey:function(i){return`.label {
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
color: `.concat(i.textColor,`;
|
|
}
|
|
.mouth {
|
|
stroke: #666;
|
|
}
|
|
|
|
line {
|
|
stroke: `).concat(i.textColor,`
|
|
}
|
|
|
|
.legend {
|
|
fill: `).concat(i.textColor,`;
|
|
}
|
|
|
|
.label text {
|
|
fill: #333;
|
|
}
|
|
.label {
|
|
color: `).concat(i.textColor,`
|
|
}
|
|
|
|
.face {
|
|
`).concat(i.faceColor?"fill: ".concat(i.faceColor):"fill: #FFF8DC",`;
|
|
stroke: #999;
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(i.mainBkg,`;
|
|
stroke: `).concat(i.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.node .label {
|
|
text-align: center;
|
|
}
|
|
.node.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.arrowheadPath {
|
|
fill: `).concat(i.arrowheadColor,`;
|
|
}
|
|
|
|
.edgePath .path {
|
|
stroke: `).concat(i.lineColor,`;
|
|
stroke-width: 1.5px;
|
|
}
|
|
|
|
.flowchart-link {
|
|
stroke: `).concat(i.lineColor,`;
|
|
fill: none;
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: `).concat(i.edgeLabelBackground,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
}
|
|
text-align: center;
|
|
}
|
|
|
|
.cluster rect {
|
|
}
|
|
|
|
.cluster text {
|
|
fill: `).concat(i.titleColor,`;
|
|
}
|
|
|
|
div.mermaidTooltip {
|
|
position: absolute;
|
|
text-align: center;
|
|
max-width: 200px;
|
|
padding: 2px;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
font-size: 12px;
|
|
background: `).concat(i.tertiaryColor,`;
|
|
border: 1px solid `).concat(i.border2,`;
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
}
|
|
|
|
.task-type-0, .section-type-0 {
|
|
`).concat(i.fillType0?"fill: ".concat(i.fillType0):"",`;
|
|
}
|
|
.task-type-1, .section-type-1 {
|
|
`).concat(i.fillType0?"fill: ".concat(i.fillType1):"",`;
|
|
}
|
|
.task-type-2, .section-type-2 {
|
|
`).concat(i.fillType0?"fill: ".concat(i.fillType2):"",`;
|
|
}
|
|
.task-type-3, .section-type-3 {
|
|
`).concat(i.fillType0?"fill: ".concat(i.fillType3):"",`;
|
|
}
|
|
.task-type-4, .section-type-4 {
|
|
`).concat(i.fillType0?"fill: ".concat(i.fillType4):"",`;
|
|
}
|
|
.task-type-5, .section-type-5 {
|
|
`).concat(i.fillType0?"fill: ".concat(i.fillType5):"",`;
|
|
}
|
|
.task-type-6, .section-type-6 {
|
|
`).concat(i.fillType0?"fill: ".concat(i.fillType6):"",`;
|
|
}
|
|
.task-type-7, .section-type-7 {
|
|
`).concat(i.fillType0?"fill: ".concat(i.fillType7):"",`;
|
|
}
|
|
|
|
.actor-0 {
|
|
`).concat(i.actor0?"fill: ".concat(i.actor0):"",`;
|
|
}
|
|
.actor-1 {
|
|
`).concat(i.actor1?"fill: ".concat(i.actor1):"",`;
|
|
}
|
|
.actor-2 {
|
|
`).concat(i.actor2?"fill: ".concat(i.actor2):"",`;
|
|
}
|
|
.actor-3 {
|
|
`).concat(i.actor3?"fill: ".concat(i.actor3):"",`;
|
|
}
|
|
.actor-4 {
|
|
`).concat(i.actor4?"fill: ".concat(i.actor4):"",`;
|
|
}
|
|
.actor-5 {
|
|
`).concat(i.actor5?"fill: ".concat(i.actor5):"",`;
|
|
}
|
|
|
|
}
|
|
`)},requirement:function(i){return`
|
|
|
|
marker {
|
|
fill: `.concat(i.relationColor,`;
|
|
stroke: `).concat(i.relationColor,`;
|
|
}
|
|
|
|
marker.cross {
|
|
stroke: `).concat(i.lineColor,`;
|
|
}
|
|
|
|
svg {
|
|
font-family: `).concat(i.fontFamily,`;
|
|
font-size: `).concat(i.fontSize,`;
|
|
}
|
|
|
|
.reqBox {
|
|
fill: `).concat(i.requirementBackground,`;
|
|
fill-opacity: 100%;
|
|
stroke: `).concat(i.requirementBorderColor,`;
|
|
stroke-width: `).concat(i.requirementBorderSize,`;
|
|
}
|
|
|
|
.reqTitle, .reqLabel{
|
|
fill: `).concat(i.requirementTextColor,`;
|
|
}
|
|
.reqLabelBox {
|
|
fill: `).concat(i.relationLabelBackground,`;
|
|
fill-opacity: 100%;
|
|
}
|
|
|
|
.req-title-line {
|
|
stroke: `).concat(i.requirementBorderColor,`;
|
|
stroke-width: `).concat(i.requirementBorderSize,`;
|
|
}
|
|
.relationshipLine {
|
|
stroke: `).concat(i.relationColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
.relationshipLabel {
|
|
fill: `).concat(i.relationLabelColor,`;
|
|
}
|
|
|
|
`)},c4:function(i){return`.person {
|
|
stroke: `.concat(i.personBorder,`;
|
|
fill: `).concat(i.personBkg,`;
|
|
}
|
|
`)}};function u6(i){return u6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},u6(i)}var B6=function(i){var a=i;return(a=(a=a.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},xy={};function F6(i){var a;oy(i.flowchart),sv(i.flowchart),i.sequenceDiagram!==void 0&&vy.setConf(Zi(i.sequence,i.sequenceDiagram)),vy.setConf(i.sequence),mv(i.gantt),V3(i.class),i.state,E6(i.state),Yr(i.class),Jg(i.er),I6(i.journey),w(i.requirement),a=i.class,Object.keys(a).forEach(function(s){lx[s]=a[s]})}var hx=Object.freeze({render:function(i,a,s,u){C1();var d=a.replace(/\r\n?/g,`
|
|
`),_=cr.detectInit(d);_&&(Kf(_),Lg(_));var m=Jt();k.debug(m),a.length>m.maxTextSize&&(d="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var x=He("body");if(u!==void 0){if(m.securityLevel==="sandbox"){var C=He("body").append("iframe").attr("id","i"+i).attr("style","width: 100%; height: 100%;").attr("sandbox","");(x=He(C.nodes()[0].contentDocument.body)).node().style.margin=0}if(u.innerHTML="",m.securityLevel==="sandbox"){var A=He(u).append("iframe").attr("id","i"+i).attr("style","width: 100%; height: 100%;").attr("sandbox","");(x=He(A.nodes()[0].contentDocument.body)).node().style.margin=0}else x=He(u);x.append("div").attr("id","d"+i).attr("style","font-family: "+m.fontFamily).append("svg").attr("id",i).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}else{var B,Y=document.getElementById(i);if(Y&&Y.remove(),(B=m.securityLevel!=="sandbox"?document.querySelector("#d"+i):document.querySelector("#i"+i))&&B.remove(),m.securityLevel==="sandbox"){var j=He("body").append("iframe").attr("id","i"+i).attr("style","width: 100%; height: 100%;").attr("sandbox","");(x=He(j.nodes()[0].contentDocument.body)).node().style.margin=0}else x=He("body");x.append("div").attr("id","d"+i).append("svg").attr("id",i).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}d=d.replace(/style.*:\S*#.*;/g,function(mt){return mt.substring(0,mt.length-1)}).replace(/classDef.*:\S*#.*;/g,function(mt){return mt.substring(0,mt.length-1)}).replace(/#\w+;/g,function(mt){var Ut=mt.substring(1,mt.length-1);return/^\+?\d+$/.test(Ut)?"\uFB02\xB0\xB0"+Ut+"\xB6\xDF":"\uFB02\xB0"+Ut+"\xB6\xDF"});var X=x.select("#d"+i).node(),vt=cr.detectType(d,m),ut=X.firstChild,wt=ut.firstChild,xt="";if(m.themeCSS!==void 0&&(xt+=`
|
|
`.concat(m.themeCSS)),m.fontFamily!==void 0&&(xt+=`
|
|
:root { --mermaid-font-family: `.concat(m.fontFamily,"}")),m.altFontFamily!==void 0&&(xt+=`
|
|
:root { --mermaid-alt-font-family: `.concat(m.altFontFamily,"}")),vt==="flowchart"||vt==="flowchart-v2"||vt==="graph"){var Dt=function(mt){k.info("Extracting classes"),fr.clear();try{var Ut=Ad().parser;return Ut.yy=fr,Ut.parse(mt),fr.getClasses()}catch{return}}(d),At=m.htmlLabels||m.flowchart.htmlLabels;for(var Zt in Dt)At?(xt+=`
|
|
.`.concat(Zt," > * { ").concat(Dt[Zt].styles.join(" !important; ")," !important; }"),xt+=`
|
|
.`.concat(Zt," span { ").concat(Dt[Zt].styles.join(" !important; ")," !important; }")):(xt+=`
|
|
.`.concat(Zt," path { ").concat(Dt[Zt].styles.join(" !important; ")," !important; }"),xt+=`
|
|
.`.concat(Zt," rect { ").concat(Dt[Zt].styles.join(" !important; ")," !important; }"),xt+=`
|
|
.`.concat(Zt," polygon { ").concat(Dt[Zt].styles.join(" !important; ")," !important; }"),xt+=`
|
|
.`.concat(Zt," ellipse { ").concat(Dt[Zt].styles.join(" !important; ")," !important; }"),xt+=`
|
|
.`.concat(Zt," circle { ").concat(Dt[Zt].styles.join(" !important; ")," !important; }"),Dt[Zt].textStyles&&(xt+=`
|
|
.`.concat(Zt," tspan { ").concat(Dt[Zt].textStyles.join(" !important; ")," !important; }")))}var se=function(mt,Ut){return ug(k1("".concat(mt,"{").concat(Ut,"}")),X5)}("#".concat(i),function(mt,Ut,Tt){return` {
|
|
font-family: `.concat(Tt.fontFamily,`;
|
|
font-size: `).concat(Tt.fontSize,`;
|
|
fill: `).concat(Tt.textColor,`
|
|
}
|
|
|
|
/* Classes common for multiple diagrams */
|
|
|
|
.error-icon {
|
|
fill: `).concat(Tt.errorBkgColor,`;
|
|
}
|
|
.error-text {
|
|
fill: `).concat(Tt.errorTextColor,`;
|
|
stroke: `).concat(Tt.errorTextColor,`;
|
|
}
|
|
|
|
.edge-thickness-normal {
|
|
stroke-width: 2px;
|
|
}
|
|
.edge-thickness-thick {
|
|
stroke-width: 3.5px
|
|
}
|
|
.edge-pattern-solid {
|
|
stroke-dasharray: 0;
|
|
}
|
|
|
|
.edge-pattern-dashed{
|
|
stroke-dasharray: 3;
|
|
}
|
|
.edge-pattern-dotted {
|
|
stroke-dasharray: 2;
|
|
}
|
|
|
|
.marker {
|
|
fill: `).concat(Tt.lineColor,`;
|
|
stroke: `).concat(Tt.lineColor,`;
|
|
}
|
|
.marker.cross {
|
|
stroke: `).concat(Tt.lineColor,`;
|
|
}
|
|
|
|
svg {
|
|
font-family: `).concat(Tt.fontFamily,`;
|
|
font-size: `).concat(Tt.fontSize,`;
|
|
}
|
|
|
|
`).concat(ux[mt](Tt),`
|
|
|
|
`).concat(Ut,`
|
|
`)}(vt,xt,m.themeVariables)),jt=document.createElement("style");jt.innerHTML="#".concat(i," ")+se,ut.insertBefore(jt,wt);try{switch(vt){case"c4":$3.setConf(m.c4),$3.draw(d,i);break;case"gitGraph":Vb(d,i,!1);break;case"flowchart":m.flowchart.arrowMarkerAbsolute=m.arrowMarkerAbsolute,oy(m.flowchart),Hb(d,i);break;case"flowchart-v2":m.flowchart.arrowMarkerAbsolute=m.arrowMarkerAbsolute,sv(m.flowchart),cv(d,i);break;case"sequence":m.sequence.arrowMarkerAbsolute=m.arrowMarkerAbsolute,m.sequenceDiagram?(vy.setConf(Object.assign(m.sequence,m.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):vy.setConf(m.sequence),vy.draw(d,i);break;case"gantt":m.gantt.arrowMarkerAbsolute=m.arrowMarkerAbsolute,mv(m.gantt),Wb(d,i);break;case"class":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,V3(m.class),kb(d,i);break;case"classDiagram":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,function(mt){Object.keys(mt).forEach(function(Ut){Kg[Ut]=mt[Ut]})}(m.class),function(mt,Ut){k.info("Drawing class - ",Ut),ts.clear(),Wc.parser.parse(mt);var Tt=Jt().flowchart,Te=Jt().securityLevel;k.info("config:",Tt);var Ce,Qt=Tt.nodeSpacing||50,ke=Tt.rankSpacing||50,pe=new(Fi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:ts.getDirection(),nodesep:Qt,ranksep:ke,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),Ee=ts.getClasses(),ze=ts.getRelations();k.info(ze),function(bi,or){var Ai=Object.keys(bi);k.info("keys:",Ai),k.info(bi),Ai.forEach(function(lr){var Yn=bi[lr],Da="";Yn.cssClasses.length>0&&(Da=Da+" "+Yn.cssClasses.join(" "));var Ir,Do,J1={labelStyle:""},wy=Yn.text!==void 0?Yn.text:Yn.id;Yn.type,Do="class_box",or.setNode(Yn.id,{labelStyle:J1.labelStyle,shape:Do,labelText:(Ir=wy,Qn.sanitizeText(Ir,Jt())),classData:Yn,rx:0,ry:0,class:Da,style:J1.style,id:Yn.id,domId:Yn.domId,haveCallback:Yn.haveCallback,link:Yn.link,width:Yn.type==="group"?500:void 0,type:Yn.type,padding:Jt().flowchart.padding}),k.info("setNode",{labelStyle:J1.labelStyle,shape:Do,labelText:wy,rx:0,ry:0,class:Da,style:J1.style,id:Yn.id,width:Yn.type==="group"?500:void 0,type:Yn.type,padding:Jt().flowchart.padding})})}(Ee,pe),function(bi,or){var Ai=0;bi.forEach(function(lr){Ai++;var Yn={classes:"relation"};Yn.pattern=lr.relation.lineType==1?"dashed":"solid",Yn.id="id"+Ai,lr.type==="arrow_open"?Yn.arrowhead="none":Yn.arrowhead="normal",k.info(Yn,lr),Yn.startLabelRight=lr.relationTitle1==="none"?"":lr.relationTitle1,Yn.endLabelLeft=lr.relationTitle2==="none"?"":lr.relationTitle2,Yn.arrowTypeStart=B1(lr.relation.type1),Yn.arrowTypeEnd=B1(lr.relation.type2);var Da="",Ir="";if(lr.style!==void 0){var Do=sc(lr.style);Da=Do.style,Ir=Do.labelStyle}else Da="fill:none";Yn.style=Da,Yn.labelStyle=Ir,lr.interpolate!==void 0?Yn.curve=As(lr.interpolate,xo):bi.defaultInterpolate!==void 0?Yn.curve=As(bi.defaultInterpolate,xo):Yn.curve=As(Kg.curve,xo),lr.text=lr.title,lr.text===void 0?lr.style!==void 0&&(Yn.arrowheadStyle="fill: #333"):(Yn.arrowheadStyle="fill: #333",Yn.labelpos="c",Jt().flowchart.htmlLabels?(Yn.labelType="html",Yn.label='<span class="edgeLabel">'+lr.text+"</span>"):(Yn.labelType="text",Yn.label=lr.text.replace(Qn.lineBreakRegex,`
|
|
`),lr.style===void 0&&(Yn.style=Yn.style||"stroke: #333; stroke-width: 1.5px;fill:none"),Yn.labelStyle=Yn.labelStyle.replace("color:","fill:"))),or.setEdge(lr.id1,lr.id2,Yn,Ai)})}(ze,pe),Te==="sandbox"&&(Ce=He("#i"+Ut));var je=He(Te==="sandbox"?Ce.nodes()[0].contentDocument.body:"body"),yn=je.select('[id="'.concat(Ut,'"]'));yn.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var cn=je.select("#"+Ut+" g");if(Xg(cn,pe,["aggregation","extension","composition","dependency"],"classDiagram",Ut),Xf(pe,yn,Tt.diagramPadding,Tt.useMaxWidth),!Tt.htmlLabels)for(var Ln=Te==="sandbox"?Ce.nodes()[0].contentDocument:document,ar=Ln.querySelectorAll('[id="'+Ut+'"] .edgeLabel .label'),Fr=0;Fr<ar.length;Fr++){var En=ar[Fr],Kr=En.getBBox(),ci=Ln.createElementNS("http://www.w3.org/2000/svg","rect");ci.setAttribute("rx",0),ci.setAttribute("ry",0),ci.setAttribute("width",Kr.width),ci.setAttribute("height",Kr.height),En.insertBefore(ci,En.firstChild)}eo(Wc.parser.yy,yn,Ut)}(d,i);break;case"state":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,m.state,tx(d,i);break;case"stateDiagram":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,E6(m.state),function(mt,Ut){k.info("Drawing state diagram (v2)",Ut),la.clear(),Br={};var Tt=g6().parser;Tt.yy=la,Tt.parse(mt);var Te=la.getDirection();Te===void 0&&(Te="LR");var Ce=Jt().state,Qt=Ce.nodeSpacing||50,ke=Ce.rankSpacing||50,pe=Jt().securityLevel;k.info(la.getRootDocV2()),la.extract(la.getRootDocV2()),k.info(la.getRootDocV2());var Ee,ze=new(Fi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:i6(la.getRootDocV2()),nodesep:Qt,ranksep:ke,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Pv(ze,void 0,la.getRootDocV2(),!0),pe==="sandbox"&&(Ee=He("#i"+Ut));var je=He(pe==="sandbox"?Ee.nodes()[0].contentDocument.body:"body"),yn=(pe==="sandbox"&&Ee.nodes()[0].contentDocument,je.select('[id="'.concat(Ut,'"]'))),cn=je.select("#"+Ut+" g");Xg(cn,ze,["barb"],"statediagram",Ut);var Ln=yn.node().getBBox(),ar=Ln.width+16,Fr=Ln.height+16;yn.attr("class","statediagram");var En=yn.node().getBBox();yo(yn,Fr,1.75*ar,Ce.useMaxWidth);var Kr="".concat(En.x-8," ").concat(En.y-8," ").concat(ar," ").concat(Fr);k.debug("viewBox ".concat(Kr)),yn.attr("viewBox",Kr);for(var ci=document.querySelectorAll('[id="'+Ut+'"] .edgeLabel .label'),bi=0;bi<ci.length;bi++){var or=ci[bi],Ai=or.getBBox(),lr=document.createElementNS("http://www.w3.org/2000/svg","rect");lr.setAttribute("rx",0),lr.setAttribute("ry",0),lr.setAttribute("width",Ai.width),lr.setAttribute("height",Ai.height),or.insertBefore(lr,or.firstChild)}eo(Tt.yy,yn,Ut)}(d,i);break;case"info":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,Yr(m.class),function(mt,Ut,Tt){try{var Te=rh().parser;Te.yy=Hl,k.debug(`Renering info diagram
|
|
`+mt);var Ce,Qt=Jt().securityLevel;Qt==="sandbox"&&(Ce=He("#i"+Ut));var ke=He(Qt==="sandbox"?Ce.nodes()[0].contentDocument.body:"body");Qt==="sandbox"&&Ce.nodes()[0].contentDocument,Te.parse(mt),k.debug("Parsed info diagram");var pe=ke.select("#"+Ut);pe.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+Tt),pe.attr("height",100),pe.attr("width",400)}catch(Ee){k.error("Error while rendering info diagram"),k.error(Ee.message)}}(d,i,fg);break;case"pie":_c(d,i);break;case"er":Jg(m.er),tv(d,i);break;case"journey":I6(m.journey),cx(d,i);break;case"requirement":w(m.requirement),N(d,i)}}catch(mt){throw function(Ut,Tt){try{k.debug(`Renering svg for syntax error
|
|
`);var Te=He("#"+Ut),Ce=Te.append("g");Ce.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),Ce.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),Ce.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),Ce.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),Ce.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),Ce.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),Ce.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),Ce.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+Tt),Te.attr("height",100),Te.attr("width",400),Te.attr("viewBox","768 0 512 512")}catch(Qt){k.error("Error while rendering info diagram"),k.error(Qt.message)}}(i,fg),mt}x.select('[id="'.concat(i,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var ne=x.select("#d"+i).node().innerHTML;if(k.debug("cnf.arrowMarkerAbsolute",m.arrowMarkerAbsolute),m.arrowMarkerAbsolute&&m.arrowMarkerAbsolute!=="false"||m.arrowMarkerAbsolute==="sandbox"||(ne=ne.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),ne=(ne=B6(ne)).replace(/<br>/g,"<br/>"),m.securityLevel==="sandbox"){var ie=x.select("#d"+i+" svg").node(),Ot="100%";ie&&(Ot=ie.viewBox.baseVal.height+"px"),ne='<iframe style="width:'.concat("100%",";height:").concat(Ot,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+ne+"</body>"),`" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
|
The \u201Ciframe\u201D tag is not supported by your browser.
|
|
</iframe>`)}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(/<br\s*\/?>/gi,"<br/>");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<i.length;m++)_(m)},U6=function(){bo.startOnLoad?Oi.getConfig().startOnLoad&&bo.init():bo.startOnLoad===void 0&&(k.debug("In start, no config"),Oi.getConfig().startOnLoad&&bo.init())};typeof document!="undefined"&&window.addEventListener("load",function(){U6()},!1);var bo={startOnLoad:!0,htmlLabels:!0,mermaidAPI:Oi,parse:Oi!=null?Oi.parse:null,render:Oi!=null?Oi.render:null,init:function(){try{P6.apply(void 0,arguments)}catch(i){k.warn("Syntax Error rendering"),k.warn(i),this.parseError&&this.parseError(i)}},initThrowsErrors:P6,initialize:function(i){i.mermaid!==void 0&&(i.mermaid.startOnLoad!==void 0&&(bo.startOnLoad=i.mermaid.startOnLoad),i.mermaid.htmlLabels!==void 0&&(bo.htmlLabels=i.mermaid.htmlLabels!=="false"&&i.mermaid.htmlLabels!==!1)),Oi.initialize(i)},contentLoaded:U6,setParseErrorHandler:function(i){bo.parseError=i}};const Uv=bo},4949:(p,T,f)=>{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<E&&(F=-F);var P=Math.abs(f*b*O/L);return g.y<k&&(P=-P),{x:E+F,y:k+P}}},6808:p=>{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;K<E.length;K++){var nt=E[K],ht=E[K<E.length-1?K+1:0],J=b(g,k,{x:$+nt.x,y:W+nt.y},{x:$+ht.x,y:W+ht.y});J&&L.push(J)}return L.length?(L.length>1&&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<Bt?-1:qt===Bt?0:1}),L[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",g),g)}},8049:p=>{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<L.length;++W)F=L[W],$?(P+=F==="n"?`
|
|
`:F,$=!1):F==="\\"?$=!0:P+=F;return P}(E.label).split(`
|
|
`),O=0;O<M.length;O++)k.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(M[O]);return b.applyStyle(k,E.labelStyle),k}},1034:(p,T,f)=>{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 o<l?-1:o>l?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<w;){var N=v+w>>>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<w;){var N=v+w>>>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);h<y;)w[h]=l(v,v=o[++h]);return w}function P(o,l){return[o,l]}function $(o,l,h){var y,v,w,N,S=o.length,D=l.length,R=new Array(S*D);for(h==null&&(h=P),y=w=0;y<S;++y)for(N=o[y],v=0;v<D;++v,++w)R[w]=h(N,l[v]);return R}function W(o,l){return l<o?-1:l>o?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(;++N<v;)isNaN(h=K(o[N]))||(D+=(y=h-S)*(h-(S+=y/++w)));else for(;++N<v;)isNaN(h=K(l(o[N],N,o)))||(D+=(y=h-S)*(h-(S+=y/++w)));if(w>1)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<w;)if((h=o[N])!=null&&h>=h)for(y=v=h;++N<w;)(h=o[N])!=null&&(y>h&&(y=h),v<h&&(v=h))}else for(;++N<w;)if((h=l(o[N],N,o))!=null&&h>=h)for(y=v=h;++N<w;)(h=l(o[N],N,o))!=null&&(y>h&&(y=h),v<h&&(v=h));return[y,v]}var bt=Array.prototype,at=bt.slice,st=bt.map;function St(o){return function(){return o}}function qt(o){return o}function Nt(o,l,h){o=+o,l=+l,h=(v=arguments.length)<2?(l=o,o=0,1):v<3?1:+h;for(var y=-1,v=0|Math.max(0,Math.ceil((l-o)/h)),w=new Array(v);++y<v;)w[y]=o+y*h;return w}var yt=Math.sqrt(50),Bt=Math.sqrt(10),kt=Math.sqrt(2);function ft(o,l,h){var y,v,w,N,S=-1;if(h=+h,(o=+o)==(l=+l)&&h>0)return[o];if((y=l<o)&&(v=o,o=l,l=v),(N=rt(o,l,h))===0||!isFinite(N))return[];if(N>0)for(o=Math.ceil(o/N),l=Math.floor(l/N),w=new Array(v=Math.ceil(l-o+1));++S<v;)w[S]=(o+S)*N;else for(o=Math.floor(o*N),l=Math.ceil(l*N),w=new Array(v=Math.ceil(o-l+1));++S<v;)w[S]=(o-S)/N;return y&&w.reverse(),w}function rt(o,l,h){var y=(l-o)/Math.max(0,h),v=Math.floor(Math.log(y)/Math.LN10),w=y/Math.pow(10,v);return v>=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),l<o?-v:v}function G(o){return Math.ceil(Math.log(o.length)/Math.LN2)+1}function Lt(){var o=qt,l=J,h=G;function y(v){var w,N,S=v.length,D=new Array(S);for(w=0;w<S;++w)D[w]=o(v[w],w,v);var R=l(D),z=R[0],q=R[1],U=h(D,z,q);Array.isArray(U)||(U=dt(z,q,U),U=Nt(Math.ceil(z/U)*U,q,U));for(var Z=U.length;U[0]<=z;)U.shift(),--Z;for(;U[Z-1]>q;)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<Z?U[w]:q;for(w=0;w<S;++w)z<=(N=D[w])&&N<=q&&ct[L(U,N,0,Z)].push(v[w]);return ct}return y.value=function(v){return arguments.length?(o=typeof v=="function"?v:St(v),y):o},y.domain=function(v){return arguments.length?(l=typeof v=="function"?v:St([v[0],v[1]]),y):l},y.thresholds=function(v){return arguments.length?(h=typeof v=="function"?v:Array.isArray(v)?St(at.call(v)):St(v),y):h},y}function V(o,l,h){if(h==null&&(h=K),y=o.length){if((l=+l)<=0||y<2)return+h(o[0],0,o);if(l>=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<v;)if((h=o[w])!=null&&h>=h)for(y=h;++w<v;)(h=o[w])!=null&&h>y&&(y=h)}else for(;++w<v;)if((h=l(o[w],w,o))!=null&&h>=h)for(y=h;++w<v;)(h=l(o[w],w,o))!=null&&h>y&&(y=h);return y}function ye(o,l){var h,y=o.length,v=y,w=-1,N=0;if(l==null)for(;++w<y;)isNaN(h=K(o[w]))?--v:N+=h;else for(;++w<y;)isNaN(h=K(l(o[w],w,o)))?--v:N+=h;if(v)return N/v}function qe(o,l){var h,y=o.length,v=-1,w=[];if(l==null)for(;++v<y;)isNaN(h=K(o[v]))||w.push(h);else for(;++v<y;)isNaN(h=K(l(o[v],v,o)))||w.push(h);return V(w.sort(g),.5)}function xe(o){for(var l,h,y,v=o.length,w=-1,N=0;++w<v;)N+=o[w].length;for(h=new Array(N);--v>=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<v;)if((h=o[w])!=null&&h>=h)for(y=h;++w<v;)(h=o[w])!=null&&y>h&&(y=h)}else for(;++w<v;)if((h=l(o[w],w,o))!=null&&h>=h)for(y=h;++w<v;)(h=l(o[w],w,o))!=null&&y>h&&(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<h;)(l(y=o[v],N)<0||l(N,N)!==0)&&(N=y,w=v);return l(N,N)===0?w:void 0}}function Le(o,l,h){for(var y,v,w=(h==null?o.length:h)-(l=l==null?0:+l);w;)v=Math.random()*w--|0,y=o[w+l],o[w+l]=o[v+l],o[v+l]=y;return o}function ve(o,l){var h,y=o.length,v=-1,w=0;if(l==null)for(;++v<y;)(h=+o[v])&&(w+=h);else for(;++v<y;)(h=+l(o[v],v,o))&&(w+=h);return w}function kn(o){if(!(v=o.length))return[];for(var l=-1,h=he(o,be),y=new Array(h);++l<h;)for(var v,w=-1,N=y[l]=new Array(v);++w<v;)N[w]=o[w][l];return y}function be(o){return o.length}function Ge(){return kn(arguments)}var $t=Array.prototype.slice;function fe(o){return o}var oe=1e-6;function Ft(o){return"translate("+(o+.5)+",0)"}function Me(o){return"translate(0,"+(o+.5)+")"}function et(o){return function(l){return+o(l)}}function Ne(o){var l=Math.max(0,o.bandwidth()-1)/2;return o.round()&&(l=Math.round(l)),function(h){return+o(h)+l}}function lt(){return!this.__axis}function Ae(o,l){var h=[],y=null,v=null,w=6,N=6,S=3,D=o===1||o===4?-1:1,R=o===4||o===2?"x":"y",z=o===1||o===3?Ft:Me;function q(U){var Z=y==null?l.ticks?l.ticks.apply(l,h):l.domain():y,Q=v==null?l.tickFormat?l.tickFormat.apply(l,h):fe:v,ct=Math.max(w,0)+S,ot=l.range(),it=+ot[0]+.5,gt=+ot[ot.length-1]+.5,pt=(l.bandwidth?Ne:et)(l.copy()),Mt=U.selection?U.selection():U,Wt=Mt.selectAll(".domain").data([null]),ee=Mt.selectAll(".tick").data(Z,l).order(),le=ee.exit(),Be=ee.enter().append("g").attr("class","tick"),Xt=ee.select("line"),_e=ee.select("text");Wt=Wt.merge(Wt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ee=ee.merge(Be),Xt=Xt.merge(Be.append("line").attr("stroke","currentColor").attr(R+"2",D*w)),_e=_e.merge(Be.append("text").attr("fill","currentColor").attr(R,D*ct).attr("dy",o===1?"0em":o===3?"0.71em":"0.32em")),U!==Mt&&(Wt=Wt.transition(U),ee=ee.transition(U),Xt=Xt.transition(U),_e=_e.transition(U),le=le.transition(U).attr("opacity",oe).attr("transform",function(Et){return isFinite(Et=pt(Et))?z(Et):this.getAttribute("transform")}),Be.attr("opacity",oe).attr("transform",function(Et){var Pt=this.parentNode.__axis;return z(Pt&&isFinite(Pt=Pt(Et))?Pt:pt(Et))})),le.remove(),Wt.attr("d",o===4||o==2?N?"M"+D*N+","+it+"H0.5V"+gt+"H"+D*N:"M0.5,"+it+"V"+gt:N?"M"+it+","+D*N+"V0.5H"+gt+"V"+D*N:"M"+it+",0.5H"+gt),ee.attr("opacity",1).attr("transform",function(Et){return z(pt(Et))}),Xt.attr(R+"2",D*w),_e.attr(R,D*ct).text(Q),Mt.filter(lt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",o===2?"start":o===4?"end":"middle"),Mt.each(function(){this.__axis=pt})}return q.scale=function(U){return arguments.length?(l=U,q):l},q.ticks=function(){return h=$t.call(arguments),q},q.tickArguments=function(U){return arguments.length?(h=U==null?[]:$t.call(U),q):h.slice()},q.tickValues=function(U){return arguments.length?(y=U==null?null:$t.call(U),q):y&&y.slice()},q.tickFormat=function(U){return arguments.length?(v=U,q):v},q.tickSize=function(U){return arguments.length?(w=N=+U,q):w},q.tickSizeInner=function(U){return arguments.length?(w=+U,q):w},q.tickSizeOuter=function(U){return arguments.length?(N=+U,q):N},q.tickPadding=function(U){return arguments.length?(S=+U,q):S},q}function ae(o){return Ae(1,o)}function we(o){return Ae(2,o)}function Ye(o){return Ae(3,o)}function Pe(o){return Ae(4,o)}var ln={value:function(){}};function De(){for(var o,l=0,h=arguments.length,y={};l<h;++l){if(!(o=arguments[l]+"")||o in y||/[\s.]/.test(o))throw new Error("illegal type: "+o);y[o]=[]}return new Ke(y)}function Ke(o){this._=o}function rn(o,l){return o.trim().split(/^|\s+/).map(function(h){var y="",v=h.indexOf(".");if(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;y<v;++y)if((h=o[y]).name===l)return h.value}function Oe(o,l,h){for(var y=0,v=o.length;y<v;++y)if(o[y].name===l){o[y]=ln,o=o.slice(0,y).concat(o.slice(y+1));break}return h!=null&&o.push({name:l,value:h}),o}Ke.prototype=De.prototype={constructor:Ke,on:function(o,l){var h,y=this._,v=rn(o+"",y),w=-1,N=v.length;if(!(arguments.length<2)){if(l!=null&&typeof l!="function")throw new Error("invalid callback: "+l);for(;++w<N;)if(h=(o=v[w]).type)y[h]=Oe(y[h],o.name,l);else if(l==null)for(h in y)y[h]=Oe(y[h],o.name,null);return this}for(;++w<N;)if((h=(o=v[w]).type)&&(h=on(y[h],o.name)))return h},copy:function(){var o={},l=this._;for(var h in l)o[h]=l[h].slice();return new Ke(o)},call:function(o,l){if((h=arguments.length-2)>0)for(var h,y,v=new Array(h),w=0;w<h;++w)v[w]=arguments[w+2];if(!this._.hasOwnProperty(o))throw new Error("unknown type: "+o);for(w=0,h=(y=this._[o]).length;w<h;++w)y[w].value.apply(l,v)},apply:function(o,l,h){if(!this._.hasOwnProperty(o))throw new Error("unknown type: "+o);for(var y=this._[o],v=0,w=y.length;v<w;++v)y[v].value.apply(l,h)}};const dn=De;function mn(){}function We(o){return o==null?mn:function(){return this.querySelector(o)}}function $e(){return[]}function Ue(o){return o==null?$e:function(){return this.querySelectorAll(o)}}function Qe(o){return function(){return this.matches(o)}}function qn(o){return new Array(o.length)}function zt(o,l){this.ownerDocument=o.ownerDocument,this.namespaceURI=o.namespaceURI,this._next=null,this._parent=o,this.__data__=l}function Dn(o,l,h,y,v,w){for(var N,S=0,D=l.length,R=w.length;S<R;++S)(N=l[S])?(N.__data__=w[S],y[S]=N):h[S]=new zt(o,w[S]);for(;S<D;++S)(N=l[S])&&(v[S]=N)}function Ht(o,l,h,y,v,w,N){var S,D,R,z={},q=l.length,U=w.length,Z=new Array(q);for(S=0;S<q;++S)(D=l[S])&&(Z[S]=R="$"+N.call(D,D.__data__,S,l),R in z?v[S]=D:z[R]=D);for(S=0;S<U;++S)(D=z[R="$"+N.call(o,w[S],S,w)])?(y[S]=D,D.__data__=w[S],z[R]=null):h[S]=new zt(o,w[S]);for(S=0;S<q;++S)(D=l[S])&&z[Z[S]]===D&&(v[S]=D)}function gn(o,l){return o<l?-1:o>l?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<v;)h.add(l[y])}function kr(o,l){for(var h=Ci(o),y=-1,v=l.length;++y<v;)h.remove(l[y])}function br(o){return function(){xi(this,o)}}function li(o){return function(){kr(this,o)}}function ai(o,l){return function(){(l.apply(this,arguments)?xi:kr)(this,o)}}function gi(){this.textContent=""}function ti(o){return function(){this.textContent=o}}function yi(o){return function(){var l=o.apply(this,arguments);this.textContent=l==null?"":l}}function ei(){this.innerHTML=""}function mr(o){return function(){this.innerHTML=o}}function ni(o){return function(){var l=o.apply(this,arguments);this.innerHTML=l==null?"":l}}function ui(){this.nextSibling&&this.parentNode.appendChild(this)}function hi(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wi(o){return function(){var l=this.ownerDocument,h=this.namespaceURI;return h===In&&l.documentElement.namespaceURI===In?l.createElement(o):l.createElementNS(h,o)}}function io(o){return function(){return this.ownerDocument.createElementNS(o.space,o.local)}}function Cr(o){var l=Gn(o);return(l.local?io:wi)(l)}function Ia(){return null}function ha(){var o=this.parentNode;o&&o.removeChild(this)}function ji(){var o=this.cloneNode(!1),l=this.parentNode;return l?l.insertBefore(o,this.nextSibling):o}function vn(){var o=this.cloneNode(!0),l=this.parentNode;return l?l.insertBefore(o,this.nextSibling):o}_n.prototype={add:function(o){this._names.indexOf(o)<0&&(this._names.push(o),this._node.setAttribute("class",this._names.join(" ")))},remove:function(o){var l=this._names.indexOf(o);l>=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<w;++y)h=l[y],o.type&&h.type!==o.type||h.name!==o.name?l[++v]=h:this.removeEventListener(h.type,h.listener,h.capture);++v?l.length=v:delete this.__on}}}function re(o,l,h){var y=nr.hasOwnProperty(o.type)?Ve:Er;return function(v,w,N){var S,D=this.__on,R=y(l,w,N);if(D){for(var z=0,q=D.length;z<q;++z)if((S=D[z]).type===o.type&&S.name===o.name)return this.removeEventListener(S.type,S.listener,S.capture),this.addEventListener(S.type,S.listener=R,S.capture=h),void(S.value=l)}this.addEventListener(o.type,R,h),S={type:o.type,name:o.name,value:l,listener:R,capture:h},D?D.push(S):this.__on=[S]}}function ri(o,l,h,y){var v=Re;o.sourceEvent=Re,Re=o;try{return l.apply(h,y)}finally{Re=v}}function Io(o,l,h){var y=zn(o),v=y.CustomEvent;typeof v=="function"?v=new v(l,h):(v=y.document.createEvent("Event"),h?(v.initEvent(l,h.bubbles,h.cancelable),v.detail=h.detail):v.initEvent(l,!1,!1)),o.dispatchEvent(v)}function Fs(o,l){return function(){return Io(this,o,l)}}function bc(o,l){return function(){return Io(this,o,l.apply(this,arguments))}}typeof document!="undefined"&&("onmouseenter"in document.documentElement||(nr={mouseenter:"mouseover",mouseleave:"mouseout"}));var Ea=[null];function Xn(o,l){this._groups=o,this._parents=l}function jr(){return new Xn([[document.documentElement]],Ea)}Xn.prototype=jr.prototype={constructor:Xn,select:function(o){typeof o!="function"&&(o=We(o));for(var l=this._groups,h=l.length,y=new Array(h),v=0;v<h;++v)for(var w,N,S=l[v],D=S.length,R=y[v]=new Array(D),z=0;z<D;++z)(w=S[z])&&(N=o.call(w,w.__data__,z,S))&&("__data__"in w&&(N.__data__=w.__data__),R[z]=N);return new Xn(y,this._parents)},selectAll:function(o){typeof o!="function"&&(o=Ue(o));for(var l=this._groups,h=l.length,y=[],v=[],w=0;w<h;++w)for(var N,S=l[w],D=S.length,R=0;R<D;++R)(N=S[R])&&(y.push(o.call(N,N.__data__,R,S)),v.push(N));return new Xn(y,v)},filter:function(o){typeof o!="function"&&(o=Qe(o));for(var l=this._groups,h=l.length,y=new Array(h),v=0;v<h;++v)for(var w,N=l[v],S=N.length,D=y[v]=[],R=0;R<S;++R)(w=N[R])&&o.call(w,w.__data__,R,N)&&D.push(w);return new Xn(y,this._parents)},data:function(o,l){if(!o)return Q=new Array(this.size()),z=-1,this.each(function(ee){Q[++z]=ee}),Q;var h,y=l?Ht:Dn,v=this._parents,w=this._groups;typeof o!="function"&&(h=o,o=function(){return h});for(var N=w.length,S=new Array(N),D=new Array(N),R=new Array(N),z=0;z<N;++z){var q=v[z],U=w[z],Z=U.length,Q=o.call(q,q&&q.__data__,z,v),ct=Q.length,ot=D[z]=new Array(ct),it=S[z]=new Array(ct);y(q,U,ot,it,R[z]=new Array(Z),Q,l);for(var gt,pt,Mt=0,Wt=0;Mt<ct;++Mt)if(gt=ot[Mt]){for(Mt>=Wt&&(Wt=Mt+1);!(pt=it[Wt])&&++Wt<ct;);gt._next=pt||null}}return(S=new Xn(S,v))._enter=D,S._exit=R,S},enter:function(){return new Xn(this._enter||this._groups.map(qn),this._parents)},exit:function(){return new Xn(this._exit||this._groups.map(qn),this._parents)},join:function(o,l,h){var y=this.enter(),v=this,w=this.exit();return y=typeof o=="function"?o(y):y.append(o+""),l!=null&&(v=l(v)),h==null?w.remove():h(w),y&&v?y.merge(v).order():v},merge:function(o){for(var l=this._groups,h=o._groups,y=l.length,v=h.length,w=Math.min(y,v),N=new Array(y),S=0;S<w;++S)for(var D,R=l[S],z=h[S],q=R.length,U=N[S]=new Array(q),Z=0;Z<q;++Z)(D=R[Z]||z[Z])&&(U[Z]=D);for(;S<y;++S)N[S]=l[S];return new Xn(N,this._parents)},order:function(){for(var o=this._groups,l=-1,h=o.length;++l<h;)for(var y,v=o[l],w=v.length-1,N=v[w];--w>=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;w<y;++w){for(var N,S=h[w],D=S.length,R=v[w]=new Array(D),z=0;z<D;++z)(N=S[z])&&(R[z]=N);R.sort(l)}return new Xn(v,this._parents).order()},call:function(){var o=arguments[0];return arguments[0]=this,o.apply(null,arguments),this},nodes:function(){var o=new Array(this.size()),l=-1;return this.each(function(){o[++l]=this}),o},node:function(){for(var o=this._groups,l=0,h=o.length;l<h;++l)for(var y=o[l],v=0,w=y.length;v<w;++v){var N=y[v];if(N)return N}return null},size:function(){var o=0;return this.each(function(){++o}),o},empty:function(){return!this.node()},each:function(o){for(var l=this._groups,h=0,y=l.length;h<y;++h)for(var v,w=l[h],N=0,S=w.length;N<S;++N)(v=w[N])&&o.call(v,v.__data__,N,w);return this},attr:function(o,l){var h=Gn(o);if(arguments.length<2){var y=this.node();return h.local?y.getAttributeNS(h.space,h.local):y.getAttribute(h)}return this.each((l==null?h.local?$r:er:typeof l=="function"?h.local?On:Pn:h.local?jn:An)(h,l))},style:function(o,l,h){return arguments.length>1?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<w;)if(!y.contains(h[v]))return!1;return!0}return this.each((typeof l=="function"?ai:l?br:li)(h,l))},text:function(o){return arguments.length?this.each(o==null?gi:(typeof o=="function"?yi:ti)(o)):this.node().textContent},html:function(o){return arguments.length?this.each(o==null?ei:(typeof o=="function"?ni:mr)(o)):this.node().innerHTML},raise:function(){return this.each(ui)},lower:function(){return this.each(hi)},append:function(o){var l=typeof o=="function"?o:Cr(o);return this.select(function(){return this.appendChild(l.apply(this,arguments))})},insert:function(o,l){var h=typeof o=="function"?o:Cr(o),y=l==null?Ia:typeof l=="function"?l:We(l);return this.select(function(){return this.insertBefore(h.apply(this,arguments),y.apply(this,arguments)||null)})},remove:function(){return this.each(ha)},clone:function(o){return this.select(o?vn:ji)},datum:function(o){return arguments.length?this.property("__data__",o):this.node().__data__},on:function(o,l,h){var y,v,w=Vt(o+""),N=w.length;if(!(arguments.length<2)){for(S=l?re:ka,h==null&&(h=!1),y=0;y<N;++y)this.each(S(w[y],l,h));return this}var S=this.node().__on;if(S){for(var D,R=0,z=S.length;R<z;++R)for(y=0,D=S[R];y<N;++y)if((v=w[y]).type===D.type&&v.name===D.name)return D.value}},dispatch:function(o,l){return this.each((typeof l=="function"?bc:Fs)(o,l))}};const Mi=jr;function Hr(o){return typeof o=="string"?new Xn([[document.querySelector(o)]],[document.documentElement]):new Xn([[o]],Ea)}function Ri(){Re.stopImmediatePropagation()}function Ji(){Re.preventDefault(),Re.stopImmediatePropagation()}function Bi(o){var l=o.document.documentElement,h=Hr(o).on("dragstart.drag",Ji,!0);"onselectstart"in l?h.on("selectstart.drag",Ji,!0):(l.__noselect=l.style.MozUserSelect,l.style.MozUserSelect="none")}function Or(o,l){var h=o.document.documentElement,y=Hr(o).on("dragstart.drag",null);l&&(y.on("click.drag",Ji,!0),setTimeout(function(){y.on("click.drag",null)},0)),"onselectstart"in h?y.on("selectstart.drag",null):(h.style.MozUserSelect=h.__noselect,delete h.__noselect)}function fi(o,l,h){o.prototype=l.prototype=h,h.constructor=o}function oi(o,l){var h=Object.create(o.prototype);for(var y in l)h[y]=l[y];return h}function qr(){}var fa=.7,Qi=1/fa,Ni="\\s*([+-]?\\d+)\\s*",Ta="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",di=/^#([0-9a-f]{3,8})$/,Sa=new RegExp("^rgb\\("+[Ni,Ni,Ni]+"\\)$"),da=new RegExp("^rgb\\("+[Jr,Jr,Jr]+"\\)$"),Oo=new RegExp("^rgba\\("+[Ni,Ni,Ni,Ta]+"\\)$"),rl=new RegExp("^rgba\\("+[Jr,Jr,Jr,Ta]+"\\)$"),Kt=new RegExp("^hsl\\("+[Ta,Jr,Jr]+"\\)$"),pn=new RegExp("^hsla\\("+[Ta,Jr,Jr,Ta]+"\\)$"),en={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function rr(){return this.rgb().formatHex()}function Wr(){return this.rgb().formatRgb()}function Gr(o){var l,h;return o=(o+"").trim().toLowerCase(),(l=di.exec(o))?(h=l[1].length,l=parseInt(l[1],16),h===6?si(l):h===3?new ii(l>>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*(h<y):h===w?(y-l)/S+2:(l-h)/S+4,S/=D<.5?w+v:2-w-v,N*=60):S=D>0&&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=y<l-1?o[y+2]:2*w-v;return uh((h-y/l)*l,N,v,w,S)}}function al(o){var l=o.length;return function(h){var y=Math.floor(((h%=1)<0?++h:h)*l),v=o[(y+l-1)%l],w=o[y%l],N=o[(y+1)%l],S=o[(y+2)%l];return uh((h-y/l)*l,v,w,N,S)}}function ol(o){return function(){return o}}function Xl(o,l){return function(h){return o+h*l}}function Va(o,l){var h=l-o;return h?Xl(o,h>180||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;h<v;++h)y=Rr(l[h]),w[h]=y.r||0,N[h]=y.g||0,S[h]=y.b||0;return w=o(w),N=o(N),S=o(S),y.opacity=1,function(D){return y.r=w(D),y.g=N(D),y.b=S(D),y+""}}}var Kl=hh(Pr),Ro=hh(al);function fh(o,l){l||(l=[]);var h,y=o?Math.min(l.length,o.length):0,v=l.slice();return function(w){for(h=0;h<y;++h)v[h]=o[h]*(1-w)+l[h]*w;return v}}function Q1(o){return ArrayBuffer.isView(o)&&!(o instanceof DataView)}function Wd(o,l){return(Q1(l)?fh:t0)(o,l)}function t0(o,l){var h,y=l?l.length:0,v=o?Math.min(y,o.length):0,w=new Array(v),N=new Array(y);for(h=0;h<v;++h)w[h]=sl(o[h],l[h]);for(;h<y;++h)N[h]=l[h];return function(S){for(h=0;h<v;++h)N[h]=w[h](S);return N}}function e0(o,l){var h=new Date;return o=+o,l=+l,function(y){return h.setTime(o*(1-y)+l*y),h}}function Oa(o,l){return o=+o,l=+l,function(h){return o*(1-h)+l*h}}function n0(o,l){var h,y={},v={};for(h in o!==null&&typeof o=="object"||(o={}),l!==null&&typeof l=="object"||(l={}),l)h in o?y[h]=sl(o[h],l[h]):v[h]=l[h];return function(w){for(h in y)v[h]=y[h](w);return v}}var dh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ph=new RegExp(dh.source,"g");function Bo(o,l){var h,y,v,w=dh.lastIndex=ph.lastIndex=0,N=-1,S=[],D=[];for(o+="",l+="";(h=dh.exec(o))&&(y=ph.exec(l));)(v=y.index)>w&&(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<l.length&&(v=l.slice(w),S[N]?S[N]+=v:S[++N]=v),S.length<2?D[0]?function(R){return function(z){return R(z)+""}}(D[0].x):function(R){return function(){return R}}(l):(l=D.length,function(R){for(var z,q=0;q<l;++q)S[(z=D[q]).i]=z.x(R);return S.join("")})}function sl(o,l){var h,y=typeof l;return l==null||y==="boolean"?ol(l):(y==="number"?Oa:y==="string"?(h=Gr(l))?(l=h,xc):Bo:l instanceof Gr?xc:l instanceof Date?e0:Q1(l)?fh:Array.isArray(l)?t0:typeof l.valueOf!="function"&&typeof l.toString!="function"||isNaN(l)?n0:Oa)(o,l)}function so(){for(var o,l=Re;o=l.sourceEvent;)l=o;return l}function cl(o,l){var h=o.ownerSVGElement||o;if(h.createSVGPoint){var y=h.createSVGPoint();return y.x=l.clientX,y.y=l.clientY,[(y=y.matrixTransform(o.getScreenCTM().inverse())).x,y.y]}var v=o.getBoundingClientRect();return[l.clientX-v.left-o.clientLeft,l.clientY-v.top-o.clientTop]}function Ra(o,l,h){arguments.length<3&&(h=l,l=so().changedTouches);for(var y,v=0,w=l?l.length:0;v<w;++v)if((y=l[v]).identifier===h)return cl(o,y);return null}function Ps(o){var l=so();return l.changedTouches&&(l=l.changedTouches[0]),cl(o,l)}var Jl,Fo,ea=0,ki=0,co=0,Za=0,pa=0,sr=0,I=typeof performance=="object"&&performance.now?performance:Date,H=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(o){setTimeout(o,17)};function tt(){return pa||(H(_t),pa=I.now()+sr)}function _t(){pa=0}function te(){this._call=this._time=this._next=null}function Se(o,l,h){var y=new te;return y.restart(o,l,h),y}function Fe(){tt(),++ea;for(var o,l=Jl;l;)(o=pa-l._time)>=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]):+ot<D&&(pt.state=6,pt.timer.stop(),pt.on.call("cancel",S,S.__data__,pt.index,pt.group),delete q[ot])}if(hn(function(){R.state===3&&(R.state=4,R.timer.restart(Z,R.delay,R.time),Z(ct))}),R.state=2,R.on.call("start",S,S.__data__,R.index,R.group),R.state===2){for(R.state=3,z=new Array(gt=R.tween.length),ot=0,it=-1;ot<gt;++ot)(pt=R.tween[ot].value.call(S,S.__data__,R.index,R.group))&&(z[++it]=pt);z.length=it+1}}function Z(ct){for(var ot=ct<R.duration?R.ease.call(null,ct/R.duration):(R.timer.restart(Q),R.state=5,1),it=-1,gt=z.length;++it<gt;)z[it].call(S,ot);R.state===5&&(R.on.call("end",S,S.__data__,R.index,R.group),Q())}function Q(){for(var ct in R.state=6,R.timer.stop(),delete q[D],q)return;delete S.__transition}q[D]=R,R.timer=Se(function(ct){R.state=1,R.timer.restart(U,R.delay,R.time),R.delay<=ct&&U(ct-R.delay)},0,R.time)})(o,h,{name:l,index:y,group:v,on:Un,tween:Rn,time:w.time,delay:w.delay,duration:w.duration,ease:w.ease,timer:null,state:0})}function Tr(o,l){var h=_r(o,l);if(h.state>0)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*y<l*h&&(o=-o,l=-l,D=-D,N=-N),{translateX:v,translateY:w,rotate:Math.atan2(l,o)*Po,skewX:Math.atan(D)*Po,scaleX:N,scaleY:S}}function Ey(o,l,h,y){function v(w){return w.length?w.pop()+" ":""}return function(w,N){var S=[],D=[];return w=o(w),N=o(N),function(R,z,q,U,Z,Q){if(R!==q||z!==U){var ct=Z.push("translate(",null,l,null,h);Q.push({i:ct-4,x:Oa(R,q)},{i:ct-2,x:Oa(z,U)})}else(q||U)&&Z.push("translate("+q+l+U+h)}(w.translateX,w.translateY,N.translateX,N.translateY,S,D),function(R,z,q,U){R!==z?(R-z>180?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<U;)S[(z=D[q]).i]=z.x(R);return S.join("")}}}var Vd=Ey(function(o){return o==="none"?mh:(Us||(Us=document.createElement("DIV"),gh=document.documentElement,Gd=document.defaultView),Us.style.transform=o,o=Gd.getComputedStyle(gh.appendChild(Us),null).getPropertyValue("transform"),gh.removeChild(Us),ky(+(o=o.slice(7,-1).split(","))[0],+o[1],+o[2],+o[3],+o[4],+o[5]))},"px, ","px)","deg)"),Zd=Ey(function(o){return o==null?mh:(yh||(yh=document.createElementNS("http://www.w3.org/2000/svg","g")),yh.setAttribute("transform",o),(o=yh.transform.baseVal.consolidate())?ky((o=o.matrix).a,o.b,o.c,o.d,o.e,o.f):mh)},", ",")",")");function Ty(o,l){var h,y;return function(){var v=Ur(this,o),w=v.tween;if(w!==h){for(var N=0,S=(y=h=w).length;N<S;++N)if(y[N].name===l){(y=y.slice()).splice(N,1);break}}v.tween=y}}function Xd(o,l,h){var y,v;if(typeof h!="function")throw new Error;return function(){var w=Ur(this,o),N=w.tween;if(N!==y){v=(y=N).slice();for(var S={name:l,value:h},D=0,R=v.length;D<R;++D)if(v[D].name===l){v[D]=S;break}D===R&&v.push(S)}w.tween=v}}function r0(o,l,h){var y=o._id;return o.each(function(){var v=Ur(this,y);(v.value||(v.value={}))[l]=h.apply(this,arguments)}),function(v){return _r(v,y).value[l]}}function Kd(o,l){var h;return(typeof l=="number"?Oa:l instanceof Gr?xc:(h=Gr(l))?(l=h,xc):Bo)(o,l)}function cs(o){return function(){this.removeAttribute(o)}}function Jd(o){return function(){this.removeAttributeNS(o.space,o.local)}}function Qd(o,l,h){var y,v,w=h+"";return function(){var N=this.getAttribute(o);return N===w?null:N===y?v:v=l(y=N,h)}}function t2(o,l,h){var y,v,w=h+"";return function(){var N=this.getAttributeNS(o.space,o.local);return N===w?null:N===y?v:v=l(y=N,h)}}function e2(o,l,h){var y,v,w;return function(){var N,S,D=h(this);if(D!=null)return(N=this.getAttribute(o))===(S=D+"")?null:N===y&&S===v?w:(v=S,w=l(y=N,D));this.removeAttribute(o)}}function zv(o,l,h){var y,v,w;return function(){var N,S,D=h(this);if(D!=null)return(N=this.getAttributeNS(o.space,o.local))===(S=D+"")?null:N===y&&S===v?w:(v=S,w=l(y=N,D));this.removeAttributeNS(o.space,o.local)}}function n2(o,l){return function(h){this.setAttribute(o,l.call(this,h))}}function zs(o,l){return function(h){this.setAttributeNS(o.space,o.local,l.call(this,h))}}function Sy(o,l){var h,y;function v(){var w=l.apply(this,arguments);return w!==y&&(h=(y=w)&&zs(o,w)),h}return v._value=l,v}function r2(o,l){var h,y;function v(){var w=l.apply(this,arguments);return w!==y&&(h=(y=w)&&n2(o,w)),h}return v._value=l,v}function Ay(o,l){return function(){Tr(this,o).delay=+l.apply(this,arguments)}}function _h(o,l){return l=+l,function(){Tr(this,o).delay=l}}function Yv(o,l){return function(){Ur(this,o).duration=+l.apply(this,arguments)}}function $v(o,l){return l=+l,function(){Ur(this,o).duration=l}}function i2(o,l){if(typeof l!="function")throw new Error;return function(){Ur(this,o).ease=l}}function a2(o,l,h){var y,v,w=function(N){return(N+"").trim().split(/^|\s+/).every(function(S){var D=S.indexOf(".");return D>=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;N<v;++N)for(var S,D,R=y[N],z=R.length,q=w[N]=new Array(z),U=0;U<z;++U)(S=R[U])&&(D=o.call(S,S.__data__,U,R))&&("__data__"in S&&(D.__data__=S.__data__),q[U]=D,xr(q[U],l,h,U,q,_r(S,h)));return new ls(w,this._parents,l,h)},selectAll:function(o){var l=this._name,h=this._id;typeof o!="function"&&(o=Ue(o));for(var y=this._groups,v=y.length,w=[],N=[],S=0;S<v;++S)for(var D,R=y[S],z=R.length,q=0;q<z;++q)if(D=R[q]){for(var U,Z=o.call(D,D.__data__,q,R),Q=_r(D,h),ct=0,ot=Z.length;ct<ot;++ct)(U=Z[ct])&&xr(U,l,h,ct,Z,Q);w.push(Z),N.push(D)}return new ls(w,N,l,h)},filter:function(o){typeof o!="function"&&(o=Qe(o));for(var l=this._groups,h=l.length,y=new Array(h),v=0;v<h;++v)for(var w,N=l[v],S=N.length,D=y[v]=[],R=0;R<S;++R)(w=N[R])&&o.call(w,w.__data__,R,N)&&D.push(w);return new ls(y,this._parents,this._name,this._id)},merge:function(o){if(o._id!==this._id)throw new Error;for(var l=this._groups,h=o._groups,y=l.length,v=h.length,w=Math.min(y,v),N=new Array(y),S=0;S<w;++S)for(var D,R=l[S],z=h[S],q=R.length,U=N[S]=new Array(q),Z=0;Z<q;++Z)(D=R[Z]||z[Z])&&(U[Z]=D);for(;S<y;++S)N[S]=l[S];return new ls(N,this._parents,this._name,this._id)},selection:function(){return new o2(this._groups,this._parents)},transition:function(){for(var o=this._name,l=this._id,h=h2(),y=this._groups,v=y.length,w=0;w<v;++w)for(var N,S=y[w],D=S.length,R=0;R<D;++R)if(N=S[R]){var z=_r(N,l);xr(N,o,h,R,S,{time:z.time+z.delay+z.duration,delay:0,duration:z.duration,ease:z.ease})}return new ls(y,this._parents,o,h)},call:us.call,nodes:us.nodes,node:us.node,size:us.size,empty:us.empty,each:us.each,on:function(o,l){var h=this._id;return arguments.length<2?_r(this.node(),h).on.on(o):this.each(a2(h,o,l))},attr:function(o,l){var h=Gn(o),y=h==="transform"?Zd:Kd;return this.attrTween(o,typeof l=="function"?(h.local?zv:e2)(h,y,r0(this,"attr."+o,l)):l==null?(h.local?Jd:cs)(h):(h.local?t2:Qd)(h,y,l))},attrTween:function(o,l){var h="attr."+o;if(arguments.length<2)return(h=this.tween(h))&&h._value;if(l==null)return this.tween(h,null);if(typeof l!="function")throw new Error;var y=Gn(o);return this.tween(h,(y.local?Sy:r2)(y,l))},style:function(o,l,h){var y=(o+="")=="transform"?Vd:Kd;return l==null?this.styleTween(o,function(v,w){var N,S,D;return function(){var R=Tn(this,v),z=(this.style.removeProperty(v),Tn(this,v));return R===z?null:R===N&&z===S?D:D=w(N=R,S=z)}}(o,y)).on("end.style."+o,s2(o)):typeof l=="function"?this.styleTween(o,function(v,w,N){var S,D,R;return function(){var z=Tn(this,v),q=N(this),U=q+"";return q==null&&(this.style.removeProperty(v),U=q=Tn(this,v)),z===U?null:z===S&&U===D?R:(D=U,R=w(S=z,q))}}(o,y,r0(this,"style."+o,l))).each(function(v,w){var N,S,D,R,z="style."+w,q="end."+z;return function(){var U=Ur(this,v),Z=U.on,Q=U.value[z]==null?R||(R=s2(w)):void 0;Z===N&&D===Q||(S=(N=Z).copy()).on(q,D=Q),U.on=S}}(this._id,o)):this.styleTween(o,function(v,w,N){var S,D,R=N+"";return function(){var z=Tn(this,v);return z===R?null:z===S?D:D=w(S=z,N)}}(o,y,l),h).on("end.style."+o,null)},styleTween:function(o,l,h){var y="style."+(o+="");if(arguments.length<2)return(y=this.tween(y))&&y._value;if(l==null)return this.tween(y,null);if(typeof l!="function")throw new Error;return this.tween(y,l2(o,l,h==null?"":h))},text:function(o){return this.tween("text",typeof o=="function"?function(l){return function(){var h=l(this);this.textContent=h==null?"":h}}(r0(this,"text",o)):function(l){return function(){this.textContent=l}}(o==null?"":o+""))},textTween:function(o){var l="text";if(arguments.length<1)return(l=this.tween(l))&&l._value;if(o==null)return this.tween(l,null);if(typeof o!="function")throw new Error;return this.tween(l,jv(o))},remove:function(){return this.on("end.remove",function(o){return function(){var l=this.parentNode;for(var h in this.__transition)if(+h!==o)return;l&&l.removeChild(this)}}(this._id))},tween:function(o,l){var h=this._id;if(o+="",arguments.length<2){for(var y,v=_r(this.node(),h).tween,w=0,N=v.length;w<N;++w)if((y=v[w]).name===o)return y.value;return null}return this.each((l==null?Ty:Xd)(h,o,l))},delay:function(o){var l=this._id;return arguments.length?this.each((typeof o=="function"?Ay:_h)(l,o)):_r(this.node(),l).delay},duration:function(o){var l=this._id;return arguments.length?this.each((typeof o=="function"?Yv:$v)(l,o)):_r(this.node(),l).duration},ease:function(o){var l=this._id;return arguments.length?this.each(i2(l,o)):_r(this.node(),l).ease},end:function(){var o,l,h=this,y=h._id,v=h.size();return new Promise(function(w,N){var S={value:N},D={value:function(){--v==0&&w()}};h.each(function(){var R=Ur(this,y),z=R.on;z!==o&&((l=(o=z).copy())._.cancel.push(S),l._.interrupt.push(S),l._.end.push(D)),R.on=l})})}};var ll={time:null,delay:0,duration:250,ease:wc};function hs(o,l){for(var h;!(h=o.__transition)||!(h=h[l]);)if(!(o=o.parentNode))return ll.time=tt(),ll;return h}Mi.prototype.interrupt=function(o){return this.each(function(){Ba(this,o)})},Mi.prototype.transition=function(o){var l,h;o instanceof ls?(l=o._id,o=o._name):(l=h2(),(h=ll).time=tt(),o=o==null?null:o+"");for(var y=this._groups,v=y.length,w=0;w<v;++w)for(var N,S=y[w],D=S.length,R=0;R<D;++R)(N=S[R])&&xr(N,o,l,R,S,h||hs(N,l));return new ls(y,this._parents,o,l)};var qv=[null];function Wv(o,l){var h,y,v=o.__transition;if(v){for(y in l=l==null?null:l+"",v)if((h=v[y]).state>1&&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)))}Wt<it&&(ce*=-1,Lo=ot,ot=Mt,Mt=Lo,Lo=it,it=Wt,Wt=Lo,Pt in p2&&Rs.attr("cursor",fs[Pt=p2[Pt]])),le<pt&&(de*=-1,Lo=gt,gt=ee,ee=Lo,Lo=pt,pt=le,le=Lo,Pt in h0&&Rs.attr("cursor",fs[Pt=h0[Pt]])),tn.selection&&(Bn=tn.selection),Xt&&(it=Bn[0][0],Wt=Bn[1][0]),_e&&(pt=Bn[0][1],le=Bn[1][1]),Bn[0][0]===it&&Bn[0][1]===pt&&Bn[1][0]===Wt&&Bn[1][1]===le||(tn.selection=[[it,pt],[Wt,le]],R.call(Et),el.brush())}function Dv(){if(Cy(),Re.touches){if(Re.touches.length)return;l&&clearTimeout(l),l=setTimeout(function(){l=null},500)}else Or(Re.view,Be),Nv.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);X1.attr("pointer-events","all"),Rs.attr("cursor",fs.overlay),tn.selection&&(Bn=tn.selection),Vv(Bn)&&(tn.selection=null,R.call(Et)),el.end()}function Kb(){switch(Re.keyCode){case 16:wr=ce&&de;break;case 18:ue===ul&&(ce&&(Mt=Wt-Wn*ce,ot=it+Wn*ce),de&&(ee=le-Hn*de,gt=pt+Hn*de),ue=hl,oh());break;case 32:ue!==ul&&ue!==hl||(ce<0?Mt=Wt-Wn:ce>0&&(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;++z<U;){for(S=0,q=-1;++q<U;)S+=w[z][q];Z.push(S),ct.push(Nt(U)),N+=S}for(l&&Q.sort(function(_e,Et){return l(Z[_e],Z[Et])}),h&&ct.forEach(function(_e,Et){_e.sort(function(Pt,ue){return h(w[Et][Pt],w[Et][ue])})}),R=(N=_2(0,Ry-o*U)/N)?o:Ry/U,S=0,z=-1;++z<U;){for(D=S,q=-1;++q<U;){var pt=Q[z],Mt=ct[pt][q],Wt=w[pt][Mt],ee=S,le=S+=Wt*N;gt[Mt*U+pt]={index:pt,subindex:Mt,startAngle:ee,endAngle:le,value:Wt}}it[pt]={index:pt,startAngle:D,endAngle:S,value:Z[pt]},S+=R}for(z=-1;++z<U;)for(q=z-1;++q<U;){var Be=gt[q*U+z],Xt=gt[z*U+q];(Be.value||Xt.value)&&ot.push(Be.value<Xt.value?{source:Xt,target:Be}:{source:Be,target:Xt})}return y?ot.sort(y):ot}return v.padAngle=function(w){return arguments.length?(o=_2(0,w),v):o},v.sortGroups=function(w){return arguments.length?(l=w,v):l},v.sortSubgroups=function(w){return arguments.length?(h=w,v):h},v.sortChords=function(w){return arguments.length?(w==null?y=null:(y=eu(w))._=w,v):y&&y._},v}var Kv=Array.prototype.slice;function b2(o){return function(){return o}}var y0=Math.PI,m0=2*y0,Ys=1e-6,By=m0-Ys;function x2(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function bh(){return new x2}x2.prototype=bh.prototype={constructor:x2,moveTo:function(o,l){this._+="M"+(this._x0=this._x1=+o)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(o,l){this._+="L"+(this._x1=+o)+","+(this._y1=+l)},quadraticCurveTo:function(o,l,h,y){this._+="Q"+ +o+","+ +l+","+(this._x1=+h)+","+(this._y1=+y)},bezierCurveTo:function(o,l,h,y,v,w){this._+="C"+ +o+","+ +l+","+ +h+","+ +y+","+(this._x1=+v)+","+(this._y1=+w)},arcTo:function(o,l,h,y,v){o=+o,l=+l,h=+h,y=+y,v=+v;var w=this._x1,N=this._y1,S=h-o,D=y-l,R=w-o,z=N-l,q=R*R+z*z;if(v<0)throw new Error("negative radius: "+v);if(this._x1===null)this._+="M"+(this._x1=o)+","+(this._y1=l);else if(q>Ys)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<w;)h.set(v,o[v]);else for(;++v<w;)h.set(l(y=o[v],v,o),y)}else if(o)for(var N in o)h.set(N,o[N]);return h}xh.prototype=k2.prototype={constructor:xh,has:function(o){return uo+o in this},get:function(o){return this[uo+o]},set:function(o,l){return this[uo+o]=l,this},remove:function(o){var l=uo+o;return l in this&&delete this[l]},clear:function(){for(var o in this)o[0]===uo&&delete this[o]},keys:function(){var o=[];for(var l in this)l[0]===uo&&o.push(l.slice(1));return o},values:function(){var o=[];for(var l in this)l[0]===uo&&o.push(this[l]);return o},entries:function(){var o=[];for(var l in this)l[0]===uo&&o.push({key:l.slice(1),value:this[l]});return o},size:function(){var o=0;for(var l in this)l[0]===uo&&++o;return o},empty:function(){for(var o in this)if(o[0]===uo)return!1;return!0},each:function(o){for(var l in this)l[0]===uo&&o(this[l],l.slice(1),this)}};const js=k2;function Jv(){var o,l,h,y=[],v=[];function w(S,D,R,z){if(D>=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();++Q<ct;)(Z=it.get(q=ot(U=S[Q])+""))?Z.push(U):it.set(q,[U]);return it.each(function(pt,Mt){z(gt,Mt,w(pt,D,R,z))}),gt}function N(S,D){if(++D>y.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<v;)h.add(o[y]);else for(;++y<v;)h.add(l(o[y],y,o))}return h}wh.prototype=ru.prototype={constructor:wh,has:kc.has,add:function(o){return this[uo+(o+="")]=o,this},remove:kc.remove,clear:kc.clear,values:kc.keys,size:kc.size,empty:kc.empty,each:kc.each};const Ec=ru;function kh(o){var l=[];for(var h in o)l.push(h);return l}function T2(o){var l=[];for(var h in o)l.push(o[h]);return l}function S2(o){var l=[];for(var h in o)l.push({key:h,value:o[h]});return l}var v0=Math.PI/180,b0=180/Math.PI,x0=.96422,Hi=.82521,w0=4/29,A2=6/29,jy=3*A2*A2;function iu(o){if(o instanceof Uo)return new Uo(o.l,o.a,o.b,o.opacity);if(o instanceof ds)return N2(o);o instanceof ii||(o=Aa(o));var l,h,y=Hs(o.r),v=Hs(o.g),w=Hs(o.b),N=k0((.2225045*y+.7168786*v+.0606169*w)/1);return y===v&&v===w?l=h=N:(l=k0((.4360747*y+.3850649*v+.1430804*w)/x0),h=k0((.0139322*y+.0971045*v+.7141733*w)/Hi)),new Uo(116*N-16,500*(l-N),200*(N-h),o.opacity)}function Qv(o,l){return new Uo(o,0,0,l==null?1:l)}function Eh(o,l,h,y){return arguments.length===1?iu(o):new Uo(o,l,h,y==null?1:y)}function Uo(o,l,h,y){this.l=+o,this.a=+l,this.b=+h,this.opacity=+y}function k0(o){return o>.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,0<o.l&&o.l<100?0:NaN,o.l,o.opacity);var l=Math.atan2(o.b,o.a)*b0;return new ds(l<0?l+360:l,Math.sqrt(o.a*o.a+o.b*o.b),o.l,o.opacity)}function M2(o,l,h,y){return arguments.length===1?E0(o):new ds(h,l,o,y==null?1:y)}function Tc(o,l,h,y){return arguments.length===1?E0(o):new ds(o,l,h,y==null?1:y)}function ds(o,l,h,y){this.h=+o,this.c=+l,this.l=+h,this.opacity=+y}function N2(o){if(isNaN(o.h))return new Uo(o.l,0,0,o.opacity);var l=o.h*v0;return new Uo(o.l,Math.cos(l)*o.c,Math.sin(l)*o.c,o.opacity)}fi(Uo,Eh,oi(qr,{brighter:function(o){return new Uo(this.l+18*(o==null?1:o),this.a,this.b,this.opacity)},darker:function(o){return new Uo(this.l-18*(o==null?1:o),this.a,this.b,this.opacity)},rgb:function(){var o=(this.l+16)/116,l=isNaN(this.a)?o:o+this.a/500,h=isNaN(this.b)?o:o-this.b/200;return new ii(au(3.1338561*(l=x0*C2(l))-1.6168667*(o=1*C2(o))-.4906146*(h=Hi*C2(h))),au(-.9787684*l+1.9161415*o+.033454*h),au(.0719453*l-.2289914*o+1.4052427*h),this.opacity)}})),fi(ds,Tc,oi(qr,{brighter:function(o){return new ds(this.h,this.c,this.l+18*(o==null?1:o),this.opacity)},darker:function(o){return new ds(this.h,this.c,this.l-18*(o==null?1:o),this.opacity)},rgb:function(){return N2(this).rgb()}}));var L2=-.14861,qs=1.78277,D2=-.29227,Th=-.90649,zo=1.97294,Hy=zo*Th,T0=zo*qs,ou=qs*D2-Th*L2;function qy(o){if(o instanceof fl)return new fl(o.h,o.s,o.l,o.opacity);o instanceof ii||(o=Aa(o));var l=o.r/255,h=o.g/255,y=o.b/255,v=(ou*y+Hy*l-T0*h)/(ou+Hy-T0),w=y-v,N=(zo*(h-v)-D2*w)/Th,S=Math.sqrt(N*N+w*w)/(zo*v*(1-v)),D=S?Math.atan2(N,w)*b0-120:NaN;return new fl(D<0?D+360:D,S,v,o.opacity)}function Fa(o,l,h,y){return arguments.length===1?qy(o):new fl(o,l,h,y==null?1:y)}function fl(o,l,h,y){this.h=+o,this.s=+l,this.l=+h,this.opacity=+y}fi(fl,Fa,oi(qr,{brighter:function(o){return o=o==null?Qi:Math.pow(Qi,o),new fl(this.h,this.s,this.l*o,this.opacity)},darker:function(o){return o=o==null?fa:Math.pow(fa,o),new fl(this.h,this.s,this.l*o,this.opacity)},rgb:function(){var o=isNaN(this.h)?0:(this.h+120)*v0,l=+this.l,h=isNaN(this.s)?0:this.s*l*(1-l),y=Math.cos(o),v=Math.sin(o);return new ii(255*(l+h*(L2*y+qs*v)),255*(l+h*(D2*y+Th*v)),255*(l+h*(zo*y)),this.opacity)}}));var Wy=Array.prototype.slice;function t4(o,l){return o-l}function ps(o){return function(){return o}}function I2(o,l){for(var h,y=-1,v=l.length;++y<v;)if(h=Sh(o,l[y]))return h;return 0}function Sh(o,l){for(var h=l[0],y=l[1],v=-1,w=0,N=o.length,S=N-1;w<N;S=w++){var D=o[w],R=D[0],z=D[1],q=o[S],U=q[0],Z=q[1];if(Ah(D,q,l))return 0;z>y!=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<o-1;)it=gt,gt=U[ct+1]>=Z,gs[it|gt<<1].forEach(le);for(gs[gt<<0].forEach(le);++ot<l-1;){for(ct=-1,gt=U[ot*o+o]>=Z,pt=U[ot*o]>=Z,gs[gt<<1|pt<<2].forEach(le);++ct<o-1;)it=gt,gt=U[ot*o+o+ct+1]>=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<o-1;)Mt=pt,pt=U[ot*o+ct+1]>=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];++Q<ct;)ot+=Z[Q-1][1]*Z[Q][0]-Z[Q-1][0]*Z[Q][1];return ot}(U)>0?z.push([U]):q.push(U)}),q.forEach(function(U){for(var Z,Q=0,ct=z.length;Q<ct;++Q)if(I2((Z=z[Q])[0],U)!==-1)return void Z.push(U)}),{type:"MultiPolygon",value:R,coordinates:z}}function N(D){return 2*D[0]+D[1]*(o+1)*4}function S(D,R,z){D.forEach(function(q){var U,Z=q[0],Q=q[1],ct=0|Z,ot=0|Q,it=R[ot*o+ct];Z>0&&Z<o&&ct===Z&&(U=R[ot*o+ct-1],q[0]=Z+(z-U)/(it-U)-.5),Q>0&&Q<l&&ot===Q&&(U=R[(ot-1)*o+ct],q[1]=Q+(z-U)/(it-U)-.5)})}return v.contour=w,v.size=function(D){if(!arguments.length)return[o,l];var R=Math.ceil(D[0]),z=Math.ceil(D[1]);if(!(R>0&&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<v;++N)for(var S=0,D=0;S<y+h;++S)S<y&&(D+=o.data[S+N*y]),S>=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<y;++N)for(var S=0,D=0;S<v+h;++S)S<v&&(D+=o.data[N+S*y]),S>=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<D&&_e>=0&&_e<R&&(gt[Xt+_e*D]+=Et)}),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),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<<N;if(!((it=+it)>=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<Be;++Mt)(Wt=pt(ee[Mt].identifier,le,Ra,this,arguments))&&(Ri(),Wt("start"))}}function it(){var Mt,Wt,ee=Re.changedTouches,le=ee.length;for(Mt=0;Mt<le;++Mt)(Wt=D[ee[Mt].identifier])&&(Ji(),Wt("drag"))}function gt(){var Mt,Wt,ee=Re.changedTouches,le=ee.length;for(y&&clearTimeout(y),y=setTimeout(function(){y=null},500),Mt=0;Mt<le;++Mt)(Wt=D[ee[Mt].identifier])&&(Ri(),Wt("end"))}function pt(Mt,Wt,ee,le,Be){var Xt,_e,Et,Pt=ee(Wt,Mt),ue=R.copy();if(ri(new B2(U,"beforestart",Xt,Mt,z,Pt[0],Pt[1],0,0,ue),function(){return(Re.subject=Xt=N.apply(le,Be))!=null&&(_e=Xt.x-Pt[0]||0,Et=Xt.y-Pt[1]||0,!0)}))return function ce(de){var tn,fn=Pt;switch(de){case"start":D[Mt]=ce,tn=z++;break;case"end":delete D[Mt],--z;case"drag":Pt=ee(Wt,Mt),tn=z}ri(new B2(U,de,Xt,Mt,tn,Pt[0]+_e,Pt[1]+Et,Pt[0]-fn[0],Pt[1]-fn[1],ue),ue.apply,ue,[de,le,Be])}}return U.filter=function(Mt){return arguments.length?(v=typeof Mt=="function"?Mt:S0(!!Mt),U):v},U.container=function(Mt){return arguments.length?(w=typeof Mt=="function"?Mt:S0(Mt),U):w},U.subject=function(Mt){return arguments.length?(N=typeof Mt=="function"?Mt:S0(Mt),U):N},U.touchable=function(Mt){return arguments.length?(S=typeof Mt=="function"?Mt:S0(!!Mt),U):S},U.on=function(){var Mt=R.on.apply(R,arguments);return Mt===R?U:Mt},U.clickDistance=function(Mt){return arguments.length?(q=(Mt=+Mt)*Mt,U):Math.sqrt(q)},U}B2.prototype.on=function(){var o=this._.on.apply(this._,arguments);return o===this._?this:o};var Xy={},F2={};function Ky(o){return new Function("d","return {"+o.map(function(l,h){return JSON.stringify(l)+": d["+h+'] || ""'}).join(",")+"}")}function P2(o){var l=Object.create(null),h=[];return o.forEach(function(y){for(var v in y)v in l||h.push(l[v]=v)}),h}function Ka(o,l){var h=o+"",y=h.length;return y<l?new Array(l-y+1).join(0)+h:h}function Nh(o){var l=new RegExp('["'+o+`
|
|
\r]`),h=o.charCodeAt(0);function y(S,D){var R,z=[],q=S.length,U=0,Z=0,Q=q<=0,ct=!1;function ot(){if(Q)return F2;if(ct)return ct=!1,Xy;var gt,pt,Mt=U;if(S.charCodeAt(Mt)===34){for(;U++<q&&S.charCodeAt(U)!==34||S.charCodeAt(++U)===34;);return(gt=U)>=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(;U<q;){if((pt=S.charCodeAt(gt=U++))===10)ct=!0;else if(pt===13)ct=!0,S.charCodeAt(U)===10&&++U;else if(pt!==h)continue;return S.slice(Mt,gt)}return Q=!0,S.slice(Mt,q)}for(S.charCodeAt(q-1)===10&&--q,S.charCodeAt(q-1)===13&&--q;(R=ot())!==F2;){for(var it=[];R!==Xy&&R!==F2;)it.push(R),R=ot();D&&(it=D(it,Z++))==null||z.push(it)}return z}function v(S,D){return S.map(function(R){return D.map(function(z){return N(R[z])}).join(o)})}function w(S){return S.map(N).join(o)}function N(S){return S==null?"":S instanceof Date?function(D){var R=D.getUTCHours(),z=D.getUTCMinutes(),q=D.getUTCSeconds(),U=D.getUTCMilliseconds();return isNaN(D)?"Invalid Date":function(Z){return Z<0?"-"+Ka(-Z,6):Z>9999?"+"+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<N;++v)S+=(w=h[v]).x,D+=w.y;for(S=S/N-o,D=D/N-l,v=0;v<N;++v)(w=h[v]).x-=S,w.y-=D}return o==null&&(o=0),l==null&&(l=0),y.initialize=function(v){h=v},y.x=function(v){return arguments.length?(o=+v,y):o},y.y=function(v){return arguments.length?(l=+v,y):l},y}function Wi(o){return function(){return o}}function Ac(){return 1e-6*(Math.random()-.5)}function xm(o,l,h,y){if(isNaN(l)||isNaN(h))return o;var v,w,N,S,D,R,z,q,U,Z=o._root,Q={data:y},ct=o._x0,ot=o._y0,it=o._x1,gt=o._y1;if(!Z)return o._root=Q,o;for(;Z.length;)if((R=l>=(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;ot<v;++ot)for(R=Dh(l,P4,U4).visitAfter(N),D=0;D<ct;++D)z=l[D],Z=h[z.index],Q=Z*Z,q=z.x+z.vx,U=z.y+z.vy,R.visit(it);function it(gt,pt,Mt,Wt,ee){var le=gt.data,Be=gt.r,Xt=Z+Be;if(!le)return pt>q+Xt||Wt<q-Xt||Mt>U+Xt||ee<U-Xt;if(le.index>z.index){var _e=q-le.x-le.vx,Et=U-le.y-le.vy,Pt=_e*_e+Et*Et;Pt<Xt*Xt&&(_e===0&&(Pt+=(_e=Ac())*_e),Et===0&&(Pt+=(Et=Ac())*Et),Pt=(Xt-(Pt=Math.sqrt(Pt)))/Pt*y,z.vx+=(_e*=Pt)*(Xt=(Be*=Be)/(Q+Be)),z.vy+=(Et*=Pt)*Xt,le.vx-=_e*(Xt=1-Xt),le.vy-=Et*Xt)}}}function N(D){if(D.data)return D.r=h[D.data.index];for(var R=D.r=0;R<4;++R)D[R]&&D[R].r>D.r&&(D.r=D[R].r)}function S(){if(l){var D,R,z=l.length;for(h=new Array(z),D=0;D<z;++D)R=l[D],h[R.index]=+o(R,D,l)}}return typeof o!="function"&&(o=Wi(o==null?1:+o)),w.initialize=function(D){l=D,S()},w.iterations=function(D){return arguments.length?(v=+D,w):v},w.strength=function(D){return arguments.length?(y=+D,w):y},w.radius=function(D){return arguments.length?(o=typeof D=="function"?D:Wi(+D),S(),w):o},w}function Y4(o){return o.index}function H2(o,l){var h=o.get(l);if(!h)throw new Error("missing: "+l);return h}function $4(o){var l,h,y,v,w,N=Y4,S=function(Q){return 1/Math.min(v[Q.source.index],v[Q.target.index])},D=Wi(30),R=1;function z(Q){for(var ct=0,ot=o.length;ct<R;++ct)for(var it,gt,pt,Mt,Wt,ee,le,Be=0;Be<ot;++Be)gt=(it=o[Be]).source,Mt=(pt=it.target).x+pt.vx-gt.x-gt.vx||Ac(),Wt=pt.y+pt.vy-gt.y-gt.vy||Ac(),Mt*=ee=((ee=Math.sqrt(Mt*Mt+Wt*Wt))-h[Be])/ee*Q*l[Be],Wt*=ee,pt.vx-=Mt*(le=w[Be]),pt.vy-=Wt*le,gt.vx+=Mt*(le=1-le),gt.vy+=Wt*le}function q(){if(y){var Q,ct,ot=y.length,it=o.length,gt=js(y,N);for(Q=0,v=new Array(ot);Q<it;++Q)(ct=o[Q]).index=Q,typeof ct.source!="object"&&(ct.source=H2(gt,ct.source)),typeof ct.target!="object"&&(ct.target=H2(gt,ct.target)),v[ct.source.index]=(v[ct.source.index]||0)+1,v[ct.target.index]=(v[ct.target.index]||0)+1;for(Q=0,w=new Array(it);Q<it;++Q)ct=o[Q],w[Q]=v[ct.source.index]/(v[ct.source.index]+v[ct.target.index]);l=new Array(it),U(),h=new Array(it),Z()}}function U(){if(y)for(var Q=0,ct=o.length;Q<ct;++Q)l[Q]=+S(o[Q],Q,o)}function Z(){if(y)for(var Q=0,ct=o.length;Q<ct;++Q)h[Q]=+D(o[Q],Q,o)}return o==null&&(o=[]),z.initialize=function(Q){y=Q,q()},z.links=function(Q){return arguments.length?(o=Q,q(),z):o},z.id=function(Q){return arguments.length?(N=Q,z):N},z.iterations=function(Q){return arguments.length?(R=+Q,z):R},z.strength=function(Q){return arguments.length?(S=typeof Q=="function"?Q:Wi(+Q),U(),z):S},z.distance=function(Q){return arguments.length?(D=typeof Q=="function"?Q:Wi(+Q),Z(),z):D},z}function j4(o){return o.x}function H4(o){return o.y}Ua.copy=function(){var o,l,h=new lu(this._x,this._y,this._x0,this._y0,this._x1,this._y1),y=this._root;if(!y)return h;if(!y.length)return h._root=wm(y),h;for(o=[{source:y,target:h._root=new Array(4)}];y=o.pop();)for(var v=0;v<4;++v)(l=y.source[v])&&(l.length?o.push({source:l,target:y.target[v]=new Array(4)}):y.target[v]=wm(l));return h},Ua.add=function(o){var l=+this._x.call(null,o),h=+this._y.call(null,o);return xm(this.cover(l,h),l,h,o)},Ua.addAll=function(o){var l,h,y,v,w=o.length,N=new Array(w),S=new Array(w),D=1/0,R=1/0,z=-1/0,q=-1/0;for(h=0;h<w;++h)isNaN(y=+this._x.call(null,l=o[h]))||isNaN(v=+this._y.call(null,l))||(N[h]=y,S[h]=v,y<D&&(D=y),y>z&&(z=y),v<R&&(R=v),v>q&&(q=v));if(D>z||R>q)return this;for(this.cover(D,R).cover(z,q),h=0;h<w;++h)xm(this,N[h],S[h],o[h]);return this},Ua.cover=function(o,l){if(isNaN(o=+o)||isNaN(l=+l))return this;var h=this._x0,y=this._y0,v=this._x1,w=this._y1;if(isNaN(h))v=(h=Math.floor(o))+1,w=(y=Math.floor(l))+1;else{for(var N,S,D=v-h,R=this._root;h>o||o>=v||y>l||l>=w;)switch(S=(l<y)<<1|o<h,(N=new Array(4))[S]=R,R=N,D*=2,S){case 0:v=h+D,w=y+D;break;case 1:h=v-D,w=y+D;break;case 2:v=h+D,y=w-D;break;case 3:h=v-D,y=w-D}this._root&&this._root.length&&(this._root=R)}return this._x0=h,this._y0=y,this._x1=v,this._y1=w,this},Ua.data=function(){var o=[];return this.visit(function(l){if(!l.length)do o.push(l.data);while(l=l.next)}),o},Ua.extent=function(o){return arguments.length?this.cover(+o[0][0],+o[0][1]).cover(+o[1][0],+o[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Ua.find=function(o,l,h){var y,v,w,N,S,D,R,z=this._x0,q=this._y0,U=this._x1,Z=this._y1,Q=[],ct=this._root;for(ct&&Q.push(new Pa(ct,z,q,U,Z)),h==null?h=1/0:(z=o-h,q=l-h,U=o+h,Z=l+h,h*=h);D=Q.pop();)if(!(!(ct=D.node)||(v=D.x0)>U||(w=D.y0)>Z||(N=D.x1)<z||(S=D.y1)<q))if(ct.length){var ot=(v+N)/2,it=(w+S)/2;Q.push(new Pa(ct[3],ot,it,N,S),new Pa(ct[2],v,it,ot,S),new Pa(ct[1],ot,w,N,it),new Pa(ct[0],v,w,ot,it)),(R=(l>=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<h){var Wt=Math.sqrt(h=Mt);z=o-Wt,q=l-Wt,U=o+Wt,Z=l+Wt,y=ct.data}}return y},Ua.remove=function(o){if(isNaN(w=+this._x.call(null,o))||isNaN(N=+this._y.call(null,o)))return this;var l,h,y,v,w,N,S,D,R,z,q,U,Z=this._root,Q=this._x0,ct=this._y0,ot=this._x1,it=this._y1;if(!Z)return this;if(Z.length)for(;;){if((R=w>=(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;l<h;++l)this.remove(o[l]);return this},Ua.root=function(){return this._root},Ua.size=function(){var o=0;return this.visit(function(l){if(!l.length)do++o;while(l=l.next)}),o},Ua.visit=function(o){var l,h,y,v,w,N,S=[],D=this._root;for(D&&S.push(new Pa(D,this._x0,this._y0,this._x1,this._y1));l=S.pop();)if(!o(D=l.node,y=l.x0,v=l.y0,w=l.x1,N=l.y1)&&D.length){var R=(y+w)/2,z=(v+N)/2;(h=D[3])&&S.push(new Pa(h,R,z,w,N)),(h=D[2])&&S.push(new Pa(h,y,z,R,N)),(h=D[1])&&S.push(new Pa(h,R,v,w,z)),(h=D[0])&&S.push(new Pa(h,y,v,R,z))}return this},Ua.visitAfter=function(o){var l,h=[],y=[];for(this._root&&h.push(new Pa(this._root,this._x0,this._y0,this._x1,this._y1));l=h.pop();){var v=l.node;if(v.length){var w,N=l.x0,S=l.y0,D=l.x1,R=l.y1,z=(N+D)/2,q=(S+R)/2;(w=v[0])&&h.push(new Pa(w,N,S,z,q)),(w=v[1])&&h.push(new Pa(w,z,S,D,q)),(w=v[2])&&h.push(new Pa(w,N,q,z,R)),(w=v[3])&&h.push(new Pa(w,z,q,D,R))}y.push(l)}for(;l=y.pop();)o(l.node,l.x0,l.y0,l.x1,l.y1);return this},Ua.x=function(o){return arguments.length?(this._x=o,this):this._x},Ua.y=function(o){return arguments.length?(this._y=o,this):this._y};var uu=Math.PI*(3-Math.sqrt(5));function q4(o){var l,h=1,y=.001,v=1-Math.pow(y,1/300),w=0,N=.6,S=js(),D=Se(z),R=dn("tick","end");function z(){q(),R.call("tick",l),h<y&&(D.stop(),R.call("end",l))}function q(Q){var ct,ot,it=o.length;Q===void 0&&(Q=1);for(var gt=0;gt<Q;++gt)for(h+=(w-h)*v,S.each(function(pt){pt(h)}),ct=0;ct<it;++ct)(ot=o[ct]).fx==null?ot.x+=ot.vx*=N:(ot.x=ot.fx,ot.vx=0),ot.fy==null?ot.y+=ot.vy*=N:(ot.y=ot.fy,ot.vy=0);return l}function U(){for(var Q,ct=0,ot=o.length;ct<ot;++ct){if((Q=o[ct]).index=ct,Q.fx!=null&&(Q.x=Q.fx),Q.fy!=null&&(Q.y=Q.fy),isNaN(Q.x)||isNaN(Q.y)){var it=10*Math.sqrt(ct),gt=ct*uu;Q.x=it*Math.cos(gt),Q.y=it*Math.sin(gt)}(isNaN(Q.vx)||isNaN(Q.vy))&&(Q.vx=Q.vy=0)}}function Z(Q){return Q.initialize&&Q.initialize(o),Q}return o==null&&(o=[]),U(),l={tick:q,restart:function(){return D.restart(z),l},stop:function(){return D.stop(),l},nodes:function(Q){return arguments.length?(o=Q,U(),S.each(Z),l):o},alpha:function(Q){return arguments.length?(h=+Q,l):h},alphaMin:function(Q){return arguments.length?(y=+Q,l):y},alphaDecay:function(Q){return arguments.length?(v=+Q,l):+v},alphaTarget:function(Q){return arguments.length?(w=+Q,l):w},velocityDecay:function(Q){return arguments.length?(N=1-Q,l):1-N},force:function(Q,ct){return arguments.length>1?(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;ee<le;++ee)(pt=(it=Q-(Mt=o[ee]).x)*it+(gt=ct-Mt.y)*gt)<ot&&(Wt=Mt,ot=pt);return Wt},on:function(Q,ct){return arguments.length>1?(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<Q;++Z)l=o[Z],ct.visit(q)}function R(){if(o){var U,Z,Q=o.length;for(y=new Array(Q),U=0;U<Q;++U)Z=o[U],y[Z.index]=+v(Z,U,o)}}function z(U){var Z,Q,ct,ot,it,gt=0,pt=0;if(U.length){for(ct=ot=it=0;it<4;++it)(Z=U[it])&&(Q=Math.abs(Z.value))&&(gt+=Z.value,pt+=Q,ct+=Q*Z.x,ot+=Q*Z.y);U.x=ct/pt,U.y=ot/pt}else{(Z=U).x=Z.data.x,Z.y=Z.data.y;do gt+=y[Z.data.index];while(Z=Z.next)}U.value=gt}function q(U,Z,Q,ct){if(!U.value)return!0;var ot=U.x-l.x,it=U.y-l.y,gt=ct-Z,pt=ot*ot+it*it;if(gt*gt/S<pt)return pt<N&&(ot===0&&(pt+=(ot=Ac())*ot),it===0&&(pt+=(it=Ac())*it),pt<w&&(pt=Math.sqrt(w*pt)),l.vx+=ot*U.value*h/pt,l.vy+=it*U.value*h/pt),!0;if(!(U.length||pt>=N)){(U.data!==l||U.next)&&(ot===0&&(pt+=(ot=Ac())*ot),it===0&&(pt+=(it=Ac())*it),pt<w&&(pt=Math.sqrt(w*pt)));do U.data!==l&&(gt=y[U.data.index]*h/pt,l.vx+=ot*gt,l.vy+=it*gt);while(U=U.next)}}return D.initialize=function(U){o=U,R()},D.strength=function(U){return arguments.length?(v=typeof U=="function"?U:Wi(+U),R(),D):v},D.distanceMin=function(U){return arguments.length?(w=U*U,D):Math.sqrt(w)},D.distanceMax=function(U){return arguments.length?(N=U*U,D):Math.sqrt(N)},D.theta=function(U){return arguments.length?(S=U*U,D):Math.sqrt(S)},D}function G4(o,l,h){var y,v,w,N=Wi(.1);function S(R){for(var z=0,q=y.length;z<q;++z){var U=y[z],Z=U.x-l||1e-6,Q=U.y-h||1e-6,ct=Math.sqrt(Z*Z+Q*Q),ot=(w[z]-ct)*v[z]*R/ct;U.vx+=Z*ot,U.vy+=Q*ot}}function D(){if(y){var R,z=y.length;for(v=new Array(z),w=new Array(z),R=0;R<z;++R)w[R]=+o(y[R],R,y),v[R]=isNaN(w[R])?0:+N(y[R],R,y)}}return typeof o!="function"&&(o=Wi(+o)),l==null&&(l=0),h==null&&(h=0),S.initialize=function(R){y=R,D()},S.strength=function(R){return arguments.length?(N=typeof R=="function"?R:Wi(+R),D(),S):N},S.radius=function(R){return arguments.length?(o=typeof R=="function"?R:Wi(+R),D(),S):o},S.x=function(R){return arguments.length?(l=+R,S):l},S.y=function(R){return arguments.length?(h=+R,S):h},S}function km(o){var l,h,y,v=Wi(.1);function w(S){for(var D,R=0,z=l.length;R<z;++R)(D=l[R]).vx+=(y[R]-D.x)*h[R]*S}function N(){if(l){var S,D=l.length;for(h=new Array(D),y=new Array(D),S=0;S<D;++S)h[S]=isNaN(y[S]=+o(l[S],S,l))?0:+v(l[S],S,l)}}return typeof o!="function"&&(o=Wi(o==null?0:+o)),w.initialize=function(S){l=S,N()},w.strength=function(S){return arguments.length?(v=typeof S=="function"?S:Wi(+S),N(),w):v},w.x=function(S){return arguments.length?(o=typeof S=="function"?S:Wi(+S),N(),w):o},w}function q2(o){var l,h,y,v=Wi(.1);function w(S){for(var D,R=0,z=l.length;R<z;++R)(D=l[R]).vy+=(y[R]-D.y)*h[R]*S}function N(){if(l){var S,D=l.length;for(h=new Array(D),y=new Array(D),S=0;S<D;++S)h[S]=isNaN(y[S]=+o(l[S],S,l))?0:+v(l[S],S,l)}}return typeof o!="function"&&(o=Wi(o==null?0:+o)),w.initialize=function(S){l=S,N()},w.strength=function(S){return arguments.length?(v=typeof S=="function"?S:Wi(+S),N(),w):v},w.y=function(S){return arguments.length?(o=typeof S=="function"?S:Wi(+S),N(),w):o},w}function Ih(o,l){if((h=(o=l?o.toExponential(l-1):o.toExponential()).indexOf("e"))<0)return null;var h,y=o.slice(0,h);return[y.length>1?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;Hn<Wn;++Hn)switch(bn[Hn]){case".":wr=Ar=Hn;break;case"0":wr===0&&(wr=Hn),Ar=Hn;break;default:if(!+bn[Hn])break t;wr>0&&(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<ce;)if(48>(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<gt?new Array(gt-dr+1).join(Z):"";switch(pt&&it&&(Pt=y(Kn+Pt,Kn.length?gt-fn.length:1/0),Kn=""),Q){case"<":Pt=tn+Pt+fn+Kn;break;case"=":Pt=tn+Kn+Pt+fn;break;case"^":Pt=Kn.slice(0,dr=Kn.length>>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<v;)Ws(h[y].geometry,l)}},du={Sphere:function(o,l){l.sphere()},Point:function(o,l){o=o.coordinates,l.point(o[0],o[1],o[2])},MultiPoint:function(o,l){for(var h=o.coordinates,y=-1,v=h.length;++y<v;)o=h[y],l.point(o[0],o[1],o[2])},LineString:function(o,l){pu(o.coordinates,l,0)},MultiLineString:function(o,l){for(var h=o.coordinates,y=-1,v=h.length;++y<v;)pu(h[y],l,0)},Polygon:function(o,l){Bh(o.coordinates,l)},MultiPolygon:function(o,l){for(var h=o.coordinates,y=-1,v=h.length;++y<v;)Bh(h[y],l)},GeometryCollection:function(o,l){for(var h=o.geometries,y=-1,v=h.length;++y<v;)Ws(h[y],l)}};function pu(o,l,h){var y,v=-1,w=o.length-h;for(l.lineStart();++v<w;)y=o[v],l.point(y[0],y[1],y[2]);l.lineEnd()}function Bh(o,l){var h=-1,y=o.length;for(l.polygonStart();++h<y;)pu(o[h],l,1);l.polygonEnd()}function Yo(o,l){o&&Ya.hasOwnProperty(o.type)?Ya[o.type](o,l):Ws(o,l)}var Z2,Rm,X2,K2,J2,B0=Cc(),F0=Cc(),ho={point:Lr,lineStart:Lr,lineEnd:Lr,polygonStart:function(){B0.reset(),ho.lineStart=Q2,ho.lineEnd=Bm},polygonEnd:function(){var o=+B0;F0.add(o<0?zr+o:o),this.lineStart=this.lineEnd=this.point=Lr},sphere:function(){F0.add(zr)}};function Q2(){ho.point=Fm}function Bm(){xo(Z2,Rm)}function Fm(o,l){ho.point=xo,Z2=o,Rm=l,X2=o*=Fn,K2=Mn(l=(l*=Fn)/2+hu),J2=xn(l)}function xo(o,l){var h=(o*=Fn)-X2,y=h>=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*Lc<D&&D<S*o)?(w=v[1]*Vr)>Ja&&(Ja=w):R^(S*Lc<(D=(D+360)%360-180)&&D<S*o)?(w=-v[1]*Vr)<$a&&($a=w):(l<$a&&($a=l),l>Ja&&(Ja=l)),R?o<Lc?Ha(Qr,o)>Ha(Qr,mi)&&(mi=o):Ha(o,mi)>Ha(Qr,mi)&&(Qr=o):mi>=Qr?(o<Qr&&(Qr=o),o>mi&&(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]:l<o[0]||o[1]<l}function jh(o){var l,h,y,v,w,N,S;if(Ja=mi=-(Qr=$a=1/0),jo=[],Yo(o,Ho),h=jo.length){for(jo.sort(ap),l=1,w=[y=jo[0]];l<h;++l)wu(y,(v=jo[l])[0])||wu(y,v[1])?(Ha(y[0],v[1])>Ha(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 v<Rh&&(l=vu,h=wo,y=zh,Ph<Jn&&(l=Uh,h=ml,y=_u),(v=l*l+h*h+y*y)<Rh)?[NaN,NaN]:[ga(h,l)*Vr,za(y/Di(v))*Vr]}function ku(o){return function(){return o}}function op(o,l){function h(y,v){return y=o(y,v),l(y[0],y[1])}return o.invert&&l.invert&&(h.invert=function(y,v){return(y=l.invert(y,v))&&o.invert(y[0],y[1])}),h}function j0(o,l){return[He(o)>pr?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?v<w:v>w)&&(v+=y*zr));for(var R,z=v;y>0?z>w:z<w;z-=D)R=P0([N,-S*Mn(z),-S*xn(z)]),o.point(R[0],R[1])}}function cp(o,l){(l=$o(l))[0]-=o,Fh(l);var h=Nc(-l[1]);return((-l[2]<0?-h:h)+zr-Jn)%zr}function Q4(){var o,l,h=ku([0,0]),y=ku(90),v=ku(6),w={point:function(S,D){o.push(S=l(S,D)),S[0]*=Vr,S[1]*=Vr}};function N(){var S=h.apply(this,arguments),D=y.apply(this,arguments)*Fn,R=v.apply(this,arguments)*Fn;return o=[],l=H0(-S[0]*Fn,-S[1]*Fn,0).invert,Wm(w,D,R,1),S={type:"Polygon",coordinates:[o]},o=l=null,S}return N.center=function(S){return arguments.length?(h=typeof S=="function"?S:ku([+S[0],+S[1]]),N):h},N.radius=function(S){return arguments.length?(y=typeof S=="function"?S:ku(+S),N):y},N.precision=function(S){return arguments.length?(v=typeof S=="function"?S:ku(+S),N):v},N}function Gm(){var o,l=[];return{point:function(h,y,v){o.push([h,y,v])},lineStart:function(){l.push(o=[])},lineEnd:Lr,rejoin:function(){l.length>1&&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])<Jn&&He(o[1]-l[1])<Jn}function W0(o,l,h,y){this.x=o,this.z=l,this.o=h,this.e=y,this.v=!1,this.n=this.p=null}function Vm(o,l,h,y,v){var w,N,S=[],D=[];if(o.forEach(function(Q){if(!((ct=Q.length-1)<=0)){var ct,ot,it=Q[0],gt=Q[ct];if(q0(it,gt)){if(!it[2]&&!gt[2]){for(v.lineStart(),w=0;w<ct;++w)v.point((it=Q[w])[0],it[1]);return void v.lineEnd()}gt[0]+=2e-6}S.push(ot=new W0(it,Q,null,!0)),D.push(ot.o=new W0(it,null,ot,!1)),S.push(ot=new W0(gt,Q,null,!1)),D.push(ot.o=new W0(gt,null,ot,!0))}}),S.length){for(D.sort(l),Zm(S),Zm(D),w=0,N=D.length;w<N;++w)D[w].e=h=!h;for(var R,z,q=S[0];;){for(var U=q,Z=!0;U.v;)if((U=U.n)===q)return;R=U.z,v.lineStart();do{if(U.v=U.o.v=!0,U.e){if(Z)for(w=0,N=R.length;w<N;++w)v.point((z=R[w])[0],z[1]);else y(U.x,U.n.x,1,v);U=U.n}else{if(Z)for(R=U.p.z,w=R.length-1;w>=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<l;)v.n=h=o[y],h.p=v,v=h;v.n=h=o[0],h.p=v}}j0.invert=j0;var lp=Cc();function G0(o){return He(o[0])<=pr?o[0]:Nr(o[0])*((He(o[0])+pr)%zr-pr)}function Xm(o,l){var h=G0(l),y=l[1],v=xn(y),w=[xn(h),-Mn(h),0],N=0,S=0;lp.reset(),v===1?y=Ei+Jn:v===-1&&(y=-Ei-Jn);for(var D=0,R=o.length;D<R;++D)if(q=(z=o[D]).length)for(var z,q,U=z[q-1],Z=G0(U),Q=U[1]/2+hu,ct=xn(Q),ot=Mn(Q),it=0;it<q;++it,Z=pt,ct=Wt,ot=ee,U=gt){var gt=z[it],pt=G0(gt),Mt=gt[1]/2+hu,Wt=xn(Mt),ee=Mn(Mt),le=pt-Z,Be=le>=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||N<Jn&&lp<-1e-6)^1&S}function Km(o,l,h,y){return function(v){var w,N,S,D=l(v),R=Gm(),z=l(R),q=!1,U={point:Z,lineStart:ct,lineEnd:ot,polygonStart:function(){U.point=it,U.lineStart=gt,U.lineEnd=pt,N=[],w=[]},polygonEnd:function(){U.point=Z,U.lineStart=ct,U.lineEnd=ot,N=xe(N);var Mt=Xm(w,y);N.length?(q||(v.polygonStart(),q=!0),Vm(N,Jm,Mt,h,v)):Mt&&(q||(v.polygonStart(),q=!0),v.lineStart(),h(null,null,1,v),v.lineEnd()),q&&(v.polygonEnd(),q=!1),N=w=null},sphere:function(){v.polygonStart(),v.lineStart(),h(null,null,1,v),v.lineEnd(),v.polygonEnd()}};function Z(Mt,Wt){o(Mt,Wt)&&v.point(Mt,Wt)}function Q(Mt,Wt){D.point(Mt,Wt)}function ct(){U.point=Q,D.lineStart()}function ot(){U.point=Z,D.lineEnd()}function it(Mt,Wt){S.push([Mt,Wt]),z.point(Mt,Wt)}function gt(){z.lineStart(),S=[]}function pt(){it(S[0][0],S[0][1]),z.lineEnd();var Mt,Wt,ee,le,Be=z.clean(),Xt=R.result(),_e=Xt.length;if(S.pop(),w.push(S),S=null,_e)if(1&Be){if((Wt=(ee=Xt[0]).length-1)>0){for(q||(v.polygonStart(),q=!0),v.lineStart(),Mt=0;Mt<Wt;++Mt)v.point((le=ee[Mt])[0],le[1]);v.lineEnd()}}else _e>1&&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)<Jn?(o.point(h,y=(y+N)/2>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&&(h-=v*Jn),He(w-S)<Jn&&(w-=S*Jn),y=function(R,z,q,U){var Z,Q,ct=xn(R-q);return He(ct)>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]<l[0]?pr:-pr;v=h*w/2,y.point(-w,v),y.point(0,v),y.point(w,v)}else y.point(l[0],l[1])},[-pr,-Ei]);function Qm(o){var l=Mn(o),h=6*Fn,y=l>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];Pt<Et&&(_e=Et,Et=Pt,Pt=_e);var de=Pt-Et,tn=He(de-pr)<Jn;if(!tn&&ce<ue&&(_e=ue,ue=ce,ce=_e),tn||de<Jn?tn?ue+ce>0^Xt[1]<(He(Xt[0]-Et)<Jn?ue:ce):ue<=Xt[1]&&Xt[1]<=ce:de>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)<Jn?z>0?0:3:He(R[0]-h)<Jn?z>0?2:1:He(R[1]-l)<Jn?z>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;ce<de;++ce)for(var tn,fn,Bn=q[ce],dr=1,Kn=Bn.length,bn=Bn[0],Ar=bn[0],Wn=bn[1];dr<Kn;++dr)tn=Ar,fn=Wn,Ar=(bn=Bn[dr])[0],Wn=bn[1],fn<=y?Wn>y&&(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(bn<Hn)return;bn<wr&&(wr=bn)}else if(wa>0){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(bn<Hn)return;bn<wr&&(wr=bn)}if(bn=Bn-Wn,$i||!(bn>0)){if(bn/=$i,$i<0){if(bn<Hn)return;bn<wr&&(wr=bn)}else if($i>0){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(bn<Hn)return;bn<wr&&(wr=bn)}return Hn>0&&(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;++y<v;)if(ef(h[y].geometry,l))return!0;return!1}},fp={Sphere:function(){return!0},Point:function(o,l){return n_(o.coordinates,l)},MultiPoint:function(o,l){for(var h=o.coordinates,y=-1,v=h.length;++y<v;)if(n_(h[y],l))return!0;return!1},LineString:function(o,l){return r_(o.coordinates,l)},MultiLineString:function(o,l){for(var h=o.coordinates,y=-1,v=h.length;++y<v;)if(r_(h[y],l))return!0;return!1},Polygon:function(o,l){return i_(o.coordinates,l)},MultiPolygon:function(o,l){for(var h=o.coordinates,y=-1,v=h.length;++y<v;)if(i_(h[y],l))return!0;return!1},GeometryCollection:function(o,l){for(var h=o.geometries,y=-1,v=h.length;++y<v;)if(ef(h[y],l))return!0;return!1}};function ef(o,l){return!(!o||!fp.hasOwnProperty(o.type))&&fp[o.type](o,l)}function n_(o,l){return tf(o,l)===0}function r_(o,l){for(var h,y,v,w=0,N=o.length;w<N;w++){if((y=tf(o[w],l))===0||w>0&&(v=tf(o[w],o[w-1]))>0&&h<=v&&y<=v&&(h+y-v)*(1-Math.pow((h-y)/v,2))<Rh*v)return!0;h=y}return!1}function i_(o,l){return!!Xm(o.map(o5),a_(l))}function o5(o){return(o=o.map(a_)).pop(),o}function a_(o){return[o[0]*Fn,o[1]*Fn]}function o_(o,l){return(o&&e_.hasOwnProperty(o.type)?e_[o.type]:ef)(o,l)}function s_(o,l,h){var y=Nt(o,l-Jn,h).concat(l);return function(v){return y.map(function(w){return[v,w]})}}function c_(o,l,h){var y=Nt(o,l-Jn,h).concat(l);return function(v){return y.map(function(w){return[w,v]})}}function l_(){var o,l,h,y,v,w,N,S,D,R,z,q,U=10,Z=U,Q=90,ct=360,ot=2.5;function it(){return{type:"MultiLineString",coordinates:gt()}}function gt(){return Nt(ys(y/Q)*Q,h,Q).map(z).concat(Nt(ys(S/ct)*ct,N,ct).map(q)).concat(Nt(ys(l/U)*U,o,U).filter(function(pt){return He(pt%Q)>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<Zs&&(Zs=o),o>_s&&(_s=o),l<Ic&&(Ic=l),l>Oc&&(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)<Jn||He(S-Z)<Jn?(S+Z)/2:ga(le,ee),Pt=h(Et,_e),ue=Pt[0],ce=Pt[1],de=ue-w,tn=ce-N,fn=Mt*de-pt*tn;(fn*fn/Wt>y||He((pt*de+Mt*tn)/Wt-.5)>.3||D*Q+R*ct+z*ot<d5)&&(v(w,N,S,D,R,z,ue,ce,Et,ee/=Xt,le/=Xt,Be,it,gt),gt.point(ue,ce),v(ue,ce,Et,ee,le,Be,q,U,Z,Q,ct,ot,it,gt))}}return function(w){var N,S,D,R,z,q,U,Z,Q,ct,ot,it,gt={point:pt,lineStart:Mt,lineEnd:ee,polygonStart:function(){w.polygonStart(),gt.lineStart=le},polygonEnd:function(){w.polygonEnd(),gt.lineStart=Mt}};function pt(_e,Et){_e=h(_e,Et),w.point(_e[0],_e[1])}function Mt(){Z=NaN,gt.point=Wt,w.lineStart()}function Wt(_e,Et){var Pt=$o([_e,Et]),ue=h(_e,Et);v(Z,Q,U,ct,ot,it,Z=ue[0],Q=ue[1],U=_e,ct=Pt[0],ot=Pt[1],it=Pt[2],16,w),w.point(Z,Q)}function ee(){gt.point=pt,w.lineEnd()}function le(){Mt(),gt.point=Be,gt.lineEnd=Xt}function Be(_e,Et){Wt(N=_e,Et),S=Z,D=Q,R=ct,z=ot,q=it,gt.point=Wt}function Xt(){v(Z,Q,U,ct,ot,it,S,D,N,R,z,q,16,w),gt.lineEnd=ee,ee()}return gt}}(o,l):function(h){return n1({point:function(y,v){y=h(y,v),this.stream.point(y[0],y[1])}})}(o)}var p5=n1({point:function(o,l){this.stream.point(o*Fn,l*Fn)}});function g5(o,l,h,y,v){function w(N,S){return[l+o*(N*=y),h-o*(S*=v)]}return w.invert=function(N,S){return[(N-l)/o*y,(h-S)/o*v]},w}function k_(o,l,h,y,v,w){var N=Mn(w),S=xn(w),D=N*o,R=S*o,z=N/o,q=S/o,U=(S*h-N*l)/o,Z=(S*l+N*h)/o;function Q(ct,ot){return[D*(ct*=y)-R*(ot*=v)+l,h-R*ct-D*ot]}return Q.invert=function(ct,ot){return[y*(z*ct-q*ot+U),v*(Z-q*ct-z*ot)]},Q}function Vo(o){return Tp(function(){return o})()}function Tp(o){var l,h,y,v,w,N,S,D,R,z,q=150,U=480,Z=250,Q=0,ct=0,ot=0,it=0,gt=0,pt=0,Mt=1,Wt=1,ee=null,le=up,Be=null,Xt=Gh,_e=.5;function Et(de){return D(de[0]*Fn,de[1]*Fn)}function Pt(de){return(de=D.invert(de[0],de[1]))&&[de[0]*Vr,de[1]*Vr]}function ue(){var de=k_(q,0,0,Mt,Wt,pt).apply(null,l(Q,ct)),tn=(pt?k_:g5)(q,U-de[0],Z-de[1],Mt,Wt,pt);return h=H0(ot,it,gt),S=op(l,tn),D=op(h,S),N=w_(S,_e),ce()}function ce(){return R=z=null,Et}return Et.stream=function(de){return R&&z===de?R:R=p5(function(tn){return n1({point:function(fn,Bn){var dr=tn(fn,Bn);return this.stream.point(dr[0],dr[1])}})}(h)(le(N(Xt(z=de)))))},Et.preclip=function(de){return arguments.length?(le=de,ee=void 0,ce()):le},Et.postclip=function(de){return arguments.length?(Xt=de,Be=y=v=w=null,ce()):Xt},Et.clipAngle=function(de){return arguments.length?(le=+de?Qm(ee=de*Fn):(ee=null,up),ce()):ee*Vr},Et.clipExtent=function(de){return arguments.length?(Xt=de==null?(Be=y=v=w=null,Gh):Z0(Be=+de[0][0],y=+de[0][1],v=+de[1][0],w=+de[1][1]),ce()):Be==null?null:[[Be,y],[v,w]]},Et.scale=function(de){return arguments.length?(q=+de,ue()):q},Et.translate=function(de){return arguments.length?(U=+de[0],Z=+de[1],ue()):[U,Z]},Et.center=function(de){return arguments.length?(Q=de[0]%360*Fn,ct=de[1]%360*Fn,ue()):[Q*Vr,ct*Vr]},Et.rotate=function(de){return arguments.length?(ot=de[0]%360*Fn,it=de[1]%360*Fn,gt=de.length>2?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)<Jn)return function(S){var D=Mn(S);function R(z,q){return[z*D,xn(q)/D]}return R.invert=function(z,q){return[z/D,za(q*D)]},R}(o);var v=1+h*(2*y-h),w=Di(v)/y;function N(S,D){var R=Di(v-2*y*xn(D))/y;return[R*xn(S*=y),w-R*Mn(S)]}return N.invert=function(S,D){var R=w-D,z=ga(S,He(R))*Nr(R);return R*y<0&&(z-=pr*Nr(S)*Nr(R)),[z/y,za((v-(S*S+R*R)*y*y)/(2*y))]},N}function hf(){return Sp(E_).scale(155.424).center([0,33.6442])}function T_(){return hf().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Ks(){var o,l,h,y,v,w,N=T_(),S=hf().rotate([154,0]).center([-2,58.5]).parallels([55,65]),D=hf().rotate([157,0]).center([-3,19.9]).parallels([8,18]),R={point:function(U,Z){w=[U,Z]}};function z(U){var Z=U[0],Q=U[1];return w=null,h.point(Z,Q),w||(y.point(Z,Q),w)||(v.point(Z,Q),w)}function q(){return o=l=null,z}return z.invert=function(U){var Z=N.scale(),Q=N.translate(),ct=(U[0]-Q[0])/Z,ot=(U[1]-Q[1])/Z;return(ot>=.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;++it<Q;)Z[it].point(ct,ot)},sphere:function(){for(var ct=-1;++ct<Q;)Z[ct].sphere()},lineStart:function(){for(var ct=-1;++ct<Q;)Z[ct].lineStart()},lineEnd:function(){for(var ct=-1;++ct<Q;)Z[ct].lineEnd()},polygonStart:function(){for(var ct=-1;++ct<Q;)Z[ct].polygonStart()},polygonEnd:function(){for(var ct=-1;++ct<Q;)Z[ct].polygonEnd()}});var Z,Q},z.precision=function(U){return arguments.length?(N.precision(U),S.precision(U),D.precision(U),q()):N.precision()},z.scale=function(U){return arguments.length?(N.scale(U),S.scale(.35*U),D.scale(U),z.translate(N.translate())):N.scale()},z.translate=function(U){if(!arguments.length)return N.translate();var Z=N.scale(),Q=+U[0],ct=+U[1];return h=N.translate(U).clipExtent([[Q-.455*Z,ct-.238*Z],[Q+.455*Z,ct+.238*Z]]).stream(R),y=S.translate([Q-.307*Z,ct+.201*Z]).clipExtent([[Q-.425*Z+Jn,ct+.12*Z+Jn],[Q-.214*Z-Jn,ct+.234*Z-Jn]]).stream(R),v=D.translate([Q-.205*Z,ct+.212*Z]).clipExtent([[Q-.214*Z+Jn,ct+.166*Z+Jn],[Q-.115*Z-Jn,ct+.234*Z-Jn]]).stream(R),q()},z.fitExtent=function(U,Z){return uf(z,U,Z)},z.fitSize=function(U,Z){return wp(z,U,Z)},z.fitWidth=function(U,Z){return kp(z,U,Z)},z.fitHeight=function(U,Z){return Ep(z,U,Z)},z.scale(1070)}function Ap(o){return function(l,h){var y=Mn(l),v=Mn(h),w=o(y*v);return[w*v*xn(l),w*xn(h)]}}function po(o){return function(l,h){var y=Di(l*l+h*h),v=o(y),w=xn(v),N=Mn(v);return[ga(l*w,y*N),za(y&&h*w/y)]}}var Cp=Ap(function(o){return Di(2/(1+o))});function y5(){return Vo(Cp).scale(124.75).clipAngle(179.999)}Cp.invert=po(function(o){return 2*za(o/2)});var Mp=Ap(function(o){return(o=Nc(o))&&o/xn(o)});function Np(){return Vo(Mp).scale(79.4188).clipAngle(179.999)}function r1(o,l){return[o,fu(na((Ei+l)/2))]}function m5(){return Lp(r1).scale(961/zr)}function Lp(o){var l,h,y,v=Vo(o),w=v.center,N=v.scale,S=v.translate,D=v.clipExtent,R=null;function z(){var q=pr*N(),U=v(sp(v.rotate()).invert([0,0]));return D(R==null?[[U[0]-q,U[1]-q],[U[0]+q,U[1]+q]]:o===r1?[[Math.max(U[0]-q,R),l],[Math.min(U[0]+q,h),y]]:[[R,Math.max(U[1]-q,l)],[h,Math.min(U[1]+q,y)]])}return v.scale=function(q){return arguments.length?(N(q),z()):N()},v.translate=function(q){return arguments.length?(S(q),z()):S()},v.center=function(q){return arguments.length?(w(q),z()):w()},v.clipExtent=function(q){return arguments.length?(q==null?R=l=h=y=null:(R=+q[0][0],l=+q[0][1],h=+q[1][0],y=+q[1][1]),z()):R==null?null:[[R,l],[h,y]]},z()}function i1(o){return na((Ei+o)/2)}function Dp(o,l){var h=Mn(o),y=o===l?xn(o):fu(h/Mn(l))/fu(i1(l)/i1(o)),v=h*O0(i1(o),y)/y;if(!y)return r1;function w(N,S){v>0?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)<Jn)return a1;function w(N,S){var D=v-S,R=y*N;return[D*xn(R),v-D*Mn(R)]}return w.invert=function(N,S){var D=v-S,R=ga(N,He(D))*Nr(D);return D*y<0&&(R-=pr*Nr(N)*Nr(D)),[R/y,v-Nr(y)*Di(N*N+D*D)]},w}function A_(){return Sp(S_).scale(131.154).center([0,13.9389])}Mp.invert=po(function(o){return o}),r1.invert=function(o,l){return[o,2*Mc(Om(l))-Ei]},a1.invert=a1;var Fc=1.340264,o1=-.081106,s1=893e-6,c1=.003796,ff=Di(3)/2;function Ip(o,l){var h=za(ff*xn(l)),y=h*h,v=y*y*y;return[o*Mn(h)/(ff*(Fc+3*o1*y+v*(7*s1+9*c1*y))),h*(Fc+o1*y+v*(s1+c1*y))]}function b5(){return Vo(Ip).scale(177.158)}function l1(o,l){var h=Mn(l),y=Mn(o)*h;return[h*xn(o)/y,xn(l)/y]}function C_(){return Vo(l1).scale(144.049).clipAngle(60)}function df(){var o,l,h,y,v,w,N,S=1,D=0,R=0,z=1,q=1,U=0,Z=null,Q=1,ct=1,ot=n1({point:function(Mt,Wt){var ee=pt([Mt,Wt]);this.stream.point(ee[0],ee[1])}}),it=Gh;function gt(){return Q=S*z,ct=S*q,w=N=null,pt}function pt(Mt){var Wt=Mt[0]*Q,ee=Mt[1]*ct;if(U){var le=ee*o-Wt*l;Wt=Wt*o+ee*l,ee=le}return[Wt+D,ee+R]}return pt.invert=function(Mt){var Wt=Mt[0]-D,ee=Mt[1]-R;if(U){var le=ee*o+Wt*l;Wt=Wt*o-ee*l,ee=le}return[Wt/Q,ee/ct]},pt.stream=function(Mt){return w&&N===Mt?w:w=ot(it(N=Mt))},pt.postclip=function(Mt){return arguments.length?(it=Mt,Z=h=y=v=null,gt()):it},pt.clipExtent=function(Mt){return arguments.length?(it=Mt==null?(Z=h=y=v=null,Gh):Z0(Z=+Mt[0][0],h=+Mt[0][1],y=+Mt[1][0],v=+Mt[1][1]),gt()):Z==null?null:[[Z,h],[y,v]]},pt.scale=function(Mt){return arguments.length?(S=+Mt,gt()):S},pt.translate=function(Mt){return arguments.length?(D=+Mt[0],R=+Mt[1],gt()):[D,R]},pt.angle=function(Mt){return arguments.length?(l=xn(U=Mt%360*Fn),o=Mn(U),gt()):U*Vr},pt.reflectX=function(Mt){return arguments.length?(z=Mt?-1:1,gt()):z<0},pt.reflectY=function(Mt){return arguments.length?(q=Mt?-1:1,gt()):q<0},pt.fitExtent=function(Mt,Wt){return uf(pt,Mt,Wt)},pt.fitSize=function(Mt,Wt){return wp(pt,Mt,Wt)},pt.fitWidth=function(Mt,Wt){return kp(pt,Mt,Wt)},pt.fitHeight=function(Mt,Wt){return Ep(pt,Mt,Wt)},pt}function Op(o,l){var h=l*l,y=h*h;return[o*(.8707-.131979*h+y*(y*(.003971*h-.001529*y)-.013791)),l*(1.007226+h*(.015085+y*(.028874*h-.044475-.005916*y)))]}function x5(){return Vo(Op).scale(175.295)}function Rp(o,l){return[Mn(l)*xn(o),xn(l)]}function w5(){return Vo(Rp).scale(249.5).clipAngle(90.000001)}function Bp(o,l){var h=Mn(l),y=1+Mn(o)*h;return[h*xn(o)/y,xn(l)/y]}function k5(){return Vo(Bp).scale(250).clipAngle(142)}function pf(o,l){return[fu(na((Ei+l)/2)),-o]}function E5(){var o=Lp(pf),l=o.center,h=o.rotate;return o.center=function(y){return arguments.length?l([-y[1],y[0]]):[(y=l())[1],-y[0]]},o.rotate=function(y){return arguments.length?h([y[0],y[1],y.length>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)<Rh));++N);return[ff*o*(Fc+3*o1*v+w*(7*s1+9*c1*v))/Mn(y),za(xn(y)/ff)]},l1.invert=po(Mc),Op.invert=function(o,l){var h,y=l,v=25;do{var w=y*y,N=w*w;y-=h=(y*(1.007226+w*(.015085+N*(.028874*w-.044475-.005916*N)))-l)/(1.007226+w*(.045255+N*(.259866*w-.311325-.005916*11*N)))}while(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<v;++y)N.push(h[y]);while(N.length);return this},eachAfter:function(o){for(var l,h,y,v=this,w=[v],N=[];v=w.pop();)if(N.push(v),l=v.children)for(h=0,y=l.length;h<y;++h)w.push(l[h]);for(;v=N.pop();)o(v);return this},eachBefore:function(o){for(var l,h,y=this,v=[y];y=v.pop();)if(o(y),l=y.children)for(h=l.length-1;h>=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=[];y<v;)l=o[y],h&&D_(h,l)?++y:(h=N5(w=M5(w,l)),y=0);return h}function M5(o,l){var h,y;if(zp(l,o))return[l];for(h=0;h<o.length;++h)if(gf(l,o[h])&&zp(u1(o[h],l),o))return[o[h],l];for(h=0;h<o.length-1;++h)for(y=h+1;y<o.length;++y)if(gf(u1(o[h],o[y]),l)&&gf(u1(o[h],l),o[y])&&gf(u1(o[y],l),o[h])&&zp(I_(o[h],o[y],l),o))return[o[h],o[y],l];throw new Error}function gf(o,l){var h=o.r-l.r,y=l.x-o.x,v=l.y-o.y;return h<0||h*h<y*y+v*v}function D_(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 zp(o,l){for(var h=0;h<l.length;++h)if(!D_(o,l[h]))return!1;return!0}function N5(o){switch(o.length){case 1:return function(l){return{x:l.x,y:l.y,r:l.r}}(o[0]);case 2:return u1(o[0],o[1]);case 3:return I_(o[0],o[1],o[2])}}function u1(o,l){var h=o.x,y=o.y,v=o.r,w=l.x,N=l.y,S=l.r,D=w-h,R=N-y,z=S-v,q=Math.sqrt(D*D+R*R);return{x:(h+w+D/q*z)/2,y:(y+N+R/q*z)/2,r:(q+v+S)/2}}function I_(o,l,h){var y=o.x,v=o.y,w=o.r,N=l.x,S=l.y,D=l.r,R=h.x,z=h.y,q=h.r,U=y-N,Z=y-R,Q=v-S,ct=v-z,ot=D-w,it=q-w,gt=y*y+v*v-w*w,pt=gt-N*N-S*S+D*D,Mt=gt-R*R-z*z+q*q,Wt=Z*Q-U*ct,ee=(Q*Mt-ct*pt)/(2*Wt)-y,le=(ct*ot-Q*it)/Wt,Be=(Z*pt-U*Mt)/(2*Wt)-v,Xt=(U*it-Z*ot)/Wt,_e=le*le+Xt*Xt-1,Et=2*(w+ee*le+Be*Xt),Pt=ee*ee+Be*Be-w*w,ue=-(_e?(Et+Math.sqrt(Et*Et-4*_e*Pt))/(2*_e):Pt/Et);return{x:y+ee+le*ue,y:v+Be+Xt*ue,r:ue}}function O_(o,l,h){var y,v,w,N,S=o.x-l.x,D=o.y-l.y,R=S*S+D*D;R?(v=l.r+h.r,v*=v,N=o.r+h.r,v>(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;S<v;++S){O_(l._,h._,y=o[S]),y=new yf(y),D=h.next,R=l.previous,z=h._.r,q=l._.r;do if(z<=q){if(R_(D._,y._)){h=D,l.next=h,h.previous=l,--S;continue t}z+=D._.r,D=D.next}else{if(R_(R._,y._)){(l=R).next=h,h.previous=l,--S;continue t}q+=R._.r,R=R.previous}while(D!==R.next);for(y.previous=l,y.next=h,l.next=h.previous=h=y,w=B_(l);(y=y.next)!==h;)(N=B_(y))<w&&(l=y,w=N);h=l.next}for(l=[h._],y=h;(y=y.next)!==h;)l.push(y._);for(y=L_(l),S=0;S<v;++S)(l=o[S]).x-=y.x,l.y-=y.y;return y.r}function P_(o){return F_(o),o}function L5(o){return o==null?null:mf(o)}function mf(o){if(typeof o!="function")throw new Error;return o}function wl(){return 0}function Mu(o){return function(){return o}}function D5(o){return Math.sqrt(o.value)}function I5(){var o=null,l=1,h=1,y=wl;function v(w){return w.x=l/2,w.y=h/2,o?w.eachBefore(U_(o)).eachAfter(_f(y,.5)).eachBefore(z_(1)):w.eachBefore(U_(D5)).eachAfter(_f(wl,1)).eachAfter(_f(y,w.r/Math.min(l,h))).eachBefore(z_(Math.min(l,h)/(2*w.r))),w}return v.radius=function(w){return arguments.length?(o=L5(w),v):o},v.size=function(w){return arguments.length?(l=+w[0],h=+w[1],v):[l,h]},v.padding=function(w){return arguments.length?(y=typeof w=="function"?w:Mu(+w),v):y},v}function U_(o){return function(l){l.children||(l.r=Math.max(0,+o(l)||0))}}function _f(o,l){return function(h){if(y=h.children){var y,v,w,N=y.length,S=o(h)*l||0;if(S)for(v=0;v<N;++v)y[v].r+=S;if(w=F_(y),S)for(v=0;v<N;++v)y[v].r-=S;h.r=w+S}}}function z_(o){return function(l){var h=l.parent;l.r*=o,h&&(l.x=h.x+o*l.x,l.y=h.y+o*l.y)}}function Y_(o){o.x0=Math.round(o.x0),o.y0=Math.round(o.y0),o.x1=Math.round(o.x1),o.y1=Math.round(o.y1)}function h1(o,l,h,y,v){for(var w,N=o.children,S=-1,D=N.length,R=o.value&&(y-l)/o.value;++S<D;)(w=N[S]).y0=h,w.y1=v,w.x0=l,w.x1=l+=w.value*R}function Zo(){var o=1,l=1,h=0,y=!1;function v(w){var N=w.height+1;return w.x0=w.y0=h,w.x1=o,w.y1=l/N,w.eachBefore(function(S,D){return function(R){R.children&&h1(R,R.x0,S*(R.depth+1)/D,R.x1,S*(R.depth+2)/D);var z=R.x0,q=R.y0,U=R.x1-h,Z=R.y1-h;U<z&&(z=U=(z+U)/2),Z<q&&(q=Z=(q+Z)/2),R.x0=z,R.y0=q,R.x1=U,R.y1=Z}}(l,N)),y&&w.eachBefore(Y_),w}return v.round=function(w){return arguments.length?(y=!!w,v):y},v.size=function(w){return arguments.length?(o=+w[0],l=+w[1],v):[o,l]},v.padding=function(w){return arguments.length?(h=+w,v):h},v}var $_={depth:-1},f1={};function O5(o){return o.id}function j_(o){return o.parentId}function vf(){var o=O5,l=j_;function h(y){var v,w,N,S,D,R,z,q=y.length,U=new Array(q),Z={};for(w=0;w<q;++w)v=y[w],D=U[w]=new xl(v),(R=o(v,w,y))!=null&&(R+="")&&(Z[z="$"+(D.id=R)]=z in Z?f1:D);for(w=0;w<q;++w)if(D=U[w],(R=l(y[w],w,y))!=null&&(R+="")){if(!(S=Z["$"+R]))throw new Error("missing: "+R);if(S===f1)throw new Error("ambiguous: "+R);S.children?S.children.push(D):S.children=[D],D.parent=S}else{if(N)throw new Error("multiple roots");N=D}if(!N)throw new Error("no root");if(N.parent=$_,N.eachBefore(function(Q){Q.depth=Q.parent.depth+1,--q}).eachBefore(Up),N.parent=null,q>0)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.x<z.x&&(z=it),it.x>q.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;++S<D;)(w=N[S]).x0=l,w.x1=y,w.y0=h,w.y1=h+=w.value*R}Pc.prototype=Object.create(xl.prototype);var Lu=(1+Math.sqrt(5))/2;function d1(o,l,h,y,v,w){for(var N,S,D,R,z,q,U,Z,Q,ct,ot,it=[],gt=l.children,pt=0,Mt=0,Wt=gt.length,ee=l.value;pt<Wt;){D=v-h,R=w-y;do z=gt[Mt++].value;while(!z&&Mt<Wt);for(q=U=z,ot=z*z*(ct=Math.max(R/D,D/R)/(ee*o)),Q=Math.max(U/ot,ot/q);Mt<Wt;++Mt){if(z+=S=gt[Mt].value,S<q&&(q=S),S>U&&(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:D<R,children:gt.slice(pt,Mt)}),N.dice?h1(N,h,y,v,ee?y+=R*z/ee:w):Uc(N,h,y,ee?h+=D*z/ee:v,w),ee-=z,pt=Mt}return it}const zc=function o(l){function h(y,v,w,N,S){d1(l,y,v,w,N,S)}return h.ratio=function(y){return o((y=+y)>1?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<Q&&(Q=ot=(Q+ot)/2),it<ct&&(ct=it=(ct+it)/2),U.x0=Q,U.y0=ct,U.x1=ot,U.y1=it,U.children&&(Z=v[U.depth+1]=w(U)/2,Q+=R(U)-Z,ct+=N(U)-Z,(ot-=S(U)-Z)<Q&&(Q=ot=(Q+ot)/2),(it-=D(U)-Z)<ct&&(ct=it=(ct+it)/2),o(U,Q,ct,ot,it))}return z.round=function(U){return arguments.length?(l=!!U,z):l},z.size=function(U){return arguments.length?(h=+U[0],y=+U[1],z):[h,y]},z.tile=function(U){return arguments.length?(o=mf(U),z):o},z.padding=function(U){return arguments.length?z.paddingInner(U).paddingOuter(U):z.paddingInner()},z.paddingInner=function(U){return arguments.length?(w=typeof U=="function"?U:Mu(+U),z):w},z.paddingOuter=function(U){return arguments.length?z.paddingTop(U).paddingRight(U).paddingBottom(U).paddingLeft(U):z.paddingTop()},z.paddingTop=function(U){return arguments.length?(N=typeof U=="function"?U:Mu(+U),z):N},z.paddingRight=function(U){return arguments.length?(S=typeof U=="function"?U:Mu(+U),z):S},z.paddingBottom=function(U){return arguments.length?(D=typeof U=="function"?U:Mu(+U),z):D},z.paddingLeft=function(U){return arguments.length?(R=typeof U=="function"?U:Mu(+U),z):R},z}function p1(o,l,h,y,v){var w,N,S=o.children,D=S.length,R=new Array(D+1);for(R[0]=N=w=0;w<D;++w)R[w+1]=N+=S[w].value;(function z(q,U,Z,Q,ct,ot,it){if(q>=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<ee;){var le=Wt+ee>>>1;R[le]<Mt?Wt=le+1:ee=le}Mt-R[Wt-1]<R[Wt]-Mt&&q+1<Wt&&--Wt;var Be=R[Wt]-pt,Xt=Z-Be;if(ot-Q>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;++Z<Q;){for(z=(R=D[Z]).children,q=R.value=0,U=z.length;q<U;++q)R.value+=z[q].value;R.dice?h1(R,v,w,N,w+=(S-w)*R.value/ct):Uc(R,v,w,v+=(N-v)*R.value/ct,S),ct-=R.value}else y._squarify=D=d1(l,y,v,w,N,S),D.ratio=l}return h.ratio=function(y){return o((y=+y)>1?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);h<y;)w[h]=o(v,v=l[++h]);return function(N){var S=Math.max(0,Math.min(y-1,Math.floor(N*=y)));return w[S](N-S)}}function W_(o,l){for(var h=new Array(l),y=0;y<l;++y)h[y]=o(y/(l-1));return h}function G_(o){for(var l,h=-1,y=o.length,v=o[y-1],w=0;++h<y;)l=v,v=o[h],w+=l[1]*v[0]-l[0]*v[1];return w/2}function z5(o){for(var l,h,y=-1,v=o.length,w=0,N=0,S=o[v-1],D=0;++y<v;)l=S,S=o[y],D+=h=l[0]*S[1]-S[0]*l[1],w+=(l[0]+S[0])*h,N+=(l[1]+S[1])*h;return[w/(D*=3),N/D]}function Y5(o,l,h){return(l[0]-o[0])*(h[1]-o[1])-(l[1]-o[1])*(h[0]-o[0])}function $5(o,l){return o[0]-l[0]||o[1]-l[1]}function V_(o){for(var l=o.length,h=[0,1],y=2,v=2;v<l;++v){for(;y>1&&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<h;++l)y[l]=[+o[l][0],+o[l][1],l];for(y.sort($5),l=0;l<h;++l)v[l]=[y[l][0],-y[l][1]];var w=V_(y),N=V_(v),S=N[0]===w[0],D=N[N.length-1]===w[w.length-1],R=[];for(l=w.length-1;l>=0;--l)R.push(o[y[w[l]][2]]);for(l=+S;l<N.length-D;++l)R.push(o[y[N[l]][2]]);return R}function Gp(o,l){for(var h,y,v=o.length,w=o[v-1],N=l[0],S=l[1],D=w[0],R=w[1],z=!1,q=0;q<v;++q)h=(w=o[q])[0],(y=w[1])>S!=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;++y<v;)l=N,h=S,l-=N=(w=o[y])[0],h-=S=w[1],D+=Math.sqrt(l*l+h*h);return D}function ws(){return Math.random()}const Cf=function o(l){function h(y,v){return y=y==null?0:+y,v=v==null?1:+v,arguments.length===1?(v=y,y=0):v-=y,function(){return l()*v+y}}return h.source=o,h}(ws),y1=function o(l){function h(y,v){var w,N;return y=y==null?0:+y,v=v==null?1:+v,function(){var S;if(w!=null)S=w,w=null;else do w=2*l()-1,S=2*l()-1,N=w*w+S*S;while(!N||N>1);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;w<y;++w)v+=l();return v}}return h.source=o,h}(ws),ks=function o(l){function h(y){var v=Ou.source(l)(y);return function(){return v()/y}}return h.source=o,h}(ws),j5=function o(l){function h(y){return function(){return-Math.log(1-l())/y}}return h.source=o,h}(ws);function Ko(o,l){switch(arguments.length){case 0:break;case 1:this.range(o);break;default:this.range(l).domain(o)}return this}function Qs(o,l){switch(arguments.length){case 0:break;case 1:this.interpolator(o);break;default:this.interpolator(l).domain(o)}return this}var X_=Array.prototype,Mf=X_.map,kl=X_.slice,Vp={name:"implicit"};function Nf(){var o=js(),l=[],h=[],y=Vp;function v(w){var N=w+"",S=o.get(N);if(!S){if(y!==Vp)return y;o.set(N,S=l.push(w))}return h[(S-1)%h.length]}return v.domain=function(w){if(!arguments.length)return l.slice();l=[],o=js();for(var N,S,D=-1,R=w.length;++D<R;)o.has(S=(N=w[D])+"")||o.set(S,l.push(N));return v},v.range=function(w){return arguments.length?(h=kl.call(w),v):h.slice()},v.unknown=function(w){return arguments.length?(y=w,v):y},v.copy=function(){return Nf(l,h).unknown(y)},Ko.apply(v,arguments),v}function Lf(){var o,l,h=Nf().unknown(void 0),y=h.domain,v=h.range,w=[0,1],N=!1,S=0,D=0,R=.5;function z(){var q=y().length,U=w[1]<w[0],Z=w[U-0],Q=w[1-U];o=(Q-Z)/Math.max(1,q-S+2*D),N&&(o=Math.floor(o)),Z+=(Q-Z-o*(q-S))*R,l=o*(1-S),N&&(Z=Math.round(Z),l=Math.round(l));var ct=Nt(q).map(function(ot){return Z+o*ot});return v(U?ct.reverse():ct)}return delete h.unknown,h.domain=function(q){return arguments.length?(y(q),z()):y()},h.range=function(q){return arguments.length?(w=[+q[0],+q[1]],z()):w.slice()},h.rangeRound=function(q){return w=[+q[0],+q[1]],N=!0,z()},h.bandwidth=function(){return l},h.step=function(){return o},h.round=function(q){return arguments.length?(N=!!q,z()):N},h.padding=function(q){return arguments.length?(S=Math.min(1,D=+q),z()):S},h.paddingInner=function(q){return arguments.length?(S=Math.min(1,q),z()):S},h.paddingOuter=function(q){return arguments.length?(D=+q,z()):D},h.align=function(q){return arguments.length?(R=Math.max(0,Math.min(1,q)),z()):R},h.copy=function(){return Lf(y(),w).round(N).paddingInner(S).paddingOuter(D).align(R)},Ko.apply(z(),arguments)}function Zp(o){var l=o.copy;return o.padding=o.paddingOuter,delete o.paddingInner,delete o.paddingOuter,o.copy=function(){return Zp(l())},o}function m1(){return Zp(Lf.apply(null,arguments).paddingInner(1))}function Df(o){return+o}var _1=[0,1];function ya(o){return o}function v1(o,l){return(l-=o=+o)?function(y){return(y-o)/l}:(h=isNaN(l)?NaN:.5,function(){return h});var h}function to(o){var l,h=o[0],y=o[o.length-1];return h>y&&(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 v<y?(y=v1(v,y),w=h(N,w)):(y=v1(y,v),w=h(w,N)),function(S){return w(y(S))}}function J_(o,l,h){var y=Math.min(o.length,l.length)-1,v=new Array(y),w=new Array(y),N=-1;for(o[y]<o[0]&&(o=o.slice().reverse(),l=l.slice().reverse());++N<y;)v[N]=v1(o[N],o[N+1]),w[N]=h(l[N],l[N+1]);return function(S){var D=L(o,S,1,y)-1;return w[D](v[D](S))}}function El(o,l){return l.domain(o.domain()).range(o.range()).interpolate(o.interpolate()).clamp(o.clamp()).unknown(o.unknown())}function b1(){var o,l,h,y,v,w,N=_1,S=_1,D=sl,R=ya;function z(){return y=Math.min(N.length,S.length)>2?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 D<S&&(y=S,S=D,D=y,y=w,w=N,N=y),(y=rt(S,D,h))>0?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 N<w&&(h=y,y=v,v=h,h=w,w=N,N=h),o[y]=l.floor(w),o[v]=l.ceil(N),o}function If(o){return Math.log(o)}function Of(o){return Math.exp(o)}function H5(o){return-Math.log(-o)}function Q_(o){return-Math.exp(-o)}function q5(o){return isFinite(o)?+("1e"+o):o<0?0:o}function t3(o){return function(l){return-o(-l)}}function tg(o){var l,h,y=o(If,Of),v=y.domain,w=10;function N(){return l=function(S){return S===Math.E?Math.log:S===10&&Math.log10||S===2&&Math.log2||(S=Math.log(S),function(D){return Math.log(D)/S})}(w),h=function(S){return S===10?q5:S===Math.E?Math.exp:function(D){return Math.pow(S,D)}}(w),v()[0]<0?(l=t3(l),h=t3(h),o(H5,Q_)):o(If,Of),y}return y.base=function(S){return arguments.length?(w=+S,N()):w},y.domain=function(S){return arguments.length?(v(S),N()):v()},y.ticks=function(S){var D,R=v(),z=R[0],q=R[R.length-1];(D=q<z)&&(ct=z,z=q,q=ct);var U,Z,Q,ct=l(z),ot=l(q),it=S==null?10:+S,gt=[];if(!(w%1)&&ot-ct<it){if(ct=Math.round(ct)-1,ot=Math.round(ot)+1,z>0){for(;ct<ot;++ct)for(Z=1,U=h(ct);Z<w;++Z)if(!((Q=U*Z)<z)){if(Q>q)break;gt.push(Q)}}else for(;ct<ot;++ct)for(Z=w-1,U=h(ct);Z>=1;--Z)if(!((Q=U*Z)<z)){if(Q>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*w<w-.5&&(q*=w),q<=R?D(z):""}},y.nice=function(){return v(Qp(v(),{floor:function(S){return h(Math.floor(l(S)))},ceil:function(S){return h(Math.ceil(l(S)))}}))},y}function e3(){var o=tg(b1()).domain([1,10]);return o.copy=function(){return El(o,e3()).base(o.base())},Ko.apply(o,arguments),o}function n3(o){return function(l){return Math.sign(l)*Math.log1p(Math.abs(l/o))}}function r3(o){return function(l){return Math.sign(l)*Math.expm1(Math.abs(l))*o}}function eg(o){var l=1,h=o(n3(l),r3(l));return h.constant=function(y){return arguments.length?o(n3(l=+y),r3(l)):l},tc(h)}function i3(){var o=eg(b1());return o.copy=function(){return El(o,i3()).constant(o.constant())},Ko.apply(o,arguments)}function a3(o){return function(l){return l<0?-Math.pow(-l,o):Math.pow(l,o)}}function W5(o){return o<0?-Math.sqrt(-o):Math.sqrt(o)}function G5(o){return o<0?-o*o:o*o}function ng(o){var l=o(ya,ya),h=1;function y(){return h===1?o(ya,ya):h===.5?o(W5,G5):o(a3(h),a3(1/h))}return l.exponent=function(v){return arguments.length?(h=+v,y()):h},tc(l)}function rg(){var o=ng(b1());return o.copy=function(){return El(o,rg()).exponent(o.exponent())},Ko.apply(o,arguments),o}function V5(){return rg.apply(null,arguments).exponent(.5)}function o3(){var o,l=[],h=[],y=[];function v(){var N=0,S=Math.max(1,h.length);for(y=new Array(S-1);++N<S;)y[N-1]=V(l,N/S);return w}function w(N){return isNaN(N=+N)?o:h[L(y,N)]}return w.invertExtent=function(N){var S=h.indexOf(N);return S<0?[NaN,NaN]:[S>0?y[S-1]:l[0],S<y.length?y[S]:l[l.length-1]]},w.domain=function(N){if(!arguments.length)return l.slice();l=[];for(var S,D=0,R=N.length;D<R;++D)(S=N[D])==null||isNaN(S=+S)||l.push(S);return l.sort(g),v()},w.range=function(N){return arguments.length?(h=kl.call(N),v()):h.slice()},w.unknown=function(N){return arguments.length?(o=N,w):o},w.quantiles=function(){return y.slice()},w.copy=function(){return o3().domain(l).range(h).unknown(o)},Ko.apply(w,arguments)}function s3(){var o,l=0,h=1,y=1,v=[.5],w=[0,1];function N(D){return D<=D?w[L(v,D,0,y)]:o}function S(){var D=-1;for(v=new Array(y);++D<y;)v[D]=((D+1)*h-(D-y)*l)/(y+1);return N}return N.domain=function(D){return arguments.length?(l=+D[0],h=+D[1],S()):[l,h]},N.range=function(D){return arguments.length?(y=(w=kl.call(D)).length-1,S()):w.slice()},N.invertExtent=function(D){var R=w.indexOf(D);return R<0?[NaN,NaN]:R<1?[l,v[0]]:R>=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-N<S-w?N:S},v.offset=function(w,N){return l(w=new Date(+w),N==null?1:Math.floor(N)),w},v.range=function(w,N,S){var D,R=[];if(w=v.ceil(w),S=S==null?1:Math.floor(S),!(w<N&&S>0))return R;do R.push(D=new Date(+w)),l(w,S),o(w);while(D<w&&w<N);return R},v.filter=function(w){return Gi(function(N){if(N>=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));++tn<Bn;)Xt.charCodeAt(tn)===37&&(de.push(Xt.slice(fn,tn)),(ue=gg[Pt=Xt.charAt(++tn)])!=null?Pt=Xt.charAt(++tn):ue=Pt==="e"?" ":"0",(ce=_e[Pt])&&(Pt=ce(Et,ue)),de.push(Pt),fn=tn+1);return de.push(Xt.slice(fn,tn)),de.join("")}}function le(Xt,_e){return function(Et){var Pt,ue,ce=ko(1900,void 0,1);if(Be(ce,Xt,Et+="",0)!=Et.length)return null;if("Q"in ce)return new Date(ce.Q);if("s"in ce)return new Date(1e3*ce.s+("L"in ce?ce.L:0));if(_e&&!("Z"in ce)&&(ce.Z=0),"p"in ce&&(ce.H=ce.H%12+12*ce.p),ce.m===void 0&&(ce.m="q"in ce?ce.q:0),"V"in ce){if(ce.V<1||ce.V>53)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<tn;){if(Pt>=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+(w<h?new Array(h-w+1).join(l)+v:v)}function b3(o){return o.replace(J5,"\\$&")}function Je(o){return new RegExp("^(?:"+o.map(b3).join("|")+")","i")}function ac(o){for(var l={},h=-1,y=o.length;++h<y;)l[o[h].toLowerCase()]=h;return l}function wn(o,l,h){var y=Vi.exec(l.slice(h,h+1));return y?(o.w=+y[0],h+y[0].length):-1}function x3(o,l,h){var y=Vi.exec(l.slice(h,h+1));return y?(o.u=+y[0],h+y[0].length):-1}function Sr(o,l,h){var y=Vi.exec(l.slice(h,h+2));return y?(o.U=+y[0],h+y[0].length):-1}function tr(o,l,h){var y=Vi.exec(l.slice(h,h+2));return y?(o.V=+y[0],h+y[0].length):-1}function qa(o,l,h){var y=Vi.exec(l.slice(h,h+2));return y?(o.W=+y[0],h+y[0].length):-1}function Wf(o,l,h){var y=Vi.exec(l.slice(h,h+4));return y?(o.y=+y[0],h+y[0].length):-1}function w3(o,l,h){var y=Vi.exec(l.slice(h,h+2));return y?(o.y=+y[0]+(+y[0]>68?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)<le?U:w(le)<le?Z:v(le)<le?Q:y(le)<le?ct:l(le)<le?h(le)<le?ot:it:o(le)<le?gt:pt)(le)}function ee(le,Be,Xt,_e){if(le==null&&(le=10),typeof le=="number"){var Et=Math.abs(Xt-Be)/le,Pt=E(function(ue){return ue[2]}).right(Mt,Et);Pt===Mt.length?(_e=dt(Be/Ol,Xt/Ol,le),le=o):Pt?(_e=(Pt=Mt[Et/Mt[Pt-1][2]<Mt[Pt][2]/Et?Pt-1:Pt])[1],le=Pt[0]):(_e=Math.max(dt(Be,Xt,le),1),le=S)}return _e==null?le:le.every(_e)}return R.invert=function(le){return new Date(z(le))},R.domain=function(le){return arguments.length?q(Mf.call(le,A1)):q().map(ra)},R.ticks=function(le,Be){var Xt,_e=q(),Et=_e[0],Pt=_e[_e.length-1],ue=Pt<Et;return ue&&(Xt=Et,Et=Pt,Pt=Xt),Xt=(Xt=ee(le,Et,Pt,Be))?Xt.range(Et,Pt+1):[],ue?Xt.reverse():Xt},R.tickFormat=function(le,Be){return Be==null?Wt:D(Be)},R.nice=function(le,Be){var Xt=q();return(le=ee(le,Xt[0],Xt[Xt.length-1],Be))?q(Qp(Xt,le)):R},R.copy=function(){return El(R,ju(o,l,h,y,v,w,N,S,D))},R}function Qf(){return Ko.apply(ju(Tl,og,Cl,_i,h3,w1,Uu,zu,Ll).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Ng=Gi(function(o){o.setUTCDate(1),o.setUTCHours(0,0,0,0)},function(o,l){o.setUTCMonth(o.getUTCMonth()+l)},function(o,l){return l.getUTCMonth()-o.getUTCMonth()+12*(l.getUTCFullYear()-o.getUTCFullYear())},function(o){return o.getUTCMonth()});const Jt=Ng;var pb=Ng.range,Lg=Gi(function(o){o.setUTCMinutes(0,0,0)},function(o,l){o.setTime(+o+l*x1)},function(o,l){return(l-o)/x1},function(o){return o.getUTCHours()});const C1=Lg;var Dg=Lg.range,M1=Gi(function(o){o.setUTCSeconds(0,0)},function(o,l){o.setTime(+o+l*Sl)},function(o,l){return(l-o)/Sl},function(o){return o.getUTCMinutes()});const td=M1;var Ig=M1.range;function Ms(){return Ko.apply(ju(Ss,Jt,k1,E1,C1,td,Uu,zu,Dl).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Wa(){var o,l,h,y,v,w=0,N=1,S=ya,D=!1;function R(z){return isNaN(z=+z)?v:S(h===0?.5:(z=(y(z)-o)*h,D?Math.max(0,Math.min(1,z)):z))}return R.domain=function(z){return arguments.length?(o=y(w=+z[0]),l=y(N=+z[1]),h=o===l?0:1/(l-o),R):[w,N]},R.clamp=function(z){return arguments.length?(D=!!z,R):D},R.interpolator=function(z){return arguments.length?(S=z,R):S},R.unknown=function(z){return arguments.length?(v=z,R):v},function(z){return y=z,o=z(w),l=z(N),h=o===l?0:1/(l-o),R}}function ia(o,l){return l.domain(o.domain()).interpolator(o.interpolator()).clamp(o.clamp()).unknown(o.unknown())}function To(){var o=tc(Wa()(ya));return o.copy=function(){return ia(o,To())},Qs.apply(o,arguments)}function So(){var o=tg(Wa()).domain([1,10]);return o.copy=function(){return ia(o,So()).base(o.base())},Qs.apply(o,arguments)}function N1(){var o=eg(Wa());return o.copy=function(){return ia(o,N1()).constant(o.constant())},Qs.apply(o,arguments)}function Hu(){var o=ng(Wa());return o.copy=function(){return ia(o,Hu()).exponent(o.exponent())},Qs.apply(o,arguments)}function Ns(){return Hu.apply(null,arguments).exponent(.5)}function Hc(){var o=[],l=ya;function h(y){if(!isNaN(y=+y))return l((L(o,y)-1)/(o.length-1))}return h.domain=function(y){if(!arguments.length)return o.slice();o=[];for(var v,w=0,N=y.length;w<N;++w)(v=y[w])==null||isNaN(v=+v)||o.push(v);return o.sort(g),h},h.interpolator=function(y){return arguments.length?(l=y,h):l},h.copy=function(){return Hc(l).domain(o)},Qs.apply(h,arguments)}function aa(){var o,l,h,y,v,w,N,S=0,D=.5,R=1,z=ya,q=!1;function U(Z){return isNaN(Z=+Z)?N:(Z=.5+((Z=+w(Z))-l)*(Z<l?y:v),z(q?Math.max(0,Math.min(1,Z)):Z))}return U.domain=function(Z){return arguments.length?(o=w(S=+Z[0]),l=w(D=+Z[1]),h=w(R=+Z[2]),y=o===l?0:.5/(l-o),v=l===h?0:.5/(h-l),U):[S,D,R]},U.clamp=function(Z){return arguments.length?(q=!!Z,U):q},U.interpolator=function(Z){return arguments.length?(z=Z,U):z},U.unknown=function(Z){return arguments.length?(N=Z,U):N},function(Z){return w=Z,o=Z(S),l=Z(D),h=Z(R),y=o===l?0:.5/(l-o),v=l===h?0:.5/(h-l),U}}function Ao(){var o=tc(aa()(ya));return o.copy=function(){return ia(o,Ao())},Qs.apply(o,arguments)}function Ls(){var o=tg(aa()).domain([.1,1,10]);return o.copy=function(){return ia(o,Ls()).base(o.base())},Qs.apply(o,arguments)}function L1(){var o=eg(aa());return o.copy=function(){return ia(o,L1()).constant(o.constant())},Qs.apply(o,arguments)}function ed(){var o=ng(aa());return o.copy=function(){return ia(o,ed()).exponent(o.exponent())},Qs.apply(o,arguments)}function R3(){return ed.apply(null,arguments).exponent(.5)}function ur(o){for(var l=o.length/6|0,h=new Array(l),y=0;y<l;)h[y]="#"+o.slice(6*y,6*++y);return h}const qc=ur("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),B3=ur("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),F3=ur("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),P3=ur("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),cc=ur("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),gb=ur("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),yb=ur("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),_a=ur("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),U3=ur("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),eo=ur("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Zr(o){return Kl(o[o.length-1])}var Og=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ur);const z3=Zr(Og);var Rg=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ur);const nd=Zr(Rg);var D1=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ur);const Sn=Zr(D1);var Bg=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ur);const Fg=Zr(Bg);var qu=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ur);const rd=Zr(qu);var Co=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ur);const Y3=Zr(Co);var Pg=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ur);const Mo=Zr(Pg);var Ug=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ur);const mb=Zr(Ug);var zg=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ur);const $3=Zr(zg);var id=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ur);const Yg=Zr(id);var ad=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ur);const Xi=Zr(ad);var $g=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ur);const od=Zr($g);var Wu=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ur);const I1=Zr(Wu);var sd=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ur);const cd=Zr(sd);var jg=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ur);const Hg=Zr(jg);var j3=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ur);const O1=Zr(j3);var qg=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ur);const H3=Zr(qg);var ts=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ur);const _b=Zr(ts);var Gu=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ur);const vb=Zr(Gu);var Fi=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ur);const Wc=Zr(Fi);var q3=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ur);const W3=Zr(q3);var ld=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ur);const bb=Zr(ld);var G3=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ur);const xb=Zr(G3);var Wg=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ur);const Vu=Zr(Wg);var ud=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ur);const wb=Zr(ud);var hd=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ur);const fd=Zr(hd);var R1=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ur);const V3=Zr(R1);function kb(o){return o=Math.max(0,Math.min(1,o)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-o*(35.34-o*(2381.73-o*(6402.7-o*(7024.72-2710.57*o)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+o*(170.73+o*(52.82-o*(131.46-o*(176.58-67.37*o)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+o*(442.36-o*(2482.43-o*(6167.24-o*(6614.94-2475.67*o)))))))+")"}const Eb=g1(Fa(300,.5,0),Fa(-240,.5,1));var Tb=g1(Fa(-100,.75,.35),Fa(80,1.5,.8)),Gg=g1(Fa(260,.75,.35),Fa(80,1.5,.8)),va=Fa();function Ma(o){(o<0||o>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);h<y;++h)v[h]=cl(o,l[h]);return v}function gr(o){return function(){return o}}Vg.prototype=X3.prototype={constructor:Vg,get:function(o){for(var l=this._;!(l in o);)if(!(o=o.parentNode))return;return o[l]},set:function(o,l){return o[this._]=l},remove:function(o){return this._ in o&&delete o[this._]},toString:function(){return this._}};var K3=Math.abs,Pi=Math.atan2,ns=Math.cos,uc=Math.max,Ds=Math.min,mo=Math.sin,Bl=Math.sqrt,ba=1e-12,hc=Math.PI,fc=hc/2,dc=2*hc;function Db(o){return o>1?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*U<ba))return[o+(U=(z*(l-w)-q*(o-v))/U)*D,l+U*R]}function md(o,l,h,y,v,w,N){var S=o-h,D=l-y,R=(N?w:-w)/Bl(S*S+D*D),z=R*D,q=-R*S,U=o+z,Z=l+q,Q=h+z,ct=y+q,ot=(U+Q)/2,it=(Z+ct)/2,gt=Q-U,pt=ct-Z,Mt=gt*gt+pt*pt,Wt=v-w,ee=U*ct-Q*Z,le=(pt<0?-1:1)*Bl(uc(0,Wt*Wt*Mt-ee*ee)),Be=(ee*pt-gt*le)/Mt,Xt=(-ee*gt-pt*le)/Mt,_e=(ee*pt+gt*le)/Mt,Et=(-ee*gt+pt*le)/Mt,Pt=Be-ot,ue=Xt-it,ce=_e-ot,de=Et-it;return Pt*Pt+ue*ue>ce*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()),U<q&&(z=U,U=q,q=z),U>ba)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(ct<hc&&(Kn=J3(tn,fn,Wn,Hn,bn,Ar,Bn,dr))){var wr=tn-Kn[0],wa=fn-Kn[1],$i=bn-Kn[0],vc=Ar-Kn[1],el=1/mo(Db((wr*$i+wa*vc)/(Bl(wr*wr+wa*wa)*Bl($i*$i+vc*vc)))/2),X1=Bl(Kn[0]*Kn[0]+Kn[1]*Kn[1]);Pt=Ds(Et,(q-X1)/(el-1)),ue=Ds(Et,(U-X1)/(el+1))}}Be>ba?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),ue<Et?S.arc(it.cx,it.cy,ue,Pi(it.y01,it.x01),Pi(gt.y01,gt.x01),!ot):(S.arc(it.cx,it.cy,ue,Pi(it.y01,it.x01),Pi(it.y11,it.x11),!ot),S.arc(0,0,U,Pi(it.cy+it.y11,it.cx+it.x11),Pi(gt.cy+gt.y11,gt.cx+gt.x11),!ot),S.arc(gt.cx,gt.cy,ue,Pi(gt.y11,gt.x11),Pi(gt.y01,gt.x01),!ot))):(S.moveTo(tn,fn),S.arc(0,0,U,pt,Mt,!ot)):S.moveTo(tn,fn),q>ba&&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<Et?S.arc(it.cx,it.cy,Pt,Pi(it.y01,it.x01),Pi(gt.y01,gt.x01),!ot):(S.arc(it.cx,it.cy,Pt,Pi(it.y01,it.x01),Pi(it.y11,it.x11),!ot),S.arc(0,0,q,Pi(it.cy+it.y11,it.cx+it.x11),Pi(gt.cy+gt.y11,gt.cx+gt.x11),ot),S.arc(gt.cx,gt.cy,Pt,Pi(gt.y11,gt.x11),Pi(gt.y01,gt.x01),!ot))):S.arc(0,0,q,ee,Wt,ot):S.lineTo(Bn,dr)}else S.moveTo(0,0);if(S.closePath(),R)return S=null,R+""||null}return D.centroid=function(){var R=(+o.apply(this,arguments)+ +l.apply(this,arguments))/2,z=(+v.apply(this,arguments)+ +w.apply(this,arguments))/2-hc/2;return[ns(z)*R,mo(z)*R]},D.innerRadius=function(R){return arguments.length?(o=typeof R=="function"?R:gr(+R),D):o},D.outerRadius=function(R){return arguments.length?(l=typeof R=="function"?R:gr(+R),D):l},D.cornerRadius=function(R){return arguments.length?(h=typeof R=="function"?R:gr(+R),D):h},D.padRadius=function(R){return arguments.length?(y=R==null?null:typeof R=="function"?R:gr(+R),D):y},D.startAngle=function(R){return arguments.length?(v=typeof R=="function"?R:gr(+R),D):v},D.endAngle=function(R){return arguments.length?(w=typeof R=="function"?R:gr(+R),D):w},D.padAngle=function(R){return arguments.length?(N=typeof R=="function"?R:gr(+R),D):N},D.context=function(R){return arguments.length?(S=R==null?null:R,D):S},D}function Kg(o){this._context=o}function B1(o){return new Kg(o)}function Fl(o){return o[0]}function F1(o){return o[1]}function _d(){var o=Fl,l=F1,h=gr(!0),y=null,v=B1,w=null;function N(S){var D,R,z,q=S.length,U=!1;for(y==null&&(w=v(z=$s())),D=0;D<=q;++D)!(D<q&&h(R=S[D],D,S))===U&&((U=!U)?w.lineStart():w.lineEnd()),U&&w.point(+o(R,D,S),+l(R,D,S));if(z)return w=null,z+""||null}return N.x=function(S){return arguments.length?(o=typeof S=="function"?S:gr(+S),N):o},N.y=function(S){return arguments.length?(l=typeof S=="function"?S:gr(+S),N):l},N.defined=function(S){return arguments.length?(h=typeof S=="function"?S:gr(!!S),N):h},N.curve=function(S){return arguments.length?(v=S,y!=null&&(w=v(y)),N):v},N.context=function(S){return arguments.length?(S==null?y=w=null:w=v(y=S),N):y},N}function Ga(){var o=Fl,l=null,h=gr(0),y=F1,v=gr(!0),w=null,N=B1,S=null;function D(z){var q,U,Z,Q,ct,ot=z.length,it=!1,gt=new Array(ot),pt=new Array(ot);for(w==null&&(S=N(ct=$s())),q=0;q<=ot;++q){if(!(q<ot&&v(Q=z[q],q,z))===it)if(it=!it)U=q,S.areaStart(),S.lineStart();else{for(S.lineEnd(),S.lineStart(),Z=q-1;Z>=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 l<o?-1:l>o?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;D<Z;++D)(U=ot[ct[D]=D]=+o(S[D],D,S))>0&&(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;D<Z;++D,it=q)R=ct[D],q=it+((U=ot[R])>0?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<y-1;++l)v[l]=1,w[l]=4,N[l]=4*o[l]+2*o[l+1];for(v[y-1]=2,w[y-1]=7,N[y-1]=8*o[y-1]+o[y],l=1;l<y;++l)h=v[l]/w[l-1],w[l]-=h,N[l]-=h*N[l-1];for(v[y-1]=N[y-1]/w[y-1],l=y-2;l>=0;--l)v[l]=(N[l]-v[l+1])/w[l];for(w[y-1]=(o[y]+v[y-1])/2,l=0;l<y-1;++l)w[l]=2*o[l+1]-v[l+1];return[v,w]}function $1(o){return new uy(o)}function Qu(o,l){this._context=o,this._t=l}function hy(o){return new Qu(o,.5)}function lv(o){return new Qu(o,0)}function uv(o){return new Qu(o,1)}function th(o,l){if((v=o.length)>1)for(var h,y,v,w=1,N=o[l[0]],S=N.length;w<v;++w)for(y=N,N=o[l[w]],h=0;h<S;++h)N[h][1]+=N[h][0]=isNaN(y[h][1])?y[h][0]:y[h][1]}function Zc(o){for(var l=o.length,h=new Array(l);--l>=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;N<z;++N){for(var U,Z=D[N],Q=q[N]=new Array(R),ct=0;ct<R;++ct)Q[ct]=U=[0,+y(w[ct],Z,ct,w)],U.data=w[ct];Q.key=Z}for(N=0,S=l(q);N<z;++N)q[S[N]].index=N;return h(q,S),q}return v.keys=function(w){return arguments.length?(o=typeof w=="function"?w:gr(P1.call(w)),v):o},v.value=function(w){return arguments.length?(y=typeof w=="function"?w:gr(+w),v):y},v.order=function(w){return arguments.length?(l=w==null?Zc:typeof w=="function"?w:gr(P1.call(w)),v):l},v.offset=function(w){return arguments.length?(h=w==null?th:w,v):h},v}function dv(o,l){if((y=o.length)>0){for(var h,y,v,w=0,N=o[0].length;w<N;++w){for(v=h=0;h<y;++h)v+=o[h][w][1]||0;if(v)for(h=0;h<y;++h)o[h][w][1]/=v}th(o,l)}}function eh(o,l){if((S=o.length)>0)for(var h,y,v,w,N,S,D=0,R=o[l[0]].length;D<R;++D)for(w=N=0,h=0;h<S;++h)(v=(y=o[l[h]][D])[1]-y[0])>0?(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;y<w;++y){for(var N=0,S=0;N<h;++N)S+=o[N][y][1]||0;v[y][1]+=v[y][0]=-S/2}th(o,l)}}function pv(o,l){if((v=o.length)>0&&(y=(h=o[l[0]]).length)>0){for(var h,y,v,w=0,N=1;N<y;++N){for(var S=0,D=0,R=0;S<v;++S){for(var z=o[l[S]],q=z[N][1]||0,U=(q-(z[N-1][1]||0))/2,Z=0;Z<S;++Z){var Q=o[l[Z]];U+=(Q[N][1]||0)-(Q[N-1][1]||0)}D+=q,R+=U*q}h[N-1][1]+=h[N-1][0]=w,D&&(w-=R/D)}h[N-1][1]+=h[N-1][0]=w,th(o,l)}}function Yl(o){var l=o.map(gv);return Zc(o).sort(function(h,y){return l[h]-l[y]})}function gv(o){for(var l,h=-1,y=0,v=o.length,w=-1/0;++h<v;)(l=+o[h][1])>w&&(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<v;)(l=+o[y][1])&&(h+=l);return h}function nh(o){return fy(o).reverse()}function yv(o){var l,h,y=o.length,v=o.map(dy),w=Yl(o),N=0,S=0,D=[],R=[];for(l=0;l<y;++l)h=w[l],N<S?(N+=v[h],D.push(h)):(S+=v[h],R.push(h));return R.reverse().concat(D)}function Xc(o){return Zc(o).reverse()}Ld.prototype={areaStart:Gc,areaEnd:Gc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(o,l){o=+o,l=+l,this._point?this._context.lineTo(o,l):(this._point=1,this._context.moveTo(o,l))}},Vc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zl(this,this._t0,Od(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(o,l){var h=NaN;if(l=+l,(o=+o)!==this._x1||l!==this._y1){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,zl(this,Od(this,h=Id(this,o,l)),h);break;default:zl(this,this._t0,h=Id(this,o,l))}this._x0=this._x1,this._x1=o,this._y0=this._y1,this._y1=l,this._t0=h}}},(Rd.prototype=Object.create(Vc.prototype)).point=function(o,l){Vc.prototype.point.call(this,l,o)},Bd.prototype={moveTo:function(o,l){this._context.moveTo(l,o)},closePath:function(){this._context.closePath()},lineTo:function(o,l){this._context.lineTo(l,o)},bezierCurveTo:function(o,l,h,y,v,w){this._context.bezierCurveTo(l,o,y,h,w,v)}},uy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var o=this._x,l=this._y,h=o.length;if(h)if(this._line?this._context.lineTo(o[0],l[0]):this._context.moveTo(o[0],l[0]),h===2)this._context.lineTo(o[1],l[1]);else for(var y=Y1(o),v=Y1(l),w=0,N=1;N<h;++w,++N)this._context.bezierCurveTo(y[0][w],v[0][w],y[1][w],v[1][w],o[N],l[N]);(this._line||this._line!==0&&h===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(o,l){this._x.push(+o),this._y.push(+l)}},Qu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(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(w<z)return;w<q&&(q=w)}else if(U>0){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(w<z)return;w<q&&(q=w)}if(w=h-R,Z||!(w>0)){if(w/=Z,Z<0){if(w<z)return;w<q&&(q=w)}else if(Z>0){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(w<z)return;w<q&&(q=w)}return!(z>0||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<l||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]<h)return}else D=[ct,v];w=[ct,h]}}else if(S=ot-(N=(q-Z)/(Q-U))*ct,N<-1||N>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]<h)return}else D=[(v-S)/N,v];w=[(h-S)/N,h]}else if(U<Q){if(D){if(D[0]>=y)return}else D=[l,N*l+S];w=[y,N*y+S]}else{if(D){if(D[0]<l)return}else D=[y,N*y+S];w=[l,N*l+S]}return o[0]=D,o[1]=w,!0}function kv(o,l){var h=o.site,y=l.left,v=l.right;return h===v&&(v=y,y=h),v?Math.atan2(v[1]-y[1],v[0]-y[0]):(h===y?(y=l[1],v=l[0]):(y=l[0],v=l[1]),Math.atan2(y[0]-v[0],v[1]-y[1]))}function gy(o,l){return l[+(l.left!==o.site)]}function H1(o,l){return l[+(l.left===o.site)]}var Jc,Ev=[];function Tv(){oa(this),this.x=this.y=this.arc=this.site=this.cy=null}function Os(o){var l=o.P,h=o.N;if(l&&h){var y=l.site,v=o.site,w=h.site;if(y!==w){var N=v[0],S=v[1],D=y[0]-N,R=y[1]-S,z=w[0]-N,q=w[1]-S,U=2*(D*q-R*z);if(!(U>=-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.y<pt.y||it.y===pt.y&&it.x<=pt.x){if(!pt.L){gt=pt.P;break}pt=pt.L}else{if(!pt.R){gt=pt;break}pt=pt.R}rh.insert(gt,it),gt||(Jc=it)}}}}function Ki(o){var l=o.circle;l&&(l.P||(Jc=l.N),rh.remove(l),Ev.push(l),oa(l),o.circle=null)}var jl=[];function q1(){oa(this),this.edge=this.site=this.circle=null}function W1(o){var l=jl.pop()||new q1;return l.site=o,l}function Pd(o){Ki(o),Hl.remove(o),jl.push(o),oa(o)}function Sv(o){var l=o.circle,h=l.x,y=l.cy,v=[h,y],w=o.P,N=o.N,S=[o];Pd(o);for(var D=w;D.circle&&Math.abs(h-D.circle.x)<Yr&&Math.abs(y-D.circle.cy)<Yr;)w=D.P,S.unshift(D),Pd(D),D=w;S.unshift(D),Ki(D);for(var R=N;R.circle&&Math.abs(h-R.circle.x)<Yr&&Math.abs(y-R.circle.cy)<Yr;)N=R.N,S.push(R),Pd(R),R=N;S.push(R),Ki(R);var z,q=S.length;for(z=1;z<q;++z)R=S[z],D=S[z-1],j1(R.edge,D.site,R.site,v);D=S[0],(R=S[q-1]).edge=as(D.site,R.site,null,v),Os(D),Os(R)}function Vb(o){for(var l,h,y,v,w=o[0],N=o[1],S=Hl._;S;)if((y=yy(S,N)-w)>Yr)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]<v.y||w[1]===v.y&&w[0]<v.x))w[0]===h&&w[1]===y||(Vb(w),h=w[0],y=w[1]),w=o.pop();else{if(!v)break;Sv(v.arc)}if(function(){for(var z,q,U,Z,Q=0,ct=vo.length;Q<ct;++Q)if((z=vo[Q])&&(Z=(q=z.halfedges).length)){var ot=new Array(Z),it=new Array(Z);for(U=0;U<Z;++U)ot[U]=U,it[U]=kv(z,La[q[U]]);for(ot.sort(function(gt,pt){return it[pt]-it[gt]}),U=0;U<Z;++U)it[U]=q[ot[U]];for(U=0;U<Z;++U)q[U]=it[U]}}(),l){var N=+l[0][0],S=+l[0][1],D=+l[1][0],R=+l[1][1];(function(z,q,U,Z){for(var Q,ct=La.length;ct--;)wv(Q=La[ct],z,q,U,Z)&&xv(Q,z,q,U,Z)&&(Math.abs(Q[0][0]-Q[1][0])>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;it<pt;)Be=(le=H1(ct,La[gt[it]]))[0],Xt=le[1],Wt=(Mt=gy(ct,La[gt[++it%pt]]))[0],ee=Mt[1],(Math.abs(Be-Wt)>Yr||Math.abs(Xt-ee)>Yr)&&(gt.splice(it,0,La.push($l(ot,le,Math.abs(Be-z)<Yr&&Z-Xt>Yr?[z,Math.abs(Wt-z)<Yr?ee:Z]:Math.abs(Xt-Z)<Yr&&U-Be>Yr?[Math.abs(ee-Z)<Yr?Wt:U,Z]:Math.abs(Be-U)<Yr&&Xt-q>Yr?[U,Math.abs(Wt-U)<Yr?ee:q]:Math.abs(Xt-q)<Yr&&Be-z>Yr?[Math.abs(ee-q)<Yr?Wt:z,q]:null))-1),++pt);pt&&(Et=!1)}if(Et){var Pt,ue,ce,de=1/0;for(Q=0,Et=null;Q<_e;++Q)(ct=vo[Q])&&(ce=(Pt=(ot=ct.site)[0]-z)*Pt+(ue=ot[1]-q)*ue)<de&&(de=ce,Et=ct);if(Et){var tn=[z,q],fn=[z,Z],Bn=[U,Z],dr=[U,q];Et.halfedges.push(La.push($l(ot=Et.site,tn,fn))-1,La.push($l(ot,fn,Bn))-1,La.push($l(ot,Bn,dr))-1,La.push($l(ot,dr,tn))-1)}}for(Q=0;Q<_e;++Q)(ct=vo[Q])&&(ct.halfedges.length||delete vo[Q])}(N,S,D,R)}this.edges=La,this.cells=vo,Hl=rh=La=vo=null}function my(){var o=Fd,l=Gb,h=null;function y(v){return new G1(v.map(function(w,N){var S=[Math.round(o(w,N,v)/Yr)*Yr,Math.round(l(w,N,v)/Yr)*Yr];return S.index=N,S.data=w,S}),h)}return y.polygons=function(v){return y(v).polygons()},y.links=function(v){return y(v).links()},y.triangles=function(v){return y(v).triangles()},y.x=function(v){return arguments.length?(o=typeof v=="function"?v:bv(+v),y):o},y.y=function(v){return arguments.length?(l=typeof v=="function"?v:bv(+v),y):l},y.extent=function(v){return arguments.length?(h=v==null?null:[[+v[0][0],+v[0][1]],[+v[1][0],+v[1][1]]],y):h&&[[h[0][0],h[0][1]],[h[1][0],h[1][1]]]},y.size=function(v){return arguments.length?(h=v==null?null:[[0,0],[+v[0],+v[1]]],y):h&&[h[1][0]-h[0][0],h[1][1]-h[0][1]]},y}function os(o){return function(){return o}}function mc(o,l,h){this.target=o,this.type=l,this.transform=h}function _c(o,l,h){this.k=o,this.x=l,this.y=h}G1.prototype={constructor:G1,polygons:function(){var o=this.edges;return this.cells.map(function(l){var h=l.halfedges.map(function(y){return gy(l,o[y])});return h.data=l.site.data,h})},triangles:function(){var o=[],l=this.edges;return this.cells.forEach(function(h,y){if(w=(v=h.halfedges).length)for(var v,w,N,S=h.site,D=-1,R=l[v[w-1]],z=R.left===S?R.right:R.left;++D<w;)N=z,z=(R=l[v[D]]).left===S?R.right:R.left,N&&z&&y<N.index&&y<z.index&&Cv(S,N,z)<0&&o.push([S.data,N.data,z.data])}),o},links:function(){return this.edges.filter(function(o){return o.right}).map(function(o){return{source:o.left.data,target:o.right.data}})},find:function(o,l,h){for(var y,v,w=this,N=w._found||0,S=w.cells.length;!(v=w.cells[N]);)if(++N>=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;ot<z&&(z=ot,N=Z.index)}});while(N!==null);return w._found=y,h==null||z<=h*h?v.site:null}},_c.prototype={constructor:_c,scale:function(o){return o===1?this:new _c(this.k*o,this.x,this.y)},translate:function(o,l){return o===0&l===0?this:new _c(this.k,this.x+this.k*o,this.y+this.k*l)},apply:function(o){return[o[0]*this.k+this.x,o[1]*this.k+this.y]},applyX:function(o){return o*this.k+this.x},applyY:function(o){return o*this.k+this.y},invert:function(o){return[(o[0]-this.x)/this.k,(o[1]-this.y)/this.k]},invertX:function(o){return(o-this.x)/this.k},invertY:function(o){return(o-this.y)/this.k},rescaleX:function(o){return o.copy().domain(o.range().map(this.invertX,this).map(o.invert,o))},rescaleY:function(o){return o.copy().domain(o.range().map(this.invertY,this).map(o.invert,o))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Qc=new _c(1,0,0);function Mv(o){for(;!o.__zoom;)if(!(o=o.parentNode))return Qc;return o.__zoom}function V1(){Re.stopImmediatePropagation()}function ca(){Re.preventDefault(),Re.stopImmediatePropagation()}function Z1(){return!Re.ctrlKey&&!Re.button}function tl(){var o=this;return o instanceof SVGElement?(o=o.ownerSVGElement||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]]:[[0,0],[o.clientWidth,o.clientHeight]]}function ih(){return this.__zoom||Qc}function ah(){return-Re.deltaY*(Re.deltaMode===1?.05:Re.deltaMode?1:.002)}function _y(){return navigator.maxTouchPoints||"ontouchstart"in this}function Xb(o,l,h){var y=o.invertX(l[0][0])-h[0][0],v=o.invertX(l[1][0])-h[1][0],w=o.invertY(l[0][1])-h[0][1],N=o.invertY(l[1][1])-h[1][1];return o.translate(v>y?(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<tn;++Pt)ce=[ce=Ra(this,de,(ue=de[Pt]).identifier),this.__zoom.invert(ce),ue.identifier],fn.touch0?fn.touch1||fn.touch0[2]===ce[2]||(fn.touch1=ce,fn.taps=0):(fn.touch0=ce,Et=!0,fn.taps=1+!!o);o&&(o=clearTimeout(o)),Et&&(fn.taps<2&&(o=setTimeout(function(){o=null},U)),Ba(this),fn.start())}}function Xt(){if(this.__zooming){var Et,Pt,ue,ce,de=pt(this,arguments),tn=Re.changedTouches,fn=tn.length;for(ca(),o&&(o=clearTimeout(o)),de.taps=0,Et=0;Et<fn;++Et)ue=Ra(this,tn,(Pt=tn[Et]).identifier),de.touch0&&de.touch0[2]===Pt.identifier?de.touch0[0]=ue:de.touch1&&de.touch1[2]===Pt.identifier&&(de.touch1[0]=ue);if(Pt=de.that.__zoom,de.touch1){var Bn=de.touch0[0],dr=de.touch0[1],Kn=de.touch1[0],bn=de.touch1[1],Ar=(Ar=Kn[0]-Bn[0])*Ar+(Ar=Kn[1]-Bn[1])*Ar,Wn=(Wn=bn[0]-dr[0])*Wn+(Wn=bn[1]-dr[1])*Wn;Pt=ct(Pt,Math.sqrt(Ar/Wn)),ue=[(Bn[0]+Kn[0])/2,(Bn[1]+Kn[1])/2],ce=[(dr[0]+bn[0])/2,(dr[1]+bn[1])/2]}else{if(!de.touch0)return;ue=de.touch0[0],ce=de.touch0[1]}de.zoom("touch",v(ot(Pt,ue,ce),de.extent,D))}}function _e(){if(this.__zooming){var Et,Pt,ue=pt(this,arguments),ce=Re.changedTouches,de=ce.length;for(V1(),l&&clearTimeout(l),l=setTimeout(function(){l=null},U),Et=0;Et<de;++Et)Pt=ce[Et],ue.touch0&&ue.touch0[2]===Pt.identifier?delete ue.touch0:ue.touch1&&ue.touch1[2]===Pt.identifier&&delete ue.touch1;if(ue.touch1&&!ue.touch0&&(ue.touch0=ue.touch1,delete ue.touch1),ue.touch0)ue.touch0[1]=this.__zoom.invert(ue.touch0[0]);else if(ue.end(),ue.taps===2){var tn=Hr(this).on("dblclick.zoom");tn&&tn.apply(this,arguments)}}}return Q.transform=function(Et,Pt,ue){var ce=Et.selection?Et.selection():Et;ce.property("__zoom",ih),Et!==ce?gt(Et,Pt,ue):ce.interrupt().each(function(){pt(this,arguments).start().zoom(null,typeof Pt=="function"?Pt.apply(this,arguments):Pt).end()})},Q.scaleBy=function(Et,Pt,ue){Q.scaleTo(Et,function(){var ce=this.__zoom.k,de=typeof Pt=="function"?Pt.apply(this,arguments):Pt;return ce*de},ue)},Q.scaleTo=function(Et,Pt,ue){Q.transform(Et,function(){var ce=y.apply(this,arguments),de=this.__zoom,tn=ue==null?it(ce):typeof ue=="function"?ue.apply(this,arguments):ue,fn=de.invert(tn),Bn=typeof Pt=="function"?Pt.apply(this,arguments):Pt;return v(ot(ct(de,Bn),tn,fn),ce,D)},ue)},Q.translateBy=function(Et,Pt,ue){Q.transform(Et,function(){return v(this.__zoom.translate(typeof Pt=="function"?Pt.apply(this,arguments):Pt,typeof ue=="function"?ue.apply(this,arguments):ue),y.apply(this,arguments),D)})},Q.translateTo=function(Et,Pt,ue,ce){Q.transform(Et,function(){var de=y.apply(this,arguments),tn=this.__zoom,fn=ce==null?it(de):typeof ce=="function"?ce.apply(this,arguments):ce;return v(Qc.translate(fn[0],fn[1]).scale(tn.k).translate(typeof Pt=="function"?-Pt.apply(this,arguments):-Pt,typeof ue=="function"?-ue.apply(this,arguments):-ue),de,D)},ce)},Mt.prototype={start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Et,Pt){return this.mouse&&Et!=="mouse"&&(this.mouse[1]=Pt.invert(this.mouse[0])),this.touch0&&Et!=="touch"&&(this.touch0[1]=Pt.invert(this.touch0[0])),this.touch1&&Et!=="touch"&&(this.touch1[1]=Pt.invert(this.touch1[0])),this.that.__zoom=Pt,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Et){ri(new mc(Q,Et,this.that.__zoom),q.apply,q,[Et,this.that,this.args])}},Q.wheelDelta=function(Et){return arguments.length?(w=typeof Et=="function"?Et:os(+Et),Q):w},Q.filter=function(Et){return arguments.length?(h=typeof Et=="function"?Et:os(!!Et),Q):h},Q.touchable=function(Et){return arguments.length?(N=typeof Et=="function"?Et:os(!!Et),Q):N},Q.extent=function(Et){return arguments.length?(y=typeof Et=="function"?Et:os([[+Et[0][0],+Et[0][1]],[+Et[1][0],+Et[1][1]]]),Q):y},Q.scaleExtent=function(Et){return arguments.length?(S[0]=+Et[0],S[1]=+Et[1],Q):[S[0],S[1]]},Q.translateExtent=function(Et){return arguments.length?(D[0][0]=+Et[0][0],D[1][0]=+Et[1][0],D[0][1]=+Et[0][1],D[1][1]=+Et[1][1],Q):[[D[0][0],D[0][1]],[D[1][0],D[1][1]]]},Q.constrain=function(Et){return arguments.length?(v=Et,Q):v},Q.duration=function(Et){return arguments.length?(R=+Et,Q):R},Q.interpolate=function(Et){return arguments.length?(z=Et,Q):z},Q.on=function(){var Et=q.on.apply(q,arguments);return Et===q?Q:Et},Q.clickDistance=function(Et){return arguments.length?(Z=(Et=+Et)*Et,Q):Math.sqrt(Z)},Q}Mv.prototype=_c.prototype},681:(p,T,f)=>{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<nt;++P,++W)J.points=[],F={width:0,height:0,edgeLabel:J,edgeObj:O,rank:W},L=g.addDummyNode(M,"edge",F,"_d"),W===bt&&(F.width=J.width,F.height=J.height,F.dummy="edge-label",F.labelpos=J.labelpos),M.setEdge($,L,{weight:J.weight},ht),P===0&&M.graph().dummyChains.push(L),$=L;M.setEdge($,K,{weight:J.weight},ht)}})(E,k)})},undo:function(E){b.forEach(E.graph().dummyChains,function(k){var M,O=E.node(k),L=O.edgeLabel;for(E.setEdge(O.edgeObj,L);O.dummy;)M=E.successors(k)[0],E.removeNode(k),L.points.push({x:O.x,y:O.y}),O.dummy==="edge-label"&&(L.x=O.x,L.y=O.y,L.width=O.width,L.height=O.height),k=M,O=E.node(k)})}}},5093:(p,T,f)=>{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;F<M.length;)F<<=1;var P=2*F-1;F-=1;var $=b.map(new Array(P),function(){return 0}),W=0;return b.forEach(L.forEach(function(K){var nt=K.pos+F;$[nt]+=K.weight;for(var ht=0;nt>0;)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<k.length;++O)M+=g(E,k[O-1],k[O]);return M}},3408:(p,T,f)=>{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<st&&(qt=0,at=b.cloneDeep(bt),st=Nt)}W(K,at)}},2588:(p,T,f)=>{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.barycenter<bt.barycenter?-1:J.barycenter>bt.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<M.rank;)$++;W===P&&(K=!1)}if(!K){for(;$<F.length-1&&g.node(W=F[$+1]).minRank<=M.rank;)$++;W=F[$]}g.setParent(k,W),k=g.successors(k)[0]}})}},3573:(p,T,f)=>{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;!(Lt<st||ft<Lt)||G.dummy&&nt.node(rt).dummy||O(J,dt,rt)})}),St=Bt+1,st=ft)}),at}),J}function M(nt,ht){var J={};function bt(at,st,St,qt,Nt){var yt;b.forEach(b.range(st,St),function(Bt){yt=at[Bt],nt.node(yt).dummy&&b.forEach(nt.predecessors(yt),function(kt){var ft=nt.node(kt);ft.dummy&&(ft.order<qt||ft.order>Nt)&&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<St[dt]&&!L(J,yt,dt)&&(st[dt]=yt,st[yt]=at[yt]=at[dt],Nt=St[dt])}}})}),{root:at,align:st}}function P(nt,ht,J,bt,at){var st={},St=function(yt,Bt,kt,ft){var rt=new g,dt=yt.graph(),G=function(Lt,V,Rt){return function(Yt,Gt,ye){var qe,xe=Yt.node(Gt),he=Yt.node(ye),me=0;if(me+=xe.width/2,b.has(xe,"labelpos"))switch(xe.labelpos.toLowerCase()){case"l":qe=-xe.width/2;break;case"r":qe=xe.width/2}if(qe&&(me+=Rt?qe:-qe),qe=0,me+=(xe.dummy?V:Lt)/2,me+=(he.dummy?V:Lt)/2,me+=he.width/2,b.has(he,"labelpos"))switch(he.labelpos.toLowerCase()){case"l":qe=he.width/2;break;case"r":qe=-he.width/2}return qe&&(me+=Rt?qe:-qe),qe=0,me}}(dt.nodesep,dt.edgesep,ft);return b.forEach(Bt,function(Lt){var V;b.forEach(Lt,function(Rt){var Yt=kt[Rt];if(rt.setNode(Yt),V){var Gt=kt[V],ye=rt.edge(Gt,Yt);rt.setEdge(Gt,Yt,Math.max(G(yt,Rt,V),ye||0))}V=Rt})}),rt}(nt,ht,J,at),qt=at?"borderLeft":"borderRight";function Nt(yt,Bt){for(var kt=St.nodes(),ft=kt.pop(),rt={};ft;)rt[ft]?yt(ft):(rt[ft]=!0,kt.push(ft),kt=kt.concat(Bt(ft))),ft=kt.pop()}return Nt(function(yt){st[yt]=St.inEdges(yt).reduce(function(Bt,kt){return Math.max(Bt,st[kt.v]+St.edge(kt))},0)},St.predecessors.bind(St)),Nt(function(yt){var Bt=St.outEdges(yt).reduce(function(ft,rt){return Math.min(ft,st[rt.w]-St.edge(rt))},Number.POSITIVE_INFINITY),kt=nt.node(yt);Bt!==Number.POSITIVE_INFINITY&&kt.borderType!==qt&&(st[yt]=Math.max(st[yt],Bt))},St.successors.bind(St)),b.forEach(bt,function(yt){st[yt]=st[J[yt]]}),st}function $(nt,ht){return b.minBy(b.values(ht),function(J){var bt=Number.NEGATIVE_INFINITY,at=Number.POSITIVE_INFINITY;return b.forIn(J,function(st,St){var qt=function(Nt,yt){return Nt.node(yt).width}(nt,St)/2;bt=Math.max(st+qt,bt),at=Math.min(st-qt,at)}),bt-at})}function W(nt,ht){var J=b.values(ht),bt=b.min(J),at=b.max(J);b.forEach(["u","d"],function(st){b.forEach(["l","r"],function(St){var qt,Nt=st+St,yt=nt[Nt];if(yt!==ht){var Bt=b.values(yt);(qt=St==="l"?bt-b.min(Bt):at-b.max(Bt))&&(nt[Nt]=b.mapValues(yt,function(kt){return kt+qt}))}})})}function K(nt,ht){return b.mapValues(nt.ul,function(J,bt){if(ht)return nt[ht.toLowerCase()][bt];var at=b.sortBy(b.map(nt,bt));return(at[1]+at[2])/2})}p.exports={positionX:function(nt){var ht,J=E.buildLayerMatrix(nt),bt=b.merge(k(nt,J),M(nt,J)),at={};b.forEach(["u","d"],function(St){ht=St==="u"?J:b.values(J).reverse(),b.forEach(["l","r"],function(qt){qt==="r"&&(ht=b.map(ht,function(kt){return b.values(kt).reverse()}));var Nt=(St==="u"?nt.predecessors:nt.successors).bind(nt),yt=F(0,ht,bt,Nt),Bt=P(nt,ht,yt.root,yt.align,qt==="r");qt==="r"&&(Bt=b.mapValues(Bt,function(kt){return-kt})),at[St+qt]=Bt})});var st=$(nt,at);return W(at,st),K(at,nt.graph().align)},findType1Conflicts:k,findType2Conflicts:M,addConflict:O,hasConflict:L,verticalAlignment:F,horizontalCompaction:P,alignCoordinates:W,findSmallestWidthAlignment:$,balance:K}},7873:(p,T,f)=>{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)<K;)F=M($,L),P=$.hasNode(F.v)?E(L,F):-E(L,F),O($,L,P);return $}},8093:(p,T,f)=>{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);ae<Ae;ae++)we[ae]=lt[ae];return we}var M=Object.hasOwnProperty,O=Object.setPrototypeOf,L=Object.isFrozen,F=Object.getPrototypeOf,P=Object.getOwnPropertyDescriptor,$=Object.freeze,W=Object.seal,K=Object.create,nt=typeof Reflect!="undefined"&&Reflect,ht=nt.apply,J=nt.construct;ht||(ht=function(lt,Ae,ae){return lt.apply(Ae,ae)}),$||($=function(lt){return lt}),W||(W=function(lt){return lt}),J||(J=function(lt,Ae){return g(lt,E(Ae))});var bt,at=dt(Array.prototype.forEach),st=dt(Array.prototype.pop),St=dt(Array.prototype.push),qt=dt(String.prototype.toLowerCase),Nt=dt(String.prototype.match),yt=dt(String.prototype.replace),Bt=dt(String.prototype.indexOf),kt=dt(String.prototype.trim),ft=dt(RegExp.prototype.test),rt=(bt=TypeError,function(){for(var lt=arguments.length,Ae=new Array(lt),ae=0;ae<lt;ae++)Ae[ae]=arguments[ae];return J(bt,Ae)});function dt(lt){return function(Ae){for(var ae=arguments.length,we=new Array(ae>1?ae-1:0),Ye=1;Ye<ae;Ye++)we[Ye-1]=arguments[Ye];return ht(lt,Ae,we)}}function G(lt,Ae){O&&O(lt,null);for(var ae=Ae.length;ae--;){var we=Ae[ae];if(typeof we=="string"){var Ye=qt(we);Ye!==we&&(L(Ae)||(Ae[ae]=Ye),we=Ye)}lt[we]=!0}return lt}function Lt(lt){var Ae,ae=K(null);for(Ae in lt)ht(M,lt,[Ae])&&(ae[Ae]=lt[Ae]);return ae}function V(lt,Ae){for(;lt!==null;){var ae=P(lt,Ae);if(ae){if(ae.get)return dt(ae.get);if(typeof ae.value=="function")return dt(ae.value)}lt=F(lt)}return function(we){return console.warn("fallback value for",we),null}}var Rt=$(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Yt=$(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Gt=$(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ye=$(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),qe=$(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),xe=$(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),he=$(["#text"]),me=$(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Ie=$(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Le=$(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ve=$(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kn=W(/\{\{[\w\W]*|[\w\W]*\}\}/gm),be=W(/<%[\w\W]*|[\w\W]*%>/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="<remove></remove>"+Kt;else{var rr=Nt(Kt,/^[\r\n\t ]+/);en=rr&&rr[0]}On==="application/xhtml+xml"&&(Kt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Kt+"</body></html>");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(/<template/i,Kt.innerHTML))return oi(Kt),!0;if(!yr[en]||br[en]){if(!br[en]&&da(en)&&(kr.tagNameCheck instanceof RegExp&&ft(kr.tagNameCheck,en)||kr.tagNameCheck instanceof Function&&kr.tagNameCheck(en)))return!1;if(Cr&&!ji[en]){var rr=zt(Kt)||Kt.parentNode,Wr=qn(Kt)||Kt.childNodes;if(Wr&&rr)for(var Gr=Wr.length-1;Gr>=0;--Gr)rr.insertBefore(Ue(Wr[Gr],!0),Qe(Kt))}return oi(Kt),!0}return Kt instanceof Ke&&!fi(Kt)?(oi(Kt),!0):en!=="noscript"&&en!=="noembed"||!ft(/<\/no(script|embed)/i,Kt.innerHTML)?(yi&&Kt.nodeType===3&&(pn=Kt.textContent,pn=yt(pn,$n," "),pn=yt(pn,Cn," "),Kt.textContent!==pn&&(St(ae.removed,{element:Kt.cloneNode()}),Kt.textContent=pn)),Jr("afterSanitizeElements",Kt,null),!1):(oi(Kt),!0)},Sa=function(Kt,pn,en){if(io&&(pn==="id"||pn==="name")&&(en in Ye||en in Xn))return!1;if(!(gi&&!li[pn]&&ft(Vn,pn))){if(!(ai&&ft(Tn,pn))){if(!_n[pn]||li[pn]){if(!(da(Kt)&&(kr.tagNameCheck instanceof RegExp&&ft(kr.tagNameCheck,Kt)||kr.tagNameCheck instanceof Function&&kr.tagNameCheck(Kt))&&(kr.attributeNameCheck instanceof RegExp&&ft(kr.attributeNameCheck,pn)||kr.attributeNameCheck instanceof Function&&kr.attributeNameCheck(pn))||pn==="is"&&kr.allowCustomizedBuiltInElements&&(kr.tagNameCheck instanceof RegExp&&ft(kr.tagNameCheck,en)||kr.tagNameCheck instanceof Function&&kr.tagNameCheck(en))))return!1}else if(!Ve[pn]){if(!ft(ua,yt(en,Zn,""))){if((pn!=="src"&&pn!=="xlink:href"&&pn!=="href"||Kt==="script"||Bt(en,"data:")!==0||!nr[Kt])&&!(ti&&!ft(Nn,yt(en,Zn,"")))){if(en)return!1}}}}}return!0},da=function(Kt){return Kt.indexOf("-")>0},Oo=function(Kt){var pn,en,rr,Wr;Jr("beforeSanitizeAttributes",Kt,null);var Gr=Kt.attributes;if(Gr){var si={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_n};for(Wr=Gr.length;Wr--;){var ta=pn=Gr[Wr],Aa=ta.name,Rr=ta.namespaceURI;if(en=Aa==="value"?pn.value:kt(pn.value),rr=zn(Aa),si.attrName=rr,si.attrValue=en,si.keepAttr=!0,si.forceKeepAttr=void 0,Jr("uponSanitizeAttribute",Kt,si),en=si.attrValue,!si.forceKeepAttr&&(qr(Aa,Kt),si.keepAttr))if(ft(/\/>/i,en))qr(Aa,Kt);else{yi&&(en=yt(en,$n," "),en=yt(en,Cn," "));var ii=zn(Kt.nodeName);if(Sa(ii,rr,en))try{Rr?Kt.setAttributeNS(Rr,Aa,en):Kt.setAttribute(Aa,en),st(ae.removed)}catch{}}}Jr("afterSanitizeAttributes",Kt,null)}},rl=function Kt(pn){var en,rr=Qi(pn);for(Jr("beforeSanitizeShadowDOM",pn,null);en=rr.nextNode();)Jr("uponSanitizeShadowNode",en,null),di(en)||(en.content instanceof Pe&&Kt(en.content),Oo(en));Jr("afterSanitizeShadowDOM",pn,null)};return ae.sanitize=function(Kt,pn){var en,rr,Wr,Gr,si;if((Io=!Kt)&&(Kt="<!-->"),typeof Kt!="string"&&!Ta(Kt)){if(typeof Kt.toString!="function")throw rt("toString is not a function");if(typeof(Kt=Kt.toString())!="string")throw rt("dirty is not a string, aborting")}if(!ae.isSupported){if(T(Ae.toStaticHTML)==="object"||typeof Ae.toStaticHTML=="function"){if(typeof Kt=="string")return Ae.toStaticHTML(Kt);if(Ta(Kt))return Ae.toStaticHTML(Kt.outerHTML)}return Kt}if(mr||Mi(pn),ae.removed=[],typeof Kt=="string"&&(Ia=!1),Ia){if(Kt.nodeName){var ta=zn(Kt.nodeName);if(!yr[ta]||br[ta])throw rt("root node is forbidden and cannot be sanitized in-place")}}else if(Kt instanceof De)(rr=(en=fa("<!---->")).ownerDocument.importNode(Kt,!0)).nodeType===1&&rr.nodeName==="BODY"||rr.nodeName==="HTML"?en=rr:en.appendChild(rr);else{if(!ui&&!yi&&!ei&&Kt.indexOf("<")===-1)return Ht&&wi?Ht.createHTML(Kt):Kt;if(!(en=fa(Kt)))return ui?null:wi?gn:""}en&&ni&&oi(en.firstChild);for(var Aa=Qi(Ia?Kt:en);Wr=Aa.nextNode();)Wr.nodeType===3&&Wr===Gr||di(Wr)||(Wr.content instanceof Pe&&rl(Wr.content),Oo(Wr),Gr=Wr);if(Gr=null,Ia)return Kt;if(ui){if(hi)for(si=er.call(en.ownerDocument);en.firstChild;)si.appendChild(en.firstChild);else si=en;return _n.shadowroot&&(si=An.call(we,si,!0)),si}var Rr=ei?en.outerHTML:en.innerHTML;return ei&&yr["!doctype"]&&en.ownerDocument&&en.ownerDocument.doctype&&en.ownerDocument.doctype.name&&ft(Me,en.ownerDocument.doctype.name)&&(Rr="<!DOCTYPE "+en.ownerDocument.doctype.name+`>
|
|
`+Rr),yi&&(Rr=yt(Rr,$n," "),Rr=yt(Rr,Cn," ")),Ht&&wi?Ht.createHTML(Rr):Rr},ae.setConfig=function(Kt){Mi(Kt),mr=!0},ae.clearConfig=function(){Ea=null,mr=!1},ae.isValidAttribute=function(Kt,pn,en){Ea||Mi({});var rr=zn(Kt),Wr=zn(pn);return Sa(rr,Wr,en)},ae.addHook=function(Kt,pn){typeof pn=="function"&&(Pn[Kt]=Pn[Kt]||[],St(Pn[Kt],pn))},ae.removeHook=function(Kt){if(Pn[Kt])return st(Pn[Kt])},ae.removeHooks=function(Kt){Pn[Kt]&&(Pn[Kt]=[])},ae.removeAllHooks=function(){Pn={}},ae}()}()},8282:(p,T,f)=>{var b=f(2354);p.exports={Graph:b.Graph,json:f(8974),alg:f(2440),version:b.version}},2842:(p,T,f)=>{var b=f(9126);p.exports=function(g){var E,k={},M=[];function O(L){b.has(k,L)||(k[L]=!0,E.push(L),b.each(g.successors(L),O),b.each(g.predecessors(L),O))}return b.each(g.nodes(),function(L){E=[],O(L),E.length&&M.push(E)}),M}},3984:(p,T,f)=>{var b=f(9126);function g(E,k,M,O,L,F){b.has(O,k)||(O[k]=!0,M||F.push(k),b.each(L(k),function(P){g(E,P,M,O,L,F)}),M&&F.push(k))}p.exports=function(E,k,M){b.isArray(k)||(k=[k]);var O=(E.isDirected()?E.successors:E.neighbors).bind(E),L=[],F={};return b.each(k,function(P){if(!E.hasNode(P))throw new Error("Graph does not have node: "+P);g(E,P,M==="post",F,O,L)}),L}},4847:(p,T,f)=>{var b=f(3763),g=f(9126);p.exports=function(E,k,M){return g.transform(E.nodes(),function(O,L){O[L]=b(E,L,k,M)},{})}},3763:(p,T,f)=>{var b=f(9126),g=f(9675);p.exports=function(k,M,O,L){return function(F,P,$,W){var K,nt,ht={},J=new g,bt=function(at){var st=at.v!==K?at.v:at.w,St=ht[st],qt=$(at),Nt=nt.distance+qt;if(qt<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+at+" Weight: "+qt);Nt<St.distance&&(St.distance=Nt,St.predecessor=K,J.decrease(st,Nt))};for(F.nodes().forEach(function(at){var st=at===P?0:Number.POSITIVE_INFINITY;ht[at]={distance:st},J.add(at,st)});J.size()>0&&(K=J.removeMin(),(nt=ht[K]).distance!==Number.POSITIVE_INFINITY);)W(K).forEach(bt);return ht}(k,String(M),O||E,L||function(F){return k.outEdges(F)})};var E=b.constant(1)},9096:(p,T,f)=>{var b=f(9126),g=f(5023);p.exports=function(E){return b.filter(g(E),function(k){return k.length>1||k.length===1&&E.hasEdge(k[0],k[0])})}},8924:(p,T,f)=>{var b=f(9126);p.exports=function(E,k,M){return function(O,L,F){var P={},$=O.nodes();return $.forEach(function(W){P[W]={},P[W][W]={distance:0},$.forEach(function(K){W!==K&&(P[W][K]={distance:Number.POSITIVE_INFINITY})}),F(W).forEach(function(K){var nt=K.v===W?K.w:K.v,ht=L(K);P[W][nt]={distance:ht,predecessor:W}})}),$.forEach(function(W){var K=P[W];$.forEach(function(nt){var ht=P[nt];$.forEach(function(J){var bt=ht[W],at=K[J],st=ht[J],St=bt.distance+at.distance;St<st.distance&&(st.distance=St,st.predecessor=at.predecessor)})})}),P}(E,k||g,M||function(O){return E.outEdges(O)})};var g=b.constant(1)},2440:(p,T,f)=>{p.exports={components:f(2842),dijkstra:f(3763),dijkstraAll:f(4847),findCycles:f(9096),floydWarshall:f(8924),isAcyclic:f(2707),postorder:f(8828),preorder:f(2648),prim:f(514),tarjan:f(5023),topsort:f(2166)}},2707:(p,T,f)=>{var b=f(2166);p.exports=function(g){try{b(g)}catch(E){if(E instanceof b.CycleException)return!1;throw E}return!0}},8828:(p,T,f)=>{var b=f(3984);p.exports=function(g,E){return b(g,E,"post")}},2648:(p,T,f)=>{var b=f(3984);p.exports=function(g,E){return b(g,E,"pre")}},514:(p,T,f)=>{var b=f(9126),g=f(771),E=f(9675);p.exports=function(k,M){var O,L=new g,F={},P=new E;function $(K){var nt=K.v===O?K.w:K.v,ht=P.priority(nt);if(ht!==void 0){var J=M(K);J<ht&&(F[nt]=O,P.decrease(nt,J))}}if(k.nodeCount()===0)return L;b.each(k.nodes(),function(K){P.add(K,Number.POSITIVE_INFINITY),L.setNode(K)}),P.decrease(k.nodes()[0],0);for(var W=!1;P.size()>0;){if(O=P.removeMin(),b.has(F,O))L.setEdge(O,F[O]);else{if(W)throw new Error("Input graph is not connected: "+k);W=!0}k.nodeEdges(O).forEach($)}return L}},5023:(p,T,f)=>{var b=f(9126);p.exports=function(g){var E=0,k=[],M={},O=[];function L(F){var P=M[F]={onStack:!0,lowlink:E,index:E++};if(k.push(F),g.successors(F).forEach(function(K){b.has(M,K)?M[K].onStack&&(P.lowlink=Math.min(P.lowlink,M[K].index)):(L(K),P.lowlink=Math.min(P.lowlink,M[K].lowlink))}),P.lowlink===P.index){var $,W=[];do $=k.pop(),M[$].onStack=!1,W.push($);while(F!==$);O.push(W)}}return g.nodes().forEach(function(F){b.has(M,F)||L(F)}),O}},2166:(p,T,f)=>{var b=f(9126);function g(k){var M={},O={},L=[];if(b.each(k.sinks(),function F(P){if(b.has(O,P))throw new E;b.has(M,P)||(O[P]=!0,M[P]=!0,b.each(k.predecessors(P),F),delete O[P],L.push(P))}),b.size(M)!==k.nodeCount())throw new E;return L}function E(){}p.exports=g,g.CycleException=E,E.prototype=new Error},9675:(p,T,f)=>{var b=f(9126);function g(){this._arr=[],this._keyIndices={}}p.exports=g,g.prototype.size=function(){return this._arr.length},g.prototype.keys=function(){return this._arr.map(function(E){return E.key})},g.prototype.has=function(E){return b.has(this._keyIndices,E)},g.prototype.priority=function(E){var k=this._keyIndices[E];if(k!==void 0)return this._arr[k].priority},g.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},g.prototype.add=function(E,k){var M=this._keyIndices;if(E=String(E),!b.has(M,E)){var O=this._arr,L=O.length;return M[E]=L,O.push({key:E,priority:k}),this._decrease(L),!0}return!1},g.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var E=this._arr.pop();return delete this._keyIndices[E.key],this._heapify(0),E.key},g.prototype.decrease=function(E,k){var M=this._keyIndices[E];if(k>this._arr[M].priority)throw new Error("New priority is greater than current priority. Key: "+E+" Old: "+this._arr[M].priority+" New: "+k);this._arr[M].priority=k,this._decrease(M)},g.prototype._heapify=function(E){var k=this._arr,M=2*E,O=M+1,L=E;M<k.length&&(L=k[M].priority<k[L].priority?M:L,O<k.length&&(L=k[O].priority<k[L].priority?O:L),L!==E&&(this._swap(E,L),this._heapify(L)))},g.prototype._decrease=function(E){for(var k,M=this._arr,O=M[E].priority;E!==0&&!(M[k=E>>1].priority<O);)this._swap(E,k),E=k},g.prototype._swap=function(E,k){var M=this._arr,O=this._keyIndices,L=M[E],F=M[k];M[E]=F,M[k]=L,O[F.key]=E,O[L.key]=k}},771:(p,T,f)=>{var b=f(9126);p.exports=E;var g="\0";function E(P){this._isDirected=!b.has(P,"directed")||P.directed,this._isMultigraph=!!b.has(P,"multigraph")&&P.multigraph,this._isCompound=!!b.has(P,"compound")&&P.compound,this._label=void 0,this._defaultNodeLabelFn=b.constant(void 0),this._defaultEdgeLabelFn=b.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function k(P,$){P[$]?P[$]++:P[$]=1}function M(P,$){--P[$]||delete P[$]}function O(P,$,W,K){var nt=""+$,ht=""+W;if(!P&&nt>ht){var J=nt;nt=ht,ht=J}return nt+""+ht+""+(b.isUndefined(K)?"\0":K)}function L(P,$,W,K){var nt=""+$,ht=""+W;if(!P&&nt>ht){var J=nt;nt=ht,ht=J}var bt={v:nt,w:ht};return K&&(bt.name=K),bt}function F(P,$){return O(P,$.v,$.w,$.name)}E.prototype._nodeCount=0,E.prototype._edgeCount=0,E.prototype.isDirected=function(){return this._isDirected},E.prototype.isMultigraph=function(){return this._isMultigraph},E.prototype.isCompound=function(){return this._isCompound},E.prototype.setGraph=function(P){return this._label=P,this},E.prototype.graph=function(){return this._label},E.prototype.setDefaultNodeLabel=function(P){return b.isFunction(P)||(P=b.constant(P)),this._defaultNodeLabelFn=P,this},E.prototype.nodeCount=function(){return this._nodeCount},E.prototype.nodes=function(){return b.keys(this._nodes)},E.prototype.sources=function(){var P=this;return b.filter(this.nodes(),function($){return b.isEmpty(P._in[$])})},E.prototype.sinks=function(){var P=this;return b.filter(this.nodes(),function($){return b.isEmpty(P._out[$])})},E.prototype.setNodes=function(P,$){var W=arguments,K=this;return b.each(P,function(nt){W.length>1?K.setNode(nt,$):K.setNode(nt)}),this},E.prototype.setNode=function(P,$){return b.has(this._nodes,P)?(arguments.length>1&&(this._nodes[P]=$),this):(this._nodes[P]=arguments.length>1?$:this._defaultNodeLabelFn(P),this._isCompound&&(this._parent[P]=g,this._children[P]={},this._children["\0"][P]=!0),this._in[P]={},this._preds[P]={},this._out[P]={},this._sucs[P]={},++this._nodeCount,this)},E.prototype.node=function(P){return this._nodes[P]},E.prototype.hasNode=function(P){return b.has(this._nodes,P)},E.prototype.removeNode=function(P){var $=this;if(b.has(this._nodes,P)){var W=function(K){$.removeEdge($._edgeObjs[K])};delete this._nodes[P],this._isCompound&&(this._removeFromParentsChildList(P),delete this._parent[P],b.each(this.children(P),function(K){$.setParent(K)}),delete this._children[P]),b.each(b.keys(this._in[P]),W),delete this._in[P],delete this._preds[P],b.each(b.keys(this._out[P]),W),delete this._out[P],delete this._sucs[P],--this._nodeCount}return this},E.prototype.setParent=function(P,$){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(b.isUndefined($))$=g;else{for(var W=$+="";!b.isUndefined(W);W=this.parent(W))if(W===P)throw new Error("Setting "+$+" as parent of "+P+" would create a cycle");this.setNode($)}return this.setNode(P),this._removeFromParentsChildList(P),this._parent[P]=$,this._children[$][P]=!0,this},E.prototype._removeFromParentsChildList=function(P){delete this._children[this._parent[P]][P]},E.prototype.parent=function(P){if(this._isCompound){var $=this._parent[P];if($!==g)return $}},E.prototype.children=function(P){if(b.isUndefined(P)&&(P=g),this._isCompound){var $=this._children[P];if($)return b.keys($)}else{if(P===g)return this.nodes();if(this.hasNode(P))return[]}},E.prototype.predecessors=function(P){var $=this._preds[P];if($)return b.keys($)},E.prototype.successors=function(P){var $=this._sucs[P];if($)return b.keys($)},E.prototype.neighbors=function(P){var $=this.predecessors(P);if($)return b.union($,this.successors(P))},E.prototype.isLeaf=function(P){return(this.isDirected()?this.successors(P):this.neighbors(P)).length===0},E.prototype.filterNodes=function(P){var $=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});$.setGraph(this.graph());var W=this;b.each(this._nodes,function(ht,J){P(J)&&$.setNode(J,ht)}),b.each(this._edgeObjs,function(ht){$.hasNode(ht.v)&&$.hasNode(ht.w)&&$.setEdge(ht,W.edge(ht))});var K={};function nt(ht){var J=W.parent(ht);return J===void 0||$.hasNode(J)?(K[ht]=J,J):J in K?K[J]:nt(J)}return this._isCompound&&b.each($.nodes(),function(ht){$.setParent(ht,nt(ht))}),$},E.prototype.setDefaultEdgeLabel=function(P){return b.isFunction(P)||(P=b.constant(P)),this._defaultEdgeLabelFn=P,this},E.prototype.edgeCount=function(){return this._edgeCount},E.prototype.edges=function(){return b.values(this._edgeObjs)},E.prototype.setPath=function(P,$){var W=this,K=arguments;return b.reduce(P,function(nt,ht){return K.length>1?W.setEdge(nt,ht,$):W.setEdge(nt,ht),ht}),this},E.prototype.setEdge=function(){var P,$,W,K,nt=!1,ht=arguments[0];typeof ht=="object"&&ht!==null&&"v"in ht?(P=ht.v,$=ht.w,W=ht.name,arguments.length===2&&(K=arguments[1],nt=!0)):(P=ht,$=arguments[1],W=arguments[3],arguments.length>2&&(K=arguments[2],nt=!0)),P=""+P,$=""+$,b.isUndefined(W)||(W=""+W);var J=O(this._isDirected,P,$,W);if(b.has(this._edgeLabels,J))return nt&&(this._edgeLabels[J]=K),this;if(!b.isUndefined(W)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(P),this.setNode($),this._edgeLabels[J]=nt?K:this._defaultEdgeLabelFn(P,$,W);var bt=L(this._isDirected,P,$,W);return P=bt.v,$=bt.w,Object.freeze(bt),this._edgeObjs[J]=bt,k(this._preds[$],P),k(this._sucs[P],$),this._in[$][J]=bt,this._out[P][J]=bt,this._edgeCount++,this},E.prototype.edge=function(P,$,W){var K=arguments.length===1?F(this._isDirected,arguments[0]):O(this._isDirected,P,$,W);return this._edgeLabels[K]},E.prototype.hasEdge=function(P,$,W){var K=arguments.length===1?F(this._isDirected,arguments[0]):O(this._isDirected,P,$,W);return b.has(this._edgeLabels,K)},E.prototype.removeEdge=function(P,$,W){var K=arguments.length===1?F(this._isDirected,arguments[0]):O(this._isDirected,P,$,W),nt=this._edgeObjs[K];return nt&&(P=nt.v,$=nt.w,delete this._edgeLabels[K],delete this._edgeObjs[K],M(this._preds[$],P),M(this._sucs[P],$),delete this._in[$][K],delete this._out[P][K],this._edgeCount--),this},E.prototype.inEdges=function(P,$){var W=this._in[P];if(W){var K=b.values(W);return $?b.filter(K,function(nt){return nt.v===$}):K}},E.prototype.outEdges=function(P,$){var W=this._out[P];if(W){var K=b.values(W);return $?b.filter(K,function(nt){return nt.w===$}):K}},E.prototype.nodeEdges=function(P,$){var W=this.inEdges(P,$);if(W)return W.concat(this.outEdges(P,$))}},2354:(p,T,f)=>{p.exports={Graph:f(771),version:f(9631)}},8974:(p,T,f)=>{var b=f(9126),g=f(771);function E(M){return b.map(M.nodes(),function(O){var L=M.node(O),F=M.parent(O),P={v:O};return b.isUndefined(L)||(P.value=L),b.isUndefined(F)||(P.parent=F),P})}function k(M){return b.map(M.edges(),function(O){var L=M.edge(O),F={v:O.v,w:O.w};return b.isUndefined(O.name)||(F.name=O.name),b.isUndefined(L)||(F.value=L),F})}p.exports={write:function(M){var O={options:{directed:M.isDirected(),multigraph:M.isMultigraph(),compound:M.isCompound()},nodes:E(M),edges:k(M)};return b.isUndefined(M.graph())||(O.value=b.clone(M.graph())),O},read:function(M){var O=new g(M.options).setGraph(M.value);return b.each(M.nodes,function(L){O.setNode(L.v,L.value),L.parent&&O.setParent(L.v,L.parent)}),b.each(M.edges,function(L){O.setEdge({v:L.v,w:L.w,name:L.name},L.value)}),O}}},9126:(p,T,f)=>{var b;try{b={clone:f(6678),constant:f(5703),each:f(6073),filter:f(3105),has:f(8721),isArray:f(1469),isEmpty:f(1609),isFunction:f(3560),isUndefined:f(2353),keys:f(3674),map:f(5161),reduce:f(4061),size:f(4238),transform:f(8718),union:f(3386),values:f(2628)}}catch{}b||(b=window._),p.exports=b},9631:p=>{p.exports="2.1.8"},8552:(p,T,f)=>{var b=f(852)(f(5639),"DataView");p.exports=b},1989:(p,T,f)=>{var b=f(1789),g=f(401),E=f(7667),k=f(1327),M=f(1866);function O(L){var F=-1,P=L==null?0:L.length;for(this.clear();++F<P;){var $=L[F];this.set($[0],$[1])}}O.prototype.clear=b,O.prototype.delete=g,O.prototype.get=E,O.prototype.has=k,O.prototype.set=M,p.exports=O},8407:(p,T,f)=>{var b=f(7040),g=f(4125),E=f(2117),k=f(7518),M=f(4705);function O(L){var F=-1,P=L==null?0:L.length;for(this.clear();++F<P;){var $=L[F];this.set($[0],$[1])}}O.prototype.clear=b,O.prototype.delete=g,O.prototype.get=E,O.prototype.has=k,O.prototype.set=M,p.exports=O},7071:(p,T,f)=>{var b=f(852)(f(5639),"Map");p.exports=b},3369:(p,T,f)=>{var b=f(4785),g=f(1285),E=f(6e3),k=f(9916),M=f(5265);function O(L){var F=-1,P=L==null?0:L.length;for(this.clear();++F<P;){var $=L[F];this.set($[0],$[1])}}O.prototype.clear=b,O.prototype.delete=g,O.prototype.get=E,O.prototype.has=k,O.prototype.set=M,p.exports=O},3818:(p,T,f)=>{var b=f(852)(f(5639),"Promise");p.exports=b},8525:(p,T,f)=>{var b=f(852)(f(5639),"Set");p.exports=b},8668:(p,T,f)=>{var b=f(3369),g=f(619),E=f(2385);function k(M){var O=-1,L=M==null?0:M.length;for(this.__data__=new b;++O<L;)this.add(M[O])}k.prototype.add=k.prototype.push=g,k.prototype.has=E,p.exports=k},6384:(p,T,f)=>{var b=f(8407),g=f(7465),E=f(3779),k=f(7599),M=f(4758),O=f(4309);function L(F){var P=this.__data__=new b(F);this.size=P.size}L.prototype.clear=g,L.prototype.delete=E,L.prototype.get=k,L.prototype.has=M,L.prototype.set=O,p.exports=L},2705:(p,T,f)=>{var b=f(5639).Symbol;p.exports=b},1149:(p,T,f)=>{var b=f(5639).Uint8Array;p.exports=b},577:(p,T,f)=>{var b=f(852)(f(5639),"WeakMap");p.exports=b},6874:p=>{p.exports=function(T,f,b){switch(b.length){case 0:return T.call(f);case 1:return T.call(f,b[0]);case 2:return T.call(f,b[0],b[1]);case 3:return T.call(f,b[0],b[1],b[2])}return T.apply(f,b)}},7412:p=>{p.exports=function(T,f){for(var b=-1,g=T==null?0:T.length;++b<g&&f(T[b],b,T)!==!1;);return T}},4963:p=>{p.exports=function(T,f){for(var b=-1,g=T==null?0:T.length,E=0,k=[];++b<g;){var M=T[b];f(M,b,T)&&(k[E++]=M)}return k}},7443:(p,T,f)=>{var b=f(2118);p.exports=function(g,E){return!(g==null||!g.length)&&b(g,E,0)>-1}},1196:p=>{p.exports=function(T,f,b){for(var g=-1,E=T==null?0:T.length;++g<E;)if(b(f,T[g]))return!0;return!1}},4636:(p,T,f)=>{var b=f(2545),g=f(5694),E=f(1469),k=f(4144),M=f(5776),O=f(6719),L=Object.prototype.hasOwnProperty;p.exports=function(F,P){var $=E(F),W=!$&&g(F),K=!$&&!W&&k(F),nt=!$&&!W&&!K&&O(F),ht=$||W||K||nt,J=ht?b(F.length,String):[],bt=J.length;for(var at in F)!P&&!L.call(F,at)||ht&&(at=="length"||K&&(at=="offset"||at=="parent")||nt&&(at=="buffer"||at=="byteLength"||at=="byteOffset")||M(at,bt))||J.push(at);return J}},9932:p=>{p.exports=function(T,f){for(var b=-1,g=T==null?0:T.length,E=Array(g);++b<g;)E[b]=f(T[b],b,T);return E}},2488:p=>{p.exports=function(T,f){for(var b=-1,g=f.length,E=T.length;++b<g;)T[E+b]=f[b];return T}},2663:p=>{p.exports=function(T,f,b,g){var E=-1,k=T==null?0:T.length;for(g&&k&&(b=T[++E]);++E<k;)b=f(b,T[E],E,T);return b}},2908:p=>{p.exports=function(T,f){for(var b=-1,g=T==null?0:T.length;++b<g;)if(f(T[b],b,T))return!0;return!1}},8983:(p,T,f)=>{var b=f(371)("length");p.exports=b},6556:(p,T,f)=>{var b=f(9465),g=f(7813);p.exports=function(E,k,M){(M!==void 0&&!g(E[k],M)||M===void 0&&!(k in E))&&b(E,k,M)}},4865:(p,T,f)=>{var b=f(9465),g=f(7813),E=Object.prototype.hasOwnProperty;p.exports=function(k,M,O){var L=k[M];E.call(k,M)&&g(L,O)&&(O!==void 0||M in k)||b(k,M,O)}},8470:(p,T,f)=>{var b=f(7813);p.exports=function(g,E){for(var k=g.length;k--;)if(b(g[k][0],E))return k;return-1}},4037:(p,T,f)=>{var b=f(8363),g=f(3674);p.exports=function(E,k){return E&&b(k,g(k),E)}},3886:(p,T,f)=>{var b=f(8363),g=f(1704);p.exports=function(E,k){return E&&b(k,g(k),E)}},9465:(p,T,f)=>{var b=f(8777);p.exports=function(g,E,k){E=="__proto__"&&b?b(g,E,{configurable:!0,enumerable:!0,value:k,writable:!0}):g[E]=k}},5990:(p,T,f)=>{var b=f(6384),g=f(7412),E=f(4865),k=f(4037),M=f(3886),O=f(4626),L=f(278),F=f(8805),P=f(1911),$=f(8234),W=f(6904),K=f(4160),nt=f(3824),ht=f(9148),J=f(8517),bt=f(1469),at=f(4144),st=f(6688),St=f(3218),qt=f(2928),Nt=f(3674),yt=f(1704),Bt="[object Arguments]",kt="[object Function]",ft="[object Object]",rt={};rt[Bt]=rt["[object Array]"]=rt["[object ArrayBuffer]"]=rt["[object DataView]"]=rt["[object Boolean]"]=rt["[object Date]"]=rt["[object Float32Array]"]=rt["[object Float64Array]"]=rt["[object Int8Array]"]=rt["[object Int16Array]"]=rt["[object Int32Array]"]=rt["[object Map]"]=rt["[object Number]"]=rt[ft]=rt["[object RegExp]"]=rt["[object Set]"]=rt["[object String]"]=rt["[object Symbol]"]=rt["[object Uint8Array]"]=rt["[object Uint8ClampedArray]"]=rt["[object Uint16Array]"]=rt["[object Uint32Array]"]=!0,rt["[object Error]"]=rt[kt]=rt["[object WeakMap]"]=!1,p.exports=function dt(G,Lt,V,Rt,Yt,Gt){var ye,qe=1&Lt,xe=2&Lt,he=4≪if(V&&(ye=Yt?V(G,Rt,Yt,Gt):V(G)),ye!==void 0)return ye;if(!St(G))return G;var me=bt(G);if(me){if(ye=nt(G),!qe)return L(G,ye)}else{var Ie=K(G),Le=Ie==kt||Ie=="[object GeneratorFunction]";if(at(G))return O(G,qe);if(Ie==ft||Ie==Bt||Le&&!Yt){if(ye=xe||Le?{}:J(G),!qe)return xe?P(G,M(ye,G)):F(G,k(ye,G))}else{if(!rt[Ie])return Yt?G:{};ye=ht(G,Ie,qe)}}Gt||(Gt=new b);var ve=Gt.get(G);if(ve)return ve;Gt.set(G,ye),qt(G)?G.forEach(function(be){ye.add(dt(be,Lt,V,be,G,Gt))}):st(G)&&G.forEach(function(be,Ge){ye.set(Ge,dt(be,Lt,V,Ge,G,Gt))});var kn=me?void 0:(he?xe?W:$:xe?yt:Nt)(G);return g(kn||G,function(be,Ge){kn&&(be=G[Ge=be]),E(ye,Ge,dt(be,Lt,V,Ge,G,Gt))}),ye}},3118:(p,T,f)=>{var b=f(3218),g=Object.create,E=function(){function k(){}return function(M){if(!b(M))return{};if(g)return g(M);k.prototype=M;var O=new k;return k.prototype=void 0,O}}();p.exports=E},9881:(p,T,f)=>{var b=f(7816),g=f(9291)(b);p.exports=g},6029:(p,T,f)=>{var b=f(3448);p.exports=function(g,E,k){for(var M=-1,O=g.length;++M<O;){var L=g[M],F=E(L);if(F!=null&&(P===void 0?F==F&&!b(F):k(F,P)))var P=F,$=L}return $}},760:(p,T,f)=>{var b=f(9881);p.exports=function(g,E){var k=[];return b(g,function(M,O,L){E(M,O,L)&&k.push(M)}),k}},1848:p=>{p.exports=function(T,f,b,g){for(var E=T.length,k=b+(g?1:-1);g?k--:++k<E;)if(f(T[k],k,T))return k;return-1}},1078:(p,T,f)=>{var b=f(2488),g=f(7285);p.exports=function E(k,M,O,L,F){var P=-1,$=k.length;for(O||(O=g),F||(F=[]);++P<$;){var W=k[P];M>0&&O(W)?M>1?E(W,M-1,O,L,F):b(F,W):L||(F[F.length]=W)}return F}},8483:(p,T,f)=>{var b=f(5063)();p.exports=b},7816:(p,T,f)=>{var b=f(8483),g=f(3674);p.exports=function(E,k){return E&&b(E,k,g)}},7786:(p,T,f)=>{var b=f(1811),g=f(327);p.exports=function(E,k){for(var M=0,O=(k=b(k,E)).length;E!=null&&M<O;)E=E[g(k[M++])];return M&&M==O?E:void 0}},8866:(p,T,f)=>{var b=f(2488),g=f(1469);p.exports=function(E,k,M){var O=k(E);return g(E)?O:b(O,M(E))}},4239:(p,T,f)=>{var b=f(2705),g=f(9607),E=f(2333),k=b?b.toStringTag:void 0;p.exports=function(M){return M==null?M===void 0?"[object Undefined]":"[object Null]":k&&k in Object(M)?g(M):E(M)}},3325:p=>{p.exports=function(T,f){return T>f}},8565:p=>{var T=Object.prototype.hasOwnProperty;p.exports=function(f,b){return f!=null&&T.call(f,b)}},13:p=>{p.exports=function(T,f){return T!=null&&f in Object(T)}},2118:(p,T,f)=>{var b=f(1848),g=f(2722),E=f(2351);p.exports=function(k,M,O){return M==M?E(k,M,O):b(k,g,O)}},9454:(p,T,f)=>{var b=f(4239),g=f(7005);p.exports=function(E){return g(E)&&b(E)=="[object Arguments]"}},939:(p,T,f)=>{var b=f(2492),g=f(7005);p.exports=function E(k,M,O,L,F){return k===M||(k==null||M==null||!g(k)&&!g(M)?k!=k&&M!=M:b(k,M,O,L,E,F))}},2492:(p,T,f)=>{var b=f(6384),g=f(7114),E=f(8351),k=f(6096),M=f(4160),O=f(1469),L=f(4144),F=f(6719),P="[object Arguments]",$="[object Array]",W="[object Object]",K=Object.prototype.hasOwnProperty;p.exports=function(nt,ht,J,bt,at,st){var St=O(nt),qt=O(ht),Nt=St?$:M(nt),yt=qt?$:M(ht),Bt=(Nt=Nt==P?W:Nt)==W,kt=(yt=yt==P?W:yt)==W,ft=Nt==yt;if(ft&&L(nt)){if(!L(ht))return!1;St=!0,Bt=!1}if(ft&&!Bt)return st||(st=new b),St||F(nt)?g(nt,ht,J,bt,at,st):E(nt,ht,Nt,J,bt,at,st);if(!(1&J)){var rt=Bt&&K.call(nt,"__wrapped__"),dt=kt&&K.call(ht,"__wrapped__");if(rt||dt){var G=rt?nt.value():nt,Lt=dt?ht.value():ht;return st||(st=new b),at(G,Lt,J,bt,st)}}return!!ft&&(st||(st=new b),k(nt,ht,J,bt,at,st))}},5588:(p,T,f)=>{var b=f(4160),g=f(7005);p.exports=function(E){return g(E)&&b(E)=="[object Map]"}},2958:(p,T,f)=>{var b=f(6384),g=f(939);p.exports=function(E,k,M,O){var L=M.length,F=L,P=!O;if(E==null)return!F;for(E=Object(E);L--;){var $=M[L];if(P&&$[2]?$[1]!==E[$[0]]:!($[0]in E))return!1}for(;++L<F;){var W=($=M[L])[0],K=E[W],nt=$[1];if(P&&$[2]){if(K===void 0&&!(W in E))return!1}else{var ht=new b;if(O)var J=O(K,nt,W,E,k,ht);if(!(J===void 0?g(nt,K,3,O,ht):J))return!1}}return!0}},2722:p=>{p.exports=function(T){return T!=T}},8458:(p,T,f)=>{var b=f(3560),g=f(5346),E=f(3218),k=f(346),M=/^\[object .+?Constructor\]$/,O=Function.prototype,L=Object.prototype,F=O.toString,P=L.hasOwnProperty,$=RegExp("^"+F.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");p.exports=function(W){return!(!E(W)||g(W))&&(b(W)?$:M).test(k(W))}},9221:(p,T,f)=>{var b=f(4160),g=f(7005);p.exports=function(E){return g(E)&&b(E)=="[object Set]"}},8749:(p,T,f)=>{var b=f(4239),g=f(1780),E=f(7005),k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object Boolean]"]=k["[object DataView]"]=k["[object Date]"]=k["[object Error]"]=k["[object Function]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object WeakMap]"]=!1,p.exports=function(M){return E(M)&&g(M.length)&&!!k[b(M)]}},7206:(p,T,f)=>{var b=f(1573),g=f(6432),E=f(6557),k=f(1469),M=f(9601);p.exports=function(O){return typeof O=="function"?O:O==null?E:typeof O=="object"?k(O)?g(O[0],O[1]):b(O):M(O)}},280:(p,T,f)=>{var b=f(5726),g=f(6916),E=Object.prototype.hasOwnProperty;p.exports=function(k){if(!b(k))return g(k);var M=[];for(var O in Object(k))E.call(k,O)&&O!="constructor"&&M.push(O);return M}},313:(p,T,f)=>{var b=f(3218),g=f(5726),E=f(3498),k=Object.prototype.hasOwnProperty;p.exports=function(M){if(!b(M))return E(M);var O=g(M),L=[];for(var F in M)(F!="constructor"||!O&&k.call(M,F))&&L.push(F);return L}},433:p=>{p.exports=function(T,f){return T<f}},9199:(p,T,f)=>{var b=f(9881),g=f(8612);p.exports=function(E,k){var M=-1,O=g(E)?Array(E.length):[];return b(E,function(L,F,P){O[++M]=k(L,F,P)}),O}},1573:(p,T,f)=>{var b=f(2958),g=f(1499),E=f(2634);p.exports=function(k){var M=g(k);return M.length==1&&M[0][2]?E(M[0][0],M[0][1]):function(O){return O===k||b(O,k,M)}}},6432:(p,T,f)=>{var b=f(939),g=f(7361),E=f(9095),k=f(5403),M=f(9162),O=f(2634),L=f(327);p.exports=function(F,P){return k(F)&&M(P)?O(L(F),P):function($){var W=g($,F);return W===void 0&&W===P?E($,F):b(P,W,3)}}},2980:(p,T,f)=>{var b=f(6384),g=f(6556),E=f(8483),k=f(9783),M=f(3218),O=f(1704),L=f(6390);p.exports=function F(P,$,W,K,nt){P!==$&&E($,function(ht,J){if(nt||(nt=new b),M(ht))k(P,$,J,W,F,K,nt);else{var bt=K?K(L(P,J),ht,J+"",P,$,nt):void 0;bt===void 0&&(bt=ht),g(P,J,bt)}},O)}},9783:(p,T,f)=>{var b=f(6556),g=f(4626),E=f(7133),k=f(278),M=f(8517),O=f(5694),L=f(1469),F=f(9246),P=f(4144),$=f(3560),W=f(3218),K=f(8630),nt=f(6719),ht=f(6390),J=f(3678);p.exports=function(bt,at,st,St,qt,Nt,yt){var Bt=ht(bt,st),kt=ht(at,st),ft=yt.get(kt);if(ft)b(bt,st,ft);else{var rt=Nt?Nt(Bt,kt,st+"",bt,at,yt):void 0,dt=rt===void 0;if(dt){var G=L(kt),Lt=!G&&P(kt),V=!G&&!Lt&&nt(kt);rt=kt,G||Lt||V?L(Bt)?rt=Bt:F(Bt)?rt=k(Bt):Lt?(dt=!1,rt=g(kt,!0)):V?(dt=!1,rt=E(kt,!0)):rt=[]:K(kt)||O(kt)?(rt=Bt,O(Bt)?rt=J(Bt):W(Bt)&&!$(Bt)||(rt=M(kt))):dt=!1}dt&&(yt.set(kt,rt),qt(rt,kt,St,Nt,yt),yt.delete(kt)),b(bt,st,rt)}}},9556:(p,T,f)=>{var b=f(9932),g=f(7786),E=f(7206),k=f(9199),M=f(1131),O=f(1717),L=f(5022),F=f(6557),P=f(1469);p.exports=function($,W,K){W=W.length?b(W,function(J){return P(J)?function(bt){return g(bt,J.length===1?J[0]:J)}:J}):[F];var nt=-1;W=b(W,O(E));var ht=k($,function(J,bt,at){return{criteria:b(W,function(st){return st(J)}),index:++nt,value:J}});return M(ht,function(J,bt){return L(J,bt,K)})}},5970:(p,T,f)=>{var b=f(3012),g=f(9095);p.exports=function(E,k){return b(E,k,function(M,O){return g(E,O)})}},3012:(p,T,f)=>{var b=f(7786),g=f(611),E=f(1811);p.exports=function(k,M,O){for(var L=-1,F=M.length,P={};++L<F;){var $=M[L],W=b(k,$);O(W,$)&&g(P,E($,k),W)}return P}},371:p=>{p.exports=function(T){return function(f){return f==null?void 0:f[T]}}},9152:(p,T,f)=>{var b=f(7786);p.exports=function(g){return function(E){return b(E,g)}}},98:p=>{var T=Math.ceil,f=Math.max;p.exports=function(b,g,E,k){for(var M=-1,O=f(T((g-b)/(E||1)),0),L=Array(O);O--;)L[k?O:++M]=b,b+=E;return L}},107:p=>{p.exports=function(T,f,b,g,E){return E(T,function(k,M,O){b=g?(g=!1,k):f(b,k,M,O)}),b}},5976:(p,T,f)=>{var b=f(6557),g=f(5357),E=f(61);p.exports=function(k,M){return E(g(k,M,b),k+"")}},611:(p,T,f)=>{var b=f(4865),g=f(1811),E=f(5776),k=f(3218),M=f(327);p.exports=function(O,L,F,P){if(!k(O))return O;for(var $=-1,W=(L=g(L,O)).length,K=W-1,nt=O;nt!=null&&++$<W;){var ht=M(L[$]),J=F;if(ht==="__proto__"||ht==="constructor"||ht==="prototype")return O;if($!=K){var bt=nt[ht];(J=P?P(bt,ht,nt):void 0)===void 0&&(J=k(bt)?bt:E(L[$+1])?[]:{})}b(nt,ht,J),nt=nt[ht]}return O}},6560:(p,T,f)=>{var b=f(5703),g=f(8777),E=f(6557),k=g?function(M,O){return g(M,"toString",{configurable:!0,enumerable:!1,value:b(O),writable:!0})}:E;p.exports=k},1131:p=>{p.exports=function(T,f){var b=T.length;for(T.sort(f);b--;)T[b]=T[b].value;return T}},2545:p=>{p.exports=function(T,f){for(var b=-1,g=Array(T);++b<T;)g[b]=f(b);return g}},531:(p,T,f)=>{var b=f(2705),g=f(9932),E=f(1469),k=f(3448),M=b?b.prototype:void 0,O=M?M.toString:void 0;p.exports=function L(F){if(typeof F=="string")return F;if(E(F))return g(F,L)+"";if(k(F))return O?O.call(F):"";var P=F+"";return P=="0"&&1/F==-1/0?"-0":P}},7561:(p,T,f)=>{var b=f(7990),g=/^\s+/;p.exports=function(E){return E&&E.slice(0,b(E)+1).replace(g,"")}},1717:p=>{p.exports=function(T){return function(f){return T(f)}}},5652:(p,T,f)=>{var b=f(8668),g=f(7443),E=f(1196),k=f(4757),M=f(3593),O=f(1814);p.exports=function(L,F,P){var $=-1,W=g,K=L.length,nt=!0,ht=[],J=ht;if(P)nt=!1,W=E;else if(K>=200){var bt=F?null:M(L);if(bt)return O(bt);nt=!1,W=k,J=new b}else J=F?[]:ht;t:for(;++$<K;){var at=L[$],st=F?F(at):at;if(at=P||at!==0?at:0,nt&&st==st){for(var St=J.length;St--;)if(J[St]===st)continue t;F&&J.push(st),ht.push(at)}else W(J,st,P)||(J!==ht&&J.push(st),ht.push(at))}return ht}},7415:(p,T,f)=>{var b=f(9932);p.exports=function(g,E){return b(E,function(k){return g[k]})}},1757:p=>{p.exports=function(T,f,b){for(var g=-1,E=T.length,k=f.length,M={};++g<E;){var O=g<k?f[g]:void 0;b(M,T[g],O)}return M}},4757:p=>{p.exports=function(T,f){return T.has(f)}},4290:(p,T,f)=>{var b=f(6557);p.exports=function(g){return typeof g=="function"?g:b}},1811:(p,T,f)=>{var b=f(1469),g=f(5403),E=f(5514),k=f(9833);p.exports=function(M,O){return b(M)?M:g(M,O)?[M]:E(k(M))}},4318:(p,T,f)=>{var b=f(1149);p.exports=function(g){var E=new g.constructor(g.byteLength);return new b(E).set(new b(g)),E}},4626:(p,T,f)=>{p=f.nmd(p);var b=f(5639),g=T&&!T.nodeType&&T,E=g&&p&&!p.nodeType&&p,k=E&&E.exports===g?b.Buffer:void 0,M=k?k.allocUnsafe:void 0;p.exports=function(O,L){if(L)return O.slice();var F=O.length,P=M?M(F):new O.constructor(F);return O.copy(P),P}},7157:(p,T,f)=>{var b=f(4318);p.exports=function(g,E){var k=E?b(g.buffer):g.buffer;return new g.constructor(k,g.byteOffset,g.byteLength)}},3147:p=>{var T=/\w*$/;p.exports=function(f){var b=new f.constructor(f.source,T.exec(f));return b.lastIndex=f.lastIndex,b}},419:(p,T,f)=>{var b=f(2705),g=b?b.prototype:void 0,E=g?g.valueOf:void 0;p.exports=function(k){return E?Object(E.call(k)):{}}},7133:(p,T,f)=>{var b=f(4318);p.exports=function(g,E){var k=E?b(g.buffer):g.buffer;return new g.constructor(k,g.byteOffset,g.length)}},6393:(p,T,f)=>{var b=f(3448);p.exports=function(g,E){if(g!==E){var k=g!==void 0,M=g===null,O=g==g,L=b(g),F=E!==void 0,P=E===null,$=E==E,W=b(E);if(!P&&!W&&!L&&g>E||L&&F&&$&&!P&&!W||M&&F&&$||!k&&$||!O)return 1;if(!M&&!L&&!W&&g<E||W&&k&&O&&!M&&!L||P&&k&&O||!F&&O||!$)return-1}return 0}},5022:(p,T,f)=>{var b=f(6393);p.exports=function(g,E,k){for(var M=-1,O=g.criteria,L=E.criteria,F=O.length,P=k.length;++M<F;){var $=b(O[M],L[M]);if($)return M>=P?$:$*(k[M]=="desc"?-1:1)}return g.index-E.index}},278:p=>{p.exports=function(T,f){var b=-1,g=T.length;for(f||(f=Array(g));++b<g;)f[b]=T[b];return f}},8363:(p,T,f)=>{var b=f(4865),g=f(9465);p.exports=function(E,k,M,O){var L=!M;M||(M={});for(var F=-1,P=k.length;++F<P;){var $=k[F],W=O?O(M[$],E[$],$,M,E):void 0;W===void 0&&(W=E[$]),L?g(M,$,W):b(M,$,W)}return M}},8805:(p,T,f)=>{var b=f(8363),g=f(9551);p.exports=function(E,k){return b(E,g(E),k)}},1911:(p,T,f)=>{var b=f(8363),g=f(1442);p.exports=function(E,k){return b(E,g(E),k)}},4429:(p,T,f)=>{var b=f(5639)["__core-js_shared__"];p.exports=b},1750:(p,T,f)=>{var b=f(5976),g=f(6612);p.exports=function(E){return b(function(k,M){var O=-1,L=M.length,F=L>1?M[L-1]:void 0,P=L>2?M[2]:void 0;for(F=E.length>3&&typeof F=="function"?(L--,F):void 0,P&&g(M[0],M[1],P)&&(F=L<3?void 0:F,L=1),k=Object(k);++O<L;){var $=M[O];$&&E(k,$,O,F)}return k})}},9291:(p,T,f)=>{var b=f(8612);p.exports=function(g,E){return function(k,M){if(k==null)return k;if(!b(k))return g(k,M);for(var O=k.length,L=E?O:-1,F=Object(k);(E?L--:++L<O)&&M(F[L],L,F)!==!1;);return k}}},5063:p=>{p.exports=function(T){return function(f,b,g){for(var E=-1,k=Object(f),M=g(f),O=M.length;O--;){var L=M[T?O:++E];if(b(k[L],L,k)===!1)break}return f}}},7740:(p,T,f)=>{var b=f(7206),g=f(8612),E=f(3674);p.exports=function(k){return function(M,O,L){var F=Object(M);if(!g(M)){var P=b(O,3);M=E(M),O=function(W){return P(F[W],W,F)}}var $=k(M,O,L);return $>-1?F[P?M[$]:$]:void 0}}},7445:(p,T,f)=>{var b=f(98),g=f(6612),E=f(8601);p.exports=function(k){return function(M,O,L){return L&&typeof L!="number"&&g(M,O,L)&&(O=L=void 0),M=E(M),O===void 0?(O=M,M=0):O=E(O),L=L===void 0?M<O?1:-1:E(L),b(M,O,L,k)}}},3593:(p,T,f)=>{var b=f(8525),g=f(308),E=f(1814),k=b&&1/E(new b([,-0]))[1]==1/0?function(M){return new b(M)}:g;p.exports=k},8777:(p,T,f)=>{var b=f(852),g=function(){try{var E=b(Object,"defineProperty");return E({},"",{}),E}catch{}}();p.exports=g},7114:(p,T,f)=>{var b=f(8668),g=f(2908),E=f(4757);p.exports=function(k,M,O,L,F,P){var $=1&O,W=k.length,K=M.length;if(W!=K&&!($&&K>W))return!1;var nt=P.get(k),ht=P.get(M);if(nt&&ht)return nt==M&&ht==k;var J=-1,bt=!0,at=2&O?new b:void 0;for(P.set(k,M),P.set(M,k);++J<W;){var st=k[J],St=M[J];if(L)var qt=$?L(St,st,J,M,k,P):L(st,St,J,k,M,P);if(qt!==void 0){if(qt)continue;bt=!1;break}if(at){if(!g(M,function(Nt,yt){if(!E(at,yt)&&(st===Nt||F(st,Nt,O,L,P)))return at.push(yt)})){bt=!1;break}}else if(st!==St&&!F(st,St,O,L,P)){bt=!1;break}}return P.delete(k),P.delete(M),bt}},8351:(p,T,f)=>{var b=f(2705),g=f(1149),E=f(7813),k=f(7114),M=f(8776),O=f(1814),L=b?b.prototype:void 0,F=L?L.valueOf:void 0;p.exports=function(P,$,W,K,nt,ht,J){switch(W){case"[object DataView]":if(P.byteLength!=$.byteLength||P.byteOffset!=$.byteOffset)return!1;P=P.buffer,$=$.buffer;case"[object ArrayBuffer]":return!(P.byteLength!=$.byteLength||!ht(new g(P),new g($)));case"[object Boolean]":case"[object Date]":case"[object Number]":return E(+P,+$);case"[object Error]":return P.name==$.name&&P.message==$.message;case"[object RegExp]":case"[object String]":return P==$+"";case"[object Map]":var bt=M;case"[object Set]":var at=1&K;if(bt||(bt=O),P.size!=$.size&&!at)return!1;var st=J.get(P);if(st)return st==$;K|=2,J.set(P,$);var St=k(bt(P),bt($),K,nt,ht,J);return J.delete(P),St;case"[object Symbol]":if(F)return F.call(P)==F.call($)}return!1}},6096:(p,T,f)=>{var b=f(8234),g=Object.prototype.hasOwnProperty;p.exports=function(E,k,M,O,L,F){var P=1&M,$=b(E),W=$.length;if(W!=b(k).length&&!P)return!1;for(var K=W;K--;){var nt=$[K];if(!(P?nt in k:g.call(k,nt)))return!1}var ht=F.get(E),J=F.get(k);if(ht&&J)return ht==k&&J==E;var bt=!0;F.set(E,k),F.set(k,E);for(var at=P;++K<W;){var st=E[nt=$[K]],St=k[nt];if(O)var qt=P?O(St,st,nt,k,E,F):O(st,St,nt,E,k,F);if(!(qt===void 0?st===St||L(st,St,M,O,F):qt)){bt=!1;break}at||(at=nt=="constructor")}if(bt&&!at){var Nt=E.constructor,yt=k.constructor;Nt==yt||!("constructor"in E)||!("constructor"in k)||typeof Nt=="function"&&Nt instanceof Nt&&typeof yt=="function"&&yt instanceof yt||(bt=!1)}return F.delete(E),F.delete(k),bt}},9021:(p,T,f)=>{var b=f(5564),g=f(5357),E=f(61);p.exports=function(k){return E(g(k,void 0,b),k+"")}},1957:(p,T,f)=>{var b=typeof f.g=="object"&&f.g&&f.g.Object===Object&&f.g;p.exports=b},8234:(p,T,f)=>{var b=f(8866),g=f(9551),E=f(3674);p.exports=function(k){return b(k,E,g)}},6904:(p,T,f)=>{var b=f(8866),g=f(1442),E=f(1704);p.exports=function(k){return b(k,E,g)}},5050:(p,T,f)=>{var b=f(7019);p.exports=function(g,E){var k=g.__data__;return b(E)?k[typeof E=="string"?"string":"hash"]:k.map}},1499:(p,T,f)=>{var b=f(9162),g=f(3674);p.exports=function(E){for(var k=g(E),M=k.length;M--;){var O=k[M],L=E[O];k[M]=[O,L,b(L)]}return k}},852:(p,T,f)=>{var b=f(8458),g=f(7801);p.exports=function(E,k){var M=g(E,k);return b(M)?M:void 0}},5924:(p,T,f)=>{var b=f(5569)(Object.getPrototypeOf,Object);p.exports=b},9607:(p,T,f)=>{var b=f(2705),g=Object.prototype,E=g.hasOwnProperty,k=g.toString,M=b?b.toStringTag:void 0;p.exports=function(O){var L=E.call(O,M),F=O[M];try{O[M]=void 0;var P=!0}catch{}var $=k.call(O);return P&&(L?O[M]=F:delete O[M]),$}},9551:(p,T,f)=>{var b=f(4963),g=f(479),E=Object.prototype.propertyIsEnumerable,k=Object.getOwnPropertySymbols,M=k?function(O){return O==null?[]:(O=Object(O),b(k(O),function(L){return E.call(O,L)}))}:g;p.exports=M},1442:(p,T,f)=>{var b=f(2488),g=f(5924),E=f(9551),k=f(479),M=Object.getOwnPropertySymbols?function(O){for(var L=[];O;)b(L,E(O)),O=g(O);return L}:k;p.exports=M},4160:(p,T,f)=>{var b=f(8552),g=f(7071),E=f(3818),k=f(8525),M=f(577),O=f(4239),L=f(346),F="[object Map]",P="[object Promise]",$="[object Set]",W="[object WeakMap]",K="[object DataView]",nt=L(b),ht=L(g),J=L(E),bt=L(k),at=L(M),st=O;(b&&st(new b(new ArrayBuffer(1)))!=K||g&&st(new g)!=F||E&&st(E.resolve())!=P||k&&st(new k)!=$||M&&st(new M)!=W)&&(st=function(St){var qt=O(St),Nt=qt=="[object Object]"?St.constructor:void 0,yt=Nt?L(Nt):"";if(yt)switch(yt){case nt:return K;case ht:return F;case J:return P;case bt:return $;case at:return W}return qt}),p.exports=st},7801:p=>{p.exports=function(T,f){return T==null?void 0:T[f]}},222:(p,T,f)=>{var b=f(1811),g=f(5694),E=f(1469),k=f(5776),M=f(1780),O=f(327);p.exports=function(L,F,P){for(var $=-1,W=(F=b(F,L)).length,K=!1;++$<W;){var nt=O(F[$]);if(!(K=L!=null&&P(L,nt)))break;L=L[nt]}return K||++$!=W?K:!!(W=L==null?0:L.length)&&M(W)&&k(nt,W)&&(E(L)||g(L))}},2689:p=>{var T=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");p.exports=function(f){return T.test(f)}},1789:(p,T,f)=>{var b=f(4536);p.exports=function(){this.__data__=b?b(null):{},this.size=0}},401:p=>{p.exports=function(T){var f=this.has(T)&&delete this.__data__[T];return this.size-=f?1:0,f}},7667:(p,T,f)=>{var b=f(4536),g=Object.prototype.hasOwnProperty;p.exports=function(E){var k=this.__data__;if(b){var M=k[E];return M==="__lodash_hash_undefined__"?void 0:M}return g.call(k,E)?k[E]:void 0}},1327:(p,T,f)=>{var b=f(4536),g=Object.prototype.hasOwnProperty;p.exports=function(E){var k=this.__data__;return b?k[E]!==void 0:g.call(k,E)}},1866:(p,T,f)=>{var b=f(4536);p.exports=function(g,E){var k=this.__data__;return this.size+=this.has(g)?0:1,k[g]=b&&E===void 0?"__lodash_hash_undefined__":E,this}},3824:p=>{var T=Object.prototype.hasOwnProperty;p.exports=function(f){var b=f.length,g=new f.constructor(b);return b&&typeof f[0]=="string"&&T.call(f,"index")&&(g.index=f.index,g.input=f.input),g}},9148:(p,T,f)=>{var b=f(4318),g=f(7157),E=f(3147),k=f(419),M=f(7133);p.exports=function(O,L,F){var P=O.constructor;switch(L){case"[object ArrayBuffer]":return b(O);case"[object Boolean]":case"[object Date]":return new P(+O);case"[object DataView]":return g(O,F);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return M(O,F);case"[object Map]":case"[object Set]":return new P;case"[object Number]":case"[object String]":return new P(O);case"[object RegExp]":return E(O);case"[object Symbol]":return k(O)}}},8517:(p,T,f)=>{var b=f(3118),g=f(5924),E=f(5726);p.exports=function(k){return typeof k.constructor!="function"||E(k)?{}:b(g(k))}},7285:(p,T,f)=>{var b=f(2705),g=f(5694),E=f(1469),k=b?b.isConcatSpreadable:void 0;p.exports=function(M){return E(M)||g(M)||!!(k&&M&&M[k])}},5776:p=>{var T=/^(?:0|[1-9]\d*)$/;p.exports=function(f,b){var g=typeof f;return!!(b=b==null?9007199254740991:b)&&(g=="number"||g!="symbol"&&T.test(f))&&f>-1&&f%1==0&&f<b}},6612:(p,T,f)=>{var b=f(7813),g=f(8612),E=f(5776),k=f(3218);p.exports=function(M,O,L){if(!k(L))return!1;var F=typeof O;return!!(F=="number"?g(L)&&E(O,L.length):F=="string"&&O in L)&&b(L[O],M)}},5403:(p,T,f)=>{var b=f(1469),g=f(3448),E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k=/^\w*$/;p.exports=function(M,O){if(b(M))return!1;var L=typeof M;return!(L!="number"&&L!="symbol"&&L!="boolean"&&M!=null&&!g(M))||k.test(M)||!E.test(M)||O!=null&&M in Object(O)}},7019:p=>{p.exports=function(T){var f=typeof T;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?T!=="__proto__":T===null}},5346:(p,T,f)=>{var b,g=f(4429),E=(b=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"";p.exports=function(k){return!!E&&E in k}},5726:p=>{var T=Object.prototype;p.exports=function(f){var b=f&&f.constructor;return f===(typeof b=="function"&&b.prototype||T)}},9162:(p,T,f)=>{var b=f(3218);p.exports=function(g){return g==g&&!b(g)}},7040:p=>{p.exports=function(){this.__data__=[],this.size=0}},4125:(p,T,f)=>{var b=f(8470),g=Array.prototype.splice;p.exports=function(E){var k=this.__data__,M=b(k,E);return!(M<0||(M==k.length-1?k.pop():g.call(k,M,1),--this.size,0))}},2117:(p,T,f)=>{var b=f(8470);p.exports=function(g){var E=this.__data__,k=b(E,g);return k<0?void 0:E[k][1]}},7518:(p,T,f)=>{var b=f(8470);p.exports=function(g){return b(this.__data__,g)>-1}},4705:(p,T,f)=>{var b=f(8470);p.exports=function(g,E){var k=this.__data__,M=b(k,g);return M<0?(++this.size,k.push([g,E])):k[M][1]=E,this}},4785:(p,T,f)=>{var b=f(1989),g=f(8407),E=f(7071);p.exports=function(){this.size=0,this.__data__={hash:new b,map:new(E||g),string:new b}}},1285:(p,T,f)=>{var b=f(5050);p.exports=function(g){var E=b(this,g).delete(g);return this.size-=E?1:0,E}},6e3:(p,T,f)=>{var b=f(5050);p.exports=function(g){return b(this,g).get(g)}},9916:(p,T,f)=>{var b=f(5050);p.exports=function(g){return b(this,g).has(g)}},5265:(p,T,f)=>{var b=f(5050);p.exports=function(g,E){var k=b(this,g),M=k.size;return k.set(g,E),this.size+=k.size==M?0:1,this}},8776:p=>{p.exports=function(T){var f=-1,b=Array(T.size);return T.forEach(function(g,E){b[++f]=[E,g]}),b}},2634:p=>{p.exports=function(T,f){return function(b){return b!=null&&b[T]===f&&(f!==void 0||T in Object(b))}}},4523:(p,T,f)=>{var b=f(8306);p.exports=function(g){var E=b(g,function(M){return k.size===500&&k.clear(),M}),k=E.cache;return E}},4536:(p,T,f)=>{var b=f(852)(Object,"create");p.exports=b},6916:(p,T,f)=>{var b=f(5569)(Object.keys,Object);p.exports=b},3498:p=>{p.exports=function(T){var f=[];if(T!=null)for(var b in Object(T))f.push(b);return f}},1167:(p,T,f)=>{p=f.nmd(p);var b=f(1957),g=T&&!T.nodeType&&T,E=g&&p&&!p.nodeType&&p,k=E&&E.exports===g&&b.process,M=function(){try{return E&&E.require&&E.require("util").types||k&&k.binding&&k.binding("util")}catch{}}();p.exports=M},2333:p=>{var T=Object.prototype.toString;p.exports=function(f){return T.call(f)}},5569:p=>{p.exports=function(T,f){return function(b){return T(f(b))}}},5357:(p,T,f)=>{var b=f(6874),g=Math.max;p.exports=function(E,k,M){return k=g(k===void 0?E.length-1:k,0),function(){for(var O=arguments,L=-1,F=g(O.length-k,0),P=Array(F);++L<F;)P[L]=O[k+L];L=-1;for(var $=Array(k+1);++L<k;)$[L]=O[L];return $[k]=M(P),b(E,this,$)}}},5639:(p,T,f)=>{var b=f(1957),g=typeof self=="object"&&self&&self.Object===Object&&self,E=b||g||Function("return this")();p.exports=E},6390:p=>{p.exports=function(T,f){if((f!=="constructor"||typeof T[f]!="function")&&f!="__proto__")return T[f]}},619:p=>{p.exports=function(T){return this.__data__.set(T,"__lodash_hash_undefined__"),this}},2385:p=>{p.exports=function(T){return this.__data__.has(T)}},1814:p=>{p.exports=function(T){var f=-1,b=Array(T.size);return T.forEach(function(g){b[++f]=g}),b}},61:(p,T,f)=>{var b=f(6560),g=f(1275)(b);p.exports=g},1275:p=>{var T=Date.now;p.exports=function(f){var b=0,g=0;return function(){var E=T(),k=16-(E-g);if(g=E,k>0){if(++b>=800)return arguments[0]}else b=0;return f.apply(void 0,arguments)}}},7465:(p,T,f)=>{var b=f(8407);p.exports=function(){this.__data__=new b,this.size=0}},3779:p=>{p.exports=function(T){var f=this.__data__,b=f.delete(T);return this.size=f.size,b}},7599:p=>{p.exports=function(T){return this.__data__.get(T)}},4758:p=>{p.exports=function(T){return this.__data__.has(T)}},4309:(p,T,f)=>{var b=f(8407),g=f(7071),E=f(3369);p.exports=function(k,M){var O=this.__data__;if(O instanceof b){var L=O.__data__;if(!g||L.length<199)return L.push([k,M]),this.size=++O.size,this;O=this.__data__=new E(L)}return O.set(k,M),this.size=O.size,this}},2351:p=>{p.exports=function(T,f,b){for(var g=b-1,E=T.length;++g<E;)if(T[g]===f)return g;return-1}},8016:(p,T,f)=>{var b=f(8983),g=f(2689),E=f(1903);p.exports=function(k){return g(k)?E(k):b(k)}},5514:(p,T,f)=>{var b=f(4523),g=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E=/\\(\\)?/g,k=b(function(M){var O=[];return M.charCodeAt(0)===46&&O.push(""),M.replace(g,function(L,F,P,$){O.push(P?$.replace(E,"$1"):F||L)}),O});p.exports=k},327:(p,T,f)=>{var b=f(3448);p.exports=function(g){if(typeof g=="string"||b(g))return g;var E=g+"";return E=="0"&&1/g==-1/0?"-0":E}},346:p=>{var T=Function.prototype.toString;p.exports=function(f){if(f!=null){try{return T.call(f)}catch{}try{return f+""}catch{}}return""}},7990:p=>{var T=/\s/;p.exports=function(f){for(var b=f.length;b--&&T.test(f.charAt(b)););return b}},1903:p=>{var T="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",f="\\ud83c[\\udffb-\\udfff]",b="[^\\ud800-\\udfff]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",E="[\\ud800-\\udbff][\\udc00-\\udfff]",k="(?:"+T+"|"+f+")?",M="[\\ufe0e\\ufe0f]?",O=M+k+"(?:\\u200d(?:"+[b,g,E].join("|")+")"+M+k+")*",L="(?:"+[b+T+"?",T,g,E,"[\\ud800-\\udfff]"].join("|")+")",F=RegExp(f+"(?="+f+")|"+L+O,"g");p.exports=function(P){for(var $=F.lastIndex=0;F.test(P);)++$;return $}},6678:(p,T,f)=>{var b=f(5990);p.exports=function(g){return b(g,4)}},361:(p,T,f)=>{var b=f(5990);p.exports=function(g){return b(g,5)}},5703:p=>{p.exports=function(T){return function(){return T}}},1747:(p,T,f)=>{var b=f(5976),g=f(7813),E=f(6612),k=f(1704),M=Object.prototype,O=M.hasOwnProperty,L=b(function(F,P){F=Object(F);var $=-1,W=P.length,K=W>2?P[2]:void 0;for(K&&E(P[0],P[1],K)&&(W=1);++$<W;)for(var nt=P[$],ht=k(nt),J=-1,bt=ht.length;++J<bt;){var at=ht[J],st=F[at];(st===void 0||g(st,M[at])&&!O.call(F,at))&&(F[at]=nt[at])}return F});p.exports=L},6073:(p,T,f)=>{p.exports=f(4486)},7813:p=>{p.exports=function(T,f){return T===f||T!=T&&f!=f}},3105:(p,T,f)=>{var b=f(4963),g=f(760),E=f(7206),k=f(1469);p.exports=function(M,O){return(k(M)?b:g)(M,E(O,3))}},3311:(p,T,f)=>{var b=f(7740)(f(998));p.exports=b},998:(p,T,f)=>{var b=f(1848),g=f(7206),E=f(554),k=Math.max;p.exports=function(M,O,L){var F=M==null?0:M.length;if(!F)return-1;var P=L==null?0:E(L);return P<0&&(P=k(F+P,0)),b(M,g(O,3),P)}},5564:(p,T,f)=>{var b=f(1078);p.exports=function(g){return g!=null&&g.length?b(g,1):[]}},4486:(p,T,f)=>{var b=f(7412),g=f(9881),E=f(4290),k=f(1469);p.exports=function(M,O){return(k(M)?b:g)(M,E(O))}},2620:(p,T,f)=>{var b=f(8483),g=f(4290),E=f(1704);p.exports=function(k,M){return k==null?k:b(k,g(M),E)}},7361:(p,T,f)=>{var b=f(7786);p.exports=function(g,E,k){var M=g==null?void 0:b(g,E);return M===void 0?k:M}},8721:(p,T,f)=>{var b=f(8565),g=f(222);p.exports=function(E,k){return E!=null&&g(E,k,b)}},9095:(p,T,f)=>{var b=f(13),g=f(222);p.exports=function(E,k){return E!=null&&g(E,k,b)}},6557:p=>{p.exports=function(T){return T}},5694:(p,T,f)=>{var b=f(9454),g=f(7005),E=Object.prototype,k=E.hasOwnProperty,M=E.propertyIsEnumerable,O=b(function(){return arguments}())?b:function(L){return g(L)&&k.call(L,"callee")&&!M.call(L,"callee")};p.exports=O},1469:p=>{var T=Array.isArray;p.exports=T},8612:(p,T,f)=>{var b=f(3560),g=f(1780);p.exports=function(E){return E!=null&&g(E.length)&&!b(E)}},9246:(p,T,f)=>{var b=f(8612),g=f(7005);p.exports=function(E){return g(E)&&b(E)}},4144:(p,T,f)=>{p=f.nmd(p);var b=f(5639),g=f(5062),E=T&&!T.nodeType&&T,k=E&&p&&!p.nodeType&&p,M=k&&k.exports===E?b.Buffer:void 0,O=(M?M.isBuffer:void 0)||g;p.exports=O},1609:(p,T,f)=>{var b=f(280),g=f(4160),E=f(5694),k=f(1469),M=f(8612),O=f(4144),L=f(5726),F=f(6719),P=Object.prototype.hasOwnProperty;p.exports=function($){if($==null)return!0;if(M($)&&(k($)||typeof $=="string"||typeof $.splice=="function"||O($)||F($)||E($)))return!$.length;var W=g($);if(W=="[object Map]"||W=="[object Set]")return!$.size;if(L($))return!b($).length;for(var K in $)if(P.call($,K))return!1;return!0}},3560:(p,T,f)=>{var b=f(4239),g=f(3218);p.exports=function(E){if(!g(E))return!1;var k=b(E);return k=="[object Function]"||k=="[object GeneratorFunction]"||k=="[object AsyncFunction]"||k=="[object Proxy]"}},1780:p=>{p.exports=function(T){return typeof T=="number"&&T>-1&&T%1==0&&T<=9007199254740991}},6688:(p,T,f)=>{var b=f(5588),g=f(1717),E=f(1167),k=E&&E.isMap,M=k?g(k):b;p.exports=M},3218:p=>{p.exports=function(T){var f=typeof T;return T!=null&&(f=="object"||f=="function")}},7005:p=>{p.exports=function(T){return T!=null&&typeof T=="object"}},8630:(p,T,f)=>{var b=f(4239),g=f(5924),E=f(7005),k=Function.prototype,M=Object.prototype,O=k.toString,L=M.hasOwnProperty,F=O.call(Object);p.exports=function(P){if(!E(P)||b(P)!="[object Object]")return!1;var $=g(P);if($===null)return!0;var W=L.call($,"constructor")&&$.constructor;return typeof W=="function"&&W instanceof W&&O.call(W)==F}},2928:(p,T,f)=>{var b=f(9221),g=f(1717),E=f(1167),k=E&&E.isSet,M=k?g(k):b;p.exports=M},7037:(p,T,f)=>{var b=f(4239),g=f(1469),E=f(7005);p.exports=function(k){return typeof k=="string"||!g(k)&&E(k)&&b(k)=="[object String]"}},3448:(p,T,f)=>{var b=f(4239),g=f(7005);p.exports=function(E){return typeof E=="symbol"||g(E)&&b(E)=="[object Symbol]"}},6719:(p,T,f)=>{var b=f(8749),g=f(1717),E=f(1167),k=E&&E.isTypedArray,M=k?g(k):b;p.exports=M},2353:p=>{p.exports=function(T){return T===void 0}},3674:(p,T,f)=>{var b=f(4636),g=f(280),E=f(8612);p.exports=function(k){return E(k)?b(k):g(k)}},1704:(p,T,f)=>{var b=f(4636),g=f(313),E=f(8612);p.exports=function(k){return E(k)?b(k,!0):g(k)}},928:p=>{p.exports=function(T){var f=T==null?0:T.length;return f?T[f-1]:void 0}},5161:(p,T,f)=>{var b=f(9932),g=f(7206),E=f(9199),k=f(1469);p.exports=function(M,O){return(k(M)?b:E)(M,g(O,3))}},6604:(p,T,f)=>{var b=f(9465),g=f(7816),E=f(7206);p.exports=function(k,M){var O={};return M=E(M,3),g(k,function(L,F,P){b(O,F,M(L,F,P))}),O}},6162:(p,T,f)=>{var b=f(6029),g=f(3325),E=f(6557);p.exports=function(k){return k&&k.length?b(k,E,g):void 0}},8306:(p,T,f)=>{var b=f(3369);function g(E,k){if(typeof E!="function"||k!=null&&typeof k!="function")throw new TypeError("Expected a function");var M=function(){var O=arguments,L=k?k.apply(this,O):O[0],F=M.cache;if(F.has(L))return F.get(L);var P=E.apply(this,O);return M.cache=F.set(L,P)||F,P};return M.cache=new(g.Cache||b),M}g.Cache=b,p.exports=g},3857:(p,T,f)=>{var b=f(2980),g=f(1750)(function(E,k,M){b(E,k,M)});p.exports=g},3632:(p,T,f)=>{var b=f(6029),g=f(433),E=f(6557);p.exports=function(k){return k&&k.length?b(k,E,g):void 0}},2762:(p,T,f)=>{var b=f(6029),g=f(7206),E=f(433);p.exports=function(k,M){return k&&k.length?b(k,g(M,2),E):void 0}},308:p=>{p.exports=function(){}},7771:(p,T,f)=>{var b=f(5639);p.exports=function(){return b.Date.now()}},9722:(p,T,f)=>{var b=f(5970),g=f(9021)(function(E,k){return E==null?{}:b(E,k)});p.exports=g},9601:(p,T,f)=>{var b=f(371),g=f(9152),E=f(5403),k=f(327);p.exports=function(M){return E(M)?b(k(M)):g(M)}},6026:(p,T,f)=>{var b=f(7445)();p.exports=b},4061:(p,T,f)=>{var b=f(2663),g=f(9881),E=f(7206),k=f(107),M=f(1469);p.exports=function(O,L,F){var P=M(O)?b:k,$=arguments.length<3;return P(O,E(L,4),F,$,g)}},4238:(p,T,f)=>{var b=f(280),g=f(4160),E=f(8612),k=f(7037),M=f(8016);p.exports=function(O){if(O==null)return 0;if(E(O))return k(O)?M(O):O.length;var L=g(O);return L=="[object Map]"||L=="[object Set]"?O.size:b(O).length}},9734:(p,T,f)=>{var b=f(1078),g=f(9556),E=f(5976),k=f(6612),M=E(function(O,L){if(O==null)return[];var F=L.length;return F>1&&k(O,L[0],L[1])?L=[]:F>2&&k(L[0],L[1],L[2])&&(L=[L[0]]),g(O,b(L,1),[])});p.exports=M},479:p=>{p.exports=function(){return[]}},5062:p=>{p.exports=function(){return!1}},8601:(p,T,f)=>{var b=f(4841);p.exports=function(g){return g?(g=b(g))===1/0||g===-1/0?17976931348623157e292*(g<0?-1:1):g==g?g:0:g===0?g:0}},554:(p,T,f)=>{var b=f(8601);p.exports=function(g){var E=b(g),k=E%1;return E==E?k?E-k:E:0}},4841:(p,T,f)=>{var b=f(7561),g=f(3218),E=f(3448),k=/^[-+]0x[0-9a-f]+$/i,M=/^0b[01]+$/i,O=/^0o[0-7]+$/i,L=parseInt;p.exports=function(F){if(typeof F=="number")return F;if(E(F))return NaN;if(g(F)){var P=typeof F.valueOf=="function"?F.valueOf():F;F=g(P)?P+"":P}if(typeof F!="string")return F===0?F:+F;F=b(F);var $=M.test(F);return $||O.test(F)?L(F.slice(2),$?2:8):k.test(F)?NaN:+F}},3678:(p,T,f)=>{var b=f(8363),g=f(1704);p.exports=function(E){return b(E,g(E))}},9833:(p,T,f)=>{var b=f(531);p.exports=function(g){return g==null?"":b(g)}},8718:(p,T,f)=>{var b=f(7412),g=f(3118),E=f(7816),k=f(7206),M=f(5924),O=f(1469),L=f(4144),F=f(3560),P=f(3218),$=f(6719);p.exports=function(W,K,nt){var ht=O(W),J=ht||L(W)||$(W);if(K=k(K,4),nt==null){var bt=W&&W.constructor;nt=J?ht?new bt:[]:P(W)&&F(bt)?g(M(W)):{}}return(J?b:E)(W,function(at,st,St){return K(nt,at,st,St)}),nt}},3386:(p,T,f)=>{var b=f(1078),g=f(5976),E=f(5652),k=f(9246),M=g(function(O){return E(b(O,1,k,!0))});p.exports=M},3955:(p,T,f)=>{var b=f(9833),g=0;p.exports=function(E){var k=++g;return b(E)+k}},2628:(p,T,f)=>{var b=f(7415),g=f(3674);p.exports=function(E){return E==null?[]:b(E,g(E))}},7287:(p,T,f)=>{var b=f(4865),g=f(1757);p.exports=function(E,k){return g(E||[],k||[],b)}},9234:()=>{},1748:(p,T,f)=>{var b={"./locale":9234,"./locale.js":9234};function g(k){var M=E(k);return f(M)}function E(k){if(!f.o(b,k)){var M=new Error("Cannot find module '"+k+"'");throw M.code="MODULE_NOT_FOUND",M}return b[k]}g.keys=function(){return Object.keys(b)},g.resolve=E,p.exports=g,g.id=1748},1941:function(p,T,f){(p=f.nmd(p)).exports=function(){var b,g;function E(){return b.apply(null,arguments)}function k(I){return I instanceof Array||Object.prototype.toString.call(I)==="[object Array]"}function M(I){return I!=null&&Object.prototype.toString.call(I)==="[object Object]"}function O(I){return I===void 0}function L(I){return typeof I=="number"||Object.prototype.toString.call(I)==="[object Number]"}function F(I){return I instanceof Date||Object.prototype.toString.call(I)==="[object Date]"}function P(I,H){var tt,_t=[];for(tt=0;tt<I.length;++tt)_t.push(H(I[tt],tt));return _t}function $(I,H){return Object.prototype.hasOwnProperty.call(I,H)}function W(I,H){for(var tt in H)$(H,tt)&&(I[tt]=H[tt]);return $(H,"toString")&&(I.toString=H.toString),$(H,"valueOf")&&(I.valueOf=H.valueOf),I}function K(I,H,tt,_t){return Ea(I,H,tt,_t,!0).utc()}function nt(I){return I._pf==null&&(I._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),I._pf}function ht(I){if(I._isValid==null){var H=nt(I),tt=g.call(H.parsedDateParts,function(te){return te!=null}),_t=!isNaN(I._d.getTime())&&H.overflow<0&&!H.empty&&!H.invalidMonth&&!H.invalidWeekday&&!H.weekdayMismatch&&!H.nullInput&&!H.invalidFormat&&!H.userInvalidated&&(!H.meridiem||H.meridiem&&tt);if(I._strict&&(_t=_t&&H.charsLeftOver===0&&H.unusedTokens.length===0&&H.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(I))return _t;I._isValid=_t}return I._isValid}function J(I){var H=K(NaN);return I!=null?W(nt(H),I):nt(H).userInvalidated=!0,H}g=Array.prototype.some?Array.prototype.some:function(I){for(var H=Object(this),tt=H.length>>>0,_t=0;_t<tt;_t++)if(_t in H&&I.call(this,H[_t],_t,H))return!0;return!1};var bt=E.momentProperties=[];function at(I,H){var tt,_t,te;if(O(H._isAMomentObject)||(I._isAMomentObject=H._isAMomentObject),O(H._i)||(I._i=H._i),O(H._f)||(I._f=H._f),O(H._l)||(I._l=H._l),O(H._strict)||(I._strict=H._strict),O(H._tzm)||(I._tzm=H._tzm),O(H._isUTC)||(I._isUTC=H._isUTC),O(H._offset)||(I._offset=H._offset),O(H._pf)||(I._pf=nt(H)),O(H._locale)||(I._locale=H._locale),0<bt.length)for(tt=0;tt<bt.length;tt++)O(te=H[_t=bt[tt]])||(I[_t]=te);return I}var st=!1;function St(I){at(this,I),this._d=new Date(I._d!=null?I._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),st===!1&&(st=!0,E.updateOffset(this),st=!1)}function qt(I){return I instanceof St||I!=null&&I._isAMomentObject!=null}function Nt(I){return I<0?Math.ceil(I)||0:Math.floor(I)}function yt(I){var H=+I,tt=0;return H!==0&&isFinite(H)&&(tt=Nt(H)),tt}function Bt(I,H,tt){var _t,te=Math.min(I.length,H.length),Se=Math.abs(I.length-H.length),Fe=0;for(_t=0;_t<te;_t++)(tt&&I[_t]!==H[_t]||!tt&&yt(I[_t])!==yt(H[_t]))&&Fe++;return Fe+Se}function kt(I){E.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+I)}function ft(I,H){var tt=!0;return W(function(){if(E.deprecationHandler!=null&&E.deprecationHandler(null,I),tt){for(var _t,te=[],Se=0;Se<arguments.length;Se++){if(_t="",typeof arguments[Se]=="object"){for(var Fe in _t+=`
|
|
[`+Se+"] ",arguments[0])_t+=Fe+": "+arguments[0][Fe]+", ";_t=_t.slice(0,-2)}else _t=arguments[Se];te.push(_t)}kt(I+`
|
|
Arguments: `+Array.prototype.slice.call(te).join("")+`
|
|
`+new Error().stack),tt=!1}return H.apply(this,arguments)},H)}var rt,dt={};function G(I,H){E.deprecationHandler!=null&&E.deprecationHandler(I,H),dt[I]||(kt(H),dt[I]=!0)}function Lt(I){return I instanceof Function||Object.prototype.toString.call(I)==="[object Function]"}function V(I,H){var tt,_t=W({},I);for(tt in H)$(H,tt)&&(M(I[tt])&&M(H[tt])?(_t[tt]={},W(_t[tt],I[tt]),W(_t[tt],H[tt])):H[tt]!=null?_t[tt]=H[tt]:delete _t[tt]);for(tt in I)$(I,tt)&&!$(H,tt)&&M(I[tt])&&(_t[tt]=W({},_t[tt]));return _t}function Rt(I){I!=null&&this.set(I)}E.suppressDeprecationWarnings=!1,E.deprecationHandler=null,rt=Object.keys?Object.keys:function(I){var H,tt=[];for(H in I)$(I,H)&&tt.push(H);return tt};var Yt={};function Gt(I,H){var tt=I.toLowerCase();Yt[tt]=Yt[tt+"s"]=Yt[H]=I}function ye(I){return typeof I=="string"?Yt[I]||Yt[I.toLowerCase()]:void 0}function qe(I){var H,tt,_t={};for(tt in I)$(I,tt)&&(H=ye(tt))&&(_t[H]=I[tt]);return _t}var xe={};function he(I,H){xe[I]=H}function me(I,H,tt){var _t=""+Math.abs(I),te=H-_t.length;return(0<=I?tt?"+":"":"-")+Math.pow(10,Math.max(0,te)).toString().substr(1)+_t}var Ie=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Le=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ve={},kn={};function be(I,H,tt,_t){var te=_t;typeof _t=="string"&&(te=function(){return this[_t]()}),I&&(kn[I]=te),H&&(kn[H[0]]=function(){return me(te.apply(this,arguments),H[1],H[2])}),tt&&(kn[tt]=function(){return this.localeData().ordinal(te.apply(this,arguments),I)})}function Ge(I,H){return I.isValid()?(H=$t(H,I.localeData()),ve[H]=ve[H]||function(tt){var _t,te,Se,Fe=tt.match(Ie);for(_t=0,te=Fe.length;_t<te;_t++)kn[Fe[_t]]?Fe[_t]=kn[Fe[_t]]:Fe[_t]=(Se=Fe[_t]).match(/\[[\s\S]/)?Se.replace(/^\[|\]$/g,""):Se.replace(/\\/g,"");return function(Ze){var Xe,an="";for(Xe=0;Xe<te;Xe++)an+=Lt(Fe[Xe])?Fe[Xe].call(Ze,tt):Fe[Xe];return an}}(H),ve[H](I)):I.localeData().invalidDate()}function $t(I,H){var tt=5;function _t(te){return H.longDateFormat(te)||te}for(Le.lastIndex=0;0<=tt&&Le.test(I);)I=I.replace(Le,_t),Le.lastIndex=0,tt-=1;return I}var fe=/\d/,oe=/\d\d/,Ft=/\d{3}/,Me=/\d{4}/,et=/[+-]?\d{6}/,Ne=/\d\d?/,lt=/\d\d\d\d?/,Ae=/\d\d\d\d\d\d?/,ae=/\d{1,3}/,we=/\d{1,4}/,Ye=/[+-]?\d{1,6}/,Pe=/\d+/,ln=/[+-]?\d+/,De=/Z|[+-]\d\d:?\d\d/gi,Ke=/Z|[+-]\d\d(?::?\d\d)?/gi,rn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,on={};function Oe(I,H,tt){on[I]=Lt(H)?H:function(_t,te){return _t&&tt?tt:H}}function dn(I,H){return $(on,I)?on[I](H._strict,H._locale):new RegExp(mn(I.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(tt,_t,te,Se,Fe){return _t||te||Se||Fe})))}function mn(I){return I.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var We={};function $e(I,H){var tt,_t=H;for(typeof I=="string"&&(I=[I]),L(H)&&(_t=function(te,Se){Se[H]=yt(te)}),tt=0;tt<I.length;tt++)We[I[tt]]=_t}function Ue(I,H){$e(I,function(tt,_t,te,Se){te._w=te._w||{},H(tt,te._w,te,Se)})}function Qe(I){return qn(I)?366:365}function qn(I){return I%4==0&&I%100!=0||I%400==0}be("Y",0,0,function(){var I=this.year();return I<=9999?""+I:"+"+I}),be(0,["YY",2],0,function(){return this.year()%100}),be(0,["YYYY",4],0,"year"),be(0,["YYYYY",5],0,"year"),be(0,["YYYYYY",6,!0],0,"year"),Gt("year","y"),he("year",1),Oe("Y",ln),Oe("YY",Ne,oe),Oe("YYYY",we,Me),Oe("YYYYY",Ye,et),Oe("YYYYYY",Ye,et),$e(["YYYYY","YYYYYY"],0),$e("YYYY",function(I,H){H[0]=I.length===2?E.parseTwoDigitYear(I):yt(I)}),$e("YY",function(I,H){H[0]=E.parseTwoDigitYear(I)}),$e("Y",function(I,H){H[0]=parseInt(I,10)}),E.parseTwoDigitYear=function(I){return yt(I)+(68<yt(I)?1900:2e3)};var zt,Dn=Ht("FullYear",!0);function Ht(I,H){return function(tt){return tt!=null?(In(this,I,tt),E.updateOffset(this,H),this):gn(this,I)}}function gn(I,H){return I.isValid()?I._d["get"+(I._isUTC?"UTC":"")+H]():NaN}function In(I,H,tt){I.isValid()&&!isNaN(tt)&&(H==="FullYear"&&qn(I.year())&&I.month()===1&&I.date()===29?I._d["set"+(I._isUTC?"UTC":"")+H](tt,I.month(),un(tt,I.month())):I._d["set"+(I._isUTC?"UTC":"")+H](tt))}function un(I,H){if(isNaN(I)||isNaN(H))return NaN;var tt=(H%12+12)%12;return I+=(H-tt)/12,tt===1?qn(I)?29:28:31-tt%7%2}zt=Array.prototype.indexOf?Array.prototype.indexOf:function(I){var H;for(H=0;H<this.length;++H)if(this[H]===I)return H;return-1},be("M",["MM",2],"Mo",function(){return this.month()+1}),be("MMM",0,0,function(I){return this.localeData().monthsShort(this,I)}),be("MMMM",0,0,function(I){return this.localeData().months(this,I)}),Gt("month","M"),he("month",8),Oe("M",Ne),Oe("MM",Ne,oe),Oe("MMM",function(I,H){return H.monthsShortRegex(I)}),Oe("MMMM",function(I,H){return H.monthsRegex(I)}),$e(["M","MM"],function(I,H){H[1]=yt(I)-1}),$e(["MMM","MMMM"],function(I,H,tt,_t){var te=tt._locale.monthsParse(I,_t,tt._strict);te!=null?H[1]=te:nt(tt).invalidMonth=I});var Gn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,er="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),$r="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function An(I,H){var tt;if(!I.isValid())return I;if(typeof H=="string"){if(/^\d+$/.test(H))H=yt(H);else if(!L(H=I.localeData().monthsParse(H)))return I}return tt=Math.min(I.date(),un(I.year(),H)),I._d["set"+(I._isUTC?"UTC":"")+"Month"](H,tt),I}function jn(I){return I!=null?(An(this,I),E.updateOffset(this,!0),this):gn(this,"Month")}var Pn=rn,On=rn;function zn(){function I(Fe,Ze){return Ze.length-Fe.length}var H,tt,_t=[],te=[],Se=[];for(H=0;H<12;H++)tt=K([2e3,H]),_t.push(this.monthsShort(tt,"")),te.push(this.months(tt,"")),Se.push(this.months(tt,"")),Se.push(this.monthsShort(tt,""));for(_t.sort(I),te.sort(I),Se.sort(I),H=0;H<12;H++)_t[H]=mn(_t[H]),te[H]=mn(te[H]);for(H=0;H<24;H++)Se[H]=mn(Se[H]);this._monthsRegex=new RegExp("^("+Se.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+te.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+_t.join("|")+")","i")}function $n(I){var H;if(I<100&&0<=I){var tt=Array.prototype.slice.call(arguments);tt[0]=I+400,H=new Date(Date.UTC.apply(null,tt)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(I)}else H=new Date(Date.UTC.apply(null,arguments));return H}function Cn(I,H,tt){var _t=7+H-tt;return-(7+$n(I,0,_t).getUTCDay()-H)%7+_t-1}function Vn(I,H,tt,_t,te){var Se,Fe,Ze=1+7*(H-1)+(7+tt-_t)%7+Cn(I,_t,te);return Fe=Ze<=0?Qe(Se=I-1)+Ze:Ze>Qe(I)?(Se=I+1,Ze-Qe(I)):(Se=I,Ze),{year:Se,dayOfYear:Fe}}function Tn(I,H,tt){var _t,te,Se=Cn(I.year(),H,tt),Fe=Math.floor((I.dayOfYear()-Se-1)/7)+1;return Fe<1?_t=Fe+Nn(te=I.year()-1,H,tt):Fe>Nn(I.year(),H,tt)?(_t=Fe-Nn(I.year(),H,tt),te=I.year()+1):(te=I.year(),_t=Fe),{week:_t,year:te}}function Nn(I,H,tt){var _t=Cn(I,H,tt),te=Cn(I+1,H,tt);return(Qe(I)-_t+te)/7}function Zn(I,H){return I.slice(H,7).concat(I.slice(0,H))}be("w",["ww",2],"wo","week"),be("W",["WW",2],"Wo","isoWeek"),Gt("week","w"),Gt("isoWeek","W"),he("week",5),he("isoWeek",5),Oe("w",Ne),Oe("ww",Ne,oe),Oe("W",Ne),Oe("WW",Ne,oe),Ue(["w","ww","W","WW"],function(I,H,tt,_t){H[_t.substr(0,1)]=yt(I)}),be("d",0,"do","day"),be("dd",0,0,function(I){return this.localeData().weekdaysMin(this,I)}),be("ddd",0,0,function(I){return this.localeData().weekdaysShort(this,I)}),be("dddd",0,0,function(I){return this.localeData().weekdays(this,I)}),be("e",0,0,"weekday"),be("E",0,0,"isoWeekday"),Gt("day","d"),Gt("weekday","e"),Gt("isoWeekday","E"),he("day",11),he("weekday",11),he("isoWeekday",11),Oe("d",Ne),Oe("e",Ne),Oe("E",Ne),Oe("dd",function(I,H){return H.weekdaysMinRegex(I)}),Oe("ddd",function(I,H){return H.weekdaysShortRegex(I)}),Oe("dddd",function(I,H){return H.weekdaysRegex(I)}),Ue(["dd","ddd","dddd"],function(I,H,tt,_t){var te=tt._locale.weekdaysParse(I,_t,tt._strict);te!=null?H.d=te:nt(tt).invalidWeekday=I}),Ue(["d","e","E"],function(I,H,tt,_t){H[_t]=yt(I)});var ua="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ci="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),_n=rn,xi=rn,kr=rn;function br(){function I(hn,Un){return Un.length-hn.length}var H,tt,_t,te,Se,Fe=[],Ze=[],Xe=[],an=[];for(H=0;H<7;H++)tt=K([2e3,1]).day(H),_t=this.weekdaysMin(tt,""),te=this.weekdaysShort(tt,""),Se=this.weekdays(tt,""),Fe.push(_t),Ze.push(te),Xe.push(Se),an.push(_t),an.push(te),an.push(Se);for(Fe.sort(I),Ze.sort(I),Xe.sort(I),an.sort(I),H=0;H<7;H++)Ze[H]=mn(Ze[H]),Xe[H]=mn(Xe[H]),an[H]=mn(an[H]);this._weekdaysRegex=new RegExp("^("+an.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Xe.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Ze.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Fe.join("|")+")","i")}function li(){return this.hours()%12||12}function ai(I,H){be(I,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function gi(I,H){return H._meridiemParse}be("H",["HH",2],0,"hour"),be("h",["hh",2],0,li),be("k",["kk",2],0,function(){return this.hours()||24}),be("hmm",0,0,function(){return""+li.apply(this)+me(this.minutes(),2)}),be("hmmss",0,0,function(){return""+li.apply(this)+me(this.minutes(),2)+me(this.seconds(),2)}),be("Hmm",0,0,function(){return""+this.hours()+me(this.minutes(),2)}),be("Hmmss",0,0,function(){return""+this.hours()+me(this.minutes(),2)+me(this.seconds(),2)}),ai("a",!0),ai("A",!1),Gt("hour","h"),he("hour",13),Oe("a",gi),Oe("A",gi),Oe("H",Ne),Oe("h",Ne),Oe("k",Ne),Oe("HH",Ne,oe),Oe("hh",Ne,oe),Oe("kk",Ne,oe),Oe("hmm",lt),Oe("hmmss",Ae),Oe("Hmm",lt),Oe("Hmmss",Ae),$e(["H","HH"],3),$e(["k","kk"],function(I,H,tt){var _t=yt(I);H[3]=_t===24?0:_t}),$e(["a","A"],function(I,H,tt){tt._isPm=tt._locale.isPM(I),tt._meridiem=I}),$e(["h","hh"],function(I,H,tt){H[3]=yt(I),nt(tt).bigHour=!0}),$e("hmm",function(I,H,tt){var _t=I.length-2;H[3]=yt(I.substr(0,_t)),H[4]=yt(I.substr(_t)),nt(tt).bigHour=!0}),$e("hmmss",function(I,H,tt){var _t=I.length-4,te=I.length-2;H[3]=yt(I.substr(0,_t)),H[4]=yt(I.substr(_t,2)),H[5]=yt(I.substr(te)),nt(tt).bigHour=!0}),$e("Hmm",function(I,H,tt){var _t=I.length-2;H[3]=yt(I.substr(0,_t)),H[4]=yt(I.substr(_t))}),$e("Hmmss",function(I,H,tt){var _t=I.length-4,te=I.length-2;H[3]=yt(I.substr(0,_t)),H[4]=yt(I.substr(_t,2)),H[5]=yt(I.substr(te))});var ti,yi=Ht("Hours",!0),ei={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:er,monthsShort:$r,week:{dow:0,doy:6},weekdays:ua,weekdaysMin:Ci,weekdaysShort:yr,meridiemParse:/[ap]\.?m?\.?/i},mr={},ni={};function ui(I){return I&&I.toLowerCase().replace("_","-")}function hi(I){var H=null;if(!mr[I]&&p&&p.exports)try{H=ti._abbr,f(1748)("./"+I),wi(H)}catch{}return mr[I]}function wi(I,H){var tt;return I&&((tt=O(H)?Cr(I):io(I,H))?ti=tt:typeof console!="undefined"&&console.warn&&console.warn("Locale "+I+" not found. Did you forget to load it?")),ti._abbr}function io(I,H){if(H===null)return delete mr[I],null;var tt,_t=ei;if(H.abbr=I,mr[I]!=null)G("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),_t=mr[I]._config;else if(H.parentLocale!=null)if(mr[H.parentLocale]!=null)_t=mr[H.parentLocale]._config;else{if((tt=hi(H.parentLocale))==null)return ni[H.parentLocale]||(ni[H.parentLocale]=[]),ni[H.parentLocale].push({name:I,config:H}),null;_t=tt._config}return mr[I]=new Rt(V(_t,H)),ni[I]&&ni[I].forEach(function(te){io(te.name,te.config)}),wi(I),mr[I]}function Cr(I){var H;if(I&&I._locale&&I._locale._abbr&&(I=I._locale._abbr),!I)return ti;if(!k(I)){if(H=hi(I))return H;I=[I]}return function(tt){for(var _t,te,Se,Fe,Ze=0;Ze<tt.length;){for(_t=(Fe=ui(tt[Ze]).split("-")).length,te=(te=ui(tt[Ze+1]))?te.split("-"):null;0<_t;){if(Se=hi(Fe.slice(0,_t).join("-")))return Se;if(te&&te.length>=_t&&Bt(Fe,te,!0)>=_t-1)break;_t--}Ze++}return ti}(I)}function Ia(I){var H,tt=I._a;return tt&&nt(I).overflow===-2&&(H=tt[1]<0||11<tt[1]?1:tt[2]<1||tt[2]>un(tt[0],tt[1])?2:tt[3]<0||24<tt[3]||tt[3]===24&&(tt[4]!==0||tt[5]!==0||tt[6]!==0)?3:tt[4]<0||59<tt[4]?4:tt[5]<0||59<tt[5]?5:tt[6]<0||999<tt[6]?6:-1,nt(I)._overflowDayOfYear&&(H<0||2<H)&&(H=2),nt(I)._overflowWeeks&&H===-1&&(H=7),nt(I)._overflowWeekday&&H===-1&&(H=8),nt(I).overflow=H),I}function ha(I,H,tt){return I!=null?I:H!=null?H:tt}function ji(I){var H,tt,_t,te,Se,Fe=[];if(!I._d){var Ze,Xe;for(Ze=I,Xe=new Date(E.now()),_t=Ze._useUTC?[Xe.getUTCFullYear(),Xe.getUTCMonth(),Xe.getUTCDate()]:[Xe.getFullYear(),Xe.getMonth(),Xe.getDate()],I._w&&I._a[2]==null&&I._a[1]==null&&function(an){var hn,Un,Rn,xr,Tr,Ur,_r,Ba;if((hn=an._w).GG!=null||hn.W!=null||hn.E!=null)Tr=1,Ur=4,Un=ha(hn.GG,an._a[0],Tn(Xn(),1,4).year),Rn=ha(hn.W,1),((xr=ha(hn.E,1))<1||7<xr)&&(Ba=!0);else{Tr=an._locale._week.dow,Ur=an._locale._week.doy;var Us=Tn(Xn(),Tr,Ur);Un=ha(hn.gg,an._a[0],Us.year),Rn=ha(hn.w,Us.week),hn.d!=null?((xr=hn.d)<0||6<xr)&&(Ba=!0):hn.e!=null?(xr=hn.e+Tr,(hn.e<0||6<hn.e)&&(Ba=!0)):xr=Tr}Rn<1||Rn>Nn(Un,Tr,Ur)?nt(an)._overflowWeeks=!0:Ba!=null?nt(an)._overflowWeekday=!0:(_r=Vn(Un,Rn,xr,Tr,Ur),an._a[0]=_r.year,an._dayOfYear=_r.dayOfYear)}(I),I._dayOfYear!=null&&(Se=ha(I._a[0],_t[0]),(I._dayOfYear>Qe(Se)||I._dayOfYear===0)&&(nt(I)._overflowDayOfYear=!0),tt=$n(Se,0,I._dayOfYear),I._a[1]=tt.getUTCMonth(),I._a[2]=tt.getUTCDate()),H=0;H<3&&I._a[H]==null;++H)I._a[H]=Fe[H]=_t[H];for(;H<7;H++)I._a[H]=Fe[H]=I._a[H]==null?H===2?1:0:I._a[H];I._a[3]===24&&I._a[4]===0&&I._a[5]===0&&I._a[6]===0&&(I._nextDay=!0,I._a[3]=0),I._d=(I._useUTC?$n:function(an,hn,Un,Rn,xr,Tr,Ur){var _r;return an<100&&0<=an?(_r=new Date(an+400,hn,Un,Rn,xr,Tr,Ur),isFinite(_r.getFullYear())&&_r.setFullYear(an)):_r=new Date(an,hn,Un,Rn,xr,Tr,Ur),_r}).apply(null,Fe),te=I._useUTC?I._d.getUTCDay():I._d.getDay(),I._tzm!=null&&I._d.setUTCMinutes(I._d.getUTCMinutes()-I._tzm),I._nextDay&&(I._a[3]=24),I._w&&I._w.d!==void 0&&I._w.d!==te&&(nt(I).weekdayMismatch=!0)}}var vn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,nr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Re=/Z|[+-]\d\d(?::?\d\d)?/,Ve=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Er=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Vt=/^\/?Date\((\-?\d+)/i;function ka(I){var H,tt,_t,te,Se,Fe,Ze=I._i,Xe=vn.exec(Ze)||nr.exec(Ze);if(Xe){for(nt(I).iso=!0,H=0,tt=Ve.length;H<tt;H++)if(Ve[H][1].exec(Xe[1])){te=Ve[H][0],_t=Ve[H][2]!==!1;break}if(te==null)return void(I._isValid=!1);if(Xe[3]){for(H=0,tt=Er.length;H<tt;H++)if(Er[H][1].exec(Xe[3])){Se=(Xe[2]||" ")+Er[H][0];break}if(Se==null)return void(I._isValid=!1)}if(!_t&&Se!=null)return void(I._isValid=!1);if(Xe[4]){if(!Re.exec(Xe[4]))return void(I._isValid=!1);Fe="Z"}I._f=te+(Se||"")+(Fe||""),Fs(I)}else I._isValid=!1}var re=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ri={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Io(I){var H,tt,_t,te=re.exec(I._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(te){var Se=function(Fe,Ze,Xe,an,hn,Un){var Rn=[function(xr){var Tr=parseInt(xr,10);return Tr<=49?2e3+Tr:Tr<=999?1900+Tr:Tr}(Fe),$r.indexOf(Ze),parseInt(Xe,10),parseInt(an,10),parseInt(hn,10)];return Un&&Rn.push(parseInt(Un,10)),Rn}(te[4],te[3],te[2],te[5],te[6],te[7]);if(tt=Se,_t=I,(H=te[1])&&yr.indexOf(H)!==new Date(tt[0],tt[1],tt[2]).getDay()&&(nt(_t).weekdayMismatch=!0,!(_t._isValid=!1)))return;I._a=Se,I._tzm=function(Fe,Ze,Xe){if(Fe)return ri[Fe];if(Ze)return 0;var an=parseInt(Xe,10),hn=an%100;return(an-hn)/100*60+hn}(te[8],te[9],te[10]),I._d=$n.apply(null,I._a),I._d.setUTCMinutes(I._d.getUTCMinutes()-I._tzm),nt(I).rfc2822=!0}else I._isValid=!1}function Fs(I){if(I._f!==E.ISO_8601)if(I._f!==E.RFC_2822){I._a=[],nt(I).empty=!0;var H,tt,_t,te,Se,Fe,Ze,Xe,an=""+I._i,hn=an.length,Un=0;for(_t=$t(I._f,I._locale).match(Ie)||[],H=0;H<_t.length;H++)te=_t[H],(tt=(an.match(dn(te,I))||[])[0])&&(0<(Se=an.substr(0,an.indexOf(tt))).length&&nt(I).unusedInput.push(Se),an=an.slice(an.indexOf(tt)+tt.length),Un+=tt.length),kn[te]?(tt?nt(I).empty=!1:nt(I).unusedTokens.push(te),Fe=te,Xe=I,(Ze=tt)!=null&&$(We,Fe)&&We[Fe](Ze,Xe._a,Xe,Fe)):I._strict&&!tt&&nt(I).unusedTokens.push(te);nt(I).charsLeftOver=hn-Un,0<an.length&&nt(I).unusedInput.push(an),I._a[3]<=12&&nt(I).bigHour===!0&&0<I._a[3]&&(nt(I).bigHour=void 0),nt(I).parsedDateParts=I._a.slice(0),nt(I).meridiem=I._meridiem,I._a[3]=function(Rn,xr,Tr){var Ur;return Tr==null?xr:Rn.meridiemHour!=null?Rn.meridiemHour(xr,Tr):(Rn.isPM!=null&&((Ur=Rn.isPM(Tr))&&xr<12&&(xr+=12),Ur||xr!==12||(xr=0)),xr)}(I._locale,I._a[3],I._meridiem),ji(I),Ia(I)}else Io(I);else ka(I)}function bc(I){var H,tt,_t,te,Se=I._i,Fe=I._f;return I._locale=I._locale||Cr(I._l),Se===null||Fe===void 0&&Se===""?J({nullInput:!0}):(typeof Se=="string"&&(I._i=Se=I._locale.preparse(Se)),qt(Se)?new St(Ia(Se)):(F(Se)?I._d=Se:k(Fe)?function(Ze){var Xe,an,hn,Un,Rn;if(Ze._f.length===0)return nt(Ze).invalidFormat=!0,Ze._d=new Date(NaN);for(Un=0;Un<Ze._f.length;Un++)Rn=0,Xe=at({},Ze),Ze._useUTC!=null&&(Xe._useUTC=Ze._useUTC),Xe._f=Ze._f[Un],Fs(Xe),ht(Xe)&&(Rn+=nt(Xe).charsLeftOver,Rn+=10*nt(Xe).unusedTokens.length,nt(Xe).score=Rn,(hn==null||Rn<hn)&&(hn=Rn,an=Xe));W(Ze,an||Xe)}(I):Fe?Fs(I):O(tt=(H=I)._i)?H._d=new Date(E.now()):F(tt)?H._d=new Date(tt.valueOf()):typeof tt=="string"?(_t=H,(te=Vt.exec(_t._i))===null?(ka(_t),_t._isValid===!1&&(delete _t._isValid,Io(_t),_t._isValid===!1&&(delete _t._isValid,E.createFromInputFallback(_t)))):_t._d=new Date(+te[1])):k(tt)?(H._a=P(tt.slice(0),function(Ze){return parseInt(Ze,10)}),ji(H)):M(tt)?function(Ze){if(!Ze._d){var Xe=qe(Ze._i);Ze._a=P([Xe.year,Xe.month,Xe.day||Xe.date,Xe.hour,Xe.minute,Xe.second,Xe.millisecond],function(an){return an&&parseInt(an,10)}),ji(Ze)}}(H):L(tt)?H._d=new Date(tt):E.createFromInputFallback(H),ht(I)||(I._d=null),I))}function Ea(I,H,tt,_t,te){var Se,Fe={};return tt!==!0&&tt!==!1||(_t=tt,tt=void 0),(M(I)&&function(Ze){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(Ze).length===0;var Xe;for(Xe in Ze)if(Ze.hasOwnProperty(Xe))return!1;return!0}(I)||k(I)&&I.length===0)&&(I=void 0),Fe._isAMomentObject=!0,Fe._useUTC=Fe._isUTC=te,Fe._l=tt,Fe._i=I,Fe._f=H,Fe._strict=_t,(Se=new St(Ia(bc(Fe))))._nextDay&&(Se.add(1,"d"),Se._nextDay=void 0),Se}function Xn(I,H,tt,_t){return Ea(I,H,tt,_t,!1)}E.createFromInputFallback=ft("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(I){I._d=new Date(I._i+(I._useUTC?" UTC":""))}),E.ISO_8601=function(){},E.RFC_2822=function(){};var jr=ft("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var I=Xn.apply(null,arguments);return this.isValid()&&I.isValid()?I<this?this:I:J()}),Mi=ft("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var I=Xn.apply(null,arguments);return this.isValid()&&I.isValid()?this<I?this:I:J()});function Hr(I,H){var tt,_t;if(H.length===1&&k(H[0])&&(H=H[0]),!H.length)return Xn();for(tt=H[0],_t=1;_t<H.length;++_t)H[_t].isValid()&&!H[_t][I](tt)||(tt=H[_t]);return tt}var Ri=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ji(I){var H=qe(I),tt=H.year||0,_t=H.quarter||0,te=H.month||0,Se=H.week||H.isoWeek||0,Fe=H.day||0,Ze=H.hour||0,Xe=H.minute||0,an=H.second||0,hn=H.millisecond||0;this._isValid=function(Un){for(var Rn in Un)if(zt.call(Ri,Rn)===-1||Un[Rn]!=null&&isNaN(Un[Rn]))return!1;for(var xr=!1,Tr=0;Tr<Ri.length;++Tr)if(Un[Ri[Tr]]){if(xr)return!1;parseFloat(Un[Ri[Tr]])!==yt(Un[Ri[Tr]])&&(xr=!0)}return!0}(H),this._milliseconds=+hn+1e3*an+6e4*Xe+1e3*Ze*60*60,this._days=+Fe+7*Se,this._months=+te+3*_t+12*tt,this._data={},this._locale=Cr(),this._bubble()}function Bi(I){return I instanceof Ji}function Or(I){return I<0?-1*Math.round(-1*I):Math.round(I)}function fi(I,H){be(I,0,0,function(){var tt=this.utcOffset(),_t="+";return tt<0&&(tt=-tt,_t="-"),_t+me(~~(tt/60),2)+H+me(~~tt%60,2)})}fi("Z",":"),fi("ZZ",""),Oe("Z",Ke),Oe("ZZ",Ke),$e(["Z","ZZ"],function(I,H,tt){tt._useUTC=!0,tt._tzm=qr(Ke,I)});var oi=/([\+\-]|\d\d)/gi;function qr(I,H){var tt=(H||"").match(I);if(tt===null)return null;var _t=((tt[tt.length-1]||[])+"").match(oi)||["-",0,0],te=60*_t[1]+yt(_t[2]);return te===0?0:_t[0]==="+"?te:-te}function fa(I,H){var tt,_t;return H._isUTC?(tt=H.clone(),_t=(qt(I)||F(I)?I.valueOf():Xn(I).valueOf())-tt.valueOf(),tt._d.setTime(tt._d.valueOf()+_t),E.updateOffset(tt,!1),tt):Xn(I).local()}function Qi(I){return 15*-Math.round(I._d.getTimezoneOffset()/15)}function Ni(){return!!this.isValid()&&this._isUTC&&this._offset===0}E.updateOffset=function(){};var Ta=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Jr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function di(I,H){var tt,_t,te,Se=I,Fe=null;return Bi(I)?Se={ms:I._milliseconds,d:I._days,M:I._months}:L(I)?(Se={},H?Se[H]=I:Se.milliseconds=I):(Fe=Ta.exec(I))?(tt=Fe[1]==="-"?-1:1,Se={y:0,d:yt(Fe[2])*tt,h:yt(Fe[3])*tt,m:yt(Fe[4])*tt,s:yt(Fe[5])*tt,ms:yt(Or(1e3*Fe[6]))*tt}):(Fe=Jr.exec(I))?(tt=Fe[1]==="-"?-1:1,Se={y:Sa(Fe[2],tt),M:Sa(Fe[3],tt),w:Sa(Fe[4],tt),d:Sa(Fe[5],tt),h:Sa(Fe[6],tt),m:Sa(Fe[7],tt),s:Sa(Fe[8],tt)}):Se==null?Se={}:typeof Se=="object"&&("from"in Se||"to"in Se)&&(te=function(Ze,Xe){var an;return Ze.isValid()&&Xe.isValid()?(Xe=fa(Xe,Ze),Ze.isBefore(Xe)?an=da(Ze,Xe):((an=da(Xe,Ze)).milliseconds=-an.milliseconds,an.months=-an.months),an):{milliseconds:0,months:0}}(Xn(Se.from),Xn(Se.to)),(Se={}).ms=te.milliseconds,Se.M=te.months),_t=new Ji(Se),Bi(I)&&$(I,"_locale")&&(_t._locale=I._locale),_t}function Sa(I,H){var tt=I&&parseFloat(I.replace(",","."));return(isNaN(tt)?0:tt)*H}function da(I,H){var tt={};return tt.months=H.month()-I.month()+12*(H.year()-I.year()),I.clone().add(tt.months,"M").isAfter(H)&&--tt.months,tt.milliseconds=+H-+I.clone().add(tt.months,"M"),tt}function Oo(I,H){return function(tt,_t){var te;return _t===null||isNaN(+_t)||(G(H,"moment()."+H+"(period, number) is deprecated. Please use moment()."+H+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),te=tt,tt=_t,_t=te),rl(this,di(tt=typeof tt=="string"?+tt:tt,_t),I),this}}function rl(I,H,tt,_t){var te=H._milliseconds,Se=Or(H._days),Fe=Or(H._months);I.isValid()&&(_t=_t==null||_t,Fe&&An(I,gn(I,"Month")+Fe*tt),Se&&In(I,"Date",gn(I,"Date")+Se*tt),te&&I._d.setTime(I._d.valueOf()+te*tt),_t&&E.updateOffset(I,Se||Fe))}di.fn=Ji.prototype,di.invalid=function(){return di(NaN)};var Kt=Oo(1,"add"),pn=Oo(-1,"subtract");function en(I,H){var tt=12*(H.year()-I.year())+(H.month()-I.month()),_t=I.clone().add(tt,"months");return-(tt+(H-_t<0?(H-_t)/(_t-I.clone().add(tt-1,"months")):(H-_t)/(I.clone().add(tt+1,"months")-_t)))||0}function rr(I){var H;return I===void 0?this._locale._abbr:((H=Cr(I))!=null&&(this._locale=H),this)}E.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",E.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Wr=ft("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(I){return I===void 0?this.localeData():this.locale(I)});function Gr(){return this._locale}var si=126227808e5;function ta(I,H){return(I%H+H)%H}function Aa(I,H,tt){return I<100&&0<=I?new Date(I+400,H,tt)-si:new Date(I,H,tt).valueOf()}function Rr(I,H,tt){return I<100&&0<=I?Date.UTC(I+400,H,tt)-si:Date.UTC(I,H,tt)}function ii(I,H){be(0,[I,I.length],0,H)}function il(I,H,tt,_t,te){var Se;return I==null?Tn(this,_t,te).year:((Se=Nn(I,_t,te))<H&&(H=Se),function(Fe,Ze,Xe,an,hn){var Un=Vn(Fe,Ze,Xe,an,hn),Rn=$n(Un.year,0,Un.dayOfYear);return this.year(Rn.getUTCFullYear()),this.month(Rn.getUTCMonth()),this.date(Rn.getUTCDate()),this}.call(this,I,H,tt,_t,te))}be(0,["gg",2],0,function(){return this.weekYear()%100}),be(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ii("gggg","weekYear"),ii("ggggg","weekYear"),ii("GGGG","isoWeekYear"),ii("GGGGG","isoWeekYear"),Gt("weekYear","gg"),Gt("isoWeekYear","GG"),he("weekYear",1),he("isoWeekYear",1),Oe("G",ln),Oe("g",ln),Oe("GG",Ne,oe),Oe("gg",Ne,oe),Oe("GGGG",we,Me),Oe("gggg",we,Me),Oe("GGGGG",Ye,et),Oe("ggggg",Ye,et),Ue(["gggg","ggggg","GGGG","GGGGG"],function(I,H,tt,_t){H[_t.substr(0,2)]=yt(I)}),Ue(["gg","GG"],function(I,H,tt,_t){H[_t]=E.parseTwoDigitYear(I)}),be("Q",0,"Qo","quarter"),Gt("quarter","Q"),he("quarter",7),Oe("Q",fe),$e("Q",function(I,H){H[1]=3*(yt(I)-1)}),be("D",["DD",2],"Do","date"),Gt("date","D"),he("date",9),Oe("D",Ne),Oe("DD",Ne,oe),Oe("Do",function(I,H){return I?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),$e(["D","DD"],2),$e("Do",function(I,H){H[2]=yt(I.match(Ne)[0])});var Wl=Ht("Date",!0);be("DDD",["DDDD",3],"DDDo","dayOfYear"),Gt("dayOfYear","DDD"),he("dayOfYear",4),Oe("DDD",ae),Oe("DDDD",Ft),$e(["DDD","DDDD"],function(I,H,tt){tt._dayOfYear=yt(I)}),be("m",["mm",2],0,"minute"),Gt("minute","m"),he("minute",14),Oe("m",Ne),Oe("mm",Ne,oe),$e(["m","mm"],4);var Gl=Ht("Minutes",!1);be("s",["ss",2],0,"second"),Gt("second","s"),he("second",15),Oe("s",Ne),Oe("ss",Ne,oe),$e(["s","ss"],5);var ao,Vl=Ht("Seconds",!1);for(be("S",0,0,function(){return~~(this.millisecond()/100)}),be(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),be(0,["SSS",3],0,"millisecond"),be(0,["SSSS",4],0,function(){return 10*this.millisecond()}),be(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),be(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),be(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),be(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),be(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Gt("millisecond","ms"),he("millisecond",16),Oe("S",ae,fe),Oe("SS",ae,oe),Oe("SSS",ae,Ft),ao="SSSS";ao.length<=9;ao+="S")Oe(ao,Pe);function Zl(I,H){H[6]=yt(1e3*("0."+I))}for(ao="S";ao.length<=9;ao+="S")$e(ao,Zl);var oo=Ht("Milliseconds",!1);be("z",0,0,"zoneAbbr"),be("zz",0,0,"zoneName");var nn=St.prototype;function uh(I){return I}nn.add=Kt,nn.calendar=function(I,H){var tt=I||Xn(),_t=fa(tt,this).startOf("day"),te=E.calendarFormat(this,_t)||"sameElse",Se=H&&(Lt(H[te])?H[te].call(this,tt):H[te]);return this.format(Se||this.localeData().calendar(te,this,Xn(tt)))},nn.clone=function(){return new St(this)},nn.diff=function(I,H,tt){var _t,te,Se;if(!this.isValid())return NaN;if(!(_t=fa(I,this)).isValid())return NaN;switch(te=6e4*(_t.utcOffset()-this.utcOffset()),H=ye(H)){case"year":Se=en(this,_t)/12;break;case"month":Se=en(this,_t);break;case"quarter":Se=en(this,_t)/3;break;case"second":Se=(this-_t)/1e3;break;case"minute":Se=(this-_t)/6e4;break;case"hour":Se=(this-_t)/36e5;break;case"day":Se=(this-_t-te)/864e5;break;case"week":Se=(this-_t-te)/6048e5;break;default:Se=this-_t}return tt?Se:Nt(Se)},nn.endOf=function(I){var H;if((I=ye(I))===void 0||I==="millisecond"||!this.isValid())return this;var tt=this._isUTC?Rr:Aa;switch(I){case"year":H=tt(this.year()+1,0,1)-1;break;case"quarter":H=tt(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=tt(this.year(),this.month()+1,1)-1;break;case"week":H=tt(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=tt(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=tt(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=36e5-ta(H+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":H=this._d.valueOf(),H+=6e4-ta(H,6e4)-1;break;case"second":H=this._d.valueOf(),H+=1e3-ta(H,1e3)-1}return this._d.setTime(H),E.updateOffset(this,!0),this},nn.format=function(I){I||(I=this.isUtc()?E.defaultFormatUtc:E.defaultFormat);var H=Ge(this,I);return this.localeData().postformat(H)},nn.from=function(I,H){return this.isValid()&&(qt(I)&&I.isValid()||Xn(I).isValid())?di({to:this,from:I}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},nn.fromNow=function(I){return this.from(Xn(),I)},nn.to=function(I,H){return this.isValid()&&(qt(I)&&I.isValid()||Xn(I).isValid())?di({from:this,to:I}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},nn.toNow=function(I){return this.to(Xn(),I)},nn.get=function(I){return Lt(this[I=ye(I)])?this[I]():this},nn.invalidAt=function(){return nt(this).overflow},nn.isAfter=function(I,H){var tt=qt(I)?I:Xn(I);return!(!this.isValid()||!tt.isValid())&&((H=ye(H)||"millisecond")==="millisecond"?this.valueOf()>tt.valueOf():tt.valueOf()<this.clone().startOf(H).valueOf())},nn.isBefore=function(I,H){var tt=qt(I)?I:Xn(I);return!(!this.isValid()||!tt.isValid())&&((H=ye(H)||"millisecond")==="millisecond"?this.valueOf()<tt.valueOf():this.clone().endOf(H).valueOf()<tt.valueOf())},nn.isBetween=function(I,H,tt,_t){var te=qt(I)?I:Xn(I),Se=qt(H)?H:Xn(H);return!!(this.isValid()&&te.isValid()&&Se.isValid())&&((_t=_t||"()")[0]==="("?this.isAfter(te,tt):!this.isBefore(te,tt))&&(_t[1]===")"?this.isBefore(Se,tt):!this.isAfter(Se,tt))},nn.isSame=function(I,H){var tt,_t=qt(I)?I:Xn(I);return!(!this.isValid()||!_t.isValid())&&((H=ye(H)||"millisecond")==="millisecond"?this.valueOf()===_t.valueOf():(tt=_t.valueOf(),this.clone().startOf(H).valueOf()<=tt&&tt<=this.clone().endOf(H).valueOf()))},nn.isSameOrAfter=function(I,H){return this.isSame(I,H)||this.isAfter(I,H)},nn.isSameOrBefore=function(I,H){return this.isSame(I,H)||this.isBefore(I,H)},nn.isValid=function(){return ht(this)},nn.lang=Wr,nn.locale=rr,nn.localeData=Gr,nn.max=Mi,nn.min=jr,nn.parsingFlags=function(){return W({},nt(this))},nn.set=function(I,H){if(typeof I=="object")for(var tt=function(te){var Se=[];for(var Fe in te)Se.push({unit:Fe,priority:xe[Fe]});return Se.sort(function(Ze,Xe){return Ze.priority-Xe.priority}),Se}(I=qe(I)),_t=0;_t<tt.length;_t++)this[tt[_t].unit](I[tt[_t].unit]);else if(Lt(this[I=ye(I)]))return this[I](H);return this},nn.startOf=function(I){var H;if((I=ye(I))===void 0||I==="millisecond"||!this.isValid())return this;var tt=this._isUTC?Rr:Aa;switch(I){case"year":H=tt(this.year(),0,1);break;case"quarter":H=tt(this.year(),this.month()-this.month()%3,1);break;case"month":H=tt(this.year(),this.month(),1);break;case"week":H=tt(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":H=tt(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":H=tt(this.year(),this.month(),this.date());break;case"hour":H=this._d.valueOf(),H-=ta(H+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":H=this._d.valueOf(),H-=ta(H,6e4);break;case"second":H=this._d.valueOf(),H-=ta(H,1e3)}return this._d.setTime(H),E.updateOffset(this,!0),this},nn.subtract=pn,nn.toArray=function(){var I=this;return[I.year(),I.month(),I.date(),I.hour(),I.minute(),I.second(),I.millisecond()]},nn.toObject=function(){var I=this;return{years:I.year(),months:I.month(),date:I.date(),hours:I.hours(),minutes:I.minutes(),seconds:I.seconds(),milliseconds:I.milliseconds()}},nn.toDate=function(){return new Date(this.valueOf())},nn.toISOString=function(I){if(!this.isValid())return null;var H=I!==!0,tt=H?this.clone().utc():this;return tt.year()<0||9999<tt.year()?Ge(tt,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Lt(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Ge(tt,"Z")):Ge(tt,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},nn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I="moment",H="";this.isLocal()||(I=this.utcOffset()===0?"moment.utc":"moment.parseZone",H="Z");var tt="["+I+'("]',_t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",te=H+'[")]';return this.format(tt+_t+"-MM-DD[T]HH:mm:ss.SSS"+te)},nn.toJSON=function(){return this.isValid()?this.toISOString():null},nn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},nn.unix=function(){return Math.floor(this.valueOf()/1e3)},nn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},nn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},nn.year=Dn,nn.isLeapYear=function(){return qn(this.year())},nn.weekYear=function(I){return il.call(this,I,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},nn.isoWeekYear=function(I){return il.call(this,I,this.isoWeek(),this.isoWeekday(),1,4)},nn.quarter=nn.quarters=function(I){return I==null?Math.ceil((this.month()+1)/3):this.month(3*(I-1)+this.month()%3)},nn.month=jn,nn.daysInMonth=function(){return un(this.year(),this.month())},nn.week=nn.weeks=function(I){var H=this.localeData().week(this);return I==null?H:this.add(7*(I-H),"d")},nn.isoWeek=nn.isoWeeks=function(I){var H=Tn(this,1,4).week;return I==null?H:this.add(7*(I-H),"d")},nn.weeksInYear=function(){var I=this.localeData()._week;return Nn(this.year(),I.dow,I.doy)},nn.isoWeeksInYear=function(){return Nn(this.year(),1,4)},nn.date=Wl,nn.day=nn.days=function(I){if(!this.isValid())return I!=null?this:NaN;var H,tt,_t=this._isUTC?this._d.getUTCDay():this._d.getDay();return I!=null?(H=I,tt=this.localeData(),I=typeof H!="string"?H:isNaN(H)?typeof(H=tt.weekdaysParse(H))=="number"?H:null:parseInt(H,10),this.add(I-_t,"d")):_t},nn.weekday=function(I){if(!this.isValid())return I!=null?this:NaN;var H=(this.day()+7-this.localeData()._week.dow)%7;return I==null?H:this.add(I-H,"d")},nn.isoWeekday=function(I){if(!this.isValid())return I!=null?this:NaN;if(I==null)return this.day()||7;var H,tt,_t=(H=I,tt=this.localeData(),typeof H=="string"?tt.weekdaysParse(H)%7||7:isNaN(H)?null:H);return this.day(this.day()%7?_t:_t-7)},nn.dayOfYear=function(I){var H=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return I==null?H:this.add(I-H,"d")},nn.hour=nn.hours=yi,nn.minute=nn.minutes=Gl,nn.second=nn.seconds=Vl,nn.millisecond=nn.milliseconds=oo,nn.utcOffset=function(I,H,tt){var _t,te=this._offset||0;if(!this.isValid())return I!=null?this:NaN;if(I==null)return this._isUTC?te:Qi(this);if(typeof I=="string"){if((I=qr(Ke,I))===null)return this}else Math.abs(I)<16&&!tt&&(I*=60);return!this._isUTC&&H&&(_t=Qi(this)),this._offset=I,this._isUTC=!0,_t!=null&&this.add(_t,"m"),te!==I&&(!H||this._changeInProgress?rl(this,di(I-te,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,E.updateOffset(this,!0),this._changeInProgress=null)),this},nn.utc=function(I){return this.utcOffset(0,I)},nn.local=function(I){return this._isUTC&&(this.utcOffset(0,I),this._isUTC=!1,I&&this.subtract(Qi(this),"m")),this},nn.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var I=qr(De,this._i);I!=null?this.utcOffset(I):this.utcOffset(0,!0)}return this},nn.hasAlignedHourOffset=function(I){return!!this.isValid()&&(I=I?Xn(I).utcOffset():0,(this.utcOffset()-I)%60==0)},nn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},nn.isLocal=function(){return!!this.isValid()&&!this._isUTC},nn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},nn.isUtc=Ni,nn.isUTC=Ni,nn.zoneAbbr=function(){return this._isUTC?"UTC":""},nn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},nn.dates=ft("dates accessor is deprecated. Use date instead.",Wl),nn.months=ft("months accessor is deprecated. Use month instead",jn),nn.years=ft("years accessor is deprecated. Use year instead",Dn),nn.zone=ft("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(I,H){return I!=null?(typeof I!="string"&&(I=-I),this.utcOffset(I,H),this):-this.utcOffset()}),nn.isDSTShifted=ft("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!O(this._isDSTShifted))return this._isDSTShifted;var I={};if(at(I,this),(I=bc(I))._a){var H=I._isUTC?K(I._a):Xn(I._a);this._isDSTShifted=this.isValid()&&0<Bt(I._a,H.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Pr=Rt.prototype;function al(I,H,tt,_t){var te=Cr(),Se=K().set(_t,H);return te[tt](Se,I)}function ol(I,H,tt){if(L(I)&&(H=I,I=void 0),I=I||"",H!=null)return al(I,H,tt,"month");var _t,te=[];for(_t=0;_t<12;_t++)te[_t]=al(I,_t,tt,"month");return te}function Xl(I,H,tt,_t){typeof I=="boolean"?L(H)&&(tt=H,H=void 0):(H=I,I=!1,L(tt=H)&&(tt=H,H=void 0)),H=H||"";var te,Se=Cr(),Fe=I?Se._week.dow:0;if(tt!=null)return al(H,(tt+Fe)%7,_t,"day");var Ze=[];for(te=0;te<7;te++)Ze[te]=al(H,(te+Fe)%7,_t,"day");return Ze}Pr.calendar=function(I,H,tt){var _t=this._calendar[I]||this._calendar.sameElse;return Lt(_t)?_t.call(H,tt):_t},Pr.longDateFormat=function(I){var H=this._longDateFormat[I],tt=this._longDateFormat[I.toUpperCase()];return H||!tt?H:(this._longDateFormat[I]=tt.replace(/MMMM|MM|DD|dddd/g,function(_t){return _t.slice(1)}),this._longDateFormat[I])},Pr.invalidDate=function(){return this._invalidDate},Pr.ordinal=function(I){return this._ordinal.replace("%d",I)},Pr.preparse=uh,Pr.postformat=uh,Pr.relativeTime=function(I,H,tt,_t){var te=this._relativeTime[tt];return Lt(te)?te(I,H,tt,_t):te.replace(/%d/i,I)},Pr.pastFuture=function(I,H){var tt=this._relativeTime[0<I?"future":"past"];return Lt(tt)?tt(H):tt.replace(/%s/i,H)},Pr.set=function(I){var H,tt;for(tt in I)Lt(H=I[tt])?this[tt]=H:this["_"+tt]=H;this._config=I,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Pr.months=function(I,H){return I?k(this._months)?this._months[I.month()]:this._months[(this._months.isFormat||Gn).test(H)?"format":"standalone"][I.month()]:k(this._months)?this._months:this._months.standalone},Pr.monthsShort=function(I,H){return I?k(this._monthsShort)?this._monthsShort[I.month()]:this._monthsShort[Gn.test(H)?"format":"standalone"][I.month()]:k(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Pr.monthsParse=function(I,H,tt){var _t,te,Se;if(this._monthsParseExact)return function(Fe,Ze,Xe){var an,hn,Un,Rn=Fe.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],an=0;an<12;++an)Un=K([2e3,an]),this._shortMonthsParse[an]=this.monthsShort(Un,"").toLocaleLowerCase(),this._longMonthsParse[an]=this.months(Un,"").toLocaleLowerCase();return Xe?Ze==="MMM"?(hn=zt.call(this._shortMonthsParse,Rn))!==-1?hn:null:(hn=zt.call(this._longMonthsParse,Rn))!==-1?hn:null:Ze==="MMM"?(hn=zt.call(this._shortMonthsParse,Rn))!==-1||(hn=zt.call(this._longMonthsParse,Rn))!==-1?hn:null:(hn=zt.call(this._longMonthsParse,Rn))!==-1||(hn=zt.call(this._shortMonthsParse,Rn))!==-1?hn:null}.call(this,I,H,tt);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_t=0;_t<12;_t++)if(te=K([2e3,_t]),tt&&!this._longMonthsParse[_t]&&(this._longMonthsParse[_t]=new RegExp("^"+this.months(te,"").replace(".","")+"$","i"),this._shortMonthsParse[_t]=new RegExp("^"+this.monthsShort(te,"").replace(".","")+"$","i")),tt||this._monthsParse[_t]||(Se="^"+this.months(te,"")+"|^"+this.monthsShort(te,""),this._monthsParse[_t]=new RegExp(Se.replace(".",""),"i")),tt&&H==="MMMM"&&this._longMonthsParse[_t].test(I)||tt&&H==="MMM"&&this._shortMonthsParse[_t].test(I)||!tt&&this._monthsParse[_t].test(I))return _t},Pr.monthsRegex=function(I){return this._monthsParseExact?($(this,"_monthsRegex")||zn.call(this),I?this._monthsStrictRegex:this._monthsRegex):($(this,"_monthsRegex")||(this._monthsRegex=On),this._monthsStrictRegex&&I?this._monthsStrictRegex:this._monthsRegex)},Pr.monthsShortRegex=function(I){return this._monthsParseExact?($(this,"_monthsRegex")||zn.call(this),I?this._monthsShortStrictRegex:this._monthsShortRegex):($(this,"_monthsShortRegex")||(this._monthsShortRegex=Pn),this._monthsShortStrictRegex&&I?this._monthsShortStrictRegex:this._monthsShortRegex)},Pr.week=function(I){return Tn(I,this._week.dow,this._week.doy).week},Pr.firstDayOfYear=function(){return this._week.doy},Pr.firstDayOfWeek=function(){return this._week.dow},Pr.weekdays=function(I,H){var tt=k(this._weekdays)?this._weekdays:this._weekdays[I&&I!==!0&&this._weekdays.isFormat.test(H)?"format":"standalone"];return I===!0?Zn(tt,this._week.dow):I?tt[I.day()]:tt},Pr.weekdaysMin=function(I){return I===!0?Zn(this._weekdaysMin,this._week.dow):I?this._weekdaysMin[I.day()]:this._weekdaysMin},Pr.weekdaysShort=function(I){return I===!0?Zn(this._weekdaysShort,this._week.dow):I?this._weekdaysShort[I.day()]:this._weekdaysShort},Pr.weekdaysParse=function(I,H,tt){var _t,te,Se;if(this._weekdaysParseExact)return function(Fe,Ze,Xe){var an,hn,Un,Rn=Fe.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],an=0;an<7;++an)Un=K([2e3,1]).day(an),this._minWeekdaysParse[an]=this.weekdaysMin(Un,"").toLocaleLowerCase(),this._shortWeekdaysParse[an]=this.weekdaysShort(Un,"").toLocaleLowerCase(),this._weekdaysParse[an]=this.weekdays(Un,"").toLocaleLowerCase();return Xe?Ze==="dddd"?(hn=zt.call(this._weekdaysParse,Rn))!==-1?hn:null:Ze==="ddd"?(hn=zt.call(this._shortWeekdaysParse,Rn))!==-1?hn:null:(hn=zt.call(this._minWeekdaysParse,Rn))!==-1?hn:null:Ze==="dddd"?(hn=zt.call(this._weekdaysParse,Rn))!==-1||(hn=zt.call(this._shortWeekdaysParse,Rn))!==-1||(hn=zt.call(this._minWeekdaysParse,Rn))!==-1?hn:null:Ze==="ddd"?(hn=zt.call(this._shortWeekdaysParse,Rn))!==-1||(hn=zt.call(this._weekdaysParse,Rn))!==-1||(hn=zt.call(this._minWeekdaysParse,Rn))!==-1?hn:null:(hn=zt.call(this._minWeekdaysParse,Rn))!==-1||(hn=zt.call(this._weekdaysParse,Rn))!==-1||(hn=zt.call(this._shortWeekdaysParse,Rn))!==-1?hn:null}.call(this,I,H,tt);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_t=0;_t<7;_t++)if(te=K([2e3,1]).day(_t),tt&&!this._fullWeekdaysParse[_t]&&(this._fullWeekdaysParse[_t]=new RegExp("^"+this.weekdays(te,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_t]=new RegExp("^"+this.weekdaysShort(te,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_t]=new RegExp("^"+this.weekdaysMin(te,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_t]||(Se="^"+this.weekdays(te,"")+"|^"+this.weekdaysShort(te,"")+"|^"+this.weekdaysMin(te,""),this._weekdaysParse[_t]=new RegExp(Se.replace(".",""),"i")),tt&&H==="dddd"&&this._fullWeekdaysParse[_t].test(I)||tt&&H==="ddd"&&this._shortWeekdaysParse[_t].test(I)||tt&&H==="dd"&&this._minWeekdaysParse[_t].test(I)||!tt&&this._weekdaysParse[_t].test(I))return _t},Pr.weekdaysRegex=function(I){return this._weekdaysParseExact?($(this,"_weekdaysRegex")||br.call(this),I?this._weekdaysStrictRegex:this._weekdaysRegex):($(this,"_weekdaysRegex")||(this._weekdaysRegex=_n),this._weekdaysStrictRegex&&I?this._weekdaysStrictRegex:this._weekdaysRegex)},Pr.weekdaysShortRegex=function(I){return this._weekdaysParseExact?($(this,"_weekdaysRegex")||br.call(this),I?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):($(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xi),this._weekdaysShortStrictRegex&&I?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Pr.weekdaysMinRegex=function(I){return this._weekdaysParseExact?($(this,"_weekdaysRegex")||br.call(this),I?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):($(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kr),this._weekdaysMinStrictRegex&&I?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Pr.isPM=function(I){return(I+"").toLowerCase().charAt(0)==="p"},Pr.meridiem=function(I,H,tt){return 11<I?tt?"pm":"PM":tt?"am":"AM"},wi("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(I){var H=I%10;return I+(yt(I%100/10)===1?"th":H===1?"st":H===2?"nd":H===3?"rd":"th")}}),E.lang=ft("moment.lang is deprecated. Use moment.locale instead.",wi),E.langData=ft("moment.langData is deprecated. Use moment.localeData instead.",Cr);var Va=Math.abs;function Li(I,H,tt,_t){var te=di(H,tt);return I._milliseconds+=_t*te._milliseconds,I._days+=_t*te._days,I._months+=_t*te._months,I._bubble()}function xc(I){return I<0?Math.floor(I):Math.ceil(I)}function hh(I){return 4800*I/146097}function Kl(I){return 146097*I/4800}function Ro(I){return function(){return this.as(I)}}var fh=Ro("ms"),Q1=Ro("s"),Wd=Ro("m"),t0=Ro("h"),e0=Ro("d"),Oa=Ro("w"),n0=Ro("M"),dh=Ro("Q"),ph=Ro("y");function Bo(I){return function(){return this.isValid()?this._data[I]:NaN}}var sl=Bo("milliseconds"),so=Bo("seconds"),cl=Bo("minutes"),Ra=Bo("hours"),Ps=Bo("days"),Jl=Bo("months"),Fo=Bo("years"),ea=Math.round,ki={ss:44,s:45,m:45,h:22,d:26,M:11},co=Math.abs;function Za(I){return(0<I)-(I<0)||+I}function pa(){if(!this.isValid())return this.localeData().invalidDate();var I,H,tt=co(this._milliseconds)/1e3,_t=co(this._days),te=co(this._months);H=Nt((I=Nt(tt/60))/60),tt%=60,I%=60;var Se=Nt(te/12),Fe=te%=12,Ze=_t,Xe=H,an=I,hn=tt?tt.toFixed(3).replace(/\.?0+$/,""):"",Un=this.asSeconds();if(!Un)return"P0D";var Rn=Un<0?"-":"",xr=Za(this._months)!==Za(Un)?"-":"",Tr=Za(this._days)!==Za(Un)?"-":"",Ur=Za(this._milliseconds)!==Za(Un)?"-":"";return Rn+"P"+(Se?xr+Se+"Y":"")+(Fe?xr+Fe+"M":"")+(Ze?Tr+Ze+"D":"")+(Xe||an||hn?"T":"")+(Xe?Ur+Xe+"H":"")+(an?Ur+an+"M":"")+(hn?Ur+hn+"S":"")}var sr=Ji.prototype;return sr.isValid=function(){return this._isValid},sr.abs=function(){var I=this._data;return this._milliseconds=Va(this._milliseconds),this._days=Va(this._days),this._months=Va(this._months),I.milliseconds=Va(I.milliseconds),I.seconds=Va(I.seconds),I.minutes=Va(I.minutes),I.hours=Va(I.hours),I.months=Va(I.months),I.years=Va(I.years),this},sr.add=function(I,H){return Li(this,I,H,1)},sr.subtract=function(I,H){return Li(this,I,H,-1)},sr.as=function(I){if(!this.isValid())return NaN;var H,tt,_t=this._milliseconds;if((I=ye(I))==="month"||I==="quarter"||I==="year")switch(H=this._days+_t/864e5,tt=this._months+hh(H),I){case"month":return tt;case"quarter":return tt/3;case"year":return tt/12}else switch(H=this._days+Math.round(Kl(this._months)),I){case"week":return H/7+_t/6048e5;case"day":return H+_t/864e5;case"hour":return 24*H+_t/36e5;case"minute":return 1440*H+_t/6e4;case"second":return 86400*H+_t/1e3;case"millisecond":return Math.floor(864e5*H)+_t;default:throw new Error("Unknown unit "+I)}},sr.asMilliseconds=fh,sr.asSeconds=Q1,sr.asMinutes=Wd,sr.asHours=t0,sr.asDays=e0,sr.asWeeks=Oa,sr.asMonths=n0,sr.asQuarters=dh,sr.asYears=ph,sr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*yt(this._months/12):NaN},sr._bubble=function(){var I,H,tt,_t,te,Se=this._milliseconds,Fe=this._days,Ze=this._months,Xe=this._data;return 0<=Se&&0<=Fe&&0<=Ze||Se<=0&&Fe<=0&&Ze<=0||(Se+=864e5*xc(Kl(Ze)+Fe),Ze=Fe=0),Xe.milliseconds=Se%1e3,I=Nt(Se/1e3),Xe.seconds=I%60,H=Nt(I/60),Xe.minutes=H%60,tt=Nt(H/60),Xe.hours=tt%24,Ze+=te=Nt(hh(Fe+=Nt(tt/24))),Fe-=xc(Kl(te)),_t=Nt(Ze/12),Ze%=12,Xe.days=Fe,Xe.months=Ze,Xe.years=_t,this},sr.clone=function(){return di(this)},sr.get=function(I){return I=ye(I),this.isValid()?this[I+"s"]():NaN},sr.milliseconds=sl,sr.seconds=so,sr.minutes=cl,sr.hours=Ra,sr.days=Ps,sr.weeks=function(){return Nt(this.days()/7)},sr.months=Jl,sr.years=Fo,sr.humanize=function(I){if(!this.isValid())return this.localeData().invalidDate();var H,tt,_t,te,Se,Fe,Ze,Xe,an,hn,Un=this.localeData(),Rn=(H=!I,tt=Un,_t=di(this).abs(),te=ea(_t.as("s")),Se=ea(_t.as("m")),Fe=ea(_t.as("h")),Ze=ea(_t.as("d")),Xe=ea(_t.as("M")),an=ea(_t.as("y")),(hn=te<=ki.ss&&["s",te]||te<ki.s&&["ss",te]||Se<=1&&["m"]||Se<ki.m&&["mm",Se]||Fe<=1&&["h"]||Fe<ki.h&&["hh",Fe]||Ze<=1&&["d"]||Ze<ki.d&&["dd",Ze]||Xe<=1&&["M"]||Xe<ki.M&&["MM",Xe]||an<=1&&["y"]||["yy",an])[2]=H,hn[3]=0<+this,hn[4]=tt,function(xr,Tr,Ur,_r,Ba){return Ba.relativeTime(Tr||1,!!Ur,xr,_r)}.apply(null,hn));return I&&(Rn=Un.pastFuture(+this,Rn)),Un.postformat(Rn)},sr.toISOString=pa,sr.toString=pa,sr.toJSON=pa,sr.locale=rr,sr.localeData=Gr,sr.toIsoString=ft("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pa),sr.lang=Wr,be("X",0,0,"unix"),be("x",0,0,"valueOf"),Oe("x",ln),Oe("X",/[+-]?\d+(\.\d{1,3})?/),$e("X",function(I,H,tt){tt._d=new Date(1e3*parseFloat(I,10))}),$e("x",function(I,H,tt){tt._d=new Date(yt(I))}),E.version="2.24.0",b=Xn,E.fn=nn,E.min=function(){return Hr("isBefore",[].slice.call(arguments,0))},E.max=function(){return Hr("isAfter",[].slice.call(arguments,0))},E.now=function(){return Date.now?Date.now():+new Date},E.utc=K,E.unix=function(I){return Xn(1e3*I)},E.months=function(I,H){return ol(I,H,"months")},E.isDate=F,E.locale=wi,E.invalid=J,E.duration=di,E.isMoment=qt,E.weekdays=function(I,H,tt){return Xl(I,H,tt,"weekdays")},E.parseZone=function(){return Xn.apply(null,arguments).parseZone()},E.localeData=Cr,E.isDuration=Bi,E.monthsShort=function(I,H){return ol(I,H,"monthsShort")},E.weekdaysMin=function(I,H,tt){return Xl(I,H,tt,"weekdaysMin")},E.defineLocale=io,E.updateLocale=function(I,H){if(H!=null){var tt,_t,te=ei;(_t=hi(I))!=null&&(te=_t._config),(tt=new Rt(H=V(te,H))).parentLocale=mr[I],mr[I]=tt,wi(I)}else mr[I]!=null&&(mr[I].parentLocale!=null?mr[I]=mr[I].parentLocale:mr[I]!=null&&delete mr[I]);return mr[I]},E.locales=function(){return rt(mr)},E.weekdaysShort=function(I,H,tt){return Xl(I,H,tt,"weekdaysShort")},E.normalizeUnits=ye,E.relativeTimeRounding=function(I){return I===void 0?ea:typeof I=="function"&&(ea=I,!0)},E.relativeTimeThreshold=function(I,H){return ki[I]!==void 0&&(H===void 0?ki[I]:(ki[I]=H,I==="s"&&(ki.ss=H-1),!0))},E.calendarFormat=function(I,H){var tt=I.diff(H,"days",!0);return tt<-6?"sameElse":tt<-1?"lastWeek":tt<0?"lastDay":tt<1?"sameDay":tt<2?"nextDay":tt<7?"nextWeek":"sameElse"},E.prototype=nn,E.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},E}()},6470:p=>{function T(g){if(typeof g!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(g))}function f(g,E){for(var k,M="",O=0,L=-1,F=0,P=0;P<=g.length;++P){if(P<g.length)k=g.charCodeAt(P);else{if(k===47)break;k=47}if(k===47){if(!(L===P-1||F===1))if(L!==P-1&&F===2){if(M.length<2||O!==2||M.charCodeAt(M.length-1)!==46||M.charCodeAt(M.length-2)!==46){if(M.length>2){var $=M.lastIndexOf("/");if($!==M.length-1){$===-1?(M="",O=0):O=(M=M.slice(0,$)).length-1-M.lastIndexOf("/"),L=P,F=0;continue}}else if(M.length===2||M.length===1){M="",O=0,L=P,F=0;continue}}E&&(M.length>0?M+="/..":M="..",O=2)}else M.length>0?M+="/"+g.slice(L+1,P):M=g.slice(L+1,P),O=P-L-1;L=P,F=0}else k===46&&F!==-1?++F:F=-1}return M}var b={resolve:function(){for(var g,E="",k=!1,M=arguments.length-1;M>=-1&&!k;M--){var O;M>=0?O=arguments[M]:(g===void 0&&(g=process.cwd()),O=g),T(O),O.length!==0&&(E=O+"/"+E,k=O.charCodeAt(0)===47)}return E=f(E,!k),k?E.length>0?"/"+E:"/":E.length>0?E:"."},normalize:function(g){if(T(g),g.length===0)return".";var E=g.charCodeAt(0)===47,k=g.charCodeAt(g.length-1)===47;return(g=f(g,!E)).length!==0||E||(g="."),g.length>0&&k&&(g+="/"),E?"/"+g:g},isAbsolute:function(g){return T(g),g.length>0&&g.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var g,E=0;E<arguments.length;++E){var k=arguments[E];T(k),k.length>0&&(g===void 0?g=k:g+="/"+k)}return g===void 0?".":b.normalize(g)},relative:function(g,E){if(T(g),T(E),g===E||(g=b.resolve(g))===(E=b.resolve(E)))return"";for(var k=1;k<g.length&&g.charCodeAt(k)===47;++k);for(var M=g.length,O=M-k,L=1;L<E.length&&E.charCodeAt(L)===47;++L);for(var F=E.length-L,P=O<F?O:F,$=-1,W=0;W<=P;++W){if(W===P){if(F>P){if(E.charCodeAt(L+W)===47)return E.slice(L+W+1);if(W===0)return E.slice(L+W)}else O>P&&(g.charCodeAt(k+W)===47?$=W:W===0&&($=0));break}var K=g.charCodeAt(k+W);if(K!==E.charCodeAt(L+W))break;K===47&&($=W)}var nt="";for(W=k+$+1;W<=M;++W)W!==M&&g.charCodeAt(W)!==47||(nt.length===0?nt+="..":nt+="/..");return nt.length>0?nt+E.slice(L+$):(L+=$,E.charCodeAt(L)===47&&++L,E.slice(L))},_makeLong:function(g){return g},dirname:function(g){if(T(g),g.length===0)return".";for(var E=g.charCodeAt(0),k=E===47,M=-1,O=!0,L=g.length-1;L>=1;--L)if((E=g.charCodeAt(L))===47){if(!O){M=L;break}}else O=!1;return M===-1?k?"/":".":k&&M===1?"//":g.slice(0,M)},basename:function(g,E){if(E!==void 0&&typeof E!="string")throw new TypeError('"ext" argument must be a string');T(g);var k,M=0,O=-1,L=!0;if(E!==void 0&&E.length>0&&E.length<=g.length){if(E.length===g.length&&E===g)return"";var F=E.length-1,P=-1;for(k=g.length-1;k>=0;--k){var $=g.charCodeAt(k);if($===47){if(!L){M=k+1;break}}else P===-1&&(L=!1,P=k+1),F>=0&&($===E.charCodeAt(F)?--F==-1&&(O=k):(F=-1,O=P))}return M===O?O=P:O===-1&&(O=g.length),g.slice(M,O)}for(k=g.length-1;k>=0;--k)if(g.charCodeAt(k)===47){if(!L){M=k+1;break}}else O===-1&&(L=!1,O=k+1);return O===-1?"":g.slice(M,O)},extname:function(g){T(g);for(var E=-1,k=0,M=-1,O=!0,L=0,F=g.length-1;F>=0;--F){var P=g.charCodeAt(F);if(P!==47)M===-1&&(O=!1,M=F+1),P===46?E===-1?E=F:L!==1&&(L=1):E!==-1&&(L=-1);else if(!O){k=F+1;break}}return E===-1||M===-1||L===0||L===1&&E===M-1&&E===k+1?"":g.slice(E,M)},format:function(g){if(g===null||typeof g!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof g);return function(E,k){var M=k.dir||k.root,O=k.base||(k.name||"")+(k.ext||"");return M?M===k.root?M+O:M+"/"+O:O}(0,g)},parse:function(g){T(g);var E={root:"",dir:"",base:"",ext:"",name:""};if(g.length===0)return E;var k,M=g.charCodeAt(0),O=M===47;O?(E.root="/",k=1):k=0;for(var L=-1,F=0,P=-1,$=!0,W=g.length-1,K=0;W>=k;--W)if((M=g.charCodeAt(W))!==47)P===-1&&($=!1,P=W+1),M===46?L===-1?L=W:K!==1&&(K=1):L!==-1&&(K=-1);else if(!$){F=W+1;break}return L===-1||P===-1||K===0||K===1&&L===P-1&&L===F+1?P!==-1&&(E.base=E.name=F===0&&O?g.slice(1,P):g.slice(F,P)):(F===0&&O?(E.name=g.slice(1,L),E.base=g.slice(1,P)):(E.name=g.slice(F,L),E.base=g.slice(F,P)),E.ext=g.slice(L,P)),F>0?E.dir=g.slice(0,F-1):O&&(E.dir="/"),E},sep:"/",delimiter:":",win32:null,posix:null};b.posix=b,p.exports=b},555:()=>{},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{}},e={};function n(p){var T=e[p];if(T!==void 0)return T.exports;var f=e[p]={id:p,loaded:!1,exports:{}};return t[p].call(f.exports,f,f.exports,n),f.loaded=!0,f.exports}n.c=e,n.n=p=>{var T=p&&p.__esModule?()=>p.default:()=>p;return n.d(T,{a:T}),T},n.d=(p,T)=>{for(var f in T)n.o(T,f)&&!n.o(p,f)&&Object.defineProperty(p,f,{enumerable:!0,get:T[f]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(p,T)=>Object.prototype.hasOwnProperty.call(p,T),n.r=p=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})},n.nmd=p=>(p.paths=[],p.children||(p.children=[]),p);var r=n(n.s=1689).Z;const defaultState={code:`graph TD
|
|
A[Christmas] -->|Get money| B(Go shopping)
|
|
B --> C{Let me think}
|
|
C -->|One| D[Laptop]
|
|
C -->|Two| E[iPhone]
|
|
C -->|Three| F[fa:fa-car Car]
|
|
`,mermaid:JSON.stringify({theme:"default"},null,2),updateEditor:!1,autoSync:!0,updateDiagram:!0},urlParseFailedState=`graph TD
|
|
A[Loading URL failed. We can try to figure out why.] -->|Decode JSON| B(Please check the console to see the JSON and error details.)
|
|
B --> C{Is the JSON correct?}
|
|
C -->|Yes| D(Please Click here to Raise an issue in github.<br/>Including the broken link in the issue <br/> will speed up the fix.)
|
|
C -->|No| E{Did someone <br/>send you this link?}
|
|
E -->|Yes| F[Ask them to send <br/>you the complete link]
|
|
E -->|No| G{Did you copy <br/> the complete URL?}
|
|
G --> |Yes| D
|
|
G --> |"No :("| H(Try using the Timeline tab in History <br/>from same browser you used to create the diagram.)
|
|
click D href "https://github.com/mermaid-js/mermaid-live-editor/issues/new?assignees=&labels=bug&template=bug_report.md&title=Broken%20link" "Raise issue"`,inputStateStore=persist(writable(defaultState),localStorage(),"codeStore"),stateStore=derived([inputStateStore],([p])=>{const T=qd(lh({},p),{serialized:"",errorMarkers:[],error:void 0});try{T.serialized=serializeState(p),r.parse(p.code),JSON.parse(p.mermaid)}catch(f){if(T.error=f,console.error(f),f.hash)try{const b={severity:8,startLineNumber:f.hash.loc.first_line,startColumn:f.hash.loc.first_column,endLineNumber:f.hash.loc.last_line,endColumn:f.hash.loc.last_column+1,message:f.str};T.errorMarkers=[b]}catch(b){console.error("Error without line helper",b)}}return T}),loadState=p=>{let T;console.log("Loading",p);try{T=deserializeState(p);const f=typeof T.mermaid=="string"?JSON.parse(T.mermaid):T.mermaid;f.securityLevel&&f.securityLevel!=="strict"&&confirm(`Removing "securityLevel":"${f.securityLevel}" from the config for safety.
|
|
Click Cancel if you trust the source of this Diagram.`)&&delete f.securityLevel,T.mermaid=JSON.stringify(f,null,2)}catch(f){T=get_store_value(inputStateStore),p&&(console.error("Init error",f),T.code=urlParseFailedState,T.mermaid=defaultState.mermaid)}updateCodeStore(qd(lh({},T),{updateEditor:!0}))},updateCodeStore=p=>{inputStateStore.update(T=>lh(lh({},T),p))};let prompted=!1;const updateCode=(p,{updateEditor:T,updateDiagram:f=!1})=>{if(saveStatistics(p),(p.match(/\n/g)||"").length+1>50&&!prompted&&get_store_value(stateStore).autoSync){const g=confirm("Long diagram detected. Turn off Auto Sync? Click the sync logo to manually sync.");prompted=!0,g&&updateCodeStore({autoSync:!1})}inputStateStore.update(g=>qd(lh({},g),{code:p,updateEditor:T,updateDiagram:f}))},updateConfig=(p,T)=>{inputStateStore.update(f=>qd(lh({},f),{mermaid:p,updateEditor:T}))},toggleDarkTheme=p=>{inputStateStore.update(T=>{const f=JSON.parse(T.mermaid);return(!f.theme||["dark","default"].includes(f.theme))&&(f.theme=p?"dark":"default"),qd(lh({},T),{mermaid:JSON.stringify(f,null,2),updateEditor:!0})})},initURLSubscription=()=>{stateStore.subscribe(({serialized:p})=>{history.replaceState(void 0,void 0,`#${p}`)})},getStateString=()=>JSON.stringify(get_store_value(inputStateStore));export{localStorage as a,analytics as b,pakoSerde as c,updateConfig as d,encode as e,defaultState as f,getStateString as g,updateCodeStore as h,inputStateStore as i,initLoading as j,initURLSubscription as k,loadingStateStore as l,initAnalytics as m,loadState as n,persist as p,r,stateStore as s,toggleDarkTheme as t,updateCode as u};
|