1262 lines
1.2 MiB
Plaintext
1262 lines
1.2 MiB
Plaintext
import{A as writable,I as derived,B as get_store_value}from"./index-9ccab77c.js";import{_ as __vitePreload}from"./preload-helper-aa6bc0ce.js";const defaultLoading={loading:!1},loadingStateStore=writable(defaultLoading),initLoading=async(f,v)=>{loadingStateStore.set({loading:!0,message:f});const d=await v;return loadingStateStore.set({loading:!1}),d};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}function getAugmentedNamespace(f){var v=f.default;if(typeof v=="function"){var d=function(){return v.apply(this,arguments)};d.prototype=v.prototype}else d={};return Object.defineProperty(d,"__esModule",{value:!0}),Object.keys(f).forEach(function(_){var p=Object.getOwnPropertyDescriptor(f,_);Object.defineProperty(d,_,p.get?p:{enumerable:!0,get:function(){return f[_]}})}),d}var bundle={};(function(exports){(function(f,v){for(var d in v)f[d]=v[d];v.__esModule&&Object.defineProperty(f,"__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<"u"&&process.release.name==="node"&&(Module=eval("require")("module"));var ESSerializer=function(){function f(){}return f.throwErrorIfInNonNodeEnvironment=function(){if(!Module)throw new Error("Cannot intercept require in non-Node environment.")},f.interceptRequire=function(){this.isRequireIntercepted||(this.isRequireIntercepted=!0,this.throwErrorIfInNonNodeEnvironment(),f.originRequire=Module.prototype.require,Module.prototype.require=function(){var v=f.originRequire.apply(this,arguments),d=v.name;return f.requiredClasses[d]||(f.requiredClasses[d]=v),v})},f.stopInterceptRequire=function(){this.throwErrorIfInNonNodeEnvironment(),Module.prototype.require=f.originRequire,this.isRequireIntercepted=!1},f.isInterceptingRequire=function(){return this.isRequireIntercepted},f.getRequiredClasses=function(){return this.requiredClasses},f.clearRequiredClasses=function(){this.requiredClasses={}},f.registerClass=function(v){this.registeredClasses.push(v)},f.registerClasses=function(v){this.registeredClasses=this.registeredClasses.concat(v)},f.clearRegisteredClasses=function(){this.registeredClasses=[]},f.serialize=function(v,d){return d===void 0&&(d={}),JSON.stringify(serializer_1.getSerializeValueWithClassName(v,d))},f.deserialize=function(v,d,_){return d===void 0&&(d=[]),_===void 0&&(_={}),deserializer_1.deserializeFromParsedObj(JSON.parse(v),Object.values(this.requiredClasses).concat(this.registeredClasses).concat(d),_)},f.originRequire=null,f.isRequireIntercepted=!1,f.requiredClasses={},f.registeredClasses=[],f}();module.exports=ESSerializer},917:function(f,v){var d=this&&this.__spreadArrays||function(){for(var At=0,Mt=0,Gt=arguments.length;Mt<Gt;Mt++)At+=arguments[Mt].length;var me=Array(At),Ze=0;for(Mt=0;Mt<Gt;Mt++)for(var Ee=arguments[Mt],pe=0,we=Ee.length;pe<we;pe++,Ze++)me[Ze]=Ee[pe];return me};Object.defineProperty(v,"__esModule",{value:!0}),v.TO_STRING_FIELD=v.TIMESTAMP_FIELD=v.OPTIONS_FIELD=v.CLASS_NAME_FIELD=v.BOOLEAN_FIELD=v.ARRAY_FIELD=v.BUILTIN_TYPE_UNDEFINED=v.BUILTIN_TYPE_NOT_FINITE=v.BUILTIN_TYPE_BIG_INT=v.BUILTIN_CLASS_AGGREGATE_ERROR=v.BUILTIN_CLASS_URI_ERROR=v.BUILTIN_CLASS_TYPE_ERROR=v.BUILTIN_CLASS_SYNTAX_ERROR=v.BUILTIN_CLASS_REFERENCE_ERROR=v.BUILTIN_CLASS_RANGE_ERROR=v.BUILTIN_CLASS_EVAL_ERROR=v.BUILTIN_CLASS_ERROR=v.BUILTIN_CLASS_STRING=v.BUILTIN_CLASS_SET=v.BUILTIN_CLASS_REGEXP=v.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT=v.BUILTIN_CLASS_INTL_PLURALRULES=v.BUILTIN_CLASS_INTL_NUMBERFORMAT=v.BUILTIN_CLASS_INTL_LOCALE=v.BUILTIN_CLASS_INTL_LISTFORMAT=v.BUILTIN_CLASS_INTL_DATETIMEFORMAT=v.BUILTIN_CLASS_INTL_COLLATOR=v.BUILTIN_CLASS_DATE=v.BUILTIN_CLASS_DATAVIEW=v.BUILTIN_CLASS_BOOLEAN=v.BUILTIN_CLASS_SHAREDARRAYBUFFER=v.BUILTIN_CLASS_ARRAYBUFFER=v.BUILTIN_CLASS_BIGUINT64ARRAY=v.BUILTIN_CLASS_BIGINT64ARRAY=v.BUILTIN_CLASS_FLOAT64ARRAY=v.BUILTIN_CLASS_FLOAT32ARRAY=v.BUILTIN_CLASS_UINT32ARRAY=v.BUILTIN_CLASS_INT32ARRAY=v.BUILTIN_CLASS_UINT16ARRAY=v.BUILTIN_CLASS_INT16ARRAY=v.BUILTIN_CLASS_UINT8CLAMPEDARRAY=v.BUILTIN_CLASS_UINT8ARRAY=v.BUILTIN_CLASS_INT8ARRAY=v.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED=v.ALL_BUILTIN_INTLS=v.ALL_BUILTIN_ERRORS=v.ALL_BUILTIN_ARRAYS=v.ESSERIALIZER_NULL=void 0,v.ESSERIALIZER_NULL="__ESSERIALIZER_NULL__",v.ARRAY_FIELD="ess_arr",v.BOOLEAN_FIELD="ess_bool",v.CLASS_NAME_FIELD="ess_cn",v.OPTIONS_FIELD="ess_opt",v.TIMESTAMP_FIELD="ess_ts",v.TO_STRING_FIELD="ess_str";var _="Int8Array";v.BUILTIN_CLASS_INT8ARRAY=_;var p="Uint8Array";v.BUILTIN_CLASS_UINT8ARRAY=p;var x="Uint8ClampedArray";v.BUILTIN_CLASS_UINT8CLAMPEDARRAY=x;var b="Int16Array";v.BUILTIN_CLASS_INT16ARRAY=b;var A="Uint16Array";v.BUILTIN_CLASS_UINT16ARRAY=A;var O="Int32Array";v.BUILTIN_CLASS_INT32ARRAY=O;var T="Uint32Array";v.BUILTIN_CLASS_UINT32ARRAY=T;var R="Float32Array";v.BUILTIN_CLASS_FLOAT32ARRAY=R;var F="Float64Array";v.BUILTIN_CLASS_FLOAT64ARRAY=F;var U="BigInt64Array";v.BUILTIN_CLASS_BIGINT64ARRAY=U;var q="BigUint64Array";v.BUILTIN_CLASS_BIGUINT64ARRAY=q,v.BUILTIN_CLASS_ARRAYBUFFER="ArrayBuffer",v.BUILTIN_CLASS_SHAREDARRAYBUFFER="SharedArrayBuffer",v.BUILTIN_CLASS_BOOLEAN="Boolean",v.BUILTIN_CLASS_DATAVIEW="DataView",v.BUILTIN_CLASS_DATE="Date";var Q="Collator";v.BUILTIN_CLASS_INTL_COLLATOR=Q;var nt="DateTimeFormat";v.BUILTIN_CLASS_INTL_DATETIMEFORMAT=nt;var ft="ListFormat";v.BUILTIN_CLASS_INTL_LISTFORMAT=ft,v.BUILTIN_CLASS_INTL_LOCALE="Locale";var J="NumberFormat";v.BUILTIN_CLASS_INTL_NUMBERFORMAT=J;var bt="PluralRules";v.BUILTIN_CLASS_INTL_PLURALRULES=bt;var ot="RelativeTimeFormat";v.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT=ot,v.BUILTIN_CLASS_REGEXP="RegExp",v.BUILTIN_CLASS_SET="Set";var st="String";v.BUILTIN_CLASS_STRING=st;var vt="Error";v.BUILTIN_CLASS_ERROR=vt;var Ut="EvalError";v.BUILTIN_CLASS_EVAL_ERROR=Ut;var St="RangeError";v.BUILTIN_CLASS_RANGE_ERROR=St;var _t="ReferenceError";v.BUILTIN_CLASS_REFERENCE_ERROR=_t;var It="SyntaxError";v.BUILTIN_CLASS_SYNTAX_ERROR=It;var wt="TypeError";v.BUILTIN_CLASS_TYPE_ERROR=wt;var yt="URIError";v.BUILTIN_CLASS_URI_ERROR=yt;var rt="AggregateError";v.BUILTIN_CLASS_AGGREGATE_ERROR=rt,v.BUILTIN_TYPE_BIG_INT="BI",v.BUILTIN_TYPE_NOT_FINITE="NF",v.BUILTIN_TYPE_UNDEFINED="UD";var pt=[_,p,x,b,A,O,T,R,F,U,q];v.ALL_BUILTIN_ARRAYS=pt;var W=[vt,Ut,St,_t,It,wt,yt,rt];v.ALL_BUILTIN_ERRORS=W;var kt=[Q,nt,ft,J,bt,ot];v.ALL_BUILTIN_INTLS=kt;var G=d([st],pt);v.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED=G},496:function(f,v,d){var _=this&&this.__spreadArrays||function(){for(var J=0,bt=0,ot=arguments.length;bt<ot;bt++)J+=arguments[bt].length;var st=Array(J),vt=0;for(bt=0;bt<ot;bt++)for(var Ut=arguments[bt],St=0,_t=Ut.length;St<_t;St++,vt++)st[vt]=Ut[St];return st};Object.defineProperty(v,"__esModule",{value:!0}),v.getParentClassName=v.getClassMappingFromClassArray=v.deserializeFromParsedObjWithClassMapping=v.deserializeFromParsedObj=void 0;var p=d(821),x=d(917),b=/^\s*class\s+/;function A(J,bt,ot){if(ot===void 0&&(ot={}),p.notObject(J))return J;if(Array.isArray(J))return O(J,bt);var st=J[x.CLASS_NAME_FIELD],vt=function(St,_t,It){switch(St){case x.BUILTIN_CLASS_INT8ARRAY:return T(_t[x.ARRAY_FIELD],Int8Array);case x.BUILTIN_CLASS_UINT8ARRAY:return T(_t[x.ARRAY_FIELD],Uint8Array);case x.BUILTIN_CLASS_UINT8CLAMPEDARRAY:return T(_t[x.ARRAY_FIELD],Uint8ClampedArray);case x.BUILTIN_CLASS_INT16ARRAY:return T(_t[x.ARRAY_FIELD],Int16Array);case x.BUILTIN_CLASS_UINT16ARRAY:return T(_t[x.ARRAY_FIELD],Uint16Array);case x.BUILTIN_CLASS_INT32ARRAY:return T(_t[x.ARRAY_FIELD],Int32Array);case x.BUILTIN_CLASS_UINT32ARRAY:return T(_t[x.ARRAY_FIELD],Uint32Array);case x.BUILTIN_CLASS_FLOAT32ARRAY:return T(_t[x.ARRAY_FIELD],Float32Array);case x.BUILTIN_CLASS_FLOAT64ARRAY:return T(_t[x.ARRAY_FIELD],Float64Array);case x.BUILTIN_CLASS_BIGINT64ARRAY:return R(_t[x.ARRAY_FIELD],BigInt64Array);case x.BUILTIN_CLASS_BIGUINT64ARRAY:return R(_t[x.ARRAY_FIELD],BigUint64Array);case x.BUILTIN_TYPE_BIG_INT:return F(_t[x.TO_STRING_FIELD]);case x.BUILTIN_TYPE_UNDEFINED:return;case x.BUILTIN_TYPE_NOT_FINITE:return p.getValueFromToStringResult(_t[x.TO_STRING_FIELD]);case x.BUILTIN_CLASS_ARRAYBUFFER:return wt=_t[x.ARRAY_FIELD],new Uint8Array(wt).buffer;case x.BUILTIN_CLASS_SHAREDARRAYBUFFER:return function(yt){var rt=new SharedArrayBuffer(yt.length),pt=new Uint8Array(rt);return yt.forEach(function(W,kt){pt[kt]=W}),rt}(_t[x.ARRAY_FIELD]);case x.BUILTIN_CLASS_BOOLEAN:return function(yt){return new Boolean(yt[x.BOOLEAN_FIELD])}(_t);case x.BUILTIN_CLASS_DATAVIEW:return function(yt){return new DataView(new Uint8Array(yt).buffer)}(_t[x.ARRAY_FIELD]);case x.BUILTIN_CLASS_DATE:return function(yt){return typeof yt[x.TIMESTAMP_FIELD]=="number"?new Date(yt[x.TIMESTAMP_FIELD]):null}(_t);case x.BUILTIN_CLASS_INTL_COLLATOR:return U(_t,Intl.Collator);case x.BUILTIN_CLASS_INTL_DATETIMEFORMAT:return U(_t,Intl.DateTimeFormat);case x.BUILTIN_CLASS_INTL_LISTFORMAT:return U(_t,Intl.ListFormat);case x.BUILTIN_CLASS_INTL_LOCALE:return new Intl.Locale(_t[x.TO_STRING_FIELD]);case x.BUILTIN_CLASS_INTL_NUMBERFORMAT:return U(_t,Intl.NumberFormat);case x.BUILTIN_CLASS_INTL_PLURALRULES:return U(_t,Intl.PluralRules);case x.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT:return U(_t,Intl.RelativeTimeFormat);case x.BUILTIN_CLASS_REGEXP:return function(yt){var rt=yt[x.TO_STRING_FIELD],pt=rt.lastIndexOf("/");return new RegExp(rt.substring(1,pt),rt.substring(pt+1))}(_t);case x.BUILTIN_CLASS_SET:return function(yt,rt){return new Set(O(yt[x.ARRAY_FIELD],rt))}(_t,It);case x.BUILTIN_CLASS_STRING:return function(yt){return new String(yt[x.TO_STRING_FIELD])}(_t);case x.BUILTIN_CLASS_ERROR:return q(_t,Error);case x.BUILTIN_CLASS_EVAL_ERROR:return q(_t,EvalError);case x.BUILTIN_CLASS_RANGE_ERROR:return q(_t,RangeError);case x.BUILTIN_CLASS_REFERENCE_ERROR:return q(_t,ReferenceError);case x.BUILTIN_CLASS_SYNTAX_ERROR:return q(_t,SyntaxError);case x.BUILTIN_CLASS_TYPE_ERROR:return q(_t,TypeError);case x.BUILTIN_CLASS_URI_ERROR:return q(_t,URIError);case x.BUILTIN_CLASS_AGGREGATE_ERROR:return q(_t,AggregateError);default:return x.ESSERIALIZER_NULL}var wt}(st,J,bt);if(vt!==x.ESSERIALIZER_NULL)return vt;if(st&&!bt[st])throw new Error("Class "+st+" not found");var Ut=[];return ot.fieldsForConstructorParameters&&(Ut=ot.fieldsForConstructorParameters.map(function(St){return St in J?J[St]:{}})),function(St,_t,It,wt){for(var yt in _t){var rt=_t[yt];if(!wt.ignoreProperties||!wt.ignoreProperties.includes(yt))if(wt.rawProperties&&wt.rawProperties.includes(yt))St[yt]=JSON.stringify(rt);else{var pt=Object.getOwnPropertyDescriptor(St,yt);W=rt,kt=pt,yt===x.CLASS_NAME_FIELD||kt&&(typeof kt.set=="function"||kt.writable===!1&&typeof W!="object")||(pt&&pt.writable===!1&&typeof rt=="object"?nt(St[yt],rt,It):St[yt]=A(rt,It))}}var W,kt;return St}(function(St,_t){var It={};if(!St)return It;var wt=St.length-_t.length;if(wt>0&&(_t=_t.concat(Array.from(Array(wt),function(){return{}}))),b.test(St.toString()))try{It=new(St.bind.apply(St,_([void 0],_t)))}catch{Q(St.name),It={},Object.setPrototypeOf(It,St?St.prototype:Object.prototype)}else{It=Object.create(St.prototype.constructor.prototype);try{St.prototype.constructor.call(It,_t)}catch{Q(St.name)}}return It}(bt[st],Ut),J,bt,ot)}function O(J,bt){return J.map(function(ot){return A(ot,bt)})}function T(J,bt){return new bt(J)}function R(J,bt){return new bt(J.map(function(ot){return F(ot[x.TO_STRING_FIELD])}))}function F(J){return BigInt(J)}function U(J,bt){var ot=J[x.OPTIONS_FIELD],st=ot.locale;return delete ot.locale,new bt(st,ot)}function q(J,bt){var ot;return delete(ot=J.message?new bt(J.message):new bt).stack,J.name&&(ot.name=J.name),J.stack&&(ot.stack=J.stack),bt===AggregateError&&(ot.errors=A(J.errors,{})),ot}function Q(J){console.warn("Incorrect parameter type passed to constructor: "+J)}function nt(J,bt,ot){for(var st in bt){var vt=Object.getOwnPropertyDescriptor(J,st);vt&&vt.writable!==!0&&typeof vt.set!="function"||(J[st]=A(bt[st],ot))}}function ft(J){J===void 0&&(J=[]);var bt={};return J.forEach(function(ot){if(p.isClass(ot)){var st=ot.name,vt=bt[st];vt&&vt!==ot&&console.warn("WARNING: Found class definition with the same name: "+st),bt[st]=ot}}),bt}v.deserializeFromParsedObj=function(J,bt,ot){return A(J,ft(bt),ot)},v.deserializeFromParsedObjWithClassMapping=A,v.getClassMappingFromClassArray=ft,v.getParentClassName=function(J){return J.prototype.__proto__.constructor.name}},821:(f,v)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.isClass=v.notObject=v.getValueFromToStringResult=void 0,v.notObject=function(d){return d===null||typeof d!="object"},v.getValueFromToStringResult=function(d){switch(d){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN;default:return null}},v.isClass=function(d){if(function(_){return[Date].indexOf(_)>=0}(d))return!0;try{Reflect.construct(String,[],d)}catch{return!1}return!0}},810:(f,v,d)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.getSerializeValueWithClassName=void 0;var _=d(917),p=d(821);function x(A,O){O===void 0&&(O={});var T=function(q){var Q,nt,ft;return q===void 0?((Q={})[_.CLASS_NAME_FIELD]=_.BUILTIN_TYPE_UNDEFINED,Q):typeof q!="number"||isFinite(q)?typeof q=="bigint"?((ft={})[_.CLASS_NAME_FIELD]=_.BUILTIN_TYPE_BIG_INT,ft[_.TO_STRING_FIELD]=q.toString(),ft):p.notObject(q)?q:_.ESSERIALIZER_NULL:((nt={})[_.CLASS_NAME_FIELD]=_.BUILTIN_TYPE_NOT_FINITE,nt[_.TO_STRING_FIELD]=q.toString(),nt)}(A);if(T!==_.ESSERIALIZER_NULL)return T;if(Array.isArray(A))return b(A);var R={};if(!function(q){var Q=q.__proto__.constructor.name;return _.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED.includes(Q)}(A)){if(O.ignoreProperties&&O.ignoreProperties.forEach(function(q){delete A[q]}),O.interceptProperties)for(var F in O.interceptProperties)A[F]=O.interceptProperties[F].call(A,A[F]);for(var U in A)R[U]=x(A[U])}return function(q,Q){var nt=q.__proto__.constructor.name;return nt!=="Object"&&(Q[_.CLASS_NAME_FIELD]=nt,nt===_.BUILTIN_CLASS_ARRAYBUFFER||nt===_.BUILTIN_CLASS_SHAREDARRAYBUFFER?Q[_.ARRAY_FIELD]=b(Array.from(new Uint8Array(q))):nt===_.BUILTIN_CLASS_BOOLEAN?Q[_.BOOLEAN_FIELD]=q.valueOf():nt===_.BUILTIN_CLASS_DATAVIEW?Q[_.ARRAY_FIELD]=b(Array.from(new Uint8Array(q.buffer))):nt===_.BUILTIN_CLASS_DATE?Q[_.TIMESTAMP_FIELD]=q.getTime():nt===_.BUILTIN_CLASS_INTL_LOCALE||nt===_.BUILTIN_CLASS_REGEXP?Q[_.TO_STRING_FIELD]=q.toString():nt===_.BUILTIN_CLASS_SET?Q[_.ARRAY_FIELD]=b(Array.from(q)):nt===_.BUILTIN_CLASS_STRING?Q[_.TO_STRING_FIELD]=q.toString():_.ALL_BUILTIN_ARRAYS.includes(nt)?Q[_.ARRAY_FIELD]=b(Array.from(q)):_.ALL_BUILTIN_ERRORS.includes(nt)?function(ft,J,bt){ft.name!=="Error"&&(J.name=ft.name),ft.message&&(J.message=ft.message),ft.stack&&(J.stack=ft.stack),bt===_.BUILTIN_CLASS_AGGREGATE_ERROR&&(J.errors=x(ft.errors))}(q,Q,nt):_.ALL_BUILTIN_INTLS.includes(nt)&&(Q[_.OPTIONS_FIELD]=q.resolvedOptions())),Q}(A,R)}function b(A){return A.map(function(O){return x(O)})}v.getSerializeValueWithClassName=x}},__webpack_module_cache__={};function __webpack_require__(f){if(__webpack_module_cache__[f])return __webpack_module_cache__[f].exports;var v=__webpack_module_cache__[f]={exports:{}};return __webpack_modules__[f].call(v.exports,v,v.exports,__webpack_require__),v.exports}return __webpack_require__(607)})())})(bundle);const ESSerializer=getDefaultExportFromCjs(bundle),alreadyWarnFor=[],warnStorageNotFound=f=>{var d;const v=typeof process<"u"&&((d=process.env)==null?void 0:d.NODE_ENV)==="production";if(alreadyWarnFor.indexOf(f)===-1&&!v){let _=`Unable to find the ${f}. No data will be persisted.`;typeof window>"u"&&(_+=`
|
|
Are you running on a server? Most of storages are not available while running on a server.`),console.warn(_),alreadyWarnFor.push(f)}},allowedClasses=[],serialize=f=>ESSerializer.serialize(f),deserialize=f=>{if(f!=="undefined"){if(f!=null){try{return ESSerializer.deserialize(f,allowedClasses)}catch{}try{return JSON.parse(f)}catch{}}return f}};function persist(f,v,d){const _=v.getValue(d);return _!==null&&f.set(_),v.addListener&&v.addListener(d,p=>{f.set(p)}),f.subscribe(p=>{v.setValue(d,p)}),{...f,delete(){v.deleteValue(d)}}}function getBrowserStorage(f,v=!1){const d=[],_=b=>{const A=b.key;b.storageArea===f&&d.filter(({key:O})=>O===A).forEach(({listener:O})=>{O(deserialize(b.newValue))})},p=()=>{v&&typeof window<"u"&&(window==null?void 0:window.addEventListener)&&window.addEventListener("storage",_)},x=()=>{v&&typeof window<"u"&&(window==null?void 0:window.removeEventListener)&&window.removeEventListener("storage",_)};return{addListener(b,A){d.push({key:b,listener:A}),d.length===1&&p()},removeListener(b,A){const O=d.indexOf({key:b,listener:A});O!==-1&&d.splice(O,1),d.length===0&&x()},getValue(b){const A=f.getItem(b);return deserialize(A)},deleteValue(b){f.removeItem(b)},setValue(b,A){f.setItem(b,serialize(A))}}}function localStorage(f=!1){return typeof window<"u"&&(window==null?void 0:window.localStorage)?getBrowserStorage(window.localStorage,f):(warnStorageNotFound("window.localStorage"),noopStorage())}function noopStorage(){return{getValue(){return null},deleteValue(){},setValue(){}}}let analytics;const initAnalytics=async()=>{if(!analytics)try{const{Analytics:f}=await __vitePreload(()=>import("./analytics.browser.es-80770405.js"),[],import.meta.url),v=(await __vitePreload(()=>import("./analytics-plugin-ga.browser.es-594c52de.js"),[],import.meta.url)).default,d=(await __vitePreload(()=>import("./plausible-a795350f.js").then(_=>_.p),[],import.meta.url)).default;analytics=f({app:"mermaid-live-editor",plugins:[v({measurementIds:["UA-153180559-1"]}),d({domain:"mermaid.live",hashMode:!1,trackLocalhost:!1,apiHost:"https://plausible.io"})]})}catch(f){console.log(f),console.info("Analytics blocked ;)")}},detectType=f=>f.replace(/^\s*%%.*\n/g,`
|
|
`).trimStart().split(" ")[0];let timeout;const saveStatistics=f=>{analytics&&(clearTimeout(timeout),timeout=window.setTimeout(()=>{const v=detectType(f);console.debug(`ga: send event: render ${v}`),logEvent("render",{graphType:v})},5e3))},logEvent=async(f,v)=>{await(analytics==null?void 0:analytics.track(f,v))};/*! 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(f){let v=f.length;for(;--v>=0;)f[v]=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(f,v,d,_,p){this.static_tree=f,this.extra_bits=v,this.extra_base=d,this.elems=_,this.max_length=p,this.has_stree=f&&f.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(f,v){this.dyn_tree=f,this.max_code=0,this.stat_desc=v}const d_code=f=>f<256?_dist_code[f]:_dist_code[256+(f>>>7)],put_short=(f,v)=>{f.pending_buf[f.pending++]=v&255,f.pending_buf[f.pending++]=v>>>8&255},send_bits=(f,v,d)=>{f.bi_valid>Buf_size-d?(f.bi_buf|=v<<f.bi_valid&65535,put_short(f,f.bi_buf),f.bi_buf=v>>Buf_size-f.bi_valid,f.bi_valid+=d-Buf_size):(f.bi_buf|=v<<f.bi_valid&65535,f.bi_valid+=d)},send_code=(f,v,d)=>{send_bits(f,d[v*2],d[v*2+1])},bi_reverse=(f,v)=>{let d=0;do d|=f&1,f>>>=1,d<<=1;while(--v>0);return d>>>1},bi_flush=f=>{f.bi_valid===16?(put_short(f,f.bi_buf),f.bi_buf=0,f.bi_valid=0):f.bi_valid>=8&&(f.pending_buf[f.pending++]=f.bi_buf&255,f.bi_buf>>=8,f.bi_valid-=8)},gen_bitlen=(f,v)=>{const d=v.dyn_tree,_=v.max_code,p=v.stat_desc.static_tree,x=v.stat_desc.has_stree,b=v.stat_desc.extra_bits,A=v.stat_desc.extra_base,O=v.stat_desc.max_length;let T,R,F,U,q,Q,nt=0;for(U=0;U<=MAX_BITS$1;U++)f.bl_count[U]=0;for(d[f.heap[f.heap_max]*2+1]=0,T=f.heap_max+1;T<HEAP_SIZE$1;T++)R=f.heap[T],U=d[d[R*2+1]*2+1]+1,U>O&&(U=O,nt++),d[R*2+1]=U,!(R>_)&&(f.bl_count[U]++,q=0,R>=A&&(q=b[R-A]),Q=d[R*2],f.opt_len+=Q*(U+q),x&&(f.static_len+=Q*(p[R*2+1]+q)));if(nt!==0){do{for(U=O-1;f.bl_count[U]===0;)U--;f.bl_count[U]--,f.bl_count[U+1]+=2,f.bl_count[O]--,nt-=2}while(nt>0);for(U=O;U!==0;U--)for(R=f.bl_count[U];R!==0;)F=f.heap[--T],!(F>_)&&(d[F*2+1]!==U&&(f.opt_len+=(U-d[F*2+1])*d[F*2],d[F*2+1]=U),R--)}},gen_codes=(f,v,d)=>{const _=new Array(MAX_BITS$1+1);let p=0,x,b;for(x=1;x<=MAX_BITS$1;x++)_[x]=p=p+d[x-1]<<1;for(b=0;b<=v;b++){let A=f[b*2+1];A!==0&&(f[b*2]=bi_reverse(_[A]++,A))}},tr_static_init=()=>{let f,v,d,_,p;const x=new Array(MAX_BITS$1+1);for(d=0,_=0;_<LENGTH_CODES$1-1;_++)for(base_length[_]=d,f=0;f<1<<extra_lbits[_];f++)_length_code[d++]=_;for(_length_code[d-1]=_,p=0,_=0;_<16;_++)for(base_dist[_]=p,f=0;f<1<<extra_dbits[_];f++)_dist_code[p++]=_;for(p>>=7;_<D_CODES$1;_++)for(base_dist[_]=p<<7,f=0;f<1<<extra_dbits[_]-7;f++)_dist_code[256+p++]=_;for(v=0;v<=MAX_BITS$1;v++)x[v]=0;for(f=0;f<=143;)static_ltree[f*2+1]=8,f++,x[8]++;for(;f<=255;)static_ltree[f*2+1]=9,f++,x[9]++;for(;f<=279;)static_ltree[f*2+1]=7,f++,x[7]++;for(;f<=287;)static_ltree[f*2+1]=8,f++,x[8]++;for(gen_codes(static_ltree,L_CODES$1+1,x),f=0;f<D_CODES$1;f++)static_dtree[f*2+1]=5,static_dtree[f*2]=bi_reverse(f,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=f=>{let v;for(v=0;v<L_CODES$1;v++)f.dyn_ltree[v*2]=0;for(v=0;v<D_CODES$1;v++)f.dyn_dtree[v*2]=0;for(v=0;v<BL_CODES$1;v++)f.bl_tree[v*2]=0;f.dyn_ltree[END_BLOCK*2]=1,f.opt_len=f.static_len=0,f.last_lit=f.matches=0},bi_windup=f=>{f.bi_valid>8?put_short(f,f.bi_buf):f.bi_valid>0&&(f.pending_buf[f.pending++]=f.bi_buf),f.bi_buf=0,f.bi_valid=0},copy_block=(f,v,d,_)=>{bi_windup(f),_&&(put_short(f,d),put_short(f,~d)),f.pending_buf.set(f.window.subarray(v,v+d),f.pending),f.pending+=d},smaller=(f,v,d,_)=>{const p=v*2,x=d*2;return f[p]<f[x]||f[p]===f[x]&&_[v]<=_[d]},pqdownheap=(f,v,d)=>{const _=f.heap[d];let p=d<<1;for(;p<=f.heap_len&&(p<f.heap_len&&smaller(v,f.heap[p+1],f.heap[p],f.depth)&&p++,!smaller(v,_,f.heap[p],f.depth));)f.heap[d]=f.heap[p],d=p,p<<=1;f.heap[d]=_},compress_block=(f,v,d)=>{let _,p,x=0,b,A;if(f.last_lit!==0)do _=f.pending_buf[f.d_buf+x*2]<<8|f.pending_buf[f.d_buf+x*2+1],p=f.pending_buf[f.l_buf+x],x++,_===0?send_code(f,p,v):(b=_length_code[p],send_code(f,b+LITERALS$1+1,v),A=extra_lbits[b],A!==0&&(p-=base_length[b],send_bits(f,p,A)),_--,b=d_code(_),send_code(f,b,d),A=extra_dbits[b],A!==0&&(_-=base_dist[b],send_bits(f,_,A)));while(x<f.last_lit);send_code(f,END_BLOCK,v)},build_tree=(f,v)=>{const d=v.dyn_tree,_=v.stat_desc.static_tree,p=v.stat_desc.has_stree,x=v.stat_desc.elems;let b,A,O=-1,T;for(f.heap_len=0,f.heap_max=HEAP_SIZE$1,b=0;b<x;b++)d[b*2]!==0?(f.heap[++f.heap_len]=O=b,f.depth[b]=0):d[b*2+1]=0;for(;f.heap_len<2;)T=f.heap[++f.heap_len]=O<2?++O:0,d[T*2]=1,f.depth[T]=0,f.opt_len--,p&&(f.static_len-=_[T*2+1]);for(v.max_code=O,b=f.heap_len>>1;b>=1;b--)pqdownheap(f,d,b);T=x;do b=f.heap[1],f.heap[1]=f.heap[f.heap_len--],pqdownheap(f,d,1),A=f.heap[1],f.heap[--f.heap_max]=b,f.heap[--f.heap_max]=A,d[T*2]=d[b*2]+d[A*2],f.depth[T]=(f.depth[b]>=f.depth[A]?f.depth[b]:f.depth[A])+1,d[b*2+1]=d[A*2+1]=T,f.heap[1]=T++,pqdownheap(f,d,1);while(f.heap_len>=2);f.heap[--f.heap_max]=f.heap[1],gen_bitlen(f,v),gen_codes(d,O,f.bl_count)},scan_tree=(f,v,d)=>{let _,p=-1,x,b=v[0*2+1],A=0,O=7,T=4;for(b===0&&(O=138,T=3),v[(d+1)*2+1]=65535,_=0;_<=d;_++)x=b,b=v[(_+1)*2+1],!(++A<O&&x===b)&&(A<T?f.bl_tree[x*2]+=A:x!==0?(x!==p&&f.bl_tree[x*2]++,f.bl_tree[REP_3_6*2]++):A<=10?f.bl_tree[REPZ_3_10*2]++:f.bl_tree[REPZ_11_138*2]++,A=0,p=x,b===0?(O=138,T=3):x===b?(O=6,T=3):(O=7,T=4))},send_tree=(f,v,d)=>{let _,p=-1,x,b=v[0*2+1],A=0,O=7,T=4;for(b===0&&(O=138,T=3),_=0;_<=d;_++)if(x=b,b=v[(_+1)*2+1],!(++A<O&&x===b)){if(A<T)do send_code(f,x,f.bl_tree);while(--A!==0);else x!==0?(x!==p&&(send_code(f,x,f.bl_tree),A--),send_code(f,REP_3_6,f.bl_tree),send_bits(f,A-3,2)):A<=10?(send_code(f,REPZ_3_10,f.bl_tree),send_bits(f,A-3,3)):(send_code(f,REPZ_11_138,f.bl_tree),send_bits(f,A-11,7));A=0,p=x,b===0?(O=138,T=3):x===b?(O=6,T=3):(O=7,T=4)}},build_bl_tree=f=>{let v;for(scan_tree(f,f.dyn_ltree,f.l_desc.max_code),scan_tree(f,f.dyn_dtree,f.d_desc.max_code),build_tree(f,f.bl_desc),v=BL_CODES$1-1;v>=3&&f.bl_tree[bl_order[v]*2+1]===0;v--);return f.opt_len+=3*(v+1)+5+5+4,v},send_all_trees=(f,v,d,_)=>{let p;for(send_bits(f,v-257,5),send_bits(f,d-1,5),send_bits(f,_-4,4),p=0;p<_;p++)send_bits(f,f.bl_tree[bl_order[p]*2+1],3);send_tree(f,f.dyn_ltree,v-1),send_tree(f,f.dyn_dtree,d-1)},detect_data_type=f=>{let v=4093624447,d;for(d=0;d<=31;d++,v>>>=1)if(v&1&&f.dyn_ltree[d*2]!==0)return Z_BINARY;if(f.dyn_ltree[9*2]!==0||f.dyn_ltree[10*2]!==0||f.dyn_ltree[13*2]!==0)return Z_TEXT;for(d=32;d<LITERALS$1;d++)if(f.dyn_ltree[d*2]!==0)return Z_TEXT;return Z_BINARY};let static_init_done=!1;const _tr_init$1=f=>{static_init_done||(tr_static_init(),static_init_done=!0),f.l_desc=new TreeDesc(f.dyn_ltree,static_l_desc),f.d_desc=new TreeDesc(f.dyn_dtree,static_d_desc),f.bl_desc=new TreeDesc(f.bl_tree,static_bl_desc),f.bi_buf=0,f.bi_valid=0,init_block(f)},_tr_stored_block$1=(f,v,d,_)=>{send_bits(f,(STORED_BLOCK<<1)+(_?1:0),3),copy_block(f,v,d,!0)},_tr_align$1=f=>{send_bits(f,STATIC_TREES<<1,3),send_code(f,END_BLOCK,static_ltree),bi_flush(f)},_tr_flush_block$1=(f,v,d,_)=>{let p,x,b=0;f.level>0?(f.strm.data_type===Z_UNKNOWN$1&&(f.strm.data_type=detect_data_type(f)),build_tree(f,f.l_desc),build_tree(f,f.d_desc),b=build_bl_tree(f),p=f.opt_len+3+7>>>3,x=f.static_len+3+7>>>3,x<=p&&(p=x)):p=x=d+5,d+4<=p&&v!==-1?_tr_stored_block$1(f,v,d,_):f.strategy===Z_FIXED$1||x===p?(send_bits(f,(STATIC_TREES<<1)+(_?1:0),3),compress_block(f,static_ltree,static_dtree)):(send_bits(f,(DYN_TREES<<1)+(_?1:0),3),send_all_trees(f,f.l_desc.max_code+1,f.d_desc.max_code+1,b+1),compress_block(f,f.dyn_ltree,f.dyn_dtree)),init_block(f),_&&bi_windup(f)},_tr_tally$1=(f,v,d)=>(f.pending_buf[f.d_buf+f.last_lit*2]=v>>>8&255,f.pending_buf[f.d_buf+f.last_lit*2+1]=v&255,f.pending_buf[f.l_buf+f.last_lit]=d&255,f.last_lit++,v===0?f.dyn_ltree[d*2]++:(f.matches++,v--,f.dyn_ltree[(_length_code[d]+LITERALS$1+1)*2]++,f.dyn_dtree[d_code(v)*2]++),f.last_lit===f.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=(f,v,d,_)=>{let p=f&65535|0,x=f>>>16&65535|0,b=0;for(;d!==0;){b=d>2e3?2e3:d,d-=b;do p=p+v[_++]|0,x=x+p|0;while(--b);p%=65521,x%=65521}return p|x<<16|0};var adler32_1=adler32;const makeTable=()=>{let f,v=[];for(var d=0;d<256;d++){f=d;for(var _=0;_<8;_++)f=f&1?3988292384^f>>>1:f>>>1;v[d]=f}return v},crcTable=new Uint32Array(makeTable()),crc32=(f,v,d,_)=>{const p=crcTable,x=_+d;f^=-1;for(let b=_;b<x;b++)f=f>>>8^p[(f^v[b])&255];return f^-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=(f,v)=>(f.msg=messages[v],v),rank=f=>(f<<1)-(f>4?9:0),zero=f=>{let v=f.length;for(;--v>=0;)f[v]=0};let HASH_ZLIB=(f,v,d)=>(v<<f.hash_shift^d)&f.hash_mask,HASH=HASH_ZLIB;const flush_pending=f=>{const v=f.state;let d=v.pending;d>f.avail_out&&(d=f.avail_out),d!==0&&(f.output.set(v.pending_buf.subarray(v.pending_out,v.pending_out+d),f.next_out),f.next_out+=d,v.pending_out+=d,f.total_out+=d,f.avail_out-=d,v.pending-=d,v.pending===0&&(v.pending_out=0))},flush_block_only=(f,v)=>{_tr_flush_block(f,f.block_start>=0?f.block_start:-1,f.strstart-f.block_start,v),f.block_start=f.strstart,flush_pending(f.strm)},put_byte=(f,v)=>{f.pending_buf[f.pending++]=v},putShortMSB=(f,v)=>{f.pending_buf[f.pending++]=v>>>8&255,f.pending_buf[f.pending++]=v&255},read_buf=(f,v,d,_)=>{let p=f.avail_in;return p>_&&(p=_),p===0?0:(f.avail_in-=p,v.set(f.input.subarray(f.next_in,f.next_in+p),d),f.state.wrap===1?f.adler=adler32_1(f.adler,v,p,d):f.state.wrap===2&&(f.adler=crc32_1(f.adler,v,p,d)),f.next_in+=p,f.total_in+=p,p)},longest_match=(f,v)=>{let d=f.max_chain_length,_=f.strstart,p,x,b=f.prev_length,A=f.nice_match;const O=f.strstart>f.w_size-MIN_LOOKAHEAD?f.strstart-(f.w_size-MIN_LOOKAHEAD):0,T=f.window,R=f.w_mask,F=f.prev,U=f.strstart+MAX_MATCH;let q=T[_+b-1],Q=T[_+b];f.prev_length>=f.good_match&&(d>>=2),A>f.lookahead&&(A=f.lookahead);do if(p=v,!(T[p+b]!==Q||T[p+b-1]!==q||T[p]!==T[_]||T[++p]!==T[_+1])){_+=2,p++;do;while(T[++_]===T[++p]&&T[++_]===T[++p]&&T[++_]===T[++p]&&T[++_]===T[++p]&&T[++_]===T[++p]&&T[++_]===T[++p]&&T[++_]===T[++p]&&T[++_]===T[++p]&&_<U);if(x=MAX_MATCH-(U-_),_=U-MAX_MATCH,x>b){if(f.match_start=v,b=x,x>=A)break;q=T[_+b-1],Q=T[_+b]}}while((v=F[v&R])>O&&--d!==0);return b<=f.lookahead?b:f.lookahead},fill_window=f=>{const v=f.w_size;let d,_,p,x,b;do{if(x=f.window_size-f.lookahead-f.strstart,f.strstart>=v+(v-MIN_LOOKAHEAD)){f.window.set(f.window.subarray(v,v+v),0),f.match_start-=v,f.strstart-=v,f.block_start-=v,_=f.hash_size,d=_;do p=f.head[--d],f.head[d]=p>=v?p-v:0;while(--_);_=v,d=_;do p=f.prev[--d],f.prev[d]=p>=v?p-v:0;while(--_);x+=v}if(f.strm.avail_in===0)break;if(_=read_buf(f.strm,f.window,f.strstart+f.lookahead,x),f.lookahead+=_,f.lookahead+f.insert>=MIN_MATCH)for(b=f.strstart-f.insert,f.ins_h=f.window[b],f.ins_h=HASH(f,f.ins_h,f.window[b+1]);f.insert&&(f.ins_h=HASH(f,f.ins_h,f.window[b+MIN_MATCH-1]),f.prev[b&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=b,b++,f.insert--,!(f.lookahead+f.insert<MIN_MATCH)););}while(f.lookahead<MIN_LOOKAHEAD&&f.strm.avail_in!==0)},deflate_stored=(f,v)=>{let d=65535;for(d>f.pending_buf_size-5&&(d=f.pending_buf_size-5);;){if(f.lookahead<=1){if(fill_window(f),f.lookahead===0&&v===Z_NO_FLUSH$2)return BS_NEED_MORE;if(f.lookahead===0)break}f.strstart+=f.lookahead,f.lookahead=0;const _=f.block_start+d;if((f.strstart===0||f.strstart>=_)&&(f.lookahead=f.strstart-_,f.strstart=_,flush_block_only(f,!1),f.strm.avail_out===0)||f.strstart-f.block_start>=f.w_size-MIN_LOOKAHEAD&&(flush_block_only(f,!1),f.strm.avail_out===0))return BS_NEED_MORE}return f.insert=0,v===Z_FINISH$3?(flush_block_only(f,!0),f.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):(f.strstart>f.block_start&&(flush_block_only(f,!1),f.strm.avail_out===0),BS_NEED_MORE)},deflate_fast=(f,v)=>{let d,_;for(;;){if(f.lookahead<MIN_LOOKAHEAD){if(fill_window(f),f.lookahead<MIN_LOOKAHEAD&&v===Z_NO_FLUSH$2)return BS_NEED_MORE;if(f.lookahead===0)break}if(d=0,f.lookahead>=MIN_MATCH&&(f.ins_h=HASH(f,f.ins_h,f.window[f.strstart+MIN_MATCH-1]),d=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),d!==0&&f.strstart-d<=f.w_size-MIN_LOOKAHEAD&&(f.match_length=longest_match(f,d)),f.match_length>=MIN_MATCH)if(_=_tr_tally(f,f.strstart-f.match_start,f.match_length-MIN_MATCH),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=MIN_MATCH){f.match_length--;do f.strstart++,f.ins_h=HASH(f,f.ins_h,f.window[f.strstart+MIN_MATCH-1]),d=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart;while(--f.match_length!==0);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=HASH(f,f.ins_h,f.window[f.strstart+1]);else _=_tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(_&&(flush_block_only(f,!1),f.strm.avail_out===0))return BS_NEED_MORE}return f.insert=f.strstart<MIN_MATCH-1?f.strstart:MIN_MATCH-1,v===Z_FINISH$3?(flush_block_only(f,!0),f.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):f.last_lit&&(flush_block_only(f,!1),f.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_slow=(f,v)=>{let d,_,p;for(;;){if(f.lookahead<MIN_LOOKAHEAD){if(fill_window(f),f.lookahead<MIN_LOOKAHEAD&&v===Z_NO_FLUSH$2)return BS_NEED_MORE;if(f.lookahead===0)break}if(d=0,f.lookahead>=MIN_MATCH&&(f.ins_h=HASH(f,f.ins_h,f.window[f.strstart+MIN_MATCH-1]),d=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),f.prev_length=f.match_length,f.prev_match=f.match_start,f.match_length=MIN_MATCH-1,d!==0&&f.prev_length<f.max_lazy_match&&f.strstart-d<=f.w_size-MIN_LOOKAHEAD&&(f.match_length=longest_match(f,d),f.match_length<=5&&(f.strategy===Z_FILTERED||f.match_length===MIN_MATCH&&f.strstart-f.match_start>4096)&&(f.match_length=MIN_MATCH-1)),f.prev_length>=MIN_MATCH&&f.match_length<=f.prev_length){p=f.strstart+f.lookahead-MIN_MATCH,_=_tr_tally(f,f.strstart-1-f.prev_match,f.prev_length-MIN_MATCH),f.lookahead-=f.prev_length-1,f.prev_length-=2;do++f.strstart<=p&&(f.ins_h=HASH(f,f.ins_h,f.window[f.strstart+MIN_MATCH-1]),d=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart);while(--f.prev_length!==0);if(f.match_available=0,f.match_length=MIN_MATCH-1,f.strstart++,_&&(flush_block_only(f,!1),f.strm.avail_out===0))return BS_NEED_MORE}else if(f.match_available){if(_=_tr_tally(f,0,f.window[f.strstart-1]),_&&flush_block_only(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return BS_NEED_MORE}else f.match_available=1,f.strstart++,f.lookahead--}return f.match_available&&(_=_tr_tally(f,0,f.window[f.strstart-1]),f.match_available=0),f.insert=f.strstart<MIN_MATCH-1?f.strstart:MIN_MATCH-1,v===Z_FINISH$3?(flush_block_only(f,!0),f.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):f.last_lit&&(flush_block_only(f,!1),f.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_rle=(f,v)=>{let d,_,p,x;const b=f.window;for(;;){if(f.lookahead<=MAX_MATCH){if(fill_window(f),f.lookahead<=MAX_MATCH&&v===Z_NO_FLUSH$2)return BS_NEED_MORE;if(f.lookahead===0)break}if(f.match_length=0,f.lookahead>=MIN_MATCH&&f.strstart>0&&(p=f.strstart-1,_=b[p],_===b[++p]&&_===b[++p]&&_===b[++p])){x=f.strstart+MAX_MATCH;do;while(_===b[++p]&&_===b[++p]&&_===b[++p]&&_===b[++p]&&_===b[++p]&&_===b[++p]&&_===b[++p]&&_===b[++p]&&p<x);f.match_length=MAX_MATCH-(x-p),f.match_length>f.lookahead&&(f.match_length=f.lookahead)}if(f.match_length>=MIN_MATCH?(d=_tr_tally(f,1,f.match_length-MIN_MATCH),f.lookahead-=f.match_length,f.strstart+=f.match_length,f.match_length=0):(d=_tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++),d&&(flush_block_only(f,!1),f.strm.avail_out===0))return BS_NEED_MORE}return f.insert=0,v===Z_FINISH$3?(flush_block_only(f,!0),f.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):f.last_lit&&(flush_block_only(f,!1),f.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(f,v)=>{let d;for(;;){if(f.lookahead===0&&(fill_window(f),f.lookahead===0)){if(v===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(f.match_length=0,d=_tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++,d&&(flush_block_only(f,!1),f.strm.avail_out===0))return BS_NEED_MORE}return f.insert=0,v===Z_FINISH$3?(flush_block_only(f,!0),f.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):f.last_lit&&(flush_block_only(f,!1),f.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(f,v,d,_,p){this.good_length=f,this.max_lazy=v,this.nice_length=d,this.max_chain=_,this.func=p}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=f=>{f.window_size=2*f.w_size,zero(f.head),f.max_lazy_match=configuration_table[f.level].max_lazy,f.good_match=configuration_table[f.level].good_length,f.nice_match=configuration_table[f.level].nice_length,f.max_chain_length=configuration_table[f.level].max_chain,f.strstart=0,f.block_start=0,f.lookahead=0,f.insert=0,f.match_length=f.prev_length=MIN_MATCH-1,f.match_available=0,f.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=f=>{if(!f||!f.state)return err(f,Z_STREAM_ERROR$2);f.total_in=f.total_out=0,f.data_type=Z_UNKNOWN;const v=f.state;return v.pending=0,v.pending_out=0,v.wrap<0&&(v.wrap=-v.wrap),v.status=v.wrap?INIT_STATE:BUSY_STATE,f.adler=v.wrap===2?0:1,v.last_flush=Z_NO_FLUSH$2,_tr_init(v),Z_OK$3},deflateReset=f=>{const v=deflateResetKeep(f);return v===Z_OK$3&&lm_init(f.state),v},deflateSetHeader=(f,v)=>!f||!f.state||f.state.wrap!==2?Z_STREAM_ERROR$2:(f.state.gzhead=v,Z_OK$3),deflateInit2=(f,v,d,_,p,x)=>{if(!f)return Z_STREAM_ERROR$2;let b=1;if(v===Z_DEFAULT_COMPRESSION$1&&(v=6),_<0?(b=0,_=-_):_>15&&(b=2,_-=16),p<1||p>MAX_MEM_LEVEL||d!==Z_DEFLATED$2||_<8||_>15||v<0||v>9||x<0||x>Z_FIXED)return err(f,Z_STREAM_ERROR$2);_===8&&(_=9);const A=new DeflateState;return f.state=A,A.strm=f,A.wrap=b,A.gzhead=null,A.w_bits=_,A.w_size=1<<A.w_bits,A.w_mask=A.w_size-1,A.hash_bits=p+7,A.hash_size=1<<A.hash_bits,A.hash_mask=A.hash_size-1,A.hash_shift=~~((A.hash_bits+MIN_MATCH-1)/MIN_MATCH),A.window=new Uint8Array(A.w_size*2),A.head=new Uint16Array(A.hash_size),A.prev=new Uint16Array(A.w_size),A.lit_bufsize=1<<p+6,A.pending_buf_size=A.lit_bufsize*4,A.pending_buf=new Uint8Array(A.pending_buf_size),A.d_buf=1*A.lit_bufsize,A.l_buf=(1+2)*A.lit_bufsize,A.level=v,A.strategy=x,A.method=d,deflateReset(f)},deflateInit=(f,v)=>deflateInit2(f,v,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(f,v)=>{let d,_;if(!f||!f.state||v>Z_BLOCK$1||v<0)return f?err(f,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const p=f.state;if(!f.output||!f.input&&f.avail_in!==0||p.status===FINISH_STATE&&v!==Z_FINISH$3)return err(f,f.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);p.strm=f;const x=p.last_flush;if(p.last_flush=v,p.status===INIT_STATE)if(p.wrap===2)f.adler=0,put_byte(p,31),put_byte(p,139),put_byte(p,8),p.gzhead?(put_byte(p,(p.gzhead.text?1:0)+(p.gzhead.hcrc?2:0)+(p.gzhead.extra?4:0)+(p.gzhead.name?8:0)+(p.gzhead.comment?16:0)),put_byte(p,p.gzhead.time&255),put_byte(p,p.gzhead.time>>8&255),put_byte(p,p.gzhead.time>>16&255),put_byte(p,p.gzhead.time>>24&255),put_byte(p,p.level===9?2:p.strategy>=Z_HUFFMAN_ONLY||p.level<2?4:0),put_byte(p,p.gzhead.os&255),p.gzhead.extra&&p.gzhead.extra.length&&(put_byte(p,p.gzhead.extra.length&255),put_byte(p,p.gzhead.extra.length>>8&255)),p.gzhead.hcrc&&(f.adler=crc32_1(f.adler,p.pending_buf,p.pending,0)),p.gzindex=0,p.status=EXTRA_STATE):(put_byte(p,0),put_byte(p,0),put_byte(p,0),put_byte(p,0),put_byte(p,0),put_byte(p,p.level===9?2:p.strategy>=Z_HUFFMAN_ONLY||p.level<2?4:0),put_byte(p,OS_CODE),p.status=BUSY_STATE);else{let b=Z_DEFLATED$2+(p.w_bits-8<<4)<<8,A=-1;p.strategy>=Z_HUFFMAN_ONLY||p.level<2?A=0:p.level<6?A=1:p.level===6?A=2:A=3,b|=A<<6,p.strstart!==0&&(b|=PRESET_DICT),b+=31-b%31,p.status=BUSY_STATE,putShortMSB(p,b),p.strstart!==0&&(putShortMSB(p,f.adler>>>16),putShortMSB(p,f.adler&65535)),f.adler=1}if(p.status===EXTRA_STATE)if(p.gzhead.extra){for(d=p.pending;p.gzindex<(p.gzhead.extra.length&65535)&&!(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>d&&(f.adler=crc32_1(f.adler,p.pending_buf,p.pending-d,d)),flush_pending(f),d=p.pending,p.pending===p.pending_buf_size));)put_byte(p,p.gzhead.extra[p.gzindex]&255),p.gzindex++;p.gzhead.hcrc&&p.pending>d&&(f.adler=crc32_1(f.adler,p.pending_buf,p.pending-d,d)),p.gzindex===p.gzhead.extra.length&&(p.gzindex=0,p.status=NAME_STATE)}else p.status=NAME_STATE;if(p.status===NAME_STATE)if(p.gzhead.name){d=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>d&&(f.adler=crc32_1(f.adler,p.pending_buf,p.pending-d,d)),flush_pending(f),d=p.pending,p.pending===p.pending_buf_size)){_=1;break}p.gzindex<p.gzhead.name.length?_=p.gzhead.name.charCodeAt(p.gzindex++)&255:_=0,put_byte(p,_)}while(_!==0);p.gzhead.hcrc&&p.pending>d&&(f.adler=crc32_1(f.adler,p.pending_buf,p.pending-d,d)),_===0&&(p.gzindex=0,p.status=COMMENT_STATE)}else p.status=COMMENT_STATE;if(p.status===COMMENT_STATE)if(p.gzhead.comment){d=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>d&&(f.adler=crc32_1(f.adler,p.pending_buf,p.pending-d,d)),flush_pending(f),d=p.pending,p.pending===p.pending_buf_size)){_=1;break}p.gzindex<p.gzhead.comment.length?_=p.gzhead.comment.charCodeAt(p.gzindex++)&255:_=0,put_byte(p,_)}while(_!==0);p.gzhead.hcrc&&p.pending>d&&(f.adler=crc32_1(f.adler,p.pending_buf,p.pending-d,d)),_===0&&(p.status=HCRC_STATE)}else p.status=HCRC_STATE;if(p.status===HCRC_STATE&&(p.gzhead.hcrc?(p.pending+2>p.pending_buf_size&&flush_pending(f),p.pending+2<=p.pending_buf_size&&(put_byte(p,f.adler&255),put_byte(p,f.adler>>8&255),f.adler=0,p.status=BUSY_STATE)):p.status=BUSY_STATE),p.pending!==0){if(flush_pending(f),f.avail_out===0)return p.last_flush=-1,Z_OK$3}else if(f.avail_in===0&&rank(v)<=rank(x)&&v!==Z_FINISH$3)return err(f,Z_BUF_ERROR$1);if(p.status===FINISH_STATE&&f.avail_in!==0)return err(f,Z_BUF_ERROR$1);if(f.avail_in!==0||p.lookahead!==0||v!==Z_NO_FLUSH$2&&p.status!==FINISH_STATE){let b=p.strategy===Z_HUFFMAN_ONLY?deflate_huff(p,v):p.strategy===Z_RLE?deflate_rle(p,v):configuration_table[p.level].func(p,v);if((b===BS_FINISH_STARTED||b===BS_FINISH_DONE)&&(p.status=FINISH_STATE),b===BS_NEED_MORE||b===BS_FINISH_STARTED)return f.avail_out===0&&(p.last_flush=-1),Z_OK$3;if(b===BS_BLOCK_DONE&&(v===Z_PARTIAL_FLUSH?_tr_align(p):v!==Z_BLOCK$1&&(_tr_stored_block(p,0,0,!1),v===Z_FULL_FLUSH$1&&(zero(p.head),p.lookahead===0&&(p.strstart=0,p.block_start=0,p.insert=0))),flush_pending(f),f.avail_out===0))return p.last_flush=-1,Z_OK$3}return v!==Z_FINISH$3?Z_OK$3:p.wrap<=0?Z_STREAM_END$3:(p.wrap===2?(put_byte(p,f.adler&255),put_byte(p,f.adler>>8&255),put_byte(p,f.adler>>16&255),put_byte(p,f.adler>>24&255),put_byte(p,f.total_in&255),put_byte(p,f.total_in>>8&255),put_byte(p,f.total_in>>16&255),put_byte(p,f.total_in>>24&255)):(putShortMSB(p,f.adler>>>16),putShortMSB(p,f.adler&65535)),flush_pending(f),p.wrap>0&&(p.wrap=-p.wrap),p.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=f=>{if(!f||!f.state)return Z_STREAM_ERROR$2;const v=f.state.status;return v!==INIT_STATE&&v!==EXTRA_STATE&&v!==NAME_STATE&&v!==COMMENT_STATE&&v!==HCRC_STATE&&v!==BUSY_STATE&&v!==FINISH_STATE?err(f,Z_STREAM_ERROR$2):(f.state=null,v===BUSY_STATE?err(f,Z_DATA_ERROR$2):Z_OK$3)},deflateSetDictionary=(f,v)=>{let d=v.length;if(!f||!f.state)return Z_STREAM_ERROR$2;const _=f.state,p=_.wrap;if(p===2||p===1&&_.status!==INIT_STATE||_.lookahead)return Z_STREAM_ERROR$2;if(p===1&&(f.adler=adler32_1(f.adler,v,d,0)),_.wrap=0,d>=_.w_size){p===0&&(zero(_.head),_.strstart=0,_.block_start=0,_.insert=0);let O=new Uint8Array(_.w_size);O.set(v.subarray(d-_.w_size,d),0),v=O,d=_.w_size}const x=f.avail_in,b=f.next_in,A=f.input;for(f.avail_in=d,f.next_in=0,f.input=v,fill_window(_);_.lookahead>=MIN_MATCH;){let O=_.strstart,T=_.lookahead-(MIN_MATCH-1);do _.ins_h=HASH(_,_.ins_h,_.window[O+MIN_MATCH-1]),_.prev[O&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=O,O++;while(--T);_.strstart=O,_.lookahead=MIN_MATCH-1,fill_window(_)}return _.strstart+=_.lookahead,_.block_start=_.strstart,_.insert=_.lookahead,_.lookahead=0,_.match_length=_.prev_length=MIN_MATCH-1,_.match_available=0,f.next_in=b,f.input=A,f.avail_in=x,_.wrap=p,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=(f,v)=>Object.prototype.hasOwnProperty.call(f,v);var assign=function(f){const v=Array.prototype.slice.call(arguments,1);for(;v.length;){const d=v.shift();if(!!d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(const _ in d)_has(d,_)&&(f[_]=d[_])}}return f},flattenChunks=f=>{let v=0;for(let _=0,p=f.length;_<p;_++)v+=f[_].length;const d=new Uint8Array(v);for(let _=0,p=0,x=f.length;_<x;_++){let b=f[_];d.set(b,p),p+=b.length}return d},common={assign,flattenChunks};let STR_APPLY_UIA_OK=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(f){STR_APPLY_UIA_OK=!1}const _utf8len=new Uint8Array(256);for(let f=0;f<256;f++)_utf8len[f]=f>=252?6:f>=248?5:f>=240?4:f>=224?3:f>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=f=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(f);let v,d,_,p,x,b=f.length,A=0;for(p=0;p<b;p++)d=f.charCodeAt(p),(d&64512)===55296&&p+1<b&&(_=f.charCodeAt(p+1),(_&64512)===56320&&(d=65536+(d-55296<<10)+(_-56320),p++)),A+=d<128?1:d<2048?2:d<65536?3:4;for(v=new Uint8Array(A),x=0,p=0;x<A;p++)d=f.charCodeAt(p),(d&64512)===55296&&p+1<b&&(_=f.charCodeAt(p+1),(_&64512)===56320&&(d=65536+(d-55296<<10)+(_-56320),p++)),d<128?v[x++]=d:d<2048?(v[x++]=192|d>>>6,v[x++]=128|d&63):d<65536?(v[x++]=224|d>>>12,v[x++]=128|d>>>6&63,v[x++]=128|d&63):(v[x++]=240|d>>>18,v[x++]=128|d>>>12&63,v[x++]=128|d>>>6&63,v[x++]=128|d&63);return v};const buf2binstring=(f,v)=>{if(v<65534&&f.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,f.length===v?f:f.subarray(0,v));let d="";for(let _=0;_<v;_++)d+=String.fromCharCode(f[_]);return d};var buf2string=(f,v)=>{const d=v||f.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(f.subarray(0,v));let _,p;const x=new Array(d*2);for(p=0,_=0;_<d;){let b=f[_++];if(b<128){x[p++]=b;continue}let A=_utf8len[b];if(A>4){x[p++]=65533,_+=A-1;continue}for(b&=A===2?31:A===3?15:7;A>1&&_<d;)b=b<<6|f[_++]&63,A--;if(A>1){x[p++]=65533;continue}b<65536?x[p++]=b:(b-=65536,x[p++]=55296|b>>10&1023,x[p++]=56320|b&1023)}return buf2binstring(x,p)},utf8border=(f,v)=>{v=v||f.length,v>f.length&&(v=f.length);let d=v-1;for(;d>=0&&(f[d]&192)===128;)d--;return d<0||d===0?v:d+_utf8len[f[d]]>v?d:v},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(f){this.options=common.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},f||{});let v=this.options;v.raw&&v.windowBits>0?v.windowBits=-v.windowBits:v.gzip&&v.windowBits>0&&v.windowBits<16&&(v.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let d=deflate_1$2.deflateInit2(this.strm,v.level,v.method,v.windowBits,v.memLevel,v.strategy);if(d!==Z_OK$2)throw new Error(messages[d]);if(v.header&&deflate_1$2.deflateSetHeader(this.strm,v.header),v.dictionary){let _;if(typeof v.dictionary=="string"?_=strings.string2buf(v.dictionary):toString$1.call(v.dictionary)==="[object ArrayBuffer]"?_=new Uint8Array(v.dictionary):_=v.dictionary,d=deflate_1$2.deflateSetDictionary(this.strm,_),d!==Z_OK$2)throw new Error(messages[d]);this._dict_set=!0}}Deflate$1.prototype.push=function(f,v){const d=this.strm,_=this.options.chunkSize;let p,x;if(this.ended)return!1;for(v===~~v?x=v:x=v===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof f=="string"?d.input=strings.string2buf(f):toString$1.call(f)==="[object ArrayBuffer]"?d.input=new Uint8Array(f):d.input=f,d.next_in=0,d.avail_in=d.input.length;;){if(d.avail_out===0&&(d.output=new Uint8Array(_),d.next_out=0,d.avail_out=_),(x===Z_SYNC_FLUSH||x===Z_FULL_FLUSH)&&d.avail_out<=6){this.onData(d.output.subarray(0,d.next_out)),d.avail_out=0;continue}if(p=deflate_1$2.deflate(d,x),p===Z_STREAM_END$2)return d.next_out>0&&this.onData(d.output.subarray(0,d.next_out)),p=deflate_1$2.deflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===Z_OK$2;if(d.avail_out===0){this.onData(d.output);continue}if(x>0&&d.next_out>0){this.onData(d.output.subarray(0,d.next_out)),d.avail_out=0;continue}if(d.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(f){this.chunks.push(f)};Deflate$1.prototype.onEnd=function(f){f===Z_OK$2&&(this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg};function deflate$1(f,v){const d=new Deflate$1(v);if(d.push(f,!0),d.err)throw d.msg||messages[d.err];return d.result}function deflateRaw$1(f,v){return v=v||{},v.raw=!0,deflate$1(f,v)}function gzip$1(f,v){return v=v||{},v.gzip=!0,deflate$1(f,v)}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 f(v,d){let _,p,x,b,A,O,T,R,F,U,q,Q,nt,ft,J,bt,ot,st,vt,Ut,St,_t,It,wt;const yt=v.state;_=v.next_in,It=v.input,p=_+(v.avail_in-5),x=v.next_out,wt=v.output,b=x-(d-v.avail_out),A=x+(v.avail_out-257),O=yt.dmax,T=yt.wsize,R=yt.whave,F=yt.wnext,U=yt.window,q=yt.hold,Q=yt.bits,nt=yt.lencode,ft=yt.distcode,J=(1<<yt.lenbits)-1,bt=(1<<yt.distbits)-1;t:do{Q<15&&(q+=It[_++]<<Q,Q+=8,q+=It[_++]<<Q,Q+=8),ot=nt[q&J];e:for(;;){if(st=ot>>>24,q>>>=st,Q-=st,st=ot>>>16&255,st===0)wt[x++]=ot&65535;else if(st&16){vt=ot&65535,st&=15,st&&(Q<st&&(q+=It[_++]<<Q,Q+=8),vt+=q&(1<<st)-1,q>>>=st,Q-=st),Q<15&&(q+=It[_++]<<Q,Q+=8,q+=It[_++]<<Q,Q+=8),ot=ft[q&bt];r:for(;;){if(st=ot>>>24,q>>>=st,Q-=st,st=ot>>>16&255,st&16){if(Ut=ot&65535,st&=15,Q<st&&(q+=It[_++]<<Q,Q+=8,Q<st&&(q+=It[_++]<<Q,Q+=8)),Ut+=q&(1<<st)-1,Ut>O){v.msg="invalid distance too far back",yt.mode=BAD$1;break t}if(q>>>=st,Q-=st,st=x-b,Ut>st){if(st=Ut-st,st>R&&yt.sane){v.msg="invalid distance too far back",yt.mode=BAD$1;break t}if(St=0,_t=U,F===0){if(St+=T-st,st<vt){vt-=st;do wt[x++]=U[St++];while(--st);St=x-Ut,_t=wt}}else if(F<st){if(St+=T+F-st,st-=F,st<vt){vt-=st;do wt[x++]=U[St++];while(--st);if(St=0,F<vt){st=F,vt-=st;do wt[x++]=U[St++];while(--st);St=x-Ut,_t=wt}}}else if(St+=F-st,st<vt){vt-=st;do wt[x++]=U[St++];while(--st);St=x-Ut,_t=wt}for(;vt>2;)wt[x++]=_t[St++],wt[x++]=_t[St++],wt[x++]=_t[St++],vt-=3;vt&&(wt[x++]=_t[St++],vt>1&&(wt[x++]=_t[St++]))}else{St=x-Ut;do wt[x++]=wt[St++],wt[x++]=wt[St++],wt[x++]=wt[St++],vt-=3;while(vt>2);vt&&(wt[x++]=wt[St++],vt>1&&(wt[x++]=wt[St++]))}}else if((st&64)===0){ot=ft[(ot&65535)+(q&(1<<st)-1)];continue r}else{v.msg="invalid distance code",yt.mode=BAD$1;break t}break}}else if((st&64)===0){ot=nt[(ot&65535)+(q&(1<<st)-1)];continue e}else if(st&32){yt.mode=TYPE$1;break t}else{v.msg="invalid literal/length code",yt.mode=BAD$1;break t}break}}while(_<p&&x<A);vt=Q>>3,_-=vt,Q-=vt<<3,q&=(1<<Q)-1,v.next_in=_,v.next_out=x,v.avail_in=_<p?5+(p-_):5-(_-p),v.avail_out=x<A?257+(A-x):257-(x-A),yt.hold=q,yt.bits=Q};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=(f,v,d,_,p,x,b,A)=>{const O=A.bits;let T=0,R=0,F=0,U=0,q=0,Q=0,nt=0,ft=0,J=0,bt=0,ot,st,vt,Ut,St,_t=null,It=0,wt;const yt=new Uint16Array(MAXBITS+1),rt=new Uint16Array(MAXBITS+1);let pt=null,W=0,kt,G,At;for(T=0;T<=MAXBITS;T++)yt[T]=0;for(R=0;R<_;R++)yt[v[d+R]]++;for(q=O,U=MAXBITS;U>=1&&yt[U]===0;U--);if(q>U&&(q=U),U===0)return p[x++]=1<<24|64<<16|0,p[x++]=1<<24|64<<16|0,A.bits=1,0;for(F=1;F<U&&yt[F]===0;F++);for(q<F&&(q=F),ft=1,T=1;T<=MAXBITS;T++)if(ft<<=1,ft-=yt[T],ft<0)return-1;if(ft>0&&(f===CODES$1||U!==1))return-1;for(rt[1]=0,T=1;T<MAXBITS;T++)rt[T+1]=rt[T]+yt[T];for(R=0;R<_;R++)v[d+R]!==0&&(b[rt[v[d+R]]++]=R);if(f===CODES$1?(_t=pt=b,wt=19):f===LENS$1?(_t=lbase,It-=257,pt=lext,W-=257,wt=256):(_t=dbase,pt=dext,wt=-1),bt=0,R=0,T=F,St=x,Q=q,nt=0,vt=-1,J=1<<q,Ut=J-1,f===LENS$1&&J>ENOUGH_LENS$1||f===DISTS$1&&J>ENOUGH_DISTS$1)return 1;for(;;){kt=T-nt,b[R]<wt?(G=0,At=b[R]):b[R]>wt?(G=pt[W+b[R]],At=_t[It+b[R]]):(G=32+64,At=0),ot=1<<T-nt,st=1<<Q,F=st;do st-=ot,p[St+(bt>>nt)+st]=kt<<24|G<<16|At|0;while(st!==0);for(ot=1<<T-1;bt&ot;)ot>>=1;if(ot!==0?(bt&=ot-1,bt+=ot):bt=0,R++,--yt[T]===0){if(T===U)break;T=v[d+b[R]]}if(T>q&&(bt&Ut)!==vt){for(nt===0&&(nt=q),St+=F,Q=T-nt,ft=1<<Q;Q+nt<U&&(ft-=yt[Q+nt],!(ft<=0));)Q++,ft<<=1;if(J+=1<<Q,f===LENS$1&&J>ENOUGH_LENS$1||f===DISTS$1&&J>ENOUGH_DISTS$1)return 1;vt=bt&Ut,p[vt]=q<<24|Q<<16|St-x|0}}return bt!==0&&(p[St+bt]=T-nt<<24|64<<16|0),A.bits=q,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=f=>(f>>>24&255)+(f>>>8&65280)+((f&65280)<<8)+((f&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=f=>{if(!f||!f.state)return Z_STREAM_ERROR$1;const v=f.state;return f.total_in=f.total_out=v.total=0,f.msg="",v.wrap&&(f.adler=v.wrap&1),v.mode=HEAD,v.last=0,v.havedict=0,v.dmax=32768,v.head=null,v.hold=0,v.bits=0,v.lencode=v.lendyn=new Int32Array(ENOUGH_LENS),v.distcode=v.distdyn=new Int32Array(ENOUGH_DISTS),v.sane=1,v.back=-1,Z_OK$1},inflateReset=f=>{if(!f||!f.state)return Z_STREAM_ERROR$1;const v=f.state;return v.wsize=0,v.whave=0,v.wnext=0,inflateResetKeep(f)},inflateReset2=(f,v)=>{let d;if(!f||!f.state)return Z_STREAM_ERROR$1;const _=f.state;return v<0?(d=0,v=-v):(d=(v>>4)+1,v<48&&(v&=15)),v&&(v<8||v>15)?Z_STREAM_ERROR$1:(_.window!==null&&_.wbits!==v&&(_.window=null),_.wrap=d,_.wbits=v,inflateReset(f))},inflateInit2=(f,v)=>{if(!f)return Z_STREAM_ERROR$1;const d=new InflateState;f.state=d,d.window=null;const _=inflateReset2(f,v);return _!==Z_OK$1&&(f.state=null),_},inflateInit=f=>inflateInit2(f,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=f=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let v=0;for(;v<144;)f.lens[v++]=8;for(;v<256;)f.lens[v++]=9;for(;v<280;)f.lens[v++]=7;for(;v<288;)f.lens[v++]=8;for(inftrees(LENS,f.lens,0,288,lenfix,0,f.work,{bits:9}),v=0;v<32;)f.lens[v++]=5;inftrees(DISTS,f.lens,0,32,distfix,0,f.work,{bits:5}),virgin=!1}f.lencode=lenfix,f.lenbits=9,f.distcode=distfix,f.distbits=5},updatewindow=(f,v,d,_)=>{let p;const x=f.state;return x.window===null&&(x.wsize=1<<x.wbits,x.wnext=0,x.whave=0,x.window=new Uint8Array(x.wsize)),_>=x.wsize?(x.window.set(v.subarray(d-x.wsize,d),0),x.wnext=0,x.whave=x.wsize):(p=x.wsize-x.wnext,p>_&&(p=_),x.window.set(v.subarray(d-_,d-_+p),x.wnext),_-=p,_?(x.window.set(v.subarray(d-_,d),0),x.wnext=_,x.whave=x.wsize):(x.wnext+=p,x.wnext===x.wsize&&(x.wnext=0),x.whave<x.wsize&&(x.whave+=p))),0},inflate$2=(f,v)=>{let d,_,p,x,b,A,O,T,R,F,U,q,Q,nt,ft=0,J,bt,ot,st,vt,Ut,St,_t;const It=new Uint8Array(4);let wt,yt;const rt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!f||!f.state||!f.output||!f.input&&f.avail_in!==0)return Z_STREAM_ERROR$1;d=f.state,d.mode===TYPE&&(d.mode=TYPEDO),b=f.next_out,p=f.output,O=f.avail_out,x=f.next_in,_=f.input,A=f.avail_in,T=d.hold,R=d.bits,F=A,U=O,_t=Z_OK$1;t:for(;;)switch(d.mode){case HEAD:if(d.wrap===0){d.mode=TYPEDO;break}for(;R<16;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}if(d.wrap&2&&T===35615){d.check=0,It[0]=T&255,It[1]=T>>>8&255,d.check=crc32_1(d.check,It,2,0),T=0,R=0,d.mode=FLAGS;break}if(d.flags=0,d.head&&(d.head.done=!1),!(d.wrap&1)||(((T&255)<<8)+(T>>8))%31){f.msg="incorrect header check",d.mode=BAD;break}if((T&15)!==Z_DEFLATED){f.msg="unknown compression method",d.mode=BAD;break}if(T>>>=4,R-=4,St=(T&15)+8,d.wbits===0)d.wbits=St;else if(St>d.wbits){f.msg="invalid window size",d.mode=BAD;break}d.dmax=1<<d.wbits,f.adler=d.check=1,d.mode=T&512?DICTID:TYPE,T=0,R=0;break;case FLAGS:for(;R<16;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}if(d.flags=T,(d.flags&255)!==Z_DEFLATED){f.msg="unknown compression method",d.mode=BAD;break}if(d.flags&57344){f.msg="unknown header flags set",d.mode=BAD;break}d.head&&(d.head.text=T>>8&1),d.flags&512&&(It[0]=T&255,It[1]=T>>>8&255,d.check=crc32_1(d.check,It,2,0)),T=0,R=0,d.mode=TIME;case TIME:for(;R<32;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}d.head&&(d.head.time=T),d.flags&512&&(It[0]=T&255,It[1]=T>>>8&255,It[2]=T>>>16&255,It[3]=T>>>24&255,d.check=crc32_1(d.check,It,4,0)),T=0,R=0,d.mode=OS;case OS:for(;R<16;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}d.head&&(d.head.xflags=T&255,d.head.os=T>>8),d.flags&512&&(It[0]=T&255,It[1]=T>>>8&255,d.check=crc32_1(d.check,It,2,0)),T=0,R=0,d.mode=EXLEN;case EXLEN:if(d.flags&1024){for(;R<16;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}d.length=T,d.head&&(d.head.extra_len=T),d.flags&512&&(It[0]=T&255,It[1]=T>>>8&255,d.check=crc32_1(d.check,It,2,0)),T=0,R=0}else d.head&&(d.head.extra=null);d.mode=EXTRA;case EXTRA:if(d.flags&1024&&(q=d.length,q>A&&(q=A),q&&(d.head&&(St=d.head.extra_len-d.length,d.head.extra||(d.head.extra=new Uint8Array(d.head.extra_len)),d.head.extra.set(_.subarray(x,x+q),St)),d.flags&512&&(d.check=crc32_1(d.check,_,q,x)),A-=q,x+=q,d.length-=q),d.length))break t;d.length=0,d.mode=NAME;case NAME:if(d.flags&2048){if(A===0)break t;q=0;do St=_[x+q++],d.head&&St&&d.length<65536&&(d.head.name+=String.fromCharCode(St));while(St&&q<A);if(d.flags&512&&(d.check=crc32_1(d.check,_,q,x)),A-=q,x+=q,St)break t}else d.head&&(d.head.name=null);d.length=0,d.mode=COMMENT;case COMMENT:if(d.flags&4096){if(A===0)break t;q=0;do St=_[x+q++],d.head&&St&&d.length<65536&&(d.head.comment+=String.fromCharCode(St));while(St&&q<A);if(d.flags&512&&(d.check=crc32_1(d.check,_,q,x)),A-=q,x+=q,St)break t}else d.head&&(d.head.comment=null);d.mode=HCRC;case HCRC:if(d.flags&512){for(;R<16;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}if(T!==(d.check&65535)){f.msg="header crc mismatch",d.mode=BAD;break}T=0,R=0}d.head&&(d.head.hcrc=d.flags>>9&1,d.head.done=!0),f.adler=d.check=0,d.mode=TYPE;break;case DICTID:for(;R<32;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}f.adler=d.check=zswap32(T),T=0,R=0,d.mode=DICT;case DICT:if(d.havedict===0)return f.next_out=b,f.avail_out=O,f.next_in=x,f.avail_in=A,d.hold=T,d.bits=R,Z_NEED_DICT$1;f.adler=d.check=1,d.mode=TYPE;case TYPE:if(v===Z_BLOCK||v===Z_TREES)break t;case TYPEDO:if(d.last){T>>>=R&7,R-=R&7,d.mode=CHECK;break}for(;R<3;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}switch(d.last=T&1,T>>>=1,R-=1,T&3){case 0:d.mode=STORED;break;case 1:if(fixedtables(d),d.mode=LEN_,v===Z_TREES){T>>>=2,R-=2;break t}break;case 2:d.mode=TABLE;break;case 3:f.msg="invalid block type",d.mode=BAD}T>>>=2,R-=2;break;case STORED:for(T>>>=R&7,R-=R&7;R<32;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}if((T&65535)!==(T>>>16^65535)){f.msg="invalid stored block lengths",d.mode=BAD;break}if(d.length=T&65535,T=0,R=0,d.mode=COPY_,v===Z_TREES)break t;case COPY_:d.mode=COPY;case COPY:if(q=d.length,q){if(q>A&&(q=A),q>O&&(q=O),q===0)break t;p.set(_.subarray(x,x+q),b),A-=q,x+=q,O-=q,b+=q,d.length-=q;break}d.mode=TYPE;break;case TABLE:for(;R<14;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}if(d.nlen=(T&31)+257,T>>>=5,R-=5,d.ndist=(T&31)+1,T>>>=5,R-=5,d.ncode=(T&15)+4,T>>>=4,R-=4,d.nlen>286||d.ndist>30){f.msg="too many length or distance symbols",d.mode=BAD;break}d.have=0,d.mode=LENLENS;case LENLENS:for(;d.have<d.ncode;){for(;R<3;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}d.lens[rt[d.have++]]=T&7,T>>>=3,R-=3}for(;d.have<19;)d.lens[rt[d.have++]]=0;if(d.lencode=d.lendyn,d.lenbits=7,wt={bits:d.lenbits},_t=inftrees(CODES,d.lens,0,19,d.lencode,0,d.work,wt),d.lenbits=wt.bits,_t){f.msg="invalid code lengths set",d.mode=BAD;break}d.have=0,d.mode=CODELENS;case CODELENS:for(;d.have<d.nlen+d.ndist;){for(;ft=d.lencode[T&(1<<d.lenbits)-1],J=ft>>>24,bt=ft>>>16&255,ot=ft&65535,!(J<=R);){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}if(ot<16)T>>>=J,R-=J,d.lens[d.have++]=ot;else{if(ot===16){for(yt=J+2;R<yt;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}if(T>>>=J,R-=J,d.have===0){f.msg="invalid bit length repeat",d.mode=BAD;break}St=d.lens[d.have-1],q=3+(T&3),T>>>=2,R-=2}else if(ot===17){for(yt=J+3;R<yt;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}T>>>=J,R-=J,St=0,q=3+(T&7),T>>>=3,R-=3}else{for(yt=J+7;R<yt;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}T>>>=J,R-=J,St=0,q=11+(T&127),T>>>=7,R-=7}if(d.have+q>d.nlen+d.ndist){f.msg="invalid bit length repeat",d.mode=BAD;break}for(;q--;)d.lens[d.have++]=St}}if(d.mode===BAD)break;if(d.lens[256]===0){f.msg="invalid code -- missing end-of-block",d.mode=BAD;break}if(d.lenbits=9,wt={bits:d.lenbits},_t=inftrees(LENS,d.lens,0,d.nlen,d.lencode,0,d.work,wt),d.lenbits=wt.bits,_t){f.msg="invalid literal/lengths set",d.mode=BAD;break}if(d.distbits=6,d.distcode=d.distdyn,wt={bits:d.distbits},_t=inftrees(DISTS,d.lens,d.nlen,d.ndist,d.distcode,0,d.work,wt),d.distbits=wt.bits,_t){f.msg="invalid distances set",d.mode=BAD;break}if(d.mode=LEN_,v===Z_TREES)break t;case LEN_:d.mode=LEN;case LEN:if(A>=6&&O>=258){f.next_out=b,f.avail_out=O,f.next_in=x,f.avail_in=A,d.hold=T,d.bits=R,inffast(f,U),b=f.next_out,p=f.output,O=f.avail_out,x=f.next_in,_=f.input,A=f.avail_in,T=d.hold,R=d.bits,d.mode===TYPE&&(d.back=-1);break}for(d.back=0;ft=d.lencode[T&(1<<d.lenbits)-1],J=ft>>>24,bt=ft>>>16&255,ot=ft&65535,!(J<=R);){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}if(bt&&(bt&240)===0){for(st=J,vt=bt,Ut=ot;ft=d.lencode[Ut+((T&(1<<st+vt)-1)>>st)],J=ft>>>24,bt=ft>>>16&255,ot=ft&65535,!(st+J<=R);){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}T>>>=st,R-=st,d.back+=st}if(T>>>=J,R-=J,d.back+=J,d.length=ot,bt===0){d.mode=LIT;break}if(bt&32){d.back=-1,d.mode=TYPE;break}if(bt&64){f.msg="invalid literal/length code",d.mode=BAD;break}d.extra=bt&15,d.mode=LENEXT;case LENEXT:if(d.extra){for(yt=d.extra;R<yt;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}d.length+=T&(1<<d.extra)-1,T>>>=d.extra,R-=d.extra,d.back+=d.extra}d.was=d.length,d.mode=DIST;case DIST:for(;ft=d.distcode[T&(1<<d.distbits)-1],J=ft>>>24,bt=ft>>>16&255,ot=ft&65535,!(J<=R);){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}if((bt&240)===0){for(st=J,vt=bt,Ut=ot;ft=d.distcode[Ut+((T&(1<<st+vt)-1)>>st)],J=ft>>>24,bt=ft>>>16&255,ot=ft&65535,!(st+J<=R);){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}T>>>=st,R-=st,d.back+=st}if(T>>>=J,R-=J,d.back+=J,bt&64){f.msg="invalid distance code",d.mode=BAD;break}d.offset=ot,d.extra=bt&15,d.mode=DISTEXT;case DISTEXT:if(d.extra){for(yt=d.extra;R<yt;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}d.offset+=T&(1<<d.extra)-1,T>>>=d.extra,R-=d.extra,d.back+=d.extra}if(d.offset>d.dmax){f.msg="invalid distance too far back",d.mode=BAD;break}d.mode=MATCH;case MATCH:if(O===0)break t;if(q=U-O,d.offset>q){if(q=d.offset-q,q>d.whave&&d.sane){f.msg="invalid distance too far back",d.mode=BAD;break}q>d.wnext?(q-=d.wnext,Q=d.wsize-q):Q=d.wnext-q,q>d.length&&(q=d.length),nt=d.window}else nt=p,Q=b-d.offset,q=d.length;q>O&&(q=O),O-=q,d.length-=q;do p[b++]=nt[Q++];while(--q);d.length===0&&(d.mode=LEN);break;case LIT:if(O===0)break t;p[b++]=d.length,O--,d.mode=LEN;break;case CHECK:if(d.wrap){for(;R<32;){if(A===0)break t;A--,T|=_[x++]<<R,R+=8}if(U-=O,f.total_out+=U,d.total+=U,U&&(f.adler=d.check=d.flags?crc32_1(d.check,p,U,b-U):adler32_1(d.check,p,U,b-U)),U=O,(d.flags?T:zswap32(T))!==d.check){f.msg="incorrect data check",d.mode=BAD;break}T=0,R=0}d.mode=LENGTH;case LENGTH:if(d.wrap&&d.flags){for(;R<32;){if(A===0)break t;A--,T+=_[x++]<<R,R+=8}if(T!==(d.total&4294967295)){f.msg="incorrect length check",d.mode=BAD;break}T=0,R=0}d.mode=DONE;case DONE:_t=Z_STREAM_END$1;break t;case BAD:_t=Z_DATA_ERROR$1;break t;case MEM:return Z_MEM_ERROR$1;case SYNC:default:return Z_STREAM_ERROR$1}return f.next_out=b,f.avail_out=O,f.next_in=x,f.avail_in=A,d.hold=T,d.bits=R,(d.wsize||U!==f.avail_out&&d.mode<BAD&&(d.mode<CHECK||v!==Z_FINISH$1))&&updatewindow(f,f.output,f.next_out,U-f.avail_out),F-=f.avail_in,U-=f.avail_out,f.total_in+=F,f.total_out+=U,d.total+=U,d.wrap&&U&&(f.adler=d.check=d.flags?crc32_1(d.check,p,U,f.next_out-U):adler32_1(d.check,p,U,f.next_out-U)),f.data_type=d.bits+(d.last?64:0)+(d.mode===TYPE?128:0)+(d.mode===LEN_||d.mode===COPY_?256:0),(F===0&&U===0||v===Z_FINISH$1)&&_t===Z_OK$1&&(_t=Z_BUF_ERROR),_t},inflateEnd=f=>{if(!f||!f.state)return Z_STREAM_ERROR$1;let v=f.state;return v.window&&(v.window=null),f.state=null,Z_OK$1},inflateGetHeader=(f,v)=>{if(!f||!f.state)return Z_STREAM_ERROR$1;const d=f.state;return(d.wrap&2)===0?Z_STREAM_ERROR$1:(d.head=v,v.done=!1,Z_OK$1)},inflateSetDictionary=(f,v)=>{const d=v.length;let _,p,x;return!f||!f.state||(_=f.state,_.wrap!==0&&_.mode!==DICT)?Z_STREAM_ERROR$1:_.mode===DICT&&(p=1,p=adler32_1(p,v,d,0),p!==_.check)?Z_DATA_ERROR$1:(x=updatewindow(f,v,d,d),x?(_.mode=MEM,Z_MEM_ERROR$1):(_.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(f){this.options=common.assign({chunkSize:1024*64,windowBits:15,to:""},f||{});const v=this.options;v.raw&&v.windowBits>=0&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),v.windowBits>=0&&v.windowBits<16&&!(f&&f.windowBits)&&(v.windowBits+=32),v.windowBits>15&&v.windowBits<48&&(v.windowBits&15)===0&&(v.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let d=inflate_1$2.inflateInit2(this.strm,v.windowBits);if(d!==Z_OK)throw new Error(messages[d]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),v.dictionary&&(typeof v.dictionary=="string"?v.dictionary=strings.string2buf(v.dictionary):toString.call(v.dictionary)==="[object ArrayBuffer]"&&(v.dictionary=new Uint8Array(v.dictionary)),v.raw&&(d=inflate_1$2.inflateSetDictionary(this.strm,v.dictionary),d!==Z_OK)))throw new Error(messages[d])}Inflate$1.prototype.push=function(f,v){const d=this.strm,_=this.options.chunkSize,p=this.options.dictionary;let x,b,A;if(this.ended)return!1;for(v===~~v?b=v:b=v===!0?Z_FINISH:Z_NO_FLUSH,toString.call(f)==="[object ArrayBuffer]"?d.input=new Uint8Array(f):d.input=f,d.next_in=0,d.avail_in=d.input.length;;){for(d.avail_out===0&&(d.output=new Uint8Array(_),d.next_out=0,d.avail_out=_),x=inflate_1$2.inflate(d,b),x===Z_NEED_DICT&&p&&(x=inflate_1$2.inflateSetDictionary(d,p),x===Z_OK?x=inflate_1$2.inflate(d,b):x===Z_DATA_ERROR&&(x=Z_NEED_DICT));d.avail_in>0&&x===Z_STREAM_END&&d.state.wrap>0&&f[d.next_in]!==0;)inflate_1$2.inflateReset(d),x=inflate_1$2.inflate(d,b);switch(x){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(x),this.ended=!0,!1}if(A=d.avail_out,d.next_out&&(d.avail_out===0||x===Z_STREAM_END))if(this.options.to==="string"){let O=strings.utf8border(d.output,d.next_out),T=d.next_out-O,R=strings.buf2string(d.output,O);d.next_out=T,d.avail_out=_-T,T&&d.output.set(d.output.subarray(O,O+T),0),this.onData(R)}else this.onData(d.output.length===d.next_out?d.output:d.output.subarray(0,d.next_out));if(!(x===Z_OK&&A===0)){if(x===Z_STREAM_END)return x=inflate_1$2.inflateEnd(this.strm),this.onEnd(x),this.ended=!0,!0;if(d.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(f){this.chunks.push(f)};Inflate$1.prototype.onEnd=function(f){f===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg};function inflate$1(f,v){const d=new Inflate$1(v);if(d.push(f),d.err)throw d.msg||messages[d.err];return d.result}function inflateRaw$1(f,v){return v=v||{},v.raw=!0,inflate$1(f,v)}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=(f=>{let v={};return f.forEach((d,_)=>v[d]=_),v})(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):(f,v=d=>d)=>new Uint8Array(Array.prototype.slice.call(f,0).map(v)),_mkUriSafe=f=>f.replace(/=/g,"").replace(/[+\/]/g,v=>v=="+"?"-":"_"),_tidyB64=f=>f.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=f=>{let v,d,_,p,x="";const b=f.length%3;for(let A=0;A<f.length;){if((d=f.charCodeAt(A++))>255||(_=f.charCodeAt(A++))>255||(p=f.charCodeAt(A++))>255)throw new TypeError("invalid character found");v=d<<16|_<<8|p,x+=b64chs[v>>18&63]+b64chs[v>>12&63]+b64chs[v>>6&63]+b64chs[v&63]}return b?x.slice(0,b-3)+"===".substring(b):x},_btoa=_hasbtoa?f=>btoa(f):_hasBuffer?f=>Buffer.from(f,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?f=>Buffer.from(f).toString("base64"):f=>{let d=[];for(let _=0,p=f.length;_<p;_+=4096)d.push(_fromCC.apply(null,f.subarray(_,_+4096)));return _btoa(d.join(""))},fromUint8Array=(f,v=!1)=>v?_mkUriSafe(_fromUint8Array(f)):_fromUint8Array(f),cb_utob=f=>{if(f.length<2){var v=f.charCodeAt(0);return v<128?f:v<2048?_fromCC(192|v>>>6)+_fromCC(128|v&63):_fromCC(224|v>>>12&15)+_fromCC(128|v>>>6&63)+_fromCC(128|v&63)}else{var v=65536+(f.charCodeAt(0)-55296)*1024+(f.charCodeAt(1)-56320);return _fromCC(240|v>>>18&7)+_fromCC(128|v>>>12&63)+_fromCC(128|v>>>6&63)+_fromCC(128|v&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=f=>f.replace(re_utob,cb_utob),_encode=_hasBuffer?f=>Buffer.from(f,"utf8").toString("base64"):_TE?f=>_fromUint8Array(_TE.encode(f)):f=>_btoa(utob(f)),encode=(f,v=!1)=>v?_mkUriSafe(_encode(f)):_encode(f),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=f=>{switch(f.length){case 4:var v=(7&f.charCodeAt(0))<<18|(63&f.charCodeAt(1))<<12|(63&f.charCodeAt(2))<<6|63&f.charCodeAt(3),d=v-65536;return _fromCC((d>>>10)+55296)+_fromCC((d&1023)+56320);case 3:return _fromCC((15&f.charCodeAt(0))<<12|(63&f.charCodeAt(1))<<6|63&f.charCodeAt(2));default:return _fromCC((31&f.charCodeAt(0))<<6|63&f.charCodeAt(1))}},btou=f=>f.replace(re_btou,cb_btou),atobPolyfill=f=>{if(f=f.replace(/\s+/g,""),!b64re.test(f))throw new TypeError("malformed base64.");f+="==".slice(2-(f.length&3));let v,d="",_,p;for(let x=0;x<f.length;)v=b64tab[f.charAt(x++)]<<18|b64tab[f.charAt(x++)]<<12|(_=b64tab[f.charAt(x++)])<<6|(p=b64tab[f.charAt(x++)]),d+=_===64?_fromCC(v>>16&255):p===64?_fromCC(v>>16&255,v>>8&255):_fromCC(v>>16&255,v>>8&255,v&255);return d},_atob=_hasatob?f=>atob(_tidyB64(f)):_hasBuffer?f=>Buffer.from(f,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?f=>_U8Afrom(Buffer.from(f,"base64")):f=>_U8Afrom(_atob(f),v=>v.charCodeAt(0)),toUint8Array=f=>_toUint8Array(_unURI(f)),_decode=_hasBuffer?f=>Buffer.from(f,"base64").toString("utf8"):_TD?f=>_TD.decode(_toUint8Array(f)):f=>btou(_atob(f)),_unURI=f=>_tidyB64(f.replace(/[-_]/g,v=>v=="-"?"+":"/")),decode=f=>_decode(_unURI(f)),base64Serde={serialize:f=>encode(f,!0),deserialize:f=>decode(f)},pakoSerde={serialize:f=>{const v=new TextEncoder().encode(f),d=deflate_1(v,{level:9});return fromUint8Array(d,!0)},deserialize:f=>{const v=toUint8Array(f);return inflate_1(v,{to:"string"})}},serdes={base64:base64Serde,pako:pakoSerde},serializeState=(f,v="pako")=>{if(serdes[v]===void 0)throw new Error(`Unknown serde type: ${v}`);const d=JSON.stringify(f),_=serdes[v].serialize(d);return`${v}:${_}`},deserializeState=f=>{let v,d;if(f.includes(":")){let p;if([p,d]=f.split(":"),p in serdes)v=p;else throw new Error(`Unknown serde type: ${p}`)}else v="base64",d=f;const _=serdes[v].deserialize(d);return JSON.parse(_)};var dist={},words={};(function(f){var v=commonjsGlobal&&commonjsGlobal.__values||function(_){var p=typeof Symbol=="function"&&Symbol.iterator,x=p&&_[p],b=0;if(x)return x.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&b>=_.length&&(_=void 0),{value:_&&_[b++],done:!_}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(f,"__esModule",{value:!0}),f.getWordsByCategory=f.wordList=void 0,f.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animals"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"better",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function d(_,p){var x,b;p===void 0&&(p=[]);var A=new Set(p),O=[];try{for(var T=v(f.wordList[_]),R=T.next();!R.done;R=T.next()){var F=R.value;(p.length===0||F.categories.some(function(U){return A.has(U)}))&&O.push(F.word)}}catch(U){x={error:U}}finally{try{R&&!R.done&&(b=T.return)&&b.call(T)}finally{if(x)throw x.error}}return O}f.getWordsByCategory=d})(words);var __assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(f){for(var v,d=1,_=arguments.length;d<_;d++){v=arguments[d];for(var p in v)Object.prototype.hasOwnProperty.call(v,p)&&(f[p]=v[p])}return f},__assign.apply(this,arguments)};Object.defineProperty(dist,"__esModule",{value:!0});dist.totalUniqueSlugs=generateSlug_1=dist.generateSlug=void 0;var words_1=words,DEFAULT_NUMBER_OF_WORDS=3;function generateSlug(f,v){for(var d=f||DEFAULT_NUMBER_OF_WORDS,_={partsOfSpeech:getDefaultPartsOfSpeech(d),categories:{},format:"kebab"},p=__assign(__assign({},_),v),x=[],b=0;b<d;b++){var A=p.partsOfSpeech[b],O=words_1.getWordsByCategory(p.partsOfSpeech[b],p.categories[A]),T=O[Math.floor(Math.random()*O.length)];x.push(T)}return formatter(x,p.format)}var generateSlug_1=dist.generateSlug=generateSlug;function getDefaultPartsOfSpeech(f){for(var v=[],d=0;d<f-1;d++)v.push("adjective");return v.push("noun"),v}function formatter(f,v){return v==="kebab"?f.join("-").toLowerCase():v==="camel"?f.map(function(d,_){return _===0?d.toLowerCase():d[0].toUpperCase()+d.slice(1).toLowerCase()}).join(""):v==="lower"?f.join(" ").toLowerCase():v==="sentence"?f.map(function(d,_){return _===0?d[0].toUpperCase()+d.slice(1).toLowerCase():d}).join(" "):f.map(function(d){return d[0].toUpperCase()+d.slice(1).toLowerCase()}).join(" ")}function totalUniqueSlugs(f,v){for(var d,_,p=words_1.getWordsByCategory("adjective",(d=v==null?void 0:v.categories)===null||d===void 0?void 0:d.adjective).length,x=words_1.getWordsByCategory("noun",(_=v==null?void 0:v.categories)===null||_===void 0?void 0:_.noun).length,b={adjective:p,noun:x},A=f||DEFAULT_NUMBER_OF_WORDS,O=(v==null?void 0:v.partsOfSpeech)||getDefaultPartsOfSpeech(A),T=1,R=0;R<A;R++)T*=b[O[R]];return T}dist.totalUniqueSlugs=totalUniqueSlugs;var getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(f){return typeof f=="string"&®EX.test(f)}var byteToHex=[];for(var i=0;i<256;++i)byteToHex.push((i+256).toString(16).substr(1));function stringify(f){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,d=(byteToHex[f[v+0]]+byteToHex[f[v+1]]+byteToHex[f[v+2]]+byteToHex[f[v+3]]+"-"+byteToHex[f[v+4]]+byteToHex[f[v+5]]+"-"+byteToHex[f[v+6]]+byteToHex[f[v+7]]+"-"+byteToHex[f[v+8]]+byteToHex[f[v+9]]+"-"+byteToHex[f[v+10]]+byteToHex[f[v+11]]+byteToHex[f[v+12]]+byteToHex[f[v+13]]+byteToHex[f[v+14]]+byteToHex[f[v+15]]).toLowerCase();if(!validate(d))throw TypeError("Stringified UUID is invalid");return d}function v4(f,v,d){f=f||{};var _=f.random||(f.rng||rng)();if(_[6]=_[6]&15|64,_[8]=_[8]&63|128,v){d=d||0;for(var p=0;p<16;++p)v[d+p]=_[p];return v}return stringify(_)}const MAX_AUTO_HISTORY_LENGTH=30,historyModeStore=persist(writable("manual"),localStorage(),"autoHistoryMode"),autoHistoryStore=persist(writable([]),localStorage(),"autoHistoryStore"),manualHistoryStore=persist(writable([]),localStorage(),"manualHistoryStore"),loaderHistoryStore=writable([]),historyStore=derived([historyModeStore,autoHistoryStore,manualHistoryStore,loaderHistoryStore],([f,v,d,_],p)=>{p(f==="auto"?v:f==="manual"?d:f==="loader"?_:v)}),addHistoryEntry=f=>{const v={...f,id:v4()};if(v.type==="loader"){loaderHistoryStore.update(d=>[v,...d]);return}v.name||(v.name=generateSlug_1(2)),v.type==="auto"?autoHistoryStore.update(d=>(d.length>=MAX_AUTO_HISTORY_LENGTH&&(d=d.slice(0,MAX_AUTO_HISTORY_LENGTH-1)),[v,...d])):v.type==="manual"&&(manualHistoryStore.update(d=>[v,...d]),logEvent("history",{action:"save"}))},clearHistoryData=f=>{(get_store_value(historyModeStore)==="auto"?autoHistoryStore:manualHistoryStore).update(v=>(get_store_value(historyModeStore)!=="loader"&&(v=v.filter(({id:d})=>f&&d!=f),logEvent("history",{action:"clear",type:f?"single":"all"})),v))},getPreviousState=f=>{const v=get_store_value(f?autoHistoryStore:manualHistoryStore);return v.length>0?JSON.stringify(v[0].state):""},restoreHistory=f=>{const v=f.filter(validateEntry),d=f.length-v.length;if(d>0&&(console.error(`${d} invalid history entries were removed.`),console.error(f)),v.length>0){let _=0;(v[0].type==="auto"?autoHistoryStore:manualHistoryStore).update(p=>{const x=new Set(p.map(({id:O})=>O)),b=v.filter(({id:O})=>!x.has(O));_=b.length;const A=[...p,...b];return A.sort((O,T)=>T.time-O.time),A}),alert(`${_} entries restored. ${d} invalid, ${v.length-_} duplicates.`),logEvent("history",{action:"restore",success:_,invalid:d,duplicates:v.length-_})}else alert("No valid entries found.")},injectHistoryIDs=()=>{const f=v=>{for(const d of v)d.id||(d.id=v4());return v};autoHistoryStore.update(f),manualHistoryStore.update(f)},validateEntry=f=>f.type&&f.state&&f.time&&!0,codeFileName="code.mmd",configFileName="config.json",isValidGist=f=>codeFileName in f,getFileContent=async f=>f.truncated?await(await fetch(f.raw_url)).text():f.content,getGistData=async f=>{const[v,d,_,p]=f.split("github.com").pop().split("/"),{html_url:x,files:b,history:A}=await(await fetch(`https://api.github.com/gists/${_}${p?"/"+p:""}`)).json();if(isValidGist(b)){const O=await getFileContent(b[codeFileName]);let T;configFileName in b&&(T=await getFileContent(b[configFileName]));const R=A[0];return{url:`${x}/${R.version}`,code:O,config:T,author:R.user.login,time:new Date(R.committed_at).getTime(),version:R.version.slice(-7)}}else throw"Invalid gist provided"},getStateFromGist=(f,v=f.url)=>{const d={...defaultState,code:f.code,loader:{type:"gist",config:{url:v}}};return f.config&&(d.mermaid=f.config),d},loadGistData=async f=>{try{const[v,d,_,p]=f.split("github.com").pop().split("/"),{history:x}=await(await fetch(`https://api.github.com/gists/${_}${p?"/"+p:""}`)).json(),b=[];for(const O of x){const T=await getGistData(O.url).catch(()=>{});T&&b.push(T)}if(b.length===0)throw"Invalid gist provided";b.reverse();const A=getStateFromGist(b.slice(-1).pop(),f);for(const O of b)addHistoryEntry({state:getStateFromGist(O),time:O.time,type:"loader",url:O.url,name:`${O.author} v${O.version}`});return A}catch(v){console.error(v)}},loaders={gist:loadGistData},loadDataFromUrl=async()=>{const f=new URLSearchParams(window.location.search);let v=defaultState,d,_,p=!1;const x=f.get("code"),b=f.get("config");if(x&&(d=await(await fetch(x)).text(),p=!0),b?_=await(await fetch(b)).text():_=defaultState.mermaid,d)v={code:d,mermaid:_,loader:{type:"files",config:{codeURL:x,configURL:b}}};else for(const[A,O]of f.entries())if(A in loaders)try{v=await loaders[A](O),p=!0;break}catch(T){console.error(T)}p&&updateCodeStore({...v,autoSync:!0,updateDiagram:!0,updateEditor:!0})},loadStateFromURL=()=>{loadState(window.location.hash.slice(1))},syncDiagram=()=>{updateCodeStore({updateDiagram:!0})},initHandler=async()=>{loadStateFromURL(),await initLoading("Loading Gist...",loadDataFromUrl().catch(console.error)),syncDiagram(),initURLSubscription(),await initAnalytics(),analytics==null||analytics.page()},isMac=navigator.platform.toUpperCase().indexOf("MAC")>=0,cmdKey=isMac?"Cmd":"Ctrl",debounceEnabled=window.localStorage.getItem("noDebounce")!=="true";/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var t={2536:(f,v,d)=>{f=d.nmd(f);var _=function(){var p=function(Le,tr,nr,Ae){for(nr=nr||{},Ae=Le.length;Ae--;nr[Le[Ae]]=tr);return nr},x=[1,6],b=[1,7],A=[1,8],O=[1,9],T=[1,16],R=[1,11],F=[1,12],U=[1,13],q=[1,14],Q=[1,15],nt=[1,27],ft=[1,33],J=[1,34],bt=[1,35],ot=[1,36],st=[1,37],vt=[1,72],Ut=[1,73],St=[1,74],_t=[1,75],It=[1,76],wt=[1,77],yt=[1,78],rt=[1,38],pt=[1,39],W=[1,40],kt=[1,41],G=[1,42],At=[1,43],Mt=[1,44],Gt=[1,45],me=[1,46],Ze=[1,47],Ee=[1,48],pe=[1,49],we=[1,50],Oe=[1,51],De=[1,52],xe=[1,53],Ar=[1,54],be=[1,55],Qe=[1,56],Rt=[1,57],de=[1,59],ne=[1,60],Ct=[1,61],Te=[1,62],tt=[1,63],le=[1,64],ct=[1,65],Se=[1,66],ye=[1,67],ze=[1,68],or=[1,69],Xe=[24,52],ur=[24,44,46,47,48,49,50,51,52,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],Ne=[15,24,44,46,47,48,49,50,51,52,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],Be=[1,94],Ue=[1,95],Pe=[1,96],ve=[1,97],oe=[15,24,52],vr=[7,8,9,10,18,22,25,26,27,28],We=[15,24,43,52],cr=[15,24,43,52,86,87,89,90],He=[15,43],Tr=[44,46,47,48,49,50,51,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],Qr={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,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$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",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"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],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(Le,tr,nr,Ae,Cr,Bt,xn){var Vt=Bt.length-1;switch(Cr){case 4:Ae.setDirection("TB");break;case 5:Ae.setDirection("BT");break;case 6:Ae.setDirection("RL");break;case 7:Ae.setDirection("LR");break;case 11:console.log("open_directive: ",Bt[Vt]),Ae.parseDirective("%%{","open_directive");break;case 12:break;case 13:Bt[Vt]=Bt[Vt].trim().replace(/'/g,'"'),console.log("arg_directive: ",Bt[Vt]),Ae.parseDirective(Bt[Vt],"arg_directive");break;case 14:console.log("close_directive: ",Bt[Vt]),Ae.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:Ae.setC4Type(Bt[Vt-3]);break;case 26:Ae.setTitle(Bt[Vt].substring(6)),this.$=Bt[Vt].substring(6);break;case 27:Ae.setAccDescription(Bt[Vt].substring(15)),this.$=Bt[Vt].substring(15);break;case 28:this.$=Bt[Vt].trim(),Ae.setTitle(this.$);break;case 29:case 30:this.$=Bt[Vt].trim(),Ae.setAccDescription(this.$);break;case 35:case 36:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Bt[Vt].splice(2,0,"ENTERPRISE"),Ae.addPersonOrSystemBoundary(...Bt[Vt]),this.$=Bt[Vt];break;case 37:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addPersonOrSystemBoundary(...Bt[Vt]),this.$=Bt[Vt];break;case 38:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Bt[Vt].splice(2,0,"CONTAINER"),Ae.addContainerBoundary(...Bt[Vt]),this.$=Bt[Vt];break;case 39:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addDeploymentNode("node",...Bt[Vt]),this.$=Bt[Vt];break;case 40:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addDeploymentNode("nodeL",...Bt[Vt]),this.$=Bt[Vt];break;case 41:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addDeploymentNode("nodeR",...Bt[Vt]),this.$=Bt[Vt];break;case 42:Ae.popBoundaryParseStack();break;case 46:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addPersonOrSystem("person",...Bt[Vt]),this.$=Bt[Vt];break;case 47:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addPersonOrSystem("external_person",...Bt[Vt]),this.$=Bt[Vt];break;case 48:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addPersonOrSystem("system",...Bt[Vt]),this.$=Bt[Vt];break;case 49:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addPersonOrSystem("system_db",...Bt[Vt]),this.$=Bt[Vt];break;case 50:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addPersonOrSystem("system_queue",...Bt[Vt]),this.$=Bt[Vt];break;case 51:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addPersonOrSystem("external_system",...Bt[Vt]),this.$=Bt[Vt];break;case 52:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addPersonOrSystem("external_system_db",...Bt[Vt]),this.$=Bt[Vt];break;case 53:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addPersonOrSystem("external_system_queue",...Bt[Vt]),this.$=Bt[Vt];break;case 54:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addContainer("container",...Bt[Vt]),this.$=Bt[Vt];break;case 55:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addContainer("container_db",...Bt[Vt]),this.$=Bt[Vt];break;case 56:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addContainer("container_queue",...Bt[Vt]),this.$=Bt[Vt];break;case 57:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addContainer("external_container",...Bt[Vt]),this.$=Bt[Vt];break;case 58:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addContainer("external_container_db",...Bt[Vt]),this.$=Bt[Vt];break;case 59:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addContainer("external_container_queue",...Bt[Vt]),this.$=Bt[Vt];break;case 60:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addComponent("component",...Bt[Vt]),this.$=Bt[Vt];break;case 61:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addComponent("component_db",...Bt[Vt]),this.$=Bt[Vt];break;case 62:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addComponent("component_queue",...Bt[Vt]),this.$=Bt[Vt];break;case 63:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addComponent("external_component",...Bt[Vt]),this.$=Bt[Vt];break;case 64:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addComponent("external_component_db",...Bt[Vt]),this.$=Bt[Vt];break;case 65:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addComponent("external_component_queue",...Bt[Vt]),this.$=Bt[Vt];break;case 67:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addRel("rel",...Bt[Vt]),this.$=Bt[Vt];break;case 68:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addRel("birel",...Bt[Vt]),this.$=Bt[Vt];break;case 69:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addRel("rel_u",...Bt[Vt]),this.$=Bt[Vt];break;case 70:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addRel("rel_d",...Bt[Vt]),this.$=Bt[Vt];break;case 71:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addRel("rel_l",...Bt[Vt]),this.$=Bt[Vt];break;case 72:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addRel("rel_r",...Bt[Vt]),this.$=Bt[Vt];break;case 73:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.addRel("rel_b",...Bt[Vt]),this.$=Bt[Vt];break;case 74:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Bt[Vt].splice(0,1),Ae.addRel("rel",...Bt[Vt]),this.$=Bt[Vt];break;case 75:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.updateElStyle("update_el_style",...Bt[Vt]),this.$=Bt[Vt];break;case 76:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.updateRelStyle("update_rel_style",...Bt[Vt]),this.$=Bt[Vt];break;case 77:console.log(Bt[Vt-1],JSON.stringify(Bt[Vt])),Ae.updateLayoutConfig("update_layout_config",...Bt[Vt]),this.$=Bt[Vt];break;case 78:console.log("PUSH ATTRIBUTE: ",Bt[Vt]),this.$=[Bt[Vt]];break;case 79:console.log("PUSH ATTRIBUTE: ",Bt[Vt-1]),Bt[Vt].unshift(Bt[Vt-1]),this.$=Bt[Vt];break;case 80:case 82:this.$=Bt[Vt].trim();break;case 81:console.log("kv: ",Bt[Vt-1],Bt[Vt]);let Wr={};Wr[Bt[Vt-1].trim()]=Bt[Vt].trim(),this.$=Wr;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:x,8:b,9:A,10:O,11:5,12:10,18:T,22:R,25:F,26:U,27:q,28:Q},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:x,8:b,9:A,10:O,11:5,12:10,18:T,22:R,25:F,26:U,27:q,28:Q},{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},p([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:ft,33:J,34:bt,36:ot,38:st,39:58,40:70,42:71,44:vt,46:Ut,47:St,48:_t,49:It,50:wt,51:yt,53:32,54:rt,55:pt,56:W,57:kt,58:G,59:At,60:Mt,61:Gt,62:me,63:Ze,64:Ee,65:pe,66:we,67:Oe,68:De,69:xe,70:Ar,71:be,72:Qe,73:Rt,74:de,75:ne,76:Ct,77:Te,78:tt,79:le,80:ct,81:Se,82:ye,83:ze,84:or},{23:79,29:29,30:30,31:31,32:ft,33:J,34:bt,36:ot,38:st,39:58,40:70,42:71,44:vt,46:Ut,47:St,48:_t,49:It,50:wt,51:yt,53:32,54:rt,55:pt,56:W,57:kt,58:G,59:At,60:Mt,61:Gt,62:me,63:Ze,64:Ee,65:pe,66:we,67:Oe,68:De,69:xe,70:Ar,71:be,72:Qe,73:Rt,74:de,75:ne,76:Ct,77:Te,78:tt,79:le,80:ct,81:Se,82:ye,83:ze,84:or},{23:80,29:29,30:30,31:31,32:ft,33:J,34:bt,36:ot,38:st,39:58,40:70,42:71,44:vt,46:Ut,47:St,48:_t,49:It,50:wt,51:yt,53:32,54:rt,55:pt,56:W,57:kt,58:G,59:At,60:Mt,61:Gt,62:me,63:Ze,64:Ee,65:pe,66:we,67:Oe,68:De,69:xe,70:Ar,71:be,72:Qe,73:Rt,74:de,75:ne,76:Ct,77:Te,78:tt,79:le,80:ct,81:Se,82:ye,83:ze,84:or},{23:81,29:29,30:30,31:31,32:ft,33:J,34:bt,36:ot,38:st,39:58,40:70,42:71,44:vt,46:Ut,47:St,48:_t,49:It,50:wt,51:yt,53:32,54:rt,55:pt,56:W,57:kt,58:G,59:At,60:Mt,61:Gt,62:me,63:Ze,64:Ee,65:pe,66:we,67:Oe,68:De,69:xe,70:Ar,71:be,72:Qe,73:Rt,74:de,75:ne,76:Ct,77:Te,78:tt,79:le,80:ct,81:Se,82:ye,83:ze,84:or},{23:82,29:29,30:30,31:31,32:ft,33:J,34:bt,36:ot,38:st,39:58,40:70,42:71,44:vt,46:Ut,47:St,48:_t,49:It,50:wt,51:yt,53:32,54:rt,55:pt,56:W,57:kt,58:G,59:At,60:Mt,61:Gt,62:me,63:Ze,64:Ee,65:pe,66:we,67:Oe,68:De,69:xe,70:Ar,71:be,72:Qe,73:Rt,74:de,75:ne,76:Ct,77:Te,78:tt,79:le,80:ct,81:Se,82:ye,83:ze,84:or},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},p(Xe,[2,20],{53:32,39:58,40:70,42:71,30:87,44:vt,46:Ut,47:St,48:_t,49:It,50:wt,51:yt,54:rt,55:pt,56:W,57:kt,58:G,59:At,60:Mt,61:Gt,62:me,63:Ze,64:Ee,65:pe,66:we,67:Oe,68:De,69:xe,70:Ar,71:be,72:Qe,73:Rt,74:de,75:ne,76:Ct,77:Te,78:tt,79:le,80:ct,81:Se,82:ye,83:ze,84:or}),p(Xe,[2,21]),p(ur,[2,23],{15:[1,88]}),p(Xe,[2,43],{15:[1,89]}),p(Ne,[2,26]),p(Ne,[2,27]),{35:[1,90]},{37:[1,91]},p(Ne,[2,30]),{45:92,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:98,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:99,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:100,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:101,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:102,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:103,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:104,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:105,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:106,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:107,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:108,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:109,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:110,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:111,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:112,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:113,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:114,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:115,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:116,85:93,86:Be,87:Ue,89:Pe,90:ve},p(oe,[2,66]),{45:117,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:118,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:119,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:120,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:121,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:122,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:123,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:124,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:125,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:126,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:127,85:93,86:Be,87:Ue,89:Pe,90:ve},{30:128,39:58,40:70,42:71,44:vt,46:Ut,47:St,48:_t,49:It,50:wt,51:yt,53:32,54:rt,55:pt,56:W,57:kt,58:G,59:At,60:Mt,61:Gt,62:me,63:Ze,64:Ee,65:pe,66:we,67:Oe,68:De,69:xe,70:Ar,71:be,72:Qe,73:Rt,74:de,75:ne,76:Ct,77:Te,78:tt,79:le,80:ct,81:Se,82:ye,83:ze,84:or},{15:[1,130],43:[1,129]},{45:131,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:132,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:133,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:134,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:135,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:136,85:93,86:Be,87:Ue,89:Pe,90:ve},{45:137,85:93,86:Be,87:Ue,89:Pe,90:ve},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},p(vr,[2,9]),{14:142,21:nt},{21:[2,13]},{1:[2,15]},p(Xe,[2,22]),p(ur,[2,24],{31:31,29:143,32:ft,33:J,34:bt,36:ot,38:st}),p(Xe,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:ft,33:J,34:bt,36:ot,38:st,44:vt,46:Ut,47:St,48:_t,49:It,50:wt,51:yt,54:rt,55:pt,56:W,57:kt,58:G,59:At,60:Mt,61:Gt,62:me,63:Ze,64:Ee,65:pe,66:we,67:Oe,68:De,69:xe,70:Ar,71:be,72:Qe,73:Rt,74:de,75:ne,76:Ct,77:Te,78:tt,79:le,80:ct,81:Se,82:ye,83:ze,84:or}),p(Ne,[2,28]),p(Ne,[2,29]),p(oe,[2,46]),p(We,[2,78],{85:93,45:145,86:Be,87:Ue,89:Pe,90:ve}),p(cr,[2,80]),{88:[1,146]},p(cr,[2,82]),p(cr,[2,83]),p(oe,[2,47]),p(oe,[2,48]),p(oe,[2,49]),p(oe,[2,50]),p(oe,[2,51]),p(oe,[2,52]),p(oe,[2,53]),p(oe,[2,54]),p(oe,[2,55]),p(oe,[2,56]),p(oe,[2,57]),p(oe,[2,58]),p(oe,[2,59]),p(oe,[2,60]),p(oe,[2,61]),p(oe,[2,62]),p(oe,[2,63]),p(oe,[2,64]),p(oe,[2,65]),p(oe,[2,67]),p(oe,[2,68]),p(oe,[2,69]),p(oe,[2,70]),p(oe,[2,71]),p(oe,[2,72]),p(oe,[2,73]),p(oe,[2,74]),p(oe,[2,75]),p(oe,[2,76]),p(oe,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},p(He,[2,35]),p(He,[2,36]),p(He,[2,37]),p(He,[2,38]),p(He,[2,39]),p(He,[2,40]),p(He,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},p(ur,[2,25]),p(Xe,[2,45]),p(We,[2,79]),p(cr,[2,81]),p(oe,[2,31]),p(oe,[2,42]),p(Tr,[2,32]),p(Tr,[2,33],{15:[1,152]}),p(vr,[2,10]),p(Tr,[2,34])],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],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(Le,tr){if(!tr.recoverable){var nr=new Error(Le);throw nr.hash=tr,nr}this.trace(Le)},parse:function(Le){var tr=this,nr=[0],Ae=[],Cr=[null],Bt=[],xn=this.table,Vt="",Wr=0,jr=0,Vr=0,Rr=2,Zr=1,Ur=Bt.slice.call(arguments,1),Lr=Object.create(this.lexer),Yr={yy:{}};for(var $r in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$r)&&(Yr.yy[$r]=this.yy[$r]);Lr.setInput(Le,Yr.yy),Yr.yy.lexer=Lr,Yr.yy.parser=this,Lr.yylloc===void 0&&(Lr.yylloc={});var Hr=Lr.yylloc;Bt.push(Hr);var ya=Lr.options&&Lr.options.ranges;function On(){var Xr;return typeof(Xr=Ae.pop()||Lr.lex()||Zr)!="number"&&(Xr instanceof Array&&(Xr=(Ae=Xr).pop()),Xr=tr.symbols_[Xr]||Xr),Xr}typeof Yr.yy.parseError=="function"?this.parseError=Yr.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Cn,Mr,hi,Pr,wn,Nn,vn,Kn,Ft,Ln={};;){if(hi=nr[nr.length-1],this.defaultActions[hi]?Pr=this.defaultActions[hi]:(Cn==null&&(Cn=On()),Pr=xn[hi]&&xn[hi][Cn]),Pr===void 0||!Pr.length||!Pr[0]){var Dn="";for(Nn in Ft=[],xn[hi])this.terminals_[Nn]&&Nn>Rr&&Ft.push("'"+this.terminals_[Nn]+"'");Dn=Lr.showPosition?"Parse error on line "+(Wr+1)+`:
|
|
`+Lr.showPosition()+`
|
|
Expecting `+Ft.join(", ")+", got '"+(this.terminals_[Cn]||Cn)+"'":"Parse error on line "+(Wr+1)+": Unexpected "+(Cn==Zr?"end of input":"'"+(this.terminals_[Cn]||Cn)+"'"),this.parseError(Dn,{text:Lr.match,token:this.terminals_[Cn]||Cn,line:Lr.yylineno,loc:Hr,expected:Ft})}if(Pr[0]instanceof Array&&Pr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+hi+", token: "+Cn);switch(Pr[0]){case 1:nr.push(Cn),Cr.push(Lr.yytext),Bt.push(Lr.yylloc),nr.push(Pr[1]),Cn=null,Mr?(Cn=Mr,Mr=null):(jr=Lr.yyleng,Vt=Lr.yytext,Wr=Lr.yylineno,Hr=Lr.yylloc,Vr>0);break;case 2:if(vn=this.productions_[Pr[1]][1],Ln.$=Cr[Cr.length-vn],Ln._$={first_line:Bt[Bt.length-(vn||1)].first_line,last_line:Bt[Bt.length-1].last_line,first_column:Bt[Bt.length-(vn||1)].first_column,last_column:Bt[Bt.length-1].last_column},ya&&(Ln._$.range=[Bt[Bt.length-(vn||1)].range[0],Bt[Bt.length-1].range[1]]),(wn=this.performAction.apply(Ln,[Vt,jr,Wr,Yr.yy,Pr[1],Cr,Bt].concat(Ur)))!==void 0)return wn;vn&&(nr=nr.slice(0,-1*vn*2),Cr=Cr.slice(0,-1*vn),Bt=Bt.slice(0,-1*vn)),nr.push(this.productions_[Pr[1]][0]),Cr.push(Ln.$),Bt.push(Ln._$),Kn=xn[nr[nr.length-2]][nr[nr.length-1]],nr.push(Kn);break;case 3:return!0}}return!0}},Nr={EOF:1,parseError:function(Le,tr){if(!this.yy.parser)throw new Error(Le);this.yy.parser.parseError(Le,tr)},setInput:function(Le,tr){return this.yy=tr||this.yy||{},this._input=Le,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 Le=this._input[0];return this.yytext+=Le,this.yyleng++,this.offset++,this.match+=Le,this.matched+=Le,Le.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),Le},unput:function(Le){var tr=Le.length,nr=Le.split(/(?:\r\n?|\n)/g);this._input=Le+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-tr),this.offset-=tr;var Ae=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),nr.length-1&&(this.yylineno-=nr.length-1);var Cr=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:nr?(nr.length===Ae.length?this.yylloc.first_column:0)+Ae[Ae.length-nr.length].length-nr[0].length:this.yylloc.first_column-tr},this.options.ranges&&(this.yylloc.range=[Cr[0],Cr[0]+this.yyleng-tr]),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(Le){this.unput(this.match.slice(Le))},pastInput:function(){var Le=this.matched.substr(0,this.matched.length-this.match.length);return(Le.length>20?"...":"")+Le.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Le=this.match;return Le.length<20&&(Le+=this._input.substr(0,20-Le.length)),(Le.substr(0,20)+(Le.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Le=this.pastInput(),tr=new Array(Le.length+1).join("-");return Le+this.upcomingInput()+`
|
|
`+tr+"^"},test_match:function(Le,tr){var nr,Ae,Cr;if(this.options.backtrack_lexer&&(Cr={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&&(Cr.yylloc.range=this.yylloc.range.slice(0))),(Ae=Le[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ae.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ae?Ae[Ae.length-1].length-Ae[Ae.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Le[0].length},this.yytext+=Le[0],this.match+=Le[0],this.matches=Le,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(Le[0].length),this.matched+=Le[0],nr=this.performAction.call(this,this.yy,this,tr,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),nr)return nr;if(this._backtrack){for(var Bt in Cr)this[Bt]=Cr[Bt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Le,tr,nr,Ae;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Cr=this._currentRules(),Bt=0;Bt<Cr.length;Bt++)if((nr=this._input.match(this.rules[Cr[Bt]]))&&(!tr||nr[0].length>tr[0].length)){if(tr=nr,Ae=Bt,this.options.backtrack_lexer){if((Le=this.test_match(nr,Cr[Bt]))!==!1)return Le;if(this._backtrack){tr=!1;continue}return!1}if(!this.options.flex)break}return tr?(Le=this.test_match(tr,Cr[Ae]))!==!1&&Le: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(Le){this.conditionStack.push(Le)},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(Le){return(Le=this.conditionStack.length-1-Math.abs(Le||0))>=0?this.conditionStack[Le]:"INITIAL"},pushState:function(Le){this.begin(Le)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Le,tr,nr,Ae){switch(nr){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:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 21:break;case 19:c;break;case 20:return 15;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),console.log("begin person_ext"),55;case 28:return this.begin("person"),console.log("begin person"),54;case 29:return this.begin("system_ext_queue"),console.log("begin system_ext_queue"),61;case 30:return this.begin("system_ext_db"),console.log("begin system_ext_db"),60;case 31:return this.begin("system_ext"),console.log("begin system_ext"),59;case 32:return this.begin("system_queue"),console.log("begin system_queue"),58;case 33:return this.begin("system_db"),console.log("begin system_db"),57;case 34:return this.begin("system"),console.log("begin system"),56;case 35:return this.begin("boundary"),console.log("begin boundary"),47;case 36:return this.begin("enterprise_boundary"),console.log("begin enterprise_boundary"),44;case 37:return this.begin("system_boundary"),console.log("begin system_boundary"),46;case 38:return this.begin("container_ext_queue"),console.log("begin container_ext_queue"),67;case 39:return this.begin("container_ext_db"),console.log("begin container_ext_db"),66;case 40:return this.begin("container_ext"),console.log("begin container_ext"),65;case 41:return this.begin("container_queue"),console.log("begin container_queue"),64;case 42:return this.begin("container_db"),console.log("begin container_db"),63;case 43:return this.begin("container"),console.log("begin container"),62;case 44:return this.begin("container_boundary"),console.log("begin container_boundary"),48;case 45:return this.begin("component_ext_queue"),console.log("begin component_ext_queue"),73;case 46:return this.begin("component_ext_db"),console.log("begin component_ext_db"),72;case 47:return this.begin("component_ext"),console.log("begin component_ext"),71;case 48:return this.begin("component_queue"),console.log("begin component_queue"),70;case 49:return this.begin("component_db"),console.log("begin component_db"),69;case 50:return this.begin("component"),console.log("begin component"),68;case 51:case 52:return this.begin("node"),console.log("begin node"),49;case 53:return this.begin("node_l"),console.log("begin node_l"),50;case 54:return this.begin("node_r"),console.log("begin node_r"),51;case 55:return this.begin("rel"),console.log("begin rel"),74;case 56:return this.begin("birel"),console.log("begin birel"),75;case 57:case 58:return this.begin("rel_u"),console.log("begin rel_u"),76;case 59:case 60:return this.begin("rel_d"),console.log("begin rel_d"),77;case 61:case 62:return this.begin("rel_l"),console.log("begin rel_l"),78;case 63:case 64:return this.begin("rel_r"),console.log("begin rel_r"),79;case 65:return this.begin("rel_b"),console.log("begin rel_b"),80;case 66:return this.begin("rel_index"),console.log("begin rel_index"),81;case 67:return this.begin("update_el_style"),console.log("begin update_el_style"),82;case 68:return this.begin("update_rel_style"),console.log("begin update_rel_style"),83;case 69:return this.begin("update_layout_config"),console.log("begin update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return console.log("begin attribute with ATTRIBUTE_EMPTY"),this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:console.log("begin attribute"),this.begin("attribute");break;case 73:console.log("STOP attribute"),this.popState(),console.log("STOP diagram"),this.popState();break;case 74:return console.log(",,"),90;case 75:console.log(",");break;case 76:return console.log("ATTRIBUTE_EMPTY"),90;case 77:console.log("begin string"),this.begin("string");break;case 78:console.log("STOP string"),this.popState();break;case 79:return console.log("STR"),"STR";case 80:console.log("begin string_kv"),this.begin("string_kv");break;case 81:return console.log("STR_KEY"),this.begin("string_kv_key"),"STR_KEY";case 82:console.log("begin string_kv_value"),this.popState(),this.begin("string_kv_value");break;case 83:return console.log("STR_VALUE"),"STR_VALUE";case 84:console.log("STOP string_kv_value"),this.popState(),this.popState();break;case 85:return console.log("not STR"),"STR";case 86:return console.log("begin boundary block"),"LBRACE";case 87:return console.log("STOP boundary block"),"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\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)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,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,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};function Fr(){this.yy={}}return Qr.lexer=Nr,Fr.prototype=Qr,Qr.Parser=Fr,new Fr}();v.parser=_,v.Parser=_.Parser,v.parse=function(){return _.parse.apply(_,arguments)},v.main=function(p){p[1]||(console.log("Usage: "+p[0]+" FILE"),process.exit(1));var x=d(555).readFileSync(d(6470).normalize(p[1]),"utf8");return v.parser.parse(x)},d.c[d.s]===f&&v.main(process.argv.slice(1))},1362:(f,v,d)=>{f=d.nmd(f);var _=function(){var p=function(Rt,de,ne,Ct){for(ne=ne||{},Ct=Rt.length;Ct--;ne[Rt[Ct]]=de);return ne},x=[1,3],b=[1,7],A=[1,8],O=[1,9],T=[1,10],R=[1,13],F=[1,12],U=[1,16,25],q=[1,20],Q=[1,31],nt=[1,32],ft=[1,33],J=[1,35],bt=[1,38],ot=[1,36],st=[1,37],vt=[1,39],Ut=[1,40],St=[1,41],_t=[1,42],It=[1,45],wt=[1,46],yt=[1,47],rt=[1,48],pt=[16,25],W=[1,62],kt=[1,63],G=[1,64],At=[1,65],Mt=[1,66],Gt=[1,67],me=[16,25,32,44,45,53,56,57,58,59,60,61,66,68],Ze=[16,25,30,32,44,45,49,53,56,57,58,59,60,61,66,68,83,84,85,86],Ee=[5,8,9,10,11,16,19,23,25],pe=[53,83,84,85,86],we=[53,60,61,83,84,85,86],Oe=[53,56,57,58,59,83,84,85,86],De=[16,25,32],xe=[1,99],Ar={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(Rt,de,ne,Ct,Te,tt,le){var ct=tt.length-1;switch(Te){case 5:Ct.setDirection("TB");break;case 6:Ct.setDirection("BT");break;case 7:Ct.setDirection("RL");break;case 8:Ct.setDirection("LR");break;case 12:Ct.parseDirective("%%{","open_directive");break;case 13:Ct.parseDirective(tt[ct],"type_directive");break;case 14:tt[ct]=tt[ct].trim().replace(/'/g,'"'),Ct.parseDirective(tt[ct],"arg_directive");break;case 15:Ct.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=tt[ct];break;case 22:this.$=tt[ct-1]+tt[ct];break;case 23:case 24:this.$=tt[ct-1]+"~"+tt[ct];break;case 25:Ct.addRelation(tt[ct]);break;case 26:tt[ct-1].title=Ct.cleanupLabel(tt[ct]),Ct.addRelation(tt[ct-1]);break;case 34:this.$=tt[ct].trim(),Ct.setAccTitle(this.$);break;case 35:case 36:this.$=tt[ct].trim(),Ct.setAccDescription(this.$);break;case 37:Ct.addClass(tt[ct]);break;case 38:Ct.addClass(tt[ct-2]),Ct.setCssClass(tt[ct-2],tt[ct]);break;case 39:Ct.addClass(tt[ct-3]),Ct.addMembers(tt[ct-3],tt[ct-1]);break;case 40:Ct.addClass(tt[ct-5]),Ct.setCssClass(tt[ct-5],tt[ct-3]),Ct.addMembers(tt[ct-5],tt[ct-1]);break;case 41:Ct.addAnnotation(tt[ct],tt[ct-2]);break;case 42:this.$=[tt[ct]];break;case 43:tt[ct].push(tt[ct-1]),this.$=tt[ct];break;case 44:case 46:case 47:break;case 45:Ct.addMember(tt[ct-1],Ct.cleanupLabel(tt[ct]));break;case 48:this.$={id1:tt[ct-2],id2:tt[ct],relation:tt[ct-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:tt[ct-3],id2:tt[ct],relation:tt[ct-1],relationTitle1:tt[ct-2],relationTitle2:"none"};break;case 50:this.$={id1:tt[ct-3],id2:tt[ct],relation:tt[ct-2],relationTitle1:"none",relationTitle2:tt[ct-1]};break;case 51:this.$={id1:tt[ct-4],id2:tt[ct],relation:tt[ct-2],relationTitle1:tt[ct-3],relationTitle2:tt[ct-1]};break;case 52:this.$={type1:tt[ct-2],type2:tt[ct],lineType:tt[ct-1]};break;case 53:this.$={type1:"none",type2:tt[ct],lineType:tt[ct-1]};break;case 54:this.$={type1:tt[ct-1],type2:"none",lineType:tt[ct]};break;case 55:this.$={type1:"none",type2:"none",lineType:tt[ct]};break;case 56:this.$=Ct.relationType.AGGREGATION;break;case 57:this.$=Ct.relationType.EXTENSION;break;case 58:this.$=Ct.relationType.COMPOSITION;break;case 59:this.$=Ct.relationType.DEPENDENCY;break;case 60:this.$=Ct.lineType.LINE;break;case 61:this.$=Ct.lineType.DOTTED_LINE;break;case 62:case 68:this.$=tt[ct-2],Ct.setClickEvent(tt[ct-1],tt[ct]);break;case 63:case 69:this.$=tt[ct-3],Ct.setClickEvent(tt[ct-2],tt[ct-1]),Ct.setTooltip(tt[ct-2],tt[ct]);break;case 64:case 72:this.$=tt[ct-2],Ct.setLink(tt[ct-1],tt[ct]);break;case 65:case 73:this.$=tt[ct-3],Ct.setLink(tt[ct-2],tt[ct-1],tt[ct]);break;case 66:case 74:this.$=tt[ct-3],Ct.setLink(tt[ct-2],tt[ct-1]),Ct.setTooltip(tt[ct-2],tt[ct]);break;case 67:case 75:this.$=tt[ct-4],Ct.setLink(tt[ct-3],tt[ct-2],tt[ct]),Ct.setTooltip(tt[ct-3],tt[ct-1]);break;case 70:this.$=tt[ct-3],Ct.setClickEvent(tt[ct-2],tt[ct-1],tt[ct]);break;case 71:this.$=tt[ct-4],Ct.setClickEvent(tt[ct-3],tt[ct-2],tt[ct-1]),Ct.setTooltip(tt[ct-3],tt[ct]);break;case 76:Ct.setCssClass(tt[ct-1],tt[ct])}},table:[{3:1,4:2,5:x,6:4,7:5,8:b,9:A,10:O,11:T,12:6,13:11,19:R,23:F},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:x,6:4,7:5,8:b,9:A,10:O,11:T,12:6,13:11,19:R,23:F},{1:[2,9]},p(U,[2,5]),p(U,[2,6]),p(U,[2,7]),p(U,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:q},p([17,22],[2,13]),{6:30,7:29,8:b,9:A,10:O,11:T,13:11,19:R,24:21,26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:Q,40:nt,42:ft,43:J,48:bt,50:ot,51:st,62:vt,63:Ut,65:St,69:_t,83:It,84:wt,85:yt,86:rt},{16:[1,49]},{18:50,21:[1,51]},{16:[2,15]},{25:[1,52]},{16:[1,53],25:[2,17]},p(pt,[2,25],{32:[1,54]}),p(pt,[2,27]),p(pt,[2,28]),p(pt,[2,29]),p(pt,[2,30]),p(pt,[2,31]),p(pt,[2,32]),p(pt,[2,33]),{39:[1,55]},{41:[1,56]},p(pt,[2,36]),p(pt,[2,44],{52:57,54:60,55:61,32:[1,59],53:[1,58],56:W,57:kt,58:G,59:At,60:Mt,61:Gt}),{27:68,28:43,29:44,83:It,84:wt,85:yt,86:rt},p(pt,[2,46]),p(pt,[2,47]),{28:69,83:It,84:wt,85:yt},{27:70,28:43,29:44,83:It,84:wt,85:yt,86:rt},{27:71,28:43,29:44,83:It,84:wt,85:yt,86:rt},{27:72,28:43,29:44,83:It,84:wt,85:yt,86:rt},{53:[1,73]},p(me,[2,20],{28:43,29:44,27:74,30:[1,75],83:It,84:wt,85:yt,86:rt}),p(me,[2,21],{30:[1,76]}),p(Ze,[2,90]),p(Ze,[2,91]),p(Ze,[2,92]),p([16,25,30,32,44,45,53,56,57,58,59,60,61,66,68],[2,93]),p(Ee,[2,10]),{15:77,22:q},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:b,9:A,10:O,11:T,13:11,19:R,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:Q,40:nt,42:ft,43:J,48:bt,50:ot,51:st,62:vt,63:Ut,65:St,69:_t,83:It,84:wt,85:yt,86:rt},p(pt,[2,26]),p(pt,[2,34]),p(pt,[2,35]),{27:79,28:43,29:44,53:[1,80],83:It,84:wt,85:yt,86:rt},{52:81,54:60,55:61,56:W,57:kt,58:G,59:At,60:Mt,61:Gt},p(pt,[2,45]),{55:82,60:Mt,61:Gt},p(pe,[2,55],{54:83,56:W,57:kt,58:G,59:At}),p(we,[2,56]),p(we,[2,57]),p(we,[2,58]),p(we,[2,59]),p(Oe,[2,60]),p(Oe,[2,61]),p(pt,[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:It,84:wt,85:yt},p(me,[2,22]),p(me,[2,23]),p(me,[2,24]),{16:[1,92]},{25:[2,19]},p(De,[2,48]),{27:93,28:43,29:44,83:It,84:wt,85:yt,86:rt},{27:94,28:43,29:44,53:[1,95],83:It,84:wt,85:yt,86:rt},p(pe,[2,54],{54:96,56:W,57:kt,58:G,59:At}),p(pe,[2,53]),{28:97,83:It,84:wt,85:yt},{46:98,50:xe},{27:100,28:43,29:44,83:It,84:wt,85:yt,86:rt},p(pt,[2,62],{53:[1,101]}),p(pt,[2,64],{53:[1,103],64:[1,102]}),p(pt,[2,68],{53:[1,104],67:[1,105]}),p(pt,[2,72],{53:[1,107],64:[1,106]}),p(pt,[2,76]),p(Ee,[2,11]),p(De,[2,50]),p(De,[2,49]),{27:108,28:43,29:44,83:It,84:wt,85:yt,86:rt},p(pe,[2,52]),p(pt,[2,38],{45:[1,109]}),{47:[1,110]},{46:111,47:[2,42],50:xe},p(pt,[2,41]),p(pt,[2,63]),p(pt,[2,65]),p(pt,[2,66],{64:[1,112]}),p(pt,[2,69]),p(pt,[2,70],{53:[1,113]}),p(pt,[2,73]),p(pt,[2,74],{64:[1,114]}),p(De,[2,51]),{46:115,50:xe},p(pt,[2,39]),{47:[2,43]},p(pt,[2,67]),p(pt,[2,71]),p(pt,[2,75]),{47:[1,116]},p(pt,[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(Rt,de){if(!de.recoverable){var ne=new Error(Rt);throw ne.hash=de,ne}this.trace(Rt)},parse:function(Rt){var de=this,ne=[0],Ct=[],Te=[null],tt=[],le=this.table,ct="",Se=0,ye=0,ze=0,or=2,Xe=1,ur=tt.slice.call(arguments,1),Ne=Object.create(this.lexer),Be={yy:{}};for(var Ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ue)&&(Be.yy[Ue]=this.yy[Ue]);Ne.setInput(Rt,Be.yy),Be.yy.lexer=Ne,Be.yy.parser=this,Ne.yylloc===void 0&&(Ne.yylloc={});var Pe=Ne.yylloc;tt.push(Pe);var ve=Ne.options&&Ne.options.ranges;function oe(){var Ae;return typeof(Ae=Ct.pop()||Ne.lex()||Xe)!="number"&&(Ae instanceof Array&&(Ae=(Ct=Ae).pop()),Ae=de.symbols_[Ae]||Ae),Ae}typeof Be.yy.parseError=="function"?this.parseError=Be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var vr,We,cr,He,Tr,Qr,Nr,Fr,Le,tr={};;){if(cr=ne[ne.length-1],this.defaultActions[cr]?He=this.defaultActions[cr]:(vr==null&&(vr=oe()),He=le[cr]&&le[cr][vr]),He===void 0||!He.length||!He[0]){var nr="";for(Qr in Le=[],le[cr])this.terminals_[Qr]&&Qr>or&&Le.push("'"+this.terminals_[Qr]+"'");nr=Ne.showPosition?"Parse error on line "+(Se+1)+`:
|
|
`+Ne.showPosition()+`
|
|
Expecting `+Le.join(", ")+", got '"+(this.terminals_[vr]||vr)+"'":"Parse error on line "+(Se+1)+": Unexpected "+(vr==Xe?"end of input":"'"+(this.terminals_[vr]||vr)+"'"),this.parseError(nr,{text:Ne.match,token:this.terminals_[vr]||vr,line:Ne.yylineno,loc:Pe,expected:Le})}if(He[0]instanceof Array&&He.length>1)throw new Error("Parse Error: multiple actions possible at state: "+cr+", token: "+vr);switch(He[0]){case 1:ne.push(vr),Te.push(Ne.yytext),tt.push(Ne.yylloc),ne.push(He[1]),vr=null,We?(vr=We,We=null):(ye=Ne.yyleng,ct=Ne.yytext,Se=Ne.yylineno,Pe=Ne.yylloc,ze>0);break;case 2:if(Nr=this.productions_[He[1]][1],tr.$=Te[Te.length-Nr],tr._$={first_line:tt[tt.length-(Nr||1)].first_line,last_line:tt[tt.length-1].last_line,first_column:tt[tt.length-(Nr||1)].first_column,last_column:tt[tt.length-1].last_column},ve&&(tr._$.range=[tt[tt.length-(Nr||1)].range[0],tt[tt.length-1].range[1]]),(Tr=this.performAction.apply(tr,[ct,ye,Se,Be.yy,He[1],Te,tt].concat(ur)))!==void 0)return Tr;Nr&&(ne=ne.slice(0,-1*Nr*2),Te=Te.slice(0,-1*Nr),tt=tt.slice(0,-1*Nr)),ne.push(this.productions_[He[1]][0]),Te.push(tr.$),tt.push(tr._$),Fr=le[ne[ne.length-2]][ne[ne.length-1]],ne.push(Fr);break;case 3:return!0}}return!0}},be={EOF:1,parseError:function(Rt,de){if(!this.yy.parser)throw new Error(Rt);this.yy.parser.parseError(Rt,de)},setInput:function(Rt,de){return this.yy=de||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 de=Rt.length,ne=Rt.split(/(?:\r\n?|\n)/g);this._input=Rt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-de),this.offset-=de;var Ct=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),ne.length-1&&(this.yylineno-=ne.length-1);var Te=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:ne?(ne.length===Ct.length?this.yylloc.first_column:0)+Ct[Ct.length-ne.length].length-ne[0].length:this.yylloc.first_column-de},this.options.ranges&&(this.yylloc.range=[Te[0],Te[0]+this.yyleng-de]),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(),de=new Array(Rt.length+1).join("-");return Rt+this.upcomingInput()+`
|
|
`+de+"^"},test_match:function(Rt,de){var ne,Ct,Te;if(this.options.backtrack_lexer&&(Te={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&&(Te.yylloc.range=this.yylloc.range.slice(0))),(Ct=Rt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ct.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ct?Ct[Ct.length-1].length-Ct[Ct.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],ne=this.performAction.call(this,this.yy,this,de,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ne)return ne;if(this._backtrack){for(var tt in Te)this[tt]=Te[tt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Rt,de,ne,Ct;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Te=this._currentRules(),tt=0;tt<Te.length;tt++)if((ne=this._input.match(this.rules[Te[tt]]))&&(!de||ne[0].length>de[0].length)){if(de=ne,Ct=tt,this.options.backtrack_lexer){if((Rt=this.test_match(ne,Te[tt]))!==!1)return Rt;if(this._backtrack){de=!1;continue}return!1}if(!this.options.flex)break}return de?(Rt=this.test_match(de,Te[Ct]))!==!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:{},performAction:function(Rt,de,ne,Ct){switch(ne){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 Qe(){this.yy={}}return Ar.lexer=be,Qe.prototype=Ar,Ar.Parser=Qe,new Qe}();v.parser=_,v.Parser=_.Parser,v.parse=function(){return _.parse.apply(_,arguments)},v.main=function(p){p[1]||(console.log("Usage: "+p[0]+" FILE"),process.exit(1));var x=d(8218).readFileSync(d(6470).normalize(p[1]),"utf8");return v.parser.parse(x)},d.c[d.s]===f&&v.main(process.argv.slice(1))},5890:(f,v,d)=>{f=d.nmd(f);var _=function(){var p=function(rt,pt,W,kt){for(W=W||{},kt=rt.length;kt--;W[rt[kt]]=pt);return W},x=[1,2],b=[1,5],A=[6,9,11,23,25,27,29,30,49],O=[1,17],T=[1,18],R=[1,19],F=[1,20],U=[1,21],q=[1,24],Q=[1,29],nt=[1,30],ft=[1,31],J=[1,32],bt=[6,9,11,15,20,23,25,27,29,30,42,43,44,45,49],ot=[1,45],st=[30,46,47],vt=[4,6,9,11,23,25,27,29,30,49],Ut=[42,43,44,45],St=[22,37],_t=[1,64],It={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,pt,W,kt,G,At,Mt){var Gt=At.length-1;switch(G){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:At[Gt-1].push(At[Gt]),this.$=At[Gt-1];break;case 5:case 6:case 20:case 28:case 29:case 30:case 40:this.$=At[Gt];break;case 12:kt.addEntity(At[Gt-4]),kt.addEntity(At[Gt-2]),kt.addRelationship(At[Gt-4],At[Gt],At[Gt-2],At[Gt-3]);break;case 13:kt.addEntity(At[Gt-3]),kt.addAttributes(At[Gt-3],At[Gt-1]);break;case 14:kt.addEntity(At[Gt-2]);break;case 15:kt.addEntity(At[Gt]);break;case 16:case 17:this.$=At[Gt].trim(),kt.setAccTitle(this.$);break;case 18:case 19:this.$=At[Gt].trim(),kt.setAccDescription(this.$);break;case 21:this.$=At[Gt-2]+At[Gt-1]+At[Gt];break;case 22:this.$=[At[Gt]];break;case 23:At[Gt].push(At[Gt-1]),this.$=At[Gt];break;case 24:this.$={attributeType:At[Gt-1],attributeName:At[Gt]};break;case 25:this.$={attributeType:At[Gt-2],attributeName:At[Gt-1],attributeKeyType:At[Gt]};break;case 26:this.$={attributeType:At[Gt-2],attributeName:At[Gt-1],attributeComment:At[Gt]};break;case 27:this.$={attributeType:At[Gt-3],attributeName:At[Gt-2],attributeKeyType:At[Gt-1],attributeComment:At[Gt]};break;case 31:case 39:this.$=At[Gt].replace(/"/g,"");break;case 32:this.$={cardA:At[Gt],relType:At[Gt-1],cardB:At[Gt-2]};break;case 33:this.$=kt.Cardinality.ZERO_OR_ONE;break;case 34:this.$=kt.Cardinality.ZERO_OR_MORE;break;case 35:this.$=kt.Cardinality.ONE_OR_MORE;break;case 36:this.$=kt.Cardinality.ONLY_ONE;break;case 37:this.$=kt.Identification.NON_IDENTIFYING;break;case 38:this.$=kt.Identification.IDENTIFYING;break;case 41:kt.parseDirective("%%{","open_directive");break;case 42:kt.parseDirective(At[Gt],"type_directive");break;case 43:At[Gt]=At[Gt].trim().replace(/'/g,'"'),kt.parseDirective(At[Gt],"arg_directive");break;case 44:kt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:x,7:3,12:4,49:b},{1:[3]},p(A,[2,3],{5:6}),{3:7,4:x,7:3,12:4,49:b},{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:T,27:R,29:F,30:U,49:b},{1:[2,2]},{14:22,15:[1,23],52:q},p([15,52],[2,42]),p(A,[2,8],{1:[2,1]}),p(A,[2,4]),{7:15,10:25,12:4,17:16,23:O,25:T,27:R,29:F,30:U,49:b},p(A,[2,6]),p(A,[2,7]),p(A,[2,11]),p(A,[2,15],{18:26,40:28,20:[1,27],42:Q,43:nt,44:ft,45:J}),{24:[1,33]},{26:[1,34]},{28:[1,35]},p(A,[2,19]),p(bt,[2,20],{31:[1,36]}),{11:[1,37]},{16:38,51:[1,39]},{11:[2,44]},p(A,[2,5]),{17:40,30:U},{21:41,22:[1,42],32:43,33:44,37:ot},{41:46,46:[1,47],47:[1,48]},p(st,[2,33]),p(st,[2,34]),p(st,[2,35]),p(st,[2,36]),p(A,[2,16]),p(A,[2,17]),p(A,[2,18]),{17:49,30:U},p(vt,[2,9]),{14:50,52:q},{52:[2,43]},{15:[1,51]},{22:[1,52]},p(A,[2,14]),{21:53,22:[2,22],32:43,33:44,37:ot},{34:54,37:[1,55]},{37:[2,28]},{40:56,42:Q,43:nt,44:ft,45:J},p(Ut,[2,37]),p(Ut,[2,38]),p(bt,[2,21]),{11:[1,57]},{19:58,30:[1,60],48:[1,59]},p(A,[2,13]),{22:[2,23]},p(St,[2,24],{35:61,36:62,38:[1,63],39:_t}),p([22,37,38,39],[2,29]),{30:[2,32]},p(vt,[2,10]),p(A,[2,12]),p(A,[2,39]),p(A,[2,40]),p(St,[2,25],{36:65,39:_t}),p(St,[2,26]),p([22,37,39],[2,30]),p(St,[2,31]),p(St,[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,pt){if(!pt.recoverable){var W=new Error(rt);throw W.hash=pt,W}this.trace(rt)},parse:function(rt){var pt=this,W=[0],kt=[],G=[null],At=[],Mt=this.table,Gt="",me=0,Ze=0,Ee=0,pe=2,we=1,Oe=At.slice.call(arguments,1),De=Object.create(this.lexer),xe={yy:{}};for(var Ar in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ar)&&(xe.yy[Ar]=this.yy[Ar]);De.setInput(rt,xe.yy),xe.yy.lexer=De,xe.yy.parser=this,De.yylloc===void 0&&(De.yylloc={});var be=De.yylloc;At.push(be);var Qe=De.options&&De.options.ranges;function Rt(){var Xe;return typeof(Xe=kt.pop()||De.lex()||we)!="number"&&(Xe instanceof Array&&(Xe=(kt=Xe).pop()),Xe=pt.symbols_[Xe]||Xe),Xe}typeof xe.yy.parseError=="function"?this.parseError=xe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var de,ne,Ct,Te,tt,le,ct,Se,ye,ze={};;){if(Ct=W[W.length-1],this.defaultActions[Ct]?Te=this.defaultActions[Ct]:(de==null&&(de=Rt()),Te=Mt[Ct]&&Mt[Ct][de]),Te===void 0||!Te.length||!Te[0]){var or="";for(le in ye=[],Mt[Ct])this.terminals_[le]&&le>pe&&ye.push("'"+this.terminals_[le]+"'");or=De.showPosition?"Parse error on line "+(me+1)+`:
|
|
`+De.showPosition()+`
|
|
Expecting `+ye.join(", ")+", got '"+(this.terminals_[de]||de)+"'":"Parse error on line "+(me+1)+": Unexpected "+(de==we?"end of input":"'"+(this.terminals_[de]||de)+"'"),this.parseError(or,{text:De.match,token:this.terminals_[de]||de,line:De.yylineno,loc:be,expected:ye})}if(Te[0]instanceof Array&&Te.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ct+", token: "+de);switch(Te[0]){case 1:W.push(de),G.push(De.yytext),At.push(De.yylloc),W.push(Te[1]),de=null,ne?(de=ne,ne=null):(Ze=De.yyleng,Gt=De.yytext,me=De.yylineno,be=De.yylloc,Ee>0);break;case 2:if(ct=this.productions_[Te[1]][1],ze.$=G[G.length-ct],ze._$={first_line:At[At.length-(ct||1)].first_line,last_line:At[At.length-1].last_line,first_column:At[At.length-(ct||1)].first_column,last_column:At[At.length-1].last_column},Qe&&(ze._$.range=[At[At.length-(ct||1)].range[0],At[At.length-1].range[1]]),(tt=this.performAction.apply(ze,[Gt,Ze,me,xe.yy,Te[1],G,At].concat(Oe)))!==void 0)return tt;ct&&(W=W.slice(0,-1*ct*2),G=G.slice(0,-1*ct),At=At.slice(0,-1*ct)),W.push(this.productions_[Te[1]][0]),G.push(ze.$),At.push(ze._$),Se=Mt[W[W.length-2]][W[W.length-1]],W.push(Se);break;case 3:return!0}}return!0}},wt={EOF:1,parseError:function(rt,pt){if(!this.yy.parser)throw new Error(rt);this.yy.parser.parseError(rt,pt)},setInput:function(rt,pt){return this.yy=pt||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 pt=rt.length,W=rt.split(/(?:\r\n?|\n)/g);this._input=rt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-pt),this.offset-=pt;var kt=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),W.length-1&&(this.yylineno-=W.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:W?(W.length===kt.length?this.yylloc.first_column:0)+kt[kt.length-W.length].length-W[0].length:this.yylloc.first_column-pt},this.options.ranges&&(this.yylloc.range=[G[0],G[0]+this.yyleng-pt]),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(),pt=new Array(rt.length+1).join("-");return rt+this.upcomingInput()+`
|
|
`+pt+"^"},test_match:function(rt,pt){var W,kt,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))),(kt=rt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=kt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:kt?kt[kt.length-1].length-kt[kt.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],W=this.performAction.call(this,this.yy,this,pt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),W)return W;if(this._backtrack){for(var At in G)this[At]=G[At];return!1}return!1},next:function(){if(this.done)return this.EOF;var rt,pt,W,kt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var G=this._currentRules(),At=0;At<G.length;At++)if((W=this._input.match(this.rules[G[At]]))&&(!pt||W[0].length>pt[0].length)){if(pt=W,kt=At,this.options.backtrack_lexer){if((rt=this.test_match(W,G[At]))!==!1)return rt;if(this._backtrack){pt=!1;continue}return!1}if(!this.options.flex)break}return pt?(rt=this.test_match(pt,G[kt]))!==!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,pt,W,kt){switch(W){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 pt.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,/^(?:\b((?:PK)|(?:FK))\b)/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 yt(){this.yy={}}return It.lexer=wt,yt.prototype=It,It.Parser=yt,new yt}();v.parser=_,v.Parser=_.Parser,v.parse=function(){return _.parse.apply(_,arguments)},v.main=function(p){p[1]||(console.log("Usage: "+p[0]+" FILE"),process.exit(1));var x=d(8009).readFileSync(d(6470).normalize(p[1]),"utf8");return v.parser.parse(x)},d.c[d.s]===f&&v.main(process.argv.slice(1))},3602:(f,v,d)=>{f=d.nmd(f);var _=function(){var p=function(fr,mr,Kr,ir){for(Kr=Kr||{},ir=fr.length;ir--;Kr[fr[ir]]=mr);return Kr},x=[1,9],b=[1,7],A=[1,6],O=[1,8],T=[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],R=[2,10],F=[1,20],U=[1,21],q=[1,22],Q=[1,23],nt=[1,30],ft=[1,32],J=[1,33],bt=[1,34],ot=[1,62],st=[1,48],vt=[1,52],Ut=[1,36],St=[1,37],_t=[1,38],It=[1,39],wt=[1,40],yt=[1,56],rt=[1,63],pt=[1,51],W=[1,53],kt=[1,55],G=[1,59],At=[1,60],Mt=[1,41],Gt=[1,42],me=[1,43],Ze=[1,44],Ee=[1,61],pe=[1,50],we=[1,54],Oe=[1,57],De=[1,58],xe=[1,49],Ar=[1,66],be=[1,71],Qe=[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],Rt=[1,75],de=[1,74],ne=[1,76],Ct=[20,21,23,81,82],Te=[1,99],tt=[1,104],le=[1,107],ct=[1,108],Se=[1,101],ye=[1,106],ze=[1,109],or=[1,102],Xe=[1,114],ur=[1,113],Ne=[1,103],Be=[1,105],Ue=[1,110],Pe=[1,111],ve=[1,112],oe=[1,115],vr=[20,21,22,23,81,82],We=[20,21,22,23,53,81,82],cr=[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],He=[20,21,23],Tr=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],Qr=[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],Nr=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],Fr=[1,149],Le=[1,157],tr=[1,158],nr=[1,159],Ae=[1,160],Cr=[1,144],Bt=[1,145],xn=[1,141],Vt=[1,152],Wr=[1,153],jr=[1,154],Vr=[1,155],Rr=[1,156],Zr=[1,161],Ur=[1,162],Lr=[1,147],Yr=[1,150],$r=[1,146],Hr=[1,143],ya=[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],On=[1,165],Cn=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Mr=[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],hi=[12,21,22,24],Pr=[22,106],wn=[1,250],Nn=[1,245],vn=[1,246],Kn=[1,254],Ft=[1,251],Ln=[1,248],Dn=[1,247],Xr=[1,249],ri=[1,252],qn=[1,253],Fn=[1,255],ni=[1,273],Ia=[20,21,23,106],fn=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],Ai={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(fr,mr,Kr,ir,un,Xt,Yn){var ee=Xt.length-1;switch(un){case 5:ir.parseDirective("%%{","open_directive");break;case 6:ir.parseDirective(Xt[ee],"type_directive");break;case 7:Xt[ee]=Xt[ee].trim().replace(/'/g,'"'),ir.parseDirective(Xt[ee],"arg_directive");break;case 8:ir.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:Xt[ee]!==[]&&Xt[ee-1].push(Xt[ee]),this.$=Xt[ee-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=Xt[ee];break;case 19:ir.setDirection("TB"),this.$="TB";break;case 20:ir.setDirection(Xt[ee-1]),this.$=Xt[ee-1];break;case 35:this.$=Xt[ee-1].nodes;break;case 41:this.$=ir.addSubGraph(Xt[ee-6],Xt[ee-1],Xt[ee-4]);break;case 42:this.$=ir.addSubGraph(Xt[ee-3],Xt[ee-1],Xt[ee-3]);break;case 43:this.$=ir.addSubGraph(void 0,Xt[ee-1],void 0);break;case 45:this.$=Xt[ee].trim(),ir.setAccTitle(this.$);break;case 46:case 47:this.$=Xt[ee].trim(),ir.setAccDescription(this.$);break;case 51:ir.addLink(Xt[ee-2].stmt,Xt[ee],Xt[ee-1]),this.$={stmt:Xt[ee],nodes:Xt[ee].concat(Xt[ee-2].nodes)};break;case 52:ir.addLink(Xt[ee-3].stmt,Xt[ee-1],Xt[ee-2]),this.$={stmt:Xt[ee-1],nodes:Xt[ee-1].concat(Xt[ee-3].nodes)};break;case 53:this.$={stmt:Xt[ee-1],nodes:Xt[ee-1]};break;case 54:this.$={stmt:Xt[ee],nodes:Xt[ee]};break;case 55:case 123:case 125:this.$=[Xt[ee]];break;case 56:this.$=Xt[ee-4].concat(Xt[ee]);break;case 57:this.$=[Xt[ee-2]],ir.setClass(Xt[ee-2],Xt[ee]);break;case 58:this.$=Xt[ee-3],ir.addVertex(Xt[ee-3],Xt[ee-1],"square");break;case 59:this.$=Xt[ee-3],ir.addVertex(Xt[ee-3],Xt[ee-1],"doublecircle");break;case 60:this.$=Xt[ee-5],ir.addVertex(Xt[ee-5],Xt[ee-2],"circle");break;case 61:this.$=Xt[ee-3],ir.addVertex(Xt[ee-3],Xt[ee-1],"ellipse");break;case 62:this.$=Xt[ee-3],ir.addVertex(Xt[ee-3],Xt[ee-1],"stadium");break;case 63:this.$=Xt[ee-3],ir.addVertex(Xt[ee-3],Xt[ee-1],"subroutine");break;case 64:this.$=Xt[ee-7],ir.addVertex(Xt[ee-7],Xt[ee-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Xt[ee-5],Xt[ee-3]]]));break;case 65:this.$=Xt[ee-3],ir.addVertex(Xt[ee-3],Xt[ee-1],"cylinder");break;case 66:this.$=Xt[ee-3],ir.addVertex(Xt[ee-3],Xt[ee-1],"round");break;case 67:this.$=Xt[ee-3],ir.addVertex(Xt[ee-3],Xt[ee-1],"diamond");break;case 68:this.$=Xt[ee-5],ir.addVertex(Xt[ee-5],Xt[ee-2],"hexagon");break;case 69:this.$=Xt[ee-3],ir.addVertex(Xt[ee-3],Xt[ee-1],"odd");break;case 70:this.$=Xt[ee-3],ir.addVertex(Xt[ee-3],Xt[ee-1],"trapezoid");break;case 71:this.$=Xt[ee-3],ir.addVertex(Xt[ee-3],Xt[ee-1],"inv_trapezoid");break;case 72:this.$=Xt[ee-3],ir.addVertex(Xt[ee-3],Xt[ee-1],"lean_right");break;case 73:this.$=Xt[ee-3],ir.addVertex(Xt[ee-3],Xt[ee-1],"lean_left");break;case 74:this.$=Xt[ee],ir.addVertex(Xt[ee]);break;case 75:Xt[ee-1].text=Xt[ee],this.$=Xt[ee-1];break;case 76:case 77:Xt[ee-2].text=Xt[ee-1],this.$=Xt[ee-2];break;case 79:var kn=ir.destructLink(Xt[ee],Xt[ee-2]);this.$={type:kn.type,stroke:kn.stroke,length:kn.length,text:Xt[ee-1]};break;case 80:kn=ir.destructLink(Xt[ee]),this.$={type:kn.type,stroke:kn.stroke,length:kn.length};break;case 81:this.$=Xt[ee-1];break;case 83:case 97:case 153:case 151:this.$=Xt[ee-1]+""+Xt[ee];break;case 98:case 99:this.$=Xt[ee-4],ir.addClass(Xt[ee-2],Xt[ee]);break;case 100:this.$=Xt[ee-4],ir.setClass(Xt[ee-2],Xt[ee]);break;case 101:case 109:this.$=Xt[ee-1],ir.setClickEvent(Xt[ee-1],Xt[ee]);break;case 102:case 110:this.$=Xt[ee-3],ir.setClickEvent(Xt[ee-3],Xt[ee-2]),ir.setTooltip(Xt[ee-3],Xt[ee]);break;case 103:this.$=Xt[ee-2],ir.setClickEvent(Xt[ee-2],Xt[ee-1],Xt[ee]);break;case 104:this.$=Xt[ee-4],ir.setClickEvent(Xt[ee-4],Xt[ee-3],Xt[ee-2]),ir.setTooltip(Xt[ee-4],Xt[ee]);break;case 105:case 111:this.$=Xt[ee-1],ir.setLink(Xt[ee-1],Xt[ee]);break;case 106:case 112:this.$=Xt[ee-3],ir.setLink(Xt[ee-3],Xt[ee-2]),ir.setTooltip(Xt[ee-3],Xt[ee]);break;case 107:case 113:this.$=Xt[ee-3],ir.setLink(Xt[ee-3],Xt[ee-2],Xt[ee]);break;case 108:case 114:this.$=Xt[ee-5],ir.setLink(Xt[ee-5],Xt[ee-4],Xt[ee]),ir.setTooltip(Xt[ee-5],Xt[ee-2]);break;case 115:this.$=Xt[ee-4],ir.addVertex(Xt[ee-2],void 0,void 0,Xt[ee]);break;case 116:case 118:this.$=Xt[ee-4],ir.updateLink(Xt[ee-2],Xt[ee]);break;case 117:this.$=Xt[ee-4],ir.updateLink([Xt[ee-2]],Xt[ee]);break;case 119:this.$=Xt[ee-8],ir.updateLinkInterpolate([Xt[ee-6]],Xt[ee-2]),ir.updateLink([Xt[ee-6]],Xt[ee]);break;case 120:this.$=Xt[ee-8],ir.updateLinkInterpolate(Xt[ee-6],Xt[ee-2]),ir.updateLink(Xt[ee-6],Xt[ee]);break;case 121:this.$=Xt[ee-6],ir.updateLinkInterpolate([Xt[ee-4]],Xt[ee]);break;case 122:this.$=Xt[ee-6],ir.updateLinkInterpolate(Xt[ee-4],Xt[ee]);break;case 124:case 126:Xt[ee-2].push(Xt[ee]),this.$=Xt[ee-2];break;case 128:this.$=Xt[ee-1]+Xt[ee];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:x,16:4,21:b,22:A,24:O},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:x,16:4,21:b,22:A,24:O},p(T,R,{17:11}),{7:12,13:[1,13]},{16:14,21:b,22:A,24:O},{16:15,21:b,22:A,24:O},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:F,21:U,22:q,23:Q,32:24,33:25,34:26,35:27,36:28,37:29,38:nt,43:31,44:ft,46:J,48:bt,50:35,51:45,52:ot,54:46,66:st,67:vt,86:Ut,87:St,88:_t,89:It,90:wt,91:yt,95:rt,105:pt,106:W,109:kt,111:G,112:At,116:47,118:Mt,119:Gt,120:me,121:Ze,122:Ee,123:pe,124:we,125:Oe,126:De,127:xe},{8:64,10:[1,65],15:Ar},p([10,15],[2,6]),p(T,[2,17]),p(T,[2,18]),p(T,[2,19]),{20:[1,68],21:[1,69],22:be,27:67,30:70},p(Qe,[2,11]),p(Qe,[2,12]),p(Qe,[2,13]),p(Qe,[2,14]),p(Qe,[2,15]),p(Qe,[2,16]),{9:72,20:Rt,21:de,23:ne,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:Rt,21:de,23:ne},{9:81,20:Rt,21:de,23:ne},{9:82,20:Rt,21:de,23:ne},{9:83,20:Rt,21:de,23:ne},{9:84,20:Rt,21:de,23:ne},{9:86,20:Rt,21:de,22:[1,85],23:ne},p(Qe,[2,44]),{45:[1,87]},{47:[1,88]},p(Qe,[2,47]),p(Ct,[2,54],{30:89,22:be}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:Te,52:tt,66:le,67:ct,84:[1,97],91:Se,97:96,98:[1,94],100:[1,95],105:ye,106:ze,109:or,111:Xe,112:ur,115:100,117:98,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},p(Qe,[2,158]),p(Qe,[2,159]),p(Qe,[2,160]),p(Qe,[2,161]),p(vr,[2,55],{53:[1,116]}),p(We,[2,74],{116:129,40:[1,117],52:ot,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:st,67:vt,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:yt,95:rt,105:pt,106:W,109:kt,111:G,112:At,122:Ee,123:pe,124:we,125:Oe,126:De,127:xe}),p(cr,[2,150]),p(cr,[2,175]),p(cr,[2,176]),p(cr,[2,177]),p(cr,[2,178]),p(cr,[2,179]),p(cr,[2,180]),p(cr,[2,181]),p(cr,[2,182]),p(cr,[2,183]),p(cr,[2,184]),p(cr,[2,185]),p(cr,[2,186]),p(cr,[2,187]),p(cr,[2,188]),p(cr,[2,189]),p(cr,[2,190]),{9:130,20:Rt,21:de,23:ne},{11:131,14:[1,132]},p(He,[2,8]),p(T,[2,20]),p(T,[2,26]),p(T,[2,27]),{21:[1,133]},p(Tr,[2,34],{30:134,22:be}),p(Qe,[2,35]),{50:135,51:45,52:ot,54:46,66:st,67:vt,91:yt,95:rt,105:pt,106:W,109:kt,111:G,112:At,116:47,122:Ee,123:pe,124:we,125:Oe,126:De,127:xe},p(Qr,[2,48]),p(Qr,[2,49]),p(Qr,[2,50]),p(Nr,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:Fr,24:Le,26:tr,38:nr,39:139,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},p([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),p(Qe,[2,36]),p(Qe,[2,37]),p(Qe,[2,38]),p(Qe,[2,39]),p(Qe,[2,40]),{22:Fr,24:Le,26:tr,38:nr,39:163,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},p(ya,R,{17:164}),p(Qe,[2,45]),p(Qe,[2,46]),p(Ct,[2,53],{52:On}),{26:Te,52:tt,66:le,67:ct,91:Se,97:166,102:[1,167],105:ye,106:ze,109:or,111:Xe,112:ur,115:100,117:98,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{95:[1,168],103:169,105:[1,170]},{26:Te,52:tt,66:le,67:ct,91:Se,95:[1,171],97:172,105:ye,106:ze,109:or,111:Xe,112:ur,115:100,117:98,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{26:Te,52:tt,66:le,67:ct,91:Se,97:173,105:ye,106:ze,109:or,111:Xe,112:ur,115:100,117:98,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},p(He,[2,101],{22:[1,174],99:[1,175]}),p(He,[2,105],{22:[1,176]}),p(He,[2,109],{115:100,117:178,22:[1,177],26:Te,52:tt,66:le,67:ct,91:Se,105:ye,106:ze,109:or,111:Xe,112:ur,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe}),p(He,[2,111],{22:[1,179]}),p(Cn,[2,152]),p(Cn,[2,154]),p(Cn,[2,155]),p(Cn,[2,156]),p(Cn,[2,157]),p(Mr,[2,162]),p(Mr,[2,163]),p(Mr,[2,164]),p(Mr,[2,165]),p(Mr,[2,166]),p(Mr,[2,167]),p(Mr,[2,168]),p(Mr,[2,169]),p(Mr,[2,170]),p(Mr,[2,171]),p(Mr,[2,172]),p(Mr,[2,173]),p(Mr,[2,174]),{52:ot,54:180,66:st,67:vt,91:yt,95:rt,105:pt,106:W,109:kt,111:G,112:At,116:47,122:Ee,123:pe,124:we,125:Oe,126:De,127:xe},{22:Fr,24:Le,26:tr,38:nr,39:181,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,39:182,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,39:184,42:Ae,52:tt,57:[1,183],66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,39:185,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,39:186,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,39:187,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{66:[1,188]},{22:Fr,24:Le,26:tr,38:nr,39:189,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,39:190,42:Ae,52:tt,66:le,67:ct,71:[1,191],73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,39:192,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,39:193,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,39:194,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},p(cr,[2,151]),p(hi,[2,3]),{8:195,15:Ar},{15:[2,7]},p(T,[2,28]),p(Tr,[2,33]),p(Ct,[2,51],{30:196,22:be}),p(Nr,[2,75],{22:[1,197]}),{22:[1,198]},{22:Fr,24:Le,26:tr,38:nr,39:199,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,82:[1,200],83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},p(Mr,[2,82]),p(Mr,[2,84]),p(Mr,[2,140]),p(Mr,[2,141]),p(Mr,[2,142]),p(Mr,[2,143]),p(Mr,[2,144]),p(Mr,[2,145]),p(Mr,[2,146]),p(Mr,[2,147]),p(Mr,[2,148]),p(Mr,[2,149]),p(Mr,[2,85]),p(Mr,[2,86]),p(Mr,[2,87]),p(Mr,[2,88]),p(Mr,[2,89]),p(Mr,[2,90]),p(Mr,[2,91]),p(Mr,[2,92]),p(Mr,[2,93]),p(Mr,[2,94]),p(Mr,[2,95]),{9:203,20:Rt,21:de,22:Fr,23:ne,24:Le,26:tr,38:nr,40:[1,202],42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{18:18,19:19,20:F,21:U,22:q,23:Q,32:24,33:25,34:26,35:27,36:28,37:29,38:nt,42:[1,204],43:31,44:ft,46:J,48:bt,50:35,51:45,52:ot,54:46,66:st,67:vt,86:Ut,87:St,88:_t,89:It,90:wt,91:yt,95:rt,105:pt,106:W,109:kt,111:G,112:At,116:47,118:Mt,119:Gt,120:me,121:Ze,122:Ee,123:pe,124:we,125:Oe,126:De,127:xe},{22:be,30:205},{22:[1,206],26:Te,52:tt,66:le,67:ct,91:Se,105:ye,106:ze,109:or,111:Xe,112:ur,115:100,117:178,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},p(Pr,[2,123]),{22:[1,211]},{22:[1,212],26:Te,52:tt,66:le,67:ct,91:Se,105:ye,106:ze,109:or,111:Xe,112:ur,115:100,117:178,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:[1,213],26:Te,52:tt,66:le,67:ct,91:Se,105:ye,106:ze,109:or,111:Xe,112:ur,115:100,117:178,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{84:[1,214]},p(He,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},p(Cn,[2,153]),{84:[1,219],101:[1,220]},p(vr,[2,57],{116:129,52:ot,66:st,67:vt,91:yt,95:rt,105:pt,106:W,109:kt,111:G,112:At,122:Ee,123:pe,124:we,125:Oe,126:De,127:xe}),{22:Fr,24:Le,26:tr,38:nr,41:[1,221],42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,42:Ae,52:tt,56:[1,222],66:le,67:ct,73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,39:223,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,42:Ae,52:tt,58:[1,224],66:le,67:ct,73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,42:Ae,52:tt,60:[1,225],66:le,67:ct,73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,42:Ae,52:tt,62:[1,226],66:le,67:ct,73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,42:Ae,52:tt,64:[1,227],66:le,67:ct,73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{67:[1,228]},{22:Fr,24:Le,26:tr,38:nr,42:Ae,52:tt,66:le,67:ct,70:[1,229],73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,42:Ae,52:tt,66:le,67:ct,72:[1,230],73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,39:231,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,41:[1,232],42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,42:Ae,52:tt,66:le,67:ct,73:Cr,75:[1,233],77:[1,234],81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{22:Fr,24:Le,26:tr,38:nr,42:Ae,52:tt,66:le,67:ct,73:Cr,75:[1,236],77:[1,235],81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{9:237,20:Rt,21:de,23:ne},p(Ct,[2,52],{52:On}),p(Nr,[2,77]),p(Nr,[2,76]),{22:Fr,24:Le,26:tr,38:nr,42:Ae,52:tt,66:le,67:ct,68:[1,238],73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},p(Nr,[2,79]),p(Mr,[2,83]),{22:Fr,24:Le,26:tr,38:nr,39:239,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},p(ya,R,{17:240}),p(Qe,[2,43]),{51:241,52:ot,54:46,66:st,67:vt,91:yt,95:rt,105:pt,106:W,109:kt,111:G,112:At,116:47,122:Ee,123:pe,124:we,125:Oe,126:De,127:xe},{22:wn,66:Nn,67:vn,86:Kn,96:242,102:Ft,105:Ln,107:243,108:244,109:Dn,110:Xr,111:ri,112:qn,113:Fn},{22:wn,66:Nn,67:vn,86:Kn,96:256,102:Ft,105:Ln,107:243,108:244,109:Dn,110:Xr,111:ri,112:qn,113:Fn},{22:wn,66:Nn,67:vn,86:Kn,96:257,102:Ft,104:[1,258],105:Ln,107:243,108:244,109:Dn,110:Xr,111:ri,112:qn,113:Fn},{22:wn,66:Nn,67:vn,86:Kn,96:259,102:Ft,104:[1,260],105:Ln,107:243,108:244,109:Dn,110:Xr,111:ri,112:qn,113:Fn},{105:[1,261]},{22:wn,66:Nn,67:vn,86:Kn,96:262,102:Ft,105:Ln,107:243,108:244,109:Dn,110:Xr,111:ri,112:qn,113:Fn},{22:wn,66:Nn,67:vn,86:Kn,96:263,102:Ft,105:Ln,107:243,108:244,109:Dn,110:Xr,111:ri,112:qn,113:Fn},{26:Te,52:tt,66:le,67:ct,91:Se,97:264,105:ye,106:ze,109:or,111:Xe,112:ur,115:100,117:98,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},p(He,[2,102]),{84:[1,265]},p(He,[2,106],{22:[1,266]}),p(He,[2,107]),p(He,[2,110]),p(He,[2,112],{22:[1,267]}),p(He,[2,113]),p(We,[2,58]),p(We,[2,59]),{22:Fr,24:Le,26:tr,38:nr,42:Ae,52:tt,58:[1,268],66:le,67:ct,73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},p(We,[2,66]),p(We,[2,61]),p(We,[2,62]),p(We,[2,63]),{66:[1,269]},p(We,[2,65]),p(We,[2,67]),{22:Fr,24:Le,26:tr,38:nr,42:Ae,52:tt,66:le,67:ct,72:[1,270],73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},p(We,[2,69]),p(We,[2,70]),p(We,[2,72]),p(We,[2,71]),p(We,[2,73]),p(hi,[2,4]),p([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:Fr,24:Le,26:tr,38:nr,41:[1,271],42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{18:18,19:19,20:F,21:U,22:q,23:Q,32:24,33:25,34:26,35:27,36:28,37:29,38:nt,42:[1,272],43:31,44:ft,46:J,48:bt,50:35,51:45,52:ot,54:46,66:st,67:vt,86:Ut,87:St,88:_t,89:It,90:wt,91:yt,95:rt,105:pt,106:W,109:kt,111:G,112:At,116:47,118:Mt,119:Gt,120:me,121:Ze,122:Ee,123:pe,124:we,125:Oe,126:De,127:xe},p(vr,[2,56]),p(He,[2,115],{106:ni}),p(Ia,[2,125],{108:274,22:wn,66:Nn,67:vn,86:Kn,102:Ft,105:Ln,109:Dn,110:Xr,111:ri,112:qn,113:Fn}),p(fn,[2,127]),p(fn,[2,129]),p(fn,[2,130]),p(fn,[2,131]),p(fn,[2,132]),p(fn,[2,133]),p(fn,[2,134]),p(fn,[2,135]),p(fn,[2,136]),p(fn,[2,137]),p(fn,[2,138]),p(fn,[2,139]),p(He,[2,116],{106:ni}),p(He,[2,117],{106:ni}),{22:[1,275]},p(He,[2,118],{106:ni}),{22:[1,276]},p(Pr,[2,124]),p(He,[2,98],{106:ni}),p(He,[2,99],{106:ni}),p(He,[2,100],{115:100,117:178,26:Te,52:tt,66:le,67:ct,91:Se,105:ye,106:ze,109:or,111:Xe,112:ur,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe}),p(He,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:Rt,21:de,23:ne},p(Qe,[2,42]),{22:wn,66:Nn,67:vn,86:Kn,102:Ft,105:Ln,107:283,108:244,109:Dn,110:Xr,111:ri,112:qn,113:Fn},p(fn,[2,128]),{26:Te,52:tt,66:le,67:ct,91:Se,97:284,105:ye,106:ze,109:or,111:Xe,112:ur,115:100,117:98,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{26:Te,52:tt,66:le,67:ct,91:Se,97:285,105:ye,106:ze,109:or,111:Xe,112:ur,115:100,117:98,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},p(He,[2,108]),p(He,[2,114]),p(We,[2,60]),{22:Fr,24:Le,26:tr,38:nr,39:286,42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:140,84:xn,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},p(We,[2,68]),p(ya,R,{17:287}),p(Ia,[2,126],{108:274,22:wn,66:Nn,67:vn,86:Kn,102:Ft,105:Ln,109:Dn,110:Xr,111:ri,112:qn,113:Fn}),p(He,[2,121],{115:100,117:178,22:[1,288],26:Te,52:tt,66:le,67:ct,91:Se,105:ye,106:ze,109:or,111:Xe,112:ur,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe}),p(He,[2,122],{115:100,117:178,22:[1,289],26:Te,52:tt,66:le,67:ct,91:Se,105:ye,106:ze,109:or,111:Xe,112:ur,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe}),{22:Fr,24:Le,26:tr,38:nr,41:[1,290],42:Ae,52:tt,66:le,67:ct,73:Cr,81:Bt,83:201,85:151,86:Vt,87:Wr,88:jr,89:Vr,90:Rr,91:Zr,92:Ur,94:142,95:Lr,105:ye,106:ze,109:Yr,111:Xe,112:ur,113:$r,114:Hr,115:148,122:Ne,123:Be,124:Ue,125:Pe,126:ve,127:oe},{18:18,19:19,20:F,21:U,22:q,23:Q,32:24,33:25,34:26,35:27,36:28,37:29,38:nt,42:[1,291],43:31,44:ft,46:J,48:bt,50:35,51:45,52:ot,54:46,66:st,67:vt,86:Ut,87:St,88:_t,89:It,90:wt,91:yt,95:rt,105:pt,106:W,109:kt,111:G,112:At,116:47,118:Mt,119:Gt,120:me,121:Ze,122:Ee,123:pe,124:we,125:Oe,126:De,127:xe},{22:wn,66:Nn,67:vn,86:Kn,96:292,102:Ft,105:Ln,107:243,108:244,109:Dn,110:Xr,111:ri,112:qn,113:Fn},{22:wn,66:Nn,67:vn,86:Kn,96:293,102:Ft,105:Ln,107:243,108:244,109:Dn,110:Xr,111:ri,112:qn,113:Fn},p(We,[2,64]),p(Qe,[2,41]),p(He,[2,119],{106:ni}),p(He,[2,120],{106:ni})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(fr,mr){if(!mr.recoverable){var Kr=new Error(fr);throw Kr.hash=mr,Kr}this.trace(fr)},parse:function(fr){var mr=this,Kr=[0],ir=[],un=[null],Xt=[],Yn=this.table,ee="",kn=0,si=0,di=0,Na=2,Fi=1,kr=Xt.slice.call(arguments,1),jn=Object.create(this.lexer),Br={yy:{}};for(var ma in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ma)&&(Br.yy[ma]=this.yy[ma]);jn.setInput(fr,Br.yy),Br.yy.lexer=jn,Br.yy.parser=this,jn.yylloc===void 0&&(jn.yylloc={});var Pn=jn.yylloc;Xt.push(Pn);var Pi=jn.options&&jn.options.ranges;function $n(){var zi;return typeof(zi=ir.pop()||jn.lex()||Fi)!="number"&&(zi instanceof Array&&(zi=(ir=zi).pop()),zi=mr.symbols_[zi]||zi),zi}typeof Br.yy.parseError=="function"?this.parseError=Br.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var mn,ki,Wn,ii,Qi,Ii,ai,_a,Gn,Jn={};;){if(Wn=Kr[Kr.length-1],this.defaultActions[Wn]?ii=this.defaultActions[Wn]:(mn==null&&(mn=$n()),ii=Yn[Wn]&&Yn[Wn][mn]),ii===void 0||!ii.length||!ii[0]){var ci="";for(Ii in Gn=[],Yn[Wn])this.terminals_[Ii]&&Ii>Na&&Gn.push("'"+this.terminals_[Ii]+"'");ci=jn.showPosition?"Parse error on line "+(kn+1)+`:
|
|
`+jn.showPosition()+`
|
|
Expecting `+Gn.join(", ")+", got '"+(this.terminals_[mn]||mn)+"'":"Parse error on line "+(kn+1)+": Unexpected "+(mn==Fi?"end of input":"'"+(this.terminals_[mn]||mn)+"'"),this.parseError(ci,{text:jn.match,token:this.terminals_[mn]||mn,line:jn.yylineno,loc:Pn,expected:Gn})}if(ii[0]instanceof Array&&ii.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Wn+", token: "+mn);switch(ii[0]){case 1:Kr.push(mn),un.push(jn.yytext),Xt.push(jn.yylloc),Kr.push(ii[1]),mn=null,ki?(mn=ki,ki=null):(si=jn.yyleng,ee=jn.yytext,kn=jn.yylineno,Pn=jn.yylloc,di>0);break;case 2:if(ai=this.productions_[ii[1]][1],Jn.$=un[un.length-ai],Jn._$={first_line:Xt[Xt.length-(ai||1)].first_line,last_line:Xt[Xt.length-1].last_line,first_column:Xt[Xt.length-(ai||1)].first_column,last_column:Xt[Xt.length-1].last_column},Pi&&(Jn._$.range=[Xt[Xt.length-(ai||1)].range[0],Xt[Xt.length-1].range[1]]),(Qi=this.performAction.apply(Jn,[ee,si,kn,Br.yy,ii[1],un,Xt].concat(kr)))!==void 0)return Qi;ai&&(Kr=Kr.slice(0,-1*ai*2),un=un.slice(0,-1*ai),Xt=Xt.slice(0,-1*ai)),Kr.push(this.productions_[ii[1]][0]),un.push(Jn.$),Xt.push(Jn._$),_a=Yn[Kr[Kr.length-2]][Kr[Kr.length-1]],Kr.push(_a);break;case 3:return!0}}return!0}},Bi={EOF:1,parseError:function(fr,mr){if(!this.yy.parser)throw new Error(fr);this.yy.parser.parseError(fr,mr)},setInput:function(fr,mr){return this.yy=mr||this.yy||{},this._input=fr,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 fr=this._input[0];return this.yytext+=fr,this.yyleng++,this.offset++,this.match+=fr,this.matched+=fr,fr.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),fr},unput:function(fr){var mr=fr.length,Kr=fr.split(/(?:\r\n?|\n)/g);this._input=fr+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-mr),this.offset-=mr;var ir=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),Kr.length-1&&(this.yylineno-=Kr.length-1);var un=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:Kr?(Kr.length===ir.length?this.yylloc.first_column:0)+ir[ir.length-Kr.length].length-Kr[0].length:this.yylloc.first_column-mr},this.options.ranges&&(this.yylloc.range=[un[0],un[0]+this.yyleng-mr]),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(fr){this.unput(this.match.slice(fr))},pastInput:function(){var fr=this.matched.substr(0,this.matched.length-this.match.length);return(fr.length>20?"...":"")+fr.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var fr=this.match;return fr.length<20&&(fr+=this._input.substr(0,20-fr.length)),(fr.substr(0,20)+(fr.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var fr=this.pastInput(),mr=new Array(fr.length+1).join("-");return fr+this.upcomingInput()+`
|
|
`+mr+"^"},test_match:function(fr,mr){var Kr,ir,un;if(this.options.backtrack_lexer&&(un={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&&(un.yylloc.range=this.yylloc.range.slice(0))),(ir=fr[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ir.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ir?ir[ir.length-1].length-ir[ir.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+fr[0].length},this.yytext+=fr[0],this.match+=fr[0],this.matches=fr,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(fr[0].length),this.matched+=fr[0],Kr=this.performAction.call(this,this.yy,this,mr,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Kr)return Kr;if(this._backtrack){for(var Xt in un)this[Xt]=un[Xt];return!1}return!1},next:function(){if(this.done)return this.EOF;var fr,mr,Kr,ir;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var un=this._currentRules(),Xt=0;Xt<un.length;Xt++)if((Kr=this._input.match(this.rules[un[Xt]]))&&(!mr||Kr[0].length>mr[0].length)){if(mr=Kr,ir=Xt,this.options.backtrack_lexer){if((fr=this.test_match(Kr,un[Xt]))!==!1)return fr;if(this._backtrack){mr=!1;continue}return!1}if(!this.options.flex)break}return mr?(fr=this.test_match(mr,un[ir]))!==!1&&fr: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(fr){this.conditionStack.push(fr)},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(fr){return(fr=this.conditionStack.length-1-Math.abs(fr||0))>=0?this.conditionStack[fr]:"INITIAL"},pushState:function(fr){this.begin(fr)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(fr,mr,Kr,ir){switch(Kr){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 fr.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 Ci(){this.yy={}}return Ai.lexer=Bi,Ci.prototype=Ai,Ai.Parser=Ci,new Ci}();v.parser=_,v.Parser=_.Parser,v.parse=function(){return _.parse.apply(_,arguments)},v.main=function(p){p[1]||(console.log("Usage: "+p[0]+" FILE"),process.exit(1));var x=d(5354).readFileSync(d(6470).normalize(p[1]),"utf8");return v.parser.parse(x)},d.c[d.s]===f&&v.main(process.argv.slice(1))},9959:(f,v,d)=>{f=d.nmd(f);var _=function(){var p=function(yt,rt,pt,W){for(pt=pt||{},W=yt.length;W--;pt[yt[W]]=rt);return pt},x=[1,3],b=[1,5],A=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],O=[1,15],T=[1,16],R=[1,17],F=[1,18],U=[1,19],q=[1,20],Q=[1,21],nt=[1,22],ft=[1,23],J=[1,24],bt=[1,25],ot=[1,26],st=[1,28],vt=[1,30],Ut=[1,33],St=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],_t={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(yt,rt,pt,W,kt,G,At){var Mt=G.length-1;switch(kt){case 2:return G[Mt-1];case 3:case 7:case 8:this.$=[];break;case 4:G[Mt-1].push(G[Mt]),this.$=G[Mt-1];break;case 5:case 6:this.$=G[Mt];break;case 9:W.setDateFormat(G[Mt].substr(11)),this.$=G[Mt].substr(11);break;case 10:W.enableInclusiveEndDates(),this.$=G[Mt].substr(18);break;case 11:W.TopAxis(),this.$=G[Mt].substr(8);break;case 12:W.setAxisFormat(G[Mt].substr(11)),this.$=G[Mt].substr(11);break;case 13:W.setExcludes(G[Mt].substr(9)),this.$=G[Mt].substr(9);break;case 14:W.setIncludes(G[Mt].substr(9)),this.$=G[Mt].substr(9);break;case 15:W.setTodayMarker(G[Mt].substr(12)),this.$=G[Mt].substr(12);break;case 16:W.setDiagramTitle(G[Mt].substr(6)),this.$=G[Mt].substr(6);break;case 17:this.$=G[Mt].trim(),W.setAccTitle(this.$);break;case 18:case 19:this.$=G[Mt].trim(),W.setAccDescription(this.$);break;case 20:W.addSection(G[Mt].substr(8)),this.$=G[Mt].substr(8);break;case 22:W.addTask(G[Mt-1],G[Mt]),this.$="task";break;case 26:this.$=G[Mt-1],W.setClickEvent(G[Mt-1],G[Mt],null);break;case 27:this.$=G[Mt-2],W.setClickEvent(G[Mt-2],G[Mt-1],G[Mt]);break;case 28:this.$=G[Mt-2],W.setClickEvent(G[Mt-2],G[Mt-1],null),W.setLink(G[Mt-2],G[Mt]);break;case 29:this.$=G[Mt-3],W.setClickEvent(G[Mt-3],G[Mt-2],G[Mt-1]),W.setLink(G[Mt-3],G[Mt]);break;case 30:this.$=G[Mt-2],W.setClickEvent(G[Mt-2],G[Mt],null),W.setLink(G[Mt-2],G[Mt-1]);break;case 31:this.$=G[Mt-3],W.setClickEvent(G[Mt-3],G[Mt-1],G[Mt]),W.setLink(G[Mt-3],G[Mt-2]);break;case 32:this.$=G[Mt-1],W.setLink(G[Mt-1],G[Mt]);break;case 33:case 39:this.$=G[Mt-1]+" "+G[Mt];break;case 34:case 35:case 37:this.$=G[Mt-2]+" "+G[Mt-1]+" "+G[Mt];break;case 36:case 38:this.$=G[Mt-3]+" "+G[Mt-2]+" "+G[Mt-1]+" "+G[Mt];break;case 40:W.parseDirective("%%{","open_directive");break;case 41:W.parseDirective(G[Mt],"type_directive");break;case 42:G[Mt]=G[Mt].trim().replace(/'/g,'"'),W.parseDirective(G[Mt],"arg_directive");break;case 43:W.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:x,29:4,39:b},{1:[3]},{3:6,4:2,5:x,29:4,39:b},p(A,[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:T,14:R,15:F,16:U,17:q,18:Q,19:nt,20:ft,22:J,24:bt,25:ot,26:27,27:st,29:4,34:vt,39:b},{31:31,32:[1,32],42:Ut},p([32,42],[2,41]),p(A,[2,8],{1:[2,2]}),p(A,[2,4]),{4:29,10:34,12:O,13:T,14:R,15:F,16:U,17:q,18:Q,19:nt,20:ft,22:J,24:bt,25:ot,26:27,27:st,29:4,34:vt,39:b},p(A,[2,6]),p(A,[2,7]),p(A,[2,9]),p(A,[2,10]),p(A,[2,11]),p(A,[2,12]),p(A,[2,13]),p(A,[2,14]),p(A,[2,15]),p(A,[2,16]),{21:[1,35]},{23:[1,36]},p(A,[2,19]),p(A,[2,20]),p(A,[2,21]),{28:[1,37]},p(A,[2,23]),{35:[1,38],37:[1,39]},{11:[1,40]},{33:41,41:[1,42]},{11:[2,43]},p(A,[2,5]),p(A,[2,17]),p(A,[2,18]),p(A,[2,22]),p(A,[2,26],{36:[1,43],37:[1,44]}),p(A,[2,32],{35:[1,45]}),p(St,[2,24]),{31:46,42:Ut},{42:[2,42]},p(A,[2,27],{37:[1,47]}),p(A,[2,28]),p(A,[2,30],{36:[1,48]}),{11:[1,49]},p(A,[2,29]),p(A,[2,31]),p(St,[2,25])],defaultActions:{5:[2,40],6:[2,1],33:[2,43],42:[2,42]},parseError:function(yt,rt){if(!rt.recoverable){var pt=new Error(yt);throw pt.hash=rt,pt}this.trace(yt)},parse:function(yt){var rt=this,pt=[0],W=[],kt=[null],G=[],At=this.table,Mt="",Gt=0,me=0,Ze=0,Ee=2,pe=1,we=G.slice.call(arguments,1),Oe=Object.create(this.lexer),De={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(De.yy[xe]=this.yy[xe]);Oe.setInput(yt,De.yy),De.yy.lexer=Oe,De.yy.parser=this,Oe.yylloc===void 0&&(Oe.yylloc={});var Ar=Oe.yylloc;G.push(Ar);var be=Oe.options&&Oe.options.ranges;function Qe(){var or;return typeof(or=W.pop()||Oe.lex()||pe)!="number"&&(or instanceof Array&&(or=(W=or).pop()),or=rt.symbols_[or]||or),or}typeof De.yy.parseError=="function"?this.parseError=De.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Rt,de,ne,Ct,Te,tt,le,ct,Se,ye={};;){if(ne=pt[pt.length-1],this.defaultActions[ne]?Ct=this.defaultActions[ne]:(Rt==null&&(Rt=Qe()),Ct=At[ne]&&At[ne][Rt]),Ct===void 0||!Ct.length||!Ct[0]){var ze="";for(tt in Se=[],At[ne])this.terminals_[tt]&&tt>Ee&&Se.push("'"+this.terminals_[tt]+"'");ze=Oe.showPosition?"Parse error on line "+(Gt+1)+`:
|
|
`+Oe.showPosition()+`
|
|
Expecting `+Se.join(", ")+", got '"+(this.terminals_[Rt]||Rt)+"'":"Parse error on line "+(Gt+1)+": Unexpected "+(Rt==pe?"end of input":"'"+(this.terminals_[Rt]||Rt)+"'"),this.parseError(ze,{text:Oe.match,token:this.terminals_[Rt]||Rt,line:Oe.yylineno,loc:Ar,expected:Se})}if(Ct[0]instanceof Array&&Ct.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+Rt);switch(Ct[0]){case 1:pt.push(Rt),kt.push(Oe.yytext),G.push(Oe.yylloc),pt.push(Ct[1]),Rt=null,de?(Rt=de,de=null):(me=Oe.yyleng,Mt=Oe.yytext,Gt=Oe.yylineno,Ar=Oe.yylloc,Ze>0);break;case 2:if(le=this.productions_[Ct[1]][1],ye.$=kt[kt.length-le],ye._$={first_line:G[G.length-(le||1)].first_line,last_line:G[G.length-1].last_line,first_column:G[G.length-(le||1)].first_column,last_column:G[G.length-1].last_column},be&&(ye._$.range=[G[G.length-(le||1)].range[0],G[G.length-1].range[1]]),(Te=this.performAction.apply(ye,[Mt,me,Gt,De.yy,Ct[1],kt,G].concat(we)))!==void 0)return Te;le&&(pt=pt.slice(0,-1*le*2),kt=kt.slice(0,-1*le),G=G.slice(0,-1*le)),pt.push(this.productions_[Ct[1]][0]),kt.push(ye.$),G.push(ye._$),ct=At[pt[pt.length-2]][pt[pt.length-1]],pt.push(ct);break;case 3:return!0}}return!0}},It={EOF:1,parseError:function(yt,rt){if(!this.yy.parser)throw new Error(yt);this.yy.parser.parseError(yt,rt)},setInput:function(yt,rt){return this.yy=rt||this.yy||{},this._input=yt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var yt=this._input[0];return this.yytext+=yt,this.yyleng++,this.offset++,this.match+=yt,this.matched+=yt,yt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),yt},unput:function(yt){var rt=yt.length,pt=yt.split(/(?:\r\n?|\n)/g);this._input=yt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-rt),this.offset-=rt;var W=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),pt.length-1&&(this.yylineno-=pt.length-1);var kt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:pt?(pt.length===W.length?this.yylloc.first_column:0)+W[W.length-pt.length].length-pt[0].length:this.yylloc.first_column-rt},this.options.ranges&&(this.yylloc.range=[kt[0],kt[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(yt){this.unput(this.match.slice(yt))},pastInput:function(){var yt=this.matched.substr(0,this.matched.length-this.match.length);return(yt.length>20?"...":"")+yt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var yt=this.match;return yt.length<20&&(yt+=this._input.substr(0,20-yt.length)),(yt.substr(0,20)+(yt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var yt=this.pastInput(),rt=new Array(yt.length+1).join("-");return yt+this.upcomingInput()+`
|
|
`+rt+"^"},test_match:function(yt,rt){var pt,W,kt;if(this.options.backtrack_lexer&&(kt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(kt.yylloc.range=this.yylloc.range.slice(0))),(W=yt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=W.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:W?W[W.length-1].length-W[W.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+yt[0].length},this.yytext+=yt[0],this.match+=yt[0],this.matches=yt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(yt[0].length),this.matched+=yt[0],pt=this.performAction.call(this,this.yy,this,rt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),pt)return pt;if(this._backtrack){for(var G in kt)this[G]=kt[G];return!1}return!1},next:function(){if(this.done)return this.EOF;var yt,rt,pt,W;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var kt=this._currentRules(),G=0;G<kt.length;G++)if((pt=this._input.match(this.rules[kt[G]]))&&(!rt||pt[0].length>rt[0].length)){if(rt=pt,W=G,this.options.backtrack_lexer){if((yt=this.test_match(pt,kt[G]))!==!1)return yt;if(this._backtrack){rt=!1;continue}return!1}if(!this.options.flex)break}return rt?(yt=this.test_match(rt,kt[W]))!==!1&&yt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(yt){this.conditionStack.push(yt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(yt){return(yt=this.conditionStack.length-1-Math.abs(yt||0))>=0?this.conditionStack[yt]:"INITIAL"},pushState:function(yt){this.begin(yt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(yt,rt,pt,W){switch(pt){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 wt(){this.yy={}}return _t.lexer=It,wt.prototype=_t,_t.Parser=wt,new wt}();v.parser=_,v.Parser=_.Parser,v.parse=function(){return _.parse.apply(_,arguments)},v.main=function(p){p[1]||(console.log("Usage: "+p[0]+" FILE"),process.exit(1));var x=d(6878).readFileSync(d(6470).normalize(p[1]),"utf8");return v.parser.parse(x)},d.c[d.s]===f&&v.main(process.argv.slice(1))},2553:(f,v,d)=>{f=d.nmd(f);var _=function(){var p=function(It,wt,yt,rt){for(yt=yt||{},rt=It.length;rt--;yt[It[rt]]=wt);return yt},x=[1,4],b=[1,7],A=[1,5],O=[1,9],T=[1,6],R=[2,6],F=[1,16],U=[6,8,14,20,22,24,25,27,29,32,35,37,49,53],q=[8,14,20,22,24,25,27,29,32,35,37],Q=[8,13,14,20,22,24,25,27,29,32,35,37],nt=[1,26],ft=[6,8,14,49,53],J=[8,14,53],bt=[1,64],ot=[1,65],st=[1,66],vt=[8,14,33,36,41,53],Ut={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(It,wt,yt,rt,pt,W,kt){var G=W.length-1;switch(pt){case 3:return W[G];case 4:return W[G-1];case 5:return rt.setDirection(W[G-3]),W[G-1];case 7:rt.setOptions(W[G-1]),this.$=W[G];break;case 8:W[G-1]+=W[G],this.$=W[G-1];break;case 10:this.$=[];break;case 11:W[G-1].push(W[G]),this.$=W[G-1];break;case 12:this.$=W[G-1];break;case 17:this.$=W[G].trim(),rt.setAccTitle(this.$);break;case 18:case 19:this.$=W[G].trim(),rt.setAccDescription(this.$);break;case 20:rt.addSection(W[G].substr(8)),this.$=W[G].substr(8);break;case 22:rt.checkout(W[G]);break;case 23:rt.branch(W[G]);break;case 24:rt.branch(W[G-2],W[G]);break;case 25:rt.cherryPick(W[G]);break;case 26:rt.merge(W[G]);break;case 27:rt.merge(W[G-2],W[G]);break;case 28:rt.commit(W[G]);break;case 29:rt.commit("","",rt.commitType.NORMAL,W[G]);break;case 30:rt.commit("","",W[G],"");break;case 31:rt.commit("","",W[G],W[G-2]);break;case 32:rt.commit("","",W[G-2],W[G]);break;case 33:rt.commit("",W[G],rt.commitType.NORMAL,"");break;case 34:rt.commit("",W[G-2],rt.commitType.NORMAL,W[G]);break;case 35:rt.commit("",W[G],rt.commitType.NORMAL,W[G-2]);break;case 36:rt.commit("",W[G-2],W[G],"");break;case 37:rt.commit("",W[G],W[G-2],"");break;case 38:rt.commit("",W[G-4],W[G-2],W[G]);break;case 39:rt.commit("",W[G-4],W[G],W[G-2]);break;case 40:rt.commit("",W[G-2],W[G-4],W[G]);break;case 41:rt.commit("",W[G],W[G-4],W[G-2]);break;case 42:rt.commit("",W[G],W[G-2],W[G-4]);break;case 43:rt.commit("",W[G-2],W[G],W[G-4]);break;case 44:rt.commit(W[G],"",rt.commitType.NORMAL,"");break;case 45:rt.commit(W[G],"",rt.commitType.NORMAL,W[G-2]);break;case 46:rt.commit(W[G-2],"",rt.commitType.NORMAL,W[G]);break;case 47:rt.commit(W[G-2],"",W[G],"");break;case 48:rt.commit(W[G],"",W[G-2],"");break;case 49:rt.commit(W[G],W[G-2],rt.commitType.NORMAL,"");break;case 50:rt.commit(W[G-2],W[G],rt.commitType.NORMAL,"");break;case 51:rt.commit(W[G-4],"",W[G-2],W[G]);break;case 52:rt.commit(W[G-4],"",W[G],W[G-2]);break;case 53:rt.commit(W[G-2],"",W[G-4],W[G]);break;case 54:rt.commit(W[G],"",W[G-4],W[G-2]);break;case 55:rt.commit(W[G],"",W[G-2],W[G-4]);break;case 56:rt.commit(W[G-2],"",W[G],W[G-4]);break;case 57:rt.commit(W[G-4],W[G],W[G-2],"");break;case 58:rt.commit(W[G-4],W[G-2],W[G],"");break;case 59:rt.commit(W[G-2],W[G],W[G-4],"");break;case 60:rt.commit(W[G],W[G-2],W[G-4],"");break;case 61:rt.commit(W[G],W[G-4],W[G-2],"");break;case 62:rt.commit(W[G-2],W[G-4],W[G],"");break;case 63:rt.commit(W[G-4],W[G],rt.commitType.NORMAL,W[G-2]);break;case 64:rt.commit(W[G-4],W[G-2],rt.commitType.NORMAL,W[G]);break;case 65:rt.commit(W[G-2],W[G],rt.commitType.NORMAL,W[G-4]);break;case 66:rt.commit(W[G],W[G-2],rt.commitType.NORMAL,W[G-4]);break;case 67:rt.commit(W[G],W[G-4],rt.commitType.NORMAL,W[G-2]);break;case 68:rt.commit(W[G-2],W[G-4],rt.commitType.NORMAL,W[G]);break;case 69:rt.commit(W[G-6],W[G-4],W[G-2],W[G]);break;case 70:rt.commit(W[G-6],W[G-4],W[G],W[G-2]);break;case 71:rt.commit(W[G-6],W[G-2],W[G-4],W[G]);break;case 72:rt.commit(W[G-6],W[G],W[G-4],W[G-2]);break;case 73:rt.commit(W[G-6],W[G-2],W[G],W[G-4]);break;case 74:rt.commit(W[G-6],W[G],W[G-2],W[G-4]);break;case 75:rt.commit(W[G-4],W[G-6],W[G-2],W[G]);break;case 76:rt.commit(W[G-4],W[G-6],W[G],W[G-2]);break;case 77:rt.commit(W[G-2],W[G-6],W[G-4],W[G]);break;case 78:rt.commit(W[G],W[G-6],W[G-4],W[G-2]);break;case 79:rt.commit(W[G-2],W[G-6],W[G],W[G-4]);break;case 80:rt.commit(W[G],W[G-6],W[G-2],W[G-4]);break;case 81:rt.commit(W[G],W[G-4],W[G-2],W[G-6]);break;case 82:rt.commit(W[G-2],W[G-4],W[G],W[G-6]);break;case 83:rt.commit(W[G],W[G-2],W[G-4],W[G-6]);break;case 84:rt.commit(W[G-2],W[G],W[G-4],W[G-6]);break;case 85:rt.commit(W[G-4],W[G-2],W[G],W[G-6]);break;case 86:rt.commit(W[G-4],W[G],W[G-2],W[G-6]);break;case 87:rt.commit(W[G-2],W[G-4],W[G-6],W[G]);break;case 88:rt.commit(W[G],W[G-4],W[G-6],W[G-2]);break;case 89:rt.commit(W[G-2],W[G],W[G-6],W[G-4]);break;case 90:rt.commit(W[G],W[G-2],W[G-6],W[G-4]);break;case 91:rt.commit(W[G-4],W[G-2],W[G-6],W[G]);break;case 92:rt.commit(W[G-4],W[G],W[G-6],W[G-2]);break;case 93:this.$="";break;case 94:this.$=W[G];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(W[G],"type_directive");break;case 102:W[G]=W[G].trim().replace(/'/g,'"'),rt.parseDirective(W[G],"arg_directive");break;case 103:rt.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:x,8:b,14:A,45:8,49:O,53:T},{1:[3]},{3:10,4:2,5:3,6:x,8:b,14:A,45:8,49:O,53:T},{3:11,4:2,5:3,6:x,8:b,14:A,45:8,49:O,53:T},{7:12,8:R,9:[1,13],10:[1,14],11:15,14:F},p(U,[2,104]),p(U,[2,105]),p(U,[2,106]),{46:17,50:[1,18]},{50:[2,100]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:R,11:15,14:F},{9:[1,21]},p(q,[2,10],{12:22,13:[1,23]}),p(Q,[2,9]),{9:[1,25],47:24,52:nt},p([9,52],[2,101]),{1:[2,3]},{8:[1,27]},{7:28,8:R,11:15,14:F},{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]},p(Q,[2,8]),p(ft,[2,98]),{48:45,51:[1,46]},p(ft,[2,103]),{1:[2,4]},{8:[1,47]},p(q,[2,11]),{4:48,8:b,14:A,53:T},p(q,[2,13]),p(J,[2,14]),p(J,[2,15]),p(J,[2,16]),{21:[1,49]},{23:[1,50]},p(J,[2,19]),p(J,[2,20]),p(J,[2,21]),{28:[1,51]},p(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]},p(q,[2,12]),p(J,[2,17]),p(J,[2,18]),p(J,[2,22]),p(J,[2,28]),{34:[1,62]},{40:63,42:bt,43:ot,44:st},{34:[1,67]},{34:[1,68]},p(J,[2,94]),p(J,[2,26],{36:[1,69]}),{34:[1,70]},p(J,[2,23],{30:[1,71]}),p(ft,[2,99]),p(J,[2,29],{33:[1,73],39:[1,72],41:[1,74]}),p(J,[2,30],{33:[1,76],36:[1,75],41:[1,77]}),p(vt,[2,95]),p(vt,[2,96]),p(vt,[2,97]),p(J,[2,33],{36:[1,78],39:[1,79],41:[1,80]}),p(J,[2,44],{33:[1,83],36:[1,81],39:[1,82]}),{34:[1,84]},p(J,[2,25]),{31:[1,85]},{40:86,42:bt,43:ot,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:ot,44:st},{34:[1,94]},{34:[1,95]},{40:96,42:bt,43:ot,44:st},{34:[1,97]},p(J,[2,27]),p(J,[2,24]),p(J,[2,31],{33:[1,98],41:[1,99]}),p(J,[2,35],{39:[1,100],41:[1,101]}),p(J,[2,45],{33:[1,103],39:[1,102]}),p(J,[2,32],{33:[1,104],41:[1,105]}),p(J,[2,37],{36:[1,106],41:[1,107]}),p(J,[2,48],{33:[1,109],36:[1,108]}),p(J,[2,34],{39:[1,110],41:[1,111]}),p(J,[2,36],{36:[1,112],41:[1,113]}),p(J,[2,49],{36:[1,115],39:[1,114]}),p(J,[2,46],{33:[1,117],39:[1,116]}),p(J,[2,47],{33:[1,119],36:[1,118]}),p(J,[2,50],{36:[1,121],39:[1,120]}),{34:[1,122]},{34:[1,123]},{40:124,42:bt,43:ot,44:st},{34:[1,125]},{40:126,42:bt,43:ot,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:ot,44:st},{34:[1,135]},{34:[1,136]},{34:[1,137]},{40:138,42:bt,43:ot,44:st},{34:[1,139]},{40:140,42:bt,43:ot,44:st},{34:[1,141]},{34:[1,142]},{34:[1,143]},{40:144,42:bt,43:ot,44:st},{34:[1,145]},p(J,[2,42],{41:[1,146]}),p(J,[2,55],{33:[1,147]}),p(J,[2,43],{41:[1,148]}),p(J,[2,66],{39:[1,149]}),p(J,[2,56],{33:[1,150]}),p(J,[2,65],{39:[1,151]}),p(J,[2,41],{41:[1,152]}),p(J,[2,54],{33:[1,153]}),p(J,[2,40],{41:[1,154]}),p(J,[2,60],{36:[1,155]}),p(J,[2,53],{33:[1,156]}),p(J,[2,59],{36:[1,157]}),p(J,[2,39],{41:[1,158]}),p(J,[2,67],{39:[1,159]}),p(J,[2,38],{41:[1,160]}),p(J,[2,61],{36:[1,161]}),p(J,[2,62],{36:[1,162]}),p(J,[2,68],{39:[1,163]}),p(J,[2,52],{33:[1,164]}),p(J,[2,63],{39:[1,165]}),p(J,[2,51],{33:[1,166]}),p(J,[2,57],{36:[1,167]}),p(J,[2,58],{36:[1,168]}),p(J,[2,64],{39:[1,169]}),{34:[1,170]},{34:[1,171]},{34:[1,172]},{40:173,42:bt,43:ot,44:st},{34:[1,174]},{40:175,42:bt,43:ot,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:ot,44:st},{34:[1,184]},{34:[1,185]},{34:[1,186]},{40:187,42:bt,43:ot,44:st},{34:[1,188]},{40:189,42:bt,43:ot,44:st},{34:[1,190]},{34:[1,191]},{34:[1,192]},{40:193,42:bt,43:ot,44:st},p(J,[2,83]),p(J,[2,84]),p(J,[2,81]),p(J,[2,82]),p(J,[2,86]),p(J,[2,85]),p(J,[2,90]),p(J,[2,89]),p(J,[2,88]),p(J,[2,87]),p(J,[2,92]),p(J,[2,91]),p(J,[2,80]),p(J,[2,79]),p(J,[2,78]),p(J,[2,77]),p(J,[2,75]),p(J,[2,76]),p(J,[2,74]),p(J,[2,73]),p(J,[2,72]),p(J,[2,71]),p(J,[2,69]),p(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(It,wt){if(!wt.recoverable){var yt=new Error(It);throw yt.hash=wt,yt}this.trace(It)},parse:function(It){var wt=this,yt=[0],rt=[],pt=[null],W=[],kt=this.table,G="",At=0,Mt=0,Gt=0,me=2,Ze=1,Ee=W.slice.call(arguments,1),pe=Object.create(this.lexer),we={yy:{}};for(var Oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Oe)&&(we.yy[Oe]=this.yy[Oe]);pe.setInput(It,we.yy),we.yy.lexer=pe,we.yy.parser=this,pe.yylloc===void 0&&(pe.yylloc={});var De=pe.yylloc;W.push(De);var xe=pe.options&&pe.options.ranges;function Ar(){var ye;return typeof(ye=rt.pop()||pe.lex()||Ze)!="number"&&(ye instanceof Array&&(ye=(rt=ye).pop()),ye=wt.symbols_[ye]||ye),ye}typeof we.yy.parseError=="function"?this.parseError=we.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var be,Qe,Rt,de,ne,Ct,Te,tt,le,ct={};;){if(Rt=yt[yt.length-1],this.defaultActions[Rt]?de=this.defaultActions[Rt]:(be==null&&(be=Ar()),de=kt[Rt]&&kt[Rt][be]),de===void 0||!de.length||!de[0]){var Se="";for(Ct in le=[],kt[Rt])this.terminals_[Ct]&&Ct>me&&le.push("'"+this.terminals_[Ct]+"'");Se=pe.showPosition?"Parse error on line "+(At+1)+`:
|
|
`+pe.showPosition()+`
|
|
Expecting `+le.join(", ")+", got '"+(this.terminals_[be]||be)+"'":"Parse error on line "+(At+1)+": Unexpected "+(be==Ze?"end of input":"'"+(this.terminals_[be]||be)+"'"),this.parseError(Se,{text:pe.match,token:this.terminals_[be]||be,line:pe.yylineno,loc:De,expected:le})}if(de[0]instanceof Array&&de.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Rt+", token: "+be);switch(de[0]){case 1:yt.push(be),pt.push(pe.yytext),W.push(pe.yylloc),yt.push(de[1]),be=null,Qe?(be=Qe,Qe=null):(Mt=pe.yyleng,G=pe.yytext,At=pe.yylineno,De=pe.yylloc,Gt>0);break;case 2:if(Te=this.productions_[de[1]][1],ct.$=pt[pt.length-Te],ct._$={first_line:W[W.length-(Te||1)].first_line,last_line:W[W.length-1].last_line,first_column:W[W.length-(Te||1)].first_column,last_column:W[W.length-1].last_column},xe&&(ct._$.range=[W[W.length-(Te||1)].range[0],W[W.length-1].range[1]]),(ne=this.performAction.apply(ct,[G,Mt,At,we.yy,de[1],pt,W].concat(Ee)))!==void 0)return ne;Te&&(yt=yt.slice(0,-1*Te*2),pt=pt.slice(0,-1*Te),W=W.slice(0,-1*Te)),yt.push(this.productions_[de[1]][0]),pt.push(ct.$),W.push(ct._$),tt=kt[yt[yt.length-2]][yt[yt.length-1]],yt.push(tt);break;case 3:return!0}}return!0}},St={EOF:1,parseError:function(It,wt){if(!this.yy.parser)throw new Error(It);this.yy.parser.parseError(It,wt)},setInput:function(It,wt){return this.yy=wt||this.yy||{},this._input=It,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var It=this._input[0];return this.yytext+=It,this.yyleng++,this.offset++,this.match+=It,this.matched+=It,It.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),It},unput:function(It){var wt=It.length,yt=It.split(/(?:\r\n?|\n)/g);this._input=It+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-wt),this.offset-=wt;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),yt.length-1&&(this.yylineno-=yt.length-1);var pt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:yt?(yt.length===rt.length?this.yylloc.first_column:0)+rt[rt.length-yt.length].length-yt[0].length:this.yylloc.first_column-wt},this.options.ranges&&(this.yylloc.range=[pt[0],pt[0]+this.yyleng-wt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(It){this.unput(this.match.slice(It))},pastInput:function(){var It=this.matched.substr(0,this.matched.length-this.match.length);return(It.length>20?"...":"")+It.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var It=this.match;return It.length<20&&(It+=this._input.substr(0,20-It.length)),(It.substr(0,20)+(It.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var It=this.pastInput(),wt=new Array(It.length+1).join("-");return It+this.upcomingInput()+`
|
|
`+wt+"^"},test_match:function(It,wt){var yt,rt,pt;if(this.options.backtrack_lexer&&(pt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(pt.yylloc.range=this.yylloc.range.slice(0))),(rt=It[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+It[0].length},this.yytext+=It[0],this.match+=It[0],this.matches=It,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(It[0].length),this.matched+=It[0],yt=this.performAction.call(this,this.yy,this,wt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),yt)return yt;if(this._backtrack){for(var W in pt)this[W]=pt[W];return!1}return!1},next:function(){if(this.done)return this.EOF;var It,wt,yt,rt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var pt=this._currentRules(),W=0;W<pt.length;W++)if((yt=this._input.match(this.rules[pt[W]]))&&(!wt||yt[0].length>wt[0].length)){if(wt=yt,rt=W,this.options.backtrack_lexer){if((It=this.test_match(yt,pt[W]))!==!1)return It;if(this._backtrack){wt=!1;continue}return!1}if(!this.options.flex)break}return wt?(It=this.test_match(wt,pt[rt]))!==!1&&It:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(It){this.conditionStack.push(It)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(It){return(It=this.conditionStack.length-1-Math.abs(It||0))>=0?this.conditionStack[It]:"INITIAL"},pushState:function(It){this.begin(It)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(It,wt,yt,rt){switch(yt){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 _t(){this.yy={}}return Ut.lexer=St,_t.prototype=Ut,Ut.Parser=_t,new _t}();v.parser=_,v.Parser=_.Parser,v.parse=function(){return _.parse.apply(_,arguments)},v.main=function(p){p[1]||(console.log("Usage: "+p[0]+" FILE"),process.exit(1));var x=d(8183).readFileSync(d(6470).normalize(p[1]),"utf8");return v.parser.parse(x)},d.c[d.s]===f&&v.main(process.argv.slice(1))},6765:(f,v,d)=>{f=d.nmd(f);var _=function(){var p=function(T,R,F,U){for(F=F||{},U=T.length;U--;F[T[U]]=R);return F},x=[6,9,10],b={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(T,R,F,U,q,Q,nt){switch(Q.length,q){case 1:return U;case 4:break;case 6:U.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},p(x,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},p(x,[2,3]),p(x,[2,4]),p(x,[2,5]),p(x,[2,6])],defaultActions:{4:[2,1]},parseError:function(T,R){if(!R.recoverable){var F=new Error(T);throw F.hash=R,F}this.trace(T)},parse:function(T){var R=this,F=[0],U=[],q=[null],Q=[],nt=this.table,ft="",J=0,bt=0,ot=0,st=2,vt=1,Ut=Q.slice.call(arguments,1),St=Object.create(this.lexer),_t={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(_t.yy[It]=this.yy[It]);St.setInput(T,_t.yy),_t.yy.lexer=St,_t.yy.parser=this,St.yylloc===void 0&&(St.yylloc={});var wt=St.yylloc;Q.push(wt);var yt=St.options&&St.options.ranges;function rt(){var we;return typeof(we=U.pop()||St.lex()||vt)!="number"&&(we instanceof Array&&(we=(U=we).pop()),we=R.symbols_[we]||we),we}typeof _t.yy.parseError=="function"?this.parseError=_t.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var pt,W,kt,G,At,Mt,Gt,me,Ze,Ee={};;){if(kt=F[F.length-1],this.defaultActions[kt]?G=this.defaultActions[kt]:(pt==null&&(pt=rt()),G=nt[kt]&&nt[kt][pt]),G===void 0||!G.length||!G[0]){var pe="";for(Mt in Ze=[],nt[kt])this.terminals_[Mt]&&Mt>st&&Ze.push("'"+this.terminals_[Mt]+"'");pe=St.showPosition?"Parse error on line "+(J+1)+`:
|
|
`+St.showPosition()+`
|
|
Expecting `+Ze.join(", ")+", got '"+(this.terminals_[pt]||pt)+"'":"Parse error on line "+(J+1)+": Unexpected "+(pt==vt?"end of input":"'"+(this.terminals_[pt]||pt)+"'"),this.parseError(pe,{text:St.match,token:this.terminals_[pt]||pt,line:St.yylineno,loc:wt,expected:Ze})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+pt);switch(G[0]){case 1:F.push(pt),q.push(St.yytext),Q.push(St.yylloc),F.push(G[1]),pt=null,W?(pt=W,W=null):(bt=St.yyleng,ft=St.yytext,J=St.yylineno,wt=St.yylloc,ot>0);break;case 2:if(Gt=this.productions_[G[1]][1],Ee.$=q[q.length-Gt],Ee._$={first_line:Q[Q.length-(Gt||1)].first_line,last_line:Q[Q.length-1].last_line,first_column:Q[Q.length-(Gt||1)].first_column,last_column:Q[Q.length-1].last_column},yt&&(Ee._$.range=[Q[Q.length-(Gt||1)].range[0],Q[Q.length-1].range[1]]),(At=this.performAction.apply(Ee,[ft,bt,J,_t.yy,G[1],q,Q].concat(Ut)))!==void 0)return At;Gt&&(F=F.slice(0,-1*Gt*2),q=q.slice(0,-1*Gt),Q=Q.slice(0,-1*Gt)),F.push(this.productions_[G[1]][0]),q.push(Ee.$),Q.push(Ee._$),me=nt[F[F.length-2]][F[F.length-1]],F.push(me);break;case 3:return!0}}return!0}},A={EOF:1,parseError:function(T,R){if(!this.yy.parser)throw new Error(T);this.yy.parser.parseError(T,R)},setInput:function(T,R){return this.yy=R||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 R=T.length,F=T.split(/(?:\r\n?|\n)/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-R),this.offset-=R;var U=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),F.length-1&&(this.yylineno-=F.length-1);var q=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:F?(F.length===U.length?this.yylloc.first_column:0)+U[U.length-F.length].length-F[0].length:this.yylloc.first_column-R},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-R]),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(),R=new Array(T.length+1).join("-");return T+this.upcomingInput()+`
|
|
`+R+"^"},test_match:function(T,R){var F,U,q;if(this.options.backtrack_lexer&&(q={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&&(q.yylloc.range=this.yylloc.range.slice(0))),(U=T[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=U.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:U?U[U.length-1].length-U[U.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],F=this.performAction.call(this,this.yy,this,R,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),F)return F;if(this._backtrack){for(var Q in q)this[Q]=q[Q];return!1}return!1},next:function(){if(this.done)return this.EOF;var T,R,F,U;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),Q=0;Q<q.length;Q++)if((F=this._input.match(this.rules[q[Q]]))&&(!R||F[0].length>R[0].length)){if(R=F,U=Q,this.options.backtrack_lexer){if((T=this.test_match(F,q[Q]))!==!1)return T;if(this._backtrack){R=!1;continue}return!1}if(!this.options.flex)break}return R?(T=this.test_match(R,q[U]))!==!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,R,F,U){switch(F){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 b.lexer=A,O.prototype=b,b.Parser=O,new O}();v.parser=_,v.Parser=_.Parser,v.parse=function(){return _.parse.apply(_,arguments)},v.main=function(p){p[1]||(console.log("Usage: "+p[0]+" FILE"),process.exit(1));var x=d(1428).readFileSync(d(6470).normalize(p[1]),"utf8");return v.parser.parse(x)},d.c[d.s]===f&&v.main(process.argv.slice(1))},7062:(f,v,d)=>{f=d.nmd(f);var _=function(){var p=function(wt,yt,rt,pt){for(rt=rt||{},pt=wt.length;pt--;rt[wt[pt]]=yt);return rt},x=[1,4],b=[1,5],A=[1,6],O=[1,7],T=[1,9],R=[1,11,13,15,17,19,20,26,27,28,29],F=[2,5],U=[1,6,11,13,15,17,19,20,26,27,28,29],q=[26,27,28],Q=[2,8],nt=[1,18],ft=[1,19],J=[1,20],bt=[1,21],ot=[1,22],st=[1,23],vt=[1,28],Ut=[6,26,27,28,29],St={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(wt,yt,rt,pt,W,kt,G){var At=kt.length-1;switch(W){case 4:pt.setShowData(!0);break;case 7:this.$=kt[At-1];break;case 9:pt.addSection(kt[At-1],pt.cleanupValue(kt[At]));break;case 10:this.$=kt[At].trim(),pt.setDiagramTitle(this.$);break;case 11:this.$=kt[At].trim(),pt.setAccTitle(this.$);break;case 12:case 13:this.$=kt[At].trim(),pt.setAccDescription(this.$);break;case 14:pt.addSection(kt[At].substr(8)),this.$=kt[At].substr(8);break;case 21:pt.parseDirective("%%{","open_directive");break;case 22:pt.parseDirective(kt[At],"type_directive");break;case 23:kt[At]=kt[At].trim().replace(/'/g,'"'),pt.parseDirective(kt[At],"arg_directive");break;case 24:pt.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:x,21:8,26:b,27:A,28:O,29:T},{1:[3]},{3:10,4:2,5:3,6:x,21:8,26:b,27:A,28:O,29:T},{3:11,4:2,5:3,6:x,21:8,26:b,27:A,28:O,29:T},p(R,F,{7:12,8:[1,13]}),p(U,[2,18]),p(U,[2,19]),p(U,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},p(q,Q,{21:8,9:16,10:17,5:24,1:[2,3],11:nt,13:ft,15:J,17:bt,19:ot,20:st,29:T}),p(R,F,{7:25}),{23:26,24:[1,27],32:vt},p([24,32],[2,22]),p(R,[2,6]),{4:29,26:b,27:A,28:O},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},p(q,[2,13]),p(q,[2,14]),p(q,[2,15]),p(q,Q,{21:8,9:16,10:17,5:24,1:[2,4],11:nt,13:ft,15:J,17:bt,19:ot,20:st,29:T}),p(Ut,[2,16]),{25:34,31:[1,35]},p(Ut,[2,24]),p(R,[2,7]),p(q,[2,9]),p(q,[2,10]),p(q,[2,11]),p(q,[2,12]),{23:36,32:vt},{32:[2,23]},p(Ut,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(wt,yt){if(!yt.recoverable){var rt=new Error(wt);throw rt.hash=yt,rt}this.trace(wt)},parse:function(wt){var yt=this,rt=[0],pt=[],W=[null],kt=[],G=this.table,At="",Mt=0,Gt=0,me=0,Ze=2,Ee=1,pe=kt.slice.call(arguments,1),we=Object.create(this.lexer),Oe={yy:{}};for(var De in this.yy)Object.prototype.hasOwnProperty.call(this.yy,De)&&(Oe.yy[De]=this.yy[De]);we.setInput(wt,Oe.yy),Oe.yy.lexer=we,Oe.yy.parser=this,we.yylloc===void 0&&(we.yylloc={});var xe=we.yylloc;kt.push(xe);var Ar=we.options&&we.options.ranges;function be(){var ze;return typeof(ze=pt.pop()||we.lex()||Ee)!="number"&&(ze instanceof Array&&(ze=(pt=ze).pop()),ze=yt.symbols_[ze]||ze),ze}typeof Oe.yy.parseError=="function"?this.parseError=Oe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Qe,Rt,de,ne,Ct,Te,tt,le,ct,Se={};;){if(de=rt[rt.length-1],this.defaultActions[de]?ne=this.defaultActions[de]:(Qe==null&&(Qe=be()),ne=G[de]&&G[de][Qe]),ne===void 0||!ne.length||!ne[0]){var ye="";for(Te in ct=[],G[de])this.terminals_[Te]&&Te>Ze&&ct.push("'"+this.terminals_[Te]+"'");ye=we.showPosition?"Parse error on line "+(Mt+1)+`:
|
|
`+we.showPosition()+`
|
|
Expecting `+ct.join(", ")+", got '"+(this.terminals_[Qe]||Qe)+"'":"Parse error on line "+(Mt+1)+": Unexpected "+(Qe==Ee?"end of input":"'"+(this.terminals_[Qe]||Qe)+"'"),this.parseError(ye,{text:we.match,token:this.terminals_[Qe]||Qe,line:we.yylineno,loc:xe,expected:ct})}if(ne[0]instanceof Array&&ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+de+", token: "+Qe);switch(ne[0]){case 1:rt.push(Qe),W.push(we.yytext),kt.push(we.yylloc),rt.push(ne[1]),Qe=null,Rt?(Qe=Rt,Rt=null):(Gt=we.yyleng,At=we.yytext,Mt=we.yylineno,xe=we.yylloc,me>0);break;case 2:if(tt=this.productions_[ne[1]][1],Se.$=W[W.length-tt],Se._$={first_line:kt[kt.length-(tt||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(tt||1)].first_column,last_column:kt[kt.length-1].last_column},Ar&&(Se._$.range=[kt[kt.length-(tt||1)].range[0],kt[kt.length-1].range[1]]),(Ct=this.performAction.apply(Se,[At,Gt,Mt,Oe.yy,ne[1],W,kt].concat(pe)))!==void 0)return Ct;tt&&(rt=rt.slice(0,-1*tt*2),W=W.slice(0,-1*tt),kt=kt.slice(0,-1*tt)),rt.push(this.productions_[ne[1]][0]),W.push(Se.$),kt.push(Se._$),le=G[rt[rt.length-2]][rt[rt.length-1]],rt.push(le);break;case 3:return!0}}return!0}},_t={EOF:1,parseError:function(wt,yt){if(!this.yy.parser)throw new Error(wt);this.yy.parser.parseError(wt,yt)},setInput:function(wt,yt){return this.yy=yt||this.yy||{},this._input=wt,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 wt=this._input[0];return this.yytext+=wt,this.yyleng++,this.offset++,this.match+=wt,this.matched+=wt,wt.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),wt},unput:function(wt){var yt=wt.length,rt=wt.split(/(?:\r\n?|\n)/g);this._input=wt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-yt),this.offset-=yt;var pt=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 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:rt?(rt.length===pt.length?this.yylloc.first_column:0)+pt[pt.length-rt.length].length-rt[0].length:this.yylloc.first_column-yt},this.options.ranges&&(this.yylloc.range=[W[0],W[0]+this.yyleng-yt]),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(wt){this.unput(this.match.slice(wt))},pastInput:function(){var wt=this.matched.substr(0,this.matched.length-this.match.length);return(wt.length>20?"...":"")+wt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var wt=this.match;return wt.length<20&&(wt+=this._input.substr(0,20-wt.length)),(wt.substr(0,20)+(wt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var wt=this.pastInput(),yt=new Array(wt.length+1).join("-");return wt+this.upcomingInput()+`
|
|
`+yt+"^"},test_match:function(wt,yt){var rt,pt,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))),(pt=wt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=pt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:pt?pt[pt.length-1].length-pt[pt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+wt[0].length},this.yytext+=wt[0],this.match+=wt[0],this.matches=wt,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(wt[0].length),this.matched+=wt[0],rt=this.performAction.call(this,this.yy,this,yt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),rt)return rt;if(this._backtrack){for(var kt in W)this[kt]=W[kt];return!1}return!1},next:function(){if(this.done)return this.EOF;var wt,yt,rt,pt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var W=this._currentRules(),kt=0;kt<W.length;kt++)if((rt=this._input.match(this.rules[W[kt]]))&&(!yt||rt[0].length>yt[0].length)){if(yt=rt,pt=kt,this.options.backtrack_lexer){if((wt=this.test_match(rt,W[kt]))!==!1)return wt;if(this._backtrack){yt=!1;continue}return!1}if(!this.options.flex)break}return yt?(wt=this.test_match(yt,W[pt]))!==!1&&wt: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(wt){this.conditionStack.push(wt)},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(wt){return(wt=this.conditionStack.length-1-Math.abs(wt||0))>=0?this.conditionStack[wt]:"INITIAL"},pushState:function(wt){this.begin(wt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(wt,yt,rt,pt){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 It(){this.yy={}}return St.lexer=_t,It.prototype=St,St.Parser=It,new It}();v.parser=_,v.Parser=_.Parser,v.parse=function(){return _.parse.apply(_,arguments)},v.main=function(p){p[1]||(console.log("Usage: "+p[0]+" FILE"),process.exit(1));var x=d(4551).readFileSync(d(6470).normalize(p[1]),"utf8");return v.parser.parse(x)},d.c[d.s]===f&&v.main(process.argv.slice(1))},3176:(f,v,d)=>{f=d.nmd(f);var _=function(){var p=function(Rt,de,ne,Ct){for(ne=ne||{},Ct=Rt.length;Ct--;ne[Rt[Ct]]=de);return ne},x=[1,3],b=[1,5],A=[1,6],O=[1,7],T=[1,8],R=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],F=[1,22],U=[2,13],q=[1,26],Q=[1,27],nt=[1,28],ft=[1,29],J=[1,30],bt=[1,31],ot=[1,24],st=[1,32],vt=[1,33],Ut=[1,36],St=[71,72],_t=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],It=[1,56],wt=[1,57],yt=[1,58],rt=[1,59],pt=[1,60],W=[1,61],kt=[1,62],G=[62,63],At=[1,74],Mt=[1,70],Gt=[1,71],me=[1,72],Ze=[1,73],Ee=[1,75],pe=[1,79],we=[1,80],Oe=[1,77],De=[1,78],xe=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],Ar={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(Rt,de,ne,Ct,Te,tt,le){var ct=tt.length-1;switch(Te){case 6:this.$=tt[ct].trim(),Ct.setAccTitle(this.$);break;case 7:case 8:this.$=tt[ct].trim(),Ct.setAccDescription(this.$);break;case 9:Ct.parseDirective("%%{","open_directive");break;case 10:Ct.parseDirective(tt[ct],"type_directive");break;case 11:tt[ct]=tt[ct].trim().replace(/'/g,'"'),Ct.parseDirective(tt[ct],"arg_directive");break;case 12:Ct.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:Ct.addRequirement(tt[ct-3],tt[ct-4]);break;case 20:Ct.setNewReqId(tt[ct-2]);break;case 21:Ct.setNewReqText(tt[ct-2]);break;case 22:Ct.setNewReqRisk(tt[ct-2]);break;case 23:Ct.setNewReqVerifyMethod(tt[ct-2]);break;case 26:this.$=Ct.RequirementType.REQUIREMENT;break;case 27:this.$=Ct.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=Ct.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=Ct.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=Ct.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=Ct.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=Ct.RiskLevel.LOW_RISK;break;case 33:this.$=Ct.RiskLevel.MED_RISK;break;case 34:this.$=Ct.RiskLevel.HIGH_RISK;break;case 35:this.$=Ct.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=Ct.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=Ct.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=Ct.VerifyType.VERIFY_TEST;break;case 39:Ct.addElement(tt[ct-3]);break;case 40:Ct.setNewElementType(tt[ct-2]);break;case 41:Ct.setNewElementDocRef(tt[ct-2]);break;case 44:Ct.addRelationship(tt[ct-2],tt[ct],tt[ct-4]);break;case 45:Ct.addRelationship(tt[ct-2],tt[ct-4],tt[ct]);break;case 46:this.$=Ct.Relationships.CONTAINS;break;case 47:this.$=Ct.Relationships.COPIES;break;case 48:this.$=Ct.Relationships.DERIVES;break;case 49:this.$=Ct.Relationships.SATISFIES;break;case 50:this.$=Ct.Relationships.VERIFIES;break;case 51:this.$=Ct.Relationships.REFINES;break;case 52:this.$=Ct.Relationships.TRACES}},table:[{3:1,4:2,6:x,9:4,14:b,16:A,18:O,19:T},{1:[3]},{3:10,4:2,5:[1,9],6:x,9:4,14:b,16:A,18:O,19:T},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},p(R,[2,8]),{20:[2,9]},{3:16,4:2,6:x,9:4,14:b,16:A,18:O,19:T},{1:[2,2]},{4:21,5:F,7:17,8:U,9:4,14:b,16:A,18:O,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:Q,42:nt,43:ft,44:J,45:bt,53:ot,71:st,72:vt},{11:34,12:[1,35],22:Ut},p([12,22],[2,10]),p(R,[2,6]),p(R,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:F,7:38,8:U,9:4,14:b,16:A,18:O,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:Q,42:nt,43:ft,44:J,45:bt,53:ot,71:st,72:vt},{4:21,5:F,7:39,8:U,9:4,14:b,16:A,18:O,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:Q,42:nt,43:ft,44:J,45:bt,53:ot,71:st,72:vt},{4:21,5:F,7:40,8:U,9:4,14:b,16:A,18:O,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:Q,42:nt,43:ft,44:J,45:bt,53:ot,71:st,72:vt},{4:21,5:F,7:41,8:U,9:4,14:b,16:A,18:O,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:Q,42:nt,43:ft,44:J,45:bt,53:ot,71:st,72:vt},{4:21,5:F,7:42,8:U,9:4,14:b,16:A,18:O,19:T,23:18,24:19,25:20,26:23,32:25,40:q,41:Q,42:nt,43:ft,44:J,45:bt,53:ot,71:st,72:vt},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},p(St,[2,26]),p(St,[2,27]),p(St,[2,28]),p(St,[2,29]),p(St,[2,30]),p(St,[2,31]),p(_t,[2,55]),p(_t,[2,56]),p(R,[2,4]),{13:51,21:[1,52]},p(R,[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:It,65:wt,66:yt,67:rt,68:pt,69:W,70:kt},{61:63,64:It,65:wt,66:yt,67:rt,68:pt,69:W,70:kt},{11:64,22:Ut},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},p(G,[2,46]),p(G,[2,47]),p(G,[2,48]),p(G,[2,49]),p(G,[2,50]),p(G,[2,51]),p(G,[2,52]),{63:[1,68]},p(R,[2,5]),{5:At,29:69,30:Mt,33:Gt,35:me,37:Ze,39:Ee},{5:pe,39:we,55:76,56:Oe,58:De},{32:81,71:st,72:vt},{32:82,71:st,72:vt},p(xe,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:At,29:87,30:Mt,33:Gt,35:me,37:Ze,39:Ee},p(xe,[2,25]),p(xe,[2,39]),{31:[1,88]},{31:[1,89]},{5:pe,39:we,55:90,56:Oe,58:De},p(xe,[2,43]),p(xe,[2,44]),p(xe,[2,45]),{32:91,71:st,72:vt},{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]},p(xe,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},p(xe,[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:At,29:116,30:Mt,33:Gt,35:me,37:Ze,39:Ee},{5:At,29:117,30:Mt,33:Gt,35:me,37:Ze,39:Ee},{5:At,29:118,30:Mt,33:Gt,35:me,37:Ze,39:Ee},{5:At,29:119,30:Mt,33:Gt,35:me,37:Ze,39:Ee},{5:pe,39:we,55:120,56:Oe,58:De},{5:pe,39:we,55:121,56:Oe,58:De},p(xe,[2,20]),p(xe,[2,21]),p(xe,[2,22]),p(xe,[2,23]),p(xe,[2,40]),p(xe,[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(Rt,de){if(!de.recoverable){var ne=new Error(Rt);throw ne.hash=de,ne}this.trace(Rt)},parse:function(Rt){var de=this,ne=[0],Ct=[],Te=[null],tt=[],le=this.table,ct="",Se=0,ye=0,ze=0,or=2,Xe=1,ur=tt.slice.call(arguments,1),Ne=Object.create(this.lexer),Be={yy:{}};for(var Ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ue)&&(Be.yy[Ue]=this.yy[Ue]);Ne.setInput(Rt,Be.yy),Be.yy.lexer=Ne,Be.yy.parser=this,Ne.yylloc===void 0&&(Ne.yylloc={});var Pe=Ne.yylloc;tt.push(Pe);var ve=Ne.options&&Ne.options.ranges;function oe(){var Ae;return typeof(Ae=Ct.pop()||Ne.lex()||Xe)!="number"&&(Ae instanceof Array&&(Ae=(Ct=Ae).pop()),Ae=de.symbols_[Ae]||Ae),Ae}typeof Be.yy.parseError=="function"?this.parseError=Be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var vr,We,cr,He,Tr,Qr,Nr,Fr,Le,tr={};;){if(cr=ne[ne.length-1],this.defaultActions[cr]?He=this.defaultActions[cr]:(vr==null&&(vr=oe()),He=le[cr]&&le[cr][vr]),He===void 0||!He.length||!He[0]){var nr="";for(Qr in Le=[],le[cr])this.terminals_[Qr]&&Qr>or&&Le.push("'"+this.terminals_[Qr]+"'");nr=Ne.showPosition?"Parse error on line "+(Se+1)+`:
|
|
`+Ne.showPosition()+`
|
|
Expecting `+Le.join(", ")+", got '"+(this.terminals_[vr]||vr)+"'":"Parse error on line "+(Se+1)+": Unexpected "+(vr==Xe?"end of input":"'"+(this.terminals_[vr]||vr)+"'"),this.parseError(nr,{text:Ne.match,token:this.terminals_[vr]||vr,line:Ne.yylineno,loc:Pe,expected:Le})}if(He[0]instanceof Array&&He.length>1)throw new Error("Parse Error: multiple actions possible at state: "+cr+", token: "+vr);switch(He[0]){case 1:ne.push(vr),Te.push(Ne.yytext),tt.push(Ne.yylloc),ne.push(He[1]),vr=null,We?(vr=We,We=null):(ye=Ne.yyleng,ct=Ne.yytext,Se=Ne.yylineno,Pe=Ne.yylloc,ze>0);break;case 2:if(Nr=this.productions_[He[1]][1],tr.$=Te[Te.length-Nr],tr._$={first_line:tt[tt.length-(Nr||1)].first_line,last_line:tt[tt.length-1].last_line,first_column:tt[tt.length-(Nr||1)].first_column,last_column:tt[tt.length-1].last_column},ve&&(tr._$.range=[tt[tt.length-(Nr||1)].range[0],tt[tt.length-1].range[1]]),(Tr=this.performAction.apply(tr,[ct,ye,Se,Be.yy,He[1],Te,tt].concat(ur)))!==void 0)return Tr;Nr&&(ne=ne.slice(0,-1*Nr*2),Te=Te.slice(0,-1*Nr),tt=tt.slice(0,-1*Nr)),ne.push(this.productions_[He[1]][0]),Te.push(tr.$),tt.push(tr._$),Fr=le[ne[ne.length-2]][ne[ne.length-1]],ne.push(Fr);break;case 3:return!0}}return!0}},be={EOF:1,parseError:function(Rt,de){if(!this.yy.parser)throw new Error(Rt);this.yy.parser.parseError(Rt,de)},setInput:function(Rt,de){return this.yy=de||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 de=Rt.length,ne=Rt.split(/(?:\r\n?|\n)/g);this._input=Rt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-de),this.offset-=de;var Ct=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),ne.length-1&&(this.yylineno-=ne.length-1);var Te=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:ne?(ne.length===Ct.length?this.yylloc.first_column:0)+Ct[Ct.length-ne.length].length-ne[0].length:this.yylloc.first_column-de},this.options.ranges&&(this.yylloc.range=[Te[0],Te[0]+this.yyleng-de]),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(),de=new Array(Rt.length+1).join("-");return Rt+this.upcomingInput()+`
|
|
`+de+"^"},test_match:function(Rt,de){var ne,Ct,Te;if(this.options.backtrack_lexer&&(Te={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&&(Te.yylloc.range=this.yylloc.range.slice(0))),(Ct=Rt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ct.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ct?Ct[Ct.length-1].length-Ct[Ct.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],ne=this.performAction.call(this,this.yy,this,de,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ne)return ne;if(this._backtrack){for(var tt in Te)this[tt]=Te[tt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Rt,de,ne,Ct;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Te=this._currentRules(),tt=0;tt<Te.length;tt++)if((ne=this._input.match(this.rules[Te[tt]]))&&(!de||ne[0].length>de[0].length)){if(de=ne,Ct=tt,this.options.backtrack_lexer){if((Rt=this.test_match(ne,Te[tt]))!==!1)return Rt;if(this._backtrack){de=!1;continue}return!1}if(!this.options.flex)break}return de?(Rt=this.test_match(de,Te[Ct]))!==!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,de,ne,Ct){switch(ne){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 de.yytext=de.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 Qe(){this.yy={}}return Ar.lexer=be,Qe.prototype=Ar,Ar.Parser=Qe,new Qe}();v.parser=_,v.Parser=_.Parser,v.parse=function(){return _.parse.apply(_,arguments)},v.main=function(p){p[1]||(console.log("Usage: "+p[0]+" FILE"),process.exit(1));var x=d(8800).readFileSync(d(6470).normalize(p[1]),"utf8");return v.parser.parse(x)},d.c[d.s]===f&&v.main(process.argv.slice(1))},6876:(f,v,d)=>{f=d.nmd(f);var _=function(){var p=function(Rt,de,ne,Ct){for(ne=ne||{},Ct=Rt.length;Ct--;ne[Rt[Ct]]=de);return ne},x=[1,2],b=[1,3],A=[1,5],O=[1,7],T=[2,5],R=[1,15],F=[1,17],U=[1,18],q=[1,19],Q=[1,21],nt=[1,22],ft=[1,23],J=[1,29],bt=[1,30],ot=[1,31],st=[1,32],vt=[1,33],Ut=[1,34],St=[1,35],_t=[1,36],It=[1,37],wt=[1,38],yt=[1,39],rt=[1,40],pt=[1,43],W=[1,44],kt=[1,45],G=[1,46],At=[1,47],Mt=[1,48],Gt=[1,51],me=[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],Ze=[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],Ee=[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],pe=[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],we=[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],Oe=[67,68,69],De=[1,121],xe=[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],Ar={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(Rt,de,ne,Ct,Te,tt,le){var ct=tt.length-1;switch(Te){case 4:return Ct.apply(tt[ct]),tt[ct];case 5:case 9:this.$=[];break;case 6:tt[ct-1].push(tt[ct]),this.$=tt[ct-1];break;case 7:case 8:case 56:this.$=tt[ct];break;case 12:tt[ct-3].type="addParticipant",tt[ct-3].description=Ct.parseMessage(tt[ct-1]),this.$=tt[ct-3];break;case 13:tt[ct-1].type="addParticipant",this.$=tt[ct-1];break;case 14:tt[ct-3].type="addActor",tt[ct-3].description=Ct.parseMessage(tt[ct-1]),this.$=tt[ct-3];break;case 15:tt[ct-1].type="addActor",this.$=tt[ct-1];break;case 17:this.$={type:"sequenceIndex",sequenceIndex:Number(tt[ct-2]),sequenceIndexStep:Number(tt[ct-1]),sequenceVisible:!0,signalType:Ct.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(tt[ct-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Ct.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Ct.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Ct.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"activeStart",signalType:Ct.LINETYPE.ACTIVE_START,actor:tt[ct-1]};break;case 22:this.$={type:"activeEnd",signalType:Ct.LINETYPE.ACTIVE_END,actor:tt[ct-1]};break;case 28:Ct.setDiagramTitle(tt[ct].substring(6)),this.$=tt[ct].substring(6);break;case 29:Ct.setDiagramTitle(tt[ct].substring(7)),this.$=tt[ct].substring(7);break;case 30:this.$=tt[ct].trim(),Ct.setAccTitle(this.$);break;case 31:case 32:this.$=tt[ct].trim(),Ct.setAccDescription(this.$);break;case 33:tt[ct-1].unshift({type:"loopStart",loopText:Ct.parseMessage(tt[ct-2]),signalType:Ct.LINETYPE.LOOP_START}),tt[ct-1].push({type:"loopEnd",loopText:tt[ct-2],signalType:Ct.LINETYPE.LOOP_END}),this.$=tt[ct-1];break;case 34:tt[ct-1].unshift({type:"rectStart",color:Ct.parseMessage(tt[ct-2]),signalType:Ct.LINETYPE.RECT_START}),tt[ct-1].push({type:"rectEnd",color:Ct.parseMessage(tt[ct-2]),signalType:Ct.LINETYPE.RECT_END}),this.$=tt[ct-1];break;case 35:tt[ct-1].unshift({type:"optStart",optText:Ct.parseMessage(tt[ct-2]),signalType:Ct.LINETYPE.OPT_START}),tt[ct-1].push({type:"optEnd",optText:Ct.parseMessage(tt[ct-2]),signalType:Ct.LINETYPE.OPT_END}),this.$=tt[ct-1];break;case 36:tt[ct-1].unshift({type:"altStart",altText:Ct.parseMessage(tt[ct-2]),signalType:Ct.LINETYPE.ALT_START}),tt[ct-1].push({type:"altEnd",signalType:Ct.LINETYPE.ALT_END}),this.$=tt[ct-1];break;case 37:tt[ct-1].unshift({type:"parStart",parText:Ct.parseMessage(tt[ct-2]),signalType:Ct.LINETYPE.PAR_START}),tt[ct-1].push({type:"parEnd",signalType:Ct.LINETYPE.PAR_END}),this.$=tt[ct-1];break;case 38:tt[ct-1].unshift({type:"criticalStart",criticalText:Ct.parseMessage(tt[ct-2]),signalType:Ct.LINETYPE.CRITICAL_START}),tt[ct-1].push({type:"criticalEnd",signalType:Ct.LINETYPE.CRITICAL_END}),this.$=tt[ct-1];break;case 39:tt[ct-1].unshift({type:"breakStart",breakText:Ct.parseMessage(tt[ct-2]),signalType:Ct.LINETYPE.BREAK_START}),tt[ct-1].push({type:"breakEnd",optText:Ct.parseMessage(tt[ct-2]),signalType:Ct.LINETYPE.BREAK_END}),this.$=tt[ct-1];break;case 42:this.$=tt[ct-3].concat([{type:"option",optionText:Ct.parseMessage(tt[ct-1]),signalType:Ct.LINETYPE.CRITICAL_OPTION},tt[ct]]);break;case 44:this.$=tt[ct-3].concat([{type:"and",parText:Ct.parseMessage(tt[ct-1]),signalType:Ct.LINETYPE.PAR_AND},tt[ct]]);break;case 46:this.$=tt[ct-3].concat([{type:"else",altText:Ct.parseMessage(tt[ct-1]),signalType:Ct.LINETYPE.ALT_ELSE},tt[ct]]);break;case 47:this.$=[tt[ct-1],{type:"addNote",placement:tt[ct-2],actor:tt[ct-1].actor,text:tt[ct]}];break;case 48:tt[ct-2]=[].concat(tt[ct-1],tt[ct-1]).slice(0,2),tt[ct-2][0]=tt[ct-2][0].actor,tt[ct-2][1]=tt[ct-2][1].actor,this.$=[tt[ct-1],{type:"addNote",placement:Ct.PLACEMENT.OVER,actor:tt[ct-2].slice(0,2),text:tt[ct]}];break;case 49:this.$=[tt[ct-1],{type:"addLinks",actor:tt[ct-1].actor,text:tt[ct]}];break;case 50:this.$=[tt[ct-1],{type:"addALink",actor:tt[ct-1].actor,text:tt[ct]}];break;case 51:this.$=[tt[ct-1],{type:"addProperties",actor:tt[ct-1].actor,text:tt[ct]}];break;case 52:this.$=[tt[ct-1],{type:"addDetails",actor:tt[ct-1].actor,text:tt[ct]}];break;case 55:this.$=[tt[ct-2],tt[ct]];break;case 57:this.$=Ct.PLACEMENT.LEFTOF;break;case 58:this.$=Ct.PLACEMENT.RIGHTOF;break;case 59:this.$=[tt[ct-4],tt[ct-1],{type:"addMessage",from:tt[ct-4].actor,to:tt[ct-1].actor,signalType:tt[ct-3],msg:tt[ct]},{type:"activeStart",signalType:Ct.LINETYPE.ACTIVE_START,actor:tt[ct-1]}];break;case 60:this.$=[tt[ct-4],tt[ct-1],{type:"addMessage",from:tt[ct-4].actor,to:tt[ct-1].actor,signalType:tt[ct-3],msg:tt[ct]},{type:"activeEnd",signalType:Ct.LINETYPE.ACTIVE_END,actor:tt[ct-4]}];break;case 61:this.$=[tt[ct-3],tt[ct-1],{type:"addMessage",from:tt[ct-3].actor,to:tt[ct-1].actor,signalType:tt[ct-2],msg:tt[ct]}];break;case 62:this.$={type:"addParticipant",actor:tt[ct]};break;case 63:this.$=Ct.LINETYPE.SOLID_OPEN;break;case 64:this.$=Ct.LINETYPE.DOTTED_OPEN;break;case 65:this.$=Ct.LINETYPE.SOLID;break;case 66:this.$=Ct.LINETYPE.DOTTED;break;case 67:this.$=Ct.LINETYPE.SOLID_CROSS;break;case 68:this.$=Ct.LINETYPE.DOTTED_CROSS;break;case 69:this.$=Ct.LINETYPE.SOLID_POINT;break;case 70:this.$=Ct.LINETYPE.DOTTED_POINT;break;case 71:this.$=Ct.parseMessage(tt[ct].trim().substring(1));break;case 72:Ct.parseDirective("%%{","open_directive");break;case 73:Ct.parseDirective(tt[ct],"type_directive");break;case 74:tt[ct]=tt[ct].trim().replace(/'/g,'"'),Ct.parseDirective(tt[ct],"arg_directive");break;case 75:Ct.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:x,5:b,6:4,7:A,11:6,79:O},{1:[3]},{3:8,4:x,5:b,6:4,7:A,11:6,79:O},{3:9,4:x,5:b,6:4,7:A,11:6,79:O},{3:10,4:x,5:b,6:4,7:A,11:6,79:O},p([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],T,{8:11}),{12:12,80:[1,13]},{80:[2,72]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:R,5:F,6:41,9:14,10:16,11:6,16:U,17:42,20:q,21:20,22:Q,25:nt,26:ft,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:ot,36:st,38:vt,39:Ut,41:St,42:_t,43:It,45:wt,47:yt,49:rt,53:pt,58:W,59:kt,60:G,61:At,69:Mt,79:O},{13:49,14:[1,50],82:Gt},p([14,82],[2,73]),p(me,[2,6]),{6:41,10:52,11:6,16:U,17:42,20:q,21:20,22:Q,25:nt,26:ft,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:ot,36:st,38:vt,39:Ut,41:St,42:_t,43:It,45:wt,47:yt,49:rt,53:pt,58:W,59:kt,60:G,61:At,69:Mt,79:O},p(me,[2,8]),p(me,[2,9]),{17:53,69:Mt},{17:54,69:Mt},{5:[1,55]},{5:[1,58],23:[1,56],24:[1,57]},{17:59,69:Mt},{17:60,69:Mt},{5:[1,61]},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},p(me,[2,28]),p(me,[2,29]),{35:[1,66]},{37:[1,67]},p(me,[2,32]),{19:[1,68]},{19:[1,69]},{19:[1,70]},{19:[1,71]},{19:[1,72]},{19:[1,73]},{19:[1,74]},p(me,[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:Mt},{17:89,69:Mt},{17:90,69:Mt},{17:91,69:Mt},p([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]},p(me,[2,7]),{5:[1,96],18:[1,95]},{5:[1,98],18:[1,97]},p(me,[2,16]),{5:[1,100],23:[1,99]},{5:[1,101]},p(me,[2,20]),{5:[1,102]},{5:[1,103]},p(me,[2,23]),p(me,[2,24]),p(me,[2,25]),p(me,[2,26]),p(me,[2,27]),p(me,[2,30]),p(me,[2,31]),p(Ze,T,{8:104}),p(Ze,T,{8:105}),p(Ze,T,{8:106}),p(Ee,T,{44:107,8:108}),p(pe,T,{46:109,8:110}),p(we,T,{48:111,8:112}),p(Ze,T,{8:113}),{17:116,67:[1,114],68:[1,115],69:Mt},p(Oe,[2,63]),p(Oe,[2,64]),p(Oe,[2,65]),p(Oe,[2,66]),p(Oe,[2,67]),p(Oe,[2,68]),p(Oe,[2,69]),p(Oe,[2,70]),{17:117,69:Mt},{17:119,57:118,69:Mt},{69:[2,57]},{69:[2,58]},{55:120,78:De},{55:122,78:De},{55:123,78:De},{55:124,78:De},p(xe,[2,10]),{13:125,82:Gt},{82:[2,74]},{19:[1,126]},p(me,[2,13]),{19:[1,127]},p(me,[2,15]),{5:[1,128]},p(me,[2,18]),p(me,[2,19]),p(me,[2,21]),p(me,[2,22]),{4:R,5:F,6:41,9:14,10:16,11:6,16:U,17:42,20:q,21:20,22:Q,25:nt,26:ft,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:ot,36:st,38:vt,39:Ut,40:[1,129],41:St,42:_t,43:It,45:wt,47:yt,49:rt,53:pt,58:W,59:kt,60:G,61:At,69:Mt,79:O},{4:R,5:F,6:41,9:14,10:16,11:6,16:U,17:42,20:q,21:20,22:Q,25:nt,26:ft,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:ot,36:st,38:vt,39:Ut,40:[1,130],41:St,42:_t,43:It,45:wt,47:yt,49:rt,53:pt,58:W,59:kt,60:G,61:At,69:Mt,79:O},{4:R,5:F,6:41,9:14,10:16,11:6,16:U,17:42,20:q,21:20,22:Q,25:nt,26:ft,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:ot,36:st,38:vt,39:Ut,40:[1,131],41:St,42:_t,43:It,45:wt,47:yt,49:rt,53:pt,58:W,59:kt,60:G,61:At,69:Mt,79:O},{40:[1,132]},{4:R,5:F,6:41,9:14,10:16,11:6,16:U,17:42,20:q,21:20,22:Q,25:nt,26:ft,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:ot,36:st,38:vt,39:Ut,40:[2,45],41:St,42:_t,43:It,45:wt,47:yt,49:rt,52:[1,133],53:pt,58:W,59:kt,60:G,61:At,69:Mt,79:O},{40:[1,134]},{4:R,5:F,6:41,9:14,10:16,11:6,16:U,17:42,20:q,21:20,22:Q,25:nt,26:ft,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:ot,36:st,38:vt,39:Ut,40:[2,43],41:St,42:_t,43:It,45:wt,47:yt,49:rt,51:[1,135],53:pt,58:W,59:kt,60:G,61:At,69:Mt,79:O},{40:[1,136]},{4:R,5:F,6:41,9:14,10:16,11:6,16:U,17:42,20:q,21:20,22:Q,25:nt,26:ft,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:ot,36:st,38:vt,39:Ut,40:[2,41],41:St,42:_t,43:It,45:wt,47:yt,49:rt,50:[1,137],53:pt,58:W,59:kt,60:G,61:At,69:Mt,79:O},{4:R,5:F,6:41,9:14,10:16,11:6,16:U,17:42,20:q,21:20,22:Q,25:nt,26:ft,27:24,28:25,29:26,30:27,31:28,32:J,33:bt,34:ot,36:st,38:vt,39:Ut,40:[1,138],41:St,42:_t,43:It,45:wt,47:yt,49:rt,53:pt,58:W,59:kt,60:G,61:At,69:Mt,79:O},{17:139,69:Mt},{17:140,69:Mt},{55:141,78:De},{55:142,78:De},{55:143,78:De},{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]},p(me,[2,17]),p(me,[2,33]),p(me,[2,34]),p(me,[2,35]),p(me,[2,36]),{19:[1,148]},p(me,[2,37]),{19:[1,149]},p(me,[2,38]),{19:[1,150]},p(me,[2,39]),{55:151,78:De},{55:152,78:De},{5:[2,61]},{5:[2,47]},{5:[2,48]},{17:153,69:Mt},p(xe,[2,11]),p(me,[2,12]),p(me,[2,14]),p(Ee,T,{8:108,44:154}),p(pe,T,{8:110,46:155}),p(we,T,{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(Rt,de){if(!de.recoverable){var ne=new Error(Rt);throw ne.hash=de,ne}this.trace(Rt)},parse:function(Rt){var de=this,ne=[0],Ct=[],Te=[null],tt=[],le=this.table,ct="",Se=0,ye=0,ze=0,or=2,Xe=1,ur=tt.slice.call(arguments,1),Ne=Object.create(this.lexer),Be={yy:{}};for(var Ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ue)&&(Be.yy[Ue]=this.yy[Ue]);Ne.setInput(Rt,Be.yy),Be.yy.lexer=Ne,Be.yy.parser=this,Ne.yylloc===void 0&&(Ne.yylloc={});var Pe=Ne.yylloc;tt.push(Pe);var ve=Ne.options&&Ne.options.ranges;function oe(){var Ae;return typeof(Ae=Ct.pop()||Ne.lex()||Xe)!="number"&&(Ae instanceof Array&&(Ae=(Ct=Ae).pop()),Ae=de.symbols_[Ae]||Ae),Ae}typeof Be.yy.parseError=="function"?this.parseError=Be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var vr,We,cr,He,Tr,Qr,Nr,Fr,Le,tr={};;){if(cr=ne[ne.length-1],this.defaultActions[cr]?He=this.defaultActions[cr]:(vr==null&&(vr=oe()),He=le[cr]&&le[cr][vr]),He===void 0||!He.length||!He[0]){var nr="";for(Qr in Le=[],le[cr])this.terminals_[Qr]&&Qr>or&&Le.push("'"+this.terminals_[Qr]+"'");nr=Ne.showPosition?"Parse error on line "+(Se+1)+`:
|
|
`+Ne.showPosition()+`
|
|
Expecting `+Le.join(", ")+", got '"+(this.terminals_[vr]||vr)+"'":"Parse error on line "+(Se+1)+": Unexpected "+(vr==Xe?"end of input":"'"+(this.terminals_[vr]||vr)+"'"),this.parseError(nr,{text:Ne.match,token:this.terminals_[vr]||vr,line:Ne.yylineno,loc:Pe,expected:Le})}if(He[0]instanceof Array&&He.length>1)throw new Error("Parse Error: multiple actions possible at state: "+cr+", token: "+vr);switch(He[0]){case 1:ne.push(vr),Te.push(Ne.yytext),tt.push(Ne.yylloc),ne.push(He[1]),vr=null,We?(vr=We,We=null):(ye=Ne.yyleng,ct=Ne.yytext,Se=Ne.yylineno,Pe=Ne.yylloc,ze>0);break;case 2:if(Nr=this.productions_[He[1]][1],tr.$=Te[Te.length-Nr],tr._$={first_line:tt[tt.length-(Nr||1)].first_line,last_line:tt[tt.length-1].last_line,first_column:tt[tt.length-(Nr||1)].first_column,last_column:tt[tt.length-1].last_column},ve&&(tr._$.range=[tt[tt.length-(Nr||1)].range[0],tt[tt.length-1].range[1]]),(Tr=this.performAction.apply(tr,[ct,ye,Se,Be.yy,He[1],Te,tt].concat(ur)))!==void 0)return Tr;Nr&&(ne=ne.slice(0,-1*Nr*2),Te=Te.slice(0,-1*Nr),tt=tt.slice(0,-1*Nr)),ne.push(this.productions_[He[1]][0]),Te.push(tr.$),tt.push(tr._$),Fr=le[ne[ne.length-2]][ne[ne.length-1]],ne.push(Fr);break;case 3:return!0}}return!0}},be={EOF:1,parseError:function(Rt,de){if(!this.yy.parser)throw new Error(Rt);this.yy.parser.parseError(Rt,de)},setInput:function(Rt,de){return this.yy=de||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 de=Rt.length,ne=Rt.split(/(?:\r\n?|\n)/g);this._input=Rt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-de),this.offset-=de;var Ct=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),ne.length-1&&(this.yylineno-=ne.length-1);var Te=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:ne?(ne.length===Ct.length?this.yylloc.first_column:0)+Ct[Ct.length-ne.length].length-ne[0].length:this.yylloc.first_column-de},this.options.ranges&&(this.yylloc.range=[Te[0],Te[0]+this.yyleng-de]),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(),de=new Array(Rt.length+1).join("-");return Rt+this.upcomingInput()+`
|
|
`+de+"^"},test_match:function(Rt,de){var ne,Ct,Te;if(this.options.backtrack_lexer&&(Te={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&&(Te.yylloc.range=this.yylloc.range.slice(0))),(Ct=Rt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ct.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ct?Ct[Ct.length-1].length-Ct[Ct.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],ne=this.performAction.call(this,this.yy,this,de,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ne)return ne;if(this._backtrack){for(var tt in Te)this[tt]=Te[tt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Rt,de,ne,Ct;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Te=this._currentRules(),tt=0;tt<Te.length;tt++)if((ne=this._input.match(this.rules[Te[tt]]))&&(!de||ne[0].length>de[0].length)){if(de=ne,Ct=tt,this.options.backtrack_lexer){if((Rt=this.test_match(ne,Te[tt]))!==!1)return Rt;if(this._backtrack){de=!1;continue}return!1}if(!this.options.flex)break}return de?(Rt=this.test_match(de,Te[Ct]))!==!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,de,ne,Ct){switch(ne){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 de.yytext=de.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 de.yytext=de.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 Qe(){this.yy={}}return Ar.lexer=be,Qe.prototype=Ar,Ar.Parser=Qe,new Qe}();v.parser=_,v.Parser=_.Parser,v.parse=function(){return _.parse.apply(_,arguments)},v.main=function(p){p[1]||(console.log("Usage: "+p[0]+" FILE"),process.exit(1));var x=d(1993).readFileSync(d(6470).normalize(p[1]),"utf8");return v.parser.parse(x)},d.c[d.s]===f&&v.main(process.argv.slice(1))},3584:(f,v,d)=>{f=d.nmd(f);var _=function(){var p=function(Ee,pe,we,Oe){for(we=we||{},Oe=Ee.length;Oe--;we[Ee[Oe]]=pe);return we},x=[1,2],b=[1,3],A=[1,5],O=[1,7],T=[2,5],R=[1,15],F=[1,17],U=[1,19],q=[1,20],Q=[1,21],nt=[1,22],ft=[1,33],J=[1,23],bt=[1,24],ot=[1,25],st=[1,26],vt=[1,27],Ut=[1,30],St=[1,31],_t=[1,32],It=[1,35],wt=[1,36],yt=[1,37],rt=[1,38],pt=[1,34],W=[1,41],kt=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],G=[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],At=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Mt=[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(Ee,pe,we,Oe,De,xe,Ar){var be=xe.length-1;switch(De){case 4:return Oe.setRootDoc(xe[be]),xe[be];case 5:this.$=[];break;case 6:xe[be]!="nl"&&(xe[be-1].push(xe[be]),this.$=xe[be-1]);break;case 7:case 8:case 39:case 40:this.$=xe[be];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:xe[be],type:"default",description:""};break;case 11:this.$={stmt:"state",id:xe[be-1],type:"default",description:Oe.trimColon(xe[be])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:xe[be-2],type:"default",description:""},state2:{stmt:"state",id:xe[be],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:xe[be-3],type:"default",description:""},state2:{stmt:"state",id:xe[be-1],type:"default",description:""},description:xe[be].substr(1).trim()};break;case 17:this.$={stmt:"state",id:xe[be-3],type:"default",description:"",doc:xe[be-1]};break;case 18:var Qe=xe[be],Rt=xe[be-2].trim();if(xe[be].match(":")){var de=xe[be].split(":");Qe=de[0],Rt=[Rt,de[1]]}this.$={stmt:"state",id:Qe,type:"default",description:Rt};break;case 19:this.$={stmt:"state",id:xe[be-3],type:"default",description:xe[be-5],doc:xe[be-1]};break;case 20:this.$={stmt:"state",id:xe[be],type:"fork"};break;case 21:this.$={stmt:"state",id:xe[be],type:"join"};break;case 22:this.$={stmt:"state",id:xe[be],type:"choice"};break;case 23:this.$={stmt:"state",id:Oe.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:xe[be-1].trim(),note:{position:xe[be-2].trim(),text:xe[be].trim()}};break;case 28:this.$=xe[be].trim(),Oe.setAccTitle(this.$);break;case 29:case 30:this.$=xe[be].trim(),Oe.setAccDescription(this.$);break;case 33:Oe.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 34:Oe.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 35:Oe.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 36:Oe.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 43:Oe.parseDirective("%%{","open_directive");break;case 44:Oe.parseDirective(xe[be],"type_directive");break;case 45:xe[be]=xe[be].trim().replace(/'/g,'"'),Oe.parseDirective(xe[be],"arg_directive");break;case 46:Oe.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:x,5:b,6:4,7:A,36:6,50:O},{1:[3]},{3:8,4:x,5:b,6:4,7:A,36:6,50:O},{3:9,4:x,5:b,6:4,7:A,36:6,50:O},{3:10,4:x,5:b,6:4,7:A,36:6,50:O},p([1,4,5,14,15,17,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],T,{8:11}),{37:12,51:[1,13]},{51:[2,43]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:R,5:F,6:28,9:14,10:16,11:18,14:U,15:q,17:Q,20:nt,22:ft,23:J,24:bt,25:ot,26:st,27:vt,30:29,31:Ut,33:St,35:_t,36:6,41:It,42:wt,43:yt,44:rt,47:pt,50:O},{38:39,39:[1,40],53:W},p([39,53],[2,44]),p(kt,[2,6]),{6:28,10:42,11:18,14:U,15:q,17:Q,20:nt,22:ft,23:J,24:bt,25:ot,26:st,27:vt,30:29,31:Ut,33:St,35:_t,36:6,41:It,42:wt,43:yt,44:rt,47:pt,50:O},p(kt,[2,8]),p(kt,[2,9]),p(kt,[2,10],{12:[1,43],13:[1,44]}),p(kt,[2,14]),{16:[1,45]},p(kt,[2,16],{18:[1,46]}),{21:[1,47]},p(kt,[2,20]),p(kt,[2,21]),p(kt,[2,22]),p(kt,[2,23]),{28:48,29:[1,49],48:[1,50],49:[1,51]},p(kt,[2,26]),p(kt,[2,27]),{32:[1,52]},{34:[1,53]},p(kt,[2,30]),p(G,[2,39]),p(G,[2,40]),p(kt,[2,33]),p(kt,[2,34]),p(kt,[2,35]),p(kt,[2,36]),p(At,[2,31]),{40:54,52:[1,55]},p(At,[2,46]),p(kt,[2,7]),p(kt,[2,11]),{11:56,22:ft,47:pt},p(kt,[2,15]),p(Mt,T,{8:57}),{22:[1,58]},{22:[1,59]},{21:[1,60]},{22:[2,41]},{22:[2,42]},p(kt,[2,28]),p(kt,[2,29]),{38:61,53:W},{53:[2,45]},p(kt,[2,12],{12:[1,62]}),{4:R,5:F,6:28,9:14,10:16,11:18,14:U,15:q,17:Q,19:[1,63],20:nt,22:ft,23:J,24:bt,25:ot,26:st,27:vt,30:29,31:Ut,33:St,35:_t,36:6,41:It,42:wt,43:yt,44:rt,47:pt,50:O},p(kt,[2,18],{18:[1,64]}),{29:[1,65]},{22:[1,66]},p(At,[2,32]),p(kt,[2,13]),p(kt,[2,17]),p(Mt,T,{8:67}),p(kt,[2,24]),p(kt,[2,25]),{4:R,5:F,6:28,9:14,10:16,11:18,14:U,15:q,17:Q,19:[1,68],20:nt,22:ft,23:J,24:bt,25:ot,26:st,27:vt,30:29,31:Ut,33:St,35:_t,36:6,41:It,42:wt,43:yt,44:rt,47:pt,50:O},p(kt,[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(Ee,pe){if(!pe.recoverable){var we=new Error(Ee);throw we.hash=pe,we}this.trace(Ee)},parse:function(Ee){var pe=this,we=[0],Oe=[],De=[null],xe=[],Ar=this.table,be="",Qe=0,Rt=0,de=0,ne=2,Ct=1,Te=xe.slice.call(arguments,1),tt=Object.create(this.lexer),le={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(le.yy[ct]=this.yy[ct]);tt.setInput(Ee,le.yy),le.yy.lexer=tt,le.yy.parser=this,tt.yylloc===void 0&&(tt.yylloc={});var Se=tt.yylloc;xe.push(Se);var ye=tt.options&&tt.options.ranges;function ze(){var cr;return typeof(cr=Oe.pop()||tt.lex()||Ct)!="number"&&(cr instanceof Array&&(cr=(Oe=cr).pop()),cr=pe.symbols_[cr]||cr),cr}typeof le.yy.parseError=="function"?this.parseError=le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var or,Xe,ur,Ne,Be,Ue,Pe,ve,oe,vr={};;){if(ur=we[we.length-1],this.defaultActions[ur]?Ne=this.defaultActions[ur]:(or==null&&(or=ze()),Ne=Ar[ur]&&Ar[ur][or]),Ne===void 0||!Ne.length||!Ne[0]){var We="";for(Ue in oe=[],Ar[ur])this.terminals_[Ue]&&Ue>ne&&oe.push("'"+this.terminals_[Ue]+"'");We=tt.showPosition?"Parse error on line "+(Qe+1)+`:
|
|
`+tt.showPosition()+`
|
|
Expecting `+oe.join(", ")+", got '"+(this.terminals_[or]||or)+"'":"Parse error on line "+(Qe+1)+": Unexpected "+(or==Ct?"end of input":"'"+(this.terminals_[or]||or)+"'"),this.parseError(We,{text:tt.match,token:this.terminals_[or]||or,line:tt.yylineno,loc:Se,expected:oe})}if(Ne[0]instanceof Array&&Ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ur+", token: "+or);switch(Ne[0]){case 1:we.push(or),De.push(tt.yytext),xe.push(tt.yylloc),we.push(Ne[1]),or=null,Xe?(or=Xe,Xe=null):(Rt=tt.yyleng,be=tt.yytext,Qe=tt.yylineno,Se=tt.yylloc,de>0);break;case 2:if(Pe=this.productions_[Ne[1]][1],vr.$=De[De.length-Pe],vr._$={first_line:xe[xe.length-(Pe||1)].first_line,last_line:xe[xe.length-1].last_line,first_column:xe[xe.length-(Pe||1)].first_column,last_column:xe[xe.length-1].last_column},ye&&(vr._$.range=[xe[xe.length-(Pe||1)].range[0],xe[xe.length-1].range[1]]),(Be=this.performAction.apply(vr,[be,Rt,Qe,le.yy,Ne[1],De,xe].concat(Te)))!==void 0)return Be;Pe&&(we=we.slice(0,-1*Pe*2),De=De.slice(0,-1*Pe),xe=xe.slice(0,-1*Pe)),we.push(this.productions_[Ne[1]][0]),De.push(vr.$),xe.push(vr._$),ve=Ar[we[we.length-2]][we[we.length-1]],we.push(ve);break;case 3:return!0}}return!0}},me={EOF:1,parseError:function(Ee,pe){if(!this.yy.parser)throw new Error(Ee);this.yy.parser.parseError(Ee,pe)},setInput:function(Ee,pe){return this.yy=pe||this.yy||{},this._input=Ee,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 Ee=this._input[0];return this.yytext+=Ee,this.yyleng++,this.offset++,this.match+=Ee,this.matched+=Ee,Ee.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),Ee},unput:function(Ee){var pe=Ee.length,we=Ee.split(/(?:\r\n?|\n)/g);this._input=Ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-pe),this.offset-=pe;var Oe=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),we.length-1&&(this.yylineno-=we.length-1);var De=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:we?(we.length===Oe.length?this.yylloc.first_column:0)+Oe[Oe.length-we.length].length-we[0].length:this.yylloc.first_column-pe},this.options.ranges&&(this.yylloc.range=[De[0],De[0]+this.yyleng-pe]),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(Ee){this.unput(this.match.slice(Ee))},pastInput:function(){var Ee=this.matched.substr(0,this.matched.length-this.match.length);return(Ee.length>20?"...":"")+Ee.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ee=this.match;return Ee.length<20&&(Ee+=this._input.substr(0,20-Ee.length)),(Ee.substr(0,20)+(Ee.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ee=this.pastInput(),pe=new Array(Ee.length+1).join("-");return Ee+this.upcomingInput()+`
|
|
`+pe+"^"},test_match:function(Ee,pe){var we,Oe,De;if(this.options.backtrack_lexer&&(De={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&&(De.yylloc.range=this.yylloc.range.slice(0))),(Oe=Ee[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Oe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Oe?Oe[Oe.length-1].length-Oe[Oe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ee[0].length},this.yytext+=Ee[0],this.match+=Ee[0],this.matches=Ee,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(Ee[0].length),this.matched+=Ee[0],we=this.performAction.call(this,this.yy,this,pe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),we)return we;if(this._backtrack){for(var xe in De)this[xe]=De[xe];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ee,pe,we,Oe;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var De=this._currentRules(),xe=0;xe<De.length;xe++)if((we=this._input.match(this.rules[De[xe]]))&&(!pe||we[0].length>pe[0].length)){if(pe=we,Oe=xe,this.options.backtrack_lexer){if((Ee=this.test_match(we,De[xe]))!==!1)return Ee;if(this._backtrack){pe=!1;continue}return!1}if(!this.options.flex)break}return pe?(Ee=this.test_match(pe,De[Oe]))!==!1&&Ee: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(Ee){this.conditionStack.push(Ee)},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(Ee){return(Ee=this.conditionStack.length-1-Math.abs(Ee||0))>=0?this.conditionStack[Ee]:"INITIAL"},pushState:function(Ee){this.begin(Ee)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ee,pe,we,Oe){switch(we){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(),pe.yytext=pe.yytext.slice(0,-8).trim(),23;case 28:case 31:return this.popState(),pe.yytext=pe.yytext.slice(0,-8).trim(),24;case 29:case 32:return this.popState(),pe.yytext=pe.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(),pe.yytext=pe.yytext.substr(2).trim(),29;case 57:return this.popState(),pe.yytext=pe.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 pe.yytext=pe.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 Ze(){this.yy={}}return Gt.lexer=me,Ze.prototype=Gt,Gt.Parser=Ze,new Ze}();v.parser=_,v.Parser=_.Parser,v.parse=function(){return _.parse.apply(_,arguments)},v.main=function(p){p[1]||(console.log("Usage: "+p[0]+" FILE"),process.exit(1));var x=d(3069).readFileSync(d(6470).normalize(p[1]),"utf8");return v.parser.parse(x)},d.c[d.s]===f&&v.main(process.argv.slice(1))},9763:(f,v,d)=>{f=d.nmd(f);var _=function(){var p=function(ot,st,vt,Ut){for(vt=vt||{},Ut=ot.length;Ut--;vt[ot[Ut]]=st);return vt},x=[1,2],b=[1,5],A=[6,9,11,17,18,20,22,23,24,26],O=[1,15],T=[1,16],R=[1,17],F=[1,18],U=[1,19],q=[1,20],Q=[1,24],nt=[4,6,9,11,17,18,20,22,23,24,26],ft={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(ot,st,vt,Ut,St,_t,It){var wt=_t.length-1;switch(St){case 1:return _t[wt-1];case 3:case 7:case 8:this.$=[];break;case 4:_t[wt-1].push(_t[wt]),this.$=_t[wt-1];break;case 5:case 6:this.$=_t[wt];break;case 11:Ut.setDiagramTitle(_t[wt].substr(6)),this.$=_t[wt].substr(6);break;case 12:this.$=_t[wt].trim(),Ut.setAccTitle(this.$);break;case 13:case 14:this.$=_t[wt].trim(),Ut.setAccDescription(this.$);break;case 15:Ut.addSection(_t[wt].substr(8)),this.$=_t[wt].substr(8);break;case 16:Ut.addTask(_t[wt-1],_t[wt]),this.$="task";break;case 18:Ut.parseDirective("%%{","open_directive");break;case 19:Ut.parseDirective(_t[wt],"type_directive");break;case 20:_t[wt]=_t[wt].trim().replace(/'/g,'"'),Ut.parseDirective(_t[wt],"arg_directive");break;case 21:Ut.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:x,7:3,12:4,26:b},{1:[3]},p(A,[2,3],{5:6}),{3:7,4:x,7:3,12:4,26:b},{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:T,20:R,22:F,23:U,24:q,26:b},{1:[2,2]},{14:22,15:[1,23],29:Q},p([15,29],[2,19]),p(A,[2,8],{1:[2,1]}),p(A,[2,4]),{7:21,10:25,12:4,17:O,18:T,20:R,22:F,23:U,24:q,26:b},p(A,[2,6]),p(A,[2,7]),p(A,[2,11]),{19:[1,26]},{21:[1,27]},p(A,[2,14]),p(A,[2,15]),{25:[1,28]},p(A,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},p(A,[2,5]),p(A,[2,12]),p(A,[2,13]),p(A,[2,16]),p(nt,[2,9]),{14:32,29:Q},{29:[2,20]},{11:[1,33]},p(nt,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(ot,st){if(!st.recoverable){var vt=new Error(ot);throw vt.hash=st,vt}this.trace(ot)},parse:function(ot){var st=this,vt=[0],Ut=[],St=[null],_t=[],It=this.table,wt="",yt=0,rt=0,pt=0,W=2,kt=1,G=_t.slice.call(arguments,1),At=Object.create(this.lexer),Mt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(Mt.yy[Gt]=this.yy[Gt]);At.setInput(ot,Mt.yy),Mt.yy.lexer=At,Mt.yy.parser=this,At.yylloc===void 0&&(At.yylloc={});var me=At.yylloc;_t.push(me);var Ze=At.options&&At.options.ranges;function Ee(){var Ct;return typeof(Ct=Ut.pop()||At.lex()||kt)!="number"&&(Ct instanceof Array&&(Ct=(Ut=Ct).pop()),Ct=st.symbols_[Ct]||Ct),Ct}typeof Mt.yy.parseError=="function"?this.parseError=Mt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var pe,we,Oe,De,xe,Ar,be,Qe,Rt,de={};;){if(Oe=vt[vt.length-1],this.defaultActions[Oe]?De=this.defaultActions[Oe]:(pe==null&&(pe=Ee()),De=It[Oe]&&It[Oe][pe]),De===void 0||!De.length||!De[0]){var ne="";for(Ar in Rt=[],It[Oe])this.terminals_[Ar]&&Ar>W&&Rt.push("'"+this.terminals_[Ar]+"'");ne=At.showPosition?"Parse error on line "+(yt+1)+`:
|
|
`+At.showPosition()+`
|
|
Expecting `+Rt.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":"Parse error on line "+(yt+1)+": Unexpected "+(pe==kt?"end of input":"'"+(this.terminals_[pe]||pe)+"'"),this.parseError(ne,{text:At.match,token:this.terminals_[pe]||pe,line:At.yylineno,loc:me,expected:Rt})}if(De[0]instanceof Array&&De.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Oe+", token: "+pe);switch(De[0]){case 1:vt.push(pe),St.push(At.yytext),_t.push(At.yylloc),vt.push(De[1]),pe=null,we?(pe=we,we=null):(rt=At.yyleng,wt=At.yytext,yt=At.yylineno,me=At.yylloc,pt>0);break;case 2:if(be=this.productions_[De[1]][1],de.$=St[St.length-be],de._$={first_line:_t[_t.length-(be||1)].first_line,last_line:_t[_t.length-1].last_line,first_column:_t[_t.length-(be||1)].first_column,last_column:_t[_t.length-1].last_column},Ze&&(de._$.range=[_t[_t.length-(be||1)].range[0],_t[_t.length-1].range[1]]),(xe=this.performAction.apply(de,[wt,rt,yt,Mt.yy,De[1],St,_t].concat(G)))!==void 0)return xe;be&&(vt=vt.slice(0,-1*be*2),St=St.slice(0,-1*be),_t=_t.slice(0,-1*be)),vt.push(this.productions_[De[1]][0]),St.push(de.$),_t.push(de._$),Qe=It[vt[vt.length-2]][vt[vt.length-1]],vt.push(Qe);break;case 3:return!0}}return!0}},J={EOF:1,parseError:function(ot,st){if(!this.yy.parser)throw new Error(ot);this.yy.parser.parseError(ot,st)},setInput:function(ot,st){return this.yy=st||this.yy||{},this._input=ot,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 ot=this._input[0];return this.yytext+=ot,this.yyleng++,this.offset++,this.match+=ot,this.matched+=ot,ot.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),ot},unput:function(ot){var st=ot.length,vt=ot.split(/(?:\r\n?|\n)/g);this._input=ot+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-st),this.offset-=st;var Ut=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),vt.length-1&&(this.yylineno-=vt.length-1);var St=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:vt?(vt.length===Ut.length?this.yylloc.first_column:0)+Ut[Ut.length-vt.length].length-vt[0].length:this.yylloc.first_column-st},this.options.ranges&&(this.yylloc.range=[St[0],St[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(ot){this.unput(this.match.slice(ot))},pastInput:function(){var ot=this.matched.substr(0,this.matched.length-this.match.length);return(ot.length>20?"...":"")+ot.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ot=this.match;return ot.length<20&&(ot+=this._input.substr(0,20-ot.length)),(ot.substr(0,20)+(ot.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ot=this.pastInput(),st=new Array(ot.length+1).join("-");return ot+this.upcomingInput()+`
|
|
`+st+"^"},test_match:function(ot,st){var vt,Ut,St;if(this.options.backtrack_lexer&&(St={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(St.yylloc.range=this.yylloc.range.slice(0))),(Ut=ot[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ut.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ut?Ut[Ut.length-1].length-Ut[Ut.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ot[0].length},this.yytext+=ot[0],this.match+=ot[0],this.matches=ot,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(ot[0].length),this.matched+=ot[0],vt=this.performAction.call(this,this.yy,this,st,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),vt)return vt;if(this._backtrack){for(var _t in St)this[_t]=St[_t];return!1}return!1},next:function(){if(this.done)return this.EOF;var ot,st,vt,Ut;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var St=this._currentRules(),_t=0;_t<St.length;_t++)if((vt=this._input.match(this.rules[St[_t]]))&&(!st||vt[0].length>st[0].length)){if(st=vt,Ut=_t,this.options.backtrack_lexer){if((ot=this.test_match(vt,St[_t]))!==!1)return ot;if(this._backtrack){st=!1;continue}return!1}if(!this.options.flex)break}return st?(ot=this.test_match(st,St[Ut]))!==!1&&ot: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(ot){this.conditionStack.push(ot)},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(ot){return(ot=this.conditionStack.length-1-Math.abs(ot||0))>=0?this.conditionStack[ot]:"INITIAL"},pushState:function(ot){this.begin(ot)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ot,st,vt,Ut){switch(vt){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 ft.lexer=J,bt.prototype=ft,ft.Parser=bt,new bt}();v.parser=_,v.Parser=_.Parser,v.parse=function(){return _.parse.apply(_,arguments)},v.main=function(p){p[1]||(console.log("Usage: "+p[0]+" FILE"),process.exit(1));var x=d(9143).readFileSync(d(6470).normalize(p[1]),"utf8");return v.parser.parse(x)},d.c[d.s]===f&&v.main(process.argv.slice(1))},7967:(f,v)=>{v.N=void 0;var d=/^([^\w]*)(javascript|data|vbscript)/im,_=/&#(\w+)(^\w|;)?/g,p=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,x=/^([^:]+):/gm,b=[".","/"];v.N=function(A){var O,T=(O=A||"",O.replace(_,function(U,q){return String.fromCharCode(q)})).replace(p,"").trim();if(!T)return"about:blank";if(function(U){return b.indexOf(U[0])>-1}(T))return T;var R=T.match(x);if(!R)return T;var F=R[0];return d.test(F)?"about:blank":T}},3841:f=>{f.exports=function(v,d){return v.intersect(d)}},6359:(f,v,d)=>{d.d(v,{Z:()=>Or});var _=d(1941),p=d.n(_),x={debug:1,info:2,warn:3,error:4,fatal:5},b={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},A=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(u)&&(u=u.toLowerCase(),x[u]!==void 0&&(u=x[u])),b.trace=function(){},b.debug=function(){},b.info=function(){},b.warn=function(){},b.error=function(){},b.fatal=function(){},u<=x.fatal&&(b.fatal=console.error?console.error.bind(console,O("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",O("FATAL"))),u<=x.error&&(b.error=console.error?console.error.bind(console,O("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",O("ERROR"))),u<=x.warn&&(b.warn=console.warn?console.warn.bind(console,O("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",O("WARN"))),u<=x.info&&(b.info=console.info?console.info.bind(console,O("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",O("INFO"))),u<=x.debug&&(b.debug=console.debug?console.debug.bind(console,O("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",O("DEBUG")))},O=function(u){var s=p()().format("ss.SSS");return"%c".concat(s," : ").concat(u," : ")},T=d(7543),R="comm",F="rule",U="decl",q=Math.abs,Q=String.fromCharCode;function nt(u){return u.trim()}function ft(u,s,m){return u.replace(s,m)}function J(u,s){return u.indexOf(s)}function bt(u,s){return 0|u.charCodeAt(s)}function ot(u,s,m){return u.slice(s,m)}function st(u){return u.length}function vt(u){return u.length}function Ut(u,s){return s.push(u),u}function St(u,s){for(var m="",E=vt(u),C=0;C<E;C++)m+=s(u[C],C,u,s)||"";return m}function _t(u,s,m,E){switch(u.type){case"@import":case U:return u.return=u.return||u.value;case R:return"";case"@keyframes":return u.return=u.value+"{"+St(u.children,E)+"}";case F:u.value=u.props.join(",")}return st(m=St(u.children,E))?u.return=u.value+"{"+m+"}":""}var It=1,wt=1,yt=0,rt=0,pt=0,W="";function kt(u,s,m,E,C,N,M){return{value:u,root:s,parent:m,type:E,props:C,children:N,line:It,column:wt,length:M,return:""}}function G(){return pt=rt>0?bt(W,--rt):0,wt--,pt===10&&(wt=1,It--),pt}function At(){return pt=rt<yt?bt(W,rt++):0,wt++,pt===10&&(wt=1,It++),pt}function Mt(){return bt(W,rt)}function Gt(){return rt}function me(u,s){return ot(W,u,s)}function Ze(u){switch(u){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 Ee(u){return nt(me(rt-1,Oe(u===91?u+2:u===40?u+1:u)))}function pe(u){for(;(pt=Mt())&&pt<33;)At();return Ze(u)>2||Ze(pt)>3?"":" "}function we(u,s){for(;--s&&At()&&!(pt<48||pt>102||pt>57&&pt<65||pt>70&&pt<97););return me(u,Gt()+(s<6&&Mt()==32&&At()==32))}function Oe(u){for(;At();)switch(pt){case u:return rt;case 34:case 39:u!==34&&u!==39&&Oe(pt);break;case 40:u===41&&Oe(u);break;case 92:At()}return rt}function De(u,s){for(;At()&&u+pt!==57&&(u+pt!==84||Mt()!==47););return"/*"+me(s,rt-1)+"*"+Q(u===47?u:At())}function xe(u){for(;!Ze(Mt());)At();return me(u,rt)}function Ar(u){return function(s){return W="",s}(be("",null,null,null,[""],u=function(s){return It=wt=1,yt=st(W=s),rt=0,[]}(u),0,[0],u))}function be(u,s,m,E,C,N,M,D,z){for(var j=0,X=0,it=M,ut=0,lt=0,Ot=0,Lt=1,Yt=1,qt=1,Nt=0,zt="",Dt=C,te=N,Re=E,ke=zt;Yt;)switch(Ot=Nt,Nt=At()){case 40:if(Ot!=108&&ke.charCodeAt(it-1)==58){J(ke+=ft(Ee(Nt),"&","&\f"),"&\f")!=-1&&(qt=-1);break}case 34:case 39:case 91:ke+=Ee(Nt);break;case 9:case 10:case 13:case 32:ke+=pe(Ot);break;case 92:ke+=we(Gt()-1,7);continue;case 47:switch(Mt()){case 42:case 47:Ut(Rt(De(At(),Gt()),s,m),z);break;default:ke+="/"}break;case 123*Lt:D[j++]=st(ke)*qt;case 125*Lt:case 59:case 0:switch(Nt){case 0:case 125:Yt=0;case 59+X:lt>0&&st(ke)-it&&Ut(lt>32?de(ke+";",E,m,it-1):de(ft(ke," ","")+";",E,m,it-2),z);break;case 59:ke+=";";default:if(Ut(Re=Qe(ke,s,m,j,X,C,D,zt,Dt=[],te=[],it),N),Nt===123)if(X===0)be(ke,s,Re,Re,Dt,N,it,D,te);else switch(ut){case 100:case 109:case 115:be(u,Re,Re,E&&Ut(Qe(u,Re,Re,0,0,C,D,zt,C,Dt=[],it),te),C,te,it,D,E?Dt:te);break;default:be(ke,Re,Re,Re,[""],te,0,D,te)}}j=X=lt=0,Lt=qt=1,zt=ke="",it=M;break;case 58:it=1+st(ke),lt=Ot;default:if(Lt<1){if(Nt==123)--Lt;else if(Nt==125&&Lt++==0&&G()==125)continue}switch(ke+=Q(Nt),Nt*Lt){case 38:qt=X>0?1:(ke+="\f",-1);break;case 44:D[j++]=(st(ke)-1)*qt,qt=1;break;case 64:Mt()===45&&(ke+=Ee(At())),ut=Mt(),X=it=st(zt=ke+=xe(Gt())),Nt++;break;case 45:Ot===45&&st(ke)==2&&(Lt=0)}}return N}function Qe(u,s,m,E,C,N,M,D,z,j,X){for(var it=C-1,ut=C===0?N:[""],lt=vt(ut),Ot=0,Lt=0,Yt=0;Ot<E;++Ot)for(var qt=0,Nt=ot(u,it+1,it=q(Lt=M[Ot])),zt=u;qt<lt;++qt)(zt=nt(Lt>0?ut[qt]+" "+Nt:ft(Nt,/&\f/g,ut[qt])))&&(z[Yt++]=zt);return kt(u,s,m,C===0?F:D,z,j,X)}function Rt(u,s,m){return kt(u,s,m,R,Q(pt),ot(u,2,-2),0)}function de(u,s,m,E){return kt(u,s,m,U,ot(u,0,E),ot(u,E+1,-1),E)}const ne="9.1.6";function Ct(u){return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Ct(u)}const Te=function u(s,m,E){var C=Object.assign({depth:2,clobber:!1},E),N=C.depth,M=C.clobber;return Array.isArray(m)&&!Array.isArray(s)?(m.forEach(function(D){return u(s,D,E)}),s):Array.isArray(m)&&Array.isArray(s)?(m.forEach(function(D){s.indexOf(D)===-1&&s.push(D)}),s):s===void 0||N<=0?s!=null&&Ct(s)==="object"&&Ct(m)==="object"?Object.assign(s,m):m:(m!==void 0&&Ct(s)==="object"&&Ct(m)==="object"&&Object.keys(m).forEach(function(D){Ct(m[D])!=="object"||s[D]!==void 0&&Ct(s[D])!=="object"?(M||Ct(s[D])!=="object"&&Ct(m[D])!=="object")&&(s[D]=m[D]):(s[D]===void 0&&(s[D]=Array.isArray(m[D])?[]:{}),s[D]=u(s[D],m[D],{depth:N-1,clobber:M}))}),s)},tt={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:u=>u>=255?255:u<0?0:u,g:u=>u>=255?255:u<0?0:u,b:u=>u>=255?255:u<0?0:u,h:u=>u%360,s:u=>u>=100?100:u<0?0:u,l:u=>u>=100?100:u<0?0:u,a:u=>u>=1?1:u<0?0:u},toLinear:u=>{const s=u/255;return u>.03928?Math.pow((s+.055)/1.055,2.4):s/12.92},hue2rgb:(u,s,m)=>(m<0&&(m+=1),m>1&&(m-=1),m<1/6?u+6*(s-u)*m:m<.5?s:m<2/3?u+(s-u)*(2/3-m)*6:u),hsl2rgb:({h:u,s,l:m},E)=>{if(!s)return 2.55*m;u/=360,s/=100;const C=(m/=100)<.5?m*(1+s):m+s-m*s,N=2*m-C;switch(E){case"r":return 255*tt.hue2rgb(N,C,u+1/3);case"g":return 255*tt.hue2rgb(N,C,u);case"b":return 255*tt.hue2rgb(N,C,u-1/3)}},rgb2hsl:({r:u,g:s,b:m},E)=>{u/=255,s/=255,m/=255;const C=Math.max(u,s,m),N=Math.min(u,s,m),M=(C+N)/2;if(E==="l")return 100*M;if(C===N)return 0;const D=C-N;if(E==="s")return 100*(M>.5?D/(2-C-N):D/(C+N));switch(C){case u:return 60*((s-m)/D+(s<m?6:0));case s:return 60*((m-u)/D+2);case m:return 60*((u-s)/D+4);default:return-1}}},le={channel:tt,lang:{clamp:(u,s,m)=>s>m?Math.min(s,Math.max(m,u)):Math.min(m,Math.max(s,u)),round:u=>Math.round(1e10*u)/1e10},unit:{dec2hex:u=>{const s=Math.round(u).toString(16);return s.length>1?s:`0${s}`}}},ct={};for(let u=0;u<=255;u++)ct[u]=le.unit.dec2hex(u);const Se=new class{constructor(u,s){this.color=s,this.changed=!1,this.data=u,this.type=new class{constructor(){this.type=0}get(){return this.type}set(m){if(this.type&&this.type!==m)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=m}reset(){this.type=0}is(m){return this.type===m}}}set(u,s){return this.color=s,this.changed=!1,this.data=u,this.type.type=0,this}_ensureHSL(){const u=this.data,{h:s,s:m,l:E}=u;s===void 0&&(u.h=le.channel.rgb2hsl(u,"h")),m===void 0&&(u.s=le.channel.rgb2hsl(u,"s")),E===void 0&&(u.l=le.channel.rgb2hsl(u,"l"))}_ensureRGB(){const u=this.data,{r:s,g:m,b:E}=u;s===void 0&&(u.r=le.channel.hsl2rgb(u,"r")),m===void 0&&(u.g=le.channel.hsl2rgb(u,"g")),E===void 0&&(u.b=le.channel.hsl2rgb(u,"b"))}get r(){const u=this.data,s=u.r;return this.type.is(2)||s===void 0?(this._ensureHSL(),le.channel.hsl2rgb(u,"r")):s}get g(){const u=this.data,s=u.g;return this.type.is(2)||s===void 0?(this._ensureHSL(),le.channel.hsl2rgb(u,"g")):s}get b(){const u=this.data,s=u.b;return this.type.is(2)||s===void 0?(this._ensureHSL(),le.channel.hsl2rgb(u,"b")):s}get h(){const u=this.data,s=u.h;return this.type.is(1)||s===void 0?(this._ensureRGB(),le.channel.rgb2hsl(u,"h")):s}get s(){const u=this.data,s=u.s;return this.type.is(1)||s===void 0?(this._ensureRGB(),le.channel.rgb2hsl(u,"s")):s}get l(){const u=this.data,s=u.l;return this.type.is(1)||s===void 0?(this._ensureRGB(),le.channel.rgb2hsl(u,"l")):s}get a(){return this.data.a}set r(u){this.type.set(1),this.changed=!0,this.data.r=u}set g(u){this.type.set(1),this.changed=!0,this.data.g=u}set b(u){this.type.set(1),this.changed=!0,this.data.b=u}set h(u){this.type.set(2),this.changed=!0,this.data.h=u}set s(u){this.type.set(2),this.changed=!0,this.data.s=u}set l(u){this.type.set(2),this.changed=!0,this.data.l=u}set a(u){this.changed=!0,this.data.a=u}}({r:0,g:0,b:0,a:0},"transparent"),ye={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:u=>{if(u.charCodeAt(0)!==35)return;const s=u.match(ye.re);if(!s)return;const m=s[1],E=parseInt(m,16),C=m.length,N=C%4==0,M=C>4,D=M?1:17,z=M?8:4,j=N?0:-1,X=M?255:15;return Se.set({r:(E>>z*(j+3)&X)*D,g:(E>>z*(j+2)&X)*D,b:(E>>z*(j+1)&X)*D,a:N?(E&X)*D/255:1},u)},stringify:u=>{const{r:s,g:m,b:E,a:C}=u;return C<1?`#${ct[Math.round(s)]}${ct[Math.round(m)]}${ct[Math.round(E)]}${ct[Math.round(255*C)]}`:`#${ct[Math.round(s)]}${ct[Math.round(m)]}${ct[Math.round(E)]}`}},ze=ye,or={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:u=>{const s=u.match(or.hueRe);if(s){const[,m,E]=s;switch(E){case"grad":return le.channel.clamp.h(.9*parseFloat(m));case"rad":return le.channel.clamp.h(180*parseFloat(m)/Math.PI);case"turn":return le.channel.clamp.h(360*parseFloat(m))}}return le.channel.clamp.h(parseFloat(u))},parse:u=>{const s=u.charCodeAt(0);if(s!==104&&s!==72)return;const m=u.match(or.re);if(!m)return;const[,E,C,N,M,D]=m;return Se.set({h:or._hue2deg(E),s:le.channel.clamp.s(parseFloat(C)),l:le.channel.clamp.l(parseFloat(N)),a:M?le.channel.clamp.a(D?parseFloat(M)/100:parseFloat(M)):1},u)},stringify:u=>{const{h:s,s:m,l:E,a:C}=u;return C<1?`hsla(${le.lang.round(s)}, ${le.lang.round(m)}%, ${le.lang.round(E)}%, ${C})`:`hsl(${le.lang.round(s)}, ${le.lang.round(m)}%, ${le.lang.round(E)}%)`}},Xe=or,ur={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:u=>{u=u.toLowerCase();const s=ur.colors[u];if(s)return ze.parse(s)},stringify:u=>{const s=ze.stringify(u);for(const m in ur.colors)if(ur.colors[m]===s)return m}},Ne=ur,Be={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:u=>{const s=u.charCodeAt(0);if(s!==114&&s!==82)return;const m=u.match(Be.re);if(!m)return;const[,E,C,N,M,D,z,j,X]=m;return Se.set({r:le.channel.clamp.r(C?2.55*parseFloat(E):parseFloat(E)),g:le.channel.clamp.g(M?2.55*parseFloat(N):parseFloat(N)),b:le.channel.clamp.b(z?2.55*parseFloat(D):parseFloat(D)),a:j?le.channel.clamp.a(X?parseFloat(j)/100:parseFloat(j)):1},u)},stringify:u=>{const{r:s,g:m,b:E,a:C}=u;return C<1?`rgba(${le.lang.round(s)}, ${le.lang.round(m)}, ${le.lang.round(E)}, ${le.lang.round(C)})`:`rgb(${le.lang.round(s)}, ${le.lang.round(m)}, ${le.lang.round(E)})`}},Ue=Be,Pe={format:{keyword:Ne,hex:ze,rgb:Ue,rgba:Ue,hsl:Xe,hsla:Xe},parse:u=>{if(typeof u!="string")return u;const s=ze.parse(u)||Ue.parse(u)||Xe.parse(u)||Ne.parse(u);if(s)return s;throw new Error(`Unsupported color format: "${u}"`)},stringify:u=>!u.changed&&u.color?u.color:u.type.is(2)||u.data.r===void 0?Xe.stringify(u):u.a<1||!Number.isInteger(u.r)||!Number.isInteger(u.g)||!Number.isInteger(u.b)?Ue.stringify(u):ze.stringify(u)},ve=(u,s)=>{const m=Pe.parse(u);for(const E in s)m[E]=le.channel.clamp[E](s[E]);return Pe.stringify(m)},oe=(u,s)=>{const m=Pe.parse(u),E={};for(const C in s)s[C]&&(E[C]=m[C]+s[C]);return ve(u,E)},vr=(u,s,m=0,E=1)=>{if(typeof u!="number")return ve(u,{a:s});const C=Se.set({r:le.channel.clamp.r(u),g:le.channel.clamp.g(s),b:le.channel.clamp.b(m),a:le.channel.clamp.a(E)});return Pe.stringify(C)},We=(u,s=100)=>{const m=Pe.parse(u);return m.r=255-m.r,m.g=255-m.g,m.b=255-m.b,((E,C,N=50)=>{const{r:M,g:D,b:z,a:j}=Pe.parse(E),{r:X,g:it,b:ut,a:lt}=Pe.parse(C),Ot=N/100,Lt=2*Ot-1,Yt=j-lt,qt=((Lt*Yt==-1?Lt:(Lt+Yt)/(1+Lt*Yt))+1)/2,Nt=1-qt;return vr(M*qt+X*Nt,D*qt+it*Nt,z*qt+ut*Nt,j*Ot+lt*(1-Ot))})(m,u,s)},cr=(u,s,m)=>{const E=Pe.parse(u),C=E[s],N=le.channel.clamp[s](C+m);return C!==N&&(E[s]=N),Pe.stringify(E)},He=(u,s)=>cr(u,"l",-s),Tr=(u,s)=>cr(u,"l",s);var Qr=function(u,s){return oe(u,s?{s:-40,l:10}:{s:-40,l:-10})};function Nr(u){return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Nr(u)}function Fr(u,s){for(var m=0;m<s.length;m++){var E=s[m];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(u,E.key,E)}}var Le=function(){function u(){(function(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")})(this,u),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 s,m;return s=u,m=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||oe(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||oe(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Qr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Qr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Qr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Qr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||We(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||We(this.tertiaryColor),this.lineColor=this.lineColor||We(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?He(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||He(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||We(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||oe(this.primaryColor,{h:64}),this.fillType3=this.fillType3||oe(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||oe(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||oe(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||oe(this.primaryColor,{h:128}),this.fillType7=this.fillType7||oe(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||oe(this.primaryColor,{l:-10}),this.pie5=this.pie5||oe(this.secondaryColor,{l:-10}),this.pie6=this.pie6||oe(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||oe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||oe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||oe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||oe(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||oe(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||oe(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?He(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||oe(this.primaryColor,{h:-30}),this.git4=this.git4||oe(this.primaryColor,{h:-60}),this.git5=this.git5||oe(this.primaryColor,{h:-90}),this.git6=this.git6||oe(this.primaryColor,{h:60}),this.git7=this.git7||oe(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=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)),this.gitInv0=this.gitInv0||We(this.git0),this.gitInv1=this.gitInv1||We(this.git1),this.gitInv2=this.gitInv2||We(this.git2),this.gitInv3=this.gitInv3||We(this.git3),this.gitInv4=this.gitInv4||We(this.git4),this.gitInv5=this.gitInv5||We(this.git5),this.gitInv6=this.gitInv6||We(this.git6),this.gitInv7=this.gitInv7||We(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.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(E){var C=this;if(Nr(E)==="object"){var N=Object.keys(E);N.forEach(function(M){C[M]=E[M]}),this.updateColors(),N.forEach(function(M){C[M]=E[M]})}else this.updateColors()}}],m&&Fr(s.prototype,m),Object.defineProperty(s,"prototype",{writable:!1}),u}();function tr(u){return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},tr(u)}function nr(u,s){for(var m=0;m<s.length;m++){var E=s[m];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(u,E.key,E)}}var Ae=function(){function u(){(function(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")})(this,u),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Tr(this.primaryColor,16),this.tertiaryColor=oe(this.primaryColor,{h:-160}),this.primaryBorderColor=We(this.background),this.secondaryBorderColor=Qr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qr(this.tertiaryColor,this.darkMode),this.primaryTextColor=We(this.primaryColor),this.secondaryTextColor=We(this.secondaryColor),this.tertiaryTextColor=We(this.tertiaryColor),this.lineColor=We(this.background),this.textColor=We(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Tr(We("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=vr(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=He("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=vr(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=vr(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 s,m;return s=u,m=[{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=oe(this.primaryColor,{h:64}),this.fillType3=oe(this.secondaryColor,{h:64}),this.fillType4=oe(this.primaryColor,{h:-64}),this.fillType5=oe(this.secondaryColor,{h:-64}),this.fillType6=oe(this.primaryColor,{h:128}),this.fillType7=oe(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?He(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||oe(this.primaryColor,{h:-30}),20),this.git4=Tr(this.pie5||oe(this.primaryColor,{h:-60}),20),this.git5=Tr(this.pie6||oe(this.primaryColor,{h:-90}),10),this.git6=Tr(this.pie7||oe(this.primaryColor,{h:60}),10),this.git7=Tr(this.pie8||oe(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||We(this.git0),this.gitInv1=this.gitInv1||We(this.git1),this.gitInv2=this.gitInv2||We(this.git2),this.gitInv3=this.gitInv3||We(this.git3),this.gitInv4=this.gitInv4||We(this.git4),this.gitInv5=this.gitInv5||We(this.git5),this.gitInv6=this.gitInv6||We(this.git6),this.gitInv7=this.gitInv7||We(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(E){var C=this;if(tr(E)==="object"){var N=Object.keys(E);N.forEach(function(M){C[M]=E[M]}),this.updateColors(),N.forEach(function(M){C[M]=E[M]})}else this.updateColors()}}],m&&nr(s.prototype,m),Object.defineProperty(s,"prototype",{writable:!1}),u}();function Cr(u){return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Cr(u)}function Bt(u,s){for(var m=0;m<s.length;m++){var E=s[m];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(u,E.key,E)}}var xn=function(){function u(){(function(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")})(this,u),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=oe(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=oe(this.primaryColor,{h:-160}),this.primaryBorderColor=Qr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qr(this.tertiaryColor,this.darkMode),this.primaryTextColor=We(this.primaryColor),this.secondaryTextColor=We(this.secondaryColor),this.tertiaryTextColor=We(this.tertiaryColor),this.lineColor=We(this.background),this.textColor=We(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=vr(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 s,m;return s=u,m=[{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=oe(this.primaryColor,{h:64}),this.fillType3=oe(this.secondaryColor,{h:64}),this.fillType4=oe(this.primaryColor,{h:-64}),this.fillType5=oe(this.secondaryColor,{h:-64}),this.fillType6=oe(this.primaryColor,{h:128}),this.fillType7=oe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||oe(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||oe(this.primaryColor,{l:-10}),this.pie5=this.pie5||oe(this.secondaryColor,{l:-30}),this.pie6=this.pie6||oe(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||oe(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||oe(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||oe(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||oe(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||oe(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||oe(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||oe(this.primaryColor,{h:-30}),this.git4=this.git4||oe(this.primaryColor,{h:-60}),this.git5=this.git5||oe(this.primaryColor,{h:-90}),this.git6=this.git6||oe(this.primaryColor,{h:60}),this.git7=this.git7||oe(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=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)),this.gitInv0=this.gitInv0||He(We(this.git0),25),this.gitInv1=this.gitInv1||We(this.git1),this.gitInv2=this.gitInv2||We(this.git2),this.gitInv3=this.gitInv3||We(this.git3),this.gitInv4=this.gitInv4||We(this.git4),this.gitInv5=this.gitInv5||We(this.git5),this.gitInv6=this.gitInv6||We(this.git6),this.gitInv7=this.gitInv7||We(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||We(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||We(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.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(E){var C=this;if(Cr(E)==="object"){var N=Object.keys(E);N.forEach(function(M){C[M]=E[M]}),this.updateColors(),N.forEach(function(M){C[M]=E[M]})}else this.updateColors()}}],m&&Bt(s.prototype,m),Object.defineProperty(s,"prototype",{writable:!1}),u}();function Vt(u){return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Vt(u)}function Wr(u,s){for(var m=0;m<s.length;m++){var E=s[m];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(u,E.key,E)}}var jr=function(){function u(){(function(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")})(this,u),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=Qr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qr(this.tertiaryColor,this.darkMode),this.primaryTextColor=We(this.primaryColor),this.secondaryTextColor=We(this.secondaryColor),this.tertiaryTextColor=We(this.primaryColor),this.lineColor=We(this.background),this.textColor=We(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 s,m;return s=u,m=[{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=He(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=oe(this.primaryColor,{h:64}),this.fillType3=oe(this.secondaryColor,{h:64}),this.fillType4=oe(this.primaryColor,{h:-64}),this.fillType5=oe(this.secondaryColor,{h:-64}),this.fillType6=oe(this.primaryColor,{h:128}),this.fillType7=oe(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||oe(this.primaryColor,{l:-30}),this.pie5=this.pie5||oe(this.secondaryColor,{l:-30}),this.pie6=this.pie6||oe(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||oe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||oe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||oe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||oe(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||oe(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||oe(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||oe(this.primaryColor,{h:-30}),this.git4=this.git4||oe(this.primaryColor,{h:-60}),this.git5=this.git5||oe(this.primaryColor,{h:-90}),this.git6=this.git6||oe(this.primaryColor,{h:60}),this.git7=this.git7||oe(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=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)),this.gitInv0=this.gitInv0||We(this.git0),this.gitInv1=this.gitInv1||We(this.git1),this.gitInv2=this.gitInv2||We(this.git2),this.gitInv3=this.gitInv3||We(this.git3),this.gitInv4=this.gitInv4||We(this.git4),this.gitInv5=this.gitInv5||We(this.git5),this.gitInv6=this.gitInv6||We(this.git6),this.gitInv7=this.gitInv7||We(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(E){var C=this;if(Vt(E)==="object"){var N=Object.keys(E);N.forEach(function(M){C[M]=E[M]}),this.updateColors(),N.forEach(function(M){C[M]=E[M]})}else this.updateColors()}}],m&&Wr(s.prototype,m),Object.defineProperty(s,"prototype",{writable:!1}),u}();function Vr(u){return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Vr(u)}function Rr(u,s){for(var m=0;m<s.length;m++){var E=s[m];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(u,E.key,E)}}var Zr=function(){function u(){(function(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")})(this,u),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Tr(this.contrast,55),this.background="#ffffff",this.tertiaryColor=oe(this.primaryColor,{h:-160}),this.primaryBorderColor=Qr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qr(this.tertiaryColor,this.darkMode),this.primaryTextColor=We(this.primaryColor),this.secondaryTextColor=We(this.secondaryColor),this.tertiaryTextColor=We(this.tertiaryColor),this.lineColor=We(this.background),this.textColor=We(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 s,m;return s=u,m=[{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=He(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=He(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=oe(this.primaryColor,{h:64}),this.fillType3=oe(this.secondaryColor,{h:64}),this.fillType4=oe(this.primaryColor,{h:-64}),this.fillType5=oe(this.secondaryColor,{h:-64}),this.fillType6=oe(this.primaryColor,{h:128}),this.fillType7=oe(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=He(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||oe(this.primaryColor,{h:-30}),this.git4=this.pie5||oe(this.primaryColor,{h:-60}),this.git5=this.pie6||oe(this.primaryColor,{h:-90}),this.git6=this.pie7||oe(this.primaryColor,{h:60}),this.git7=this.pie8||oe(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||We(this.git0),this.gitInv1=this.gitInv1||We(this.git1),this.gitInv2=this.gitInv2||We(this.git2),this.gitInv3=this.gitInv3||We(this.git3),this.gitInv4=this.gitInv4||We(this.git4),this.gitInv5=this.gitInv5||We(this.git5),this.gitInv6=this.gitInv6||We(this.git6),this.gitInv7=this.gitInv7||We(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.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(E){var C=this;if(Vr(E)==="object"){var N=Object.keys(E);N.forEach(function(M){C[M]=E[M]}),this.updateColors(),N.forEach(function(M){C[M]=E[M]})}else this.updateColors()}}],m&&Rr(s.prototype,m),Object.defineProperty(s,"prototype",{writable:!1}),u}();const Ur={base:{getThemeVariables:function(u){var s=new Le;return s.calculate(u),s}},dark:{getThemeVariables:function(u){var s=new Ae;return s.calculate(u),s}},default:{getThemeVariables:function(u){var s=new xn;return s.calculate(u),s}},forest:{getThemeVariables:function(u){var s=new jr;return s.calculate(u),s}},neutral:{getThemeVariables:function(u){var s=new Zr;return s.calculate(u),s}}};function Lr(u){return function(s){if(Array.isArray(s))return Yr(s)}(u)||function(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}(u)||function(s,m){if(s){if(typeof s=="string")return Yr(s,m);var E=Object.prototype.toString.call(s).slice(8,-1);return E==="Object"&&s.constructor&&(E=s.constructor.name),E==="Map"||E==="Set"?Array.from(s):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?Yr(s,m):void 0}}(u)||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 Yr(u,s){(s==null||s>u.length)&&(s=u.length);for(var m=0,E=new Array(s);m<s;m++)E[m]=u[m];return E}function $r(u){return $r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},$r(u)}var Hr={theme:"default",themeVariables:Ur.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,dividerMargin:10,padding:5,textHeight:10,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"}};Hr.class.arrowMarkerAbsolute=Hr.arrowMarkerAbsolute,Hr.gitGraph.arrowMarkerAbsolute=Hr.arrowMarkerAbsolute;var ya=function u(s){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(s).reduce(function(E,C){return Array.isArray(s[C])?E:$r(s[C])==="object"&&s[C]!==null?[].concat(Lr(E),[m+C],Lr(u(s[C],""))):[].concat(Lr(E),[m+C])},[])}(Hr,"");const On=Hr;function Cn(u){return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Cn(u)}var Mr,hi=Object.freeze(On),Pr=Te({},hi),wn=[],Nn=Te({},hi),vn=function(u,s){for(var m=Te({},u),E={},C=0;C<s.length;C++){var N=s[C];Ln(N),E=Te(E,N)}if(m=Te(m,E),E.theme&&Ur[E.theme]){var M=Te({},Mr),D=Te(M.themeVariables||{},E.themeVariables);m.themeVariables=Ur[m.theme].getThemeVariables(D)}return Nn=m,m},Kn=function(){return Te({},Pr)},Ft=function(){return Te({},Nn)},Ln=function u(s){Object.keys(Pr.secure).forEach(function(m){s[Pr.secure[m]]!==void 0&&(b.debug("Denied attempt to modify a secure key ".concat(Pr.secure[m]),s[Pr.secure[m]]),delete s[Pr.secure[m]])}),Object.keys(s).forEach(function(m){m.indexOf("__")===0&&delete s[m]}),Object.keys(s).forEach(function(m){typeof s[m]=="string"&&(s[m].indexOf("<")>-1||s[m].indexOf(">")>-1||s[m].indexOf("url(data:")>-1)&&delete s[m],Cn(s[m])==="object"&&u(s[m])})},Dn=function(u){u.fontFamily&&(u.themeVariables&&u.themeVariables.fontFamily||(u.themeVariables={fontFamily:u.fontFamily})),wn.push(u),vn(Pr,wn)},Xr=function(){vn(Pr,wn=[])},ri=d(7856),qn=d.n(ri),Fn=function(u){var s=u.replace(/\\u[\dA-F]{4}/gi,function(m){return String.fromCharCode(parseInt(m.replace(/\\u/g,""),16))});return s=(s=(s=s.replace(/\\x([0-9a-f]{2})/gi,function(m,E){return String.fromCharCode(parseInt(E,16))})).replace(/\\[\d\d\d]{3}/gi,function(m){return String.fromCharCode(parseInt(m.replace(/\\/g,""),8))})).replace(/\\[\d\d\d]{2}/gi,function(m){return String.fromCharCode(parseInt(m.replace(/\\/g,""),8))})},ni=function(u){for(var s="",m=0;m>=0;){if(!((m=u.indexOf("<script"))>=0)){s+=u,m=-1;break}s+=u.substr(0,m),(m=(u=u.substr(m+1)).indexOf("<\/script>"))>=0&&(m+=9,u=u.substr(m))}var E=Fn(s);return(E=(E=(E=(E=E.replaceAll(/script>/gi,"#")).replaceAll(/javascript:/gi,"#")).replaceAll(/javascript&colon/gi,"#")).replaceAll(/onerror=/gi,"onerror:")).replaceAll(/<iframe/gi,"")},Ia=function(u,s){var m=u,E=!0;if(!s.flowchart||s.flowchart.htmlLabels!==!1&&s.flowchart.htmlLabels!=="false"||(E=!1),E){var C=s.securityLevel;C==="antiscript"||C==="strict"?m=ni(m):C!=="loose"&&(m=(m=(m=Ci(m)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),m=Bi(m))}return m},fn=function(u,s){return u&&(s.dompurifyConfig?qn().sanitize(Ia(u,s),s.dompurifyConfig):qn().sanitize(Ia(u,s)))},Ai=/<br\s*\/?>/gi,Bi=function(u){return u.replace(/#br#/g,"<br/>")},Ci=function(u){return u.replace(Ai,"#br#")},fr=function(u){return u!=="false"&&u!==!1};const mr={getRows:function(u){if(!u)return 1;var s=Ci(u);return(s=s.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:fn,sanitizeTextOrArray:function(u,s){return typeof u=="string"?fn(u,s):u.flat().map(function(m){return fn(m,s)})},hasBreaks:function(u){return Ai.test(u)},splitBreaks:function(u){return u.split(Ai)},lineBreakRegex:Ai,removeScript:ni,getUrl:function(u){var s="";return u&&(s=(s=(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),s},evaluate:fr,removeEscapes:Fn};var Kr="",ir="",un="",Xt=function(u){return fn(u,Ft())},Yn=function(){Kr="",un="",ir=""},ee=function(u){Kr=Xt(u).replace(/^\s+/g,"")},kn=function(){return Kr||ir},si=function(u){un=Xt(u).replace(/\n\s+/g,`
|
|
`)},di=function(){return un},Na=function(u){ir=Xt(u)},Fi=function(){return ir};function kr(u,s){return function(m){if(Array.isArray(m))return m}(u)||function(m,E){var C=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(C!=null){var N,M,D=[],z=!0,j=!1;try{for(C=C.call(m);!(z=(N=C.next()).done)&&(D.push(N.value),!E||D.length!==E);z=!0);}catch(X){j=!0,M=X}finally{try{z||C.return==null||C.return()}finally{if(j)throw M}}return D}}(u,s)||function(m,E){if(m){if(typeof m=="string")return jn(m,E);var C=Object.prototype.toString.call(m).slice(8,-1);return C==="Object"&&m.constructor&&(C=m.constructor.name),C==="Map"||C==="Set"?Array.from(m):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?jn(m,E):void 0}}(u,s)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function jn(u,s){(s==null||s>u.length)&&(s=u.length);for(var m=0,E=new Array(s);m<s;m++)E[m]=u[m];return E}function Br(u){return Br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Br(u)}var ma,Pn=[],Pi=[""],$n="global",mn="",ki=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Wn=[],ii="",Qi=!1,Ii=4,ai=2,_a=function(u){return u==null?Pn:Pn.filter(function(s){return s.parentBoundary===u})},Gn=function(){return Qi};const Jn={addPersonOrSystem:function(u,s,m,E,C,N,M){if(s!==null&&m!==null){var D={},z=Pn.find(function(te){return te.alias===s});if(z&&s===z.alias?D=z:(D.alias=s,Pn.push(D)),D.label=m==null?{text:""}:{text:m},E==null)D.descr={text:""};else if(Br(E)==="object"){var j=kr(Object.entries(E)[0],2),X=j[0],it=j[1];D[X]={text:it}}else D.descr={text:E};if(Br(C)==="object"){var ut=kr(Object.entries(C)[0],2),lt=ut[0],Ot=ut[1];D[lt]=Ot}else D.sprite=C;if(Br(N)==="object"){var Lt=kr(Object.entries(N)[0],2),Yt=Lt[0],qt=Lt[1];D[Yt]=qt}else D.tags=N;if(Br(M)==="object"){var Nt=kr(Object.entries(M)[0],2),zt=Nt[0],Dt=Nt[1];D[zt]=Dt}else D.link=M;D.typeC4Shape={text:u},D.parentBoundary=$n,D.wrap=Gn()}},addPersonOrSystemBoundary:function(u,s,m,E,C){if(u!==null&&s!==null){var N={},M=ki.find(function(Yt){return Yt.alias===u});if(M&&u===M.alias?N=M:(N.alias=u,ki.push(N)),N.label=s==null?{text:""}:{text:s},m==null)N.type={text:"system"};else if(Br(m)==="object"){var D=kr(Object.entries(m)[0],2),z=D[0],j=D[1];N[z]={text:j}}else N.type={text:m};if(Br(E)==="object"){var X=kr(Object.entries(E)[0],2),it=X[0],ut=X[1];N[it]=ut}else N.tags=E;if(Br(C)==="object"){var lt=kr(Object.entries(C)[0],2),Ot=lt[0],Lt=lt[1];N[Ot]=Lt}else N.link=C;N.parentBoundary=$n,N.wrap=Gn(),mn=$n,$n=u,Pi.push(mn)}},addContainer:function(u,s,m,E,C,N,M,D){if(s!==null&&m!==null){var z={},j=Pn.find(function(Jt){return Jt.alias===s});if(j&&s===j.alias?z=j:(z.alias=s,Pn.push(z)),z.label=m==null?{text:""}:{text:m},E==null)z.techn={text:""};else if(Br(E)==="object"){var X=kr(Object.entries(E)[0],2),it=X[0],ut=X[1];z[it]={text:ut}}else z.techn={text:E};if(C==null)z.descr={text:""};else if(Br(C)==="object"){var lt=kr(Object.entries(C)[0],2),Ot=lt[0],Lt=lt[1];z[Ot]={text:Lt}}else z.descr={text:C};if(Br(N)==="object"){var Yt=kr(Object.entries(N)[0],2),qt=Yt[0],Nt=Yt[1];z[qt]=Nt}else z.sprite=N;if(Br(M)==="object"){var zt=kr(Object.entries(M)[0],2),Dt=zt[0],te=zt[1];z[Dt]=te}else z.tags=M;if(Br(D)==="object"){var Re=kr(Object.entries(D)[0],2),ke=Re[0],he=Re[1];z[ke]=he}else z.link=D;z.wrap=Gn(),z.typeC4Shape={text:u},z.parentBoundary=$n}},addContainerBoundary:function(u,s,m,E,C){if(u!==null&&s!==null){var N={},M=ki.find(function(Yt){return Yt.alias===u});if(M&&u===M.alias?N=M:(N.alias=u,ki.push(N)),N.label=s==null?{text:""}:{text:s},m==null)N.type={text:"container"};else if(Br(m)==="object"){var D=kr(Object.entries(m)[0],2),z=D[0],j=D[1];N[z]={text:j}}else N.type={text:m};if(Br(E)==="object"){var X=kr(Object.entries(E)[0],2),it=X[0],ut=X[1];N[it]=ut}else N.tags=E;if(Br(C)==="object"){var lt=kr(Object.entries(C)[0],2),Ot=lt[0],Lt=lt[1];N[Ot]=Lt}else N.link=C;N.parentBoundary=$n,N.wrap=Gn(),mn=$n,$n=u,Pi.push(mn)}},addComponent:function(u,s,m,E,C,N,M,D){if(s!==null&&m!==null){var z={},j=Pn.find(function(Jt){return Jt.alias===s});if(j&&s===j.alias?z=j:(z.alias=s,Pn.push(z)),z.label=m==null?{text:""}:{text:m},E==null)z.techn={text:""};else if(Br(E)==="object"){var X=kr(Object.entries(E)[0],2),it=X[0],ut=X[1];z[it]={text:ut}}else z.techn={text:E};if(C==null)z.descr={text:""};else if(Br(C)==="object"){var lt=kr(Object.entries(C)[0],2),Ot=lt[0],Lt=lt[1];z[Ot]={text:Lt}}else z.descr={text:C};if(Br(N)==="object"){var Yt=kr(Object.entries(N)[0],2),qt=Yt[0],Nt=Yt[1];z[qt]=Nt}else z.sprite=N;if(Br(M)==="object"){var zt=kr(Object.entries(M)[0],2),Dt=zt[0],te=zt[1];z[Dt]=te}else z.tags=M;if(Br(D)==="object"){var Re=kr(Object.entries(D)[0],2),ke=Re[0],he=Re[1];z[ke]=he}else z.link=D;z.wrap=Gn(),z.typeC4Shape={text:u},z.parentBoundary=$n}},addDeploymentNode:function(u,s,m,E,C,N,M,D){if(s!==null&&m!==null){var z={},j=ki.find(function(Re){return Re.alias===s});if(j&&s===j.alias?z=j:(z.alias=s,ki.push(z)),z.label=m==null?{text:""}:{text:m},E==null)z.type={text:"node"};else if(Br(E)==="object"){var X=kr(Object.entries(E)[0],2),it=X[0],ut=X[1];z[it]={text:ut}}else z.type={text:E};if(C==null)z.descr={text:""};else if(Br(C)==="object"){var lt=kr(Object.entries(C)[0],2),Ot=lt[0],Lt=lt[1];z[Ot]={text:Lt}}else z.descr={text:C};if(Br(M)==="object"){var Yt=kr(Object.entries(M)[0],2),qt=Yt[0],Nt=Yt[1];z[qt]=Nt}else z.tags=M;if(Br(D)==="object"){var zt=kr(Object.entries(D)[0],2),Dt=zt[0],te=zt[1];z[Dt]=te}else z.link=D;z.nodeType=u,z.parentBoundary=$n,z.wrap=Gn(),mn=$n,$n=s,Pi.push(mn)}},popBoundaryParseStack:function(){$n=mn,Pi.pop(),mn=Pi.pop(),Pi.push(mn)},addRel:function(u,s,m,E,C,N,M,D,z){if(u!=null&&s!=null&&m!=null&&E!=null){var j={},X=Wn.find(function(ue){return ue.from===s&&ue.to===m});if(X?j=X:Wn.push(j),j.type=u,j.from=s,j.to=m,j.label={text:E},C==null)j.techn={text:""};else if(Br(C)==="object"){var it=kr(Object.entries(C)[0],2),ut=it[0],lt=it[1];j[ut]={text:lt}}else j.techn={text:C};if(N==null)j.descr={text:""};else if(Br(N)==="object"){var Ot=kr(Object.entries(N)[0],2),Lt=Ot[0],Yt=Ot[1];j[Lt]={text:Yt}}else j.descr={text:N};if(Br(M)==="object"){var qt=kr(Object.entries(M)[0],2),Nt=qt[0],zt=qt[1];j[Nt]=zt}else j.sprite=M;if(Br(D)==="object"){var Dt=kr(Object.entries(D)[0],2),te=Dt[0],Re=Dt[1];j[te]=Re}else j.tags=D;if(Br(z)==="object"){var ke=kr(Object.entries(z)[0],2),he=ke[0],Jt=ke[1];j[he]=Jt}else j.link=z;j.wrap=Gn()}},updateElStyle:function(u,s,m,E,C,N,M,D,z,j,X){var it=Pn.find(function(Ve){return Ve.alias===s});if(it!==void 0||(it=ki.find(function(Ve){return Ve.alias===s}))!==void 0){if(m!=null)if(Br(m)==="object"){var ut=kr(Object.entries(m)[0],2),lt=ut[0],Ot=ut[1];it[lt]=Ot}else it.bgColor=m;if(E!=null)if(Br(E)==="object"){var Lt=kr(Object.entries(E)[0],2),Yt=Lt[0],qt=Lt[1];it[Yt]=qt}else it.fontColor=E;if(C!=null)if(Br(C)==="object"){var Nt=kr(Object.entries(C)[0],2),zt=Nt[0],Dt=Nt[1];it[zt]=Dt}else it.borderColor=C;if(N!=null)if(Br(N)==="object"){var te=kr(Object.entries(N)[0],2),Re=te[0],ke=te[1];it[Re]=ke}else it.shadowing=N;if(M!=null)if(Br(M)==="object"){var he=kr(Object.entries(M)[0],2),Jt=he[0],ue=he[1];it[Jt]=ue}else it.shape=M;if(D!=null)if(Br(D)==="object"){var jt=kr(Object.entries(D)[0],2),ce=jt[0],ae=jt[1];it[ce]=ae}else it.sprite=D;if(z!=null)if(Br(z)==="object"){var fe=kr(Object.entries(z)[0],2),Me=fe[0],Fe=fe[1];it[Me]=Fe}else it.techn=z;if(j!=null)if(Br(j)==="object"){var Ye=kr(Object.entries(j)[0],2),gr=Ye[0],je=Ye[1];it[gr]=je}else it.legendText=j;if(X!=null)if(Br(X)==="object"){var lr=kr(Object.entries(X)[0],2),dr=lr[0],Ge=lr[1];it[dr]=Ge}else it.legendSprite=X}},updateRelStyle:function(u,s,m,E,C,N,M){var D=Wn.find(function(Dt){return Dt.from===s&&Dt.to===m});if(D!==void 0){if(E!=null)if(Br(E)==="object"){var z=kr(Object.entries(E)[0],2),j=z[0],X=z[1];D[j]=X}else D.textColor=E;if(C!=null)if(Br(C)==="object"){var it=kr(Object.entries(C)[0],2),ut=it[0],lt=it[1];D[ut]=lt}else D.lineColor=C;if(N!=null)if(Br(N)==="object"){var Ot=kr(Object.entries(N)[0],2),Lt=Ot[0],Yt=Ot[1];D[Lt]=parseInt(Yt)}else D.offsetX=parseInt(N);if(M!=null)if(Br(M)==="object"){var qt=kr(Object.entries(M)[0],2),Nt=qt[0],zt=qt[1];D[Nt]=parseInt(zt)}else D.offsetY=parseInt(M)}},updateLayoutConfig:function(u,s,m){var E=Ii,C=ai;if(Br(s)==="object"){var N=kr(Object.entries(s)[0],2),M=(N[0],N[1]);E=parseInt(M)}else E=parseInt(s);if(Br(m)==="object"){var D=kr(Object.entries(m)[0],2),z=(D[0],D[1]);C=parseInt(z)}else C=parseInt(m);E>=1&&(Ii=E),C>=1&&(ai=C)},autoWrap:Gn,setWrap:function(u){Qi=u},getC4ShapeArray:_a,getC4Shape:function(u){return Pn.find(function(s){return s.alias===u})},getC4ShapeKeys:function(u){return Object.keys(_a(u))},getBoundarys:function(u){return u==null?ki:ki.filter(function(s){return s.parentBoundary===u})},getCurrentBoundaryParse:function(){return $n},getParentBoundaryParse:function(){return mn},getRels:function(){return Wn},getTitle:function(){return ii},getC4Type:function(){return ma},getC4ShapeInRow:function(){return Ii},getC4BoundaryInRow:function(){return ai},setAccTitle:ee,getAccTitle:kn,getAccDescription:di,setAccDescription:si,parseDirective:function(u,s,m){wr.parseDirective(this,u,s,m)},getConfig:function(){return Ft().c4},clear:function(){Pn=[],ki=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],mn="",$n="global",Pi=[""],Wn=[],Pi=[""],ii="",Qi=!1,Ii=4,ai=2},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(u){var s=fn(u,Ft());ii=s},setC4Type:function(u){var s=fn(u,Ft());ma=s}};var ci=d(7967);function zi(u,s){(s==null||s>u.length)&&(s=u.length);for(var m=0,E=new Array(s);m<s;m++)E[m]=u[m];return E}var Io=function(u,s){var m=u.append("rect");if(m.attr("x",s.x),m.attr("y",s.y),m.attr("fill",s.fill),m.attr("stroke",s.stroke),m.attr("width",s.width),m.attr("height",s.height),m.attr("rx",s.rx),m.attr("ry",s.ry),s.attrs!=="undefined"&&s.attrs!==null)for(var E in s.attrs)m.attr(E,s.attrs[E]);return s.class!=="undefined"&&m.attr("class",s.class),m},Hi=function(){function u(C,N,M,D,z,j,X){E(N.append("text").attr("x",M+z/2).attr("y",D+j/2+5).style("text-anchor","middle").text(C),X)}function s(C,N,M,D,z,j,X,it){for(var ut=it.fontSize,lt=it.fontFamily,Ot=it.fontWeight,Lt=C.split(mr.lineBreakRegex),Yt=0;Yt<Lt.length;Yt++){var qt=Yt*ut-ut*(Lt.length-1)/2,Nt=N.append("text").attr("x",M+z/2).attr("y",D).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",ut).style("font-weight",Ot).style("font-family",lt);Nt.append("tspan").attr("dy",qt).text(Lt[Yt]).attr("alignment-baseline","mathematical"),E(Nt,X)}}function m(C,N,M,D,z,j,X,it){var ut=N.append("switch"),lt=ut.append("foreignObject").attr("x",M).attr("y",D).attr("width",z).attr("height",j).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");lt.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(C),s(C,ut,M,D,z,0,X,it),E(lt,X)}function E(C,N){for(var M in N)N.hasOwnProperty(M)&&C.attr(M,N[M])}return function(C){return C.textPlacement==="fo"?m:C.textPlacement==="old"?u:s}}();const Qt=function(u,s,m){var E=s.bgColor?s.bgColor:m[s.typeC4Shape.text+"_bg_color"],C=s.borderColor?s.borderColor:m[s.typeC4Shape.text+"_border_color"],N=s.fontColor?s.fontColor:"#FFFFFF",M="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(s.typeC4Shape.text){case"person":M="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":M="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var D=u.append("g");D.attr("class","person-man");var z={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};switch(s.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":z.x=s.x,z.y=s.y,z.fill=E,z.width=s.width,z.height=s.height,z.style="stroke:"+C+";stroke-width:0.5;",z.rx=2.5,z.ry=2.5,Io(D,z);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":D.append("path").attr("fill",E).attr("stroke-width","0.5").attr("stroke",C).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",s.x).replaceAll("starty",s.y).replaceAll("half",s.width/2).replaceAll("height",s.height)),D.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",C).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",s.x).replaceAll("starty",s.y).replaceAll("half",s.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":D.append("path").attr("fill",E).attr("stroke-width","0.5").attr("stroke",C).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",s.x).replaceAll("starty",s.y).replaceAll("width",s.width).replaceAll("half",s.height/2)),D.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",C).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",s.x+s.width).replaceAll("starty",s.y).replaceAll("half",s.height/2))}var j,X,it=(j=m,X=s.typeC4Shape.text,{fontFamily:j[X+"FontFamily"],fontSize:j[X+"FontSize"],fontWeight:j[X+"FontWeight"]});switch(D.append("text").attr("fill",N).attr("font-family",it.fontFamily).attr("font-size",it.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",s.typeC4Shape.width).attr("x",s.x+s.width/2-s.typeC4Shape.width/2).attr("y",s.y+s.typeC4Shape.Y).text("<<"+s.typeC4Shape.text+">>"),s.typeC4Shape.text){case"person":case"external_person":(function(lt,Ot,Lt,Yt,qt,Nt){var zt=lt.append("image");zt.attr("width",Ot),zt.attr("height",Lt),zt.attr("x",Yt),zt.attr("y",qt);var Dt=Nt.startsWith("data:image/png;base64")?Nt:(0,ci.N)(Nt);zt.attr("xlink:href",Dt)})(D,48,48,s.x+s.width/2-24,s.y+s.image.Y,M)}var ut=m[s.typeC4Shape.text+"Font"]();return ut.fontWeight="bold",ut.fontSize=ut.fontSize+2,ut.fontColor=N,Hi(m)(s.label.text,D,s.x,s.y+s.label.Y,s.width,s.height,{fill:N},ut),(ut=m[s.typeC4Shape.text+"Font"]()).fontColor=N,s.thchn&&s.thchn.text!==""?Hi(m)(s.thchn.text,D,s.x,s.y+s.thchn.Y,s.width,s.height,{fill:N,"font-style":"italic"},ut):s.type&&s.type.text!==""&&Hi(m)(s.type.text,D,s.x,s.y+s.type.Y,s.width,s.height,{fill:N,"font-style":"italic"},ut),s.descr&&s.descr.text!==""&&((ut=m.personFont()).fontColor=N,Hi(m)(s.descr.text,D,s.x,s.y+s.descr.Y,s.width,s.height,{fill:N},ut)),s.height},Er=function(u,s,m){var E,C=u.append("g"),N=0,M=function(Lt,Yt){var qt=typeof Symbol<"u"&&Lt[Symbol.iterator]||Lt["@@iterator"];if(!qt){if(Array.isArray(Lt)||(qt=function(ke,he){if(ke){if(typeof ke=="string")return zi(ke,he);var Jt=Object.prototype.toString.call(ke).slice(8,-1);return Jt==="Object"&&ke.constructor&&(Jt=ke.constructor.name),Jt==="Map"||Jt==="Set"?Array.from(ke):Jt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Jt)?zi(ke,he):void 0}}(Lt))||Yt&&Lt&&typeof Lt.length=="number"){qt&&(Lt=qt);var Nt=0,zt=function(){};return{s:zt,n:function(){return Nt>=Lt.length?{done:!0}:{done:!1,value:Lt[Nt++]}},e:function(ke){throw ke},f:zt}}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 Dt,te=!0,Re=!1;return{s:function(){qt=qt.call(Lt)},n:function(){var ke=qt.next();return te=ke.done,ke},e:function(ke){Re=!0,Dt=ke},f:function(){try{te||qt.return==null||qt.return()}finally{if(Re)throw Dt}}}}(s);try{for(M.s();!(E=M.n()).done;){var D=E.value,z=D.textColor?D.textColor:"#444444",j=D.lineColor?D.lineColor:"#444444",X=D.offsetX?parseInt(D.offsetX):0,it=D.offsetY?parseInt(D.offsetY):0;if(N===0){var ut=C.append("line");ut.attr("x1",D.startPoint.x),ut.attr("y1",D.startPoint.y),ut.attr("x2",D.endPoint.x),ut.attr("y2",D.endPoint.y),ut.attr("stroke-width","1"),ut.attr("stroke",j),ut.style("fill","none"),D.type!=="rel_b"&&ut.attr("marker-end","url(#arrowhead)"),D.type!=="birel"&&D.type!=="rel_b"||ut.attr("marker-start","url(#arrowend)"),N=-1}else{var lt=C.append("path");lt.attr("fill","none").attr("stroke-width","1").attr("stroke",j).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",D.startPoint.x).replaceAll("starty",D.startPoint.y).replaceAll("controlx",D.startPoint.x+(D.endPoint.x-D.startPoint.x)/2-(D.endPoint.x-D.startPoint.x)/4).replaceAll("controly",D.startPoint.y+(D.endPoint.y-D.startPoint.y)/2).replaceAll("stopx",D.endPoint.x).replaceAll("stopy",D.endPoint.y)),D.type!=="rel_b"&<.attr("marker-end","url(#arrowhead)"),D.type!=="birel"&&D.type!=="rel_b"||lt.attr("marker-start","url(#arrowend)")}var Ot=m.messageFont();Hi(m)(D.label.text,C,Math.min(D.startPoint.x,D.endPoint.x)+Math.abs(D.endPoint.x-D.startPoint.x)/2+X,Math.min(D.startPoint.y,D.endPoint.y)+Math.abs(D.endPoint.y-D.startPoint.y)/2+it,D.label.width,D.label.height,{fill:z},Ot),D.techn&&D.techn.text!==""&&(Ot=m.messageFont(),Hi(m)("["+D.techn.text+"]",C,Math.min(D.startPoint.x,D.endPoint.x)+Math.abs(D.endPoint.x-D.startPoint.x)/2+X,Math.min(D.startPoint.y,D.endPoint.y)+Math.abs(D.endPoint.y-D.startPoint.y)/2+m.messageFontSize+5+it,Math.max(D.label.width,D.techn.width),D.techn.height,{fill:z,"font-style":"italic"},Ot))}}catch(Lt){M.e(Lt)}finally{M.f()}};ci.N;var sr=d(2536),on=d.n(sr),Hn=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,gi=/\s*%%.*\n/gm,Qn={};const qi=function(u,s){if((u=u.replace(Hn,"").replace(gi,`
|
|
`)).match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/))return"c4";if(u.match(/^\s*sequenceDiagram/))return"sequence";if(u.match(/^\s*gantt/))return"gantt";if(u.match(/^\s*classDiagram-v2/))return"classDiagram";if(u.match(/^\s*classDiagram/))return s&&s.class&&s.class.defaultRenderer==="dagre-wrapper"?"classDiagram":"class";if(u.match(/^\s*stateDiagram-v2/))return"stateDiagram";if(u.match(/^\s*stateDiagram/))return s&&s.class&&s.state.defaultRenderer==="dagre-wrapper"?"stateDiagram":"state";if(u.match(/^\s*flowchart/))return"flowchart-v2";if(u.match(/^\s*info/))return"info";if(u.match(/^\s*pie/))return"pie";if(u.match(/^\s*erDiagram/))return"er";if(u.match(/^\s*journey/))return"journey";if(u.match(/^\s*requirement/)||u.match(/^\s*requirementDiagram/))return"requirement";if(s&&s.flowchart&&s.flowchart.defaultRenderer==="dagre-wrapper")return"flowchart-v2";for(var m=Object.keys(Qn),E=0;E<m.length;E++){var C=m[E],N=Qn[C];if(N&&N.detector(u))return C}return"flowchart"};var ta=void 0;function fi(u){return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},fi(u)}function Ja(u,s){for(var m=0;m<s.length;m++){var E=s[m];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(u,E.key,E)}}function os(u,s){var m=typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(!m){if(Array.isArray(u)||(m=el(u))||s&&u&&typeof u.length=="number"){m&&(u=m);var E=0,C=function(){};return{s:C,n:function(){return E>=u.length?{done:!0}:{done:!1,value:u[E++]}},e:function(z){throw z},f:C}}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 N,M=!0,D=!1;return{s:function(){m=m.call(u)},n:function(){var z=m.next();return M=z.done,z},e:function(z){D=!0,N=z},f:function(){try{M||m.return==null||m.return()}finally{if(D)throw N}}}}function gc(u){return function(s){if(Array.isArray(s))return La(s)}(u)||function(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}(u)||el(u)||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 el(u,s){if(u){if(typeof u=="string")return La(u,s);var m=Object.prototype.toString.call(u).slice(8,-1);return m==="Object"&&u.constructor&&(m=u.constructor.name),m==="Map"||m==="Set"?Array.from(u):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?La(u,s):void 0}}function La(u,s){(s==null||s>u.length)&&(s=u.length);for(var m=0,E=new Array(s);m<s;m++)E[m]=u[m];return E}var Is,cu={curveBasis:T.curveBasis,curveBasisClosed:T.curveBasisClosed,curveBasisOpen:T.curveBasisOpen,curveLinear:T.curveLinear,curveLinearClosed:T.curveLinearClosed,curveMonotoneX:T.curveMonotoneX,curveMonotoneY:T.curveMonotoneY,curveNatural:T.curveNatural,curveStep:T.curveStep,curveStepAfter:T.curveStepAfter,curveStepBefore:T.curveStepBefore},yc=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,hr=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,mc=function(u){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var m=new RegExp("[%]{2}(?![{]".concat(hr.source,`)(?=[}][%]{2}).*
|
|
`),"ig");u=u.trim().replace(m,"").replace(/'/gm,'"'),b.debug("Detecting diagram directive".concat(s!==null?" type:"+s:""," based on the text:").concat(u));for(var E,C=[];(E=yc.exec(u))!==null;)if(E.index===yc.lastIndex&&yc.lastIndex++,E&&!s||s&&E[1]&&E[1].match(s)||s&&E[2]&&E[2].match(s)){var N=E[1]?E[1]:E[2],M=E[3]?E[3].trim():E[4]?JSON.parse(E[4].trim()):null;C.push({type:N,args:M})}return C.length===0&&C.push({type:u,args:null}),C.length===1?C[0]:C}catch(D){return b.error("ERROR: ".concat(D.message,` - Unable to parse directive
|
|
`).concat(s!==null?" type:"+s:""," based on the text:").concat(u)),{type:null,args:null}}},En=function(u,s){var m={};return function(){for(var E=arguments.length,C=new Array(E),N=0;N<E;N++)C[N]=arguments[N];var M=s?s.apply(ta,C):C[0];if(M in m)return m[M];var D=u.apply(void 0,C);return m[M]=D,D}},ea=function(u,s){if(!u)return s;var m="curve".concat(u.charAt(0).toUpperCase()+u.slice(1));return cu[m]||s},ho=function(u,s){return u&&s?Math.sqrt(Math.pow(s.x-u.x,2)+Math.pow(s.y-u.y,2)):0},Ma=function(u){for(var s="",m="",E=0;E<u.length;E++)u[E]!==void 0&&(u[E].startsWith("color:")||u[E].startsWith("text-align:")?m=m+u[E]+";":s=s+u[E]+";");return{style:s,labelStyle:m}},Oa=0,No=function(){return Oa++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Oa},_c=function(u){return function(s){for(var m="",E="0123456789abcdef",C=E.length,N=0;N<s;N++)m+=E.charAt(Math.floor(Math.random()*C));return m}(u.length)},rl=function(u,s){var m=s.text.replace(mr.lineBreakRegex," "),E=u.append("text");E.attr("x",s.x),E.attr("y",s.y),E.style("text-anchor",s.anchor),E.style("font-family",s.fontFamily),E.style("font-size",s.fontSize),E.style("font-weight",s.fontWeight),E.attr("fill",s.fill),s.class!==void 0&&E.attr("class",s.class);var C=E.append("tspan");return C.attr("x",s.x+2*s.textMargin),C.attr("fill",s.fill),C.text(m),E},Ns=En(function(u,s,m){if(!u||(m=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},m),mr.lineBreakRegex.test(u)))return u;var E=u.split(" "),C=[],N="";return E.forEach(function(M,D){var z=Da("".concat(M," "),m),j=Da(N,m);if(z>s){var X=$a(M,s,"-",m),it=X.hyphenatedStrings,ut=X.remainingWord;C.push.apply(C,[N].concat(gc(it))),N=ut}else j+z>=s?(C.push(N),N=M):N=[N,M].filter(Boolean).join(" ");D+1===E.length&&C.push(N)}),C.filter(function(M){return M!==""}).join(m.joinWith)},function(u,s,m){return"".concat(u,"-").concat(s,"-").concat(m.fontSize,"-").concat(m.fontWeight,"-").concat(m.fontFamily,"-").concat(m.joinWith)}),$a=En(function(u,s){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",E=arguments.length>3?arguments[3]:void 0;E=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},E);var C=u.split(""),N=[],M="";return C.forEach(function(D,z){var j="".concat(M).concat(D);if(Da(j,E)>=s){var X=z+1,it=C.length===X,ut="".concat(j).concat(m);N.push(it?j:ut),M=""}else M=j}),{hyphenatedStrings:N,remainingWord:M}},function(u,s){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",E=arguments.length>3?arguments[3]:void 0;return"".concat(u,"-").concat(s,"-").concat(m,"-").concat(E.fontSize,"-").concat(E.fontWeight,"-").concat(E.fontFamily)}),bc=function(u,s){return s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},s),vc(u,s).height},Da=function(u,s){return s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},s),vc(u,s).width},vc=En(function(u,s){var m=s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},s),E=m.fontSize,C=m.fontFamily,N=m.fontWeight;if(!u)return{width:0,height:0};var M=["sans-serif",C],D=u.split(mr.lineBreakRegex),z=[],j=(0,T.select)("body");if(!j.remove)return{width:0,height:0,lineHeight:0};for(var X=j.append("svg"),it=0,ut=M;it<ut.length;it++){var lt,Ot=ut[it],Lt=0,Yt={width:0,height:0,lineHeight:0},qt=os(D);try{for(qt.s();!(lt=qt.n()).done;){var Nt=lt.value,zt={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};zt.text=Nt;var Dt=rl(X,zt).style("font-size",E).style("font-weight",N).style("font-family",Ot),te=(Dt._groups||Dt)[0][0].getBBox();Yt.width=Math.round(Math.max(Yt.width,te.width)),Lt=Math.round(te.height),Yt.height+=Lt,Yt.lineHeight=Math.round(Math.max(Yt.lineHeight,Lt))}}catch(Re){qt.e(Re)}finally{qt.f()}z.push(Yt)}return X.remove(),z[isNaN(z[1].height)||isNaN(z[1].width)||isNaN(z[1].lineHeight)||z[0].height>z[1].height&&z[0].width>z[1].width&&z[0].lineHeight>z[1].lineHeight?0:1]},function(u,s){return"".concat(u,"-").concat(s.fontSize,"-").concat(s.fontWeight,"-").concat(s.fontFamily)}),xc=function(u,s,m){var E=new Map;return E.set("height",u),m?(E.set("width","100%"),E.set("style","max-width: ".concat(s,"px;"))):E.set("width",s),E},ra=function(u,s,m,E){(function(C,N){var M,D=os(N);try{for(D.s();!(M=D.n()).done;){var z=M.value;C.attr(z[0],z[1])}}catch(j){D.e(j)}finally{D.f()}})(u,xc(s,m,E))},Ls=function(u,s,m,E){var C=s.node().getBBox(),N=C.width,M=C.height,D=u._label.width,z=u._label.height,j=0,X=0;N>D?(j=(N-D)/2+m,D=N+2*m):Math.abs(N-D)>=2*m+1&&(D-=m),M>z&&(X=(M-z)/2+m,z=M+2*m),ra(s,z,D,E);var it="0 0 ".concat(D," ").concat(z);b.debug("Graph.label",u._label,"swidth",N,"sheight",M,"width",D,"height",z,"tx",j,"ty",X,"vBox",it),s.attr("viewBox",it),s.select("g").attr("transform","translate(".concat(j,", ").concat(X,")"))},Lo=function u(s){if(b.debug("directiveSanitizer called with",s),fi(s)==="object"&&(s.length?s.forEach(function(M){return u(M)}):Object.keys(s).forEach(function(M){b.debug("Checking key",M),M.indexOf("__")===0&&(b.debug("sanitize deleting __ option",M),delete s[M]),M.indexOf("proto")>=0&&(b.debug("sanitize deleting proto option",M),delete s[M]),M.indexOf("constr")>=0&&(b.debug("sanitize deleting constr option",M),delete s[M]),M.indexOf("themeCSS")>=0&&(b.debug("sanitizing themeCss option"),s[M]=yi(s[M])),M.indexOf("fontFamily")>=0&&(b.debug("sanitizing fontFamily option"),s[M]=yi(s[M])),M.indexOf("altFontFamily")>=0&&(b.debug("sanitizing altFontFamily option"),s[M]=yi(s[M])),ya.indexOf(M)<0?(b.debug("sanitize deleting option",M),delete s[M]):fi(s[M])==="object"&&(b.debug("sanitize deleting object",M),u(s[M]))})),s.themeVariables)for(var m=Object.keys(s.themeVariables),E=0;E<m.length;E++){var C=m[E],N=s.themeVariables[C];N&&N.match&&!N.match(/^[a-zA-Z0-9#,";()%. ]+$/)&&(s.themeVariables[C]="")}b.debug("After sanitization",s)},yi=function(u){for(var s=0,m=0,E=0;E<u.length;E++){if(s<m)return"{ /* ERROR: Unbalanced CSS */ }";u[E]==="{"?s++:u[E]==="}"&&m++}return s!==m?"{ /* ERROR: Unbalanced CSS */ }":u};const rn={assignWithDepth:Te,wrapLabel:Ns,calculateTextHeight:bc,calculateTextWidth:Da,calculateTextDimensions:vc,calculateSvgSizeAttrs:xc,configureSvgSize:ra,setupGraphViewbox:Ls,detectInit:function(u,s){var m=mc(u,/(?:init\b)|(?:initialize\b)/),E={};if(Array.isArray(m)){var C=m.map(function(M){return M.args});Lo(C),E=Te(E,gc(C))}else E=m.args;if(E){var N=qi(u,s);["config"].forEach(function(M){E[M]!==void 0&&(N==="flowchart-v2"&&(N="flowchart"),E[N]=E[M],delete E[M])})}return E},detectDirective:mc,isSubstringInArray:function(u,s){for(var m=0;m<s.length;m++)if(s[m].match(u))return m;return-1},interpolateToCurve:ea,calcLabelPosition:function(u){return u.length===1?u[0]:function(s){var m,E=0;s.forEach(function(M){E+=ho(M,m),m=M});var C=E/2,N=void 0;return m=void 0,s.forEach(function(M){if(m&&!N){var D=ho(M,m);if(D<C)C-=D;else{var z=C/D;z<=0&&(N=m),z>=1&&(N={x:M.x,y:M.y}),z>0&&z<1&&(N={x:(1-z)*m.x+z*M.x,y:(1-z)*m.y+z*M.y})}}m=M}),N}(u)},calcCardinalityPosition:function(u,s,m){var E;b.info("our points",s),s[0]!==m&&(s=s.reverse()),s.forEach(function(j){ho(j,E),E=j});var C,N=25;E=void 0,s.forEach(function(j){if(E&&!C){var X=ho(j,E);if(X<N)N-=X;else{var it=N/X;it<=0&&(C=E),it>=1&&(C={x:j.x,y:j.y}),it>0&&it<1&&(C={x:(1-it)*E.x+it*j.x,y:(1-it)*E.y+it*j.y})}}E=j});var M=u?10:5,D=Math.atan2(s[0].y-C.y,s[0].x-C.x),z={x:0,y:0};return z.x=Math.sin(D)*M+(s[0].x+C.x)/2,z.y=-Math.cos(D)*M+(s[0].y+C.y)/2,z},calcTerminalLabelPosition:function(u,s,m){var E,C=JSON.parse(JSON.stringify(m));b.info("our points",C),s!=="start_left"&&s!=="start_right"&&(C=C.reverse()),C.forEach(function(X){ho(X,E),E=X});var N,M=25+u;E=void 0,C.forEach(function(X){if(E&&!N){var it=ho(X,E);if(it<M)M-=it;else{var ut=M/it;ut<=0&&(N=E),ut>=1&&(N={x:X.x,y:X.y}),ut>0&&ut<1&&(N={x:(1-ut)*E.x+ut*X.x,y:(1-ut)*E.y+ut*X.y})}}E=X});var D=10+.5*u,z=Math.atan2(C[0].y-N.y,C[0].x-N.x),j={x:0,y:0};return j.x=Math.sin(z)*D+(C[0].x+N.x)/2,j.y=-Math.cos(z)*D+(C[0].y+N.y)/2,s==="start_left"&&(j.x=Math.sin(z+Math.PI)*D+(C[0].x+N.x)/2,j.y=-Math.cos(z+Math.PI)*D+(C[0].y+N.y)/2),s==="end_right"&&(j.x=Math.sin(z-Math.PI)*D+(C[0].x+N.x)/2-5,j.y=-Math.cos(z-Math.PI)*D+(C[0].y+N.y)/2-5),s==="end_left"&&(j.x=Math.sin(z)*D+(C[0].x+N.x)/2-5,j.y=-Math.cos(z)*D+(C[0].y+N.y)/2-5),j},formatUrl:function(u,s){var m=u.trim();if(m)return s.securityLevel!=="loose"?(0,ci.N)(m):m},getStylesFromArray:Ma,generateId:No,random:_c,memoize:En,runFunc:function(u){for(var s,m=u.split("."),E=m.length-1,C=m[E],N=window,M=0;M<E;M++)if(!(N=N[m[M]]))return;for(var D=arguments.length,z=new Array(D>1?D-1:0),j=1;j<D;j++)z[j-1]=arguments[j];(s=N)[C].apply(s,z)},entityDecode:function(u){return Is=Is||document.createElement("div"),u=escape(u).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Is.innerHTML=u,unescape(Is.textContent)},initIdGenerator:function(){function u(E,C){(function(N,M){if(!(N instanceof M))throw new TypeError("Cannot call a class as a function")})(this,u),this.deterministic=E,this.seed=C,this.count=C?C.length:0}var s,m;return s=u,(m=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&Ja(s.prototype,m),Object.defineProperty(s,"prototype",{writable:!1}),u}(),directiveSanitizer:Lo,sanitizeCss:yi};function zn(u,s,m){if(s.insert!==void 0){var E=u.getAccTitle(),C=u.getAccDescription();s.attr("role","img").attr("aria-labelledby","chart-title-"+m+" chart-desc-"+m),s.insert("desc",":first-child").attr("id","chart-desc-"+m).text(C),s.insert("title",":first-child").attr("id","chart-title-"+m).text(E)}}function Ei(u,s){(s==null||s>u.length)&&(s=u.length);for(var m=0,E=new Array(s);m<s;m++)E[m]=u[m];return E}function nl(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function Mo(u,s){for(var m=0;m<s.length;m++){var E=s[m];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(u,E.key,E)}}function Ms(u,s,m){return s&&Mo(u.prototype,s),m&&Mo(u,m),Object.defineProperty(u,"prototype",{writable:!1}),u}var Ha=0,fo=0,ss=4,Ui=2;sr.parser.yy=Jn;var xr={},ba=function(){function u(s){nl(this,u),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,Wi(s.db.getConfig())}return Ms(u,[{key:"setData",value:function(s,m,E,C){this.nextData.startx=this.data.startx=s,this.nextData.stopx=this.data.stopx=m,this.nextData.starty=this.data.starty=E,this.nextData.stopy=this.data.stopy=C}},{key:"updateVal",value:function(s,m,E,C){s[m]===void 0?s[m]=E:s[m]=C(E,s[m])}},{key:"insert",value:function(s){this.nextData.cnt=this.nextData.cnt+1;var m=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+s.margin:this.nextData.stopx+2*s.margin,E=m+s.width,C=this.nextData.starty+2*s.margin,N=C+s.height;(m>=this.data.widthLimit||E>=this.data.widthLimit||this.nextData.cnt>ss)&&(m=this.nextData.startx+s.margin+xr.nextLinePaddingX,C=this.nextData.stopy+2*s.margin,this.nextData.stopx=E=m+s.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=N=C+s.height,this.nextData.cnt=1),s.x=m,s.y=C,this.updateVal(this.data,"startx",m,Math.min),this.updateVal(this.data,"starty",C,Math.min),this.updateVal(this.data,"stopx",E,Math.max),this.updateVal(this.data,"stopy",N,Math.max),this.updateVal(this.nextData,"startx",m,Math.min),this.updateVal(this.nextData,"starty",C,Math.min),this.updateVal(this.nextData,"stopx",E,Math.max),this.updateVal(this.nextData,"stopy",N,Math.max)}},{key:"init",value:function(s){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},Wi(s.db.getConfig())}},{key:"bumpLastMargin",value:function(s){this.data.stopx+=s,this.data.stopy+=s}}]),u}(),Wi=function(u){Te(xr,u),u.fontFamily&&(xr.personFontFamily=xr.systemFontFamily=xr.messageFontFamily=u.fontFamily),u.fontSize&&(xr.personFontSize=xr.systemFontSize=xr.messageFontSize=u.fontSize),u.fontWeight&&(xr.personFontWeight=xr.systemFontWeight=xr.messageFontWeight=u.fontWeight)},na=function(u,s){return{fontFamily:u[s+"FontFamily"],fontSize:u[s+"FontSize"],fontWeight:u[s+"FontWeight"]}},tn=function(u){return{fontFamily:u.boundaryFontFamily,fontSize:u.boundaryFontSize,fontWeight:u.boundaryFontWeight}};function L(u,s,m,E,C){if(!s[u].width)if(m)s[u].text=Ns(s[u].text,C,E),s[u].textLines=s[u].text.split(mr.lineBreakRegex).length,s[u].width=C,s[u].height=bc(s[u].text,E);else{var N=s[u].text.split(mr.lineBreakRegex);s[u].textLines=N.length;var M=0;s[u].height=0,s[u].width=0;for(var D=0;D<N.length;D++)s[u].width=Math.max(Da(N[D],E),s[u].width),M=bc(N[D],E),s[u].height=s[u].height+M}}var Y=function(u,s,m){s.x=m.data.startx,s.y=m.data.starty,s.width=m.data.stopx-m.data.startx,s.height=m.data.stopy-m.data.starty,s.label.y=xr.c4ShapeMargin-35;var E=s.wrap&&xr.wrap,C=tn(xr);C.fontSize=C.fontSize+2,C.fontWeight="bold",L("label",s,E,C,Da(s.label.text,C)),function(N,M,D){var z=N.append("g"),j=M.bgColor?M.bgColor:"none",X=M.borderColor?M.borderColor:"#444444",it=M.fontColor?M.fontColor:"black",ut={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};M.nodeType&&(ut={"stroke-width":1});var lt={x:M.x,y:M.y,fill:j,stroke:X,width:M.width,height:M.height,rx:2.5,ry:2.5,attrs:ut};Io(z,lt);var Ot=D.boundaryFont();Ot.fontWeight="bold",Ot.fontSize=Ot.fontSize+2,Ot.fontColor=it,Hi(D)(M.label.text,z,M.x,M.y+M.label.Y,M.width,M.height,{fill:"#444444"},Ot),M.type&&M.type.text!==""&&((Ot=D.boundaryFont()).fontColor=it,Hi(D)(M.type.text,z,M.x,M.y+M.type.Y,M.width,M.height,{fill:"#444444"},Ot)),M.descr&&M.descr.text!==""&&((Ot=D.boundaryFont()).fontSize=Ot.fontSize-2,Ot.fontColor=it,Hi(D)(M.descr.text,z,M.x,M.y+M.descr.Y,M.width,M.height,{fill:"#444444"},Ot))}(u,s,xr)},et=function(u,s,m,E){for(var C=0,N=0;N<E.length;N++){C=0;var M=m[E[N]],D=na(xr,M.typeC4Shape.text);switch(D.fontSize=D.fontSize-2,M.typeC4Shape.width=Da("<<"+M.typeC4Shape.text+">>",D),M.typeC4Shape.height=D.fontSize+2,M.typeC4Shape.Y=xr.c4ShapePadding,C=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=C,C=M.image.Y+M.image.height}M.sprite&&(M.image.width=48,M.image.height=48,M.image.Y=C,C=M.image.Y+M.image.height);var z=M.wrap&&xr.wrap,j=xr.width-2*xr.c4ShapePadding,X=na(xr,M.typeC4Shape.text);X.fontSize=X.fontSize+2,X.fontWeight="bold",L("label",M,z,X,j),M.label.Y=C+8,C=M.label.Y+M.label.height,M.type&&M.type.text!==""?(M.type.text="["+M.type.text+"]",L("type",M,z,na(xr,M.typeC4Shape.text),j),M.type.Y=C+5,C=M.type.Y+M.type.height):M.techn&&M.techn.text!==""&&(M.techn.text="["+M.techn.text+"]",L("techn",M,z,na(xr,M.techn.text),j),M.techn.Y=C+5,C=M.techn.Y+M.techn.height);var it=C,ut=M.label.width;M.descr&&M.descr.text!==""&&(L("descr",M,z,na(xr,M.typeC4Shape.text),j),M.descr.Y=C+20,C=M.descr.Y+M.descr.height,ut=Math.max(M.label.width,M.descr.width),it=C-5*M.descr.textLines),ut+=xr.c4ShapePadding,M.width=Math.max(M.width||xr.width,ut,xr.width),M.height=Math.max(M.height||xr.height,it,xr.height),M.margin=M.margin||xr.c4ShapeMargin,u.insert(M),Qt(s,M,xr)}u.bumpLastMargin(xr.c4ShapeMargin)},mt=Ms(function u(s,m){nl(this,u),this.x=s,this.y=m}),ie=function(u,s){var m=u.x,E=u.y,C=s.x,N=s.y,M=m+u.width/2,D=E+u.height/2,z=Math.abs(m-C),j=Math.abs(E-N),X=j/z,it=u.height/u.width,ut=null;return E==N&&m<C?ut=new mt(m+u.width,D):E==N&&m>C?ut=new mt(m,D):m==C&&E<N?ut=new mt(M,E+u.height):m==C&&E>N&&(ut=new mt(M,E)),m>C&&E<N?ut=it>=X?new mt(m,D+X*u.width/2):new mt(M-z/j*u.height/2,E+u.height):m<C&&E<N?ut=it>=X?new mt(m+u.width,D+X*u.width/2):new mt(M+z/j*u.height/2,E+u.height):m<C&&E>N?ut=it>=X?new mt(m+u.width,D-X*u.width/2):new mt(M+u.height/2*z/j,E):m>C&&E>N&&(ut=it>=X?new mt(m,D-u.width/2*X):new mt(M-u.height/2*z/j,E)),ut},Ie=function(u,s){var m={x:0,y:0};m.x=s.x+s.width/2,m.y=s.y+s.height/2;var E=ie(u,m);return m.x=u.x+u.width/2,m.y=u.y+u.height/2,{startPoint:E,endPoint:ie(s,m)}};function $e(u,s,m,E,C){var N=new ba(C);N.data.widthLimit=m.data.widthLimit/Math.min(Ui,E.length);for(var M=0;M<E.length;M++){var D=E[M],z=0;D.image={width:0,height:0,Y:0},D.sprite&&(D.image.width=48,D.image.height=48,D.image.Y=z,z=D.image.Y+D.image.height);var j=D.wrap&&xr.wrap,X=tn(xr);if(X.fontSize=X.fontSize+2,X.fontWeight="bold",L("label",D,j,X,N.data.widthLimit),D.label.Y=z+8,z=D.label.Y+D.label.height,D.type&&D.type.text!==""&&(D.type.text="["+D.type.text+"]",L("type",D,j,tn(xr),N.data.widthLimit),D.type.Y=z+5,z=D.type.Y+D.type.height),D.descr&&D.descr.text!==""){var it=tn(xr);it.fontSize=it.fontSize-2,L("descr",D,j,it,N.data.widthLimit),D.descr.Y=z+20,z=D.descr.Y+D.descr.height}if(M==0||M%Ui==0){var ut=m.data.startx+xr.diagramMarginX,lt=m.data.stopy+xr.diagramMarginY+z;N.setData(ut,ut,lt,lt)}else{var Ot=N.data.stopx!==N.data.startx?N.data.stopx+xr.diagramMarginX:N.data.startx,Lt=N.data.starty;N.setData(Ot,Ot,Lt,Lt)}N.name=D.alias;var Yt=C.db.getC4ShapeArray(D.alias),qt=C.db.getC4ShapeKeys(D.alias);qt.length>0&&et(N,u,Yt,qt),s=D.alias;var Nt=C.db.getBoundarys(s);Nt.length>0&&$e(u,s,N,Nt,C),D.alias!=="global"&&Y(u,D,N),m.data.stopy=Math.max(N.data.stopy+xr.c4ShapeMargin,m.data.stopy),m.data.stopx=Math.max(N.data.stopx+xr.c4ShapeMargin,m.data.stopx),Ha=Math.max(Ha,m.data.stopx),fo=Math.max(fo,m.data.stopy)}}const er={drawPersonOrSystemArray:et,drawBoundary:Y,setConf:Wi,draw:function(u,s,m,E){xr=Ft().c4;var C,N=Ft().securityLevel;N==="sandbox"&&(C=(0,T.select)("#i"+s));var M=N==="sandbox"?(0,T.select)(C.nodes()[0].contentDocument.body):(0,T.select)("body"),D=E.db;E.db.setWrap(xr.wrap),ss=D.getC4ShapeInRow(),Ui=D.getC4BoundaryInRow(),b.debug("C:".concat(JSON.stringify(xr,null,2)));var z=N==="sandbox"?M.select('[id="'.concat(s,'"]')):(0,T.select)('[id="'.concat(s,'"]'));z.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(Lt){Lt.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")}(z),function(Lt){Lt.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")}(z);var j=new ba(E);j.setData(xr.diagramMarginX,xr.diagramMarginX,xr.diagramMarginY,xr.diagramMarginY),j.data.widthLimit=screen.availWidth,Ha=xr.diagramMarginX,fo=xr.diagramMarginY;var X=E.db.getTitle();E.db.getC4Type(),$e(z,"",j,E.db.getBoundarys(""),E),function(Lt){Lt.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")}(z),function(Lt){Lt.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")}(z),function(Lt){var Yt=Lt.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);Yt.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"),Yt.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")}(z),function(Lt){Lt.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")}(z),function(Lt,Yt,qt,Nt){var zt,Dt,te=0,Re=function(fe,Me){var Fe=typeof Symbol<"u"&&fe[Symbol.iterator]||fe["@@iterator"];if(!Fe){if(Array.isArray(fe)||(Fe=function(Ge,Ve){if(Ge){if(typeof Ge=="string")return Ei(Ge,Ve);var br=Object.prototype.toString.call(Ge).slice(8,-1);return br==="Object"&&Ge.constructor&&(br=Ge.constructor.name),br==="Map"||br==="Set"?Array.from(Ge):br==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(br)?Ei(Ge,Ve):void 0}}(fe))||Me&&fe&&typeof fe.length=="number"){Fe&&(fe=Fe);var Ye=0,gr=function(){};return{s:gr,n:function(){return Ye>=fe.length?{done:!0}:{done:!1,value:fe[Ye++]}},e:function(Ge){throw Ge},f:gr}}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 je,lr=!0,dr=!1;return{s:function(){Fe=Fe.call(fe)},n:function(){var Ge=Fe.next();return lr=Ge.done,Ge},e:function(Ge){dr=!0,je=Ge},f:function(){try{lr||Fe.return==null||Fe.return()}finally{if(dr)throw je}}}}(Yt);try{for(Re.s();!(zt=Re.n()).done;){var ke=zt.value;te+=1;var he=ke.wrap&&xr.wrap,Jt={fontFamily:(Dt=xr).messageFontFamily,fontSize:Dt.messageFontSize,fontWeight:Dt.messageFontWeight};Nt.db.getC4Type()==="C4Dynamic"&&(ke.label.text=te+": "+ke.label.text);var ue=Da(ke.label.text,Jt);L("label",ke,he,Jt,ue),ke.techn&&ke.techn.text!==""&&L("techn",ke,he,Jt,ue=Da(ke.techn.text,Jt)),ke.descr&&ke.descr.text!==""&&L("descr",ke,he,Jt,ue=Da(ke.descr.text,Jt));var jt=qt(ke.from),ce=qt(ke.to),ae=Ie(jt,ce);ke.startPoint=ae.startPoint,ke.endPoint=ae.endPoint}}catch(fe){Re.e(fe)}finally{Re.f()}Er(Lt,Yt,xr)}(z,E.db.getRels(),E.db.getC4Shape,E),j.data.stopx=Ha,j.data.stopy=fo;var it=j.data,ut=it.stopy-it.starty+2*xr.diagramMarginY,lt=it.stopx-it.startx+2*xr.diagramMarginX;X&&z.append("text").text(X).attr("x",(it.stopx-it.startx)/2-4*xr.diagramMarginX).attr("y",it.starty+xr.diagramMarginY),ra(z,ut,lt,xr.useMaxWidth);var Ot=X?60:0;z.attr("viewBox",it.startx-xr.diagramMarginX+" -"+(xr.diagramMarginY+Ot)+" "+lt+" "+(ut+Ot)),zn(sr.parser.yy,z,s),b.debug("models:",it)}};function rr(u,s){(s==null||s>u.length)&&(s=u.length);for(var m=0,E=new Array(s);m<s;m++)E[m]=u[m];return E}var pr="classid-",_r=[],Sr={},Ir=0,_n=[],sn=function(u){return mr.sanitizeText(u,Ft())},Vn=function(u){var s="",m=u;if(u.indexOf("~")>0){var E=u.split("~");m=E[0],s=mr.sanitizeText(E[1],Ft())}return{className:m,type:s}},mi=function(u){var s=Vn(u);Sr[s.className]===void 0&&(Sr[s.className]={id:s.className,type:s.type,cssClasses:[],methods:[],members:[],annotations:[],domId:pr+s.className+"-"+Ir},Ir++)},Zn=function(u){for(var s=Object.keys(Sr),m=0;m<s.length;m++)if(Sr[s[m]].id===u)return Sr[s[m]].domId},Os=function(u,s){var m=Vn(u).className,E=Sr[m];if(typeof s=="string"){var C=s.trim();C.startsWith("<<")&&C.endsWith(">>")?E.annotations.push(sn(C.substring(2,C.length-2))):C.indexOf(")")>0?E.methods.push(sn(C)):C&&E.members.push(sn(C))}},il=function(u,s){u.split(",").forEach(function(m){var E=m;m[0].match(/\d/)&&(E=pr+E),Sr[E]!==void 0&&Sr[E].cssClasses.push(s)})},lu=function(u,s,m){var E=Ft(),C=u,N=Zn(C);if(E.securityLevel==="loose"&&s!==void 0&&Sr[C]!==void 0){var M=[];if(typeof m=="string"){M=m.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var D=0;D<M.length;D++){var z=M[D].trim();z.charAt(0)==='"'&&z.charAt(z.length-1)==='"'&&(z=z.substr(1,z.length-2)),M[D]=z}}M.length===0&&M.push(N),_n.push(function(){var j=document.querySelector('[id="'.concat(N,'"]'));j!==null&&j.addEventListener("click",function(){var X;rn.runFunc.apply(rn,[s].concat(function(it){if(Array.isArray(it))return rr(it)}(X=M)||function(it){if(typeof Symbol<"u"&&it[Symbol.iterator]!=null||it["@@iterator"]!=null)return Array.from(it)}(X)||function(it,ut){if(it){if(typeof it=="string")return rr(it,ut);var lt=Object.prototype.toString.call(it).slice(8,-1);return lt==="Object"&&it.constructor&&(lt=it.constructor.name),lt==="Map"||lt==="Set"?Array.from(it):lt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(lt)?rr(it,ut):void 0}}(X)||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)})}},uu=function(u){var s=(0,T.select)(".mermaidTooltip");(s._groups||s)[0][0]===null&&(s=(0,T.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,T.select)(u).select("svg").selectAll("g.node").on("mouseover",function(){var m=(0,T.select)(this);if(m.attr("title")!==null){var E=this.getBoundingClientRect();s.transition().duration(200).style("opacity",".9"),s.text(m.attr("title")).style("left",window.scrollX+E.left+(E.right-E.left)/2+"px").style("top",window.scrollY+E.top-14+document.body.scrollTop+"px"),s.html(s.html().replace(/<br\/>/g,"<br/>")),m.classed("hover",!0)}}).on("mouseout",function(){s.transition().duration(500).style("opacity",0),(0,T.select)(this).classed("hover",!1)})};_n.push(uu);var hu="TB";const Oo={parseDirective:function(u,s,m){wr.parseDirective(this,u,s,m)},setAccTitle:ee,getAccTitle:kn,getAccDescription:di,setAccDescription:si,getConfig:function(){return Ft().class},addClass:mi,bindFunctions:function(u){_n.forEach(function(s){s(u)})},clear:function(){_r=[],Sr={},(_n=[]).push(uu),Yn()},getClass:function(u){return Sr[u]},getClasses:function(){return Sr},addAnnotation:function(u,s){var m=Vn(u).className;Sr[m].annotations.push(s)},getRelations:function(){return _r},addRelation:function(u){b.debug("Adding relation: "+JSON.stringify(u)),mi(u.id1),mi(u.id2),u.id1=Vn(u.id1).className,u.id2=Vn(u.id2).className,u.relationTitle1=mr.sanitizeText(u.relationTitle1.trim(),Ft()),u.relationTitle2=mr.sanitizeText(u.relationTitle2.trim(),Ft()),_r.push(u)},getDirection:function(){return hu},setDirection:function(u){hu=u},addMember:Os,addMembers:function(u,s){Array.isArray(s)&&(s.reverse(),s.forEach(function(m){return Os(u,m)}))},cleanupLabel:function(u){return u.substring(0,1)===":"?mr.sanitizeText(u.substr(1).trim(),Ft()):sn(u.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},setClickEvent:function(u,s,m){u.split(",").forEach(function(E){lu(E,s,m),Sr[E].haveCallback=!0}),il(u,"clickable")},setCssClass:il,setLink:function(u,s,m){var E=Ft();u.split(",").forEach(function(C){var N=C;C[0].match(/\d/)&&(N=pr+N),Sr[N]!==void 0&&(Sr[N].link=rn.formatUrl(s,E),E.securityLevel==="sandbox"?Sr[N].linkTarget="_top":Sr[N].linkTarget=typeof m=="string"?sn(m):"_blank")}),il(u,"clickable")},getTooltip:function(u){return Sr[u].tooltip},setTooltip:function(u,s){var m=Ft();u.split(",").forEach(function(E){s!==void 0&&(Sr[E].tooltip=mr.sanitizeText(s,m))})},lookUpDomId:Zn};var Qa=d(681),cs=d.n(Qa),Vh=d(8282),_i=d.n(Vh),du=0,Ds=function(u){var s=u.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),m=u.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return s&&!m?Zh(s):m?al(m):Ni(u)},Zh=function(u){var s="",m="";try{var E=u[1]?u[1].trim():"",C=u[2]?u[2].trim():"",N=u[3]?ls(u[3].trim()):"",M=u[4]?u[4].trim():"",D=u[5]?u[5].trim():"";m=E+C+N+" "+M,s=ol(D)}catch{m=u}return{displayText:m,cssStyle:s}},al=function(u){var s="",m="";try{var E=u[1]?u[1].trim():"",C=u[2]?u[2].trim():"",N=u[3]?ls(u[3].trim()):"",M=u[4]?u[4].trim():"";m=E+C+"("+N+")"+(u[5]?" : "+ls(u[5]).trim():""),s=ol(M)}catch{m=u}return{displayText:m,cssStyle:s}},Ni=function(u){var s="",m="",E="",C=u.indexOf("("),N=u.indexOf(")");if(C>1&&N>C&&N<=u.length){var M="",D="",z=u.substring(0,1);z.match(/\w/)?D=u.substring(0,C).trim():(z.match(/\+|-|~|#/)&&(M=z),D=u.substring(1,C).trim());var j=u.substring(C+1,N),X=u.substring(N+1,1);m=ol(X),s=M+D+"("+ls(j.trim())+")",N<0&&(E=u.substring(N+2).trim())!==""&&(E=" : "+ls(E))}else s=ls(u);return{displayText:s,cssStyle:m}},Rs=function(u,s,m,E){var C=Ds(s),N=u.append("tspan").attr("x",E.padding).text(C.displayText);C.cssStyle!==""&&N.attr("style",C.cssStyle),m||N.attr("dy",E.textHeight)},ls=function u(s){var m=s;return s.indexOf("~")!=-1?u(m=(m=m.replace("~","<")).replace("~",">")):m},ol=function(u){switch(u){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const td=function(u,s,m,E){b.debug("Rendering class ",s,m);var C,N=s.id,M={id:N,label:s.id,width:0,height:0},D=u.append("g").attr("id",E.db.lookUpDomId(N)).attr("class","classGroup");C=s.link?D.append("svg:a").attr("xlink:href",s.link).attr("target",s.linkTarget).append("text").attr("y",m.textHeight+m.padding).attr("x",0):D.append("text").attr("y",m.textHeight+m.padding).attr("x",0);var z=!0;s.annotations.forEach(function(Dt){var te=C.append("tspan").text("\xAB"+Dt+"\xBB");z||te.attr("dy",m.textHeight),z=!1});var j=s.id;s.type!==void 0&&s.type!==""&&(j+="<"+s.type+">");var X=C.append("tspan").text(j).attr("class","title");z||X.attr("dy",m.textHeight);var it=C.node().getBBox().height,ut=D.append("line").attr("x1",0).attr("y1",m.padding+it+m.dividerMargin/2).attr("y2",m.padding+it+m.dividerMargin/2),lt=D.append("text").attr("x",m.padding).attr("y",it+m.dividerMargin+m.textHeight).attr("fill","white").attr("class","classText");z=!0,s.members.forEach(function(Dt){Rs(lt,Dt,z,m),z=!1});var Ot=lt.node().getBBox(),Lt=D.append("line").attr("x1",0).attr("y1",m.padding+it+m.dividerMargin+Ot.height).attr("y2",m.padding+it+m.dividerMargin+Ot.height),Yt=D.append("text").attr("x",m.padding).attr("y",it+2*m.dividerMargin+Ot.height+m.textHeight).attr("fill","white").attr("class","classText");z=!0,s.methods.forEach(function(Dt){Rs(Yt,Dt,z,m),z=!1});var qt=D.node().getBBox(),Nt=" ";s.cssClasses.length>0&&(Nt+=s.cssClasses.join(" "));var zt=D.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",qt.width+2*m.padding).attr("height",qt.height+m.padding+.5*m.dividerMargin).attr("class",Nt).node().getBBox().width;return C.node().childNodes.forEach(function(Dt){Dt.setAttribute("x",(zt-Dt.getBBox().width)/2)}),s.tooltip&&C.insert("title").text(s.tooltip),ut.attr("x2",zt),Lt.attr("x2",zt),M.width=zt,M.height=qt.height+m.padding+.5*m.dividerMargin,M};var wc={},kc=function(u){var s=Object.entries(wc).find(function(m){return m[1].label===u});if(s)return s[0]};const ed={draw:function(u,s,m,E){var C=Ft().class;wc={},b.info("Rendering diagram "+u);var N,M=Ft().securityLevel;M==="sandbox"&&(N=(0,T.select)("#i"+s));var D,z=M==="sandbox"?(0,T.select)(N.nodes()[0].contentDocument.body):(0,T.select)("body"),j=(M==="sandbox"&&N.nodes()[0].contentDocument,z.select("[id='".concat(s,"']")));(D=j).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(_i()).Graph({multigraph:!0});X.setGraph({isMultiGraph:!0}),X.setDefaultEdgeLabel(function(){return{}});for(var it=E.db.getClasses(),ut=Object.keys(it),lt=0;lt<ut.length;lt++){var Ot=it[ut[lt]],Lt=td(j,Ot,C,E);wc[Lt.id]=Lt,X.setNode(Lt.id,Lt),b.info("Org height: "+Lt.height)}E.db.getRelations().forEach(function(Dt){b.info("tjoho"+kc(Dt.id1)+kc(Dt.id2)+JSON.stringify(Dt)),X.setEdge(kc(Dt.id1),kc(Dt.id2),{relation:Dt},Dt.title||"DEFAULT")}),cs().layout(X),X.nodes().forEach(function(Dt){Dt!==void 0&&X.node(Dt)!==void 0&&(b.debug("Node "+Dt+": "+JSON.stringify(X.node(Dt))),z.select("#"+E.db.lookUpDomId(Dt)).attr("transform","translate("+(X.node(Dt).x-X.node(Dt).width/2)+","+(X.node(Dt).y-X.node(Dt).height/2)+" )"))}),X.edges().forEach(function(Dt){Dt!==void 0&&X.edge(Dt)!==void 0&&(b.debug("Edge "+Dt.v+" -> "+Dt.w+": "+JSON.stringify(X.edge(Dt))),function(te,Re,ke,he,Jt){var ue=function(pn){switch(pn){case Jt.db.relationType.AGGREGATION:return"aggregation";case Jt.db.EXTENSION:return"extension";case Jt.db.COMPOSITION:return"composition";case Jt.db.DEPENDENCY:return"dependency"}};Re.points=Re.points.filter(function(pn){return!Number.isNaN(pn.y)});var jt,ce,ae=Re.points,fe=(0,T.line)().x(function(pn){return pn.x}).y(function(pn){return pn.y}).curve(T.curveBasis),Me=te.append("path").attr("d",fe(ae)).attr("id","edge"+du).attr("class","relation"),Fe="";he.arrowMarkerAbsolute&&(Fe=(Fe=(Fe=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),ke.relation.lineType==1&&Me.attr("class","relation dashed-line"),ke.relation.type1!=="none"&&Me.attr("marker-start","url("+Fe+"#"+ue(ke.relation.type1)+"Start)"),ke.relation.type2!=="none"&&Me.attr("marker-end","url("+Fe+"#"+ue(ke.relation.type2)+"End)");var Ye,gr,je,lr,dr=Re.points.length,Ge=rn.calcLabelPosition(Re.points);if(jt=Ge.x,ce=Ge.y,dr%2!=0&&dr>1){var Ve=rn.calcCardinalityPosition(ke.relation.type1!=="none",Re.points,Re.points[0]),br=rn.calcCardinalityPosition(ke.relation.type2!=="none",Re.points,Re.points[dr-1]);b.debug("cardinality_1_point "+JSON.stringify(Ve)),b.debug("cardinality_2_point "+JSON.stringify(br)),Ye=Ve.x,gr=Ve.y,je=br.x,lr=br.y}if(ke.title!==void 0){var bn=te.append("g").attr("class","classLabel"),Sn=bn.append("text").attr("class","label").attr("x",jt).attr("y",ce).attr("fill","red").attr("text-anchor","middle").text(ke.title);window.label=Sn;var ei=Sn.node().getBBox();bn.insert("rect",":first-child").attr("class","box").attr("x",ei.x-he.padding/2).attr("y",ei.y-he.padding/2).attr("width",ei.width+he.padding).attr("height",ei.height+he.padding)}b.info("Rendering relation "+JSON.stringify(ke)),ke.relationTitle1!==void 0&&ke.relationTitle1!=="none"&&te.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",Ye).attr("y",gr).attr("fill","black").attr("font-size","6").text(ke.relationTitle1),ke.relationTitle2!==void 0&&ke.relationTitle2!=="none"&&te.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",je).attr("y",lr).attr("fill","black").attr("font-size","6").text(ke.relationTitle2),du++}(j,X.edge(Dt),X.edge(Dt).relation,C,E))});var Yt=j.node().getBBox(),qt=Yt.width+40,Nt=Yt.height+40;ra(j,Nt,qt,C.useMaxWidth);var zt="".concat(Yt.x-20," ").concat(Yt.y-20," ").concat(qt," ").concat(Nt);b.debug("viewBox ".concat(zt)),j.attr("viewBox",zt),zn(E.db,j,s)}};var Xh={extension:function(u,s,m){b.trace("Making markers for ",m),u.append("defs").append("marker").attr("id",s+"-extensionStart").attr("class","marker extension "+s).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"),u.append("defs").append("marker").attr("id",s+"-extensionEnd").attr("class","marker extension "+s).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(u,s){u.append("defs").append("marker").attr("id",s+"-compositionStart").attr("class","marker composition "+s).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"),u.append("defs").append("marker").attr("id",s+"-compositionEnd").attr("class","marker composition "+s).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(u,s){u.append("defs").append("marker").attr("id",s+"-aggregationStart").attr("class","marker aggregation "+s).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"),u.append("defs").append("marker").attr("id",s+"-aggregationEnd").attr("class","marker aggregation "+s).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(u,s){u.append("defs").append("marker").attr("id",s+"-dependencyStart").attr("class","marker dependency "+s).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"),u.append("defs").append("marker").attr("id",s+"-dependencyEnd").attr("class","marker dependency "+s).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(u,s){u.append("marker").attr("id",s+"-pointEnd").attr("class","marker "+s).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"),u.append("marker").attr("id",s+"-pointStart").attr("class","marker "+s).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(u,s){u.append("marker").attr("id",s+"-circleEnd").attr("class","marker "+s).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"),u.append("marker").attr("id",s+"-circleStart").attr("class","marker "+s).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(u,s){u.append("marker").attr("id",s+"-crossEnd").attr("class","marker cross "+s).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"),u.append("marker").attr("id",s+"-crossStart").attr("class","marker cross "+s).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(u,s){u.append("defs").append("marker").attr("id",s+"-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 Kh=function(u,s,m,E){s.forEach(function(C){Xh[C](u,m,E)})};function ua(u){return ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},ua(u)}const ia=function(u,s,m,E){var C=u||"";if(ua(C)==="object"&&(C=C[0]),fr(Ft().flowchart.htmlLabels)){C=C.replace(/\\n|\n/g,"<br />"),b.info("vertexText"+C);var N=function(X){var it,ut=(0,T.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),lt=ut.append("xhtml:div"),Ot=X.label,Lt=X.isNode?"nodeLabel":"edgeLabel";return lt.html('<span class="'+Lt+'" '+(X.labelStyle?'style="'+X.labelStyle+'"':"")+">"+Ot+"</span>"),(it=X.labelStyle)&<.attr("style",it),lt.style("display","inline-block"),lt.style("white-space","nowrap"),lt.attr("xmlns","http://www.w3.org/1999/xhtml"),ut.node()}({isNode:E,label:ti(C).replace(/fa[lrsb]?:fa-[\w-]+/g,function(X){return"<i class='".concat(X.replace(":"," "),"'></i>")}),labelStyle:s.replace("fill:","color:")});return N}var M=document.createElementNS("http://www.w3.org/2000/svg","text");M.setAttribute("style",s.replace("color:","fill:"));var D=[];D=typeof C=="string"?C.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(C)?C:[];for(var z=0;z<D.length;z++){var j=document.createElementNS("http://www.w3.org/2000/svg","tspan");j.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),j.setAttribute("dy","1em"),j.setAttribute("x","0"),m?j.setAttribute("class","title-row"):j.setAttribute("class","row"),j.textContent=D[z].trim(),M.appendChild(j)}return M};var Li=function(u,s,m,E){var C;C=m||"node default";var N=u.insert("g").attr("class",C).attr("id",s.domId||s.id),M=N.insert("g").attr("class","label").attr("style",s.labelStyle),D=typeof s.labelText=="string"?s.labelText:s.labelText[0],z=M.node().appendChild(ia(fn(ti(D),Ft()),s.labelStyle,!1,E)),j=z.getBBox();if(fr(Ft().flowchart.htmlLabels)){var X=z.children[0],it=(0,T.select)(z);j=X.getBoundingClientRect(),it.attr("width",j.width),it.attr("height",j.height)}var ut=s.padding/2;return M.attr("transform","translate("+-j.width/2+", "+-j.height/2+")"),{shapeSvg:N,bbox:j,halfPadding:ut,label:M}},oi=function(u,s){var m=s.node().getBBox();u.width=m.width,u.height=m.height};function qa(u,s,m,E){return u.insert("polygon",":first-child").attr("points",E.map(function(C){return C.x+","+C.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-s/2+","+m/2+")")}var en={},Ra={},ha={},us=function(u,s){return b.trace("In isDecendant",s," ",u," = ",Ra[s].indexOf(u)>=0),Ra[s].indexOf(u)>=0},Ec=function u(s,m,E,C){b.warn("Copying children of ",s,"root",C,"data",m.node(s),C);var N=m.children(s)||[];s!==C&&N.push(s),b.warn("Copying (nodes) clusterId",s,"nodes",N),N.forEach(function(M){if(m.children(M).length>0)u(M,m,E,C);else{var D=m.node(M);b.info("cp ",M," to ",C," with parent ",s),E.setNode(M,D),C!==m.parent(M)&&(b.warn("Setting parent",M,m.parent(M)),E.setParent(M,m.parent(M))),s!==C&&M!==s?(b.debug("Setting parent",M,s),E.setParent(M,s)):(b.info("In copy ",s,"root",C,"data",m.node(s),C),b.debug("Not Setting parent for node=",M,"cluster!==rootId",s!==C,"node!==clusterId",M!==s));var z=m.edges(M);b.debug("Copying Edges",z),z.forEach(function(j){b.info("Edge",j);var X=m.edge(j.v,j.w,j.name);b.info("Edge data",X,C);try{(function(it,ut){return b.info("Decendants of ",ut," is ",Ra[ut]),b.info("Edge is ",it),it.v!==ut&&it.w!==ut&&(Ra[ut]?(b.info("Here "),Ra[ut].indexOf(it.v)>=0||!!us(it.v,ut)||!!us(it.w,ut)||Ra[ut].indexOf(it.w)>=0):(b.debug("Tilt, ",ut,",not in decendants"),!1))})(j,C)?(b.info("Copying as ",j.v,j.w,X,j.name),E.setEdge(j.v,j.w,X,j.name),b.info("newGraph edges ",E.edges(),E.edge(E.edges()[0]))):b.info("Skipping copy of edge ",j.v,"-->",j.w," rootId: ",C," clusterId:",s)}catch(it){b.error(it)}})}b.debug("Removing node",M),m.removeNode(M)})},Bs=function u(s,m){for(var E=m.children(s),C=[].concat(E),N=0;N<E.length;N++)ha[E[N]]=s,C=C.concat(u(E[N],m));return C},Do=function u(s,m){b.trace("Searching",s);var E=m.children(s);if(b.trace("Searching children of id ",s,E),E.length<1)return b.trace("This is a valid node",s),s;for(var C=0;C<E.length;C++){var N=u(E[C],m);if(N)return b.trace("Found replacement for",s," => ",N),N}},Ro=function(u){return en[u]&&en[u].externalConnections&&en[u]?en[u].id:u},sl=function(u,s){!u||s>10?b.debug("Opting out, no graph "):(b.debug("Opting in, graph "),u.nodes().forEach(function(m){u.children(m).length>0&&(b.warn("Cluster identified",m," Replacement id in edges: ",Do(m,u)),Ra[m]=Bs(m,u),en[m]={id:Do(m,u),clusterData:u.node(m)})}),u.nodes().forEach(function(m){var E=u.children(m),C=u.edges();E.length>0?(b.debug("Cluster identified",m,Ra),C.forEach(function(N){N.v!==m&&N.w!==m&&us(N.v,m)^us(N.w,m)&&(b.warn("Edge: ",N," leaves cluster ",m),b.warn("Decendants of XXX ",m,": ",Ra[m]),en[m].externalConnections=!0)})):b.debug("Not a cluster ",m,Ra)}),u.edges().forEach(function(m){var E=u.edge(m);b.warn("Edge "+m.v+" -> "+m.w+": "+JSON.stringify(m)),b.warn("Edge "+m.v+" -> "+m.w+": "+JSON.stringify(u.edge(m)));var C=m.v,N=m.w;if(b.warn("Fix XXX",en,"ids:",m.v,m.w,"Translateing: ",en[m.v]," --- ",en[m.w]),en[m.v]&&en[m.w]&&en[m.v]===en[m.w]){b.warn("Fixing and trixing link to self - removing XXX",m.v,m.w,m.name),b.warn("Fixing and trixing - removing XXX",m.v,m.w,m.name),C=Ro(m.v),N=Ro(m.w),u.removeEdge(m.v,m.w,m.name);var M=m.w+"---"+m.v;u.setNode(M,{domId:M,id:M,labelStyle:"",labelText:E.label,padding:0,shape:"labelRect",style:""});var D=JSON.parse(JSON.stringify(E)),z=JSON.parse(JSON.stringify(E));D.label="",D.arrowTypeEnd="none",z.label="",D.fromCluster=m.v,z.toCluster=m.v,u.setEdge(C,M,D,m.name+"-cyclic-special"),u.setEdge(M,N,z,m.name+"-cyclic-special")}else(en[m.v]||en[m.w])&&(b.warn("Fixing and trixing - removing XXX",m.v,m.w,m.name),C=Ro(m.v),N=Ro(m.w),u.removeEdge(m.v,m.w,m.name),C!==m.v&&(E.fromCluster=m.v),N!==m.w&&(E.toCluster=m.w),b.warn("Fix Replacing with XXX",C,N,m.name),u.setEdge(C,N,E,m.name))}),b.warn("Adjusted Graph",_i().json.write(u)),hs(u,0),b.trace(en))},hs=function u(s,m){if(b.warn("extractor - ",m,_i().json.write(s),s.children("D")),m>10)b.error("Bailing out");else{for(var E=s.nodes(),C=!1,N=0;N<E.length;N++){var M=E[N],D=s.children(M);C=C||D.length>0}if(C){b.debug("Nodes = ",E,m);for(var z=0;z<E.length;z++){var j=E[z];if(b.debug("Extracting node",j,en,en[j]&&!en[j].externalConnections,!s.parent(j),s.node(j),s.children("D")," Depth ",m),en[j])if(!en[j].externalConnections&&s.children(j)&&s.children(j).length>0){b.warn("Cluster without external connections, without a parent and with children",j,m);var X=s.graph().rankdir==="TB"?"LR":"TB";en[j]&&en[j].clusterData&&en[j].clusterData.dir&&(X=en[j].clusterData.dir,b.warn("Fixing dir",en[j].clusterData.dir,X));var it=new(_i()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:X,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});b.warn("Old graph before copy",_i().json.write(s)),Ec(j,s,it,j),s.setNode(j,{clusterNode:!0,id:j,clusterData:en[j].clusterData,labelText:en[j].labelText,graph:it}),b.warn("New graph after copy node: (",j,")",_i().json.write(it)),b.debug("Old graph after copy",_i().json.write(s))}else b.warn("Cluster ** ",j," **not meeting the criteria !externalConnections:",!en[j].externalConnections," no parent: ",!s.parent(j)," children ",s.children(j)&&s.children(j).length>0,s.children("D"),m),b.debug(en);else b.debug("Not a cluster",j,m)}E=s.nodes(),b.warn("New list of nodes",E);for(var ut=0;ut<E.length;ut++){var lt=E[ut],Ot=s.node(lt);b.warn(" Now next level",lt,Ot),Ot.clusterNode&&u(Ot.graph,m+1)}}else b.debug("Done, no node has children",s.nodes())}},cl=function u(s,m){if(m.length===0)return[];var E=Object.assign(m);return m.forEach(function(C){var N=s.children(C),M=u(s,N);E=E.concat(M)}),E},Tc=function(u){return cl(u,u.children())},Jh=d(3841);const Sc=function(u,s,m,E){var C=u.x,N=u.y,M=C-E.x,D=N-E.y,z=Math.sqrt(s*s*D*D+m*m*M*M),j=Math.abs(s*m*M/z);E.x<C&&(j=-j);var X=Math.abs(s*m*D/z);return E.y<N&&(X=-X),{x:C+j,y:N+X}};function Qh(u,s){return u*s>0}const Ac=function(u,s,m,E){var C,N,M,D,z,j,X,it,ut,lt,Ot,Lt,Yt;if(C=s.y-u.y,M=u.x-s.x,z=s.x*u.y-u.x*s.y,ut=C*m.x+M*m.y+z,lt=C*E.x+M*E.y+z,!(ut!==0&<!==0&&Qh(ut,lt)||(N=E.y-m.y,D=m.x-E.x,j=E.x*m.y-m.x*E.y,X=N*u.x+D*u.y+j,it=N*s.x+D*s.y+j,X!==0&&it!==0&&Qh(X,it)||(Ot=C*D-N*M)==0)))return Lt=Math.abs(Ot/2),{x:(Yt=M*j-D*z)<0?(Yt-Lt)/Ot:(Yt+Lt)/Ot,y:(Yt=N*z-C*j)<0?(Yt-Lt)/Ot:(Yt+Lt)/Ot}},Bo=function(u,s){var m,E,C=u.x,N=u.y,M=s.x-C,D=s.y-N,z=u.width/2,j=u.height/2;return Math.abs(D)*z>Math.abs(M)*j?(D<0&&(j=-j),m=D===0?0:j*M/D,E=j):(M<0&&(z=-z),m=z,E=M===0?0:z*D/M),{x:C+m,y:N+E}},Fs=(d.n(Jh)(),function(u,s,m){return Sc(u,s,s,m)}),to=function(u,s,m){var E=u.x,C=u.y,N=[],M=Number.POSITIVE_INFINITY,D=Number.POSITIVE_INFINITY;typeof s.forEach=="function"?s.forEach(function(Ot){M=Math.min(M,Ot.x),D=Math.min(D,Ot.y)}):(M=Math.min(M,s.x),D=Math.min(D,s.y));for(var z=E-u.width/2-M,j=C-u.height/2-D,X=0;X<s.length;X++){var it=s[X],ut=s[X<s.length-1?X+1:0],lt=Ac(u,m,{x:z+it.x,y:j+it.y},{x:z+ut.x,y:j+ut.y});lt&&N.push(lt)}return N.length?(N.length>1&&N.sort(function(Ot,Lt){var Yt=Ot.x-m.x,qt=Ot.y-m.y,Nt=Math.sqrt(Yt*Yt+qt*qt),zt=Lt.x-m.x,Dt=Lt.y-m.y,te=Math.sqrt(zt*zt+Dt*Dt);return Nt<te?-1:Nt===te?0:1}),N[0]):u},Fo=Bo;function Ps(u){return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Ps(u)}function ll(u,s,m,E){var C=[],N=function(D){C.push(D),C.push(0)},M=function(D){C.push(0),C.push(D)};s.includes("t")?(b.debug("add top border"),N(m)):M(m),s.includes("r")?(b.debug("add right border"),N(E)):M(E),s.includes("b")?(b.debug("add bottom border"),N(m)):M(m),s.includes("l")?(b.debug("add left border"),N(E)):M(E),u.attr("stroke-dasharray",C.join(" "))}var t1=function(u,s,m){var E=u.insert("g").attr("class","node default").attr("id",s.domId||s.id),C=70,N=10;m==="LR"&&(C=10,N=70);var M=E.append("rect").attr("x",-1*C/2).attr("y",-1*N/2).attr("width",C).attr("height",N).attr("class","fork-join");return oi(s,M),s.height=s.height+s.padding/2,s.width=s.width+s.padding/2,s.intersect=function(D){return Fo(s,D)},E},e1={question:function(u,s){var m=Li(u,s,void 0,!0),E=m.shapeSvg,C=m.bbox,N=C.width+s.padding+(C.height+s.padding),M=[{x:N/2,y:0},{x:N,y:-N/2},{x:N/2,y:-N},{x:0,y:-N/2}];b.info("Question main (Circle)");var D=qa(E,N,N,M);return D.attr("style",s.style),oi(s,D),s.intersect=function(z){return b.warn("Intersect called"),to(s,M,z)},E},rect:function(u,s){var m=Li(u,s,"node "+s.classes,!0),E=m.shapeSvg,C=m.bbox,N=m.halfPadding;b.trace("Classes = ",s.classes);var M=E.insert("rect",":first-child"),D=C.width+s.padding,z=C.height+s.padding;if(M.attr("class","basic label-container").attr("style",s.style).attr("rx",s.rx).attr("ry",s.ry).attr("x",-C.width/2-N).attr("y",-C.height/2-N).attr("width",D).attr("height",z),s.props){var j=new Set(Object.keys(s.props));s.props.borders&&(ll(M,s.props.borders,D,z),j.delete("borders")),j.forEach(function(X){b.warn("Unknown node property ".concat(X))})}return oi(s,M),s.intersect=function(X){return Fo(s,X)},E},labelRect:function(u,s){var m=Li(u,s,"label",!0),E=m.shapeSvg;b.trace("Classes = ",s.classes);var C=E.insert("rect",":first-child");if(C.attr("width",0).attr("height",0),E.attr("class","label edgeLabel"),s.props){var N=new Set(Object.keys(s.props));s.props.borders&&(ll(C,s.props.borders,0,0),N.delete("borders")),N.forEach(function(M){b.warn("Unknown node property ".concat(M))})}return oi(s,C),s.intersect=function(M){return Fo(s,M)},E},rectWithTitle:function(u,s){var m;m=s.classes?"node "+s.classes:"node default";var E,C=u.insert("g").attr("class",m).attr("id",s.domId||s.id),N=C.insert("rect",":first-child"),M=C.insert("line"),D=C.insert("g").attr("class","label"),z=s.labelText.flat?s.labelText.flat():s.labelText;E=Ps(z)==="object"?z[0]:z,b.info("Label text abc79",E,z,Ps(z)==="object");var j=D.node().appendChild(ia(E,s.labelStyle,!0,!0)),X={width:0,height:0};if(fr(Ft().flowchart.htmlLabels)){var it=j.children[0],ut=(0,T.select)(j);X=it.getBoundingClientRect(),ut.attr("width",X.width),ut.attr("height",X.height)}b.info("Text 2",z);var lt=z.slice(1,z.length),Ot=j.getBBox(),Lt=D.node().appendChild(ia(lt.join?lt.join("<br/>"):lt,s.labelStyle,!0,!0));if(fr(Ft().flowchart.htmlLabels)){var Yt=Lt.children[0],qt=(0,T.select)(Lt);X=Yt.getBoundingClientRect(),qt.attr("width",X.width),qt.attr("height",X.height)}var Nt=s.padding/2;return(0,T.select)(Lt).attr("transform","translate( "+(X.width>Ot.width?0:(Ot.width-X.width)/2)+", "+(Ot.height+Nt+5)+")"),(0,T.select)(j).attr("transform","translate( "+(X.width<Ot.width?0:-(Ot.width-X.width)/2)+", 0)"),X=D.node().getBBox(),D.attr("transform","translate("+-X.width/2+", "+(-X.height/2-Nt+3)+")"),N.attr("class","outer title-state").attr("x",-X.width/2-Nt).attr("y",-X.height/2-Nt).attr("width",X.width+s.padding).attr("height",X.height+s.padding),M.attr("class","divider").attr("x1",-X.width/2-Nt).attr("x2",X.width/2+Nt).attr("y1",-X.height/2-Nt+Ot.height+Nt).attr("y2",-X.height/2-Nt+Ot.height+Nt),oi(s,N),s.intersect=function(zt){return Fo(s,zt)},C},choice:function(u,s){var m=u.insert("g").attr("class","node default").attr("id",s.domId||s.id);return m.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(E){return E.x+","+E.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),s.width=28,s.height=28,s.intersect=function(E){return Fs(s,14,E)},m},circle:function(u,s){var m=Li(u,s,void 0,!0),E=m.shapeSvg,C=m.bbox,N=m.halfPadding,M=E.insert("circle",":first-child");return M.attr("style",s.style).attr("rx",s.rx).attr("ry",s.ry).attr("r",C.width/2+N).attr("width",C.width+s.padding).attr("height",C.height+s.padding),b.info("Circle main"),oi(s,M),s.intersect=function(D){return b.info("Circle intersect",s,C.width/2+N,D),Fs(s,C.width/2+N,D)},E},doublecircle:function(u,s){var m=Li(u,s,void 0,!0),E=m.shapeSvg,C=m.bbox,N=m.halfPadding,M=E.insert("g",":first-child"),D=M.insert("circle"),z=M.insert("circle");return D.attr("style",s.style).attr("rx",s.rx).attr("ry",s.ry).attr("r",C.width/2+N+5).attr("width",C.width+s.padding+10).attr("height",C.height+s.padding+10),z.attr("style",s.style).attr("rx",s.rx).attr("ry",s.ry).attr("r",C.width/2+N).attr("width",C.width+s.padding).attr("height",C.height+s.padding),b.info("DoubleCircle main"),oi(s,D),s.intersect=function(j){return b.info("DoubleCircle intersect",s,C.width/2+N+5,j),Fs(s,C.width/2+N+5,j)},E},stadium:function(u,s){var m=Li(u,s,void 0,!0),E=m.shapeSvg,C=m.bbox,N=C.height+s.padding,M=C.width+N/4+s.padding,D=E.insert("rect",":first-child").attr("style",s.style).attr("rx",N/2).attr("ry",N/2).attr("x",-M/2).attr("y",-N/2).attr("width",M).attr("height",N);return oi(s,D),s.intersect=function(z){return Fo(s,z)},E},hexagon:function(u,s){var m=Li(u,s,void 0,!0),E=m.shapeSvg,C=m.bbox,N=C.height+s.padding,M=N/4,D=C.width+2*M+s.padding,z=[{x:M,y:0},{x:D-M,y:0},{x:D,y:-N/2},{x:D-M,y:-N},{x:M,y:-N},{x:0,y:-N/2}],j=qa(E,D,N,z);return j.attr("style",s.style),oi(s,j),s.intersect=function(X){return to(s,z,X)},E},rect_left_inv_arrow:function(u,s){var m=Li(u,s,void 0,!0),E=m.shapeSvg,C=m.bbox,N=C.width+s.padding,M=C.height+s.padding,D=[{x:-M/2,y:0},{x:N,y:0},{x:N,y:-M},{x:-M/2,y:-M},{x:0,y:-M/2}];return qa(E,N,M,D).attr("style",s.style),s.width=N+M,s.height=M,s.intersect=function(z){return to(s,D,z)},E},lean_right:function(u,s){var m=Li(u,s,void 0,!0),E=m.shapeSvg,C=m.bbox,N=C.width+s.padding,M=C.height+s.padding,D=[{x:-2*M/6,y:0},{x:N-M/6,y:0},{x:N+2*M/6,y:-M},{x:M/6,y:-M}],z=qa(E,N,M,D);return z.attr("style",s.style),oi(s,z),s.intersect=function(j){return to(s,D,j)},E},lean_left:function(u,s){var m=Li(u,s,void 0,!0),E=m.shapeSvg,C=m.bbox,N=C.width+s.padding,M=C.height+s.padding,D=[{x:2*M/6,y:0},{x:N+M/6,y:0},{x:N-2*M/6,y:-M},{x:-M/6,y:-M}],z=qa(E,N,M,D);return z.attr("style",s.style),oi(s,z),s.intersect=function(j){return to(s,D,j)},E},trapezoid:function(u,s){var m=Li(u,s,void 0,!0),E=m.shapeSvg,C=m.bbox,N=C.width+s.padding,M=C.height+s.padding,D=[{x:-2*M/6,y:0},{x:N+2*M/6,y:0},{x:N-M/6,y:-M},{x:M/6,y:-M}],z=qa(E,N,M,D);return z.attr("style",s.style),oi(s,z),s.intersect=function(j){return to(s,D,j)},E},inv_trapezoid:function(u,s){var m=Li(u,s,void 0,!0),E=m.shapeSvg,C=m.bbox,N=C.width+s.padding,M=C.height+s.padding,D=[{x:M/6,y:0},{x:N-M/6,y:0},{x:N+2*M/6,y:-M},{x:-2*M/6,y:-M}],z=qa(E,N,M,D);return z.attr("style",s.style),oi(s,z),s.intersect=function(j){return to(s,D,j)},E},rect_right_inv_arrow:function(u,s){var m=Li(u,s,void 0,!0),E=m.shapeSvg,C=m.bbox,N=C.width+s.padding,M=C.height+s.padding,D=[{x:0,y:0},{x:N+M/2,y:0},{x:N,y:-M/2},{x:N+M/2,y:-M},{x:0,y:-M}],z=qa(E,N,M,D);return z.attr("style",s.style),oi(s,z),s.intersect=function(j){return to(s,D,j)},E},cylinder:function(u,s){var m=Li(u,s,void 0,!0),E=m.shapeSvg,C=m.bbox,N=C.width+s.padding,M=N/2,D=M/(2.5+N/50),z=C.height+D+s.padding,j="M 0,"+D+" a "+M+","+D+" 0,0,0 "+N+" 0 a "+M+","+D+" 0,0,0 "+-N+" 0 l 0,"+z+" a "+M+","+D+" 0,0,0 "+N+" 0 l 0,"+-z,X=E.attr("label-offset-y",D).insert("path",":first-child").attr("style",s.style).attr("d",j).attr("transform","translate("+-N/2+","+-(z/2+D)+")");return oi(s,X),s.intersect=function(it){var ut=Fo(s,it),lt=ut.x-s.x;if(M!=0&&(Math.abs(lt)<s.width/2||Math.abs(lt)==s.width/2&&Math.abs(ut.y-s.y)>s.height/2-D)){var Ot=D*D*(1-lt*lt/(M*M));Ot!=0&&(Ot=Math.sqrt(Ot)),Ot=D-Ot,it.y-s.y>0&&(Ot=-Ot),ut.y+=Ot}return ut},E},start:function(u,s){var m=u.insert("g").attr("class","node default").attr("id",s.domId||s.id),E=m.insert("circle",":first-child");return E.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),oi(s,E),s.intersect=function(C){return Fs(s,7,C)},m},end:function(u,s){var m=u.insert("g").attr("class","node default").attr("id",s.domId||s.id),E=m.insert("circle",":first-child"),C=m.insert("circle",":first-child");return C.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),E.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),oi(s,C),s.intersect=function(N){return Fs(s,7,N)},m},note:function(u,s){var m=Li(u,s,"node "+s.classes,!0),E=m.shapeSvg,C=m.bbox,N=m.halfPadding;b.info("Classes = ",s.classes);var M=E.insert("rect",":first-child");return M.attr("rx",s.rx).attr("ry",s.ry).attr("x",-C.width/2-N).attr("y",-C.height/2-N).attr("width",C.width+s.padding).attr("height",C.height+s.padding),oi(s,M),s.intersect=function(D){return Fo(s,D)},E},subroutine:function(u,s){var m=Li(u,s,void 0,!0),E=m.shapeSvg,C=m.bbox,N=C.width+s.padding,M=C.height+s.padding,D=[{x:0,y:0},{x:N,y:0},{x:N,y:-M},{x:0,y:-M},{x:0,y:0},{x:-8,y:0},{x:N+8,y:0},{x:N+8,y:-M},{x:-8,y:-M},{x:-8,y:0}],z=qa(E,N,M,D);return z.attr("style",s.style),oi(s,z),s.intersect=function(j){return to(s,D,j)},E},fork:t1,join:t1,class_box:function(u,s){var m,E=s.padding/2;m=s.classes?"node "+s.classes:"node default";var C=u.insert("g").attr("class",m).attr("id",s.domId||s.id),N=C.insert("rect",":first-child"),M=C.insert("line"),D=C.insert("line"),z=0,j=4,X=C.insert("g").attr("class","label"),it=0,ut=s.classData.annotations&&s.classData.annotations[0],lt=s.classData.annotations[0]?"\xAB"+s.classData.annotations[0]+"\xBB":"",Ot=X.node().appendChild(ia(lt,s.labelStyle,!0,!0)),Lt=Ot.getBBox();if(fr(Ft().flowchart.htmlLabels)){var Yt=Ot.children[0],qt=(0,T.select)(Ot);Lt=Yt.getBoundingClientRect(),qt.attr("width",Lt.width),qt.attr("height",Lt.height)}s.classData.annotations[0]&&(j+=Lt.height+4,z+=Lt.width);var Nt=s.classData.id;s.classData.type!==void 0&&s.classData.type!==""&&(Ft().flowchart.htmlLabels?Nt+="<"+s.classData.type+">":Nt+="<"+s.classData.type+">");var zt=X.node().appendChild(ia(Nt,s.labelStyle,!0,!0));(0,T.select)(zt).attr("class","classTitle");var Dt=zt.getBBox();if(fr(Ft().flowchart.htmlLabels)){var te=zt.children[0],Re=(0,T.select)(zt);Dt=te.getBoundingClientRect(),Re.attr("width",Dt.width),Re.attr("height",Dt.height)}j+=Dt.height+4,Dt.width>z&&(z=Dt.width);var ke=[];s.classData.members.forEach(function(jt){var ce=Ds(jt),ae=ce.displayText;Ft().flowchart.htmlLabels&&(ae=ae.replace(/</g,"<").replace(/>/g,">"));var fe=X.node().appendChild(ia(ae,ce.cssStyle?ce.cssStyle:s.labelStyle,!0,!0)),Me=fe.getBBox();if(fr(Ft().flowchart.htmlLabels)){var Fe=fe.children[0],Ye=(0,T.select)(fe);Me=Fe.getBoundingClientRect(),Ye.attr("width",Me.width),Ye.attr("height",Me.height)}Me.width>z&&(z=Me.width),j+=Me.height+4,ke.push(fe)}),j+=8;var he=[];if(s.classData.methods.forEach(function(jt){var ce=Ds(jt),ae=ce.displayText;Ft().flowchart.htmlLabels&&(ae=ae.replace(/</g,"<").replace(/>/g,">"));var fe=X.node().appendChild(ia(ae,ce.cssStyle?ce.cssStyle:s.labelStyle,!0,!0)),Me=fe.getBBox();if(fr(Ft().flowchart.htmlLabels)){var Fe=fe.children[0],Ye=(0,T.select)(fe);Me=Fe.getBoundingClientRect(),Ye.attr("width",Me.width),Ye.attr("height",Me.height)}Me.width>z&&(z=Me.width),j+=Me.height+4,he.push(fe)}),j+=8,ut){var Jt=(z-Lt.width)/2;(0,T.select)(Ot).attr("transform","translate( "+(-1*z/2+Jt)+", "+-1*j/2+")"),it=Lt.height+4}var ue=(z-Dt.width)/2;return(0,T.select)(zt).attr("transform","translate( "+(-1*z/2+ue)+", "+(-1*j/2+it)+")"),it+=Dt.height+4,M.attr("class","divider").attr("x1",-z/2-E).attr("x2",z/2+E).attr("y1",-j/2-E+8+it).attr("y2",-j/2-E+8+it),it+=8,ke.forEach(function(jt){(0,T.select)(jt).attr("transform","translate( "+-z/2+", "+(-1*j/2+it+4)+")"),it+=Dt.height+4}),it+=8,D.attr("class","divider").attr("x1",-z/2-E).attr("x2",z/2+E).attr("y1",-j/2-E+8+it).attr("y2",-j/2-E+8+it),it+=8,he.forEach(function(jt){(0,T.select)(jt).attr("transform","translate( "+-z/2+", "+(-1*j/2+it)+")"),it+=Dt.height+4}),N.attr("class","outer title-state").attr("x",-z/2-E).attr("y",-j/2-E).attr("width",z+s.padding).attr("height",j+s.padding),oi(s,N),s.intersect=function(jt){return Fo(s,jt)},C}},po={},ul=function(u){var s=po[u.id];b.trace("Transforming node",u.diff,u,"translate("+(u.x-u.width/2-5)+", "+u.width/2+")");var m=u.diff||0;return u.clusterNode?s.attr("transform","translate("+(u.x+m-u.width/2)+", "+(u.y-u.height/2-8)+")"):s.attr("transform","translate("+u.x+", "+u.y+")"),m},eo={rect:function(u,s){b.trace("Creating subgraph rect for ",s.id,s);var m=u.insert("g").attr("class","cluster"+(s.class?" "+s.class:"")).attr("id",s.id),E=m.insert("rect",":first-child"),C=m.insert("g").attr("class","cluster-label"),N=C.node().appendChild(ia(s.labelText,s.labelStyle,void 0,!0)),M=N.getBBox();if(fr(Ft().flowchart.htmlLabels)){var D=N.children[0],z=(0,T.select)(N);M=D.getBoundingClientRect(),z.attr("width",M.width),z.attr("height",M.height)}var j=0*s.padding,X=j/2,it=s.width<=M.width+j?M.width+j:s.width;s.width<=M.width+j?s.diff=(M.width-s.width)/2-s.padding/2:s.diff=-s.padding/2,b.trace("Data ",s,JSON.stringify(s)),E.attr("style",s.style).attr("rx",s.rx).attr("ry",s.ry).attr("x",s.x-it/2).attr("y",s.y-s.height/2-X).attr("width",it).attr("height",s.height+j),C.attr("transform","translate("+(s.x-M.width/2)+", "+(s.y-s.height/2+s.padding/3)+")");var ut=E.node().getBBox();return s.width=ut.width,s.height=ut.height,s.intersect=function(lt){return Bo(s,lt)},m},roundedWithTitle:function(u,s){var m=u.insert("g").attr("class",s.classes).attr("id",s.id),E=m.insert("rect",":first-child"),C=m.insert("g").attr("class","cluster-label"),N=m.append("rect"),M=C.node().appendChild(ia(s.labelText,s.labelStyle,void 0,!0)),D=M.getBBox();if(fr(Ft().flowchart.htmlLabels)){var z=M.children[0],j=(0,T.select)(M);D=z.getBoundingClientRect(),j.attr("width",D.width),j.attr("height",D.height)}D=M.getBBox();var X=0*s.padding,it=X/2,ut=s.width<=D.width+s.padding?D.width+s.padding:s.width;s.width<=D.width+s.padding?s.diff=(D.width+0*s.padding-s.width)/2:s.diff=-s.padding/2,E.attr("class","outer").attr("x",s.x-ut/2-it).attr("y",s.y-s.height/2-it).attr("width",ut+X).attr("height",s.height+X),N.attr("class","inner").attr("x",s.x-ut/2-it).attr("y",s.y-s.height/2-it+D.height-1).attr("width",ut+X).attr("height",s.height+X-D.height-3),C.attr("transform","translate("+(s.x-D.width/2)+", "+(s.y-s.height/2-s.padding/3+(fr(Ft().flowchart.htmlLabels)?5:3))+")");var lt=E.node().getBBox();return s.height=lt.height,s.intersect=function(Ot){return Bo(s,Ot)},m},noteGroup:function(u,s){var m=u.insert("g").attr("class","note-cluster").attr("id",s.id),E=m.insert("rect",":first-child"),C=0*s.padding,N=C/2;E.attr("rx",s.rx).attr("ry",s.ry).attr("x",s.x-s.width/2-N).attr("y",s.y-s.height/2-N).attr("width",s.width+C).attr("height",s.height+C).attr("fill","none");var M=E.node().getBBox();return s.width=M.width,s.height=M.height,s.intersect=function(D){return Bo(s,D)},m},divider:function(u,s){var m=u.insert("g").attr("class",s.classes).attr("id",s.id),E=m.insert("rect",":first-child"),C=0*s.padding,N=C/2;E.attr("class","divider").attr("x",s.x-s.width/2-N).attr("y",s.y-s.height/2).attr("width",s.width+C).attr("height",s.height+C);var M=E.node().getBBox();return s.width=M.width,s.height=M.height,s.diff=-s.padding/2,s.intersect=function(D){return Bo(s,D)},m}},Ba={},ro={},bi={},r1=function(u,s){var m=ia(s.label,s.labelStyle),E=u.insert("g").attr("class","edgeLabel"),C=E.insert("g").attr("class","label");C.node().appendChild(m);var N,M=m.getBBox();if(fr(Ft().flowchart.htmlLabels)){var D=m.children[0],z=(0,T.select)(m);M=D.getBoundingClientRect(),z.attr("width",M.width),z.attr("height",M.height)}if(C.attr("transform","translate("+-M.width/2+", "+-M.height/2+")"),ro[s.id]=E,s.width=M.width,s.height=M.height,s.startLabelLeft){var j=ia(s.startLabelLeft,s.labelStyle),X=u.insert("g").attr("class","edgeTerminals"),it=X.insert("g").attr("class","inner");N=it.node().appendChild(j);var ut=j.getBBox();it.attr("transform","translate("+-ut.width/2+", "+-ut.height/2+")"),bi[s.id]||(bi[s.id]={}),bi[s.id].startLeft=X,zs(N,s.startLabelLeft)}if(s.startLabelRight){var lt=ia(s.startLabelRight,s.labelStyle),Ot=u.insert("g").attr("class","edgeTerminals"),Lt=Ot.insert("g").attr("class","inner");N=Ot.node().appendChild(lt),Lt.node().appendChild(lt);var Yt=lt.getBBox();Lt.attr("transform","translate("+-Yt.width/2+", "+-Yt.height/2+")"),bi[s.id]||(bi[s.id]={}),bi[s.id].startRight=Ot,zs(N,s.startLabelRight)}if(s.endLabelLeft){var qt=ia(s.endLabelLeft,s.labelStyle),Nt=u.insert("g").attr("class","edgeTerminals"),zt=Nt.insert("g").attr("class","inner");N=zt.node().appendChild(qt);var Dt=qt.getBBox();zt.attr("transform","translate("+-Dt.width/2+", "+-Dt.height/2+")"),Nt.node().appendChild(qt),bi[s.id]||(bi[s.id]={}),bi[s.id].endLeft=Nt,zs(N,s.endLabelLeft)}if(s.endLabelRight){var te=ia(s.endLabelRight,s.labelStyle),Re=u.insert("g").attr("class","edgeTerminals"),ke=Re.insert("g").attr("class","inner");N=ke.node().appendChild(te);var he=te.getBBox();ke.attr("transform","translate("+-he.width/2+", "+-he.height/2+")"),Re.node().appendChild(te),bi[s.id]||(bi[s.id]={}),bi[s.id].endRight=Re,zs(N,s.endLabelRight)}};function zs(u,s){Ft().flowchart.htmlLabels&&u&&(u.style.width=9*s.length+"px",u.style.height="12px")}var n1=function(u,s){b.info("Moving label abc78 ",u.id,u.label,ro[u.id]);var m=s.updatedPath?s.updatedPath:s.originalPath;if(u.label){var E=ro[u.id],C=u.x,N=u.y;if(m){var M=rn.calcLabelPosition(m);b.info("Moving label from (",C,",",N,") to (",M.x,",",M.y,") abc78")}E.attr("transform","translate("+C+", "+N+")")}if(u.startLabelLeft){var D=bi[u.id].startLeft,z=u.x,j=u.y;if(m){var X=rn.calcTerminalLabelPosition(u.arrowTypeStart?10:0,"start_left",m);z=X.x,j=X.y}D.attr("transform","translate("+z+", "+j+")")}if(u.startLabelRight){var it=bi[u.id].startRight,ut=u.x,lt=u.y;if(m){var Ot=rn.calcTerminalLabelPosition(u.arrowTypeStart?10:0,"start_right",m);ut=Ot.x,lt=Ot.y}it.attr("transform","translate("+ut+", "+lt+")")}if(u.endLabelLeft){var Lt=bi[u.id].endLeft,Yt=u.x,qt=u.y;if(m){var Nt=rn.calcTerminalLabelPosition(u.arrowTypeEnd?10:0,"end_left",m);Yt=Nt.x,qt=Nt.y}Lt.attr("transform","translate("+Yt+", "+qt+")")}if(u.endLabelRight){var zt=bi[u.id].endRight,Dt=u.x,te=u.y;if(m){var Re=rn.calcTerminalLabelPosition(u.arrowTypeEnd?10:0,"end_right",m);Dt=Re.x,te=Re.y}zt.attr("transform","translate("+Dt+", "+te+")")}},fu=function(u,s){b.warn("abc88 cutPathAtIntersect",u,s);var m=[],E=u[0],C=!1;return u.forEach(function(N){if(b.info("abc88 checking point",N,s),function(z,j){var X=z.x,it=z.y,ut=Math.abs(j.x-X),lt=Math.abs(j.y-it),Ot=z.width/2,Lt=z.height/2;return ut>=Ot||lt>=Lt}(s,N)||C)b.warn("abc88 outside",N,E),E=N,C||m.push(N);else{var M=function(z,j,X){b.warn(`intersection calc abc89:
|
|
outsidePoint: `.concat(JSON.stringify(j),`
|
|
insidePoint : `).concat(JSON.stringify(X),`
|
|
node : x:`).concat(z.x," y:").concat(z.y," w:").concat(z.width," h:").concat(z.height));var it=z.x,ut=z.y,lt=Math.abs(it-X.x),Ot=z.width/2,Lt=X.x<j.x?Ot-lt:Ot+lt,Yt=z.height/2,qt=Math.abs(j.y-X.y),Nt=Math.abs(j.x-X.x);if(Math.abs(ut-j.y)*Ot>Math.abs(it-j.x)*Yt){var zt=X.y<j.y?j.y-Yt-ut:ut-Yt-j.y;Lt=Nt*zt/qt;var Dt={x:X.x<j.x?X.x+Lt:X.x-Nt+Lt,y:X.y<j.y?X.y+qt-zt:X.y-qt+zt};return Lt===0&&(Dt.x=j.x,Dt.y=j.y),Nt===0&&(Dt.x=j.x),qt===0&&(Dt.y=j.y),b.warn("abc89 topp/bott calc, Q ".concat(qt,", q ").concat(zt,", R ").concat(Nt,", r ").concat(Lt),Dt),Dt}var te=qt*(Lt=X.x<j.x?j.x-Ot-it:it-Ot-j.x)/Nt,Re=X.x<j.x?X.x+Nt-Lt:X.x-Nt+Lt,ke=X.y<j.y?X.y+te:X.y-te;return b.warn("sides calc abc89, Q ".concat(qt,", q ").concat(te,", R ").concat(Nt,", r ").concat(Lt),{_x:Re,_y:ke}),Lt===0&&(Re=j.x,ke=j.y),Nt===0&&(Re=j.x),qt===0&&(ke=j.y),{x:Re,y:ke}}(s,E,N);b.warn("abc88 inside",N,E,M),b.warn("abc88 intersection",M);var D=!1;m.forEach(function(z){D=D||z.x===M.x&&z.y===M.y}),m.find(function(z){return z.x===M.x&&z.y===M.y})?b.warn("abc88 no intersect",M,m):m.push(M),C=!0}}),b.warn("abc88 returning points",m),m},i1=function u(s,m,E,C){b.info("Graph in recursive render: XXX",_i().json.write(m),C);var N=m.graph().rankdir;b.trace("Dir in recursive render - dir:",N);var M=s.insert("g").attr("class","root");m.nodes()?b.info("Recursive render XXX",m.nodes()):b.info("No nodes found for",m),m.edges().length>0&&b.trace("Recursive edges",m.edge(m.edges()[0]));var D=M.insert("g").attr("class","clusters"),z=M.insert("g").attr("class","edgePaths"),j=M.insert("g").attr("class","edgeLabels"),X=M.insert("g").attr("class","nodes");m.nodes().forEach(function(ut){var lt=m.node(ut);if(C!==void 0){var Ot=JSON.parse(JSON.stringify(C.clusterData));b.info("Setting data for cluster XXX (",ut,") ",Ot,C),m.setNode(C.id,Ot),m.parent(ut)||(b.trace("Setting parent",ut,C.id),m.setParent(ut,C.id,Ot))}if(b.info("(Insert) Node XXX"+ut+": "+JSON.stringify(m.node(ut))),lt&<.clusterNode){b.info("Cluster identified",ut,lt.width,m.node(ut));var Lt=u(X,lt.graph,E,m.node(ut)),Yt=Lt.elem;oi(lt,Yt),lt.diff=Lt.diff||0,b.info("Node bounds (abc123)",ut,lt,lt.width,lt.x,lt.y),function(qt,Nt){po[Nt.id]=qt}(Yt,lt),b.warn("Recursive render complete ",Yt,lt)}else m.children(ut).length>0?(b.info("Cluster - the non recursive path XXX",ut,lt.id,lt,m),b.info(Do(lt.id,m)),en[lt.id]={id:Do(lt.id,m),node:lt}):(b.info("Node - the non recursive path",ut,lt.id,lt),function(qt,Nt,zt){var Dt,te,Re;Nt.link?(Ft().securityLevel==="sandbox"?Re="_top":Nt.linkTarget&&(Re=Nt.linkTarget||"_blank"),Dt=qt.insert("svg:a").attr("xlink:href",Nt.link).attr("target",Re),te=e1[Nt.shape](Dt,Nt,zt)):Dt=te=e1[Nt.shape](qt,Nt,zt),Nt.tooltip&&te.attr("title",Nt.tooltip),Nt.class&&te.attr("class","node default "+Nt.class),po[Nt.id]=Dt,Nt.haveCallback&&po[Nt.id].attr("class",po[Nt.id].attr("class")+" clickable")}(X,m.node(ut),N))}),m.edges().forEach(function(ut){var lt=m.edge(ut.v,ut.w,ut.name);b.info("Edge "+ut.v+" -> "+ut.w+": "+JSON.stringify(ut)),b.info("Edge "+ut.v+" -> "+ut.w+": ",ut," ",JSON.stringify(m.edge(ut))),b.info("Fix",en,"ids:",ut.v,ut.w,"Translateing: ",en[ut.v],en[ut.w]),r1(j,lt)}),m.edges().forEach(function(ut){b.info("Edge "+ut.v+" -> "+ut.w+": "+JSON.stringify(ut))}),b.info("#############################################"),b.info("### Layout ###"),b.info("#############################################"),b.info(m),cs().layout(m),b.info("Graph after layout:",_i().json.write(m));var it=0;return Tc(m).forEach(function(ut){var lt=m.node(ut);b.info("Position "+ut+": "+JSON.stringify(m.node(ut))),b.info("Position "+ut+": ("+lt.x,","+lt.y,") width: ",lt.width," height: ",lt.height),lt&<.clusterNode?ul(lt):m.children(ut).length>0?(function(Ot,Lt){b.trace("Inserting cluster");var Yt=Lt.shape||"rect";Ba[Lt.id]=eo[Yt](Ot,Lt)}(D,lt),en[lt.id].node=lt):ul(lt)}),m.edges().forEach(function(ut){var lt=m.edge(ut);b.info("Edge "+ut.v+" -> "+ut.w+": "+JSON.stringify(lt),lt);var Ot=function(Lt,Yt,qt,Nt,zt,Dt){var te=qt.points,Re=!1,ke=Dt.node(Yt.v),he=Dt.node(Yt.w);b.info("abc88 InsertEdge: ",qt),he.intersect&&ke.intersect&&((te=te.slice(1,qt.points.length-1)).unshift(ke.intersect(te[0])),b.info("Last point",te[te.length-1],he,he.intersect(te[te.length-1])),te.push(he.intersect(te[te.length-1]))),qt.toCluster&&(b.info("to cluster abc88",Nt[qt.toCluster]),te=fu(qt.points,Nt[qt.toCluster].node),Re=!0),qt.fromCluster&&(b.info("from cluster abc88",Nt[qt.fromCluster]),te=fu(te.reverse(),Nt[qt.fromCluster].node).reverse(),Re=!0);var Jt,ue=te.filter(function(Fe){return!Number.isNaN(Fe.y)});Jt=(zt==="graph"||zt==="flowchart")&&qt.curve||T.curveBasis;var jt,ce=(0,T.line)().x(function(Fe){return Fe.x}).y(function(Fe){return Fe.y}).curve(Jt);switch(qt.thickness){case"normal":jt="edge-thickness-normal";break;case"thick":jt="edge-thickness-thick";break;default:jt=""}switch(qt.pattern){case"solid":jt+=" edge-pattern-solid";break;case"dotted":jt+=" edge-pattern-dotted";break;case"dashed":jt+=" edge-pattern-dashed"}var ae=Lt.append("path").attr("d",ce(ue)).attr("id",qt.id).attr("class"," "+jt+(qt.classes?" "+qt.classes:"")).attr("style",qt.style),fe="";switch(Ft().state.arrowMarkerAbsolute&&(fe=(fe=(fe=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),b.info("arrowTypeStart",qt.arrowTypeStart),b.info("arrowTypeEnd",qt.arrowTypeEnd),qt.arrowTypeStart){case"arrow_cross":ae.attr("marker-start","url("+fe+"#"+zt+"-crossStart)");break;case"arrow_point":ae.attr("marker-start","url("+fe+"#"+zt+"-pointStart)");break;case"arrow_barb":ae.attr("marker-start","url("+fe+"#"+zt+"-barbStart)");break;case"arrow_circle":ae.attr("marker-start","url("+fe+"#"+zt+"-circleStart)");break;case"aggregation":ae.attr("marker-start","url("+fe+"#"+zt+"-aggregationStart)");break;case"extension":ae.attr("marker-start","url("+fe+"#"+zt+"-extensionStart)");break;case"composition":ae.attr("marker-start","url("+fe+"#"+zt+"-compositionStart)");break;case"dependency":ae.attr("marker-start","url("+fe+"#"+zt+"-dependencyStart)")}switch(qt.arrowTypeEnd){case"arrow_cross":ae.attr("marker-end","url("+fe+"#"+zt+"-crossEnd)");break;case"arrow_point":ae.attr("marker-end","url("+fe+"#"+zt+"-pointEnd)");break;case"arrow_barb":ae.attr("marker-end","url("+fe+"#"+zt+"-barbEnd)");break;case"arrow_circle":ae.attr("marker-end","url("+fe+"#"+zt+"-circleEnd)");break;case"aggregation":ae.attr("marker-end","url("+fe+"#"+zt+"-aggregationEnd)");break;case"extension":ae.attr("marker-end","url("+fe+"#"+zt+"-extensionEnd)");break;case"composition":ae.attr("marker-end","url("+fe+"#"+zt+"-compositionEnd)");break;case"dependency":ae.attr("marker-end","url("+fe+"#"+zt+"-dependencyEnd)")}var Me={};return Re&&(Me.updatedPath=te),Me.originalPath=qt.points,Me}(z,ut,lt,en,E,m);n1(lt,Ot)}),m.nodes().forEach(function(ut){var lt=m.node(ut);b.info(ut,lt.type,lt.diff),lt.type==="group"&&(it=lt.diff)}),{elem:M,diff:it}},hl=function(u,s,m,E,C){Kh(u,m,E,C),po={},ro={},bi={},Ba={},Ra={},ha={},en={},b.warn("Graph at first:",_i().json.write(s)),sl(s),b.warn("Graph after:",_i().json.write(s)),i1(u,s,E)};function a1(u){var s;switch(u){case 0:s="aggregation";break;case 1:s="extension";break;case 2:s="composition";break;case 3:s="dependency";break;default:s="none"}return s}const rd={setConf:function(u){Object.keys(u).forEach(function(s){u[s]})},draw:function(u,s,m,E){b.info("Drawing class - ",s);var C=Ft().flowchart,N=Ft().securityLevel;b.info("config:",C);var M,D=C.nodeSpacing||50,z=C.rankSpacing||50,j=new(_i()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:E.db.getDirection(),nodesep:D,ranksep:z,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),X=E.db.getClasses(),it=E.db.getRelations();b.info(it),function(te,Re,ke,he){var Jt=Object.keys(te);b.info("keys:",Jt),b.info(te),Jt.forEach(function(ue){var jt=te[ue],ce="";jt.cssClasses.length>0&&(ce=ce+" "+jt.cssClasses.join(" "));var ae,fe,Me={labelStyle:""},Fe=jt.text!==void 0?jt.text:jt.id;jt.type,fe="class_box",Re.setNode(jt.id,{labelStyle:Me.labelStyle,shape:fe,labelText:(ae=Fe,mr.sanitizeText(ae,Ft())),classData:jt,rx:0,ry:0,class:ce,style:Me.style,id:jt.id,domId:jt.domId,tooltip:he.db.getTooltip(jt.id)||"",haveCallback:jt.haveCallback,link:jt.link,width:jt.type==="group"?500:void 0,type:jt.type,padding:Ft().flowchart.padding}),b.info("setNode",{labelStyle:Me.labelStyle,shape:fe,labelText:Fe,rx:0,ry:0,class:ce,style:Me.style,id:jt.id,width:jt.type==="group"?500:void 0,type:jt.type,padding:Ft().flowchart.padding})})}(X,j,0,E),function(te,Re){var ke=Ft().flowchart,he=0;te.forEach(function(Jt){he++;var ue={classes:"relation"};ue.pattern=Jt.relation.lineType==1?"dashed":"solid",ue.id="id"+he,Jt.type==="arrow_open"?ue.arrowhead="none":ue.arrowhead="normal",b.info(ue,Jt),ue.startLabelRight=Jt.relationTitle1==="none"?"":Jt.relationTitle1,ue.endLabelLeft=Jt.relationTitle2==="none"?"":Jt.relationTitle2,ue.arrowTypeStart=a1(Jt.relation.type1),ue.arrowTypeEnd=a1(Jt.relation.type2);var jt="",ce="";if(Jt.style!==void 0){var ae=Ma(Jt.style);jt=ae.style,ce=ae.labelStyle}else jt="fill:none";ue.style=jt,ue.labelStyle=ce,Jt.interpolate!==void 0?ue.curve=ea(Jt.interpolate,T.curveLinear):te.defaultInterpolate!==void 0?ue.curve=ea(te.defaultInterpolate,T.curveLinear):ue.curve=ea(ke.curve,T.curveLinear),Jt.text=Jt.title,Jt.text===void 0?Jt.style!==void 0&&(ue.arrowheadStyle="fill: #333"):(ue.arrowheadStyle="fill: #333",ue.labelpos="c",Ft().flowchart.htmlLabels?(ue.labelType="html",ue.label='<span class="edgeLabel">'+Jt.text+"</span>"):(ue.labelType="text",ue.label=Jt.text.replace(mr.lineBreakRegex,`
|
|
`),Jt.style===void 0&&(ue.style=ue.style||"stroke: #333; stroke-width: 1.5px;fill:none"),ue.labelStyle=ue.labelStyle.replace("color:","fill:"))),Re.setEdge(Jt.id1,Jt.id2,ue,he)})}(it,j),N==="sandbox"&&(M=(0,T.select)("#i"+s));var ut=N==="sandbox"?(0,T.select)(M.nodes()[0].contentDocument.body):(0,T.select)("body"),lt=ut.select('[id="'.concat(s,'"]')),Ot=ut.select("#"+s+" g");if(hl(Ot,j,["aggregation","extension","composition","dependency"],"classDiagram",s),Ls(j,lt,C.diagramPadding,C.useMaxWidth),!C.htmlLabels)for(var Lt=N==="sandbox"?M.nodes()[0].contentDocument:document,Yt=Lt.querySelectorAll('[id="'+s+'"] .edgeLabel .label'),qt=0;qt<Yt.length;qt++){var Nt=Yt[qt],zt=Nt.getBBox(),Dt=Lt.createElementNS("http://www.w3.org/2000/svg","rect");Dt.setAttribute("rx",0),Dt.setAttribute("ry",0),Dt.setAttribute("width",zt.width),Dt.setAttribute("height",zt.height),Nt.insertBefore(Dt,Nt.firstChild)}zn(E.db,lt,s)}};var pu=d(1362),gu=d.n(pu),Cc={},yu=[],o1=function(u){return Cc[u]===void 0&&(Cc[u]={attributes:[]},b.info("Added new entity :",u)),Cc[u]};const nd={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(u,s,m){wr.parseDirective(this,u,s,m)},getConfig:function(){return Ft().er},addEntity:o1,addAttributes:function(u,s){var m,E=o1(u);for(m=s.length-1;m>=0;m--)E.attributes.push(s[m]),b.debug("Added attribute ",s[m].attributeName)},getEntities:function(){return Cc},addRelationship:function(u,s,m,E){var C={entityA:u,roleA:s,entityB:m,relSpec:E};yu.push(C),b.debug("Added new relationship :",C)},getRelationships:function(){return yu},clear:function(){Cc={},yu=[],Yn()},setAccTitle:ee,getAccTitle:kn,setAccDescription:si,getAccDescription:di};var go={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 Po=go;var Rn={},s1=function(u){return(u.entityA+u.roleA+u.entityB).replace(/\s/g,"")},c1=0;const id={setConf:function(u){for(var s=Object.keys(u),m=0;m<s.length;m++)Rn[s[m]]=u[s[m]]},draw:function(u,s,m,E){Rn=Ft().er,b.info("Drawing ER diagram");var C,N=Ft().securityLevel;N==="sandbox"&&(C=(0,T.select)("#i"+s));var M,D=(N==="sandbox"?(0,T.select)(C.nodes()[0].contentDocument.body):(0,T.select)("body")).select("[id='".concat(s,"']"));(function(Yt,qt){var Nt;Yt.append("defs").append("marker").attr("id",go.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",qt.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),Yt.append("defs").append("marker").attr("id",go.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",qt.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(Nt=Yt.append("defs").append("marker").attr("id",go.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",qt.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),Nt.append("path").attr("stroke",qt.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(Nt=Yt.append("defs").append("marker").attr("id",go.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",qt.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),Nt.append("path").attr("stroke",qt.stroke).attr("fill","none").attr("d","M21,0 L21,18"),Yt.append("defs").append("marker").attr("id",go.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",qt.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),Yt.append("defs").append("marker").attr("id",go.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",qt.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(Nt=Yt.append("defs").append("marker").attr("id",go.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",qt.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),Nt.append("path").attr("stroke",qt.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(Nt=Yt.append("defs").append("marker").attr("id",go.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",qt.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),Nt.append("path").attr("stroke",qt.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(D,Rn),M=new(_i()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Rn.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var z,j,X=function(Yt,qt,Nt){var zt;return Object.keys(qt).forEach(function(Dt){var te=Yt.append("g").attr("id",Dt);zt=zt===void 0?Dt:zt;var Re="entity-"+Dt,ke=te.append("text").attr("class","er entityLabel").attr("id",Re).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Ft().fontFamily+"; font-size: "+Rn.fontSize+"px").text(Dt),he=function(ce,ae,fe){var Me=Rn.entityPadding/3,Fe=Rn.entityPadding/3,Ye=.85*Rn.fontSize,gr=ae.node().getBBox(),je=[],lr=!1,dr=!1,Ge=0,Ve=0,br=0,bn=0,Sn=gr.height+2*Me,ei=1;fe.forEach(function(Bn){Bn.attributeKeyType!==void 0&&(lr=!0),Bn.attributeComment!==void 0&&(dr=!0)}),fe.forEach(function(Bn){var Ya="".concat(ae.node().id,"-attr-").concat(ei),Ea=0,Jo=ce.append("text").attr("class","er entityLabel").attr("id","".concat(Ya,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Ft().fontFamily+"; font-size: "+Ye+"px").text(Bn.attributeType),Qo=ce.append("text").attr("class","er entityLabel").attr("id","".concat(Ya,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Ft().fontFamily+"; font-size: "+Ye+"px").text(Bn.attributeName),ca={};ca.tn=Jo,ca.nn=Qo;var ts=Jo.node().getBBox(),qc=Qo.node().getBBox();if(Ge=Math.max(Ge,ts.width),Ve=Math.max(Ve,qc.width),Ea=Math.max(ts.height,qc.height),lr){var Gl=ce.append("text").attr("class","er entityLabel").attr("id","".concat(Ya,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Ft().fontFamily+"; font-size: "+Ye+"px").text(Bn.attributeKeyType||"");ca.kn=Gl;var Vl=Gl.node().getBBox();br=Math.max(br,Vl.width),Ea=Math.max(Ea,Vl.height)}if(dr){var Zl=ce.append("text").attr("class","er entityLabel").attr("id","".concat(Ya,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Ft().fontFamily+"; font-size: "+Ye+"px").text(Bn.attributeComment||"");ca.cn=Zl;var gh=Zl.node().getBBox();bn=Math.max(bn,gh.width),Ea=Math.max(Ea,gh.height)}ca.height=Ea,je.push(ca),Sn+=Ea+2*Me,ei+=1});var pn=4;lr&&(pn+=2),dr&&(pn+=2);var Ri=Ge+Ve+br+bn,hn={width:Math.max(Rn.minEntityWidth,Math.max(gr.width+2*Rn.entityPadding,Ri+Fe*pn)),height:fe.length>0?Sn:Math.max(Rn.minEntityHeight,gr.height+2*Rn.entityPadding)};if(fe.length>0){var Xa=Math.max(0,(hn.width-Ri-Fe*pn)/(pn/2));ae.attr("transform","translate("+hn.width/2+","+(Me+gr.height/2)+")");var fa=gr.height+2*Me,pi="attributeBoxOdd";je.forEach(function(Bn){var Ya=fa+Me+Bn.height/2;Bn.tn.attr("transform","translate("+Fe+","+Ya+")");var Ea=ce.insert("rect","#"+Bn.tn.node().id).attr("class","er ".concat(pi)).attr("fill",Rn.fill).attr("fill-opacity","100%").attr("stroke",Rn.stroke).attr("x",0).attr("y",fa).attr("width",Ge+2*Fe+Xa).attr("height",Bn.height+2*Me),Jo=parseFloat(Ea.attr("x"))+parseFloat(Ea.attr("width"));Bn.nn.attr("transform","translate("+(Jo+Fe)+","+Ya+")");var Qo=ce.insert("rect","#"+Bn.nn.node().id).attr("class","er ".concat(pi)).attr("fill",Rn.fill).attr("fill-opacity","100%").attr("stroke",Rn.stroke).attr("x",Jo).attr("y",fa).attr("width",Ve+2*Fe+Xa).attr("height",Bn.height+2*Me),ca=parseFloat(Qo.attr("x"))+parseFloat(Qo.attr("width"));if(lr){Bn.kn.attr("transform","translate("+(ca+Fe)+","+Ya+")");var ts=ce.insert("rect","#"+Bn.kn.node().id).attr("class","er ".concat(pi)).attr("fill",Rn.fill).attr("fill-opacity","100%").attr("stroke",Rn.stroke).attr("x",ca).attr("y",fa).attr("width",br+2*Fe+Xa).attr("height",Bn.height+2*Me);ca=parseFloat(ts.attr("x"))+parseFloat(ts.attr("width"))}dr&&(Bn.cn.attr("transform","translate("+(ca+Fe)+","+Ya+")"),ce.insert("rect","#"+Bn.cn.node().id).attr("class","er ".concat(pi)).attr("fill",Rn.fill).attr("fill-opacity","100%").attr("stroke",Rn.stroke).attr("x",ca).attr("y",fa).attr("width",bn+2*Fe+Xa).attr("height",Bn.height+2*Me)),fa+=Bn.height+2*Me,pi=pi=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else hn.height=Math.max(Rn.minEntityHeight,Sn),ae.attr("transform","translate("+hn.width/2+","+hn.height/2+")");return hn}(te,ke,qt[Dt].attributes),Jt=he.width,ue=he.height,jt=te.insert("rect","#"+Re).attr("class","er entityBox").attr("fill",Rn.fill).attr("fill-opacity","100%").attr("stroke",Rn.stroke).attr("x",0).attr("y",0).attr("width",Jt).attr("height",ue).node().getBBox();Nt.setNode(Dt,{width:jt.width,height:jt.height,shape:"rect",id:Dt})}),zt}(D,E.db.getEntities(),M),it=function(Yt,qt){return Yt.forEach(function(Nt){qt.setEdge(Nt.entityA,Nt.entityB,{relationship:Nt},s1(Nt))}),Yt}(E.db.getRelationships(),M);cs().layout(M),z=D,(j=M).nodes().forEach(function(Yt){Yt!==void 0&&j.node(Yt)!==void 0&&z.select("#"+Yt).attr("transform","translate("+(j.node(Yt).x-j.node(Yt).width/2)+","+(j.node(Yt).y-j.node(Yt).height/2)+" )")}),it.forEach(function(Yt){(function(qt,Nt,zt,Dt,te){c1++;var Re=zt.edge(Nt.entityA,Nt.entityB,s1(Nt)),ke=(0,T.line)().x(function(fe){return fe.x}).y(function(fe){return fe.y}).curve(T.curveBasis),he=qt.insert("path","#"+Dt).attr("class","er relationshipLine").attr("d",ke(Re.points)).attr("stroke",Rn.stroke).attr("fill","none");Nt.relSpec.relType===te.db.Identification.NON_IDENTIFYING&&he.attr("stroke-dasharray","8,8");var Jt="";switch(Rn.arrowMarkerAbsolute&&(Jt=(Jt=(Jt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Nt.relSpec.cardA){case te.db.Cardinality.ZERO_OR_ONE:he.attr("marker-end","url("+Jt+"#"+Po.ZERO_OR_ONE_END+")");break;case te.db.Cardinality.ZERO_OR_MORE:he.attr("marker-end","url("+Jt+"#"+Po.ZERO_OR_MORE_END+")");break;case te.db.Cardinality.ONE_OR_MORE:he.attr("marker-end","url("+Jt+"#"+Po.ONE_OR_MORE_END+")");break;case te.db.Cardinality.ONLY_ONE:he.attr("marker-end","url("+Jt+"#"+Po.ONLY_ONE_END+")")}switch(Nt.relSpec.cardB){case te.db.Cardinality.ZERO_OR_ONE:he.attr("marker-start","url("+Jt+"#"+Po.ZERO_OR_ONE_START+")");break;case te.db.Cardinality.ZERO_OR_MORE:he.attr("marker-start","url("+Jt+"#"+Po.ZERO_OR_MORE_START+")");break;case te.db.Cardinality.ONE_OR_MORE:he.attr("marker-start","url("+Jt+"#"+Po.ONE_OR_MORE_START+")");break;case te.db.Cardinality.ONLY_ONE:he.attr("marker-start","url("+Jt+"#"+Po.ONLY_ONE_START+")")}var ue=he.node().getTotalLength(),jt=he.node().getPointAtLength(.5*ue),ce="rel"+c1,ae=qt.append("text").attr("class","er relationshipLabel").attr("id",ce).attr("x",jt.x).attr("y",jt.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Ft().fontFamily+"; font-size: "+Rn.fontSize+"px").text(Nt.roleA).node().getBBox();qt.insert("rect","#"+ce).attr("class","er relationshipLabelBox").attr("x",jt.x-ae.width/2).attr("y",jt.y-ae.height/2).attr("width",ae.width).attr("height",ae.height).attr("fill","white").attr("fill-opacity","85%")})(D,Yt,M,X,E)});var ut=Rn.diagramPadding,lt=D.node().getBBox(),Ot=lt.width+2*ut,Lt=lt.height+2*ut;ra(D,Lt,Ot,Rn.useMaxWidth),D.attr("viewBox","".concat(lt.x-ut," ").concat(lt.y-ut," ").concat(Ot," ").concat(Lt)),zn(E.db,D,s)}};var ad=d(5890),od=d.n(ad);function mu(u){return mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},mu(u)}function _u(u,s){(s==null||s>u.length)&&(s=u.length);for(var m=0,E=new Array(s);m<s;m++)E[m]=u[m];return E}var yo,dl,sd="flowchart-",bu=0,vu=Ft(),li={},ds=[],Us=[],no=[],va={},fl={},pl=0,Wa=!0,gl=[],yl=function(u){return mr.sanitizeText(u,vu)},Ys=function(u){for(var s=Object.keys(li),m=0;m<s.length;m++)if(li[s[m]].id===u)return li[s[m]].domId;return u},cd=function(u,s,m,E){var C={start:u,end:s,type:void 0,text:""};(E=m.text)!==void 0&&(C.text=yl(E.trim()),C.text[0]==='"'&&C.text[C.text.length-1]==='"'&&(C.text=C.text.substring(1,C.text.length-1))),m!==void 0&&(C.type=m.type,C.stroke=m.stroke,C.length=m.length),ds.push(C)},xu=function(u,s){u.split(",").forEach(function(m){var E=m;li[E]!==void 0&&li[E].classes.push(s),va[E]!==void 0&&va[E].classes.push(s)})},l1=function(u){var s=(0,T.select)(".mermaidTooltip");(s._groups||s)[0][0]===null&&(s=(0,T.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,T.select)(u).select("svg").selectAll("g.node").on("mouseover",function(){var m=(0,T.select)(this);if(m.attr("title")!==null){var E=this.getBoundingClientRect();s.transition().duration(200).style("opacity",".9"),s.text(m.attr("title")).style("left",window.scrollX+E.left+(E.right-E.left)/2+"px").style("top",window.scrollY+E.top-14+document.body.scrollTop+"px"),s.html(s.html().replace(/<br\/>/g,"<br/>")),m.classed("hover",!0)}}).on("mouseout",function(){s.transition().duration(500).style("opacity",0),(0,T.select)(this).classed("hover",!1)})};gl.push(l1);var ld=function(u){for(var s=0;s<no.length;s++)if(no[s].id===u)return s;return-1},Ic=-1,u1=[],ud=function u(s,m){var E=no[m].nodes;if(!((Ic+=1)>2e3)){if(u1[Ic]=m,no[m].id===s)return{result:!0,count:0};for(var C=0,N=1;C<E.length;){var M=ld(E[C]);if(M>=0){var D=u(s,M);if(D.result)return{result:!0,count:N+D.count};N+=D.count}C+=1}return{result:!1,count:N}}},ml=function(u,s){var m=!1;return u.forEach(function(E){E.nodes.indexOf(s)>=0&&(m=!0)}),m},wu=function(u,s){var m=[];return u.nodes.forEach(function(E,C){ml(s,E)||m.push(u.nodes[C])}),{nodes:m}};const io={parseDirective:function(u,s,m){wr.parseDirective(this,u,s,m)},defaultConfig:function(){return hi.flowchart},setAccTitle:ee,getAccTitle:kn,getAccDescription:di,setAccDescription:si,addVertex:function(u,s,m,E,C,N){var M,D=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},z=u;z!==void 0&&z.trim().length!==0&&(li[z]===void 0&&(li[z]={id:z,domId:sd+z+"-"+bu,styles:[],classes:[]}),bu++,s!==void 0?(vu=Ft(),(M=yl(s.trim()))[0]==='"'&&M[M.length-1]==='"'&&(M=M.substring(1,M.length-1)),li[z].text=M):li[z].text===void 0&&(li[z].text=u),m!==void 0&&(li[z].type=m),E!=null&&E.forEach(function(j){li[z].styles.push(j)}),C!=null&&C.forEach(function(j){li[z].classes.push(j)}),N!==void 0&&(li[z].dir=N),li[z].props=D)},lookUpDomId:Ys,addLink:function(u,s,m,E){var C,N;for(C=0;C<u.length;C++)for(N=0;N<s.length;N++)cd(u[C],s[N],m,E)},updateLinkInterpolate:function(u,s){u.forEach(function(m){m==="default"?ds.defaultInterpolate=s:ds[m].interpolate=s})},updateLink:function(u,s){u.forEach(function(m){m==="default"?ds.defaultStyle=s:(rn.isSubstringInArray("fill",s)===-1&&s.push("fill:none"),ds[m].style=s)})},addClass:function(u,s){Us[u]===void 0&&(Us[u]={id:u,styles:[],textStyles:[]}),s!=null&&s.forEach(function(m){if(m.match("color")){var E=m.replace("fill","bgFill").replace("color","fill");Us[u].textStyles.push(E)}Us[u].styles.push(m)})},setDirection:function(u){(yo=u).match(/.*</)&&(yo="RL"),yo.match(/.*\^/)&&(yo="BT"),yo.match(/.*>/)&&(yo="LR"),yo.match(/.*v/)&&(yo="TB")},setClass:xu,setTooltip:function(u,s){u.split(",").forEach(function(m){s!==void 0&&(fl[dl==="gen-1"?Ys(m):m]=yl(s))})},getTooltip:function(u){return fl[u]},setClickEvent:function(u,s,m){u.split(",").forEach(function(E){(function(C,N,M){var D=Ys(C);if(Ft().securityLevel==="loose"&&N!==void 0){var z=[];if(typeof M=="string"){z=M.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var j=0;j<z.length;j++){var X=z[j].trim();X.charAt(0)==='"'&&X.charAt(X.length-1)==='"'&&(X=X.substr(1,X.length-2)),z[j]=X}}z.length===0&&z.push(C),li[C]!==void 0&&(li[C].haveCallback=!0,gl.push(function(){var it=document.querySelector('[id="'.concat(D,'"]'));it!==null&&it.addEventListener("click",function(){var ut;rn.runFunc.apply(rn,[N].concat(function(lt){if(Array.isArray(lt))return _u(lt)}(ut=z)||function(lt){if(typeof Symbol<"u"&<[Symbol.iterator]!=null||lt["@@iterator"]!=null)return Array.from(lt)}(ut)||function(lt,Ot){if(lt){if(typeof lt=="string")return _u(lt,Ot);var Lt=Object.prototype.toString.call(lt).slice(8,-1);return Lt==="Object"&<.constructor&&(Lt=lt.constructor.name),Lt==="Map"||Lt==="Set"?Array.from(lt):Lt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Lt)?_u(lt,Ot):void 0}}(ut)||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)}))}})(E,s,m)}),xu(u,"clickable")},setLink:function(u,s,m){u.split(",").forEach(function(E){li[E]!==void 0&&(li[E].link=rn.formatUrl(s,vu),li[E].linkTarget=m)}),xu(u,"clickable")},bindFunctions:function(u){gl.forEach(function(s){s(u)})},getDirection:function(){return yo.trim()},getVertices:function(){return li},getEdges:function(){return ds},getClasses:function(){return Us},clear:function(u){li={},Us={},ds=[],(gl=[]).push(l1),no=[],va={},pl=0,fl=[],Wa=!0,dl=u||"gen-1",Yn()},setGen:function(u){dl=u||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(u,s,m){var E=u.trim(),C=m;u===m&&m.match(/\s/)&&(E=void 0);var N=[],M=function(it){var ut,lt={boolean:{},number:{},string:{}},Ot=[],Lt=it.filter(function(Yt){var qt=mu(Yt);return Yt.stmt&&Yt.stmt==="dir"?(ut=Yt.value,!1):Yt.trim()!==""&&(qt in lt?!lt[qt].hasOwnProperty(Yt)&&(lt[qt][Yt]=!0):!(Ot.indexOf(Yt)>=0)&&Ot.push(Yt))});return{nodeList:Lt,dir:ut}}(N.concat.apply(N,s)),D=M.nodeList,z=M.dir;if(N=D,dl==="gen-1")for(var j=0;j<N.length;j++)N[j]=Ys(N[j]);E=E||"subGraph"+pl,C=yl(C=C||""),pl+=1;var X={id:E,nodes:N,title:C.trim(),classes:[],dir:z};return b.info("Adding",X.id,X.nodes,X.dir),X.nodes=wu(X,no).nodes,no.push(X),va[E]=X,E},getDepthFirstPos:function(u){return u1[u]},indexNodes:function(){Ic=-1,no.length>0&&ud("none",no.length-1)},getSubGraphs:function(){return no},destructLink:function(u,s){var m,E=function(C){var N=C.trim(),M=N.slice(0,-1),D="arrow_open";switch(N.slice(-1)){case"x":D="arrow_cross",N[0]==="x"&&(D="double_"+D,M=M.slice(1));break;case">":D="arrow_point",N[0]==="<"&&(D="double_"+D,M=M.slice(1));break;case"o":D="arrow_circle",N[0]==="o"&&(D="double_"+D,M=M.slice(1))}var z="normal",j=M.length-1;M[0]==="="&&(z="thick");var X=function(it,ut){for(var lt=ut.length,Ot=0,Lt=0;Lt<lt;++Lt)ut[Lt]==="."&&++Ot;return Ot}(0,M);return X&&(z="dotted",j=X),{type:D,stroke:z,length:j}}(u);if(s){if(m=function(C){var N=C.trim(),M="arrow_open";switch(N[0]){case"<":M="arrow_point",N=N.slice(1);break;case"x":M="arrow_cross",N=N.slice(1);break;case"o":M="arrow_circle",N=N.slice(1)}var D="normal";return N.indexOf("=")!==-1&&(D="thick"),N.indexOf(".")!==-1&&(D="dotted"),{type:M,stroke:D}}(s),m.stroke!==E.stroke)return{type:"INVALID",stroke:"INVALID"};if(m.type==="arrow_open")m.type=E.type;else{if(m.type!==E.type)return{type:"INVALID",stroke:"INVALID"};m.type="double_"+m.type}return m.type==="double_arrow"&&(m.type="double_arrow_point"),m.length=E.length,m}return E},lex:{firstGraph:function(){return!!Wa&&(Wa=!1,!0)}},exists:ml,makeUniq:wu};var js=d(4949),Mi=d.n(js),h1=d(8284),Yi=d.n(h1);function Gi(u,s,m){var E=.9*(s.width+s.height),C=[{x:E/2,y:0},{x:E,y:-E/2},{x:E/2,y:-E},{x:0,y:-E/2}],N=xa(u,E,E,C);return m.intersect=function(M){return Mi().intersect.polygon(m,C,M)},N}function d1(u,s,m){var E=s.height,C=E/4,N=s.width+2*C,M=[{x:C,y:0},{x:N-C,y:0},{x:N,y:-E/2},{x:N-C,y:-E},{x:C,y:-E},{x:0,y:-E/2}],D=xa(u,N,E,M);return m.intersect=function(z){return Mi().intersect.polygon(m,M,z)},D}function ku(u,s,m){var E=s.width,C=s.height,N=[{x:-C/2,y:0},{x:E,y:0},{x:E,y:-C},{x:-C/2,y:-C},{x:0,y:-C/2}],M=xa(u,E,C,N);return m.intersect=function(D){return Mi().intersect.polygon(m,N,D)},M}function _l(u,s,m){var E=s.width,C=s.height,N=[{x:-2*C/6,y:0},{x:E-C/6,y:0},{x:E+2*C/6,y:-C},{x:C/6,y:-C}],M=xa(u,E,C,N);return m.intersect=function(D){return Mi().intersect.polygon(m,N,D)},M}function bl(u,s,m){var E=s.width,C=s.height,N=[{x:2*C/6,y:0},{x:E+C/6,y:0},{x:E-2*C/6,y:-C},{x:-C/6,y:-C}],M=xa(u,E,C,N);return m.intersect=function(D){return Mi().intersect.polygon(m,N,D)},M}function hd(u,s,m){var E=s.width,C=s.height,N=[{x:-2*C/6,y:0},{x:E+2*C/6,y:0},{x:E-C/6,y:-C},{x:C/6,y:-C}],M=xa(u,E,C,N);return m.intersect=function(D){return Mi().intersect.polygon(m,N,D)},M}function mo(u,s,m){var E=s.width,C=s.height,N=[{x:C/6,y:0},{x:E-C/6,y:0},{x:E+2*C/6,y:-C},{x:-2*C/6,y:-C}],M=xa(u,E,C,N);return m.intersect=function(D){return Mi().intersect.polygon(m,N,D)},M}function f1(u,s,m){var E=s.width,C=s.height,N=[{x:0,y:0},{x:E+C/2,y:0},{x:E,y:-C/2},{x:E+C/2,y:-C},{x:0,y:-C}],M=xa(u,E,C,N);return m.intersect=function(D){return Mi().intersect.polygon(m,N,D)},M}function p1(u,s,m){var E=s.height,C=s.width+E/4,N=u.insert("rect",":first-child").attr("rx",E/2).attr("ry",E/2).attr("x",-C/2).attr("y",-E/2).attr("width",C).attr("height",E);return m.intersect=function(M){return Mi().intersect.rect(m,M)},N}function dd(u,s,m){var E=s.width,C=s.height,N=[{x:0,y:0},{x:E,y:0},{x:E,y:-C},{x:0,y:-C},{x:0,y:0},{x:-8,y:0},{x:E+8,y:0},{x:E+8,y:-C},{x:-8,y:-C},{x:-8,y:0}],M=xa(u,E,C,N);return m.intersect=function(D){return Mi().intersect.polygon(m,N,D)},M}function fd(u,s,m){var E=s.width,C=E/2,N=C/(2.5+E/50),M=s.height+N,D="M 0,"+N+" a "+C+","+N+" 0,0,0 "+E+" 0 a "+C+","+N+" 0,0,0 "+-E+" 0 l 0,"+M+" a "+C+","+N+" 0,0,0 "+E+" 0 l 0,"+-M,z=u.attr("label-offset-y",N).insert("path",":first-child").attr("d",D).attr("transform","translate("+-E/2+","+-(M/2+N)+")");return m.intersect=function(j){var X=Mi().intersect.rect(m,j),it=X.x-m.x;if(C!=0&&(Math.abs(it)<m.width/2||Math.abs(it)==m.width/2&&Math.abs(X.y-m.y)>m.height/2-N)){var ut=N*N*(1-it*it/(C*C));ut!=0&&(ut=Math.sqrt(ut)),ut=N-ut,j.y-m.y>0&&(ut=-ut),X.y+=ut}return X},z}function xa(u,s,m,E){return u.insert("polygon",":first-child").attr("points",E.map(function(C){return C.x+","+C.y}).join(" ")).attr("transform","translate("+-s/2+","+m/2+")")}const pd=function(u){u.shapes().question=Gi,u.shapes().hexagon=d1,u.shapes().stadium=p1,u.shapes().subroutine=dd,u.shapes().cylinder=fd,u.shapes().rect_left_inv_arrow=ku,u.shapes().lean_right=_l,u.shapes().lean_left=bl,u.shapes().trapezoid=hd,u.shapes().inv_trapezoid=mo,u.shapes().rect_right_inv_arrow=f1};var g1={},y1=function(u,s,m,E,C,N){Ft().securityLevel;var M=E?E.select('[id="'.concat(m,'"]')):(0,T.select)('[id="'.concat(m,'"]')),D=C||document;Object.keys(u).forEach(function(z){var j=u[z],X="default";j.classes.length>0&&(X=j.classes.join(" "));var it,ut=Ma(j.styles),lt=j.text!==void 0?j.text:j.id;if(fr(Ft().flowchart.htmlLabels)){var Ot={label:lt.replace(/fa[lrsb]?:fa-[\w-]+/g,function(te){return"<i class='".concat(te.replace(":"," "),"'></i>")})};(it=Yi()(M,Ot).node()).parentNode.removeChild(it)}else{var Lt=D.createElementNS("http://www.w3.org/2000/svg","text");Lt.setAttribute("style",ut.labelStyle.replace("color:","fill:"));for(var Yt=lt.split(mr.lineBreakRegex),qt=0;qt<Yt.length;qt++){var Nt=D.createElementNS("http://www.w3.org/2000/svg","tspan");Nt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Nt.setAttribute("dy","1em"),Nt.setAttribute("x","1"),Nt.textContent=Yt[qt],Lt.appendChild(Nt)}it=Lt}var zt=0,Dt="";switch(j.type){case"round":zt=5,Dt="rect";break;case"square":case"group":default:Dt="rect";break;case"diamond":Dt="question";break;case"hexagon":Dt="hexagon";break;case"odd":case"odd_right":Dt="rect_left_inv_arrow";break;case"lean_right":Dt="lean_right";break;case"lean_left":Dt="lean_left";break;case"trapezoid":Dt="trapezoid";break;case"inv_trapezoid":Dt="inv_trapezoid";break;case"circle":Dt="circle";break;case"ellipse":Dt="ellipse";break;case"stadium":Dt="stadium";break;case"subroutine":Dt="subroutine";break;case"cylinder":Dt="cylinder"}b.warn("Adding node",j.id,j.domId),s.setNode(N.db.lookUpDomId(j.id),{labelType:"svg",labelStyle:ut.labelStyle,shape:Dt,label:it,rx:zt,ry:zt,class:X,style:ut.style,id:N.db.lookUpDomId(j.id)})})},vl=function(u,s,m){var E,C,N=0;if(u.defaultStyle!==void 0){var M=Ma(u.defaultStyle);E=M.style,C=M.labelStyle}u.forEach(function(D){N++;var z="L-"+D.start+"-"+D.end,j="LS-"+D.start,X="LE-"+D.end,it={};D.type==="arrow_open"?it.arrowhead="none":it.arrowhead="normal";var ut="",lt="";if(D.style!==void 0){var Ot=Ma(D.style);ut=Ot.style,lt=Ot.labelStyle}else switch(D.stroke){case"normal":ut="fill:none",E!==void 0&&(ut=E),C!==void 0&&(lt=C);break;case"dotted":ut="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":ut=" stroke-width: 3.5px;fill:none"}it.style=ut,it.labelStyle=lt,D.interpolate!==void 0?it.curve=ea(D.interpolate,T.curveLinear):u.defaultInterpolate!==void 0?it.curve=ea(u.defaultInterpolate,T.curveLinear):it.curve=ea(g1.curve,T.curveLinear),D.text===void 0?D.style!==void 0&&(it.arrowheadStyle="fill: #333"):(it.arrowheadStyle="fill: #333",it.labelpos="c",fr(Ft().flowchart.htmlLabels)?(it.labelType="html",it.label='<span id="L-'.concat(z,'" class="edgeLabel L-').concat(j,"' L-").concat(X,'" style="').concat(it.labelStyle,'">').concat(D.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Lt){return"<i class='".concat(Lt.replace(":"," "),"'></i>")}),"</span>")):(it.labelType="text",it.label=D.text.replace(mr.lineBreakRegex,`
|
|
`),D.style===void 0&&(it.style=it.style||"stroke: #333; stroke-width: 1.5px;fill:none"),it.labelStyle=it.labelStyle.replace("color:","fill:"))),it.id=z,it.class=j+" "+X,it.minlen=D.length||1,s.setEdge(m.db.lookUpDomId(D.start),m.db.lookUpDomId(D.end),it,N)})};const xl={setConf:function(u){for(var s=Object.keys(u),m=0;m<s.length;m++)g1[s[m]]=u[s[m]]},addVertices:y1,addEdges:vl,getClasses:function(u,s){b.info("Extracting classes"),s.db.clear();try{return s.parse(u),s.db.getClasses()}catch{return}},draw:function(u,s,m,E){b.info("Drawing flowchart"),E.db.clear();var C,N=Ft().securityLevel;N==="sandbox"&&(C=(0,T.select)("#i"+s));var M=N==="sandbox"?(0,T.select)(C.nodes()[0].contentDocument.body):(0,T.select)("body"),D=N==="sandbox"?C.nodes()[0].contentDocument:document;try{E.parser.parse(u)}catch{b.debug("Parsing failed")}var z=E.db.getDirection();z===void 0&&(z="TD");for(var j,X=Ft().flowchart,it=X.nodeSpacing||50,ut=X.rankSpacing||50,lt=new(_i()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:z,nodesep:it,ranksep:ut,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),Ot=E.db.getSubGraphs(),Lt=Ot.length-1;Lt>=0;Lt--)j=Ot[Lt],E.db.addVertex(j.id,j.title,"group",void 0,j.classes);var Yt=E.db.getVertices();b.warn("Get vertices",Yt);var qt=E.db.getEdges(),Nt=0;for(Nt=Ot.length-1;Nt>=0;Nt--){j=Ot[Nt],(0,T.selectAll)("cluster").append("text");for(var zt=0;zt<j.nodes.length;zt++)b.warn("Setting subgraph",j.nodes[zt],E.db.lookUpDomId(j.nodes[zt]),E.db.lookUpDomId(j.id)),lt.setParent(E.db.lookUpDomId(j.nodes[zt]),E.db.lookUpDomId(j.id))}y1(Yt,lt,s,M,D,E),vl(qt,lt,E);var Dt=new(Mi()).render;pd(Dt),Dt.arrows().none=function(je,lr,dr,Ge){var Ve=je.append("marker").attr("id",lr).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");Mi().util.applyStyle(Ve,dr[Ge+"Style"])},Dt.arrows().normal=function(je,lr){je.append("marker").attr("id",lr).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 te=M.select('[id="'.concat(s,'"]'));zn(E.db,te,s);var Re=M.select("#"+s+" g");for(Dt(Re,lt),Re.selectAll("g.node").attr("title",function(){return E.db.getTooltip(this.id)}),E.db.indexNodes("subGraph"+Nt),Nt=0;Nt<Ot.length;Nt++)if((j=Ot[Nt]).title!=="undefined"){var ke=D.querySelectorAll("#"+s+' [id="'+E.db.lookUpDomId(j.id)+'"] rect'),he=D.querySelectorAll("#"+s+' [id="'+E.db.lookUpDomId(j.id)+'"]'),Jt=ke[0].x.baseVal.value,ue=ke[0].y.baseVal.value,jt=ke[0].width.baseVal.value,ce=(0,T.select)(he[0]).select(".label");ce.attr("transform","translate(".concat(Jt+jt/2,", ").concat(ue+14,")")),ce.attr("id",s+"Text");for(var ae=0;ae<j.classes.length;ae++)he[0].classList.add(j.classes[ae])}fr(X.htmlLabels);for(var fe=D.querySelectorAll('[id="'+s+'"] .edgeLabel .label'),Me=0;Me<fe.length;Me++){var Fe=fe[Me],Ye=Fe.getBBox(),gr=D.createElementNS("http://www.w3.org/2000/svg","rect");gr.setAttribute("rx",0),gr.setAttribute("ry",0),gr.setAttribute("width",Ye.width),gr.setAttribute("height",Ye.height),Fe.insertBefore(gr,Fe.firstChild)}Ls(lt,te,X.diagramPadding,X.useMaxWidth),Object.keys(Yt).forEach(function(je){var lr=Yt[je];if(lr.link){var dr=M.select("#"+s+' [id="'+E.db.lookUpDomId(je)+'"]');if(dr){var Ge=D.createElementNS("http://www.w3.org/2000/svg","a");Ge.setAttributeNS("http://www.w3.org/2000/svg","class",lr.classes.join(" ")),Ge.setAttributeNS("http://www.w3.org/2000/svg","href",lr.link),Ge.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),N==="sandbox"?Ge.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):lr.linkTarget&&Ge.setAttributeNS("http://www.w3.org/2000/svg","target",lr.linkTarget);var Ve=dr.insert(function(){return Ge},":first-child"),br=dr.select(".label-container");br&&Ve.append(function(){return br.node()});var bn=dr.select(".label");bn&&Ve.append(function(){return bn.node()})}}})}};var m1={},_1=function(u,s,m,E,C,N){var M=E.select('[id="'.concat(m,'"]'));Object.keys(u).forEach(function(D){var z=u[D],j="default";z.classes.length>0&&(j=z.classes.join(" "));var X,it=Ma(z.styles),ut=z.text!==void 0?z.text:z.id;if(fr(Ft().flowchart.htmlLabels)){var lt={label:ut.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Dt){return"<i class='".concat(Dt.replace(":"," "),"'></i>")})};(X=Yi()(M,lt).node()).parentNode.removeChild(X)}else{var Ot=C.createElementNS("http://www.w3.org/2000/svg","text");Ot.setAttribute("style",it.labelStyle.replace("color:","fill:"));for(var Lt=ut.split(mr.lineBreakRegex),Yt=0;Yt<Lt.length;Yt++){var qt=C.createElementNS("http://www.w3.org/2000/svg","tspan");qt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),qt.setAttribute("dy","1em"),qt.setAttribute("x","1"),qt.textContent=Lt[Yt],Ot.appendChild(qt)}X=Ot}var Nt=0,zt="";switch(z.type){case"round":Nt=5,zt="rect";break;case"square":case"group":default:zt="rect";break;case"diamond":zt="question";break;case"hexagon":zt="hexagon";break;case"odd":case"odd_right":zt="rect_left_inv_arrow";break;case"lean_right":zt="lean_right";break;case"lean_left":zt="lean_left";break;case"trapezoid":zt="trapezoid";break;case"inv_trapezoid":zt="inv_trapezoid";break;case"circle":zt="circle";break;case"ellipse":zt="ellipse";break;case"stadium":zt="stadium";break;case"subroutine":zt="subroutine";break;case"cylinder":zt="cylinder";break;case"doublecircle":zt="doublecircle"}s.setNode(z.id,{labelStyle:it.labelStyle,shape:zt,labelText:ut,rx:Nt,ry:Nt,class:j,style:it.style,id:z.id,link:z.link,linkTarget:z.linkTarget,tooltip:N.db.getTooltip(z.id)||"",domId:N.db.lookUpDomId(z.id),haveCallback:z.haveCallback,width:z.type==="group"?500:void 0,dir:z.dir,type:z.type,props:z.props,padding:Ft().flowchart.padding}),b.info("setNode",{labelStyle:it.labelStyle,shape:zt,labelText:ut,rx:Nt,ry:Nt,class:j,style:it.style,id:z.id,domId:N.db.lookUpDomId(z.id),width:z.type==="group"?500:void 0,type:z.type,dir:z.dir,props:z.props,padding:Ft().flowchart.padding})})},b1=function(u,s,m){b.info("abc78 edges = ",u);var E,C,N=0,M={};if(u.defaultStyle!==void 0){var D=Ma(u.defaultStyle);E=D.style,C=D.labelStyle}u.forEach(function(z){N++;var j="L-"+z.start+"-"+z.end;M[j]===void 0?(M[j]=0,b.info("abc78 new entry",j,M[j])):(M[j]++,b.info("abc78 new entry",j,M[j]));var X=j+"-"+M[j];b.info("abc78 new link id to be used is",j,X,M[j]);var it="LS-"+z.start,ut="LE-"+z.end,lt={style:"",labelStyle:""};switch(lt.minlen=z.length||1,z.type==="arrow_open"?lt.arrowhead="none":lt.arrowhead="normal",lt.arrowTypeStart="arrow_open",lt.arrowTypeEnd="arrow_open",z.type){case"double_arrow_cross":lt.arrowTypeStart="arrow_cross";case"arrow_cross":lt.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":lt.arrowTypeStart="arrow_point";case"arrow_point":lt.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":lt.arrowTypeStart="arrow_circle";case"arrow_circle":lt.arrowTypeEnd="arrow_circle"}var Ot="",Lt="";switch(z.stroke){case"normal":Ot="fill:none;",E!==void 0&&(Ot=E),C!==void 0&&(Lt=C),lt.thickness="normal",lt.pattern="solid";break;case"dotted":lt.thickness="normal",lt.pattern="dotted",lt.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":lt.thickness="thick",lt.pattern="solid",lt.style="stroke-width: 3.5px;fill:none;"}if(z.style!==void 0){var Yt=Ma(z.style);Ot=Yt.style,Lt=Yt.labelStyle}lt.style=lt.style+=Ot,lt.labelStyle=lt.labelStyle+=Lt,z.interpolate!==void 0?lt.curve=ea(z.interpolate,T.curveLinear):u.defaultInterpolate!==void 0?lt.curve=ea(u.defaultInterpolate,T.curveLinear):lt.curve=ea(m1.curve,T.curveLinear),z.text===void 0?z.style!==void 0&&(lt.arrowheadStyle="fill: #333"):(lt.arrowheadStyle="fill: #333",lt.labelpos="c"),lt.labelType="text",lt.label=z.text.replace(mr.lineBreakRegex,`
|
|
`),z.style===void 0&&(lt.style=lt.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),lt.labelStyle=lt.labelStyle.replace("color:","fill:"),lt.id=X,lt.classes="flowchart-link "+it+" "+ut,s.setEdge(z.start,z.end,lt,N)})};const Eu={setConf:function(u){for(var s=Object.keys(u),m=0;m<s.length;m++)m1[s[m]]=u[s[m]]},addVertices:_1,addEdges:b1,getClasses:function(u,s){b.info("Extracting classes"),s.db.clear();try{return s.parse(u),s.db.getClasses()}catch{return}},draw:function(u,s,m,E){b.info("Drawing flowchart"),E.db.clear(),io.setGen("gen-2"),E.parser.parse(u);var C=E.db.getDirection();C===void 0&&(C="TD");var N,M=Ft().flowchart,D=M.nodeSpacing||50,z=M.rankSpacing||50,j=Ft().securityLevel;j==="sandbox"&&(N=(0,T.select)("#i"+s));var X,it=j==="sandbox"?(0,T.select)(N.nodes()[0].contentDocument.body):(0,T.select)("body"),ut=j==="sandbox"?N.nodes()[0].contentDocument:document,lt=new(_i()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:C,nodesep:D,ranksep:z,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),Ot=E.db.getSubGraphs();b.info("Subgraphs - ",Ot);for(var Lt=Ot.length-1;Lt>=0;Lt--)X=Ot[Lt],b.info("Subgraph - ",X),E.db.addVertex(X.id,X.title,"group",void 0,X.classes,X.dir);var Yt=E.db.getVertices(),qt=E.db.getEdges();b.info(qt);var Nt=0;for(Nt=Ot.length-1;Nt>=0;Nt--){X=Ot[Nt],(0,T.selectAll)("cluster").append("text");for(var zt=0;zt<X.nodes.length;zt++)b.info("Setting up subgraphs",X.nodes[zt],X.id),lt.setParent(X.nodes[zt],X.id)}_1(Yt,lt,s,it,ut,E),b1(qt,lt);var Dt=it.select('[id="'.concat(s,'"]'));zn(E.db,Dt,s);var te=it.select("#"+s+" g");if(hl(te,lt,["point","circle","cross"],"flowchart",s),Ls(lt,Dt,M.diagramPadding,M.useMaxWidth),E.db.indexNodes("subGraph"+Nt),!M.htmlLabels)for(var Re=ut.querySelectorAll('[id="'+s+'"] .edgeLabel .label'),ke=0;ke<Re.length;ke++){var he=Re[ke],Jt=he.getBBox(),ue=ut.createElementNS("http://www.w3.org/2000/svg","rect");ue.setAttribute("rx",0),ue.setAttribute("ry",0),ue.setAttribute("width",Jt.width),ue.setAttribute("height",Jt.height),he.insertBefore(ue,he.firstChild)}Object.keys(Yt).forEach(function(jt){var ce=Yt[jt];if(ce.link){var ae=(0,T.select)("#"+s+' [id="'+jt+'"]');if(ae){var fe=ut.createElementNS("http://www.w3.org/2000/svg","a");fe.setAttributeNS("http://www.w3.org/2000/svg","class",ce.classes.join(" ")),fe.setAttributeNS("http://www.w3.org/2000/svg","href",ce.link),fe.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),j==="sandbox"?fe.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ce.linkTarget&&fe.setAttributeNS("http://www.w3.org/2000/svg","target",ce.linkTarget);var Me=ae.insert(function(){return fe},":first-child"),Fe=ae.select(".label-container");Fe&&Me.append(function(){return Fe.node()});var Ye=ae.select(".label");Ye&&Me.append(function(){return Ye.node()})}}})}};var Tu=d(3602),Su=d.n(Tu);function zo(u,s){(s==null||s>u.length)&&(s=u.length);for(var m=0,E=new Array(s);m<s;m++)E[m]=u[m];return E}var Uo,Nc,wa="",wl="",kl="",fs=[],ps=[],Au={},Cu=[],Iu=[],$s="",El=["active","done","crit","milestone"],Hs=[],gs=!1,_o=!1,Nu=0,Tl=function(u,s,m,E){return!(E.indexOf(u.format(s.trim()))>=0)&&(u.isoWeekday()>=6&&m.indexOf("weekends")>=0||m.indexOf(u.format("dddd").toLowerCase())>=0||m.indexOf(u.format(s.trim()))>=0)},Lu=function(u,s,m,E){if(m.length&&!u.manualEndTime){var C=p()(u.startTime,s,!0);C.add(1,"d");var N=p()(u.endTime,s,!0),M=ys(C,N,s,m,E);u.endTime=N.toDate(),u.renderEndTime=M}},ys=function(u,s,m,E,C){for(var N=!1,M=null;u<=s;)N||(M=s.toDate()),(N=Tl(u,m,E,C))&&s.add(1,"d"),u.add(1,"d");return M},Mu=function(u,s,m){m=m.trim();var E=/^after\s+([\d\w- ]+)/.exec(m.trim());if(E!==null){var C=null;if(E[1].split(" ").forEach(function(D){var z=qs(D);z!==void 0&&(C?z.endTime>C.endTime&&(C=z):C=z)}),C)return C.endTime;var N=new Date;return N.setHours(0,0,0,0),N}var M=p()(m,s.trim(),!0);return M.isValid()?M.toDate():(b.debug("Invalid date:"+m),b.debug("With date format:"+s.trim()),new Date)},Yo=function(u,s){if(u!==null)switch(u[2]){case"s":s.add(u[1],"seconds");break;case"m":s.add(u[1],"minutes");break;case"h":s.add(u[1],"hours");break;case"d":s.add(u[1],"days");break;case"w":s.add(u[1],"weeks")}return s.toDate()},v1=function(u,s,m,E){E=E||!1,m=m.trim();var C=p()(m,s.trim(),!0);return C.isValid()?(E&&C.add(1,"d"),C.toDate()):Yo(/^([\d]+)([wdhms])/.exec(m.trim()),p()(u))},x1=0,ms=function(u){return u===void 0?"task"+(x1+=1):u},vi=[],w1={},qs=function(u){var s=w1[u];return vi[s]},k1=function(){for(var u=function(E){var C=vi[E],N="";switch(vi[E].raw.startTime.type){case"prevTaskEnd":var M=qs(C.prevTaskId);C.startTime=M.endTime;break;case"getStartDate":(N=Mu(0,wa,vi[E].raw.startTime.startData))&&(vi[E].startTime=N)}return vi[E].startTime&&(vi[E].endTime=v1(vi[E].startTime,wa,vi[E].raw.endTime.data,gs),vi[E].endTime&&(vi[E].processed=!0,vi[E].manualEndTime=p()(vi[E].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Lu(vi[E],wa,ps,fs))),vi[E].processed},s=!0,m=0;m<vi.length;m++)u(m),s=s&&vi[m].processed;return s},Ou=function(u,s){u.split(",").forEach(function(m){var E=qs(m);E!==void 0&&E.classes.push(s)})},E1=function(u,s){Hs.push(function(){var m=document.querySelector('[id="'.concat(u,'"]'));m!==null&&m.addEventListener("click",function(){s()})}),Hs.push(function(){var m=document.querySelector('[id="'.concat(u,'-text"]'));m!==null&&m.addEventListener("click",function(){s()})})};const T1={parseDirective:function(u,s,m){wr.parseDirective(this,u,s,m)},getConfig:function(){return Ft().gantt},clear:function(){Cu=[],Iu=[],$s="",Hs=[],x1=0,Uo=void 0,Nc=void 0,vi=[],wa="",wl="",kl="",fs=[],ps=[],gs=!1,_o=!1,Nu=0,Au={},Yn()},setDateFormat:function(u){wa=u},getDateFormat:function(){return wa},enableInclusiveEndDates:function(){gs=!0},endDatesAreInclusive:function(){return gs},enableTopAxis:function(){_o=!0},topAxisEnabled:function(){return _o},setAxisFormat:function(u){wl=u},getAxisFormat:function(){return wl},setTodayMarker:function(u){kl=u},getTodayMarker:function(){return kl},setAccTitle:ee,getAccTitle:kn,setDiagramTitle:Na,getDiagramTitle:Fi,setAccDescription:si,getAccDescription:di,addSection:function(u){$s=u,Cu.push(u)},getSections:function(){return Cu},getTasks:function(){for(var u=k1(),s=0;!u&&s<10;)u=k1(),s++;return Iu=vi},addTask:function(u,s){var m={section:$s,type:$s,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:s},task:u,classes:[]},E=function(N,M){var D=(M.substr(0,1)===":"?M.substr(1,M.length):M).split(","),z={};Du(D,z,El);for(var j=0;j<D.length;j++)D[j]=D[j].trim();switch(D.length){case 1:z.id=ms(),z.startTime={type:"prevTaskEnd",id:N},z.endTime={data:D[0]};break;case 2:z.id=ms(),z.startTime={type:"getStartDate",startData:D[0]},z.endTime={data:D[1]};break;case 3:z.id=ms(D[0]),z.startTime={type:"getStartDate",startData:D[1]},z.endTime={data:D[2]}}return z}(Nc,s);m.raw.startTime=E.startTime,m.raw.endTime=E.endTime,m.id=E.id,m.prevTaskId=Nc,m.active=E.active,m.done=E.done,m.crit=E.crit,m.milestone=E.milestone,m.order=Nu,Nu++;var C=vi.push(m);Nc=m.id,w1[m.id]=C-1},findTaskById:qs,addTaskOrg:function(u,s){var m={section:$s,type:$s,description:u,task:u,classes:[]},E=function(C,N){var M=(N.substr(0,1)===":"?N.substr(1,N.length):N).split(","),D={};Du(M,D,El);for(var z=0;z<M.length;z++)M[z]=M[z].trim();var j="";switch(M.length){case 1:D.id=ms(),D.startTime=C.endTime,j=M[0];break;case 2:D.id=ms(),D.startTime=Mu(0,wa,M[0]),j=M[1];break;case 3:D.id=ms(M[0]),D.startTime=Mu(0,wa,M[1]),j=M[2]}return j&&(D.endTime=v1(D.startTime,wa,j,gs),D.manualEndTime=p()(j,"YYYY-MM-DD",!0).isValid(),Lu(D,wa,ps,fs)),D}(Uo,s);m.startTime=E.startTime,m.endTime=E.endTime,m.id=E.id,m.active=E.active,m.done=E.done,m.crit=E.crit,m.milestone=E.milestone,Uo=m,Iu.push(m)},setIncludes:function(u){fs=u.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return fs},setExcludes:function(u){ps=u.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return ps},setClickEvent:function(u,s,m){u.split(",").forEach(function(E){(function(C,N,M){if(Ft().securityLevel==="loose"&&N!==void 0){var D=[];if(typeof M=="string"){D=M.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var z=0;z<D.length;z++){var j=D[z].trim();j.charAt(0)==='"'&&j.charAt(j.length-1)==='"'&&(j=j.substr(1,j.length-2)),D[z]=j}}D.length===0&&D.push(C),qs(C)!==void 0&&E1(C,function(){var X;rn.runFunc.apply(rn,[N].concat(function(it){if(Array.isArray(it))return zo(it)}(X=D)||function(it){if(typeof Symbol<"u"&&it[Symbol.iterator]!=null||it["@@iterator"]!=null)return Array.from(it)}(X)||function(it,ut){if(it){if(typeof it=="string")return zo(it,ut);var lt=Object.prototype.toString.call(it).slice(8,-1);return lt==="Object"&&it.constructor&&(lt=it.constructor.name),lt==="Map"||lt==="Set"?Array.from(it):lt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(lt)?zo(it,ut):void 0}}(X)||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.`)}()))})}})(E,s,m)}),Ou(u,"clickable")},setLink:function(u,s){var m=s;Ft().securityLevel!=="loose"&&(m=(0,ci.N)(s)),u.split(",").forEach(function(E){qs(E)!==void 0&&(E1(E,function(){window.open(m,"_self")}),Au[E]=m)}),Ou(u,"clickable")},getLinks:function(){return Au},bindFunctions:function(u){Hs.forEach(function(s){s(u)})},durationToDate:Yo,isInvalidDate:Tl};function Du(u,s,m){for(var E=!0;E;)E=!1,m.forEach(function(C){var N=new RegExp("^\\s*"+C+"\\s*$");u[0].match(N)&&(s[C]=!0,u.shift(1),E=!0)})}var bo;const Sl={setConf:function(){b.debug("Something is calling, setConf, remove the call")},draw:function(u,s,m,E){var C,N=Ft().gantt,M=Ft().securityLevel;M==="sandbox"&&(C=(0,T.select)("#i"+s));var D=M==="sandbox"?(0,T.select)(C.nodes()[0].contentDocument.body):(0,T.select)("body"),z=M==="sandbox"?C.nodes()[0].contentDocument:document,j=z.getElementById(s);(bo=j.parentElement.offsetWidth)===void 0&&(bo=1200),N.useWidth!==void 0&&(bo=N.useWidth);var X=E.db.getTasks(),it=X.length*(N.barHeight+N.barGap)+2*N.topPadding;j.setAttribute("viewBox","0 0 "+bo+" "+it);for(var ut=D.select('[id="'.concat(s,'"]')),lt=(0,T.scaleTime)().domain([(0,T.min)(X,function(qt){return qt.startTime}),(0,T.max)(X,function(qt){return qt.endTime})]).rangeRound([0,bo-N.leftPadding-N.rightPadding]),Ot=[],Lt=0;Lt<X.length;Lt++)Ot.push(X[Lt].type);var Yt=Ot;Ot=function(qt){for(var Nt={},zt=[],Dt=0,te=qt.length;Dt<te;++Dt)Object.prototype.hasOwnProperty.call(Nt,qt[Dt])||(Nt[qt[Dt]]=!0,zt.push(qt[Dt]));return zt}(Ot),X.sort(function(qt,Nt){var zt=qt.startTime,Dt=Nt.startTime,te=0;return zt>Dt?te=1:zt<Dt&&(te=-1),te}),function(qt,Nt,zt){var Dt=N.barHeight,te=Dt+N.barGap,Re=N.topPadding,ke=N.leftPadding;(0,T.scaleLinear)().domain([0,Ot.length]).range(["#00B9FA","#F95002"]).interpolate(T.interpolateHcl),function(he,Jt,ue,jt,ce,ae,fe,Me){var Fe=ae.reduce(function(Ge,Ve){var br=Ve.startTime;return Ge?Math.min(Ge,br):br},0),Ye=ae.reduce(function(Ge,Ve){var br=Ve.endTime;return Ge?Math.max(Ge,br):br},0),gr=E.db.getDateFormat();if(Fe&&Ye){for(var je=[],lr=null,dr=p()(Fe);dr.valueOf()<=Ye;)E.db.isInvalidDate(dr,gr,fe,Me)?lr?lr.end=dr.clone():lr={start:dr.clone(),end:dr.clone()}:lr&&(je.push(lr),lr=null),dr.add(1,"d");ut.append("g").selectAll("rect").data(je).enter().append("rect").attr("id",function(Ge){return"exclude-"+Ge.start.format("YYYY-MM-DD")}).attr("x",function(Ge){return lt(Ge.start)+ue}).attr("y",N.gridLineStartPadding).attr("width",function(Ge){var Ve=Ge.end.clone().add(1,"day");return lt(Ve)-lt(Ge.start)}).attr("height",ce-Jt-N.gridLineStartPadding).attr("transform-origin",function(Ge,Ve){return(lt(Ge.start)+ue+.5*(lt(Ge.end)-lt(Ge.start))).toString()+"px "+(Ve*he+.5*ce).toString()+"px"}).attr("class","exclude-range")}}(te,Re,ke,0,zt,qt,E.db.getExcludes(),E.db.getIncludes()),function(he,Jt,ue,jt){var ce=(0,T.axisBottom)(lt).tickSize(-jt+Jt+N.gridLineStartPadding).tickFormat((0,T.timeFormat)(E.db.getAxisFormat()||N.axisFormat||"%Y-%m-%d"));if(ut.append("g").attr("class","grid").attr("transform","translate("+he+", "+(jt-50)+")").call(ce).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),E.db.topAxisEnabled()||N.topAxis){var ae=(0,T.axisTop)(lt).tickSize(-jt+Jt+N.gridLineStartPadding).tickFormat((0,T.timeFormat)(E.db.getAxisFormat()||N.axisFormat||"%Y-%m-%d"));ut.append("g").attr("class","grid").attr("transform","translate("+he+", "+Jt+")").call(ae).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(ke,Re,0,zt),function(he,Jt,ue,jt,ce,ae,fe){ut.append("g").selectAll("rect").data(he).enter().append("rect").attr("x",0).attr("y",function(je,lr){return je.order*Jt+ue-2}).attr("width",function(){return fe-N.rightPadding/2}).attr("height",Jt).attr("class",function(je){for(var lr=0;lr<Ot.length;lr++)if(je.type===Ot[lr])return"section section"+lr%N.numberSectionStyles;return"section section0"});var Me=ut.append("g").selectAll("rect").data(he).enter(),Fe=E.db.getLinks();if(Me.append("rect").attr("id",function(je){return je.id}).attr("rx",3).attr("ry",3).attr("x",function(je){return je.milestone?lt(je.startTime)+jt+.5*(lt(je.endTime)-lt(je.startTime))-.5*ce:lt(je.startTime)+jt}).attr("y",function(je,lr){return je.order*Jt+ue}).attr("width",function(je){return je.milestone?ce:lt(je.renderEndTime||je.endTime)-lt(je.startTime)}).attr("height",ce).attr("transform-origin",function(je,lr){return lr=je.order,(lt(je.startTime)+jt+.5*(lt(je.endTime)-lt(je.startTime))).toString()+"px "+(lr*Jt+ue+.5*ce).toString()+"px"}).attr("class",function(je){var lr="";je.classes.length>0&&(lr=je.classes.join(" "));for(var dr=0,Ge=0;Ge<Ot.length;Ge++)je.type===Ot[Ge]&&(dr=Ge%N.numberSectionStyles);var Ve="";return je.active?je.crit?Ve+=" activeCrit":Ve=" active":je.done?Ve=je.crit?" doneCrit":" done":je.crit&&(Ve+=" crit"),Ve.length===0&&(Ve=" task"),je.milestone&&(Ve=" milestone "+Ve),"task"+(Ve+=dr)+" "+lr}),Me.append("text").attr("id",function(je){return je.id+"-text"}).text(function(je){return je.task}).attr("font-size",N.fontSize).attr("x",function(je){var lr=lt(je.startTime),dr=lt(je.renderEndTime||je.endTime);je.milestone&&(lr+=.5*(lt(je.endTime)-lt(je.startTime))-.5*ce),je.milestone&&(dr=lr+ce);var Ge=this.getBBox().width;return Ge>dr-lr?dr+Ge+1.5*N.leftPadding>fe?lr+jt-5:dr+jt+5:(dr-lr)/2+lr+jt}).attr("y",function(je,lr){return je.order*Jt+N.barHeight/2+(N.fontSize/2-2)+ue}).attr("text-height",ce).attr("class",function(je){var lr=lt(je.startTime),dr=lt(je.endTime);je.milestone&&(dr=lr+ce);var Ge=this.getBBox().width,Ve="";je.classes.length>0&&(Ve=je.classes.join(" "));for(var br=0,bn=0;bn<Ot.length;bn++)je.type===Ot[bn]&&(br=bn%N.numberSectionStyles);var Sn="";return je.active&&(Sn=je.crit?"activeCritText"+br:"activeText"+br),je.done?Sn=je.crit?Sn+" doneCritText"+br:Sn+" doneText"+br:je.crit&&(Sn=Sn+" critText"+br),je.milestone&&(Sn+=" milestoneText"),Ge>dr-lr?dr+Ge+1.5*N.leftPadding>fe?Ve+" taskTextOutsideLeft taskTextOutside"+br+" "+Sn:Ve+" taskTextOutsideRight taskTextOutside"+br+" "+Sn+" width-"+Ge:Ve+" taskText taskText"+br+" "+Sn+" width-"+Ge}),Ft().securityLevel==="sandbox"){var Ye;Ye=(0,T.select)("#i"+s),(0,T.select)(Ye.nodes()[0].contentDocument.body);var gr=Ye.nodes()[0].contentDocument;Me.filter(function(je){return Fe[je.id]!==void 0}).each(function(je){var lr=gr.querySelector("#"+je.id),dr=gr.querySelector("#"+je.id+"-text"),Ge=lr.parentNode,Ve=gr.createElement("a");Ve.setAttribute("xlink:href",Fe[je.id]),Ve.setAttribute("target","_top"),Ge.appendChild(Ve),Ve.appendChild(lr),Ve.appendChild(dr)})}}(qt,te,Re,ke,Dt,0,Nt),function(he,Jt){for(var ue=[],jt=0,ce=0;ce<Ot.length;ce++)ue[ce]=[Ot[ce],(ae=Ot[ce],fe=Yt,function(Me){for(var Fe=Me.length,Ye={};Fe;)Ye[Me[--Fe]]=(Ye[Me[Fe]]||0)+1;return Ye}(fe)[ae]||0)];var ae,fe;ut.append("g").selectAll("text").data(ue).enter().append(function(Me){var Fe=Me[0].split(mr.lineBreakRegex),Ye=-(Fe.length-1)/2,gr=z.createElementNS("http://www.w3.org/2000/svg","text");gr.setAttribute("dy",Ye+"em");for(var je=0;je<Fe.length;je++){var lr=z.createElementNS("http://www.w3.org/2000/svg","tspan");lr.setAttribute("alignment-baseline","central"),lr.setAttribute("x","10"),je>0&&lr.setAttribute("dy","1em"),lr.textContent=Fe[je],gr.appendChild(lr)}return gr}).attr("x",10).attr("y",function(Me,Fe){if(!(Fe>0))return Me[1]*he/2+Jt;for(var Ye=0;Ye<Fe;Ye++)return jt+=ue[Fe-1][1],Me[1]*he/2+jt*he+Jt}).attr("font-size",N.sectionFontSize).attr("font-size",N.sectionFontSize).attr("class",function(Me){for(var Fe=0;Fe<Ot.length;Fe++)if(Me[0]===Ot[Fe])return"sectionTitle sectionTitle"+Fe%N.numberSectionStyles;return"sectionTitle"})}(te,Re),function(he,Jt,ue,jt){var ce=E.db.getTodayMarker();if(ce!=="off"){var ae=ut.append("g").attr("class","today"),fe=new Date,Me=ae.append("line");Me.attr("x1",lt(fe)+he).attr("x2",lt(fe)+he).attr("y1",N.titleTopMargin).attr("y2",jt-N.titleTopMargin).attr("class","today"),ce!==""&&Me.attr("style",ce.replace(/,/g,";"))}}(ke,0,0,zt)}(X,bo,it),ra(ut,it,bo,N.useMaxWidth),ut.append("text").text(E.db.getDiagramTitle()).attr("x",bo/2).attr("y",N.titleTopMargin).attr("class","titleText"),zn(E.db,ut,s)}};var S1=d(9959),A1=d.n(S1),Al="",Ru=!1;const C1={setMessage:function(u){b.debug("Setting message to: "+u),Al=u},getMessage:function(){return Al},setInfo:function(u){Ru=u},getInfo:function(){return Ru}},gd={draw:function(u,s,m,E){try{b.debug(`Renering info diagram
|
|
`+u);var C,N=Ft().securityLevel;N==="sandbox"&&(C=(0,T.select)("#i"+s));var M=N==="sandbox"?(0,T.select)(C.nodes()[0].contentDocument.body):(0,T.select)("body"),D=(N==="sandbox"&&C.nodes()[0].contentDocument,M.select("#"+s));D.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+m),D.attr("height",100),D.attr("width",400)}catch(z){b.error("Error while rendering info diagram"),b.error(z.message)}}};var Cl=d(6765),Ga=d.n(Cl),Bu=d(7062),Fu=d.n(Bu),Ws={},Lc=!1;const I1={parseDirective:function(u,s,m){wr.parseDirective(this,u,s,m)},getConfig:function(){return Ft().pie},addSection:function(u,s){u=mr.sanitizeText(u,Ft()),Ws[u]===void 0&&(Ws[u]=s,b.debug("Added new section :",u))},getSections:function(){return Ws},cleanupValue:function(u){return u.substring(0,1)===":"&&(u=u.substring(1).trim()),Number(u.trim())},clear:function(){Ws={},Lc=!1,Yn()},setAccTitle:ee,getAccTitle:kn,setDiagramTitle:Na,getDiagramTitle:Fi,setShowData:function(u){Lc=u},getShowData:function(){return Lc},getAccDescription:di,setAccDescription:si};var jo,Fa=Ft();const ao={draw:function(u,s,m,E){try{Fa=Ft(),b.debug(`Rendering info diagram
|
|
`+u);var C,N=Ft().securityLevel;N==="sandbox"&&(C=(0,T.select)("#i"+s));var M=N==="sandbox"?(0,T.select)(C.nodes()[0].contentDocument.body):(0,T.select)("body"),D=N==="sandbox"?C.nodes()[0].contentDocument:document;E.db.clear(),E.parser.parse(u),b.debug("Parsed info diagram");var z=D.getElementById(s);(jo=z.parentElement.offsetWidth)===void 0&&(jo=1200),Fa.useWidth!==void 0&&(jo=Fa.useWidth),Fa.pie.useWidth!==void 0&&(jo=Fa.pie.useWidth);var j=M.select("#"+s);ra(j,450,jo,Fa.pie.useMaxWidth),zn(E.db,j,s),z.setAttribute("viewBox","0 0 "+jo+" 450");var X=Math.min(jo,450)/2-40,it=j.append("g").attr("transform","translate("+jo/2+",225)"),ut=E.db.getSections(),lt=0;Object.keys(ut).forEach(function(Dt){lt+=ut[Dt]});var Ot=Fa.themeVariables,Lt=[Ot.pie1,Ot.pie2,Ot.pie3,Ot.pie4,Ot.pie5,Ot.pie6,Ot.pie7,Ot.pie8,Ot.pie9,Ot.pie10,Ot.pie11,Ot.pie12],Yt=(0,T.scaleOrdinal)().range(Lt),qt=(0,T.pie)().value(function(Dt){return Dt[1]})(Object.entries(ut)),Nt=(0,T.arc)().innerRadius(0).outerRadius(X);it.selectAll("mySlices").data(qt).enter().append("path").attr("d",Nt).attr("fill",function(Dt){return Yt(Dt.data[0])}).attr("class","pieCircle"),it.selectAll("mySlices").data(qt).enter().append("text").text(function(Dt){return(Dt.data[1]/lt*100).toFixed(0)+"%"}).attr("transform",function(Dt){return"translate("+Nt.centroid(Dt)+")"}).style("text-anchor","middle").attr("class","slice"),it.append("text").text(E.db.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var zt=it.selectAll(".legend").data(Yt.domain()).enter().append("g").attr("class","legend").attr("transform",function(Dt,te){return"translate(216,"+(22*te-22*Yt.domain().length/2)+")"});zt.append("rect").attr("width",18).attr("height",18).style("fill",Yt).style("stroke",Yt),zt.data(qt).append("text").attr("x",22).attr("y",14).text(function(Dt){return E.db.getShowData()||Fa.showData||Fa.pie.showData?Dt.data[0]+" ["+Dt.data[1]+"]":Dt.data[0]})}catch(Dt){b.error("Error while rendering info diagram"),b.error(Dt)}}};var N1=d(3176),L1=d.n(N1),Mc=[],Vi={},$o={},Pa={},Gs={};const M1={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(u,s,m){wr.parseDirective(this,u,s,m)},getConfig:function(){return Ft().req},addRequirement:function(u,s){return $o[u]===void 0&&($o[u]={name:u,type:s,id:Vi.id,text:Vi.text,risk:Vi.risk,verifyMethod:Vi.verifyMethod}),Vi={},$o[u]},getRequirements:function(){return $o},setNewReqId:function(u){Vi!==void 0&&(Vi.id=u)},setNewReqText:function(u){Vi!==void 0&&(Vi.text=u)},setNewReqRisk:function(u){Vi!==void 0&&(Vi.risk=u)},setNewReqVerifyMethod:function(u){Vi!==void 0&&(Vi.verifyMethod=u)},setAccTitle:ee,getAccTitle:kn,setAccDescription:si,getAccDescription:di,addElement:function(u){return Gs[u]===void 0&&(Gs[u]={name:u,type:Pa.type,docRef:Pa.docRef},b.info("Added new requirement: ",u)),Pa={},Gs[u]},getElements:function(){return Gs},setNewElementType:function(u){Pa!==void 0&&(Pa.type=u)},setNewElementDocRef:function(u){Pa!==void 0&&(Pa.docRef=u)},addRelationship:function(u,s,m){Mc.push({type:u,src:s,dst:m})},getRelationships:function(){return Mc},clear:function(){Mc=[],Vi={},$o={},Pa={},Gs={},Yn()}};var Il={CONTAINS:"contains",ARROW:"arrow"};const yd=Il;var Tn={},Ho=0,Pu=function(u,s){return u.insert("rect","#"+s).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Tn.rect_min_width+"px").attr("height",Tn.rect_min_height+"px")},O1=function(u,s,m){var E=Tn.rect_min_width/2,C=u.append("text").attr("class","req reqLabel reqTitle").attr("id",s).attr("x",E).attr("y",Tn.rect_padding).attr("dominant-baseline","hanging"),N=0;m.forEach(function(D){N==0?C.append("tspan").attr("text-anchor","middle").attr("x",Tn.rect_min_width/2).attr("dy",0).text(D):C.append("tspan").attr("text-anchor","middle").attr("x",Tn.rect_min_width/2).attr("dy",.75*Tn.line_height).text(D),N++});var M=1.5*Tn.rect_padding+N*Tn.line_height*.75;return u.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Tn.rect_min_width).attr("y1",M).attr("y2",M),{titleNode:C,y:M}},vo=function(u,s,m,E){var C=u.append("text").attr("class","req reqLabel").attr("id",s).attr("x",Tn.rect_padding).attr("y",E).attr("dominant-baseline","hanging"),N=0,M=[];return m.forEach(function(D){for(var z=D.length;z>30&&N<3;){var j=D.substring(0,30);z=(D=D.substring(30,D.length)).length,M[M.length]=j,N++}if(N==3){var X=M[M.length-1];M[M.length-1]=X.substring(0,X.length-4)+"..."}else M[M.length]=D;N=0}),M.forEach(function(D){C.append("tspan").attr("x",Tn.rect_padding).attr("dy",Tn.line_height).text(D)}),C},Vs=function(u){return u.replace(/\s/g,"").replace(/\./g,"_")};const md={draw:function(u,s,m,E){Tn=Ft().requirement,E.db.clear(),E.parser.parse(u);var C,N=Tn.securityLevel;N==="sandbox"&&(C=(0,T.select)("#i"+s));var M=N==="sandbox"?(0,T.select)(C.nodes()[0].contentDocument.body):(0,T.select)("body"),D=(N==="sandbox"&&C.nodes()[0].contentDocument,M.select("[id='".concat(s,"']")));(function(zt,Dt){var te=zt.append("defs").append("marker").attr("id",Il.CONTAINS+"_line_ending").attr("refX",0).attr("refY",Dt.line_height/2).attr("markerWidth",Dt.line_height).attr("markerHeight",Dt.line_height).attr("orient","auto").append("g");te.append("circle").attr("cx",Dt.line_height/2).attr("cy",Dt.line_height/2).attr("r",Dt.line_height/2).attr("fill","none"),te.append("line").attr("x1",0).attr("x2",Dt.line_height).attr("y1",Dt.line_height/2).attr("y2",Dt.line_height/2).attr("stroke-width",1),te.append("line").attr("y1",0).attr("y2",Dt.line_height).attr("x1",Dt.line_height/2).attr("x2",Dt.line_height/2).attr("stroke-width",1),zt.append("defs").append("marker").attr("id",Il.ARROW+"_line_ending").attr("refX",Dt.line_height).attr("refY",.5*Dt.line_height).attr("markerWidth",Dt.line_height).attr("markerHeight",Dt.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
|
L`.concat(Dt.line_height,",").concat(Dt.line_height/2,`
|
|
M`).concat(Dt.line_height,",").concat(Dt.line_height/2,`
|
|
L0,`).concat(Dt.line_height)).attr("stroke-width",1)})(D,Tn);var z,j,X,it=new(_i()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Tn.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),ut=E.db.getRequirements(),lt=E.db.getElements(),Ot=E.db.getRelationships();z=ut,j=it,X=D,Object.keys(z).forEach(function(zt){var Dt=z[zt];zt=Vs(zt),b.info("Added new requirement: ",zt);var te=X.append("g").attr("id",zt),Re=Pu(te,"req-"+zt),ke=O1(te,zt+"_title",["<<".concat(Dt.type,">>"),"".concat(Dt.name)]);vo(te,zt+"_body",["Id: ".concat(Dt.id),"Text: ".concat(Dt.text),"Risk: ".concat(Dt.risk),"Verification: ".concat(Dt.verifyMethod)],ke.y);var he=Re.node().getBBox();j.setNode(zt,{width:he.width,height:he.height,shape:"rect",id:zt})}),function(zt,Dt,te){Object.keys(zt).forEach(function(Re){var ke=zt[Re],he=Vs(Re),Jt=te.append("g").attr("id",he),ue="element-"+he,jt=Pu(Jt,ue),ce=O1(Jt,ue+"_title",["<<Element>>","".concat(Re)]);vo(Jt,ue+"_body",["Type: ".concat(ke.type||"Not Specified"),"Doc Ref: ".concat(ke.docRef||"None")],ce.y);var ae=jt.node().getBBox();Dt.setNode(he,{width:ae.width,height:ae.height,shape:"rect",id:he})})}(lt,it,D),function(zt,Dt){zt.forEach(function(te){var Re=Vs(te.src),ke=Vs(te.dst);Dt.setEdge(Re,ke,{relationship:te})})}(Ot,it),cs().layout(it),function(zt,Dt){Dt.nodes().forEach(function(te){te!==void 0&&Dt.node(te)!==void 0&&(zt.select("#"+te),zt.select("#"+te).attr("transform","translate("+(Dt.node(te).x-Dt.node(te).width/2)+","+(Dt.node(te).y-Dt.node(te).height/2)+" )"))})}(D,it),Ot.forEach(function(zt){(function(Dt,te,Re,ke,he){var Jt=Re.edge(Vs(te.src),Vs(te.dst)),ue=(0,T.line)().x(function(ce){return ce.x}).y(function(ce){return ce.y}),jt=Dt.insert("path","#"+ke).attr("class","er relationshipLine").attr("d",ue(Jt.points)).attr("fill","none");te.type==he.db.Relationships.CONTAINS?jt.attr("marker-start","url("+mr.getUrl(Tn.arrowMarkerAbsolute)+"#"+te.type+"_line_ending)"):(jt.attr("stroke-dasharray","10,7"),jt.attr("marker-end","url("+mr.getUrl(Tn.arrowMarkerAbsolute)+"#"+yd.ARROW+"_line_ending)")),function(ce,ae,fe,Me){var Fe=ae.node().getTotalLength(),Ye=ae.node().getPointAtLength(.5*Fe),gr="rel"+Ho;Ho++;var je=ce.append("text").attr("class","req relationshipLabel").attr("id",gr).attr("x",Ye.x).attr("y",Ye.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(Me).node().getBBox();ce.insert("rect","#"+gr).attr("class","req reqLabelBox").attr("x",Ye.x-je.width/2).attr("y",Ye.y-je.height/2).attr("width",je.width).attr("height",je.height).attr("fill","white").attr("fill-opacity","85%")}(Dt,jt,0,"<<".concat(te.type,">>"))})(D,zt,it,s,E)});var Lt=Tn.rect_padding,Yt=D.node().getBBox(),qt=Yt.width+2*Lt,Nt=Yt.height+2*Lt;ra(D,Nt,qt,Tn.useMaxWidth),D.attr("viewBox","".concat(Yt.x-Lt," ").concat(Yt.y-Lt," ").concat(qt," ").concat(Nt)),zn(E.db,D,s)}};var zu,_d=d(6876),xo=d.n(_d),Zs=void 0,oo={},ka=[],Nl=!1,Uu=function(u,s,m,E){var C=oo[u];C&&s===C.name&&m==null||(m!=null&&m.text!=null||(m={text:s,wrap:null,type:E}),E!=null&&m.text!=null||(m={text:s,wrap:null,type:E}),oo[u]={name:s,description:m.text,wrap:m.wrap===void 0&&qo()||!!m.wrap,prevActor:Zs,links:{},properties:{},actorCnt:null,rectData:null,type:E||"participant"},Zs&&oo[Zs]&&(oo[Zs].nextActor=u),Zs=u)},bd=function(u){var s,m=0;for(s=0;s<ka.length;s++)ka[s].type===wo.ACTIVE_START&&ka[s].from.actor===u&&m++,ka[s].type===wo.ACTIVE_END&&ka[s].from.actor===u&&m--;return m},za=function(u,s){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{text:void 0,wrap:void 0},E=arguments.length>3?arguments[3]:void 0;if(E===wo.ACTIVE_END){var C=bd(u.actor);if(C<1){var N=new Error("Trying to inactivate an inactive participant ("+u.actor+")");throw N.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},N}}return ka.push({from:u,to:s,message:m.text,wrap:m.wrap===void 0&&qo()||!!m.wrap,type:E}),!0},xi=function(u){return oo[u]},qo=function(){return zu!==void 0?zu:Ft().sequence.wrap},wo={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},_s=function(u,s,m){m.text,m.wrap===void 0&&qo()||m.wrap;var E=[].concat(u,u);ka.push({from:E[0],to:E[1],message:m.text,wrap:m.wrap===void 0&&qo()||!!m.wrap,type:wo.NOTE,placement:s})},Yu=function(u,s){var m=xi(u);try{var E=fn(s.text,Ft());E=(E=E.replace(/&/g,"&")).replace(/=/g,"="),Ll(m,JSON.parse(E))}catch(C){b.error("error while parsing actor link text",C)}};function Ll(u,s){if(u.links==null)u.links=s;else for(var m in s)u.links[m]=s[m]}var ju=function(u,s){var m=xi(u);try{var E=fn(s.text,Ft());Zi(m,JSON.parse(E))}catch(C){b.error("error while parsing actor properties text",C)}};function Zi(u,s){if(u.properties==null)u.properties=s;else for(var m in s)u.properties[m]=s[m]}var Oc=function(u,s){var m=xi(u),E=document.getElementById(s.text);try{var C=E.innerHTML,N=JSON.parse(C);N.properties&&Zi(m,N.properties),N.links&&Ll(m,N.links)}catch(M){b.error("error while parsing actor details text",M)}};const $u={addActor:Uu,addMessage:function(u,s,m,E){ka.push({from:u,to:s,message:m.text,wrap:m.wrap===void 0&&qo()||!!m.wrap,answer:E})},addSignal:za,addLinks:Yu,addDetails:Oc,addProperties:ju,autoWrap:qo,setWrap:function(u){zu=u},enableSequenceNumbers:function(){Nl=!0},disableSequenceNumbers:function(){Nl=!1},showSequenceNumbers:function(){return Nl},getMessages:function(){return ka},getActors:function(){return oo},getActor:xi,getActorKeys:function(){return Object.keys(oo)},getActorProperty:function(u,s){if(u!==void 0&&u.properties!==void 0)return u.properties[s]},getAccTitle:kn,getDiagramTitle:Fi,setDiagramTitle:Na,parseDirective:function(u,s,m){wr.parseDirective(this,u,s,m)},getConfig:function(){return Ft().sequence},clear:function(){oo={},ka=[],Nl=!1,Yn()},parseMessage:function(u){var s=u.trim(),m={text:s.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:s.match(/^[:]?wrap:/)!==null||s.match(/^[:]?nowrap:/)===null&&void 0};return b.debug("parseMessage:",m),m},LINETYPE:wo,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:_s,setAccTitle:ee,apply:function u(s){if(s instanceof Array)s.forEach(function(m){u(m)});else switch(s.type){case"sequenceIndex":ka.push({from:void 0,to:void 0,message:{start:s.sequenceIndex,step:s.sequenceIndexStep,visible:s.sequenceVisible},wrap:!1,type:s.signalType});break;case"addParticipant":Uu(s.actor,s.actor,s.description,"participant");break;case"addActor":Uu(s.actor,s.actor,s.description,"actor");break;case"activeStart":case"activeEnd":za(s.actor,void 0,void 0,s.signalType);break;case"addNote":_s(s.actor,s.placement,s.text);break;case"addLinks":Yu(s.actor,s.text);break;case"addALink":(function(m,E){var C=xi(m);try{var N={},M=fn(E.text,Ft()),D=M.indexOf("@"),z=(M=(M=M.replace(/&/g,"&")).replace(/=/g,"=")).slice(0,D-1).trim(),j=M.slice(D+1).trim();N[z]=j,Ll(C,N)}catch(X){b.error("error while parsing actor link text",X)}})(s.actor,s.text);break;case"addProperties":ju(s.actor,s.text);break;case"addDetails":Oc(s.actor,s.text);break;case"addMessage":za(s.from,s.to,s.msg,s.signalType);break;case"loopStart":za(void 0,void 0,s.loopText,s.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":za(void 0,void 0,void 0,s.signalType);break;case"rectStart":za(void 0,void 0,s.color,s.signalType);break;case"optStart":za(void 0,void 0,s.optText,s.signalType);break;case"altStart":case"else":za(void 0,void 0,s.altText,s.signalType);break;case"setAccTitle":ee(s.text);break;case"parStart":case"and":za(void 0,void 0,s.parText,s.signalType);break;case"criticalStart":za(void 0,void 0,s.criticalText,s.signalType);break;case"option":za(void 0,void 0,s.optionText,s.signalType);break;case"breakStart":za(void 0,void 0,s.breakText,s.signalType)}},setAccDescription:si,getAccDescription:di};var Xs=[],bs=function(u,s){var m=u.append("rect");return m.attr("x",s.x),m.attr("y",s.y),m.attr("fill",s.fill),m.attr("stroke",s.stroke),m.attr("width",s.width),m.attr("height",s.height),m.attr("rx",s.rx),m.attr("ry",s.ry),s.class!==void 0&&m.attr("class",s.class),m},Ml=function(u,s){var m;m=function(){var E=document.querySelectorAll(u);E.length!==0&&(E[0].addEventListener("mouseover",function(){Ks("actor"+s+"_popup")}),E[0].addEventListener("mouseout",function(){Dc("actor"+s+"_popup")}))},Xs.push(m)},vd=function(u,s,m,E){var C=u.append("image");C.attr("x",s),C.attr("y",m);var N=(0,ci.N)(E);C.attr("xlink:href",N)},xd=function(u,s,m,E){var C=u.append("use");C.attr("x",s),C.attr("y",m);var N=(0,ci.N)(E);C.attr("xlink:href","#"+N)},Ks=function(u){var s=document.getElementById(u);s!=null&&(s.style.display="block")},Dc=function(u){var s=document.getElementById(u);s!=null&&(s.style.display="none")},Rc=function(u,s){var m=0,E=0,C=s.text.split(mr.lineBreakRegex),N=[],M=0,D=function(){return s.y};if(s.valign!==void 0&&s.textMargin!==void 0&&s.textMargin>0)switch(s.valign){case"top":case"start":D=function(){return Math.round(s.y+s.textMargin)};break;case"middle":case"center":D=function(){return Math.round(s.y+(m+E+s.textMargin)/2)};break;case"bottom":case"end":D=function(){return Math.round(s.y+(m+E+2*s.textMargin)-s.textMargin)}}if(s.anchor!==void 0&&s.textMargin!==void 0&&s.width!==void 0)switch(s.anchor){case"left":case"start":s.x=Math.round(s.x+s.textMargin),s.anchor="start",s.dominantBaseline="middle",s.alignmentBaseline="middle";break;case"middle":case"center":s.x=Math.round(s.x+s.width/2),s.anchor="middle",s.dominantBaseline="middle",s.alignmentBaseline="middle";break;case"right":case"end":s.x=Math.round(s.x+s.width-s.textMargin),s.anchor="end",s.dominantBaseline="middle",s.alignmentBaseline="middle"}for(var z=0;z<C.length;z++){var j=C[z];s.textMargin!==void 0&&s.textMargin===0&&s.fontSize!==void 0&&(M=z*s.fontSize);var X=u.append("text");if(X.attr("x",s.x),X.attr("y",D()),s.anchor!==void 0&&X.attr("text-anchor",s.anchor).attr("dominant-baseline",s.dominantBaseline).attr("alignment-baseline",s.alignmentBaseline),s.fontFamily!==void 0&&X.style("font-family",s.fontFamily),s.fontSize!==void 0&&X.style("font-size",s.fontSize),s.fontWeight!==void 0&&X.style("font-weight",s.fontWeight),s.fill!==void 0&&X.attr("fill",s.fill),s.class!==void 0&&X.attr("class",s.class),s.dy!==void 0?X.attr("dy",s.dy):M!==0&&X.attr("dy",M),s.tspan){var it=X.append("tspan");it.attr("x",s.x),s.fill!==void 0&&it.attr("fill",s.fill),it.text(j)}else X.text(j);s.valign!==void 0&&s.textMargin!==void 0&&s.textMargin>0&&(E+=(X._groups||X)[0][0].getBBox().height,m=E),N.push(X)}return N},wd=function(u,s){var m=u.append("polygon");return m.attr("points",function(E,C,N,M,D){return E+","+C+" "+(E+N)+","+C+" "+(E+N)+","+(C+M-7)+" "+(E+N-8.4)+","+(C+M)+" "+E+","+(C+M)}(s.x,s.y,s.width,s.height)),m.attr("class","labelBox"),s.y=s.y+s.height/2,Rc(u,s),m},Va=-1,vs=function(u,s){u.selectAll&&u.selectAll(".actor-line").attr("class","200").attr("y2",s-55)},Hu=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}},D1=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},R1=function(){function u(C,N,M,D,z,j,X){E(N.append("text").attr("x",M+z/2).attr("y",D+j/2+5).style("text-anchor","middle").text(C),X)}function s(C,N,M,D,z,j,X,it){for(var ut=it.actorFontSize,lt=it.actorFontFamily,Ot=it.actorFontWeight,Lt=ut&&ut.replace?ut.replace("px",""):ut,Yt=C.split(mr.lineBreakRegex),qt=0;qt<Yt.length;qt++){var Nt=qt*Lt-Lt*(Yt.length-1)/2,zt=N.append("text").attr("x",M+z/2).attr("y",D).style("text-anchor","middle").style("font-size",ut).style("font-weight",Ot).style("font-family",lt);zt.append("tspan").attr("x",M+z/2).attr("dy",Nt).text(Yt[qt]),zt.attr("y",D+j/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),E(zt,X)}}function m(C,N,M,D,z,j,X,it){var ut=N.append("switch"),lt=ut.append("foreignObject").attr("x",M).attr("y",D).attr("width",z).attr("height",j).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");lt.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(C),s(C,ut,M,D,z,j,X,it),E(lt,X)}function E(C,N){for(var M in N)N.hasOwnProperty(M)&&C.attr(M,N[M])}return function(C){return C.textPlacement==="fo"?m:C.textPlacement==="old"?u:s}}(),Js=function(){function u(C,N,M,D,z,j,X){E(N.append("text").attr("x",M).attr("y",D).style("text-anchor","start").text(C),X)}function s(C,N,M,D,z,j,X,it){for(var ut=it.actorFontSize,lt=it.actorFontFamily,Ot=it.actorFontWeight,Lt=C.split(mr.lineBreakRegex),Yt=0;Yt<Lt.length;Yt++){var qt=Yt*ut-ut*(Lt.length-1)/2,Nt=N.append("text").attr("x",M).attr("y",D).style("text-anchor","start").style("font-size",ut).style("font-weight",Ot).style("font-family",lt);Nt.append("tspan").attr("x",M).attr("dy",qt).text(Lt[Yt]),Nt.attr("y",D+j/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),E(Nt,X)}}function m(C,N,M,D,z,j,X,it){var ut=N.append("switch"),lt=ut.append("foreignObject").attr("x",M).attr("y",D).attr("width",z).attr("height",j).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");lt.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(C),s(C,ut,M,D,0,j,X,it),E(lt,X)}function E(C,N){for(var M in N)N.hasOwnProperty(M)&&C.attr(M,N[M])}return function(C){return C.textPlacement==="fo"?m:C.textPlacement==="old"?u:s}}();const kd=bs,Ed=function(u,s,m){switch(s.type){case"actor":return function(E,C,N){var M=C.x+C.width/2;C.y===0&&(Va++,E.append("line").attr("id","actor"+Va).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 D=E.append("g");D.attr("class","actor-man");var z={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};z.x=C.x,z.y=C.y,z.fill="#eaeaea",z.width=C.width,z.height=C.height,z.class="actor",z.rx=3,z.ry=3,D.append("line").attr("id","actor-man-torso"+Va).attr("x1",M).attr("y1",C.y+25).attr("x2",M).attr("y2",C.y+45),D.append("line").attr("id","actor-man-arms"+Va).attr("x1",M-18).attr("y1",C.y+33).attr("x2",M+18).attr("y2",C.y+33),D.append("line").attr("x1",M-18).attr("y1",C.y+60).attr("x2",M).attr("y2",C.y+45),D.append("line").attr("x1",M).attr("y1",C.y+45).attr("x2",M+16).attr("y2",C.y+60);var j=D.append("circle");j.attr("cx",C.x+C.width/2),j.attr("cy",C.y+10),j.attr("r",15),j.attr("width",C.width),j.attr("height",C.height);var X=D.node().getBBox();return C.height=X.height,R1(N)(C.description,D,z.x,z.y+35,z.width,z.height,{class:"actor"},N),C.height}(u,s,m);case"participant":return function(E,C,N){var M=C.x+C.width/2,D=E.append("g"),z=D;C.y===0&&(Va++,z.append("line").attr("id","actor"+Va).attr("x1",M).attr("y1",5).attr("x2",M).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),z=D.append("g"),C.actorCnt=Va,C.links!=null&&(z.attr("id","root-"+Va),Ml("#root-"+Va,Va)));var j={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},X="actor";C.properties!=null&&C.properties.class?X=C.properties.class:j.fill="#eaeaea",j.x=C.x,j.y=C.y,j.width=C.width,j.height=C.height,j.class=X,j.rx=3,j.ry=3;var it=bs(z,j);if(C.rectData=j,C.properties!=null&&C.properties.icon){var ut=C.properties.icon.trim();ut.charAt(0)==="@"?xd(z,j.x+j.width-20,j.y+10,ut.substr(1)):vd(z,j.x+j.width-20,j.y+10,ut)}R1(N)(C.description,z,j.x,j.y,j.width,j.height,{class:"actor"},N);var lt=C.height;if(it.node){var Ot=it.node().getBBox();C.height=Ot.height,lt=Ot.height}return lt}(u,s,m)}},Td=function(u,s,m,E,C){if(s.links===void 0||s.links===null||Object.keys(s.links).length===0)return{height:0,width:0};var N=s.links,M=s.actorCnt,D=s.rectData,z="none";C&&(z="block !important");var j=u.append("g");j.attr("id","actor"+M+"_popup"),j.attr("class","actorPopupMenu"),j.attr("display",z),Ml("#actor"+M+"_popup",M);var X="";D.class!==void 0&&(X=" "+D.class);var it=D.width>m?D.width:m,ut=j.append("rect");if(ut.attr("class","actorPopupMenuPanel"+X),ut.attr("x",D.x),ut.attr("y",D.height),ut.attr("fill",D.fill),ut.attr("stroke",D.stroke),ut.attr("width",it),ut.attr("height",D.height),ut.attr("rx",D.rx),ut.attr("ry",D.ry),N!=null){var lt=20;for(var Ot in N){var Lt=j.append("a"),Yt=(0,ci.N)(N[Ot]);Lt.attr("xlink:href",Yt),Lt.attr("target","_blank"),Js(E)(Ot,Lt,D.x+10,D.height+lt,it,20,{class:"actor"},E),lt+=30}}return ut.attr("height",lt),{height:D.height+lt,width:it}},qu=function(u){return u.append("g")},Ol=function(u,s,m,E,C){var N={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},M=s.anchored;N.x=s.startx,N.y=s.starty,N.class="activation"+C%3,N.width=s.stopx-s.startx,N.height=m-s.starty,bs(M,N)},Wo=function(u,s,m,E){var C=E.boxMargin,N=E.boxTextMargin,M=E.labelBoxHeight,D=E.labelBoxWidth,z=E.messageFontFamily,j=E.messageFontSize,X=E.messageFontWeight,it=u.append("g"),ut=function(Lt,Yt,qt,Nt){return it.append("line").attr("x1",Lt).attr("y1",Yt).attr("x2",qt).attr("y2",Nt).attr("class","loopLine")};ut(s.startx,s.starty,s.stopx,s.starty),ut(s.stopx,s.starty,s.stopx,s.stopy),ut(s.startx,s.stopy,s.stopx,s.stopy),ut(s.startx,s.starty,s.startx,s.stopy),s.sections!==void 0&&s.sections.forEach(function(Lt){ut(s.startx,Lt.y,s.stopx,Lt.y).style("stroke-dasharray","3, 3")});var lt={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};lt.text=m,lt.x=s.startx,lt.y=s.starty,lt.fontFamily=z,lt.fontSize=j,lt.fontWeight=X,lt.anchor="middle",lt.valign="middle",lt.tspan=!1,lt.width=D||50,lt.height=M||20,lt.textMargin=N,lt.class="labelText",wd(it,lt),(lt={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=s.title,lt.x=s.startx+D/2+(s.stopx-s.startx)/2,lt.y=s.starty+C+N,lt.anchor="middle",lt.valign="middle",lt.textMargin=N,lt.class="loopText",lt.fontFamily=z,lt.fontSize=j,lt.fontWeight=X,lt.wrap=!0;var Ot=Rc(it,lt);return s.sectionTitles!==void 0&&s.sectionTitles.forEach(function(Lt,Yt){if(Lt.message){lt.text=Lt.message,lt.x=s.startx+(s.stopx-s.startx)/2,lt.y=s.sections[Yt].y+C+N,lt.class="loopText",lt.anchor="middle",lt.valign="middle",lt.tspan=!1,lt.fontFamily=z,lt.fontSize=j,lt.fontWeight=X,lt.wrap=s.wrap,Ot=Rc(it,lt);var qt=Math.round(Ot.map(function(Nt){return(Nt._groups||Nt)[0][0].getBBox().height}).reduce(function(Nt,zt){return Nt+zt}));s.sections[Yt].height+=qt-(C+N)}}),s.height=Math.round(s.stopy-s.starty),it},Sd=function(u,s){bs(u,{x:s.startx,y:s.starty,width:s.stopx-s.startx,height:s.stopy-s.starty,fill:s.fill,class:"rect"}).lower()},Ad=function(u){u.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")},Cd=function(u){u.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")},Id=function(u){u.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)},Nd=function(u){var s=u.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);s.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"),s.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")},B1=function(u){u.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")},Wu=function(u){u.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")},F1=function(u){u.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")},Gu=Hu,da=D1;ci.N;var ge={},ar={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(u){return u.height||0}))+(this.loops.length===0?0:this.loops.map(function(u){return u.height||0}).reduce(function(u,s){return u+s}))+(this.messages.length===0?0:this.messages.map(function(u){return u.height||0}).reduce(function(u,s){return u+s}))+(this.notes.length===0?0:this.notes.map(function(u){return u.height||0}).reduce(function(u,s){return u+s}))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(u){this.actors.push(u)},addLoop:function(u){this.loops.push(u)},addMessage:function(u){this.messages.push(u)},addNote:function(u){this.notes.push(u)},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,z1(Ft())},updateVal:function(u,s,m,E){u[s]===void 0?u[s]=m:u[s]=E(m,u[s])},updateBounds:function(u,s,m,E){var C=this,N=0;function M(D){return function(z){N++;var j=C.sequenceItems.length-N+1;C.updateVal(z,"starty",s-j*ge.boxMargin,Math.min),C.updateVal(z,"stopy",E+j*ge.boxMargin,Math.max),C.updateVal(ar.data,"startx",u-j*ge.boxMargin,Math.min),C.updateVal(ar.data,"stopx",m+j*ge.boxMargin,Math.max),D!=="activation"&&(C.updateVal(z,"startx",u-j*ge.boxMargin,Math.min),C.updateVal(z,"stopx",m+j*ge.boxMargin,Math.max),C.updateVal(ar.data,"starty",s-j*ge.boxMargin,Math.min),C.updateVal(ar.data,"stopy",E+j*ge.boxMargin,Math.max))}}this.sequenceItems.forEach(M()),this.activations.forEach(M("activation"))},insert:function(u,s,m,E){var C=Math.min(u,m),N=Math.max(u,m),M=Math.min(s,E),D=Math.max(s,E);this.updateVal(ar.data,"startx",C,Math.min),this.updateVal(ar.data,"starty",M,Math.min),this.updateVal(ar.data,"stopx",N,Math.max),this.updateVal(ar.data,"stopy",D,Math.max),this.updateBounds(C,M,N,D)},newActivation:function(u,s,m){var E=m[u.from.actor],C=Dl(u.from.actor).length||0,N=E.x+E.width/2+(C-1)*ge.activationWidth/2;this.activations.push({startx:N,starty:this.verticalPos+2,stopx:N+ge.activationWidth,stopy:void 0,actor:u.from.actor,anchored:qu(s)})},endActivation:function(u){var s=this.activations.map(function(m){return m.actor}).lastIndexOf(u.from.actor);return this.activations.splice(s,1)[0]},createLoop:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},s=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:u.message,wrap:u.wrap,width:u.width,height:0,fill:s}},newLoop:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},s=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(u,s))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(u){var s=this.sequenceItems.pop();s.sections=s.sections||[],s.sectionTitles=s.sectionTitles||[],s.sections.push({y:ar.getVerticalPos(),height:0}),s.sectionTitles.push(u),this.sequenceItems.push(s)},bumpVerticalPos:function(u){this.verticalPos=this.verticalPos+u,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},xs=function(u){return{fontFamily:u.messageFontFamily,fontSize:u.messageFontSize,fontWeight:u.messageFontWeight}},Qs=function(u){return{fontFamily:u.noteFontFamily,fontSize:u.noteFontSize,fontWeight:u.noteFontWeight}},Vu=function(u){return{fontFamily:u.actorFontFamily,fontSize:u.actorFontSize,fontWeight:u.actorFontWeight}},Zu=function(u,s,m,E,C,N){if(C.hideUnusedParticipants===!0){var M=new Set;N.forEach(function(lt){M.add(lt.from),M.add(lt.to)}),m=m.filter(function(lt){return M.has(lt)})}for(var D=0,z=0,j=0,X=0;X<m.length;X++){var it=s[m[X]];it.width=it.width||ge.width,it.height=Math.max(it.height||ge.height,ge.height),it.margin=it.margin||ge.actorMargin,it.x=D+z,it.y=E;var ut=Ed(u,it,ge);j=Math.max(j,ut),ar.insert(it.x,E,it.x+it.width,it.height),D+=it.width,z+=it.margin,ar.models.addActor(it)}ar.bumpVerticalPos(j)},P1=function(u,s,m,E){for(var C=0,N=0,M=0;M<m.length;M++){var D=s[m[M]],z=Ld(D),j=Td(u,D,z,ge,ge.forceMenus);j.height>C&&(C=j.height),j.width+D.x>N&&(N=j.width+D.x)}return{maxHeight:C,maxWidth:N}},z1=function(u){Te(ge,u),u.fontFamily&&(ge.actorFontFamily=ge.noteFontFamily=ge.messageFontFamily=u.fontFamily),u.fontSize&&(ge.actorFontSize=ge.noteFontSize=ge.messageFontSize=u.fontSize),u.fontWeight&&(ge.actorFontWeight=ge.noteFontWeight=ge.messageFontWeight=u.fontWeight)},Dl=function(u){return ar.activations.filter(function(s){return s.actor===u})},Go=function(u,s){var m=s[u],E=Dl(u);return[E.reduce(function(C,N){return Math.min(C,N.startx)},m.x+m.width/2),E.reduce(function(C,N){return Math.max(C,N.stopx)},m.x+m.width/2)]};function Za(u,s,m,E,C){ar.bumpVerticalPos(m);var N=E;if(s.id&&s.message&&u[s.id]){var M=u[s.id].width,D=xs(ge);s.message=rn.wrapLabel("[".concat(s.message,"]"),M-2*ge.wrapPadding,D),s.width=M,s.wrap=!0;var z=rn.calculateTextDimensions(s.message,D),j=Math.max(z.height,ge.labelBoxHeight);N=E+j,b.debug("".concat(j," - ").concat(s.message))}C(s),ar.bumpVerticalPos(N)}var Ld=function(u){var s=0,m=Vu(ge);for(var E in u.links){var C=rn.calculateTextDimensions(E,m).width+2*ge.wrapPadding+2*ge.boxMargin;s<C&&(s=C)}return s};const Bc={bounds:ar,drawActors:Zu,drawActorsPopup:P1,setConf:z1,draw:function(u,s,m,E){ge=Ft().sequence;var C,N=Ft().securityLevel;N==="sandbox"&&(C=(0,T.select)("#i"+s));var M=N==="sandbox"?(0,T.select)(C.nodes()[0].contentDocument.body):(0,T.select)("body");N==="sandbox"&&C.nodes()[0].contentDocument,ar.init(),b.debug(E.db);var D=N==="sandbox"?M.select('[id="'.concat(s,'"]')):(0,T.select)('[id="'.concat(s,'"]')),z=E.db.getActors(),j=E.db.getActorKeys(),X=E.db.getMessages(),it=E.db.getDiagramTitle(),ut=function(he,Jt,ue){var jt={};return Jt.forEach(function(ce){if(he[ce.to]&&he[ce.from]){var ae=he[ce.to];if(ce.placement===ue.db.PLACEMENT.LEFTOF&&!ae.prevActor||ce.placement===ue.db.PLACEMENT.RIGHTOF&&!ae.nextActor)return;var fe=ce.placement!==void 0,Me=!fe,Fe=fe?Qs(ge):xs(ge),Ye=ce.wrap?rn.wrapLabel(ce.message,ge.width-2*ge.wrapPadding,Fe):ce.message,gr=rn.calculateTextDimensions(Ye,Fe).width+2*ge.wrapPadding;Me&&ce.from===ae.nextActor?jt[ce.to]=Math.max(jt[ce.to]||0,gr):Me&&ce.from===ae.prevActor?jt[ce.from]=Math.max(jt[ce.from]||0,gr):Me&&ce.from===ce.to?(jt[ce.from]=Math.max(jt[ce.from]||0,gr/2),jt[ce.to]=Math.max(jt[ce.to]||0,gr/2)):ce.placement===ue.db.PLACEMENT.RIGHTOF?jt[ce.from]=Math.max(jt[ce.from]||0,gr):ce.placement===ue.db.PLACEMENT.LEFTOF?jt[ae.prevActor]=Math.max(jt[ae.prevActor]||0,gr):ce.placement===ue.db.PLACEMENT.OVER&&(ae.prevActor&&(jt[ae.prevActor]=Math.max(jt[ae.prevActor]||0,gr/2)),ae.nextActor&&(jt[ce.from]=Math.max(jt[ce.from]||0,gr/2)))}}),b.debug("maxMessageWidthPerActor:",jt),jt}(z,X,E);ge.height=function(he,Jt){var ue=0;for(var jt in Object.keys(he).forEach(function(Me){var Fe=he[Me];Fe.wrap&&(Fe.description=rn.wrapLabel(Fe.description,ge.width-2*ge.wrapPadding,Vu(ge)));var Ye=rn.calculateTextDimensions(Fe.description,Vu(ge));Fe.width=Fe.wrap?ge.width:Math.max(ge.width,Ye.width+2*ge.wrapPadding),Fe.height=Fe.wrap?Math.max(Ye.height,ge.height):ge.height,ue=Math.max(ue,Fe.height)}),Jt){var ce=he[jt];if(ce){var ae=he[ce.nextActor];if(ae){var fe=Jt[jt]+ge.actorMargin-ce.width/2-ae.width/2;ce.margin=Math.max(fe,ge.actorMargin)}}}return Math.max(ue,ge.height)}(z,ut),Wu(D),B1(D),F1(D),Zu(D,z,j,0,ge,X);var lt=function(he,Jt,ue,jt){var ce,ae,fe,Me={},Fe=[];return he.forEach(function(Ye){switch(Ye.id=rn.random({length:10}),Ye.type){case jt.db.LINETYPE.LOOP_START:case jt.db.LINETYPE.ALT_START:case jt.db.LINETYPE.OPT_START:case jt.db.LINETYPE.PAR_START:case jt.db.LINETYPE.CRITICAL_START:case jt.db.LINETYPE.BREAK_START:Fe.push({id:Ye.id,msg:Ye.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case jt.db.LINETYPE.ALT_ELSE:case jt.db.LINETYPE.PAR_AND:case jt.db.LINETYPE.CRITICAL_OPTION:Ye.message&&(ce=Fe.pop(),Me[ce.id]=ce,Me[Ye.id]=ce,Fe.push(ce));break;case jt.db.LINETYPE.LOOP_END:case jt.db.LINETYPE.ALT_END:case jt.db.LINETYPE.OPT_END:case jt.db.LINETYPE.PAR_END:case jt.db.LINETYPE.CRITICAL_END:case jt.db.LINETYPE.BREAK_END:ce=Fe.pop(),Me[ce.id]=ce;break;case jt.db.LINETYPE.ACTIVE_START:var gr=Jt[Ye.from?Ye.from.actor:Ye.to.actor],je=Dl(Ye.from?Ye.from.actor:Ye.to.actor).length,lr=gr.x+gr.width/2+(je-1)*ge.activationWidth/2,dr={startx:lr,stopx:lr+ge.activationWidth,actor:Ye.from.actor,enabled:!0};ar.activations.push(dr);break;case jt.db.LINETYPE.ACTIVE_END:var Ge=ar.activations.map(function(Ve){return Ve.actor}).lastIndexOf(Ye.from.actor);delete ar.activations.splice(Ge,1)[0]}Ye.placement!==void 0?(ae=function(Ve,br,bn){var Sn=br[Ve.from].x,ei=br[Ve.to].x,pn=Ve.wrap&&Ve.message,Ri=rn.calculateTextDimensions(pn?rn.wrapLabel(Ve.message,ge.width,Qs(ge)):Ve.message,Qs(ge)),hn={width:pn?ge.width:Math.max(ge.width,Ri.width+2*ge.noteMargin),height:0,startx:br[Ve.from].x,stopx:0,starty:0,stopy:0,message:Ve.message};return Ve.placement===bn.db.PLACEMENT.RIGHTOF?(hn.width=pn?Math.max(ge.width,Ri.width):Math.max(br[Ve.from].width/2+br[Ve.to].width/2,Ri.width+2*ge.noteMargin),hn.startx=Sn+(br[Ve.from].width+ge.actorMargin)/2):Ve.placement===bn.db.PLACEMENT.LEFTOF?(hn.width=Math.max(pn?ge.width:br[Ve.from].width/2+br[Ve.to].width/2,Ri.width+2*ge.noteMargin),hn.startx=Sn-hn.width+(br[Ve.from].width-ge.actorMargin)/2):Ve.to===Ve.from?(Ri=rn.calculateTextDimensions(pn?rn.wrapLabel(Ve.message,Math.max(ge.width,br[Ve.from].width),Qs(ge)):Ve.message,Qs(ge)),hn.width=pn?Math.max(ge.width,br[Ve.from].width):Math.max(br[Ve.from].width,ge.width,Ri.width+2*ge.noteMargin),hn.startx=Sn+(br[Ve.from].width-hn.width)/2):(hn.width=Math.abs(Sn+br[Ve.from].width/2-(ei+br[Ve.to].width/2))+ge.actorMargin,hn.startx=Sn<ei?Sn+br[Ve.from].width/2-ge.actorMargin/2:ei+br[Ve.to].width/2-ge.actorMargin/2),pn&&(hn.message=rn.wrapLabel(Ve.message,hn.width-2*ge.wrapPadding,Qs(ge))),b.debug("NM:[".concat(hn.startx,",").concat(hn.stopx,",").concat(hn.starty,",").concat(hn.stopy,":").concat(hn.width,",").concat(hn.height,"=").concat(Ve.message,"]")),hn}(Ye,Jt,jt),Ye.noteModel=ae,Fe.forEach(function(Ve){(ce=Ve).from=Math.min(ce.from,ae.startx),ce.to=Math.max(ce.to,ae.startx+ae.width),ce.width=Math.max(ce.width,Math.abs(ce.from-ce.to))-ge.labelBoxWidth})):(fe=function(Ve,br,bn){var Sn=!1;if([bn.db.LINETYPE.SOLID_OPEN,bn.db.LINETYPE.DOTTED_OPEN,bn.db.LINETYPE.SOLID,bn.db.LINETYPE.DOTTED,bn.db.LINETYPE.SOLID_CROSS,bn.db.LINETYPE.DOTTED_CROSS,bn.db.LINETYPE.SOLID_POINT,bn.db.LINETYPE.DOTTED_POINT].includes(Ve.type)&&(Sn=!0),!Sn)return{};var ei=Go(Ve.from,br),pn=Go(Ve.to,br),Ri=ei[0]<=pn[0]?1:0,hn=ei[0]<pn[0]?0:1,Xa=ei.concat(pn),fa=Math.abs(pn[hn]-ei[Ri]);Ve.wrap&&Ve.message&&(Ve.message=rn.wrapLabel(Ve.message,Math.max(fa+2*ge.wrapPadding,ge.width),xs(ge)));var pi=rn.calculateTextDimensions(Ve.message,xs(ge));return{width:Math.max(Ve.wrap?0:pi.width+2*ge.wrapPadding,fa+2*ge.wrapPadding,ge.width),height:0,startx:ei[Ri],stopx:pn[hn],starty:0,stopy:0,message:Ve.message,type:Ve.type,wrap:Ve.wrap,fromBounds:Math.min.apply(null,Xa),toBounds:Math.max.apply(null,Xa)}}(Ye,Jt,jt),Ye.msgModel=fe,fe.startx&&fe.stopx&&Fe.length>0&&Fe.forEach(function(Ve){if(ce=Ve,fe.startx===fe.stopx){var br=Jt[Ye.from],bn=Jt[Ye.to];ce.from=Math.min(br.x-fe.width/2,br.x-br.width/2,ce.from),ce.to=Math.max(bn.x+fe.width/2,bn.x+br.width/2,ce.to),ce.width=Math.max(ce.width,Math.abs(ce.to-ce.from))-ge.labelBoxWidth}else ce.from=Math.min(fe.startx,ce.from),ce.to=Math.max(fe.stopx,ce.to),ce.width=Math.max(ce.width,fe.width)-ge.labelBoxWidth}))}),ar.activations=[],b.debug("Loop type widths:",Me),Me}(X,z,0,E);Ad(D),Nd(D),Cd(D),Id(D);var Ot=1,Lt=1,Yt=Array();X.forEach(function(he){var Jt,ue,jt;switch(he.type){case E.db.LINETYPE.NOTE:ue=he.noteModel,function(ae,fe){ar.bumpVerticalPos(ge.boxMargin),fe.height=ge.boxMargin,fe.starty=ar.getVerticalPos();var Me=da();Me.x=fe.startx,Me.y=fe.starty,Me.width=fe.width||ge.width,Me.class="note";var Fe=ae.append("g"),Ye=kd(Fe,Me),gr=Gu();gr.x=fe.startx,gr.y=fe.starty,gr.width=Me.width,gr.dy="1em",gr.text=fe.message,gr.class="noteText",gr.fontFamily=ge.noteFontFamily,gr.fontSize=ge.noteFontSize,gr.fontWeight=ge.noteFontWeight,gr.anchor=ge.noteAlign,gr.textMargin=ge.noteMargin,gr.valign="center";var je=Rc(Fe,gr),lr=Math.round(je.map(function(dr){return(dr._groups||dr)[0][0].getBBox().height}).reduce(function(dr,Ge){return dr+Ge}));Ye.attr("height",lr+2*ge.noteMargin),fe.height+=lr+2*ge.noteMargin,ar.bumpVerticalPos(lr+2*ge.noteMargin),fe.stopy=fe.starty+lr+2*ge.noteMargin,fe.stopx=fe.startx+Me.width,ar.insert(fe.startx,fe.starty,fe.stopx,fe.stopy),ar.models.addNote(fe)}(D,ue);break;case E.db.LINETYPE.ACTIVE_START:ar.newActivation(he,D,z);break;case E.db.LINETYPE.ACTIVE_END:(function(ae,fe){var Me=ar.endActivation(ae);Me.starty+18>fe&&(Me.starty=fe-6,fe+=12),Ol(D,Me,fe,ge,Dl(ae.from.actor).length),ar.insert(Me.startx,fe-10,Me.stopx,fe)})(he,ar.getVerticalPos());break;case E.db.LINETYPE.LOOP_START:Za(lt,he,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(ae){return ar.newLoop(ae)});break;case E.db.LINETYPE.LOOP_END:Jt=ar.endLoop(),Wo(D,Jt,"loop",ge),ar.bumpVerticalPos(Jt.stopy-ar.getVerticalPos()),ar.models.addLoop(Jt);break;case E.db.LINETYPE.RECT_START:Za(lt,he,ge.boxMargin,ge.boxMargin,function(ae){return ar.newLoop(void 0,ae.message)});break;case E.db.LINETYPE.RECT_END:Jt=ar.endLoop(),Sd(D,Jt),ar.models.addLoop(Jt),ar.bumpVerticalPos(Jt.stopy-ar.getVerticalPos());break;case E.db.LINETYPE.OPT_START:Za(lt,he,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(ae){return ar.newLoop(ae)});break;case E.db.LINETYPE.OPT_END:Jt=ar.endLoop(),Wo(D,Jt,"opt",ge),ar.bumpVerticalPos(Jt.stopy-ar.getVerticalPos()),ar.models.addLoop(Jt);break;case E.db.LINETYPE.ALT_START:Za(lt,he,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(ae){return ar.newLoop(ae)});break;case E.db.LINETYPE.ALT_ELSE:Za(lt,he,ge.boxMargin+ge.boxTextMargin,ge.boxMargin,function(ae){return ar.addSectionToLoop(ae)});break;case E.db.LINETYPE.ALT_END:Jt=ar.endLoop(),Wo(D,Jt,"alt",ge),ar.bumpVerticalPos(Jt.stopy-ar.getVerticalPos()),ar.models.addLoop(Jt);break;case E.db.LINETYPE.PAR_START:Za(lt,he,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(ae){return ar.newLoop(ae)});break;case E.db.LINETYPE.PAR_AND:Za(lt,he,ge.boxMargin+ge.boxTextMargin,ge.boxMargin,function(ae){return ar.addSectionToLoop(ae)});break;case E.db.LINETYPE.PAR_END:Jt=ar.endLoop(),Wo(D,Jt,"par",ge),ar.bumpVerticalPos(Jt.stopy-ar.getVerticalPos()),ar.models.addLoop(Jt);break;case E.db.LINETYPE.AUTONUMBER:Ot=he.message.start||Ot,Lt=he.message.step||Lt,he.message.visible?E.db.enableSequenceNumbers():E.db.disableSequenceNumbers();break;case E.db.LINETYPE.CRITICAL_START:Za(lt,he,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(ae){return ar.newLoop(ae)});break;case E.db.LINETYPE.CRITICAL_OPTION:Za(lt,he,ge.boxMargin+ge.boxTextMargin,ge.boxMargin,function(ae){return ar.addSectionToLoop(ae)});break;case E.db.LINETYPE.CRITICAL_END:Jt=ar.endLoop(),Wo(D,Jt,"critical",ge),ar.bumpVerticalPos(Jt.stopy-ar.getVerticalPos()),ar.models.addLoop(Jt);break;case E.db.LINETYPE.BREAK_START:Za(lt,he,ge.boxMargin,ge.boxMargin+ge.boxTextMargin,function(ae){return ar.newLoop(ae)});break;case E.db.LINETYPE.BREAK_END:Jt=ar.endLoop(),Wo(D,Jt,"break",ge),ar.bumpVerticalPos(Jt.stopy-ar.getVerticalPos()),ar.models.addLoop(Jt);break;default:try{(jt=he.msgModel).starty=ar.getVerticalPos(),jt.sequenceIndex=Ot,jt.sequenceVisible=E.db.showSequenceNumbers();var ce=function(ae,fe){ar.bumpVerticalPos(10);var Me,Fe=fe.startx,Ye=fe.stopx,gr=fe.message,je=mr.splitBreaks(gr).length,lr=rn.calculateTextDimensions(gr,xs(ge)),dr=lr.height/je;fe.height+=dr,ar.bumpVerticalPos(dr);var Ge=lr.height-10,Ve=lr.width;if(Fe===Ye){Me=ar.getVerticalPos()+Ge,ge.rightAngles||(Ge+=ge.boxMargin,Me=ar.getVerticalPos()+Ge),Ge+=30;var br=Math.max(Ve/2,ge.width/2);ar.insert(Fe-br,ar.getVerticalPos()-10+Ge,Ye+br,ar.getVerticalPos()+30+Ge)}else Ge+=ge.boxMargin,Me=ar.getVerticalPos()+Ge,ar.insert(Fe,Me-10,Ye,Me);return ar.bumpVerticalPos(Ge),fe.height+=Ge,fe.stopy=fe.starty+fe.height,ar.insert(fe.fromBounds,fe.starty,fe.toBounds,fe.stopy),Me}(0,jt);Yt.push({messageModel:jt,lineStarty:ce}),ar.models.addMessage(jt)}catch(ae){b.error("error while drawing message",ae)}}[E.db.LINETYPE.SOLID_OPEN,E.db.LINETYPE.DOTTED_OPEN,E.db.LINETYPE.SOLID,E.db.LINETYPE.DOTTED,E.db.LINETYPE.SOLID_CROSS,E.db.LINETYPE.DOTTED_CROSS,E.db.LINETYPE.SOLID_POINT,E.db.LINETYPE.DOTTED_POINT].includes(he.type)&&(Ot+=Lt)}),Yt.forEach(function(he){return function(Jt,ue,jt,ce){var ae=ue.startx,fe=ue.stopx,Me=ue.starty,Fe=ue.message,Ye=ue.type,gr=ue.sequenceIndex,je=ue.sequenceVisible,lr=rn.calculateTextDimensions(Fe,xs(ge)),dr=Gu();dr.x=ae,dr.y=Me+10,dr.width=fe-ae,dr.class="messageText",dr.dy="1em",dr.text=Fe,dr.fontFamily=ge.messageFontFamily,dr.fontSize=ge.messageFontSize,dr.fontWeight=ge.messageFontWeight,dr.anchor=ge.messageAlign,dr.valign="center",dr.textMargin=ge.wrapPadding,dr.tspan=!1,Rc(Jt,dr);var Ge,Ve=lr.width;ae===fe?Ge=ge.rightAngles?Jt.append("path").attr("d","M ".concat(ae,",").concat(jt," H ").concat(ae+Math.max(ge.width/2,Ve/2)," V ").concat(jt+25," H ").concat(ae)):Jt.append("path").attr("d","M "+ae+","+jt+" C "+(ae+60)+","+(jt-10)+" "+(ae+60)+","+(jt+30)+" "+ae+","+(jt+20)):((Ge=Jt.append("line")).attr("x1",ae),Ge.attr("y1",jt),Ge.attr("x2",fe),Ge.attr("y2",jt)),Ye===ce.db.LINETYPE.DOTTED||Ye===ce.db.LINETYPE.DOTTED_CROSS||Ye===ce.db.LINETYPE.DOTTED_POINT||Ye===ce.db.LINETYPE.DOTTED_OPEN?(Ge.style("stroke-dasharray","3, 3"),Ge.attr("class","messageLine1")):Ge.attr("class","messageLine0");var br="";ge.arrowMarkerAbsolute&&(br=(br=(br=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Ge.attr("stroke-width",2),Ge.attr("stroke","none"),Ge.style("fill","none"),Ye!==ce.db.LINETYPE.SOLID&&Ye!==ce.db.LINETYPE.DOTTED||Ge.attr("marker-end","url("+br+"#arrowhead)"),Ye!==ce.db.LINETYPE.SOLID_POINT&&Ye!==ce.db.LINETYPE.DOTTED_POINT||Ge.attr("marker-end","url("+br+"#filled-head)"),Ye!==ce.db.LINETYPE.SOLID_CROSS&&Ye!==ce.db.LINETYPE.DOTTED_CROSS||Ge.attr("marker-end","url("+br+"#crosshead)"),(je||ge.showSequenceNumbers)&&(Ge.attr("marker-start","url("+br+"#sequencenumber)"),Jt.append("text").attr("x",ae).attr("y",jt+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(gr))}(D,he.messageModel,he.lineStarty,E)}),ge.mirrorActors&&(ar.bumpVerticalPos(2*ge.boxMargin),Zu(D,z,j,ar.getVerticalPos(),ge,X),ar.bumpVerticalPos(ge.boxMargin),vs(D,ar.getVerticalPos()));var qt=P1(D,z,j),Nt=ar.getBounds().bounds;b.debug("For line height fix Querying: #"+s+" .actor-line"),(0,T.selectAll)("#"+s+" .actor-line").attr("y2",Nt.stopy);var zt=Nt.stopy-Nt.starty;zt<qt.maxHeight&&(zt=qt.maxHeight);var Dt=zt+2*ge.diagramMarginY;ge.mirrorActors&&(Dt=Dt-ge.boxMargin+ge.bottomMarginAdj);var te=Nt.stopx-Nt.startx;te<qt.maxWidth&&(te=qt.maxWidth);var Re=te+2*ge.diagramMarginX;it&&D.append("text").text(it).attr("x",(Nt.stopx-Nt.startx)/2-2*ge.diagramMarginX).attr("y",-25),ra(D,Dt,Re,ge.useMaxWidth);var ke=it?40:0;D.attr("viewBox",Nt.startx-ge.diagramMarginX+" -"+(ge.diagramMarginY+ke)+" "+Re+" "+(Dt+ke)),zn(E.db,D,s),b.debug("models:",ar.models)}};var Md=d(3584),U1=d.n(Md);function Xu(u){return Xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Xu(u)}var Rl=function(u){return JSON.parse(JSON.stringify(u))},Bl=[],Od=function u(s,m,E){if(m.stmt==="relation")u(s,m.state1,!0),u(s,m.state2,!1);else if(m.stmt==="state"&&m.id==="[*]"&&(m.id=E?s.id+"_start":s.id+"_end",m.start=E),m.doc){var C=[],N=0,M=[];for(N=0;N<m.doc.length;N++)if(m.doc[N].type==="divider"){var D=Rl(m.doc[N]);D.doc=Rl(M),C.push(D),M=[]}else M.push(m.doc[N]);if(C.length>0&&M.length>0){var z={stmt:"state",id:No(),type:"divider",doc:Rl(M)};C.push(Rl(z)),m.doc=C}m.doc.forEach(function(j){return u(m,j,!0)})}},Fl={root:{relations:[],states:{},documents:{}}},Xi=Fl.root,Ku=0,Fc=function(u,s,m,E,C){Xi.states[u]===void 0?Xi.states[u]={id:u,descriptions:[],type:s,doc:m,note:C}:(Xi.states[u].doc||(Xi.states[u].doc=m),Xi.states[u].type||(Xi.states[u].type=s)),E&&(b.info("Adding state ",u,E),typeof E=="string"&&Ju(u,E.trim()),Xu(E)==="object"&&E.forEach(function(N){return Ju(u,N.trim())})),C&&(Xi.states[u].note=C,Xi.states[u].note.text=mr.sanitizeText(Xi.states[u].note.text,Ft()))},Y1=function(u){Xi=(Fl={root:{relations:[],states:{},documents:{}}}).root,Xi=Fl.root,Ku=0,Qu=[],u||Yn()},j1=function(u,s,m){var E=u,C=s,N="default",M="default";u==="[*]"&&(E="start"+ ++Ku,N="start"),s==="[*]"&&(C="end"+Ku,M="end"),Fc(E,N),Fc(C,M),Xi.relations.push({id1:E,id2:C,title:mr.sanitizeText(m,Ft())})},Ju=function(u,s){var m=Xi.states[u],E=s;E[0]===":"&&(E=E.substr(1).trim()),m.descriptions.push(mr.sanitizeText(E,Ft()))},$1=0,Qu=[],H1="TB";const ko={parseDirective:function(u,s,m){wr.parseDirective(this,u,s,m)},getConfig:function(){return Ft().state},addState:Fc,clear:Y1,getState:function(u){return Xi.states[u]},getStates:function(){return Xi.states},getRelations:function(){return Xi.relations},getClasses:function(){return Qu},getDirection:function(){return H1},addRelation:j1,getDividerId:function(){return"divider-id-"+ ++$1},setDirection:function(u){H1=u},cleanupLabel:function(u){return u.substring(0,1)===":"?u.substr(2).trim():u.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){b.info("Documents = ",Fl)},getRootDoc:function(){return Bl},setRootDoc:function(u){b.info("Setting root doc",u),Bl=u},getRootDocV2:function(){return Od({id:"root"},{id:"root",doc:Bl},!0),{id:"root",doc:Bl}},extract:function(u){var s;s=u.doc?u.doc:u,b.info(s),Y1(!0),b.info("Extract",s),s.forEach(function(m){m.stmt==="state"&&Fc(m.id,m.type,m.doc,m.description,m.note),m.stmt==="relation"&&j1(m.state1.id,m.state2.id,m.description)})},trimColon:function(u){return u&&u[0]===":"?u.substr(1).trim():u.trim()},getAccTitle:kn,setAccTitle:ee,getAccDescription:di,setAccDescription:si};function th(u,s){(s==null||s>u.length)&&(s=u.length);for(var m=0,E=new Array(s);m<s;m++)E[m]=u[m];return E}var wi,Dd=function(u,s,m){var E,C=Ft().state.padding,N=2*Ft().state.padding,M=u.node().getBBox(),D=M.width,z=M.x,j=u.append("text").attr("x",0).attr("y",Ft().state.titleShift).attr("font-size",Ft().state.fontSize).attr("class","state-title").text(s.id),X=j.node().getBBox().width+N,it=Math.max(X,D);it===D&&(it+=N);var ut=u.node().getBBox();s.doc,E=z-C,X>D&&(E=(D-it)/2+C),Math.abs(z-ut.x)<C&&X>D&&(E=z-(X-D)/2);var lt=1-Ft().state.textHeight;return u.insert("rect",":first-child").attr("x",E).attr("y",lt).attr("class",m?"alt-composit":"composit").attr("width",it).attr("height",ut.height+Ft().state.textHeight+Ft().state.titleShift+1).attr("rx","0"),j.attr("x",E+C),X<=D&&j.attr("x",z+(it-N)/2-X/2+C),u.insert("rect",":first-child").attr("x",E).attr("y",Ft().state.titleShift-Ft().state.textHeight-Ft().state.padding).attr("width",it).attr("height",3*Ft().state.textHeight).attr("rx",Ft().state.radius),u.insert("rect",":first-child").attr("x",E).attr("y",Ft().state.titleShift-Ft().state.textHeight-Ft().state.padding).attr("width",it).attr("height",ut.height+3+2*Ft().state.textHeight).attr("rx",Ft().state.radius),u},Rd=function(u,s){s.attr("class","state-note");var m=s.append("rect").attr("x",0).attr("y",Ft().state.padding),E=function(M,D,z,j){var X=0,it=j.append("text");it.style("text-anchor","start"),it.attr("class","noteText");var ut,lt=M.replace(/\r\n/g,"<br/>"),Ot=(lt=lt.replace(/\n/g,"<br/>")).split(mr.lineBreakRegex),Lt=1.25*Ft().state.noteMargin,Yt=function(zt,Dt){var te=typeof Symbol<"u"&&zt[Symbol.iterator]||zt["@@iterator"];if(!te){if(Array.isArray(zt)||(te=function(jt,ce){if(jt){if(typeof jt=="string")return th(jt,ce);var ae=Object.prototype.toString.call(jt).slice(8,-1);return ae==="Object"&&jt.constructor&&(ae=jt.constructor.name),ae==="Map"||ae==="Set"?Array.from(jt):ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae)?th(jt,ce):void 0}}(zt))||Dt&&zt&&typeof zt.length=="number"){te&&(zt=te);var Re=0,ke=function(){};return{s:ke,n:function(){return Re>=zt.length?{done:!0}:{done:!1,value:zt[Re++]}},e:function(jt){throw jt},f:ke}}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 he,Jt=!0,ue=!1;return{s:function(){te=te.call(zt)},n:function(){var jt=te.next();return Jt=jt.done,jt},e:function(jt){ue=!0,he=jt},f:function(){try{Jt||te.return==null||te.return()}finally{if(ue)throw he}}}}(Ot);try{for(Yt.s();!(ut=Yt.n()).done;){var qt=ut.value.trim();if(qt.length>0){var Nt=it.append("tspan");Nt.text(qt),Lt===0&&(Lt+=Nt.node().getBBox().height),X+=Lt,Nt.attr("x",0+Ft().state.noteMargin),Nt.attr("y",0+X+1.25*Ft().state.noteMargin)}}}catch(zt){Yt.e(zt)}finally{Yt.f()}return{textWidth:it.node().getBBox().width,textHeight:X}}(u,0,0,s.append("g")),C=E.textWidth,N=E.textHeight;return m.attr("height",N+2*Ft().state.noteMargin),m.attr("width",C+2*Ft().state.noteMargin),m},eh=function(u,s){var m=s.id,E={id:m,label:s.id,width:0,height:0},C=u.append("g").attr("id",m).attr("class","stateGroup");s.type==="start"&&function(M){M.append("circle").attr("class","start-state").attr("r",Ft().state.sizeUnit).attr("cx",Ft().state.padding+Ft().state.sizeUnit).attr("cy",Ft().state.padding+Ft().state.sizeUnit)}(C),s.type==="end"&&function(M){M.append("circle").attr("class","end-state-outer").attr("r",Ft().state.sizeUnit+Ft().state.miniPadding).attr("cx",Ft().state.padding+Ft().state.sizeUnit+Ft().state.miniPadding).attr("cy",Ft().state.padding+Ft().state.sizeUnit+Ft().state.miniPadding),M.append("circle").attr("class","end-state-inner").attr("r",Ft().state.sizeUnit).attr("cx",Ft().state.padding+Ft().state.sizeUnit+2).attr("cy",Ft().state.padding+Ft().state.sizeUnit+2)}(C),s.type!=="fork"&&s.type!=="join"||function(M,D){var z=Ft().state.forkWidth,j=Ft().state.forkHeight;if(D.parentId){var X=z;z=j,j=X}M.append("rect").style("stroke","black").style("fill","black").attr("width",z).attr("height",j).attr("x",Ft().state.padding).attr("y",Ft().state.padding)}(C,s),s.type==="note"&&Rd(s.note.text,C),s.type==="divider"&&function(M){M.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Ft().state.textHeight).attr("class","divider").attr("x2",2*Ft().state.textHeight).attr("y1",0).attr("y2",0)}(C),s.type==="default"&&s.descriptions.length===0&&function(M,D){var z=M.append("text").attr("x",2*Ft().state.padding).attr("y",Ft().state.textHeight+2*Ft().state.padding).attr("font-size",Ft().state.fontSize).attr("class","state-title").text(D.id).node().getBBox();M.insert("rect",":first-child").attr("x",Ft().state.padding).attr("y",Ft().state.padding).attr("width",z.width+2*Ft().state.padding).attr("height",z.height+2*Ft().state.padding).attr("rx",Ft().state.radius)}(C,s),s.type==="default"&&s.descriptions.length>0&&function(M,D){var z=M.append("text").attr("x",2*Ft().state.padding).attr("y",Ft().state.textHeight+1.3*Ft().state.padding).attr("font-size",Ft().state.fontSize).attr("class","state-title").text(D.descriptions[0]).node().getBBox(),j=z.height,X=M.append("text").attr("x",Ft().state.padding).attr("y",j+.4*Ft().state.padding+Ft().state.dividerMargin+Ft().state.textHeight).attr("class","state-description"),it=!0,ut=!0;D.descriptions.forEach(function(Yt){it||(function(qt,Nt,zt){var Dt=qt.append("tspan").attr("x",2*Ft().state.padding).text(Nt);zt||Dt.attr("dy",Ft().state.textHeight)}(X,Yt,ut),ut=!1),it=!1});var lt=M.append("line").attr("x1",Ft().state.padding).attr("y1",Ft().state.padding+j+Ft().state.dividerMargin/2).attr("y2",Ft().state.padding+j+Ft().state.dividerMargin/2).attr("class","descr-divider"),Ot=X.node().getBBox(),Lt=Math.max(Ot.width,z.width);lt.attr("x2",Lt+3*Ft().state.padding),M.insert("rect",":first-child").attr("x",Ft().state.padding).attr("y",Ft().state.padding).attr("width",Lt+2*Ft().state.padding).attr("height",Ot.height+j+2*Ft().state.padding).attr("rx",Ft().state.radius)}(C,s);var N=C.node().getBBox();return E.width=N.width+2*Ft().state.padding,E.height=N.height+2*Ft().state.padding,E},q1=0,rh={},W1=function u(s,m,E,C,N,M,D){var z,j=new(_i()).Graph({compound:!0,multigraph:!0}),X=!0;for(z=0;z<s.length;z++)if(s[z].stmt==="relation"){X=!1;break}E?j.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:X?1:wi.edgeLengthFactor,nodeSep:X?1:50,isMultiGraph:!0}):j.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:X?1:wi.edgeLengthFactor,nodeSep:X?1:50,ranker:"tight-tree",isMultiGraph:!0}),j.setDefaultEdgeLabel(function(){return{}}),D.db.extract(s);for(var it=D.db.getStates(),ut=D.db.getRelations(),lt=Object.keys(it),Ot=0;Ot<lt.length;Ot++){var Lt=it[lt[Ot]];E&&(Lt.parentId=E);var Yt=void 0;if(Lt.doc){var qt=m.append("g").attr("id",Lt.id).attr("class","stateGroup");Yt=u(Lt.doc,qt,Lt.id,!C,N,M,D);var Nt=(qt=Dd(qt,Lt,C)).node().getBBox();Yt.width=Nt.width,Yt.height=Nt.height+wi.padding/2,rh[Lt.id]={y:wi.compositTitleSize}}else Yt=eh(m,Lt);if(Lt.note){var zt={descriptions:[],id:Lt.id+"-note",note:Lt.note,type:"note"},Dt=eh(m,zt);Lt.note.position==="left of"?(j.setNode(Yt.id+"-note",Dt),j.setNode(Yt.id,Yt)):(j.setNode(Yt.id,Yt),j.setNode(Yt.id+"-note",Dt)),j.setParent(Yt.id,Yt.id+"-group"),j.setParent(Yt.id+"-note",Yt.id+"-group")}else j.setNode(Yt.id,Yt)}b.debug("Count=",j.nodeCount(),j);var te=0;ut.forEach(function(Jt){var ue;te++,b.debug("Setting edge",Jt),j.setEdge(Jt.id1,Jt.id2,{relation:Jt,width:(ue=Jt.title,ue?ue.length*wi.fontSizeFactor:1),height:wi.labelHeight*mr.getRows(Jt.title).length,labelpos:"c"},"id"+te)}),cs().layout(j),b.debug("Graph after layout",j.nodes());var Re=m.node();j.nodes().forEach(function(Jt){Jt!==void 0&&j.node(Jt)!==void 0?(b.warn("Node "+Jt+": "+JSON.stringify(j.node(Jt))),N.select("#"+Re.id+" #"+Jt).attr("transform","translate("+(j.node(Jt).x-j.node(Jt).width/2)+","+(j.node(Jt).y+(rh[Jt]?rh[Jt].y:0)-j.node(Jt).height/2)+" )"),N.select("#"+Re.id+" #"+Jt).attr("data-x-shift",j.node(Jt).x-j.node(Jt).width/2),M.querySelectorAll("#"+Re.id+" #"+Jt+" .divider").forEach(function(ue){var jt=ue.parentElement,ce=0,ae=0;jt&&(jt.parentElement&&(ce=jt.parentElement.getBBox().width),ae=parseInt(jt.getAttribute("data-x-shift"),10),Number.isNaN(ae)&&(ae=0)),ue.setAttribute("x1",0-ae+8),ue.setAttribute("x2",ce-ae-8)})):b.debug("No Node "+Jt+": "+JSON.stringify(j.node(Jt)))});var ke=Re.getBBox();j.edges().forEach(function(Jt){Jt!==void 0&&j.edge(Jt)!==void 0&&(b.debug("Edge "+Jt.v+" -> "+Jt.w+": "+JSON.stringify(j.edge(Jt))),function(ue,jt,ce){jt.points=jt.points.filter(function(pi){return!Number.isNaN(pi.y)});var ae=jt.points,fe=(0,T.line)().x(function(pi){return pi.x}).y(function(pi){return pi.y}).curve(T.curveBasis),Me=ue.append("path").attr("d",fe(ae)).attr("id","edge"+q1).attr("class","transition"),Fe="";if(Ft().state.arrowMarkerAbsolute&&(Fe=(Fe=(Fe=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Me.attr("marker-end","url("+Fe+"#"+function(pi){switch(pi){case ko.relationType.AGGREGATION:return"aggregation";case ko.relationType.EXTENSION:return"extension";case ko.relationType.COMPOSITION:return"composition";case ko.relationType.DEPENDENCY:return"dependency"}}(ko.relationType.DEPENDENCY)+"End)"),ce.title!==void 0){for(var Ye=ue.append("g").attr("class","stateLabel"),gr=rn.calcLabelPosition(jt.points),je=gr.x,lr=gr.y,dr=mr.getRows(ce.title),Ge=0,Ve=[],br=0,bn=0,Sn=0;Sn<=dr.length;Sn++){var ei=Ye.append("text").attr("text-anchor","middle").text(dr[Sn]).attr("x",je).attr("y",lr+Ge),pn=ei.node().getBBox();if(br=Math.max(br,pn.width),bn=Math.min(bn,pn.x),b.info(pn.x,je,lr+Ge),Ge===0){var Ri=ei.node().getBBox();Ge=Ri.height,b.info("Title height",Ge,lr)}Ve.push(ei)}var hn=Ge*dr.length;if(dr.length>1){var Xa=(dr.length-1)*Ge*.5;Ve.forEach(function(pi,Bn){return pi.attr("y",lr+Bn*Ge-Xa)}),hn=Ge*dr.length}var fa=Ye.node().getBBox();Ye.insert("rect",":first-child").attr("class","box").attr("x",je-br/2-Ft().state.padding/2).attr("y",lr-hn/2-Ft().state.padding/2-3.5).attr("width",br+Ft().state.padding).attr("height",hn+Ft().state.padding),b.info(fa)}q1++}(m,j.edge(Jt),j.edge(Jt).relation))}),ke=Re.getBBox();var he={id:E||"root",label:E||"root",width:0,height:0};return he.width=ke.width+2*wi.padding,he.height=ke.height+2*wi.padding,b.debug("Doc rendered",he,j),he};const Pc={setConf:function(){},draw:function(u,s,m,E){wi=Ft().state;var C,N=Ft().securityLevel;N==="sandbox"&&(C=(0,T.select)("#i"+s));var M=N==="sandbox"?(0,T.select)(C.nodes()[0].contentDocument.body):(0,T.select)("body"),D=N==="sandbox"?C.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+u);var z=M.select("[id='".concat(s,"']"));z.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(_i()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var j=E.db.getRootDoc();W1(j,z,void 0,!1,M,D,E);var X=wi.padding,it=z.node().getBBox(),ut=it.width+2*X,lt=it.height+2*X;ra(z,lt,1.75*ut,wi.useMaxWidth),z.attr("viewBox","".concat(it.x-wi.padding," ").concat(it.y-wi.padding," ")+ut+" "+lt),zn(E.db,z,s)}};var Bd={},gn={},Pl=function(u,s,m,E){if(m.id!=="root"){var C="rect";m.start===!0&&(C="start"),m.start===!1&&(C="end"),m.type!=="default"&&(C=m.type),gn[m.id]||(gn[m.id]={id:m.id,shape:C,description:mr.sanitizeText(m.id,Ft()),classes:"statediagram-state"}),m.description&&(Array.isArray(gn[m.id].description)?(gn[m.id].shape="rectWithTitle",gn[m.id].description.push(m.description)):gn[m.id].description.length>0?(gn[m.id].shape="rectWithTitle",gn[m.id].description===m.id?gn[m.id].description=[m.description]:gn[m.id].description=[gn[m.id].description,m.description]):(gn[m.id].shape="rect",gn[m.id].description=m.description),gn[m.id].description=mr.sanitizeTextOrArray(gn[m.id].description,Ft())),gn[m.id].description.length===1&&gn[m.id].shape==="rectWithTitle"&&(gn[m.id].shape="rect"),!gn[m.id].type&&m.doc&&(b.info("Setting cluster for ",m.id,nh(m)),gn[m.id].type="group",gn[m.id].dir=nh(m),gn[m.id].shape=m.type==="divider"?"divider":"roundedWithTitle",gn[m.id].classes=gn[m.id].classes+" "+(E?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var N={labelStyle:"",shape:gn[m.id].shape,labelText:gn[m.id].description,classes:gn[m.id].classes,style:"",id:m.id,dir:gn[m.id].dir,domId:"state-"+m.id+"-"+so,type:gn[m.id].type,padding:15};if(m.note){var M={labelStyle:"",shape:"note",labelText:m.note.text,classes:"statediagram-note",style:"",id:m.id+"----note-"+so,domId:"state-"+m.id+"----note-"+so,type:gn[m.id].type,padding:15},D={labelStyle:"",shape:"noteGroup",labelText:m.note.text,classes:gn[m.id].classes,style:"",id:m.id+"----parent",domId:"state-"+m.id+"----parent-"+so,type:"group",padding:0};so++,u.setNode(m.id+"----parent",D),u.setNode(M.id,M),u.setNode(m.id,N),u.setParent(m.id,m.id+"----parent"),u.setParent(M.id,m.id+"----parent");var z=m.id,j=M.id;m.note.position==="left of"&&(z=M.id,j=m.id),u.setEdge(z,j,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else u.setNode(m.id,N)}s&&s.id!=="root"&&(b.trace("Setting node ",m.id," to be child of its parent ",s.id),u.setParent(m.id,s.id)),m.doc&&(b.trace("Adding nodes children "),Fd(u,m,m.doc,!E))},so=0,Fd=function(u,s,m,E){b.trace("items",m),m.forEach(function(C){if(C.stmt==="state"||C.stmt==="default")Pl(u,s,C,E);else if(C.stmt==="relation"){Pl(u,s,C.state1,E),Pl(u,s,C.state2,E);var N={id:"edge"+so,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:mr.sanitizeText(C.description,Ft()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},M=C.state1.id,D=C.state2.id;u.setEdge(M,D,N,so),so++}})},nh=function(u,s){var m=s||"TB";if(u.doc)for(var E=0;E<u.doc.length;E++){var C=u.doc[E];C.stmt==="dir"&&(m=C.value)}return m};const ih={setConf:function(u){for(var s=Object.keys(u),m=0;m<s.length;m++)Bd[s[m]]=u[s[m]]},getClasses:function(u,s){return b.trace("Extracting classes"),s.sb.clear(),s.parser.parse(u),s.sb.getClasses()},draw:function(u,s,m,E){b.info("Drawing state diagram (v2)",s),gn={},E.db.getDirection();var C=Ft().state,N=C.nodeSpacing||50,M=C.rankSpacing||50,D=Ft().securityLevel;b.info(E.db.getRootDocV2()),E.db.extract(E.db.getRootDocV2()),b.info(E.db.getRootDocV2());var z,j=new(_i()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:nh(E.db.getRootDocV2()),nodesep:N,ranksep:M,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Pl(j,void 0,E.db.getRootDocV2(),!0),D==="sandbox"&&(z=(0,T.select)("#i"+s));var X=D==="sandbox"?(0,T.select)(z.nodes()[0].contentDocument.body):(0,T.select)("body"),it=(D==="sandbox"&&z.nodes()[0].contentDocument,X.select('[id="'.concat(s,'"]'))),ut=X.select("#"+s+" g");hl(ut,j,["barb"],"statediagram",s);var lt=it.node().getBBox(),Ot=lt.width+16,Lt=lt.height+16;it.attr("class","statediagram");var Yt=it.node().getBBox();ra(it,Lt,1.75*Ot,C.useMaxWidth);var qt="".concat(Yt.x-8," ").concat(Yt.y-8," ").concat(Ot," ").concat(Lt);b.debug("viewBox ".concat(qt)),it.attr("viewBox",qt);for(var Nt=document.querySelectorAll('[id="'+s+'"] .edgeLabel .label'),zt=0;zt<Nt.length;zt++){var Dt=Nt[zt],te=Dt.getBBox(),Re=document.createElementNS("http://www.w3.org/2000/svg","rect");Re.setAttribute("rx",0),Re.setAttribute("ry",0),Re.setAttribute("width",te.width),Re.setAttribute("height",te.height),Dt.insertBefore(Re,Dt.firstChild)}zn(E.db,it,s)}};function ws(u){return function(s){if(Array.isArray(s))return ah(s)}(u)||function(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}(u)||function(s,m){if(s){if(typeof s=="string")return ah(s,m);var E=Object.prototype.toString.call(s).slice(8,-1);return E==="Object"&&s.constructor&&(E=s.constructor.name),E==="Map"||E==="Set"?Array.from(s):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?ah(s,m):void 0}}(u)||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 ah(u,s){(s==null||s>u.length)&&(s=u.length);for(var m=0,E=new Array(s);m<s;m++)E[m]=u[m];return E}var ks="",oh=[],tc=[],ec=[],G1=function(){for(var u=!0,s=0;s<ec.length;s++)ec[s].processed,u=u&&ec[s].processed;return u};const V1={parseDirective:function(u,s,m){wr.parseDirective(this,u,s,m)},getConfig:function(){return Ft().journey},clear:function(){oh.length=0,tc.length=0,ks="",ec.length=0,Yn()},setDiagramTitle:Na,getDiagramTitle:Fi,setAccTitle:ee,getAccTitle:kn,setAccDescription:si,getAccDescription:di,addSection:function(u){ks=u,oh.push(u)},getSections:function(){return oh},getTasks:function(){for(var u=G1(),s=0;!u&&s<100;)u=G1(),s++;return tc.push.apply(tc,ec),tc},addTask:function(u,s){var m=s.substr(1).split(":"),E=0,C=[];m.length===1?(E=Number(m[0]),C=[]):(E=Number(m[0]),C=m[1].split(","));var N=C.map(function(D){return D.trim()}),M={section:ks,type:ks,people:N,task:u,score:E};ec.push(M)},addTaskOrg:function(u){var s={section:ks,type:ks,description:u,task:u,classes:[]};tc.push(s)},getActors:function(){return u=[],tc.forEach(function(s){s.people&&u.push.apply(u,ws(s.people))}),ws(new Set(u)).sort();var u}};var Z1=function(u,s){var m=u.append("rect");return m.attr("x",s.x),m.attr("y",s.y),m.attr("fill",s.fill),m.attr("stroke",s.stroke),m.attr("width",s.width),m.attr("height",s.height),m.attr("rx",s.rx),m.attr("ry",s.ry),s.class!==void 0&&m.attr("class",s.class),m},zc=function(u,s){var m=u.append("circle");return m.attr("cx",s.cx),m.attr("cy",s.cy),m.attr("class","actor-"+s.pos),m.attr("fill",s.fill),m.attr("stroke",s.stroke),m.attr("r",s.r),m.class!==void 0&&m.attr("class",m.class),s.title!==void 0&&m.append("title").text(s.title),m},sh=-1,X1=function(){function u(C,N,M,D,z,j,X,it){E(N.append("text").attr("x",M+z/2).attr("y",D+j/2+5).style("font-color",it).style("text-anchor","middle").text(C),X)}function s(C,N,M,D,z,j,X,it,ut){for(var lt=it.taskFontSize,Ot=it.taskFontFamily,Lt=C.split(/<br\s*\/?>/gi),Yt=0;Yt<Lt.length;Yt++){var qt=Yt*lt-lt*(Lt.length-1)/2,Nt=N.append("text").attr("x",M+z/2).attr("y",D).attr("fill",ut).style("text-anchor","middle").style("font-size",lt).style("font-family",Ot);Nt.append("tspan").attr("x",M+z/2).attr("dy",qt).text(Lt[Yt]),Nt.attr("y",D+j/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),E(Nt,X)}}function m(C,N,M,D,z,j,X,it){var ut=N.append("switch"),lt=ut.append("foreignObject").attr("x",M).attr("y",D).attr("width",z).attr("height",j).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");lt.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(C),s(C,ut,M,D,z,j,X,it),E(lt,X)}function E(C,N){for(var M in N)M in N&&C.attr(M,N[M])}return function(C){return C.textPlacement==="fo"?m:C.textPlacement==="old"?u:s}}();const Pd=zc,zd=function(u,s,m){var E=u.append("g"),C={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};C.x=s.x,C.y=s.y,C.fill=s.fill,C.width=m.width,C.height=m.height,C.class="journey-section section-type-"+s.num,C.rx=3,C.ry=3,Z1(E,C),X1(m)(s.text,E,C.x,C.y,C.width,C.height,{class:"journey-section section-type-"+s.num},m,s.colour)},Ud=function(u,s){var m=s.text.replace(/<br\s*\/?>/gi," "),E=u.append("text");E.attr("x",s.x),E.attr("y",s.y),E.attr("class","legend"),E.style("text-anchor",s.anchor),s.class!==void 0&&E.attr("class",s.class);var C=E.append("tspan");return C.attr("x",s.x+2*s.textMargin),C.text(m),E},Yd=function(u,s,m){var E,C,N,M=s.x+m.width/2,D=u.append("g");sh++,D.append("line").attr("id","task"+sh).attr("x1",M).attr("y1",s.y).attr("x2",M).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),E=D,C={cx:M,cy:300+30*(5-s.score),score:s.score},E.append("circle").attr("cx",C.cx).attr("cy",C.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(N=E.append("g")).append("circle").attr("cx",C.cx-5).attr("cy",C.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),N.append("circle").attr("cx",C.cx+5).attr("cy",C.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),C.score>3?function(X){var it=(0,T.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);X.append("path").attr("class","mouth").attr("d",it).attr("transform","translate("+C.cx+","+(C.cy+2)+")")}(N):C.score<3?function(X){var it=(0,T.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);X.append("path").attr("class","mouth").attr("d",it).attr("transform","translate("+C.cx+","+(C.cy+7)+")")}(N):function(X){X.append("line").attr("class","mouth").attr("stroke",2).attr("x1",C.cx-5).attr("y1",C.cy+7).attr("x2",C.cx+5).attr("y2",C.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(N);var z={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};z.x=s.x,z.y=s.y,z.fill=s.fill,z.width=m.width,z.height=m.height,z.class="task task-type-"+s.num,z.rx=3,z.ry=3,Z1(D,z);var j=s.x+14;s.people.forEach(function(X){var it=s.actors[X].color,ut={cx:j,cy:s.y,r:7,fill:it,stroke:"#000",title:X,pos:s.actors[X].position};zc(D,ut),j+=10}),X1(m)(s.task,D,z.x,z.y,z.width,z.height,{class:"task"},m,s.colour)};var Eo={},Uc=Ft().journey,Es=Ft().journey.leftMargin,Ua={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(u,s,m,E){u[s]===void 0?u[s]=m:u[s]=E(m,u[s])},updateBounds:function(u,s,m,E){var C=Ft().journey,N=this,M=0;this.sequenceItems.forEach(function(D){M++;var z=N.sequenceItems.length-M+1;N.updateVal(D,"starty",s-z*C.boxMargin,Math.min),N.updateVal(D,"stopy",E+z*C.boxMargin,Math.max),N.updateVal(Ua.data,"startx",u-z*C.boxMargin,Math.min),N.updateVal(Ua.data,"stopx",m+z*C.boxMargin,Math.max),N.updateVal(D,"startx",u-z*C.boxMargin,Math.min),N.updateVal(D,"stopx",m+z*C.boxMargin,Math.max),N.updateVal(Ua.data,"starty",s-z*C.boxMargin,Math.min),N.updateVal(Ua.data,"stopy",E+z*C.boxMargin,Math.max)})},insert:function(u,s,m,E){var C=Math.min(u,m),N=Math.max(u,m),M=Math.min(s,E),D=Math.max(s,E);this.updateVal(Ua.data,"startx",C,Math.min),this.updateVal(Ua.data,"starty",M,Math.min),this.updateVal(Ua.data,"stopx",N,Math.max),this.updateVal(Ua.data,"stopy",D,Math.max),this.updateBounds(C,M,N,D)},bumpVerticalPos:function(u){this.verticalPos=this.verticalPos+u,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},ch=Uc.sectionFills,K1=Uc.sectionColours;const zl={setConf:function(u){Object.keys(u).forEach(function(s){Uc[s]=u[s]})},draw:function(u,s,m,E){var C=Ft().journey;E.db.clear(),E.parser.parse(u+`
|
|
`);var N,M=Ft().securityLevel;M==="sandbox"&&(N=(0,T.select)("#i"+s));var D=M==="sandbox"?(0,T.select)(N.nodes()[0].contentDocument.body):(0,T.select)("body");Ua.init();var z=D.select("#"+s);z.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 j=E.db.getTasks(),X=E.db.getDiagramTitle(),it=E.db.getActors();for(var ut in Eo)delete Eo[ut];var lt=0;it.forEach(function(Nt){Eo[Nt]={color:C.actorColours[lt%C.actorColours.length],position:lt},lt++}),function(Nt){var zt=Ft().journey,Dt=60;Object.keys(Eo).forEach(function(te){var Re=Eo[te].color,ke={cx:20,cy:Dt,r:7,fill:Re,stroke:"#000",pos:Eo[te].position};Pd(Nt,ke);var he={x:40,y:Dt+7,fill:"#666",text:te,textMargin:5|zt.boxTextMargin};Ud(Nt,he),Dt+=20})}(z),Ua.insert(0,0,Es,50*Object.keys(Eo).length),function(Nt,zt,Dt){for(var te=Ft().journey,Re="",ke=Dt+(2*te.height+te.diagramMarginY),he=0,Jt="#CCC",ue="black",jt=0,ce=0;ce<zt.length;ce++){var ae=zt[ce];if(Re!==ae.section){Jt=ch[he%ch.length],jt=he%ch.length,ue=K1[he%K1.length];var fe={x:ce*te.taskMargin+ce*te.width+Es,y:50,text:ae.section,fill:Jt,num:jt,colour:ue};zd(Nt,fe,te),Re=ae.section,he++}var Me=ae.people.reduce(function(Fe,Ye){return Eo[Ye]&&(Fe[Ye]=Eo[Ye]),Fe},{});ae.x=ce*te.taskMargin+ce*te.width+Es,ae.y=ke,ae.width=te.diagramMarginX,ae.height=te.diagramMarginY,ae.colour=ue,ae.fill=Jt,ae.num=jt,ae.actors=Me,Yd(Nt,ae,te),Ua.insert(ae.x,ae.y,ae.x+ae.width+te.taskMargin,450)}}(z,j,0);var Ot=Ua.getBounds();X&&z.append("text").text(X).attr("x",Es).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var Lt=Ot.stopy-Ot.starty+2*C.diagramMarginY,Yt=Es+Ot.stopx+2*C.diagramMarginX;ra(z,Lt,Yt,C.useMaxWidth),z.append("line").attr("x1",Es).attr("y1",4*C.height).attr("x2",Yt-Es-4).attr("y2",4*C.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var qt=X?70:0;z.attr("viewBox","".concat(Ot.startx," -25 ").concat(Yt," ").concat(Lt+qt)),z.attr("preserveAspectRatio","xMinYMin meet"),z.attr("height",Lt+qt+25),zn(E.db,z,s)}};var aa=d(9763),jd=d.n(aa),J1={c4:{db:Jn,renderer:er,parser:on(),init:function(u){er.setConf(u.c4)}},class:{db:Oo,renderer:ed,parser:gu(),init:function(u){u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,Oo.clear()}},classDiagram:{db:Oo,renderer:rd,parser:gu(),init:function(u){u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,Oo.clear()}},er:{db:nd,renderer:id,parser:od()},flowchart:{db:io,renderer:xl,parser:Su(),init:function(u){xl.setConf(u.flowchart),u.flowchart.arrowMarkerAbsolute=u.arrowMarkerAbsolute,io.clear(),io.setGen("gen-1")}},"flowchart-v2":{db:io,renderer:Eu,parser:Su(),init:function(u){Eu.setConf(u.flowchart),u.flowchart.arrowMarkerAbsolute=u.arrowMarkerAbsolute,io.clear(),io.setGen("gen-2")}},gantt:{db:T1,renderer:Sl,parser:A1(),init:function(u){Sl.setConf(u.gantt)}},info:{db:C1,renderer:gd,parser:Ga()},pie:{db:I1,renderer:ao,parser:Fu()},requirement:{db:M1,renderer:md,parser:L1()},sequence:{db:$u,renderer:Bc,parser:xo(),init:function(u){u.sequence.arrowMarkerAbsolute=u.arrowMarkerAbsolute,u.sequenceDiagram&&(Bc.setConf(Object.assign(u.sequence,u.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")),$u.setWrap(u.wrap),Bc.setConf(u.sequence)}},state:{db:ko,renderer:Pc,parser:U1(),init:function(u){u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,ko.clear()}},stateDiagram:{db:ko,renderer:ih,parser:U1(),init:function(u){u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,ko.clear()}},journey:{db:V1,renderer:zl,parser:jd(),init:function(u){zl.setConf(u.journey),V1.clear()}}},Ul=function(){return J1};function Yl(u,s){var m=Object.keys(u);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(u);s&&(E=E.filter(function(C){return Object.getOwnPropertyDescriptor(u,C).enumerable})),m.push.apply(m,E)}return m}function lh(u){for(var s=1;s<arguments.length;s++){var m=arguments[s]!=null?arguments[s]:{};s%2?Yl(Object(m),!0).forEach(function(E){oa(u,E,m[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(m)):Yl(Object(m)).forEach(function(E){Object.defineProperty(u,E,Object.getOwnPropertyDescriptor(m,E))})}return u}function oa(u,s,m){return s in u?Object.defineProperty(u,s,{value:m,enumerable:!0,configurable:!0,writable:!0}):u[s]=m,u}var ui=Ft().gitGraph.mainBranchName,Vo=Ft().gitGraph.mainBranchOrder,Oi={},sa=null,jl={};jl[ui]={name:ui,order:Vo};var Ti={};Ti[ui]=sa;var Di=ui,Q1="LR",Zo=0;function uh(){return _c({length:7})}var t0={},e0=function(u){if(u=mr.sanitizeText(u,Ft()),Ti[u]===void 0){var s=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+u+'")');throw s.hash={text:"checkout "+u,token:"checkout "+u,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+u+'"']},s}var m=Ti[Di=u];sa=Oi[m]};function r0(u,s,m){var E=u.indexOf(s);E===-1?u.push(m):u.splice(E,1,m)}function n0(u){var s=u.reduce(function(X,it){return X.seq>it.seq?X:it},u[0]),m="";u.forEach(function(X){m+=X===s?" *":" |"});var E,C,N,M=[m,s.id,s.seq];for(var D in Ti)Ti[D]===s.id&&M.push(D);if(b.debug(M.join(" ")),s.parents&&s.parents.length==2){var z=Oi[s.parents[0]];r0(u,s,z),u.push(Oi[s.parents[1]])}else{if(s.parents.length==0)return;var j=Oi[s.parents];r0(u,s,j)}E=u,C=function(X){return X.id},N=Object.create(null),n0(u=E.reduce(function(X,it){var ut=C(it);return N[ut]||(N[ut]=!0,X.push(it)),X},[]))}var i0=function(){var u=Object.keys(Oi).map(function(s){return Oi[s]});return u.forEach(function(s){b.debug(s.id)}),u.sort(function(s,m){return s.seq-m.seq}),u},Yc={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};const $d={parseDirective:function(u,s,m){wr.parseDirective(this,u,s,m)},getConfig:function(){return Ft().gitGraph},setDirection:function(u){Q1=u},setOptions:function(u){b.debug("options str",u),u=(u=u&&u.trim())||"{}";try{t0=JSON.parse(u)}catch(s){b.error("error while parsing gitGraph options",s.message)}},getOptions:function(){return t0},commit:function(u,s,m,E){b.debug("Entering commit:",u,s,m,E),s=mr.sanitizeText(s,Ft()),u=mr.sanitizeText(u,Ft()),E=mr.sanitizeText(E,Ft());var C={id:s||Zo+"-"+uh(),message:u,seq:Zo++,type:m||Yc.NORMAL,tag:E||"",parents:sa==null?[]:[sa.id],branch:Di};sa=C,Oi[C.id]=C,Ti[Di]=C.id,b.debug("in pushCommit "+C.id)},branch:function(u,s){if(u=mr.sanitizeText(u,Ft()),Ti[u]!==void 0){var m=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 '+u+'")');throw m.hash={text:"branch "+u,token:"branch "+u,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+u+'"']},m}Ti[u]=sa!=null?sa.id:null,jl[u]={name:u,order:s?parseInt(s,10):null},e0(u),b.debug("in createBranch")},merge:function(u,s){u=mr.sanitizeText(u,Ft());var m=Oi[Ti[Di]],E=Oi[Ti[u]];if(Di===u){var C=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw C.hash={text:"merge "+u,token:"merge "+u,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},C}if(m===void 0||!m){var N=new Error('Incorrect usage of "merge". Current branch ('+Di+")has no commits");throw N.hash={text:"merge "+u,token:"merge "+u,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},N}if(Ti[u]===void 0){var M=new Error('Incorrect usage of "merge". Branch to be merged ('+u+") does not exist");throw M.hash={text:"merge "+u,token:"merge "+u,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+u]},M}if(E===void 0||!E){var D=new Error('Incorrect usage of "merge". Branch to be merged ('+u+") has no commits");throw D.hash={text:"merge "+u,token:"merge "+u,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},D}if(m===E){var z=new Error('Incorrect usage of "merge". Both branches have same head');throw z.hash={text:"merge "+u,token:"merge "+u,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},z}var j={id:Zo+"-"+uh(),message:"merged branch "+u+" into "+Di,seq:Zo++,parents:[sa==null?null:sa.id,Ti[u]],branch:Di,type:Yc.MERGE,tag:s||""};sa=j,Oi[j.id]=j,Ti[Di]=j.id,b.debug(Ti),b.debug("in mergeBranch")},cherryPick:function(u,s){if(u=mr.sanitizeText(u,Ft()),s=mr.sanitizeText(s,Ft()),!u||Oi[u]===void 0){var m=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw m.hash={text:"cherryPick "+u+" "+s,token:"cherryPick "+u+" "+s,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},m}var E=Oi[u],C=E.branch;if(E.type===Yc.MERGE){var N=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw N.hash={text:"cherryPick "+u+" "+s,token:"cherryPick "+u+" "+s,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},N}if(!s||Oi[s]===void 0){if(C===Di){var M=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw M.hash={text:"cherryPick "+u+" "+s,token:"cherryPick "+u+" "+s,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},M}var D=Oi[Ti[Di]];if(D===void 0||!D){var z=new Error('Incorrect usage of "cherry-pick". Current branch ('+Di+")has no commits");throw z.hash={text:"cherryPick "+u+" "+s,token:"cherryPick "+u+" "+s,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},z}var j={id:Zo+"-"+uh(),message:"cherry-picked "+E+" into "+Di,seq:Zo++,parents:[sa==null?null:sa.id,E.id],branch:Di,type:Yc.CHERRY_PICK,tag:"cherry-pick:"+E.id};sa=j,Oi[j.id]=j,Ti[Di]=j.id,b.debug(Ti),b.debug("in cheeryPick")}},checkout:e0,prettyPrint:function(){b.debug(Oi),n0([i0()[0]])},clear:function(){Oi={},sa=null;var u=Ft().gitGraph.mainBranchName,s=Ft().gitGraph.mainBranchOrder;(Ti={})[u]=null,(jl={})[u]={name:u,order:s},Di=u,Zo=0,Yn()},getBranchesAsObjArray:function(){return Object.values(jl).map(function(u,s){return u.order!==null?u:lh(lh({},u),{},{order:parseFloat("0.".concat(s),10)})}).sort(function(u,s){return u.order-s.order}).map(function(u){return{name:u.name}})},getBranches:function(){return Ti},getCommits:function(){return Oi},getCommitsArray:i0,getCurrentBranch:function(){return Di},getDirection:function(){return Q1},getHead:function(){return sa},setAccTitle:ee,getAccTitle:kn,getAccDescription:di,setAccDescription:si,commitType:Yc};var Xo={},Si={},Ts={},jc=[],To=0,$c=function(u,s,m){var E=Ft().gitGraph,C=u.append("g").attr("class","commit-bullets"),N=u.append("g").attr("class","commit-labels"),M=0;Object.keys(s).sort(function(D,z){return s[D].seq-s[z].seq}).forEach(function(D,z){var j=s[D],X=Si[j.branch].pos,it=M+10;if(m){var ut;switch(j.type){case 0:default:ut="commit-normal";break;case 1:ut="commit-reverse";break;case 2:ut="commit-highlight";break;case 3:ut="commit-merge";break;case 4:ut="commit-cherry-pick"}if(j.type===2){var lt=C.append("rect");lt.attr("x",it-10),lt.attr("y",X-10),lt.attr("height",20),lt.attr("width",20),lt.attr("class","commit ".concat(j.id," commit-highlight").concat(Si[j.branch].index%8," ").concat(ut,"-outer")),C.append("rect").attr("x",it-6).attr("y",X-6).attr("height",12).attr("width",12).attr("class","commit ".concat(j.id," commit").concat(Si[j.branch].index%8," ").concat(ut,"-inner"))}else if(j.type===4)C.append("circle").attr("cx",it).attr("cy",X).attr("r",10).attr("class","commit ".concat(j.id," ").concat(ut)),C.append("circle").attr("cx",it-3).attr("cy",X+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(j.id," ").concat(ut)),C.append("circle").attr("cx",it+3).attr("cy",X+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(j.id," ").concat(ut)),C.append("line").attr("x1",it+3).attr("y1",X+1).attr("x2",it).attr("y2",X-5).attr("stroke","#fff").attr("class","commit ".concat(j.id," ").concat(ut)),C.append("line").attr("x1",it-3).attr("y1",X+1).attr("x2",it).attr("y2",X-5).attr("stroke","#fff").attr("class","commit ".concat(j.id," ").concat(ut));else{var Ot=C.append("circle");if(Ot.attr("cx",it),Ot.attr("cy",X),Ot.attr("r",j.type===3?9:10),Ot.attr("class","commit ".concat(j.id," commit").concat(Si[j.branch].index%8)),j.type===3){var Lt=C.append("circle");Lt.attr("cx",it),Lt.attr("cy",X),Lt.attr("r",6),Lt.attr("class","commit ".concat(ut," ").concat(j.id," commit").concat(Si[j.branch].index%8))}j.type===1&&C.append("path").attr("d","M ".concat(it-5,",").concat(X-5,"L").concat(it+5,",").concat(X+5,"M").concat(it-5,",").concat(X+5,"L").concat(it+5,",").concat(X-5)).attr("class","commit ".concat(ut," ").concat(j.id," commit").concat(Si[j.branch].index%8))}}if(Ts[j.id]={x:M+10,y:X},m){if(j.type!==4&&j.type!==3&&E.showCommitLabel){var Yt=N.append("g"),qt=Yt.insert("rect").attr("class","commit-label-bkg"),Nt=Yt.append("text").attr("x",M).attr("y",X+25).attr("class","commit-label").text(j.id),zt=Nt.node().getBBox();if(qt.attr("x",M+10-zt.width/2-2).attr("y",X+13.5).attr("width",zt.width+4).attr("height",zt.height+4),Nt.attr("x",M+10-zt.width/2),E.rotateCommitLabel){var Dt=-7.5-(zt.width+10)/25*9.5,te=10+zt.width/25*8.5;Yt.attr("transform","translate("+Dt+", "+te+") rotate(-45, "+M+", "+X+")")}}if(j.tag){var Re=N.insert("polygon"),ke=N.append("circle"),he=N.append("text").attr("y",X-16).attr("class","tag-label").text(j.tag),Jt=he.node().getBBox();he.attr("x",M+10-Jt.width/2);var ue=Jt.height/2,jt=X-19.2;Re.attr("class","tag-label-bkg").attr("points",`
|
|
`.concat(M-Jt.width/2-2,",").concat(jt+2,`
|
|
`).concat(M-Jt.width/2-2,",").concat(jt-2,`
|
|
`).concat(M+10-Jt.width/2-4,",").concat(jt-ue-2,`
|
|
`).concat(M+10+Jt.width/2+4,",").concat(jt-ue-2,`
|
|
`).concat(M+10+Jt.width/2+4,",").concat(jt+ue+2,`
|
|
`).concat(M+10-Jt.width/2-4,",").concat(jt+ue+2)),ke.attr("cx",M-Jt.width/2+2).attr("cy",jt).attr("r",1.5).attr("class","tag-hole")}}(M+=50)>To&&(To=M)})},hh=function u(s,m,E){var C=E||0,N=s+Math.abs(s-m)/2;if(C>5)return N;for(var M=!0,D=0;D<jc.length;D++)Math.abs(jc[D]-N)<10&&(M=!1);return M?(jc.push(N),N):u(s,m-Math.abs(s-m)/5,C)};const a0={draw:function(u,s,m,E){Si={},Ts={},Xo={},To=0,jc=[];var C=Ft(),N=Ft().gitGraph;b.debug("in gitgraph renderer",u+`
|
|
`,"id:",s,m),Xo=E.db.getCommits();var M=E.db.getBranchesAsObjArray(),D=0;M.forEach(function(Ot,Lt){Si[Ot.name]={pos:D,index:Lt},D+=50+(N.rotateCommitLabel?40:0)});var z=(0,T.select)('[id="'.concat(s,'"]'));zn(E.db,z,s),$c(z,Xo,!1),N.showBranches&&function(Ot,Lt){var Yt=Ft().gitGraph,qt=Ot.append("g");Lt.forEach(function(Nt,zt){var Dt=zt%8,te=Si[Nt.name].pos,Re=qt.append("line");Re.attr("x1",0),Re.attr("y1",te),Re.attr("x2",To),Re.attr("y2",te),Re.attr("class","branch branch"+Dt),jc.push(te);var ke=function(jt){var ce=document.createElementNS("http://www.w3.org/2000/svg","text"),ae=[];ae=typeof jt=="string"?jt.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(jt)?jt:[];for(var fe=0;fe<ae.length;fe++){var Me=document.createElementNS("http://www.w3.org/2000/svg","tspan");Me.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Me.setAttribute("dy","1em"),Me.setAttribute("x","0"),Me.setAttribute("class","row"),Me.textContent=ae[fe].trim(),ce.appendChild(Me)}return ce}(Nt.name),he=qt.insert("rect"),Jt=qt.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+Dt);Jt.node().appendChild(ke);var ue=ke.getBBox();he.attr("class","branchLabelBkg label"+Dt).attr("rx",4).attr("ry",4).attr("x",-ue.width-4-(Yt.rotateCommitLabel===!0?30:0)).attr("y",-ue.height/2+8).attr("width",ue.width+18).attr("height",ue.height+4),Jt.attr("transform","translate("+(-ue.width-14-(Yt.rotateCommitLabel===!0?30:0))+", "+(te-ue.height/2-1)+")"),he.attr("transform","translate(-19, "+(te-ue.height/2)+")")})}(z,M),function(Ot,Lt){var Yt=Ot.append("g").attr("class","commit-arrows");Object.keys(Lt).forEach(function(qt,Nt){var zt=Lt[qt];zt.parents&&zt.parents.length>0&&zt.parents.forEach(function(Dt){(function(te,Re,ke,he){var Jt=Ft(),ue=Ts[Re.id],jt=Ts[ke.id],ce=function(lr,dr,Ge){return Ts[dr.id],Ts[lr.id],Object.keys(Ge).filter(function(Ve){return Ge[Ve].branch===dr.branch&&Ge[Ve].seq>lr.seq&&Ge[Ve].seq<dr.seq}).length>0}(Re,ke,he);Jt.arrowMarkerAbsolute&&(window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)");var ae,fe="",Me="",Fe=0,Ye=0,gr=Si[ke.branch].index;if(ce){fe="A 10 10, 0, 0, 0,",Me="A 10 10, 0, 0, 1,",Fe=10,Ye=10,gr=Si[ke.branch].index;var je=ue.y<jt.y?hh(ue.y,jt.y):hh(jt.y,ue.y);ae=ue.y<jt.y?"M ".concat(ue.x," ").concat(ue.y," L ").concat(ue.x," ").concat(je-Fe," ").concat(fe," ").concat(ue.x+Ye," ").concat(je," L ").concat(jt.x-Fe," ").concat(je," ").concat(Me," ").concat(jt.x," ").concat(je+Ye," L ").concat(jt.x," ").concat(jt.y):"M ".concat(ue.x," ").concat(ue.y," L ").concat(ue.x," ").concat(je+Fe," ").concat(Me," ").concat(ue.x+Ye," ").concat(je," L ").concat(jt.x-Fe," ").concat(je," ").concat(fe," ").concat(jt.x," ").concat(je-Ye," L ").concat(jt.x," ").concat(jt.y)}else ue.y<jt.y&&(fe="A 20 20, 0, 0, 0,",Fe=20,Ye=20,gr=Si[ke.branch].index,ae="M ".concat(ue.x," ").concat(ue.y," L ").concat(ue.x," ").concat(jt.y-Fe," ").concat(fe," ").concat(ue.x+Ye," ").concat(jt.y," L ").concat(jt.x," ").concat(jt.y)),ue.y>jt.y&&(fe="A 20 20, 0, 0, 0,",Fe=20,Ye=20,gr=Si[Re.branch].index,ae="M ".concat(ue.x," ").concat(ue.y," L ").concat(jt.x-Fe," ").concat(ue.y," ").concat(fe," ").concat(jt.x," ").concat(ue.y-Ye," L ").concat(jt.x," ").concat(jt.y)),ue.y===jt.y&&(gr=Si[Re.branch].index,ae="M ".concat(ue.x," ").concat(ue.y," L ").concat(ue.x," ").concat(jt.y-Fe," ").concat(fe," ").concat(ue.x+Ye," ").concat(jt.y," L ").concat(jt.x," ").concat(jt.y));te.append("path").attr("d",ae).attr("class","arrow arrow"+gr%8)})(Yt,Lt[Dt],zt,Lt)})})}(z,Xo),$c(z,Xo,!0);var j=N.diagramPadding,X=z.node().getBBox(),it=X.width+2*j,ut=X.height+2*j;ra(z,ut,it,C.useMaxWidth);var lt="".concat(X.x-j-(N.showBranches&&N.rotateCommitLabel===!0?30:0)," ").concat(X.y-j," ").concat(it," ").concat(ut);z.attr("viewBox",lt)}};var o0=d(2553),$l=d.n(o0);const Hl=function(u){return u.match(/^\s*gitGraph/)?"gitGraph":null},ql=function(){var u,s,m,E,C,N;u="gitGraph",s=$l(),m=$d,E=a0,C=void 0,N=Hl,J1[u]={parser:s,db:m,renderer:E,init:C},function(M,D){Qn[M]={detector:D}}(u,N)};function s0(u,s){for(var m=0;m<s.length;m++){var E=s[m];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(u,E.key,E)}}function Hc(u,s,m){return s in u?Object.defineProperty(u,s,{value:m,enumerable:!0,configurable:!0,writable:!0}):u[s]=m,u}var c0=function(){function u(E){var C,N;(function(z,j){if(!(z instanceof j))throw new TypeError("Cannot call a class as a function")})(this,u),Hc(this,"type","graph"),Hc(this,"parser",void 0),Hc(this,"renderer",void 0),Hc(this,"db",void 0);var M=Ul(),D=Ft();this.txt=E,this.type=qi(E,D),b.debug("Type "+this.type),this.db=M[this.type].db,(C=(N=this.db).clear)===null||C===void 0||C.call(N),this.renderer=M[this.type].renderer,this.parser=M[this.type].parser,this.parser.parser.yy=this.db,typeof M[this.type].init=="function"&&(M[this.type].init(D),b.debug("Initialized diagram "+this.type,D)),this.txt=this.txt+`
|
|
`,this.parser.parser.yy.graphType=this.type,this.parser.parser.yy.parseError=function(z,j){throw{str:z,hash:j}},this.parser.parse(this.txt)}var s,m;return s=u,(m=[{key:"parse",value:function(E){var C=!1;try{E+=`
|
|
`,this.db.clear(),this.parser.parse(E)}catch(N){if(C=!0,!d.g.mermaid.parseError)throw N;N.str!=null?d.g.mermaid.parseError(N.str,N.hash):d.g.mermaid.parseError(N)}return!C}},{key:"getParser",value:function(){return this.parser}},{key:"getType",value:function(){return this.type}}])&&s0(s.prototype,m),Object.defineProperty(s,"prototype",{writable:!1}),u}();const dh=c0,Wl=function(u){return`g.classGroup text {
|
|
fill: `.concat(u.nodeBorder,`;
|
|
fill: `).concat(u.classText,`;
|
|
stroke: none;
|
|
font-family: `).concat(u.fontFamily,`;
|
|
font-size: 10px;
|
|
|
|
.title {
|
|
font-weight: bolder;
|
|
}
|
|
|
|
}
|
|
|
|
.nodeLabel, .edgeLabel {
|
|
color: `).concat(u.classText,`;
|
|
}
|
|
.edgeLabel .label rect {
|
|
fill: `).concat(u.mainBkg,`;
|
|
}
|
|
.label text {
|
|
fill: `).concat(u.classText,`;
|
|
}
|
|
.edgeLabel .label span {
|
|
background: `).concat(u.mainBkg,`;
|
|
}
|
|
|
|
.classTitle {
|
|
font-weight: bolder;
|
|
}
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(u.mainBkg,`;
|
|
stroke: `).concat(u.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
|
|
.divider {
|
|
stroke: `).concat(u.nodeBorder,`;
|
|
stroke: 1;
|
|
}
|
|
|
|
g.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
g.classGroup rect {
|
|
fill: `).concat(u.mainBkg,`;
|
|
stroke: `).concat(u.nodeBorder,`;
|
|
}
|
|
|
|
g.classGroup line {
|
|
stroke: `).concat(u.nodeBorder,`;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.classLabel .box {
|
|
stroke: none;
|
|
stroke-width: 0;
|
|
fill: `).concat(u.mainBkg,`;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.classLabel .label {
|
|
fill: `).concat(u.nodeBorder,`;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.relation {
|
|
stroke: `).concat(u.lineColor,`;
|
|
stroke-width: 1;
|
|
fill: none;
|
|
}
|
|
|
|
.dashed-line{
|
|
stroke-dasharray: 3;
|
|
}
|
|
|
|
#compositionStart, .composition {
|
|
fill: `).concat(u.lineColor,` !important;
|
|
stroke: `).concat(u.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#compositionEnd, .composition {
|
|
fill: `).concat(u.lineColor,` !important;
|
|
stroke: `).concat(u.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#dependencyStart, .dependency {
|
|
fill: `).concat(u.lineColor,` !important;
|
|
stroke: `).concat(u.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#dependencyStart, .dependency {
|
|
fill: `).concat(u.lineColor,` !important;
|
|
stroke: `).concat(u.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#extensionStart, .extension {
|
|
fill: `).concat(u.lineColor,` !important;
|
|
stroke: `).concat(u.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#extensionEnd, .extension {
|
|
fill: `).concat(u.lineColor,` !important;
|
|
stroke: `).concat(u.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#aggregationStart, .aggregation {
|
|
fill: `).concat(u.mainBkg,` !important;
|
|
stroke: `).concat(u.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#aggregationEnd, .aggregation {
|
|
fill: `).concat(u.mainBkg,` !important;
|
|
stroke: `).concat(u.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.edgeTerminals {
|
|
font-size: 11px;
|
|
}
|
|
|
|
`)},fh=function(u){return`.label {
|
|
font-family: `.concat(u.fontFamily,`;
|
|
color: `).concat(u.nodeTextColor||u.textColor,`;
|
|
}
|
|
.cluster-label text {
|
|
fill: `).concat(u.titleColor,`;
|
|
}
|
|
.cluster-label span {
|
|
color: `).concat(u.titleColor,`;
|
|
}
|
|
|
|
.label text,span {
|
|
fill: `).concat(u.nodeTextColor||u.textColor,`;
|
|
color: `).concat(u.nodeTextColor||u.textColor,`;
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(u.mainBkg,`;
|
|
stroke: `).concat(u.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.node .label {
|
|
text-align: center;
|
|
}
|
|
.node.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.arrowheadPath {
|
|
fill: `).concat(u.arrowheadColor,`;
|
|
}
|
|
|
|
.edgePath .path {
|
|
stroke: `).concat(u.lineColor,`;
|
|
stroke-width: 2.0px;
|
|
}
|
|
|
|
.flowchart-link {
|
|
stroke: `).concat(u.lineColor,`;
|
|
fill: none;
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: `).concat(u.edgeLabelBackground,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
background-color: `).concat(u.edgeLabelBackground,`;
|
|
fill: `).concat(u.edgeLabelBackground,`;
|
|
}
|
|
text-align: center;
|
|
}
|
|
|
|
.cluster rect {
|
|
fill: `).concat(u.clusterBkg,`;
|
|
stroke: `).concat(u.clusterBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.cluster text {
|
|
fill: `).concat(u.titleColor,`;
|
|
}
|
|
|
|
.cluster span {
|
|
color: `).concat(u.titleColor,`;
|
|
}
|
|
/* .cluster div {
|
|
color: `).concat(u.titleColor,`;
|
|
} */
|
|
|
|
div.mermaidTooltip {
|
|
position: absolute;
|
|
text-align: center;
|
|
max-width: 200px;
|
|
padding: 2px;
|
|
font-family: `).concat(u.fontFamily,`;
|
|
font-size: 12px;
|
|
background: `).concat(u.tertiaryColor,`;
|
|
border: 1px solid `).concat(u.border2,`;
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
}
|
|
`)},ph=function(u){return`
|
|
defs #statediagram-barbEnd {
|
|
fill: `.concat(u.transitionColor,`;
|
|
stroke: `).concat(u.transitionColor,`;
|
|
}
|
|
g.stateGroup text {
|
|
fill: `).concat(u.nodeBorder,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
}
|
|
g.stateGroup text {
|
|
fill: `).concat(u.textColor,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
|
|
}
|
|
g.stateGroup .state-title {
|
|
font-weight: bolder;
|
|
fill: `).concat(u.stateLabelColor,`;
|
|
}
|
|
|
|
g.stateGroup rect {
|
|
fill: `).concat(u.mainBkg,`;
|
|
stroke: `).concat(u.nodeBorder,`;
|
|
}
|
|
|
|
g.stateGroup line {
|
|
stroke: `).concat(u.lineColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.transition {
|
|
stroke: `).concat(u.transitionColor,`;
|
|
stroke-width: 1;
|
|
fill: none;
|
|
}
|
|
|
|
.stateGroup .composit {
|
|
fill: `).concat(u.background,`;
|
|
border-bottom: 1px
|
|
}
|
|
|
|
.stateGroup .alt-composit {
|
|
fill: #e0e0e0;
|
|
border-bottom: 1px
|
|
}
|
|
|
|
.state-note {
|
|
stroke: `).concat(u.noteBorderColor,`;
|
|
fill: `).concat(u.noteBkgColor,`;
|
|
|
|
text {
|
|
fill: `).concat(u.noteTextColor,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
}
|
|
}
|
|
|
|
.stateLabel .box {
|
|
stroke: none;
|
|
stroke-width: 0;
|
|
fill: `).concat(u.mainBkg,`;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.edgeLabel .label rect {
|
|
fill: `).concat(u.labelBackgroundColor,`;
|
|
opacity: 0.5;
|
|
}
|
|
.edgeLabel .label text {
|
|
fill: `).concat(u.transitionLabelColor||u.tertiaryTextColor,`;
|
|
}
|
|
.label div .edgeLabel {
|
|
color: `).concat(u.transitionLabelColor||u.tertiaryTextColor,`;
|
|
}
|
|
|
|
.stateLabel text {
|
|
fill: `).concat(u.stateLabelColor,`;
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.node circle.state-start {
|
|
fill: `).concat(u.specialStateColor,`;
|
|
stroke: `).concat(u.specialStateColor,`;
|
|
}
|
|
|
|
.node .fork-join {
|
|
fill: `).concat(u.specialStateColor,`;
|
|
stroke: `).concat(u.specialStateColor,`;
|
|
}
|
|
|
|
.node circle.state-end {
|
|
fill: `).concat(u.innerEndBackground,`;
|
|
stroke: `).concat(u.background,`;
|
|
stroke-width: 1.5
|
|
}
|
|
.end-state-inner {
|
|
fill: `).concat(u.compositeBackground||u.background,`;
|
|
// stroke: `).concat(u.background,`;
|
|
stroke-width: 1.5
|
|
}
|
|
|
|
.node rect {
|
|
fill: `).concat(u.stateBkg||u.mainBkg,`;
|
|
stroke: `).concat(u.stateBorder||u.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
.node polygon {
|
|
fill: `).concat(u.mainBkg,`;
|
|
stroke: `).concat(u.stateBorder||u.nodeBorder,`;;
|
|
stroke-width: 1px;
|
|
}
|
|
#statediagram-barbEnd {
|
|
fill: `).concat(u.lineColor,`;
|
|
}
|
|
|
|
.statediagram-cluster rect {
|
|
fill: `).concat(u.compositeTitleBackground,`;
|
|
stroke: `).concat(u.stateBorder||u.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.cluster-label, .nodeLabel {
|
|
color: `).concat(u.stateLabelColor,`;
|
|
}
|
|
|
|
.statediagram-cluster rect.outer {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-state .divider {
|
|
stroke: `).concat(u.stateBorder||u.nodeBorder,`;
|
|
}
|
|
|
|
.statediagram-state .title-state {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-cluster.statediagram-cluster .inner {
|
|
fill: `).concat(u.compositeBackground||u.background,`;
|
|
}
|
|
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
fill: `).concat(u.altBackground?u.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(u.altBackground?u.altBackground:"#efefef",`;
|
|
}
|
|
|
|
.note-edge {
|
|
stroke-dasharray: 5;
|
|
}
|
|
|
|
.statediagram-note rect {
|
|
fill: `).concat(u.noteBkgColor,`;
|
|
stroke: `).concat(u.noteBorderColor,`;
|
|
stroke-width: 1px;
|
|
rx: 0;
|
|
ry: 0;
|
|
}
|
|
.statediagram-note rect {
|
|
fill: `).concat(u.noteBkgColor,`;
|
|
stroke: `).concat(u.noteBorderColor,`;
|
|
stroke-width: 1px;
|
|
rx: 0;
|
|
ry: 0;
|
|
}
|
|
|
|
.statediagram-note text {
|
|
fill: `).concat(u.noteTextColor,`;
|
|
}
|
|
|
|
.statediagram-note .nodeLabel {
|
|
color: `).concat(u.noteTextColor,`;
|
|
}
|
|
.statediagram .edgeLabel {
|
|
color: red; // `).concat(u.noteTextColor,`;
|
|
}
|
|
|
|
#dependencyStart, #dependencyEnd {
|
|
fill: `).concat(u.lineColor,`;
|
|
stroke: `).concat(u.lineColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
`)};var Jr={flowchart:fh,"flowchart-v2":fh,sequence:function(u){return`.actor {
|
|
stroke: `.concat(u.actorBorder,`;
|
|
fill: `).concat(u.actorBkg,`;
|
|
}
|
|
|
|
text.actor > tspan {
|
|
fill: `).concat(u.actorTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.actor-line {
|
|
stroke: `).concat(u.actorLineColor,`;
|
|
}
|
|
|
|
.messageLine0 {
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: none;
|
|
stroke: `).concat(u.signalColor,`;
|
|
}
|
|
|
|
.messageLine1 {
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: 2, 2;
|
|
stroke: `).concat(u.signalColor,`;
|
|
}
|
|
|
|
#arrowhead path {
|
|
fill: `).concat(u.signalColor,`;
|
|
stroke: `).concat(u.signalColor,`;
|
|
}
|
|
|
|
.sequenceNumber {
|
|
fill: `).concat(u.sequenceNumberColor,`;
|
|
}
|
|
|
|
#sequencenumber {
|
|
fill: `).concat(u.signalColor,`;
|
|
}
|
|
|
|
#crosshead path {
|
|
fill: `).concat(u.signalColor,`;
|
|
stroke: `).concat(u.signalColor,`;
|
|
}
|
|
|
|
.messageText {
|
|
fill: `).concat(u.signalTextColor,`;
|
|
stroke: `).concat(u.signalTextColor,`;
|
|
}
|
|
|
|
.labelBox {
|
|
stroke: `).concat(u.labelBoxBorderColor,`;
|
|
fill: `).concat(u.labelBoxBkgColor,`;
|
|
}
|
|
|
|
.labelText, .labelText > tspan {
|
|
fill: `).concat(u.labelTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.loopText, .loopText > tspan {
|
|
fill: `).concat(u.loopTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.loopLine {
|
|
stroke-width: 2px;
|
|
stroke-dasharray: 2, 2;
|
|
stroke: `).concat(u.labelBoxBorderColor,`;
|
|
fill: `).concat(u.labelBoxBorderColor,`;
|
|
}
|
|
|
|
.note {
|
|
//stroke: #decc93;
|
|
stroke: `).concat(u.noteBorderColor,`;
|
|
fill: `).concat(u.noteBkgColor,`;
|
|
}
|
|
|
|
.noteText, .noteText > tspan {
|
|
fill: `).concat(u.noteTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.activation0 {
|
|
fill: `).concat(u.activationBkgColor,`;
|
|
stroke: `).concat(u.activationBorderColor,`;
|
|
}
|
|
|
|
.activation1 {
|
|
fill: `).concat(u.activationBkgColor,`;
|
|
stroke: `).concat(u.activationBorderColor,`;
|
|
}
|
|
|
|
.activation2 {
|
|
fill: `).concat(u.activationBkgColor,`;
|
|
stroke: `).concat(u.activationBorderColor,`;
|
|
}
|
|
|
|
.actorPopupMenu {
|
|
position: absolute;
|
|
}
|
|
|
|
.actorPopupMenuPanel {
|
|
position: absolute;
|
|
fill: `).concat(u.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(u.actorBorder,`;
|
|
fill: `).concat(u.actorBkg,`;
|
|
}
|
|
.actor-man circle, line {
|
|
stroke: `).concat(u.actorBorder,`;
|
|
fill: `).concat(u.actorBkg,`;
|
|
stroke-width: 2px;
|
|
}
|
|
`)},gantt:function(u){return`
|
|
.mermaid-main-font {
|
|
font-family: "trebuchet ms", verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
.exclude-range {
|
|
fill: `.concat(u.excludeBkgColor,`;
|
|
}
|
|
|
|
.section {
|
|
stroke: none;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.section0 {
|
|
fill: `).concat(u.sectionBkgColor,`;
|
|
}
|
|
|
|
.section2 {
|
|
fill: `).concat(u.sectionBkgColor2,`;
|
|
}
|
|
|
|
.section1,
|
|
.section3 {
|
|
fill: `).concat(u.altSectionBkgColor,`;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.sectionTitle0 {
|
|
fill: `).concat(u.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle1 {
|
|
fill: `).concat(u.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle2 {
|
|
fill: `).concat(u.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle3 {
|
|
fill: `).concat(u.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle {
|
|
text-anchor: start;
|
|
// font-size: `).concat(u.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(u.gridColor,`;
|
|
opacity: 0.8;
|
|
shape-rendering: crispEdges;
|
|
text {
|
|
font-family: `).concat(u.fontFamily,`;
|
|
fill: `).concat(u.textColor,`;
|
|
}
|
|
}
|
|
|
|
.grid path {
|
|
stroke-width: 0;
|
|
}
|
|
|
|
|
|
/* Today line */
|
|
|
|
.today {
|
|
fill: none;
|
|
stroke: `).concat(u.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(u.ganttFontSize,`;
|
|
// }
|
|
|
|
.taskTextOutsideRight {
|
|
fill: `).concat(u.taskTextDarkColor,`;
|
|
text-anchor: start;
|
|
// font-size: `).concat(u.ganttFontSize,`;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
|
|
}
|
|
|
|
.taskTextOutsideLeft {
|
|
fill: `).concat(u.taskTextDarkColor,`;
|
|
text-anchor: end;
|
|
// font-size: `).concat(u.ganttFontSize,`;
|
|
}
|
|
|
|
/* Special case clickable */
|
|
.task.clickable {
|
|
cursor: pointer;
|
|
}
|
|
.taskText.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(u.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.taskTextOutsideLeft.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(u.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.taskTextOutsideRight.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(u.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Specific task settings for the sections*/
|
|
|
|
.taskText0,
|
|
.taskText1,
|
|
.taskText2,
|
|
.taskText3 {
|
|
fill: `).concat(u.taskTextColor,`;
|
|
}
|
|
|
|
.task0,
|
|
.task1,
|
|
.task2,
|
|
.task3 {
|
|
fill: `).concat(u.taskBkgColor,`;
|
|
stroke: `).concat(u.taskBorderColor,`;
|
|
}
|
|
|
|
.taskTextOutside0,
|
|
.taskTextOutside2
|
|
{
|
|
fill: `).concat(u.taskTextOutsideColor,`;
|
|
}
|
|
|
|
.taskTextOutside1,
|
|
.taskTextOutside3 {
|
|
fill: `).concat(u.taskTextOutsideColor,`;
|
|
}
|
|
|
|
|
|
/* Active task */
|
|
|
|
.active0,
|
|
.active1,
|
|
.active2,
|
|
.active3 {
|
|
fill: `).concat(u.activeTaskBkgColor,`;
|
|
stroke: `).concat(u.activeTaskBorderColor,`;
|
|
}
|
|
|
|
.activeText0,
|
|
.activeText1,
|
|
.activeText2,
|
|
.activeText3 {
|
|
fill: `).concat(u.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
|
|
/* Completed task */
|
|
|
|
.done0,
|
|
.done1,
|
|
.done2,
|
|
.done3 {
|
|
stroke: `).concat(u.doneTaskBorderColor,`;
|
|
fill: `).concat(u.doneTaskBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.doneText0,
|
|
.doneText1,
|
|
.doneText2,
|
|
.doneText3 {
|
|
fill: `).concat(u.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
|
|
/* Tasks on the critical line */
|
|
|
|
.crit0,
|
|
.crit1,
|
|
.crit2,
|
|
.crit3 {
|
|
stroke: `).concat(u.critBorderColor,`;
|
|
fill: `).concat(u.critBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.activeCrit0,
|
|
.activeCrit1,
|
|
.activeCrit2,
|
|
.activeCrit3 {
|
|
stroke: `).concat(u.critBorderColor,`;
|
|
fill: `).concat(u.activeTaskBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.doneCrit0,
|
|
.doneCrit1,
|
|
.doneCrit2,
|
|
.doneCrit3 {
|
|
stroke: `).concat(u.critBorderColor,`;
|
|
fill: `).concat(u.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(u.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
.activeCritText0,
|
|
.activeCritText1,
|
|
.activeCritText2,
|
|
.activeCritText3 {
|
|
fill: `).concat(u.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
.titleText {
|
|
text-anchor: middle;
|
|
font-size: 18px;
|
|
fill: `).concat(u.textColor,` ;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
`)},classDiagram:Wl,"classDiagram-v2":Wl,class:Wl,stateDiagram:ph,state:ph,gitGraph:function(u){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(s){return`
|
|
.branch-label`.concat(s," { fill: ").concat(u["gitBranchLabel"+s],`; }
|
|
.commit`).concat(s," { stroke: ").concat(u["git"+s],"; fill: ").concat(u["git"+s],`; }
|
|
.commit-highlight`).concat(s," { stroke: ").concat(u["gitInv"+s],"; fill: ").concat(u["gitInv"+s],`; }
|
|
.label`).concat(s," { fill: ").concat(u["git"+s],`; }
|
|
.arrow`).concat(s," { stroke: ").concat(u["git"+s],`; }
|
|
`)}).join(`
|
|
`),`
|
|
|
|
.branch {
|
|
stroke-width: 1;
|
|
stroke: `).concat(u.lineColor,`;
|
|
stroke-dasharray: 2;
|
|
}
|
|
.commit-label { font-size: `).concat(u.commitLabelFontSize,"; fill: ").concat(u.commitLabelColor,`;}
|
|
.commit-label-bkg { font-size: `).concat(u.commitLabelFontSize,"; fill: ").concat(u.commitLabelBackground,`; opacity: 0.5; }
|
|
.tag-label { font-size: `).concat(u.tagLabelFontSize,"; fill: ").concat(u.tagLabelColor,`;}
|
|
.tag-label-bkg { fill: `).concat(u.tagLabelBackground,"; stroke: ").concat(u.tagLabelBorder,`; }
|
|
.tag-hole { fill: `).concat(u.textColor,`; }
|
|
|
|
.commit-merge {
|
|
stroke: `).concat(u.primaryColor,`;
|
|
fill: `).concat(u.primaryColor,`;
|
|
}
|
|
.commit-reverse {
|
|
stroke: `).concat(u.primaryColor,`;
|
|
fill: `).concat(u.primaryColor,`;
|
|
stroke-width: 3;
|
|
}
|
|
.commit-highlight-outer {
|
|
}
|
|
.commit-highlight-inner {
|
|
stroke: `).concat(u.primaryColor,`;
|
|
fill: `).concat(u.primaryColor,`;
|
|
}
|
|
|
|
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
}
|
|
`)},info:function(){return""},pie:function(u){return`
|
|
.pieCircle{
|
|
stroke: `.concat(u.pieStrokeColor,`;
|
|
stroke-width : `).concat(u.pieStrokeWidth,`;
|
|
opacity : `).concat(u.pieOpacity,`;
|
|
}
|
|
.pieTitleText {
|
|
text-anchor: middle;
|
|
font-size: `).concat(u.pieTitleTextSize,`;
|
|
fill: `).concat(u.pieTitleTextColor,`;
|
|
font-family: `).concat(u.fontFamily,`;
|
|
}
|
|
.slice {
|
|
font-family: `).concat(u.fontFamily,`;
|
|
fill: `).concat(u.pieSectionTextColor,`;
|
|
font-size:`).concat(u.pieSectionTextSize,`;
|
|
// fill: white;
|
|
}
|
|
.legend text {
|
|
fill: `).concat(u.pieLegendTextColor,`;
|
|
font-family: `).concat(u.fontFamily,`;
|
|
font-size: `).concat(u.pieLegendTextSize,`;
|
|
}
|
|
`)},er:function(u){return`
|
|
.entityBox {
|
|
fill: `.concat(u.mainBkg,`;
|
|
stroke: `).concat(u.nodeBorder,`;
|
|
}
|
|
|
|
.attributeBoxOdd {
|
|
fill: #ffffff;
|
|
stroke: `).concat(u.nodeBorder,`;
|
|
}
|
|
|
|
.attributeBoxEven {
|
|
fill: #f2f2f2;
|
|
stroke: `).concat(u.nodeBorder,`;
|
|
}
|
|
|
|
.relationshipLabelBox {
|
|
fill: `).concat(u.tertiaryColor,`;
|
|
opacity: 0.7;
|
|
background-color: `).concat(u.tertiaryColor,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
.relationshipLine {
|
|
stroke: `).concat(u.lineColor,`;
|
|
}
|
|
`)},journey:function(u){return`.label {
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
color: `.concat(u.textColor,`;
|
|
}
|
|
.mouth {
|
|
stroke: #666;
|
|
}
|
|
|
|
line {
|
|
stroke: `).concat(u.textColor,`
|
|
}
|
|
|
|
.legend {
|
|
fill: `).concat(u.textColor,`;
|
|
}
|
|
|
|
.label text {
|
|
fill: #333;
|
|
}
|
|
.label {
|
|
color: `).concat(u.textColor,`
|
|
}
|
|
|
|
.face {
|
|
`).concat(u.faceColor?"fill: ".concat(u.faceColor):"fill: #FFF8DC",`;
|
|
stroke: #999;
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(u.mainBkg,`;
|
|
stroke: `).concat(u.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.node .label {
|
|
text-align: center;
|
|
}
|
|
.node.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.arrowheadPath {
|
|
fill: `).concat(u.arrowheadColor,`;
|
|
}
|
|
|
|
.edgePath .path {
|
|
stroke: `).concat(u.lineColor,`;
|
|
stroke-width: 1.5px;
|
|
}
|
|
|
|
.flowchart-link {
|
|
stroke: `).concat(u.lineColor,`;
|
|
fill: none;
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: `).concat(u.edgeLabelBackground,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
}
|
|
text-align: center;
|
|
}
|
|
|
|
.cluster rect {
|
|
}
|
|
|
|
.cluster text {
|
|
fill: `).concat(u.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(u.tertiaryColor,`;
|
|
border: 1px solid `).concat(u.border2,`;
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
}
|
|
|
|
.task-type-0, .section-type-0 {
|
|
`).concat(u.fillType0?"fill: ".concat(u.fillType0):"",`;
|
|
}
|
|
.task-type-1, .section-type-1 {
|
|
`).concat(u.fillType0?"fill: ".concat(u.fillType1):"",`;
|
|
}
|
|
.task-type-2, .section-type-2 {
|
|
`).concat(u.fillType0?"fill: ".concat(u.fillType2):"",`;
|
|
}
|
|
.task-type-3, .section-type-3 {
|
|
`).concat(u.fillType0?"fill: ".concat(u.fillType3):"",`;
|
|
}
|
|
.task-type-4, .section-type-4 {
|
|
`).concat(u.fillType0?"fill: ".concat(u.fillType4):"",`;
|
|
}
|
|
.task-type-5, .section-type-5 {
|
|
`).concat(u.fillType0?"fill: ".concat(u.fillType5):"",`;
|
|
}
|
|
.task-type-6, .section-type-6 {
|
|
`).concat(u.fillType0?"fill: ".concat(u.fillType6):"",`;
|
|
}
|
|
.task-type-7, .section-type-7 {
|
|
`).concat(u.fillType0?"fill: ".concat(u.fillType7):"",`;
|
|
}
|
|
|
|
.actor-0 {
|
|
`).concat(u.actor0?"fill: ".concat(u.actor0):"",`;
|
|
}
|
|
.actor-1 {
|
|
`).concat(u.actor1?"fill: ".concat(u.actor1):"",`;
|
|
}
|
|
.actor-2 {
|
|
`).concat(u.actor2?"fill: ".concat(u.actor2):"",`;
|
|
}
|
|
.actor-3 {
|
|
`).concat(u.actor3?"fill: ".concat(u.actor3):"",`;
|
|
}
|
|
.actor-4 {
|
|
`).concat(u.actor4?"fill: ".concat(u.actor4):"",`;
|
|
}
|
|
.actor-5 {
|
|
`).concat(u.actor5?"fill: ".concat(u.actor5):"",`;
|
|
}
|
|
|
|
}
|
|
`)},requirement:function(u){return`
|
|
|
|
marker {
|
|
fill: `.concat(u.relationColor,`;
|
|
stroke: `).concat(u.relationColor,`;
|
|
}
|
|
|
|
marker.cross {
|
|
stroke: `).concat(u.lineColor,`;
|
|
}
|
|
|
|
svg {
|
|
font-family: `).concat(u.fontFamily,`;
|
|
font-size: `).concat(u.fontSize,`;
|
|
}
|
|
|
|
.reqBox {
|
|
fill: `).concat(u.requirementBackground,`;
|
|
fill-opacity: 100%;
|
|
stroke: `).concat(u.requirementBorderColor,`;
|
|
stroke-width: `).concat(u.requirementBorderSize,`;
|
|
}
|
|
|
|
.reqTitle, .reqLabel{
|
|
fill: `).concat(u.requirementTextColor,`;
|
|
}
|
|
.reqLabelBox {
|
|
fill: `).concat(u.relationLabelBackground,`;
|
|
fill-opacity: 100%;
|
|
}
|
|
|
|
.req-title-line {
|
|
stroke: `).concat(u.requirementBorderColor,`;
|
|
stroke-width: `).concat(u.requirementBorderSize,`;
|
|
}
|
|
.relationshipLine {
|
|
stroke: `).concat(u.relationColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
.relationshipLabel {
|
|
fill: `).concat(u.relationLabelColor,`;
|
|
}
|
|
|
|
`)},c4:function(u){return`.person {
|
|
stroke: `.concat(u.personBorder,`;
|
|
fill: `).concat(u.personBkg,`;
|
|
}
|
|
`)}};function rc(u){return rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},rc(u)}var nn=!1,ti=function(u){var s=u;return(s=(s=s.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},Ko={};function Ki(u){var s;xl.setConf(u.flowchart),Eu.setConf(u.flowchart),u.sequenceDiagram!==void 0&&Bc.setConf(Te(u.sequence,u.sequenceDiagram)),Bc.setConf(u.sequence),Sl.setConf(u.gantt),Pc.setConf(u.state),ih.setConf(u.state),zl.setConf(u.journey),s=u.class,Object.keys(s).forEach(function(m){s[m]})}var Un=Object.freeze({render:function(u,s,m,E){Xr();var C=s.replace(/\r\n?/g,`
|
|
`),N=rn.detectInit(C);N&&(Lo(N),Dn(N));var M=Ft();b.debug(M),s.length>M.maxTextSize&&(C="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var D=(0,T.select)("body");if(E!==void 0){if(M.securityLevel==="sandbox"){var z=(0,T.select)("body").append("iframe").attr("id","i"+u).attr("style","width: 100%; height: 100%;").attr("sandbox","");(D=(0,T.select)(z.nodes()[0].contentDocument.body)).node().style.margin=0}if(E.innerHTML="",M.securityLevel==="sandbox"){var j=(0,T.select)(E).append("iframe").attr("id","i"+u).attr("style","width: 100%; height: 100%;").attr("sandbox","");(D=(0,T.select)(j.nodes()[0].contentDocument.body)).node().style.margin=0}else D=(0,T.select)(E);D.append("div").attr("id","d"+u).attr("style","font-family: "+M.fontFamily).append("svg").attr("id",u).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").attr("xmlns:xlink","http://www.w3.org/1999/xlink").append("g")}else{var X,it=document.getElementById(u);if(it&&it.remove(),(X=M.securityLevel!=="sandbox"?document.querySelector("#d"+u):document.querySelector("#i"+u))&&X.remove(),M.securityLevel==="sandbox"){var ut=(0,T.select)("body").append("iframe").attr("id","i"+u).attr("style","width: 100%; height: 100%;").attr("sandbox","");(D=(0,T.select)(ut.nodes()[0].contentDocument.body)).node().style.margin=0}else D=(0,T.select)("body");D.append("div").attr("id","d"+u).append("svg").attr("id",u).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}C=C.replace(/style.*:\S*#.*;/g,function(ae){return ae.substring(0,ae.length-1)}).replace(/classDef.*:\S*#.*;/g,function(ae){return ae.substring(0,ae.length-1)}).replace(/#\w+;/g,function(ae){var fe=ae.substring(1,ae.length-1);return/^\+?\d+$/.test(fe)?"\uFB02\xB0\xB0"+fe+"\xB6\xDF":"\uFB02\xB0"+fe+"\xB6\xDF"});var lt=new dh(C),Ot=D.select("#d"+u).node(),Lt=lt.type,Yt=Ot.firstChild,qt=Yt.firstChild,Nt="";if(M.themeCSS!==void 0&&(Nt+=`
|
|
`.concat(M.themeCSS)),M.fontFamily!==void 0&&(Nt+=`
|
|
:root { --mermaid-font-family: `.concat(M.fontFamily,"}")),M.altFontFamily!==void 0&&(Nt+=`
|
|
:root { --mermaid-alt-font-family: `.concat(M.altFontFamily,"}")),Lt==="flowchart"||Lt==="flowchart-v2"||Lt==="graph"){var zt=xl.getClasses(C,lt),Dt=M.htmlLabels||M.flowchart.htmlLabels;for(var te in zt)Dt?(Nt+=`
|
|
.`.concat(te," > * { ").concat(zt[te].styles.join(" !important; ")," !important; }"),Nt+=`
|
|
.`.concat(te," span { ").concat(zt[te].styles.join(" !important; ")," !important; }")):(Nt+=`
|
|
.`.concat(te," path { ").concat(zt[te].styles.join(" !important; ")," !important; }"),Nt+=`
|
|
.`.concat(te," rect { ").concat(zt[te].styles.join(" !important; ")," !important; }"),Nt+=`
|
|
.`.concat(te," polygon { ").concat(zt[te].styles.join(" !important; ")," !important; }"),Nt+=`
|
|
.`.concat(te," ellipse { ").concat(zt[te].styles.join(" !important; ")," !important; }"),Nt+=`
|
|
.`.concat(te," circle { ").concat(zt[te].styles.join(" !important; ")," !important; }"),zt[te].textStyles&&(Nt+=`
|
|
.`.concat(te," tspan { ").concat(zt[te].textStyles.join(" !important; ")," !important; }")))}var Re=function(ae,fe){return St(Ar("".concat(ae,"{").concat(fe,"}")),_t)}("#".concat(u),function(ae,fe,Me){return` {
|
|
font-family: `.concat(Me.fontFamily,`;
|
|
font-size: `).concat(Me.fontSize,`;
|
|
fill: `).concat(Me.textColor,`
|
|
}
|
|
|
|
/* Classes common for multiple diagrams */
|
|
|
|
.error-icon {
|
|
fill: `).concat(Me.errorBkgColor,`;
|
|
}
|
|
.error-text {
|
|
fill: `).concat(Me.errorTextColor,`;
|
|
stroke: `).concat(Me.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(Me.lineColor,`;
|
|
stroke: `).concat(Me.lineColor,`;
|
|
}
|
|
.marker.cross {
|
|
stroke: `).concat(Me.lineColor,`;
|
|
}
|
|
|
|
svg {
|
|
font-family: `).concat(Me.fontFamily,`;
|
|
font-size: `).concat(Me.fontSize,`;
|
|
}
|
|
|
|
`).concat(Jr[ae](Me),`
|
|
|
|
`).concat(fe,`
|
|
`)}(Lt,Nt,M.themeVariables)),ke=document.createElement("style");ke.innerHTML="#".concat(u," ")+Re,Yt.insertBefore(ke,qt);try{lt.renderer.draw(C,u,ne,lt)}catch(ae){throw function(fe,Me){try{b.debug(`Renering svg for syntax error
|
|
`);var Fe=(0,T.select)("#"+fe),Ye=Fe.append("g");Ye.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"),Ye.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"),Ye.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"),Ye.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"),Ye.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"),Ye.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"),Ye.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"),Ye.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+Me),Fe.attr("height",100),Fe.attr("width",400),Fe.attr("viewBox","768 0 512 512")}catch(gr){b.error("Error while rendering info diagram"),b.error(gr.message)}}(u,ne),ae}D.select('[id="'.concat(u,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var he=D.select("#d"+u).node().innerHTML;if(b.debug("cnf.arrowMarkerAbsolute",M.arrowMarkerAbsolute),M.arrowMarkerAbsolute&&M.arrowMarkerAbsolute!=="false"||M.arrowMarkerAbsolute==="sandbox"||(he=he.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),he=(he=ti(he)).replace(/<br>/g,"<br/>"),M.securityLevel==="sandbox"){var Jt=D.select("#d"+u+" svg").node(),ue="100%";Jt&&(ue=Jt.viewBox.baseVal.height+"px"),he='<iframe style="width:'.concat("100%",";height:").concat(ue,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+he+"</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"&&(he=qn().sanitize(he,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));if(m!==void 0)switch(Lt){case"flowchart":case"flowchart-v2":m(he,io.bindFunctions);break;case"gantt":m(he,T1.bindFunctions);break;case"class":case"classDiagram":m(he,Oo.bindFunctions);break;default:m(he)}else b.debug("CB = undefined!");Xs.forEach(function(ae){ae()}),Xs=[];var jt=M.securityLevel==="sandbox"?"#i"+u:"#d"+u,ce=(0,T.select)(jt).node();return ce!==null&&typeof ce.remove=="function"&&(0,T.select)(jt).node().remove(),he},parse:function(u,s){nn||(ql(),nn=!0);var m=!1;try{var E=s||new dh(u);return E.db.clear(),E.parse(u)}catch(C){if(m=!0,!Or.parseError)throw C;C.str!=null?Or.parseError(C.str,C.hash):Or.parseError(C)}return!m},parseDirective:function(u,s,m,E){try{if(s!==void 0)switch(s=s.trim(),m){case"open_directive":Ko={};break;case"type_directive":Ko.type=s.toLowerCase();break;case"arg_directive":Ko.args=JSON.parse(s);break;case"close_directive":(function(C,N,M){switch(b.debug("Directive type=".concat(N.type," with args:"),N.args),N.type){case"init":case"initialize":["config"].forEach(function(D){N.args[D]!==void 0&&(M==="flowchart-v2"&&(M="flowchart"),N.args[M]=N.args[D],delete N.args[D])}),b.debug("sanitize in handleDirective",N.args),Lo(N.args),b.debug("sanitize in handleDirective (done)",N.args),Dn(N.args);break;case"wrap":case"nowrap":C&&C.setWrap&&C.setWrap(N.type==="wrap");break;case"themeCss":b.warn("themeCss encountered");break;default:b.warn("Unhandled directive: source: '%%{".concat(N.type,": ").concat(JSON.stringify(N.args?N.args:{}),"}%%"),N)}})(u,Ko,E),Ko=null}}catch(C){b.error("Error while rendering sequenceDiagram directive: ".concat(s," jison context: ").concat(m)),b.error(C.message)}},initialize:function(u){var s;u!=null&&u.fontFamily&&((s=u.themeVariables)!==null&&s!==void 0&&s.fontFamily||(u.themeVariables={fontFamily:u.fontFamily})),function(E){Mr=Te({},E)}(u),u!=null&&u.theme&&Ur[u.theme]?u.themeVariables=Ur[u.theme].getThemeVariables(u.themeVariables):u&&(u.themeVariables=Ur.default.getThemeVariables(u.themeVariables));var m=rc(u)==="object"?function(E){return Pr=Te({},hi),Pr=Te(Pr,E),E.theme&&Ur[E.theme]&&(Pr.themeVariables=Ur[E.theme].getThemeVariables(E.themeVariables)),Nn=vn(Pr,wn),Pr}(u):Kn();Ki(m),A(m.logLevel),nn||(ql(),nn=!0)},getConfig:Ft,setConfig:function(u){return Te(Nn,u),Ft()},getSiteConfig:Kn,updateSiteConfig:function(u){return Pr=Te(Pr,u),vn(Pr,wn),Pr},reset:function(){Xr()},globalReset:function(){Xr(),Ki(Ft())},defaultConfig:hi});A(Ft().logLevel),Xr(Ft());const wr=Un;var yn=function(){var u,s,m=wr.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(Mn.sequenceConfig=arguments[0]),u=arguments[1]):u=arguments[0],typeof arguments[arguments.length-1]=="function"?(s=arguments[arguments.length-1],b.debug("Callback function found")):m.mermaid!==void 0&&(typeof m.mermaid.callback=="function"?(s=m.mermaid.callback,b.debug("Callback function found")):b.debug("No Callback function found")),u=u===void 0?document.querySelectorAll(".mermaid"):typeof u=="string"?document.querySelectorAll(u):u instanceof window.Node?[u]:u,b.debug("Start On Load before: "+Mn.startOnLoad),Mn.startOnLoad!==void 0&&(b.debug("Start On Load inner: "+Mn.startOnLoad),wr.updateSiteConfig({startOnLoad:Mn.startOnLoad})),Mn.ganttConfig!==void 0&&wr.updateSiteConfig({gantt:Mn.ganttConfig});for(var E,C=new rn.initIdGenerator(m.deterministicIds,m.deterministicIDSeed),N=function(D){var z=u[D];if(z.getAttribute("data-processed"))return"continue";z.setAttribute("data-processed",!0);var j="mermaid-".concat(C.next());E=z.innerHTML,E=rn.entityDecode(E).trim().replace(/<br\s*\/?>/gi,"<br/>");var X=rn.detectInit(E);X&&b.debug("Detected early reinit: ",X);try{wr.render(j,E,function(it,ut){z.innerHTML=it,s!==void 0&&s(j),ut&&ut(z)},z)}catch(it){throw b.warn("Catching Error (bootstrap)"),{error:it,message:it.str}}},M=0;M<u.length;M++)N(M)},Ss=function(){Mn.startOnLoad?wr.getConfig().startOnLoad&&Mn.init():Mn.startOnLoad===void 0&&(b.debug("In start, no config"),wr.getConfig().startOnLoad&&Mn.init())};typeof document<"u"&&window.addEventListener("load",function(){Ss()},!1);var Mn={startOnLoad:!0,htmlLabels:!0,diagrams:{},mermaidAPI:wr,parse:wr!=null?wr.parse:null,render:wr!=null?wr.render:null,init:function(){try{yn.apply(void 0,arguments)}catch(u){b.warn("Syntax Error rendering"),b.warn(u.str),this.parseError&&this.parseError(u)}},initThrowsErrors:yn,initialize:function(u){u.mermaid!==void 0&&(u.mermaid.startOnLoad!==void 0&&(Mn.startOnLoad=u.mermaid.startOnLoad),u.mermaid.htmlLabels!==void 0&&(Mn.htmlLabels=u.mermaid.htmlLabels!=="false"&&u.mermaid.htmlLabels!==!1)),wr.initialize(u)},contentLoaded:Ss,setParseErrorHandler:function(u){Mn.parseError=u}};const Or=Mn},4949:(f,v,d)=>{f.exports={graphlib:d(6614),dagre:d(6478),intersect:d(8114),render:d(5787),util:d(8355),version:d(5689)}},9144:(f,v,d)=>{var _=d(8355);function p(x,b,A,O){var T=x.append("marker").attr("id",b).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");_.applyStyle(T,A[O+"Style"]),A[O+"Class"]&&T.attr("class",A[O+"Class"])}f.exports={default:p,normal:p,vee:function(x,b,A,O){var T=x.append("marker").attr("id",b).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");_.applyStyle(T,A[O+"Style"]),A[O+"Class"]&&T.attr("class",A[O+"Class"])},undirected:function(x,b,A,O){var T=x.append("marker").attr("id",b).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");_.applyStyle(T,A[O+"Style"]),A[O+"Class"]&&T.attr("class",A[O+"Class"])}}},5632:(f,v,d)=>{var _=d(8355),p=d(4322),x=d(1322);f.exports=function(b,A){var O,T=A.nodes().filter(function(F){return _.isSubgraph(A,F)}),R=b.selectAll("g.cluster").data(T,function(F){return F});return R.selectAll("*").remove(),R.enter().append("g").attr("class","cluster").attr("id",function(F){return A.node(F).id}).style("opacity",0),R=b.selectAll("g.cluster"),_.applyTransition(R,A).style("opacity",1),R.each(function(F){var U=A.node(F),q=p.select(this);p.select(this).append("rect");var Q=q.append("g").attr("class","label");x(Q,U,U.clusterLabelPos)}),R.selectAll("rect").each(function(F){var U=A.node(F),q=p.select(this);_.applyStyle(q,U.style)}),O=R.exit?R.exit():R.selectAll(null),_.applyTransition(O,A).style("opacity",0).remove(),R}},6315:(f,v,d)=>{var _=d(1034),p=d(1322),x=d(8355),b=d(4322);f.exports=function(A,O){var T,R=A.selectAll("g.edgeLabel").data(O.edges(),function(F){return x.edgeToId(F)}).classed("update",!0);return R.exit().remove(),R.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(R=A.selectAll("g.edgeLabel")).each(function(F){var U=b.select(this);U.select(".label").remove();var q=O.edge(F),Q=p(U,O.edge(F),0,0).classed("label",!0),nt=Q.node().getBBox();q.labelId&&Q.attr("id",q.labelId),_.has(q,"width")||(q.width=nt.width),_.has(q,"height")||(q.height=nt.height)}),T=R.exit?R.exit():R.selectAll(null),x.applyTransition(T,O).style("opacity",0).remove(),R}},940:(f,v,d)=>{var _=d(1034),p=d(3042),x=d(8355),b=d(4322);function A(O,T){var R=(b.line||b.svg.line)().x(function(F){return F.x}).y(function(F){return F.y});return(R.curve||R.interpolate)(O.curve),R(T)}f.exports=function(O,T,R){var F=O.selectAll("g.edgePath").data(T.edges(),function(Q){return x.edgeToId(Q)}).classed("update",!0),U=function(Q,nt){var ft=Q.enter().append("g").attr("class","edgePath").style("opacity",0);return ft.append("path").attr("class","path").attr("d",function(J){var bt=nt.edge(J),ot=nt.node(J.v).elem;return A(bt,_.range(bt.points.length).map(function(){return vt=(st=ot).getBBox(),{x:(Ut=st.ownerSVGElement.getScreenCTM().inverse().multiply(st.getScreenCTM()).translate(vt.width/2,vt.height/2)).e,y:Ut.f};var st,vt,Ut}))}),ft.append("defs"),ft}(F,T);(function(Q,nt){var ft=Q.exit();x.applyTransition(ft,nt).style("opacity",0).remove()})(F,T);var q=F.merge!==void 0?F.merge(U):F;return x.applyTransition(q,T).style("opacity",1),q.each(function(Q){var nt=b.select(this),ft=T.edge(Q);ft.elem=this,ft.id&&nt.attr("id",ft.id),x.applyClass(nt,ft.class,(nt.classed("update")?"update ":"")+"edgePath")}),q.selectAll("path.path").each(function(Q){var nt=T.edge(Q);nt.arrowheadId=_.uniqueId("arrowhead");var ft=b.select(this).attr("marker-end",function(){return"url("+(J=location.href,bt=nt.arrowheadId,J.split("#")[0]+"#"+bt+")");var J,bt}).style("fill","none");x.applyTransition(ft,T).attr("d",function(J){return function(bt,ot){var st=bt.edge(ot),vt=bt.node(ot.v),Ut=bt.node(ot.w),St=st.points.slice(1,st.points.length-1);return St.unshift(p(vt,St[0])),St.push(p(Ut,St[St.length-1])),A(st,St)}(T,J)}),x.applyStyle(ft,nt.style)}),q.selectAll("defs *").remove(),q.selectAll("defs").each(function(Q){var nt=T.edge(Q);(0,R[nt.arrowhead])(b.select(this),nt.arrowheadId,nt,"arrowhead")}),q}},607:(f,v,d)=>{var _=d(1034),p=d(1322),x=d(8355),b=d(4322);f.exports=function(A,O,T){var R,F=O.nodes().filter(function(q){return!x.isSubgraph(O,q)}),U=A.selectAll("g.node").data(F,function(q){return q}).classed("update",!0);return U.exit().remove(),U.enter().append("g").attr("class","node").style("opacity",0),(U=A.selectAll("g.node")).each(function(q){var Q=O.node(q),nt=b.select(this);x.applyClass(nt,Q.class,(nt.classed("update")?"update ":"")+"node"),nt.select("g.label").remove();var ft=nt.append("g").attr("class","label"),J=p(ft,Q),bt=T[Q.shape],ot=_.pick(J.node().getBBox(),"width","height");Q.elem=this,Q.id&&nt.attr("id",Q.id),Q.labelId&&ft.attr("id",Q.labelId),_.has(Q,"width")&&(ot.width=Q.width),_.has(Q,"height")&&(ot.height=Q.height),ot.width+=Q.paddingLeft+Q.paddingRight,ot.height+=Q.paddingTop+Q.paddingBottom,ft.attr("transform","translate("+(Q.paddingLeft-Q.paddingRight)/2+","+(Q.paddingTop-Q.paddingBottom)/2+")");var st=b.select(this);st.select(".label-container").remove();var vt=bt(st,ot,Q).classed("label-container",!0);x.applyStyle(vt,Q.style);var Ut=vt.node().getBBox();Q.width=Ut.width,Q.height=Ut.height}),R=U.exit?U.exit():U.selectAll(null),x.applyTransition(R,O).style("opacity",0).remove(),U}},4322:(f,v,d)=>{var _;if(!_)try{_=d(7543)}catch{}_||(_=window.d3),f.exports=_},6478:(f,v,d)=>{var _;try{_=d(681)}catch{}_||(_=window.dagre),f.exports=_},6614:(f,v,d)=>{var _;try{_=d(8282)}catch{}_||(_=window.graphlib),f.exports=_},8114:(f,v,d)=>{f.exports={node:d(3042),circle:d(6587),ellipse:d(3260),polygon:d(5337),rect:d(8049)}},6587:(f,v,d)=>{var _=d(3260);f.exports=function(p,x,b){return _(p,x,x,b)}},3260:f=>{f.exports=function(v,d,_,p){var x=v.x,b=v.y,A=x-p.x,O=b-p.y,T=Math.sqrt(d*d*O*O+_*_*A*A),R=Math.abs(d*_*A/T);p.x<x&&(R=-R);var F=Math.abs(d*_*O/T);return p.y<b&&(F=-F),{x:x+R,y:b+F}}},6808:f=>{function v(d,_){return d*_>0}f.exports=function(d,_,p,x){var b,A,O,T,R,F,U,q,Q,nt,ft,J,bt;if(b=_.y-d.y,O=d.x-_.x,R=_.x*d.y-d.x*_.y,Q=b*p.x+O*p.y+R,nt=b*x.x+O*x.y+R,!(Q!==0&&nt!==0&&v(Q,nt)||(A=x.y-p.y,T=p.x-x.x,F=x.x*p.y-p.x*x.y,U=A*d.x+T*d.y+F,q=A*_.x+T*_.y+F,U!==0&&q!==0&&v(U,q)||(ft=b*T-A*O)==0)))return J=Math.abs(ft/2),{x:(bt=O*F-T*R)<0?(bt-J)/ft:(bt+J)/ft,y:(bt=A*R-b*F)<0?(bt-J)/ft:(bt+J)/ft}}},3042:f=>{f.exports=function(v,d){return v.intersect(d)}},5337:(f,v,d)=>{var _=d(6808);f.exports=function(p,x,b){var A=p.x,O=p.y,T=[],R=Number.POSITIVE_INFINITY,F=Number.POSITIVE_INFINITY;x.forEach(function(bt){R=Math.min(R,bt.x),F=Math.min(F,bt.y)});for(var U=A-p.width/2-R,q=O-p.height/2-F,Q=0;Q<x.length;Q++){var nt=x[Q],ft=x[Q<x.length-1?Q+1:0],J=_(p,b,{x:U+nt.x,y:q+nt.y},{x:U+ft.x,y:q+ft.y});J&&T.push(J)}return T.length?(T.length>1&&T.sort(function(bt,ot){var st=bt.x-b.x,vt=bt.y-b.y,Ut=Math.sqrt(st*st+vt*vt),St=ot.x-b.x,_t=ot.y-b.y,It=Math.sqrt(St*St+_t*_t);return Ut<It?-1:Ut===It?0:1}),T[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",p),p)}},8049:f=>{f.exports=function(v,d){var _,p,x=v.x,b=v.y,A=d.x-x,O=d.y-b,T=v.width/2,R=v.height/2;return Math.abs(O)*T>Math.abs(A)*R?(O<0&&(R=-R),_=O===0?0:R*A/O,p=R):(A<0&&(T=-T),_=T,p=A===0?0:T*O/A),{x:x+_,y:b+p}}},8284:(f,v,d)=>{var _=d(8355);f.exports=function(p,x){var b=p.append("foreignObject").attr("width","100000"),A=b.append("xhtml:div");A.attr("xmlns","http://www.w3.org/1999/xhtml");var O=x.label;switch(typeof O){case"function":A.insert(O);break;case"object":A.insert(function(){return O});break;default:A.html(O)}_.applyStyle(A,x.labelStyle),A.style("display","inline-block"),A.style("white-space","nowrap");var T=A.node().getBoundingClientRect();return b.attr("width",T.width).attr("height",T.height),b}},1322:(f,v,d)=>{var _=d(7318),p=d(8284),x=d(8287);f.exports=function(b,A,O){var T=A.label,R=b.append("g");A.labelType==="svg"?x(R,A):typeof T!="string"||A.labelType==="html"?p(R,A):_(R,A);var F,U=R.node().getBBox();switch(O){case"top":F=-A.height/2;break;case"bottom":F=A.height/2-U.height;break;default:F=-U.height/2}return R.attr("transform","translate("+-U.width/2+","+F+")"),R}},8287:(f,v,d)=>{var _=d(8355);f.exports=function(p,x){var b=p;return b.node().appendChild(x.label),_.applyStyle(b,x.labelStyle),b}},7318:(f,v,d)=>{var _=d(8355);f.exports=function(p,x){for(var b=p.append("text"),A=function(T){for(var R,F="",U=!1,q=0;q<T.length;++q)R=T[q],U?(F+=R==="n"?`
|
|
`:R,U=!1):R==="\\"?U=!0:F+=R;return F}(x.label).split(`
|
|
`),O=0;O<A.length;O++)b.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(A[O]);return _.applyStyle(b,x.labelStyle),b}},1034:(f,v,d)=>{var _;try{_={defaults:d(1747),each:d(6073),isFunction:d(3560),isPlainObject:d(8630),pick:d(9722),has:d(8721),range:d(6026),uniqueId:d(3955)}}catch{}_||(_=window._),f.exports=_},6381:(f,v,d)=>{var _=d(8355),p=d(4322);f.exports=function(x,b){var A=x.filter(function(){return!p.select(this).classed("update")});function O(T){var R=b.node(T);return"translate("+R.x+","+R.y+")"}A.attr("transform",O),_.applyTransition(x,b).style("opacity",1).attr("transform",O),_.applyTransition(A.selectAll("rect"),b).attr("width",function(T){return b.node(T).width}).attr("height",function(T){return b.node(T).height}).attr("x",function(T){return-b.node(T).width/2}).attr("y",function(T){return-b.node(T).height/2})}},4577:(f,v,d)=>{var _=d(8355),p=d(4322),x=d(1034);f.exports=function(b,A){function O(T){var R=A.edge(T);return x.has(R,"x")?"translate("+R.x+","+R.y+")":""}b.filter(function(){return!p.select(this).classed("update")}).attr("transform",O),_.applyTransition(b,A).style("opacity",1).attr("transform",O)}},4849:(f,v,d)=>{var _=d(8355),p=d(4322);f.exports=function(x,b){function A(O){var T=b.node(O);return"translate("+T.x+","+T.y+")"}x.filter(function(){return!p.select(this).classed("update")}).attr("transform",A),_.applyTransition(x,b).style("opacity",1).attr("transform",A)}},5787:(f,v,d)=>{var _=d(1034),p=d(4322),x=d(6478).layout;f.exports=function(){var T=d(607),R=d(5632),F=d(6315),U=d(940),q=d(4849),Q=d(4577),nt=d(6381),ft=d(4418),J=d(9144),bt=function(ot,st){(function(yt){yt.nodes().forEach(function(rt){var pt=yt.node(rt);_.has(pt,"label")||yt.children(rt).length||(pt.label=rt),_.has(pt,"paddingX")&&_.defaults(pt,{paddingLeft:pt.paddingX,paddingRight:pt.paddingX}),_.has(pt,"paddingY")&&_.defaults(pt,{paddingTop:pt.paddingY,paddingBottom:pt.paddingY}),_.has(pt,"padding")&&_.defaults(pt,{paddingLeft:pt.padding,paddingRight:pt.padding,paddingTop:pt.padding,paddingBottom:pt.padding}),_.defaults(pt,b),_.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(W){pt[W]=Number(pt[W])}),_.has(pt,"width")&&(pt._prevWidth=pt.width),_.has(pt,"height")&&(pt._prevHeight=pt.height)}),yt.edges().forEach(function(rt){var pt=yt.edge(rt);_.has(pt,"label")||(pt.label=""),_.defaults(pt,A)})})(st);var vt=O(ot,"output"),Ut=O(vt,"clusters"),St=O(vt,"edgePaths"),_t=F(O(vt,"edgeLabels"),st),It=T(O(vt,"nodes"),st,ft);x(st),q(It,st),Q(_t,st),U(St,st,J);var wt=R(Ut,st);nt(wt,st),function(yt){_.each(yt.nodes(),function(rt){var pt=yt.node(rt);_.has(pt,"_prevWidth")?pt.width=pt._prevWidth:delete pt.width,_.has(pt,"_prevHeight")?pt.height=pt._prevHeight:delete pt.height,delete pt._prevWidth,delete pt._prevHeight})}(st)};return bt.createNodes=function(ot){return arguments.length?(T=ot,bt):T},bt.createClusters=function(ot){return arguments.length?(R=ot,bt):R},bt.createEdgeLabels=function(ot){return arguments.length?(F=ot,bt):F},bt.createEdgePaths=function(ot){return arguments.length?(U=ot,bt):U},bt.shapes=function(ot){return arguments.length?(ft=ot,bt):ft},bt.arrows=function(ot){return arguments.length?(J=ot,bt):J},bt};var b={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},A={arrowhead:"normal",curve:p.curveLinear};function O(T,R){var F=T.select("g."+R);return F.empty()&&(F=T.append("g").attr("class",R)),F}},4418:(f,v,d)=>{var _=d(8049),p=d(3260),x=d(6587),b=d(5337);f.exports={rect:function(A,O,T){var R=A.insert("rect",":first-child").attr("rx",T.rx).attr("ry",T.ry).attr("x",-O.width/2).attr("y",-O.height/2).attr("width",O.width).attr("height",O.height);return T.intersect=function(F){return _(T,F)},R},ellipse:function(A,O,T){var R=O.width/2,F=O.height/2,U=A.insert("ellipse",":first-child").attr("x",-O.width/2).attr("y",-O.height/2).attr("rx",R).attr("ry",F);return T.intersect=function(q){return p(T,R,F,q)},U},circle:function(A,O,T){var R=Math.max(O.width,O.height)/2,F=A.insert("circle",":first-child").attr("x",-O.width/2).attr("y",-O.height/2).attr("r",R);return T.intersect=function(U){return x(T,R,U)},F},diamond:function(A,O,T){var R=O.width*Math.SQRT2/2,F=O.height*Math.SQRT2/2,U=[{x:0,y:-F},{x:-R,y:0},{x:0,y:F},{x:R,y:0}],q=A.insert("polygon",":first-child").attr("points",U.map(function(Q){return Q.x+","+Q.y}).join(" "));return T.intersect=function(Q){return b(T,U,Q)},q}}},8355:(f,v,d)=>{var _=d(1034);f.exports={isSubgraph:function(b,A){return!!b.children(A).length},edgeToId:function(b){return x(b.v)+":"+x(b.w)+":"+x(b.name)},applyStyle:function(b,A){A&&b.attr("style",A)},applyClass:function(b,A,O){A&&b.attr("class",A).attr("class",O+" "+b.attr("class"))},applyTransition:function(b,A){var O=A.graph();if(_.isPlainObject(O)){var T=O.transition;if(_.isFunction(T))return T(b)}return b}};var p=/:/g;function x(b){return b?String(b).replace(p,"\\:"):""}},5689:f=>{f.exports="0.6.4"},681:(f,v,d)=>{f.exports={graphlib:d(574),layout:d(8123),debug:d(7570),util:{time:d(1138).time,notime:d(1138).notime},version:d(8177)}},2188:(f,v,d)=>{var _=d(8436),p=d(4079);f.exports={run:function(x){var b=x.graph().acyclicer==="greedy"?p(x,function(A){return function(O){return A.edge(O).weight}}(x)):function(A){var O=[],T={},R={};return _.forEach(A.nodes(),function F(U){_.has(R,U)||(R[U]=!0,T[U]=!0,_.forEach(A.outEdges(U),function(q){_.has(T,q.w)?O.push(q):F(q.w)}),delete T[U])}),O}(x);_.forEach(b,function(A){var O=x.edge(A);x.removeEdge(A),O.forwardName=A.name,O.reversed=!0,x.setEdge(A.w,A.v,O,_.uniqueId("rev"))})},undo:function(x){_.forEach(x.edges(),function(b){var A=x.edge(b);if(A.reversed){x.removeEdge(b);var O=A.forwardName;delete A.reversed,delete A.forwardName,x.setEdge(b.w,b.v,A,O)}})}}},1133:(f,v,d)=>{var _=d(8436),p=d(1138);function x(b,A,O,T,R,F){var U={width:0,height:0,rank:F,borderType:A},q=R[A][F-1],Q=p.addDummyNode(b,"border",U,O);R[A][F]=Q,b.setParent(Q,T),q&&b.setEdge(q,Q,{weight:1})}f.exports=function(b){_.forEach(b.children(),function A(O){var T=b.children(O),R=b.node(O);if(T.length&&_.forEach(T,A),_.has(R,"minRank")){R.borderLeft=[],R.borderRight=[];for(var F=R.minRank,U=R.maxRank+1;F<U;++F)x(b,"borderLeft","_bl",O,R,F),x(b,"borderRight","_br",O,R,F)}})}},3258:(f,v,d)=>{var _=d(8436);function p(O){_.forEach(O.nodes(),function(T){x(O.node(T))}),_.forEach(O.edges(),function(T){x(O.edge(T))})}function x(O){var T=O.width;O.width=O.height,O.height=T}function b(O){O.y=-O.y}function A(O){var T=O.x;O.x=O.y,O.y=T}f.exports={adjust:function(O){var T=O.graph().rankdir.toLowerCase();T!=="lr"&&T!=="rl"||p(O)},undo:function(O){var T=O.graph().rankdir.toLowerCase();T!=="bt"&&T!=="rl"||function(R){_.forEach(R.nodes(),function(F){b(R.node(F))}),_.forEach(R.edges(),function(F){var U=R.edge(F);_.forEach(U.points,b),_.has(U,"y")&&b(U)})}(O),T!=="lr"&&T!=="rl"||(function(R){_.forEach(R.nodes(),function(F){A(R.node(F))}),_.forEach(R.edges(),function(F){var U=R.edge(F);_.forEach(U.points,A),_.has(U,"x")&&A(U)})}(O),p(O))}}},7822:f=>{function v(){var p={};p._next=p._prev=p,this._sentinel=p}function d(p){p._prev._next=p._next,p._next._prev=p._prev,delete p._next,delete p._prev}function _(p,x){if(p!=="_next"&&p!=="_prev")return x}f.exports=v,v.prototype.dequeue=function(){var p=this._sentinel,x=p._prev;if(x!==p)return d(x),x},v.prototype.enqueue=function(p){var x=this._sentinel;p._prev&&p._next&&d(p),p._next=x._next,x._next._prev=p,x._next=p,p._prev=x},v.prototype.toString=function(){for(var p=[],x=this._sentinel,b=x._prev;b!==x;)p.push(JSON.stringify(b,_)),b=b._prev;return"["+p.join(", ")+"]"}},7570:(f,v,d)=>{var _=d(8436),p=d(1138),x=d(574).Graph;f.exports={debugOrdering:function(b){var A=p.buildLayerMatrix(b),O=new x({compound:!0,multigraph:!0}).setGraph({});return _.forEach(b.nodes(),function(T){O.setNode(T,{label:T}),O.setParent(T,"layer"+b.node(T).rank)}),_.forEach(b.edges(),function(T){O.setEdge(T.v,T.w,{},T.name)}),_.forEach(A,function(T,R){var F="layer"+R;O.setNode(F,{rank:"same"}),_.reduce(T,function(U,q){return O.setEdge(U,q,{style:"invis"}),q})}),O}}},574:(f,v,d)=>{var _;try{_=d(8282)}catch{}_||(_=window.graphlib),f.exports=_},4079:(f,v,d)=>{var _=d(8436),p=d(574).Graph,x=d(7822);f.exports=function(T,R){if(T.nodeCount()<=1)return[];var F=function(q,Q){var nt=new p,ft=0,J=0;_.forEach(q.nodes(),function(st){nt.setNode(st,{v:st,in:0,out:0})}),_.forEach(q.edges(),function(st){var vt=nt.edge(st.v,st.w)||0,Ut=Q(st),St=vt+Ut;nt.setEdge(st.v,st.w,St),J=Math.max(J,nt.node(st.v).out+=Ut),ft=Math.max(ft,nt.node(st.w).in+=Ut)});var bt=_.range(J+ft+3).map(function(){return new x}),ot=ft+1;return _.forEach(nt.nodes(),function(st){O(bt,ot,nt.node(st))}),{graph:nt,buckets:bt,zeroIdx:ot}}(T,R||b),U=function(q,Q,nt){for(var ft,J=[],bt=Q[Q.length-1],ot=Q[0];q.nodeCount();){for(;ft=ot.dequeue();)A(q,Q,nt,ft);for(;ft=bt.dequeue();)A(q,Q,nt,ft);if(q.nodeCount()){for(var st=Q.length-2;st>0;--st)if(ft=Q[st].dequeue()){J=J.concat(A(q,Q,nt,ft,!0));break}}}return J}(F.graph,F.buckets,F.zeroIdx);return _.flatten(_.map(U,function(q){return T.outEdges(q.v,q.w)}),!0)};var b=_.constant(1);function A(T,R,F,U,q){var Q=q?[]:void 0;return _.forEach(T.inEdges(U.v),function(nt){var ft=T.edge(nt),J=T.node(nt.v);q&&Q.push({v:nt.v,w:nt.w}),J.out-=ft,O(R,F,J)}),_.forEach(T.outEdges(U.v),function(nt){var ft=T.edge(nt),J=nt.w,bt=T.node(J);bt.in-=ft,O(R,F,bt)}),T.removeNode(U.v),Q}function O(T,R,F){F.out?F.in?T[F.out-F.in+R].enqueue(F):T[T.length-1].enqueue(F):T[0].enqueue(F)}},8123:(f,v,d)=>{var _=d(8436),p=d(2188),x=d(5995),b=d(8093),A=d(1138).normalizeRanks,O=d(4219),T=d(1138).removeEmptyRanks,R=d(2981),F=d(1133),U=d(3258),q=d(3408),Q=d(7873),nt=d(1138),ft=d(574).Graph;f.exports=function(yt,rt){var pt=rt&&rt.debugTiming?nt.time:nt.notime;pt("layout",function(){var W=pt(" buildLayoutGraph",function(){return function(kt){var G=new ft({multigraph:!0,compound:!0}),At=wt(kt.graph());return G.setGraph(_.merge({},bt,It(At,J),_.pick(At,ot))),_.forEach(kt.nodes(),function(Mt){var Gt=wt(kt.node(Mt));G.setNode(Mt,_.defaults(It(Gt,st),vt)),G.setParent(Mt,kt.parent(Mt))}),_.forEach(kt.edges(),function(Mt){var Gt=wt(kt.edge(Mt));G.setEdge(Mt,_.merge({},St,It(Gt,Ut),_.pick(Gt,_t)))}),G}(yt)});pt(" runLayout",function(){(function(kt,G){G(" makeSpaceForEdgeLabels",function(){(function(At){var Mt=At.graph();Mt.ranksep/=2,_.forEach(At.edges(),function(Gt){var me=At.edge(Gt);me.minlen*=2,me.labelpos.toLowerCase()!=="c"&&(Mt.rankdir==="TB"||Mt.rankdir==="BT"?me.width+=me.labeloffset:me.height+=me.labeloffset)})})(kt)}),G(" removeSelfEdges",function(){(function(At){_.forEach(At.edges(),function(Mt){if(Mt.v===Mt.w){var Gt=At.node(Mt.v);Gt.selfEdges||(Gt.selfEdges=[]),Gt.selfEdges.push({e:Mt,label:At.edge(Mt)}),At.removeEdge(Mt)}})})(kt)}),G(" acyclic",function(){p.run(kt)}),G(" nestingGraph.run",function(){R.run(kt)}),G(" rank",function(){b(nt.asNonCompoundGraph(kt))}),G(" injectEdgeLabelProxies",function(){(function(At){_.forEach(At.edges(),function(Mt){var Gt=At.edge(Mt);if(Gt.width&&Gt.height){var me=At.node(Mt.v),Ze={rank:(At.node(Mt.w).rank-me.rank)/2+me.rank,e:Mt};nt.addDummyNode(At,"edge-proxy",Ze,"_ep")}})})(kt)}),G(" removeEmptyRanks",function(){T(kt)}),G(" nestingGraph.cleanup",function(){R.cleanup(kt)}),G(" normalizeRanks",function(){A(kt)}),G(" assignRankMinMax",function(){(function(At){var Mt=0;_.forEach(At.nodes(),function(Gt){var me=At.node(Gt);me.borderTop&&(me.minRank=At.node(me.borderTop).rank,me.maxRank=At.node(me.borderBottom).rank,Mt=_.max(Mt,me.maxRank))}),At.graph().maxRank=Mt})(kt)}),G(" removeEdgeLabelProxies",function(){(function(At){_.forEach(At.nodes(),function(Mt){var Gt=At.node(Mt);Gt.dummy==="edge-proxy"&&(At.edge(Gt.e).labelRank=Gt.rank,At.removeNode(Mt))})})(kt)}),G(" normalize.run",function(){x.run(kt)}),G(" parentDummyChains",function(){O(kt)}),G(" addBorderSegments",function(){F(kt)}),G(" order",function(){q(kt)}),G(" insertSelfEdges",function(){(function(At){var Mt=nt.buildLayerMatrix(At);_.forEach(Mt,function(Gt){var me=0;_.forEach(Gt,function(Ze,Ee){var pe=At.node(Ze);pe.order=Ee+me,_.forEach(pe.selfEdges,function(we){nt.addDummyNode(At,"selfedge",{width:we.label.width,height:we.label.height,rank:pe.rank,order:Ee+ ++me,e:we.e,label:we.label},"_se")}),delete pe.selfEdges})})})(kt)}),G(" adjustCoordinateSystem",function(){U.adjust(kt)}),G(" position",function(){Q(kt)}),G(" positionSelfEdges",function(){(function(At){_.forEach(At.nodes(),function(Mt){var Gt=At.node(Mt);if(Gt.dummy==="selfedge"){var me=At.node(Gt.e.v),Ze=me.x+me.width/2,Ee=me.y,pe=Gt.x-Ze,we=me.height/2;At.setEdge(Gt.e,Gt.label),At.removeNode(Mt),Gt.label.points=[{x:Ze+2*pe/3,y:Ee-we},{x:Ze+5*pe/6,y:Ee-we},{x:Ze+pe,y:Ee},{x:Ze+5*pe/6,y:Ee+we},{x:Ze+2*pe/3,y:Ee+we}],Gt.label.x=Gt.x,Gt.label.y=Gt.y}})})(kt)}),G(" removeBorderNodes",function(){(function(At){_.forEach(At.nodes(),function(Mt){if(At.children(Mt).length){var Gt=At.node(Mt),me=At.node(Gt.borderTop),Ze=At.node(Gt.borderBottom),Ee=At.node(_.last(Gt.borderLeft)),pe=At.node(_.last(Gt.borderRight));Gt.width=Math.abs(pe.x-Ee.x),Gt.height=Math.abs(Ze.y-me.y),Gt.x=Ee.x+Gt.width/2,Gt.y=me.y+Gt.height/2}}),_.forEach(At.nodes(),function(Mt){At.node(Mt).dummy==="border"&&At.removeNode(Mt)})})(kt)}),G(" normalize.undo",function(){x.undo(kt)}),G(" fixupEdgeLabelCoords",function(){(function(At){_.forEach(At.edges(),function(Mt){var Gt=At.edge(Mt);if(_.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}})})(kt)}),G(" undoCoordinateSystem",function(){U.undo(kt)}),G(" translateGraph",function(){(function(At){var Mt=Number.POSITIVE_INFINITY,Gt=0,me=Number.POSITIVE_INFINITY,Ze=0,Ee=At.graph(),pe=Ee.marginx||0,we=Ee.marginy||0;function Oe(De){var xe=De.x,Ar=De.y,be=De.width,Qe=De.height;Mt=Math.min(Mt,xe-be/2),Gt=Math.max(Gt,xe+be/2),me=Math.min(me,Ar-Qe/2),Ze=Math.max(Ze,Ar+Qe/2)}_.forEach(At.nodes(),function(De){Oe(At.node(De))}),_.forEach(At.edges(),function(De){var xe=At.edge(De);_.has(xe,"x")&&Oe(xe)}),Mt-=pe,me-=we,_.forEach(At.nodes(),function(De){var xe=At.node(De);xe.x-=Mt,xe.y-=me}),_.forEach(At.edges(),function(De){var xe=At.edge(De);_.forEach(xe.points,function(Ar){Ar.x-=Mt,Ar.y-=me}),_.has(xe,"x")&&(xe.x-=Mt),_.has(xe,"y")&&(xe.y-=me)}),Ee.width=Gt-Mt+pe,Ee.height=Ze-me+we})(kt)}),G(" assignNodeIntersects",function(){(function(At){_.forEach(At.edges(),function(Mt){var Gt,me,Ze=At.edge(Mt),Ee=At.node(Mt.v),pe=At.node(Mt.w);Ze.points?(Gt=Ze.points[0],me=Ze.points[Ze.points.length-1]):(Ze.points=[],Gt=pe,me=Ee),Ze.points.unshift(nt.intersectRect(Ee,Gt)),Ze.points.push(nt.intersectRect(pe,me))})})(kt)}),G(" reversePoints",function(){(function(At){_.forEach(At.edges(),function(Mt){var Gt=At.edge(Mt);Gt.reversed&&Gt.points.reverse()})})(kt)}),G(" acyclic.undo",function(){p.undo(kt)})})(W,pt)}),pt(" updateInputGraph",function(){(function(kt,G){_.forEach(kt.nodes(),function(At){var Mt=kt.node(At),Gt=G.node(At);Mt&&(Mt.x=Gt.x,Mt.y=Gt.y,G.children(At).length&&(Mt.width=Gt.width,Mt.height=Gt.height))}),_.forEach(kt.edges(),function(At){var Mt=kt.edge(At),Gt=G.edge(At);Mt.points=Gt.points,_.has(Gt,"x")&&(Mt.x=Gt.x,Mt.y=Gt.y)}),kt.graph().width=G.graph().width,kt.graph().height=G.graph().height})(yt,W)})})};var J=["nodesep","edgesep","ranksep","marginx","marginy"],bt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},ot=["acyclicer","ranker","rankdir","align"],st=["width","height"],vt={width:0,height:0},Ut=["minlen","weight","width","height","labeloffset"],St={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},_t=["labelpos"];function It(yt,rt){return _.mapValues(_.pick(yt,rt),Number)}function wt(yt){var rt={};return _.forEach(yt,function(pt,W){rt[W.toLowerCase()]=pt}),rt}},8436:(f,v,d)=>{var _;try{_={cloneDeep:d(361),constant:d(5703),defaults:d(1747),each:d(6073),filter:d(3105),find:d(3311),flatten:d(5564),forEach:d(4486),forIn:d(2620),has:d(8721),isUndefined:d(2353),last:d(928),map:d(5161),mapValues:d(6604),max:d(6162),merge:d(3857),min:d(3632),minBy:d(2762),now:d(7771),pick:d(9722),range:d(6026),reduce:d(4061),sortBy:d(9734),uniqueId:d(3955),values:d(2628),zipObject:d(7287)}}catch{}_||(_=window._),f.exports=_},2981:(f,v,d)=>{var _=d(8436),p=d(1138);function x(b,A,O,T,R,F,U){var q=b.children(U);if(q.length){var Q=p.addBorderNode(b,"_bt"),nt=p.addBorderNode(b,"_bb"),ft=b.node(U);b.setParent(Q,U),ft.borderTop=Q,b.setParent(nt,U),ft.borderBottom=nt,_.forEach(q,function(J){x(b,A,O,T,R,F,J);var bt=b.node(J),ot=bt.borderTop?bt.borderTop:J,st=bt.borderBottom?bt.borderBottom:J,vt=bt.borderTop?T:2*T,Ut=ot!==st?1:R-F[U]+1;b.setEdge(Q,ot,{weight:vt,minlen:Ut,nestingEdge:!0}),b.setEdge(st,nt,{weight:vt,minlen:Ut,nestingEdge:!0})}),b.parent(U)||b.setEdge(A,Q,{weight:0,minlen:R+F[U]})}else U!==A&&b.setEdge(A,U,{weight:0,minlen:O})}f.exports={run:function(b){var A=p.addDummyNode(b,"root",{},"_root"),O=function(U){var q={};function Q(nt,ft){var J=U.children(nt);J&&J.length&&_.forEach(J,function(bt){Q(bt,ft+1)}),q[nt]=ft}return _.forEach(U.children(),function(nt){Q(nt,1)}),q}(b),T=_.max(_.values(O))-1,R=2*T+1;b.graph().nestingRoot=A,_.forEach(b.edges(),function(U){b.edge(U).minlen*=R});var F=function(U){return _.reduce(U.edges(),function(q,Q){return q+U.edge(Q).weight},0)}(b)+1;_.forEach(b.children(),function(U){x(b,A,R,F,T,O,U)}),b.graph().nodeRankFactor=R},cleanup:function(b){var A=b.graph();b.removeNode(A.nestingRoot),delete A.nestingRoot,_.forEach(b.edges(),function(O){b.edge(O).nestingEdge&&b.removeEdge(O)})}}},5995:(f,v,d)=>{var _=d(8436),p=d(1138);f.exports={run:function(x){x.graph().dummyChains=[],_.forEach(x.edges(),function(b){(function(A,O){var T,R,F,U=O.v,q=A.node(U).rank,Q=O.w,nt=A.node(Q).rank,ft=O.name,J=A.edge(O),bt=J.labelRank;if(nt!==q+1){for(A.removeEdge(O),F=0,++q;q<nt;++F,++q)J.points=[],R={width:0,height:0,edgeLabel:J,edgeObj:O,rank:q},T=p.addDummyNode(A,"edge",R,"_d"),q===bt&&(R.width=J.width,R.height=J.height,R.dummy="edge-label",R.labelpos=J.labelpos),A.setEdge(U,T,{weight:J.weight},ft),F===0&&A.graph().dummyChains.push(T),U=T;A.setEdge(U,Q,{weight:J.weight},ft)}})(x,b)})},undo:function(x){_.forEach(x.graph().dummyChains,function(b){var A,O=x.node(b),T=O.edgeLabel;for(x.setEdge(O.edgeObj,T);O.dummy;)A=x.successors(b)[0],x.removeNode(b),T.points.push({x:O.x,y:O.y}),O.dummy==="edge-label"&&(T.x=O.x,T.y=O.y,T.width=O.width,T.height=O.height),b=A,O=x.node(b)})}}},5093:(f,v,d)=>{var _=d(8436);f.exports=function(p,x,b){var A,O={};_.forEach(b,function(T){for(var R,F,U=p.parent(T);U;){if((R=p.parent(U))?(F=O[R],O[R]=U):(F=A,A=U),F&&F!==U)return void x.setEdge(F,U);U=R}})}},5439:(f,v,d)=>{var _=d(8436);f.exports=function(p,x){return _.map(x,function(b){var A=p.inEdges(b);if(A.length){var O=_.reduce(A,function(T,R){var F=p.edge(R),U=p.node(R.v);return{sum:T.sum+F.weight*U.order,weight:T.weight+F.weight}},{sum:0,weight:0});return{v:b,barycenter:O.sum/O.weight,weight:O.weight}}return{v:b}})}},3128:(f,v,d)=>{var _=d(8436),p=d(574).Graph;f.exports=function(x,b,A){var O=function(R){for(var F;R.hasNode(F=_.uniqueId("_root")););return F}(x),T=new p({compound:!0}).setGraph({root:O}).setDefaultNodeLabel(function(R){return x.node(R)});return _.forEach(x.nodes(),function(R){var F=x.node(R),U=x.parent(R);(F.rank===b||F.minRank<=b&&b<=F.maxRank)&&(T.setNode(R),T.setParent(R,U||O),_.forEach(x[A](R),function(q){var Q=q.v===R?q.w:q.v,nt=T.edge(Q,R),ft=_.isUndefined(nt)?0:nt.weight;T.setEdge(Q,R,{weight:x.edge(q).weight+ft})}),_.has(F,"minRank")&&T.setNode(R,{borderLeft:F.borderLeft[b],borderRight:F.borderRight[b]}))}),T}},6630:(f,v,d)=>{var _=d(8436);function p(x,b,A){for(var O=_.zipObject(A,_.map(A,function(Q,nt){return nt})),T=_.flatten(_.map(b,function(Q){return _.sortBy(_.map(x.outEdges(Q),function(nt){return{pos:O[nt.w],weight:x.edge(nt).weight}}),"pos")}),!0),R=1;R<A.length;)R<<=1;var F=2*R-1;R-=1;var U=_.map(new Array(F),function(){return 0}),q=0;return _.forEach(T.forEach(function(Q){var nt=Q.pos+R;U[nt]+=Q.weight;for(var ft=0;nt>0;)nt%2&&(ft+=U[nt+1]),U[nt=nt-1>>1]+=Q.weight;q+=Q.weight*ft})),q}f.exports=function(x,b){for(var A=0,O=1;O<b.length;++O)A+=p(x,b[O-1],b[O]);return A}},3408:(f,v,d)=>{var _=d(8436),p=d(2588),x=d(6630),b=d(1026),A=d(3128),O=d(5093),T=d(574).Graph,R=d(1138);function F(Q,nt,ft){return _.map(nt,function(J){return A(Q,J,ft)})}function U(Q,nt){var ft=new T;_.forEach(Q,function(J){var bt=J.graph().root,ot=b(J,bt,ft,nt);_.forEach(ot.vs,function(st,vt){J.node(st).order=vt}),O(J,ft,ot.vs)})}function q(Q,nt){_.forEach(nt,function(ft){_.forEach(ft,function(J,bt){Q.node(J).order=bt})})}f.exports=function(Q){var nt=R.maxRank(Q),ft=F(Q,_.range(1,nt+1),"inEdges"),J=F(Q,_.range(nt-1,-1,-1),"outEdges"),bt=p(Q);q(Q,bt);for(var ot,st=Number.POSITIVE_INFINITY,vt=0,Ut=0;Ut<4;++vt,++Ut){U(vt%2?ft:J,vt%4>=2),bt=R.buildLayerMatrix(Q);var St=x(Q,bt);St<st&&(Ut=0,ot=_.cloneDeep(bt),st=St)}q(Q,ot)}},2588:(f,v,d)=>{var _=d(8436);f.exports=function(p){var x={},b=_.filter(p.nodes(),function(R){return!p.children(R).length}),A=_.max(_.map(b,function(R){return p.node(R).rank})),O=_.map(_.range(A+1),function(){return[]}),T=_.sortBy(b,function(R){return p.node(R).rank});return _.forEach(T,function R(F){if(!_.has(x,F)){x[F]=!0;var U=p.node(F);O[U.rank].push(F),_.forEach(p.successors(F),R)}}),O}},9567:(f,v,d)=>{var _=d(8436);f.exports=function(p,x){var b={};return _.forEach(p,function(A,O){var T=b[A.v]={indegree:0,in:[],out:[],vs:[A.v],i:O};_.isUndefined(A.barycenter)||(T.barycenter=A.barycenter,T.weight=A.weight)}),_.forEach(x.edges(),function(A){var O=b[A.v],T=b[A.w];_.isUndefined(O)||_.isUndefined(T)||(T.indegree++,O.out.push(b[A.w]))}),function(A){var O=[];function T(U){return function(q){var Q,nt,ft,J;q.merged||(_.isUndefined(q.barycenter)||_.isUndefined(U.barycenter)||q.barycenter>=U.barycenter)&&(nt=q,ft=0,J=0,(Q=U).weight&&(ft+=Q.barycenter*Q.weight,J+=Q.weight),nt.weight&&(ft+=nt.barycenter*nt.weight,J+=nt.weight),Q.vs=nt.vs.concat(Q.vs),Q.barycenter=ft/J,Q.weight=J,Q.i=Math.min(nt.i,Q.i),nt.merged=!0)}}function R(U){return function(q){q.in.push(U),--q.indegree==0&&A.push(q)}}for(;A.length;){var F=A.pop();O.push(F),_.forEach(F.in.reverse(),T(F)),_.forEach(F.out,R(F))}return _.map(_.filter(O,function(U){return!U.merged}),function(U){return _.pick(U,["vs","i","barycenter","weight"])})}(_.filter(b,function(A){return!A.indegree}))}},1026:(f,v,d)=>{var _=d(8436),p=d(5439),x=d(9567),b=d(7304);f.exports=function A(O,T,R,F){var U=O.children(T),q=O.node(T),Q=q?q.borderLeft:void 0,nt=q?q.borderRight:void 0,ft={};Q&&(U=_.filter(U,function(Ut){return Ut!==Q&&Ut!==nt}));var J=p(O,U);_.forEach(J,function(Ut){if(O.children(Ut.v).length){var St=A(O,Ut.v,R,F);ft[Ut.v]=St,_.has(St,"barycenter")&&(_t=Ut,It=St,_.isUndefined(_t.barycenter)?(_t.barycenter=It.barycenter,_t.weight=It.weight):(_t.barycenter=(_t.barycenter*_t.weight+It.barycenter*It.weight)/(_t.weight+It.weight),_t.weight+=It.weight))}var _t,It});var bt=x(J,R);(function(Ut,St){_.forEach(Ut,function(_t){_t.vs=_.flatten(_t.vs.map(function(It){return St[It]?St[It].vs:It}),!0)})})(bt,ft);var ot=b(bt,F);if(Q&&(ot.vs=_.flatten([Q,ot.vs,nt],!0),O.predecessors(Q).length)){var st=O.node(O.predecessors(Q)[0]),vt=O.node(O.predecessors(nt)[0]);_.has(ot,"barycenter")||(ot.barycenter=0,ot.weight=0),ot.barycenter=(ot.barycenter*ot.weight+st.order+vt.order)/(ot.weight+2),ot.weight+=2}return ot}},7304:(f,v,d)=>{var _=d(8436),p=d(1138);function x(b,A,O){for(var T;A.length&&(T=_.last(A)).i<=O;)A.pop(),b.push(T.vs),O++;return O}f.exports=function(b,A){var O,T=p.partition(b,function(J){return _.has(J,"barycenter")}),R=T.lhs,F=_.sortBy(T.rhs,function(J){return-J.i}),U=[],q=0,Q=0,nt=0;R.sort((O=!!A,function(J,bt){return J.barycenter<bt.barycenter?-1:J.barycenter>bt.barycenter?1:O?bt.i-J.i:J.i-bt.i})),nt=x(U,F,nt),_.forEach(R,function(J){nt+=J.vs.length,U.push(J.vs),q+=J.barycenter*J.weight,Q+=J.weight,nt=x(U,F,nt)});var ft={vs:_.flatten(U,!0)};return Q&&(ft.barycenter=q/Q,ft.weight=Q),ft}},4219:(f,v,d)=>{var _=d(8436);f.exports=function(p){var x=function(b){var A={},O=0;return _.forEach(b.children(),function T(R){var F=O;_.forEach(b.children(R),T),A[R]={low:F,lim:O++}}),A}(p);_.forEach(p.graph().dummyChains,function(b){for(var A=p.node(b),O=A.edgeObj,T=function(nt,ft,J,bt){var ot,st,vt=[],Ut=[],St=Math.min(ft[J].low,ft[bt].low),_t=Math.max(ft[J].lim,ft[bt].lim);ot=J;do ot=nt.parent(ot),vt.push(ot);while(ot&&(ft[ot].low>St||_t>ft[ot].lim));for(st=ot,ot=bt;(ot=nt.parent(ot))!==st;)Ut.push(ot);return{path:vt.concat(Ut.reverse()),lca:st}}(p,x,O.v,O.w),R=T.path,F=T.lca,U=0,q=R[U],Q=!0;b!==O.w;){if(A=p.node(b),Q){for(;(q=R[U])!==F&&p.node(q).maxRank<A.rank;)U++;q===F&&(Q=!1)}if(!Q){for(;U<R.length-1&&p.node(q=R[U+1]).minRank<=A.rank;)U++;q=R[U]}p.setParent(b,q),b=p.successors(b)[0]}})}},3573:(f,v,d)=>{var _=d(8436),p=d(574).Graph,x=d(1138);function b(nt,ft){var J={};return _.reduce(ft,function(bt,ot){var st=0,vt=0,Ut=bt.length,St=_.last(ot);return _.forEach(ot,function(_t,It){var wt=function(rt,pt){if(rt.node(pt).dummy)return _.find(rt.predecessors(pt),function(W){return rt.node(W).dummy})}(nt,_t),yt=wt?nt.node(wt).order:Ut;(wt||_t===St)&&(_.forEach(ot.slice(vt,It+1),function(rt){_.forEach(nt.predecessors(rt),function(pt){var W=nt.node(pt),kt=W.order;!(kt<st||yt<kt)||W.dummy&&nt.node(rt).dummy||O(J,pt,rt)})}),vt=It+1,st=yt)}),ot}),J}function A(nt,ft){var J={};function bt(ot,st,vt,Ut,St){var _t;_.forEach(_.range(st,vt),function(It){_t=ot[It],nt.node(_t).dummy&&_.forEach(nt.predecessors(_t),function(wt){var yt=nt.node(wt);yt.dummy&&(yt.order<Ut||yt.order>St)&&O(J,wt,_t)})})}return _.reduce(ft,function(ot,st){var vt,Ut=-1,St=0;return _.forEach(st,function(_t,It){if(nt.node(_t).dummy==="border"){var wt=nt.predecessors(_t);wt.length&&(vt=nt.node(wt[0]).order,bt(st,St,It,Ut,vt),St=It,Ut=vt)}bt(st,St,st.length,vt,ot.length)}),st}),J}function O(nt,ft,J){if(ft>J){var bt=ft;ft=J,J=bt}var ot=nt[ft];ot||(nt[ft]=ot={}),ot[J]=!0}function T(nt,ft,J){if(ft>J){var bt=ft;ft=J,J=bt}return _.has(nt[ft],J)}function R(nt,ft,J,bt){var ot={},st={},vt={};return _.forEach(ft,function(Ut){_.forEach(Ut,function(St,_t){ot[St]=St,st[St]=St,vt[St]=_t})}),_.forEach(ft,function(Ut){var St=-1;_.forEach(Ut,function(_t){var It=bt(_t);if(It.length){It=_.sortBy(It,function(W){return vt[W]});for(var wt=(It.length-1)/2,yt=Math.floor(wt),rt=Math.ceil(wt);yt<=rt;++yt){var pt=It[yt];st[_t]===_t&&St<vt[pt]&&!T(J,_t,pt)&&(st[pt]=_t,st[_t]=ot[_t]=ot[pt],St=vt[pt])}}})}),{root:ot,align:st}}function F(nt,ft,J,bt,ot){var st={},vt=function(_t,It,wt,yt){var rt=new p,pt=_t.graph(),W=function(kt,G,At){return function(Mt,Gt,me){var Ze,Ee=Mt.node(Gt),pe=Mt.node(me),we=0;if(we+=Ee.width/2,_.has(Ee,"labelpos"))switch(Ee.labelpos.toLowerCase()){case"l":Ze=-Ee.width/2;break;case"r":Ze=Ee.width/2}if(Ze&&(we+=At?Ze:-Ze),Ze=0,we+=(Ee.dummy?G:kt)/2,we+=(pe.dummy?G:kt)/2,we+=pe.width/2,_.has(pe,"labelpos"))switch(pe.labelpos.toLowerCase()){case"l":Ze=pe.width/2;break;case"r":Ze=-pe.width/2}return Ze&&(we+=At?Ze:-Ze),Ze=0,we}}(pt.nodesep,pt.edgesep,yt);return _.forEach(It,function(kt){var G;_.forEach(kt,function(At){var Mt=wt[At];if(rt.setNode(Mt),G){var Gt=wt[G],me=rt.edge(Gt,Mt);rt.setEdge(Gt,Mt,Math.max(W(_t,At,G),me||0))}G=At})}),rt}(nt,ft,J,ot),Ut=ot?"borderLeft":"borderRight";function St(_t,It){for(var wt=vt.nodes(),yt=wt.pop(),rt={};yt;)rt[yt]?_t(yt):(rt[yt]=!0,wt.push(yt),wt=wt.concat(It(yt))),yt=wt.pop()}return St(function(_t){st[_t]=vt.inEdges(_t).reduce(function(It,wt){return Math.max(It,st[wt.v]+vt.edge(wt))},0)},vt.predecessors.bind(vt)),St(function(_t){var It=vt.outEdges(_t).reduce(function(yt,rt){return Math.min(yt,st[rt.w]-vt.edge(rt))},Number.POSITIVE_INFINITY),wt=nt.node(_t);It!==Number.POSITIVE_INFINITY&&wt.borderType!==Ut&&(st[_t]=Math.max(st[_t],It))},vt.successors.bind(vt)),_.forEach(bt,function(_t){st[_t]=st[J[_t]]}),st}function U(nt,ft){return _.minBy(_.values(ft),function(J){var bt=Number.NEGATIVE_INFINITY,ot=Number.POSITIVE_INFINITY;return _.forIn(J,function(st,vt){var Ut=function(St,_t){return St.node(_t).width}(nt,vt)/2;bt=Math.max(st+Ut,bt),ot=Math.min(st-Ut,ot)}),bt-ot})}function q(nt,ft){var J=_.values(ft),bt=_.min(J),ot=_.max(J);_.forEach(["u","d"],function(st){_.forEach(["l","r"],function(vt){var Ut,St=st+vt,_t=nt[St];if(_t!==ft){var It=_.values(_t);(Ut=vt==="l"?bt-_.min(It):ot-_.max(It))&&(nt[St]=_.mapValues(_t,function(wt){return wt+Ut}))}})})}function Q(nt,ft){return _.mapValues(nt.ul,function(J,bt){if(ft)return nt[ft.toLowerCase()][bt];var ot=_.sortBy(_.map(nt,bt));return(ot[1]+ot[2])/2})}f.exports={positionX:function(nt){var ft,J=x.buildLayerMatrix(nt),bt=_.merge(b(nt,J),A(nt,J)),ot={};_.forEach(["u","d"],function(vt){ft=vt==="u"?J:_.values(J).reverse(),_.forEach(["l","r"],function(Ut){Ut==="r"&&(ft=_.map(ft,function(wt){return _.values(wt).reverse()}));var St=(vt==="u"?nt.predecessors:nt.successors).bind(nt),_t=R(0,ft,bt,St),It=F(nt,ft,_t.root,_t.align,Ut==="r");Ut==="r"&&(It=_.mapValues(It,function(wt){return-wt})),ot[vt+Ut]=It})});var st=U(nt,ot);return q(ot,st),Q(ot,nt.graph().align)},findType1Conflicts:b,findType2Conflicts:A,addConflict:O,hasConflict:T,verticalAlignment:R,horizontalCompaction:F,alignCoordinates:q,findSmallestWidthAlignment:U,balance:Q}},7873:(f,v,d)=>{var _=d(8436),p=d(1138),x=d(3573).positionX;f.exports=function(b){(function(A){var O=p.buildLayerMatrix(A),T=A.graph().ranksep,R=0;_.forEach(O,function(F){var U=_.max(_.map(F,function(q){return A.node(q).height}));_.forEach(F,function(q){A.node(q).y=R+U/2}),R+=U+T})})(b=p.asNonCompoundGraph(b)),_.forEach(x(b),function(A,O){b.node(O).x=A})}},300:(f,v,d)=>{var _=d(8436),p=d(574).Graph,x=d(6681).slack;function b(T,R){return _.forEach(T.nodes(),function F(U){_.forEach(R.nodeEdges(U),function(q){var Q=q.v,nt=U===Q?q.w:Q;T.hasNode(nt)||x(R,q)||(T.setNode(nt,{}),T.setEdge(U,nt,{}),F(nt))})}),T.nodeCount()}function A(T,R){return _.minBy(R.edges(),function(F){if(T.hasNode(F.v)!==T.hasNode(F.w))return x(R,F)})}function O(T,R,F){_.forEach(T.nodes(),function(U){R.node(U).rank+=F})}f.exports=function(T){var R,F,U=new p({directed:!1}),q=T.nodes()[0],Q=T.nodeCount();for(U.setNode(q,{});b(U,T)<Q;)R=A(U,T),F=U.hasNode(R.v)?x(T,R):-x(T,R),O(U,T,F);return U}},8093:(f,v,d)=>{var _=d(6681).longestPath,p=d(300),x=d(2472);f.exports=function(A){switch(A.graph().ranker){case"network-simplex":default:(function(O){x(O)})(A);break;case"tight-tree":(function(O){_(O),p(O)})(A);break;case"longest-path":b(A)}};var b=_},2472:(f,v,d)=>{var _=d(8436),p=d(300),x=d(6681).slack,b=d(6681).longestPath,A=d(574).alg.preorder,O=d(574).alg.postorder,T=d(1138).simplify;function R(ot){ot=T(ot),b(ot);var st,vt=p(ot);for(q(vt),F(vt,ot);st=nt(vt);)J(vt,ot,st,ft(vt,ot,st))}function F(ot,st){var vt=O(ot,ot.nodes());vt=vt.slice(0,vt.length-1),_.forEach(vt,function(Ut){(function(St,_t,It){var wt=St.node(It).parent;St.edge(It,wt).cutvalue=U(St,_t,It)})(ot,st,Ut)})}function U(ot,st,vt){var Ut=ot.node(vt).parent,St=!0,_t=st.edge(vt,Ut),It=0;return _t||(St=!1,_t=st.edge(Ut,vt)),It=_t.weight,_.forEach(st.nodeEdges(vt),function(wt){var yt,rt,pt=wt.v===vt,W=pt?wt.w:wt.v;if(W!==Ut){var kt=pt===St,G=st.edge(wt).weight;if(It+=kt?G:-G,yt=vt,rt=W,ot.hasEdge(yt,rt)){var At=ot.edge(vt,W).cutvalue;It+=kt?-At:At}}}),It}function q(ot,st){arguments.length<2&&(st=ot.nodes()[0]),Q(ot,{},1,st)}function Q(ot,st,vt,Ut,St){var _t=vt,It=ot.node(Ut);return st[Ut]=!0,_.forEach(ot.neighbors(Ut),function(wt){_.has(st,wt)||(vt=Q(ot,st,vt,wt,Ut))}),It.low=_t,It.lim=vt++,St?It.parent=St:delete It.parent,vt}function nt(ot){return _.find(ot.edges(),function(st){return ot.edge(st).cutvalue<0})}function ft(ot,st,vt){var Ut=vt.v,St=vt.w;st.hasEdge(Ut,St)||(Ut=vt.w,St=vt.v);var _t=ot.node(Ut),It=ot.node(St),wt=_t,yt=!1;_t.lim>It.lim&&(wt=It,yt=!0);var rt=_.filter(st.edges(),function(pt){return yt===bt(0,ot.node(pt.v),wt)&&yt!==bt(0,ot.node(pt.w),wt)});return _.minBy(rt,function(pt){return x(st,pt)})}function J(ot,st,vt,Ut){var St=vt.v,_t=vt.w;ot.removeEdge(St,_t),ot.setEdge(Ut.v,Ut.w,{}),q(ot),F(ot,st),function(It,wt){var yt=_.find(It.nodes(),function(pt){return!wt.node(pt).parent}),rt=A(It,yt);rt=rt.slice(1),_.forEach(rt,function(pt){var W=It.node(pt).parent,kt=wt.edge(pt,W),G=!1;kt||(kt=wt.edge(W,pt),G=!0),wt.node(pt).rank=wt.node(W).rank+(G?kt.minlen:-kt.minlen)})}(ot,st)}function bt(ot,st,vt){return vt.low<=st.lim&&st.lim<=vt.lim}f.exports=R,R.initLowLimValues=q,R.initCutValues=F,R.calcCutValue=U,R.leaveEdge=nt,R.enterEdge=ft,R.exchangeEdges=J},6681:(f,v,d)=>{var _=d(8436);f.exports={longestPath:function(p){var x={};_.forEach(p.sources(),function b(A){var O=p.node(A);if(_.has(x,A))return O.rank;x[A]=!0;var T=_.min(_.map(p.outEdges(A),function(R){return b(R.w)-p.edge(R).minlen}));return T!==Number.POSITIVE_INFINITY&&T!=null||(T=0),O.rank=T})},slack:function(p,x){return p.node(x.w).rank-p.node(x.v).rank-p.edge(x).minlen}}},1138:(f,v,d)=>{var _=d(8436),p=d(574).Graph;function x(A,O,T,R){var F;do F=_.uniqueId(R);while(A.hasNode(F));return T.dummy=O,A.setNode(F,T),F}function b(A){return _.max(_.map(A.nodes(),function(O){var T=A.node(O).rank;if(!_.isUndefined(T))return T}))}f.exports={addDummyNode:x,simplify:function(A){var O=new p().setGraph(A.graph());return _.forEach(A.nodes(),function(T){O.setNode(T,A.node(T))}),_.forEach(A.edges(),function(T){var R=O.edge(T.v,T.w)||{weight:0,minlen:1},F=A.edge(T);O.setEdge(T.v,T.w,{weight:R.weight+F.weight,minlen:Math.max(R.minlen,F.minlen)})}),O},asNonCompoundGraph:function(A){var O=new p({multigraph:A.isMultigraph()}).setGraph(A.graph());return _.forEach(A.nodes(),function(T){A.children(T).length||O.setNode(T,A.node(T))}),_.forEach(A.edges(),function(T){O.setEdge(T,A.edge(T))}),O},successorWeights:function(A){var O=_.map(A.nodes(),function(T){var R={};return _.forEach(A.outEdges(T),function(F){R[F.w]=(R[F.w]||0)+A.edge(F).weight}),R});return _.zipObject(A.nodes(),O)},predecessorWeights:function(A){var O=_.map(A.nodes(),function(T){var R={};return _.forEach(A.inEdges(T),function(F){R[F.v]=(R[F.v]||0)+A.edge(F).weight}),R});return _.zipObject(A.nodes(),O)},intersectRect:function(A,O){var T,R,F=A.x,U=A.y,q=O.x-F,Q=O.y-U,nt=A.width/2,ft=A.height/2;if(!q&&!Q)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(Q)*nt>Math.abs(q)*ft?(Q<0&&(ft=-ft),T=ft*q/Q,R=ft):(q<0&&(nt=-nt),T=nt,R=nt*Q/q),{x:F+T,y:U+R}},buildLayerMatrix:function(A){var O=_.map(_.range(b(A)+1),function(){return[]});return _.forEach(A.nodes(),function(T){var R=A.node(T),F=R.rank;_.isUndefined(F)||(O[F][R.order]=T)}),O},normalizeRanks:function(A){var O=_.min(_.map(A.nodes(),function(T){return A.node(T).rank}));_.forEach(A.nodes(),function(T){var R=A.node(T);_.has(R,"rank")&&(R.rank-=O)})},removeEmptyRanks:function(A){var O=_.min(_.map(A.nodes(),function(U){return A.node(U).rank})),T=[];_.forEach(A.nodes(),function(U){var q=A.node(U).rank-O;T[q]||(T[q]=[]),T[q].push(U)});var R=0,F=A.graph().nodeRankFactor;_.forEach(T,function(U,q){_.isUndefined(U)&&q%F!=0?--R:R&&_.forEach(U,function(Q){A.node(Q).rank+=R})})},addBorderNode:function(A,O,T,R){var F={width:0,height:0};return arguments.length>=4&&(F.rank=T,F.order=R),x(A,"border",F,O)},maxRank:b,partition:function(A,O){var T={lhs:[],rhs:[]};return _.forEach(A,function(R){O(R)?T.lhs.push(R):T.rhs.push(R)}),T},time:function(A,O){var T=_.now();try{return O()}finally{console.log(A+" time: "+(_.now()-T)+"ms")}},notime:function(A,O){return O()}}},8177:f=>{f.exports="0.8.5"},7856:function(f){f.exports=function(){function v(ct){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Se){return typeof Se}:function(Se){return Se&&typeof Symbol=="function"&&Se.constructor===Symbol&&Se!==Symbol.prototype?"symbol":typeof Se},v(ct)}function d(ct,Se){return d=Object.setPrototypeOf||function(ye,ze){return ye.__proto__=ze,ye},d(ct,Se)}function _(){if(typeof Reflect>"u"||!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 p(ct,Se,ye){return p=_()?Reflect.construct:function(ze,or,Xe){var ur=[null];ur.push.apply(ur,or);var Ne=new(Function.bind.apply(ze,ur));return Xe&&d(Ne,Xe.prototype),Ne},p.apply(null,arguments)}function x(ct){return function(Se){if(Array.isArray(Se))return b(Se)}(ct)||function(Se){if(typeof Symbol<"u"&&Se[Symbol.iterator]!=null||Se["@@iterator"]!=null)return Array.from(Se)}(ct)||function(Se,ye){if(Se){if(typeof Se=="string")return b(Se,ye);var ze=Object.prototype.toString.call(Se).slice(8,-1);return ze==="Object"&&Se.constructor&&(ze=Se.constructor.name),ze==="Map"||ze==="Set"?Array.from(Se):ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze)?b(Se,ye):void 0}}(ct)||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 b(ct,Se){(Se==null||Se>ct.length)&&(Se=ct.length);for(var ye=0,ze=new Array(Se);ye<Se;ye++)ze[ye]=ct[ye];return ze}var A=Object.hasOwnProperty,O=Object.setPrototypeOf,T=Object.isFrozen,R=Object.getPrototypeOf,F=Object.getOwnPropertyDescriptor,U=Object.freeze,q=Object.seal,Q=Object.create,nt=typeof Reflect<"u"&&Reflect,ft=nt.apply,J=nt.construct;ft||(ft=function(ct,Se,ye){return ct.apply(Se,ye)}),U||(U=function(ct){return ct}),q||(q=function(ct){return ct}),J||(J=function(ct,Se){return p(ct,x(Se))});var bt,ot=pt(Array.prototype.forEach),st=pt(Array.prototype.pop),vt=pt(Array.prototype.push),Ut=pt(String.prototype.toLowerCase),St=pt(String.prototype.match),_t=pt(String.prototype.replace),It=pt(String.prototype.indexOf),wt=pt(String.prototype.trim),yt=pt(RegExp.prototype.test),rt=(bt=TypeError,function(){for(var ct=arguments.length,Se=new Array(ct),ye=0;ye<ct;ye++)Se[ye]=arguments[ye];return J(bt,Se)});function pt(ct){return function(Se){for(var ye=arguments.length,ze=new Array(ye>1?ye-1:0),or=1;or<ye;or++)ze[or-1]=arguments[or];return ft(ct,Se,ze)}}function W(ct,Se,ye){ye=ye||Ut,O&&O(ct,null);for(var ze=Se.length;ze--;){var or=Se[ze];if(typeof or=="string"){var Xe=ye(or);Xe!==or&&(T(Se)||(Se[ze]=Xe),or=Xe)}ct[or]=!0}return ct}function kt(ct){var Se,ye=Q(null);for(Se in ct)ft(A,ct,[Se])&&(ye[Se]=ct[Se]);return ye}function G(ct,Se){for(;ct!==null;){var ye=F(ct,Se);if(ye){if(ye.get)return pt(ye.get);if(typeof ye.value=="function")return pt(ye.value)}ct=R(ct)}return function(ze){return console.warn("fallback value for",ze),null}}var At=U(["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"]),Mt=U(["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=U(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),me=U(["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"]),Ze=U(["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"]),Ee=U(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pe=U(["#text"]),we=U(["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"]),Oe=U(["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"]),De=U(["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"]),xe=U(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ar=q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),be=q(/<%[\w\W]*|[\w\W]*%>/gm),Qe=q(/^data-[\-\w.\u00B7-\uFFFF]/),Rt=q(/^aria-[\-\w]+$/),de=q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ne=q(/^(?:\w+script|data):/i),Ct=q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Te=q(/^html$/i),tt=function(){return typeof window>"u"?null:window},le=function(ct,Se){if(v(ct)!=="object"||typeof ct.createPolicy!="function")return null;var ye=null,ze="data-tt-policy-suffix";Se.currentScript&&Se.currentScript.hasAttribute(ze)&&(ye=Se.currentScript.getAttribute(ze));var or="dompurify"+(ye?"#"+ye:"");try{return ct.createPolicy(or,{createHTML:function(Xe){return Xe},createScriptURL:function(Xe){return Xe}})}catch{return console.warn("TrustedTypes policy "+or+" could not be created."),null}};return function ct(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tt(),ye=function(Qt){return ct(Qt)};if(ye.version="2.3.10",ye.removed=[],!Se||!Se.document||Se.document.nodeType!==9)return ye.isSupported=!1,ye;var ze=Se.document,or=Se.document,Xe=Se.DocumentFragment,ur=Se.HTMLTemplateElement,Ne=Se.Node,Be=Se.Element,Ue=Se.NodeFilter,Pe=Se.NamedNodeMap,ve=Pe===void 0?Se.NamedNodeMap||Se.MozNamedAttrMap:Pe,oe=Se.HTMLFormElement,vr=Se.DOMParser,We=Se.trustedTypes,cr=Be.prototype,He=G(cr,"cloneNode"),Tr=G(cr,"nextSibling"),Qr=G(cr,"childNodes"),Nr=G(cr,"parentNode");if(typeof ur=="function"){var Fr=or.createElement("template");Fr.content&&Fr.content.ownerDocument&&(or=Fr.content.ownerDocument)}var Le=le(We,ze),tr=Le?Le.createHTML(""):"",nr=or,Ae=nr.implementation,Cr=nr.createNodeIterator,Bt=nr.createDocumentFragment,xn=nr.getElementsByTagName,Vt=ze.importNode,Wr={};try{Wr=kt(or).documentMode?or.documentMode:{}}catch{}var jr={};ye.isSupported=typeof Nr=="function"&&Ae&&Ae.createHTMLDocument!==void 0&&Wr!==9;var Vr,Rr,Zr=Ar,Ur=be,Lr=Qe,Yr=Rt,$r=ne,Hr=Ct,ya=de,On=null,Cn=W({},[].concat(x(At),x(Mt),x(Gt),x(Ze),x(pe))),Mr=null,hi=W({},[].concat(x(we),x(Oe),x(De),x(xe))),Pr=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}})),wn=null,Nn=null,vn=!0,Kn=!0,Ft=!1,Ln=!1,Dn=!1,Xr=!1,ri=!1,qn=!1,Fn=!1,ni=!1,Ia=!0,fn=!0,Ai=!1,Bi={},Ci=null,fr=W({},["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"]),mr=null,Kr=W({},["audio","video","img","source","image","track"]),ir=null,un=W({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xt="http://www.w3.org/1998/Math/MathML",Yn="http://www.w3.org/2000/svg",ee="http://www.w3.org/1999/xhtml",kn=ee,si=!1,di=["application/xhtml+xml","text/html"],Na="text/html",Fi=null,kr=or.createElement("form"),jn=function(Qt){return Qt instanceof RegExp||Qt instanceof Function},Br=function(Qt){Fi&&Fi===Qt||(Qt&&v(Qt)==="object"||(Qt={}),Qt=kt(Qt),Vr=Vr=di.indexOf(Qt.PARSER_MEDIA_TYPE)===-1?Na:Qt.PARSER_MEDIA_TYPE,Rr=Vr==="application/xhtml+xml"?function(Er){return Er}:Ut,On="ALLOWED_TAGS"in Qt?W({},Qt.ALLOWED_TAGS,Rr):Cn,Mr="ALLOWED_ATTR"in Qt?W({},Qt.ALLOWED_ATTR,Rr):hi,ir="ADD_URI_SAFE_ATTR"in Qt?W(kt(un),Qt.ADD_URI_SAFE_ATTR,Rr):un,mr="ADD_DATA_URI_TAGS"in Qt?W(kt(Kr),Qt.ADD_DATA_URI_TAGS,Rr):Kr,Ci="FORBID_CONTENTS"in Qt?W({},Qt.FORBID_CONTENTS,Rr):fr,wn="FORBID_TAGS"in Qt?W({},Qt.FORBID_TAGS,Rr):{},Nn="FORBID_ATTR"in Qt?W({},Qt.FORBID_ATTR,Rr):{},Bi="USE_PROFILES"in Qt&&Qt.USE_PROFILES,vn=Qt.ALLOW_ARIA_ATTR!==!1,Kn=Qt.ALLOW_DATA_ATTR!==!1,Ft=Qt.ALLOW_UNKNOWN_PROTOCOLS||!1,Ln=Qt.SAFE_FOR_TEMPLATES||!1,Dn=Qt.WHOLE_DOCUMENT||!1,qn=Qt.RETURN_DOM||!1,Fn=Qt.RETURN_DOM_FRAGMENT||!1,ni=Qt.RETURN_TRUSTED_TYPE||!1,ri=Qt.FORCE_BODY||!1,Ia=Qt.SANITIZE_DOM!==!1,fn=Qt.KEEP_CONTENT!==!1,Ai=Qt.IN_PLACE||!1,ya=Qt.ALLOWED_URI_REGEXP||ya,kn=Qt.NAMESPACE||ee,Qt.CUSTOM_ELEMENT_HANDLING&&jn(Qt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Pr.tagNameCheck=Qt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Qt.CUSTOM_ELEMENT_HANDLING&&jn(Qt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Pr.attributeNameCheck=Qt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Qt.CUSTOM_ELEMENT_HANDLING&&typeof Qt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Pr.allowCustomizedBuiltInElements=Qt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ln&&(Kn=!1),Fn&&(qn=!0),Bi&&(On=W({},x(pe)),Mr=[],Bi.html===!0&&(W(On,At),W(Mr,we)),Bi.svg===!0&&(W(On,Mt),W(Mr,Oe),W(Mr,xe)),Bi.svgFilters===!0&&(W(On,Gt),W(Mr,Oe),W(Mr,xe)),Bi.mathMl===!0&&(W(On,Ze),W(Mr,De),W(Mr,xe))),Qt.ADD_TAGS&&(On===Cn&&(On=kt(On)),W(On,Qt.ADD_TAGS,Rr)),Qt.ADD_ATTR&&(Mr===hi&&(Mr=kt(Mr)),W(Mr,Qt.ADD_ATTR,Rr)),Qt.ADD_URI_SAFE_ATTR&&W(ir,Qt.ADD_URI_SAFE_ATTR,Rr),Qt.FORBID_CONTENTS&&(Ci===fr&&(Ci=kt(Ci)),W(Ci,Qt.FORBID_CONTENTS,Rr)),fn&&(On["#text"]=!0),Dn&&W(On,["html","head","body"]),On.table&&(W(On,["tbody"]),delete wn.tbody),U&&U(Qt),Fi=Qt)},ma=W({},["mi","mo","mn","ms","mtext"]),Pn=W({},["foreignobject","desc","title","annotation-xml"]),Pi=W({},["title","style","font","a","script"]),$n=W({},Mt);W($n,Gt),W($n,me);var mn=W({},Ze);W(mn,Ee);var ki=function(Qt){var Er=Nr(Qt);Er&&Er.tagName||(Er={namespaceURI:ee,tagName:"template"});var sr=Ut(Qt.tagName),on=Ut(Er.tagName);return Qt.namespaceURI===Yn?Er.namespaceURI===ee?sr==="svg":Er.namespaceURI===Xt?sr==="svg"&&(on==="annotation-xml"||ma[on]):Boolean($n[sr]):Qt.namespaceURI===Xt?Er.namespaceURI===ee?sr==="math":Er.namespaceURI===Yn?sr==="math"&&Pn[on]:Boolean(mn[sr]):Qt.namespaceURI===ee&&!(Er.namespaceURI===Yn&&!Pn[on])&&!(Er.namespaceURI===Xt&&!ma[on])&&!mn[sr]&&(Pi[sr]||!$n[sr])},Wn=function(Qt){vt(ye.removed,{element:Qt});try{Qt.parentNode.removeChild(Qt)}catch{try{Qt.outerHTML=tr}catch{Qt.remove()}}},ii=function(Qt,Er){try{vt(ye.removed,{attribute:Er.getAttributeNode(Qt),from:Er})}catch{vt(ye.removed,{attribute:null,from:Er})}if(Er.removeAttribute(Qt),Qt==="is"&&!Mr[Qt])if(qn||Fn)try{Wn(Er)}catch{}else try{Er.setAttribute(Qt,"")}catch{}},Qi=function(Qt){var Er,sr;if(ri)Qt="<remove></remove>"+Qt;else{var on=St(Qt,/^[\r\n\t ]+/);sr=on&&on[0]}Vr==="application/xhtml+xml"&&(Qt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Qt+"</body></html>");var Hn=Le?Le.createHTML(Qt):Qt;if(kn===ee)try{Er=new vr().parseFromString(Hn,Vr)}catch{}if(!Er||!Er.documentElement){Er=Ae.createDocument(kn,"template",null);try{Er.documentElement.innerHTML=si?"":Hn}catch{}}var gi=Er.body||Er.documentElement;return Qt&&sr&&gi.insertBefore(or.createTextNode(sr),gi.childNodes[0]||null),kn===ee?xn.call(Er,Dn?"html":"body")[0]:Dn?Er.documentElement:gi},Ii=function(Qt){return Cr.call(Qt.ownerDocument||Qt,Qt,Ue.SHOW_ELEMENT|Ue.SHOW_COMMENT|Ue.SHOW_TEXT,null,!1)},ai=function(Qt){return Qt instanceof oe&&(typeof Qt.nodeName!="string"||typeof Qt.textContent!="string"||typeof Qt.removeChild!="function"||!(Qt.attributes instanceof ve)||typeof Qt.removeAttribute!="function"||typeof Qt.setAttribute!="function"||typeof Qt.namespaceURI!="string"||typeof Qt.insertBefore!="function")},_a=function(Qt){return v(Ne)==="object"?Qt instanceof Ne:Qt&&v(Qt)==="object"&&typeof Qt.nodeType=="number"&&typeof Qt.nodeName=="string"},Gn=function(Qt,Er,sr){jr[Qt]&&ot(jr[Qt],function(on){on.call(ye,Er,sr,Fi)})},Jn=function(Qt){var Er;if(Gn("beforeSanitizeElements",Qt,null),ai(Qt)||yt(/[\u0080-\uFFFF]/,Qt.nodeName))return Wn(Qt),!0;var sr=Rr(Qt.nodeName);if(Gn("uponSanitizeElement",Qt,{tagName:sr,allowedTags:On}),Qt.hasChildNodes()&&!_a(Qt.firstElementChild)&&(!_a(Qt.content)||!_a(Qt.content.firstElementChild))&&yt(/<[/\w]/g,Qt.innerHTML)&&yt(/<[/\w]/g,Qt.textContent)||sr==="select"&&yt(/<template/i,Qt.innerHTML))return Wn(Qt),!0;if(!On[sr]||wn[sr]){if(!wn[sr]&&zi(sr)&&(Pr.tagNameCheck instanceof RegExp&&yt(Pr.tagNameCheck,sr)||Pr.tagNameCheck instanceof Function&&Pr.tagNameCheck(sr)))return!1;if(fn&&!Ci[sr]){var on=Nr(Qt)||Qt.parentNode,Hn=Qr(Qt)||Qt.childNodes;if(Hn&&on)for(var gi=Hn.length-1;gi>=0;--gi)on.insertBefore(He(Hn[gi],!0),Tr(Qt))}return Wn(Qt),!0}return Qt instanceof Be&&!ki(Qt)?(Wn(Qt),!0):sr!=="noscript"&&sr!=="noembed"||!yt(/<\/no(script|embed)/i,Qt.innerHTML)?(Ln&&Qt.nodeType===3&&(Er=Qt.textContent,Er=_t(Er,Zr," "),Er=_t(Er,Ur," "),Qt.textContent!==Er&&(vt(ye.removed,{element:Qt.cloneNode()}),Qt.textContent=Er)),Gn("afterSanitizeElements",Qt,null),!1):(Wn(Qt),!0)},ci=function(Qt,Er,sr){if(Ia&&(Er==="id"||Er==="name")&&(sr in or||sr in kr))return!1;if(!(Kn&&!Nn[Er]&&yt(Lr,Er))){if(!(vn&&yt(Yr,Er))){if(!Mr[Er]||Nn[Er]){if(!(zi(Qt)&&(Pr.tagNameCheck instanceof RegExp&&yt(Pr.tagNameCheck,Qt)||Pr.tagNameCheck instanceof Function&&Pr.tagNameCheck(Qt))&&(Pr.attributeNameCheck instanceof RegExp&&yt(Pr.attributeNameCheck,Er)||Pr.attributeNameCheck instanceof Function&&Pr.attributeNameCheck(Er))||Er==="is"&&Pr.allowCustomizedBuiltInElements&&(Pr.tagNameCheck instanceof RegExp&&yt(Pr.tagNameCheck,sr)||Pr.tagNameCheck instanceof Function&&Pr.tagNameCheck(sr))))return!1}else if(!ir[Er]){if(!yt(ya,_t(sr,Hr,""))){if((Er!=="src"&&Er!=="xlink:href"&&Er!=="href"||Qt==="script"||It(sr,"data:")!==0||!mr[Qt])&&!(Ft&&!yt($r,_t(sr,Hr,"")))){if(sr)return!1}}}}}return!0},zi=function(Qt){return Qt.indexOf("-")>0},Io=function(Qt){var Er,sr,on,Hn;Gn("beforeSanitizeAttributes",Qt,null);var gi=Qt.attributes;if(gi){var Qn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Mr};for(Hn=gi.length;Hn--;){var qi=Er=gi[Hn],ta=qi.name,fi=qi.namespaceURI;if(sr=ta==="value"?Er.value:wt(Er.value),on=Rr(ta),Qn.attrName=on,Qn.attrValue=sr,Qn.keepAttr=!0,Qn.forceKeepAttr=void 0,Gn("uponSanitizeAttribute",Qt,Qn),sr=Qn.attrValue,!Qn.forceKeepAttr&&(ii(ta,Qt),Qn.keepAttr))if(yt(/\/>/i,sr))ii(ta,Qt);else{Ln&&(sr=_t(sr,Zr," "),sr=_t(sr,Ur," "));var Ja=Rr(Qt.nodeName);if(ci(Ja,on,sr)){if(Le&&v(We)==="object"&&typeof We.getAttributeType=="function"&&!fi)switch(We.getAttributeType(Ja,on)){case"TrustedHTML":sr=Le.createHTML(sr);break;case"TrustedScriptURL":sr=Le.createScriptURL(sr)}try{fi?Qt.setAttributeNS(fi,ta,sr):Qt.setAttribute(ta,sr),st(ye.removed)}catch{}}}}Gn("afterSanitizeAttributes",Qt,null)}},Hi=function Qt(Er){var sr,on=Ii(Er);for(Gn("beforeSanitizeShadowDOM",Er,null);sr=on.nextNode();)Gn("uponSanitizeShadowNode",sr,null),Jn(sr)||(sr.content instanceof Xe&&Qt(sr.content),Io(sr));Gn("afterSanitizeShadowDOM",Er,null)};return ye.sanitize=function(Qt,Er){var sr,on,Hn,gi,Qn;if((si=!Qt)&&(Qt="<!-->"),typeof Qt!="string"&&!_a(Qt)){if(typeof Qt.toString!="function")throw rt("toString is not a function");if(typeof(Qt=Qt.toString())!="string")throw rt("dirty is not a string, aborting")}if(!ye.isSupported){if(v(Se.toStaticHTML)==="object"||typeof Se.toStaticHTML=="function"){if(typeof Qt=="string")return Se.toStaticHTML(Qt);if(_a(Qt))return Se.toStaticHTML(Qt.outerHTML)}return Qt}if(Xr||Br(Er),ye.removed=[],typeof Qt=="string"&&(Ai=!1),Ai){if(Qt.nodeName){var qi=Rr(Qt.nodeName);if(!On[qi]||wn[qi])throw rt("root node is forbidden and cannot be sanitized in-place")}}else if(Qt instanceof Ne)(on=(sr=Qi("<!---->")).ownerDocument.importNode(Qt,!0)).nodeType===1&&on.nodeName==="BODY"||on.nodeName==="HTML"?sr=on:sr.appendChild(on);else{if(!qn&&!Ln&&!Dn&&Qt.indexOf("<")===-1)return Le&&ni?Le.createHTML(Qt):Qt;if(!(sr=Qi(Qt)))return qn?null:ni?tr:""}sr&&ri&&Wn(sr.firstChild);for(var ta=Ii(Ai?Qt:sr);Hn=ta.nextNode();)Hn.nodeType===3&&Hn===gi||Jn(Hn)||(Hn.content instanceof Xe&&Hi(Hn.content),Io(Hn),gi=Hn);if(gi=null,Ai)return Qt;if(qn){if(Fn)for(Qn=Bt.call(sr.ownerDocument);sr.firstChild;)Qn.appendChild(sr.firstChild);else Qn=sr;return Mr.shadowroot&&(Qn=Vt.call(ze,Qn,!0)),Qn}var fi=Dn?sr.outerHTML:sr.innerHTML;return Dn&&On["!doctype"]&&sr.ownerDocument&&sr.ownerDocument.doctype&&sr.ownerDocument.doctype.name&&yt(Te,sr.ownerDocument.doctype.name)&&(fi="<!DOCTYPE "+sr.ownerDocument.doctype.name+`>
|
|
`+fi),Ln&&(fi=_t(fi,Zr," "),fi=_t(fi,Ur," ")),Le&&ni?Le.createHTML(fi):fi},ye.setConfig=function(Qt){Br(Qt),Xr=!0},ye.clearConfig=function(){Fi=null,Xr=!1},ye.isValidAttribute=function(Qt,Er,sr){Fi||Br({});var on=Rr(Qt),Hn=Rr(Er);return ci(on,Hn,sr)},ye.addHook=function(Qt,Er){typeof Er=="function"&&(jr[Qt]=jr[Qt]||[],vt(jr[Qt],Er))},ye.removeHook=function(Qt){if(jr[Qt])return st(jr[Qt])},ye.removeHooks=function(Qt){jr[Qt]&&(jr[Qt]=[])},ye.removeAllHooks=function(){jr={}},ye}()}()},8282:(f,v,d)=>{var _=d(2354);f.exports={Graph:_.Graph,json:d(8974),alg:d(2440),version:_.version}},2842:(f,v,d)=>{var _=d(9126);f.exports=function(p){var x,b={},A=[];function O(T){_.has(b,T)||(b[T]=!0,x.push(T),_.each(p.successors(T),O),_.each(p.predecessors(T),O))}return _.each(p.nodes(),function(T){x=[],O(T),x.length&&A.push(x)}),A}},3984:(f,v,d)=>{var _=d(9126);function p(x,b,A,O,T,R){_.has(O,b)||(O[b]=!0,A||R.push(b),_.each(T(b),function(F){p(x,F,A,O,T,R)}),A&&R.push(b))}f.exports=function(x,b,A){_.isArray(b)||(b=[b]);var O=(x.isDirected()?x.successors:x.neighbors).bind(x),T=[],R={};return _.each(b,function(F){if(!x.hasNode(F))throw new Error("Graph does not have node: "+F);p(x,F,A==="post",R,O,T)}),T}},4847:(f,v,d)=>{var _=d(3763),p=d(9126);f.exports=function(x,b,A){return p.transform(x.nodes(),function(O,T){O[T]=_(x,T,b,A)},{})}},3763:(f,v,d)=>{var _=d(9126),p=d(9675);f.exports=function(b,A,O,T){return function(R,F,U,q){var Q,nt,ft={},J=new p,bt=function(ot){var st=ot.v!==Q?ot.v:ot.w,vt=ft[st],Ut=U(ot),St=nt.distance+Ut;if(Ut<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+ot+" Weight: "+Ut);St<vt.distance&&(vt.distance=St,vt.predecessor=Q,J.decrease(st,St))};for(R.nodes().forEach(function(ot){var st=ot===F?0:Number.POSITIVE_INFINITY;ft[ot]={distance:st},J.add(ot,st)});J.size()>0&&(Q=J.removeMin(),(nt=ft[Q]).distance!==Number.POSITIVE_INFINITY);)q(Q).forEach(bt);return ft}(b,String(A),O||x,T||function(R){return b.outEdges(R)})};var x=_.constant(1)},9096:(f,v,d)=>{var _=d(9126),p=d(5023);f.exports=function(x){return _.filter(p(x),function(b){return b.length>1||b.length===1&&x.hasEdge(b[0],b[0])})}},8924:(f,v,d)=>{var _=d(9126);f.exports=function(x,b,A){return function(O,T,R){var F={},U=O.nodes();return U.forEach(function(q){F[q]={},F[q][q]={distance:0},U.forEach(function(Q){q!==Q&&(F[q][Q]={distance:Number.POSITIVE_INFINITY})}),R(q).forEach(function(Q){var nt=Q.v===q?Q.w:Q.v,ft=T(Q);F[q][nt]={distance:ft,predecessor:q}})}),U.forEach(function(q){var Q=F[q];U.forEach(function(nt){var ft=F[nt];U.forEach(function(J){var bt=ft[q],ot=Q[J],st=ft[J],vt=bt.distance+ot.distance;vt<st.distance&&(st.distance=vt,st.predecessor=ot.predecessor)})})}),F}(x,b||p,A||function(O){return x.outEdges(O)})};var p=_.constant(1)},2440:(f,v,d)=>{f.exports={components:d(2842),dijkstra:d(3763),dijkstraAll:d(4847),findCycles:d(9096),floydWarshall:d(8924),isAcyclic:d(2707),postorder:d(8828),preorder:d(2648),prim:d(514),tarjan:d(5023),topsort:d(2166)}},2707:(f,v,d)=>{var _=d(2166);f.exports=function(p){try{_(p)}catch(x){if(x instanceof _.CycleException)return!1;throw x}return!0}},8828:(f,v,d)=>{var _=d(3984);f.exports=function(p,x){return _(p,x,"post")}},2648:(f,v,d)=>{var _=d(3984);f.exports=function(p,x){return _(p,x,"pre")}},514:(f,v,d)=>{var _=d(9126),p=d(771),x=d(9675);f.exports=function(b,A){var O,T=new p,R={},F=new x;function U(Q){var nt=Q.v===O?Q.w:Q.v,ft=F.priority(nt);if(ft!==void 0){var J=A(Q);J<ft&&(R[nt]=O,F.decrease(nt,J))}}if(b.nodeCount()===0)return T;_.each(b.nodes(),function(Q){F.add(Q,Number.POSITIVE_INFINITY),T.setNode(Q)}),F.decrease(b.nodes()[0],0);for(var q=!1;F.size()>0;){if(O=F.removeMin(),_.has(R,O))T.setEdge(O,R[O]);else{if(q)throw new Error("Input graph is not connected: "+b);q=!0}b.nodeEdges(O).forEach(U)}return T}},5023:(f,v,d)=>{var _=d(9126);f.exports=function(p){var x=0,b=[],A={},O=[];function T(R){var F=A[R]={onStack:!0,lowlink:x,index:x++};if(b.push(R),p.successors(R).forEach(function(Q){_.has(A,Q)?A[Q].onStack&&(F.lowlink=Math.min(F.lowlink,A[Q].index)):(T(Q),F.lowlink=Math.min(F.lowlink,A[Q].lowlink))}),F.lowlink===F.index){var U,q=[];do U=b.pop(),A[U].onStack=!1,q.push(U);while(R!==U);O.push(q)}}return p.nodes().forEach(function(R){_.has(A,R)||T(R)}),O}},2166:(f,v,d)=>{var _=d(9126);function p(b){var A={},O={},T=[];if(_.each(b.sinks(),function R(F){if(_.has(O,F))throw new x;_.has(A,F)||(O[F]=!0,A[F]=!0,_.each(b.predecessors(F),R),delete O[F],T.push(F))}),_.size(A)!==b.nodeCount())throw new x;return T}function x(){}f.exports=p,p.CycleException=x,x.prototype=new Error},9675:(f,v,d)=>{var _=d(9126);function p(){this._arr=[],this._keyIndices={}}f.exports=p,p.prototype.size=function(){return this._arr.length},p.prototype.keys=function(){return this._arr.map(function(x){return x.key})},p.prototype.has=function(x){return _.has(this._keyIndices,x)},p.prototype.priority=function(x){var b=this._keyIndices[x];if(b!==void 0)return this._arr[b].priority},p.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},p.prototype.add=function(x,b){var A=this._keyIndices;if(x=String(x),!_.has(A,x)){var O=this._arr,T=O.length;return A[x]=T,O.push({key:x,priority:b}),this._decrease(T),!0}return!1},p.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var x=this._arr.pop();return delete this._keyIndices[x.key],this._heapify(0),x.key},p.prototype.decrease=function(x,b){var A=this._keyIndices[x];if(b>this._arr[A].priority)throw new Error("New priority is greater than current priority. Key: "+x+" Old: "+this._arr[A].priority+" New: "+b);this._arr[A].priority=b,this._decrease(A)},p.prototype._heapify=function(x){var b=this._arr,A=2*x,O=A+1,T=x;A<b.length&&(T=b[A].priority<b[T].priority?A:T,O<b.length&&(T=b[O].priority<b[T].priority?O:T),T!==x&&(this._swap(x,T),this._heapify(T)))},p.prototype._decrease=function(x){for(var b,A=this._arr,O=A[x].priority;x!==0&&!(A[b=x>>1].priority<O);)this._swap(x,b),x=b},p.prototype._swap=function(x,b){var A=this._arr,O=this._keyIndices,T=A[x],R=A[b];A[x]=R,A[b]=T,O[R.key]=x,O[T.key]=b}},771:(f,v,d)=>{var _=d(9126);f.exports=x;var p="\0";function x(F){this._isDirected=!_.has(F,"directed")||F.directed,this._isMultigraph=!!_.has(F,"multigraph")&&F.multigraph,this._isCompound=!!_.has(F,"compound")&&F.compound,this._label=void 0,this._defaultNodeLabelFn=_.constant(void 0),this._defaultEdgeLabelFn=_.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 b(F,U){F[U]?F[U]++:F[U]=1}function A(F,U){--F[U]||delete F[U]}function O(F,U,q,Q){var nt=""+U,ft=""+q;if(!F&&nt>ft){var J=nt;nt=ft,ft=J}return nt+""+ft+""+(_.isUndefined(Q)?"\0":Q)}function T(F,U,q,Q){var nt=""+U,ft=""+q;if(!F&&nt>ft){var J=nt;nt=ft,ft=J}var bt={v:nt,w:ft};return Q&&(bt.name=Q),bt}function R(F,U){return O(F,U.v,U.w,U.name)}x.prototype._nodeCount=0,x.prototype._edgeCount=0,x.prototype.isDirected=function(){return this._isDirected},x.prototype.isMultigraph=function(){return this._isMultigraph},x.prototype.isCompound=function(){return this._isCompound},x.prototype.setGraph=function(F){return this._label=F,this},x.prototype.graph=function(){return this._label},x.prototype.setDefaultNodeLabel=function(F){return _.isFunction(F)||(F=_.constant(F)),this._defaultNodeLabelFn=F,this},x.prototype.nodeCount=function(){return this._nodeCount},x.prototype.nodes=function(){return _.keys(this._nodes)},x.prototype.sources=function(){var F=this;return _.filter(this.nodes(),function(U){return _.isEmpty(F._in[U])})},x.prototype.sinks=function(){var F=this;return _.filter(this.nodes(),function(U){return _.isEmpty(F._out[U])})},x.prototype.setNodes=function(F,U){var q=arguments,Q=this;return _.each(F,function(nt){q.length>1?Q.setNode(nt,U):Q.setNode(nt)}),this},x.prototype.setNode=function(F,U){return _.has(this._nodes,F)?(arguments.length>1&&(this._nodes[F]=U),this):(this._nodes[F]=arguments.length>1?U:this._defaultNodeLabelFn(F),this._isCompound&&(this._parent[F]=p,this._children[F]={},this._children["\0"][F]=!0),this._in[F]={},this._preds[F]={},this._out[F]={},this._sucs[F]={},++this._nodeCount,this)},x.prototype.node=function(F){return this._nodes[F]},x.prototype.hasNode=function(F){return _.has(this._nodes,F)},x.prototype.removeNode=function(F){var U=this;if(_.has(this._nodes,F)){var q=function(Q){U.removeEdge(U._edgeObjs[Q])};delete this._nodes[F],this._isCompound&&(this._removeFromParentsChildList(F),delete this._parent[F],_.each(this.children(F),function(Q){U.setParent(Q)}),delete this._children[F]),_.each(_.keys(this._in[F]),q),delete this._in[F],delete this._preds[F],_.each(_.keys(this._out[F]),q),delete this._out[F],delete this._sucs[F],--this._nodeCount}return this},x.prototype.setParent=function(F,U){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(_.isUndefined(U))U=p;else{for(var q=U+="";!_.isUndefined(q);q=this.parent(q))if(q===F)throw new Error("Setting "+U+" as parent of "+F+" would create a cycle");this.setNode(U)}return this.setNode(F),this._removeFromParentsChildList(F),this._parent[F]=U,this._children[U][F]=!0,this},x.prototype._removeFromParentsChildList=function(F){delete this._children[this._parent[F]][F]},x.prototype.parent=function(F){if(this._isCompound){var U=this._parent[F];if(U!==p)return U}},x.prototype.children=function(F){if(_.isUndefined(F)&&(F=p),this._isCompound){var U=this._children[F];if(U)return _.keys(U)}else{if(F===p)return this.nodes();if(this.hasNode(F))return[]}},x.prototype.predecessors=function(F){var U=this._preds[F];if(U)return _.keys(U)},x.prototype.successors=function(F){var U=this._sucs[F];if(U)return _.keys(U)},x.prototype.neighbors=function(F){var U=this.predecessors(F);if(U)return _.union(U,this.successors(F))},x.prototype.isLeaf=function(F){return(this.isDirected()?this.successors(F):this.neighbors(F)).length===0},x.prototype.filterNodes=function(F){var U=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});U.setGraph(this.graph());var q=this;_.each(this._nodes,function(ft,J){F(J)&&U.setNode(J,ft)}),_.each(this._edgeObjs,function(ft){U.hasNode(ft.v)&&U.hasNode(ft.w)&&U.setEdge(ft,q.edge(ft))});var Q={};function nt(ft){var J=q.parent(ft);return J===void 0||U.hasNode(J)?(Q[ft]=J,J):J in Q?Q[J]:nt(J)}return this._isCompound&&_.each(U.nodes(),function(ft){U.setParent(ft,nt(ft))}),U},x.prototype.setDefaultEdgeLabel=function(F){return _.isFunction(F)||(F=_.constant(F)),this._defaultEdgeLabelFn=F,this},x.prototype.edgeCount=function(){return this._edgeCount},x.prototype.edges=function(){return _.values(this._edgeObjs)},x.prototype.setPath=function(F,U){var q=this,Q=arguments;return _.reduce(F,function(nt,ft){return Q.length>1?q.setEdge(nt,ft,U):q.setEdge(nt,ft),ft}),this},x.prototype.setEdge=function(){var F,U,q,Q,nt=!1,ft=arguments[0];typeof ft=="object"&&ft!==null&&"v"in ft?(F=ft.v,U=ft.w,q=ft.name,arguments.length===2&&(Q=arguments[1],nt=!0)):(F=ft,U=arguments[1],q=arguments[3],arguments.length>2&&(Q=arguments[2],nt=!0)),F=""+F,U=""+U,_.isUndefined(q)||(q=""+q);var J=O(this._isDirected,F,U,q);if(_.has(this._edgeLabels,J))return nt&&(this._edgeLabels[J]=Q),this;if(!_.isUndefined(q)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(F),this.setNode(U),this._edgeLabels[J]=nt?Q:this._defaultEdgeLabelFn(F,U,q);var bt=T(this._isDirected,F,U,q);return F=bt.v,U=bt.w,Object.freeze(bt),this._edgeObjs[J]=bt,b(this._preds[U],F),b(this._sucs[F],U),this._in[U][J]=bt,this._out[F][J]=bt,this._edgeCount++,this},x.prototype.edge=function(F,U,q){var Q=arguments.length===1?R(this._isDirected,arguments[0]):O(this._isDirected,F,U,q);return this._edgeLabels[Q]},x.prototype.hasEdge=function(F,U,q){var Q=arguments.length===1?R(this._isDirected,arguments[0]):O(this._isDirected,F,U,q);return _.has(this._edgeLabels,Q)},x.prototype.removeEdge=function(F,U,q){var Q=arguments.length===1?R(this._isDirected,arguments[0]):O(this._isDirected,F,U,q),nt=this._edgeObjs[Q];return nt&&(F=nt.v,U=nt.w,delete this._edgeLabels[Q],delete this._edgeObjs[Q],A(this._preds[U],F),A(this._sucs[F],U),delete this._in[U][Q],delete this._out[F][Q],this._edgeCount--),this},x.prototype.inEdges=function(F,U){var q=this._in[F];if(q){var Q=_.values(q);return U?_.filter(Q,function(nt){return nt.v===U}):Q}},x.prototype.outEdges=function(F,U){var q=this._out[F];if(q){var Q=_.values(q);return U?_.filter(Q,function(nt){return nt.w===U}):Q}},x.prototype.nodeEdges=function(F,U){var q=this.inEdges(F,U);if(q)return q.concat(this.outEdges(F,U))}},2354:(f,v,d)=>{f.exports={Graph:d(771),version:d(9631)}},8974:(f,v,d)=>{var _=d(9126),p=d(771);function x(A){return _.map(A.nodes(),function(O){var T=A.node(O),R=A.parent(O),F={v:O};return _.isUndefined(T)||(F.value=T),_.isUndefined(R)||(F.parent=R),F})}function b(A){return _.map(A.edges(),function(O){var T=A.edge(O),R={v:O.v,w:O.w};return _.isUndefined(O.name)||(R.name=O.name),_.isUndefined(T)||(R.value=T),R})}f.exports={write:function(A){var O={options:{directed:A.isDirected(),multigraph:A.isMultigraph(),compound:A.isCompound()},nodes:x(A),edges:b(A)};return _.isUndefined(A.graph())||(O.value=_.clone(A.graph())),O},read:function(A){var O=new p(A.options).setGraph(A.value);return _.each(A.nodes,function(T){O.setNode(T.v,T.value),T.parent&&O.setParent(T.v,T.parent)}),_.each(A.edges,function(T){O.setEdge({v:T.v,w:T.w,name:T.name},T.value)}),O}}},9126:(f,v,d)=>{var _;try{_={clone:d(6678),constant:d(5703),each:d(6073),filter:d(3105),has:d(8721),isArray:d(1469),isEmpty:d(1609),isFunction:d(3560),isUndefined:d(2353),keys:d(3674),map:d(5161),reduce:d(4061),size:d(4238),transform:d(8718),union:d(3386),values:d(2628)}}catch{}_||(_=window._),f.exports=_},9631:f=>{f.exports="2.1.8"},8552:(f,v,d)=>{var _=d(852)(d(5639),"DataView");f.exports=_},1989:(f,v,d)=>{var _=d(1789),p=d(401),x=d(7667),b=d(1327),A=d(1866);function O(T){var R=-1,F=T==null?0:T.length;for(this.clear();++R<F;){var U=T[R];this.set(U[0],U[1])}}O.prototype.clear=_,O.prototype.delete=p,O.prototype.get=x,O.prototype.has=b,O.prototype.set=A,f.exports=O},8407:(f,v,d)=>{var _=d(7040),p=d(4125),x=d(2117),b=d(7518),A=d(4705);function O(T){var R=-1,F=T==null?0:T.length;for(this.clear();++R<F;){var U=T[R];this.set(U[0],U[1])}}O.prototype.clear=_,O.prototype.delete=p,O.prototype.get=x,O.prototype.has=b,O.prototype.set=A,f.exports=O},7071:(f,v,d)=>{var _=d(852)(d(5639),"Map");f.exports=_},3369:(f,v,d)=>{var _=d(4785),p=d(1285),x=d(6e3),b=d(9916),A=d(5265);function O(T){var R=-1,F=T==null?0:T.length;for(this.clear();++R<F;){var U=T[R];this.set(U[0],U[1])}}O.prototype.clear=_,O.prototype.delete=p,O.prototype.get=x,O.prototype.has=b,O.prototype.set=A,f.exports=O},3818:(f,v,d)=>{var _=d(852)(d(5639),"Promise");f.exports=_},8525:(f,v,d)=>{var _=d(852)(d(5639),"Set");f.exports=_},8668:(f,v,d)=>{var _=d(3369),p=d(619),x=d(2385);function b(A){var O=-1,T=A==null?0:A.length;for(this.__data__=new _;++O<T;)this.add(A[O])}b.prototype.add=b.prototype.push=p,b.prototype.has=x,f.exports=b},6384:(f,v,d)=>{var _=d(8407),p=d(7465),x=d(3779),b=d(7599),A=d(4758),O=d(4309);function T(R){var F=this.__data__=new _(R);this.size=F.size}T.prototype.clear=p,T.prototype.delete=x,T.prototype.get=b,T.prototype.has=A,T.prototype.set=O,f.exports=T},2705:(f,v,d)=>{var _=d(5639).Symbol;f.exports=_},1149:(f,v,d)=>{var _=d(5639).Uint8Array;f.exports=_},577:(f,v,d)=>{var _=d(852)(d(5639),"WeakMap");f.exports=_},6874:f=>{f.exports=function(v,d,_){switch(_.length){case 0:return v.call(d);case 1:return v.call(d,_[0]);case 2:return v.call(d,_[0],_[1]);case 3:return v.call(d,_[0],_[1],_[2])}return v.apply(d,_)}},7412:f=>{f.exports=function(v,d){for(var _=-1,p=v==null?0:v.length;++_<p&&d(v[_],_,v)!==!1;);return v}},4963:f=>{f.exports=function(v,d){for(var _=-1,p=v==null?0:v.length,x=0,b=[];++_<p;){var A=v[_];d(A,_,v)&&(b[x++]=A)}return b}},7443:(f,v,d)=>{var _=d(2118);f.exports=function(p,x){return!(p==null||!p.length)&&_(p,x,0)>-1}},1196:f=>{f.exports=function(v,d,_){for(var p=-1,x=v==null?0:v.length;++p<x;)if(_(d,v[p]))return!0;return!1}},4636:(f,v,d)=>{var _=d(2545),p=d(5694),x=d(1469),b=d(4144),A=d(5776),O=d(6719),T=Object.prototype.hasOwnProperty;f.exports=function(R,F){var U=x(R),q=!U&&p(R),Q=!U&&!q&&b(R),nt=!U&&!q&&!Q&&O(R),ft=U||q||Q||nt,J=ft?_(R.length,String):[],bt=J.length;for(var ot in R)!F&&!T.call(R,ot)||ft&&(ot=="length"||Q&&(ot=="offset"||ot=="parent")||nt&&(ot=="buffer"||ot=="byteLength"||ot=="byteOffset")||A(ot,bt))||J.push(ot);return J}},9932:f=>{f.exports=function(v,d){for(var _=-1,p=v==null?0:v.length,x=Array(p);++_<p;)x[_]=d(v[_],_,v);return x}},2488:f=>{f.exports=function(v,d){for(var _=-1,p=d.length,x=v.length;++_<p;)v[x+_]=d[_];return v}},2663:f=>{f.exports=function(v,d,_,p){var x=-1,b=v==null?0:v.length;for(p&&b&&(_=v[++x]);++x<b;)_=d(_,v[x],x,v);return _}},2908:f=>{f.exports=function(v,d){for(var _=-1,p=v==null?0:v.length;++_<p;)if(d(v[_],_,v))return!0;return!1}},8983:(f,v,d)=>{var _=d(371)("length");f.exports=_},6556:(f,v,d)=>{var _=d(9465),p=d(7813);f.exports=function(x,b,A){(A!==void 0&&!p(x[b],A)||A===void 0&&!(b in x))&&_(x,b,A)}},4865:(f,v,d)=>{var _=d(9465),p=d(7813),x=Object.prototype.hasOwnProperty;f.exports=function(b,A,O){var T=b[A];x.call(b,A)&&p(T,O)&&(O!==void 0||A in b)||_(b,A,O)}},8470:(f,v,d)=>{var _=d(7813);f.exports=function(p,x){for(var b=p.length;b--;)if(_(p[b][0],x))return b;return-1}},4037:(f,v,d)=>{var _=d(8363),p=d(3674);f.exports=function(x,b){return x&&_(b,p(b),x)}},3886:(f,v,d)=>{var _=d(8363),p=d(1704);f.exports=function(x,b){return x&&_(b,p(b),x)}},9465:(f,v,d)=>{var _=d(8777);f.exports=function(p,x,b){x=="__proto__"&&_?_(p,x,{configurable:!0,enumerable:!0,value:b,writable:!0}):p[x]=b}},5990:(f,v,d)=>{var _=d(6384),p=d(7412),x=d(4865),b=d(4037),A=d(3886),O=d(4626),T=d(278),R=d(8805),F=d(1911),U=d(8234),q=d(6904),Q=d(4160),nt=d(3824),ft=d(9148),J=d(8517),bt=d(1469),ot=d(4144),st=d(6688),vt=d(3218),Ut=d(2928),St=d(3674),_t=d(1704),It="[object Arguments]",wt="[object Function]",yt="[object Object]",rt={};rt[It]=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[yt]=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[wt]=rt["[object WeakMap]"]=!1,f.exports=function pt(W,kt,G,At,Mt,Gt){var me,Ze=1&kt,Ee=2&kt,pe=4&kt;if(G&&(me=Mt?G(W,At,Mt,Gt):G(W)),me!==void 0)return me;if(!vt(W))return W;var we=bt(W);if(we){if(me=nt(W),!Ze)return T(W,me)}else{var Oe=Q(W),De=Oe==wt||Oe=="[object GeneratorFunction]";if(ot(W))return O(W,Ze);if(Oe==yt||Oe==It||De&&!Mt){if(me=Ee||De?{}:J(W),!Ze)return Ee?F(W,A(me,W)):R(W,b(me,W))}else{if(!rt[Oe])return Mt?W:{};me=ft(W,Oe,Ze)}}Gt||(Gt=new _);var xe=Gt.get(W);if(xe)return xe;Gt.set(W,me),Ut(W)?W.forEach(function(be){me.add(pt(be,kt,G,be,W,Gt))}):st(W)&&W.forEach(function(be,Qe){me.set(Qe,pt(be,kt,G,Qe,W,Gt))});var Ar=we?void 0:(pe?Ee?q:U:Ee?_t:St)(W);return p(Ar||W,function(be,Qe){Ar&&(be=W[Qe=be]),x(me,Qe,pt(be,kt,G,Qe,W,Gt))}),me}},3118:(f,v,d)=>{var _=d(3218),p=Object.create,x=function(){function b(){}return function(A){if(!_(A))return{};if(p)return p(A);b.prototype=A;var O=new b;return b.prototype=void 0,O}}();f.exports=x},9881:(f,v,d)=>{var _=d(7816),p=d(9291)(_);f.exports=p},6029:(f,v,d)=>{var _=d(3448);f.exports=function(p,x,b){for(var A=-1,O=p.length;++A<O;){var T=p[A],R=x(T);if(R!=null&&(F===void 0?R==R&&!_(R):b(R,F)))var F=R,U=T}return U}},760:(f,v,d)=>{var _=d(9881);f.exports=function(p,x){var b=[];return _(p,function(A,O,T){x(A,O,T)&&b.push(A)}),b}},1848:f=>{f.exports=function(v,d,_,p){for(var x=v.length,b=_+(p?1:-1);p?b--:++b<x;)if(d(v[b],b,v))return b;return-1}},1078:(f,v,d)=>{var _=d(2488),p=d(7285);f.exports=function x(b,A,O,T,R){var F=-1,U=b.length;for(O||(O=p),R||(R=[]);++F<U;){var q=b[F];A>0&&O(q)?A>1?x(q,A-1,O,T,R):_(R,q):T||(R[R.length]=q)}return R}},8483:(f,v,d)=>{var _=d(5063)();f.exports=_},7816:(f,v,d)=>{var _=d(8483),p=d(3674);f.exports=function(x,b){return x&&_(x,b,p)}},7786:(f,v,d)=>{var _=d(1811),p=d(327);f.exports=function(x,b){for(var A=0,O=(b=_(b,x)).length;x!=null&&A<O;)x=x[p(b[A++])];return A&&A==O?x:void 0}},8866:(f,v,d)=>{var _=d(2488),p=d(1469);f.exports=function(x,b,A){var O=b(x);return p(x)?O:_(O,A(x))}},4239:(f,v,d)=>{var _=d(2705),p=d(9607),x=d(2333),b=_?_.toStringTag:void 0;f.exports=function(A){return A==null?A===void 0?"[object Undefined]":"[object Null]":b&&b in Object(A)?p(A):x(A)}},3325:f=>{f.exports=function(v,d){return v>d}},8565:f=>{var v=Object.prototype.hasOwnProperty;f.exports=function(d,_){return d!=null&&v.call(d,_)}},13:f=>{f.exports=function(v,d){return v!=null&&d in Object(v)}},2118:(f,v,d)=>{var _=d(1848),p=d(2722),x=d(2351);f.exports=function(b,A,O){return A==A?x(b,A,O):_(b,p,O)}},9454:(f,v,d)=>{var _=d(4239),p=d(7005);f.exports=function(x){return p(x)&&_(x)=="[object Arguments]"}},939:(f,v,d)=>{var _=d(2492),p=d(7005);f.exports=function x(b,A,O,T,R){return b===A||(b==null||A==null||!p(b)&&!p(A)?b!=b&&A!=A:_(b,A,O,T,x,R))}},2492:(f,v,d)=>{var _=d(6384),p=d(7114),x=d(8351),b=d(6096),A=d(4160),O=d(1469),T=d(4144),R=d(6719),F="[object Arguments]",U="[object Array]",q="[object Object]",Q=Object.prototype.hasOwnProperty;f.exports=function(nt,ft,J,bt,ot,st){var vt=O(nt),Ut=O(ft),St=vt?U:A(nt),_t=Ut?U:A(ft),It=(St=St==F?q:St)==q,wt=(_t=_t==F?q:_t)==q,yt=St==_t;if(yt&&T(nt)){if(!T(ft))return!1;vt=!0,It=!1}if(yt&&!It)return st||(st=new _),vt||R(nt)?p(nt,ft,J,bt,ot,st):x(nt,ft,St,J,bt,ot,st);if(!(1&J)){var rt=It&&Q.call(nt,"__wrapped__"),pt=wt&&Q.call(ft,"__wrapped__");if(rt||pt){var W=rt?nt.value():nt,kt=pt?ft.value():ft;return st||(st=new _),ot(W,kt,J,bt,st)}}return!!yt&&(st||(st=new _),b(nt,ft,J,bt,ot,st))}},5588:(f,v,d)=>{var _=d(4160),p=d(7005);f.exports=function(x){return p(x)&&_(x)=="[object Map]"}},2958:(f,v,d)=>{var _=d(6384),p=d(939);f.exports=function(x,b,A,O){var T=A.length,R=T,F=!O;if(x==null)return!R;for(x=Object(x);T--;){var U=A[T];if(F&&U[2]?U[1]!==x[U[0]]:!(U[0]in x))return!1}for(;++T<R;){var q=(U=A[T])[0],Q=x[q],nt=U[1];if(F&&U[2]){if(Q===void 0&&!(q in x))return!1}else{var ft=new _;if(O)var J=O(Q,nt,q,x,b,ft);if(!(J===void 0?p(nt,Q,3,O,ft):J))return!1}}return!0}},2722:f=>{f.exports=function(v){return v!=v}},8458:(f,v,d)=>{var _=d(3560),p=d(5346),x=d(3218),b=d(346),A=/^\[object .+?Constructor\]$/,O=Function.prototype,T=Object.prototype,R=O.toString,F=T.hasOwnProperty,U=RegExp("^"+R.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");f.exports=function(q){return!(!x(q)||p(q))&&(_(q)?U:A).test(b(q))}},9221:(f,v,d)=>{var _=d(4160),p=d(7005);f.exports=function(x){return p(x)&&_(x)=="[object Set]"}},8749:(f,v,d)=>{var _=d(4239),p=d(1780),x=d(7005),b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b["[object Arguments]"]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b["[object Function]"]=b["[object Map]"]=b["[object Number]"]=b["[object Object]"]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1,f.exports=function(A){return x(A)&&p(A.length)&&!!b[_(A)]}},7206:(f,v,d)=>{var _=d(1573),p=d(6432),x=d(6557),b=d(1469),A=d(9601);f.exports=function(O){return typeof O=="function"?O:O==null?x:typeof O=="object"?b(O)?p(O[0],O[1]):_(O):A(O)}},280:(f,v,d)=>{var _=d(5726),p=d(6916),x=Object.prototype.hasOwnProperty;f.exports=function(b){if(!_(b))return p(b);var A=[];for(var O in Object(b))x.call(b,O)&&O!="constructor"&&A.push(O);return A}},313:(f,v,d)=>{var _=d(3218),p=d(5726),x=d(3498),b=Object.prototype.hasOwnProperty;f.exports=function(A){if(!_(A))return x(A);var O=p(A),T=[];for(var R in A)(R!="constructor"||!O&&b.call(A,R))&&T.push(R);return T}},433:f=>{f.exports=function(v,d){return v<d}},9199:(f,v,d)=>{var _=d(9881),p=d(8612);f.exports=function(x,b){var A=-1,O=p(x)?Array(x.length):[];return _(x,function(T,R,F){O[++A]=b(T,R,F)}),O}},1573:(f,v,d)=>{var _=d(2958),p=d(1499),x=d(2634);f.exports=function(b){var A=p(b);return A.length==1&&A[0][2]?x(A[0][0],A[0][1]):function(O){return O===b||_(O,b,A)}}},6432:(f,v,d)=>{var _=d(939),p=d(7361),x=d(9095),b=d(5403),A=d(9162),O=d(2634),T=d(327);f.exports=function(R,F){return b(R)&&A(F)?O(T(R),F):function(U){var q=p(U,R);return q===void 0&&q===F?x(U,R):_(F,q,3)}}},2980:(f,v,d)=>{var _=d(6384),p=d(6556),x=d(8483),b=d(9783),A=d(3218),O=d(1704),T=d(6390);f.exports=function R(F,U,q,Q,nt){F!==U&&x(U,function(ft,J){if(nt||(nt=new _),A(ft))b(F,U,J,q,R,Q,nt);else{var bt=Q?Q(T(F,J),ft,J+"",F,U,nt):void 0;bt===void 0&&(bt=ft),p(F,J,bt)}},O)}},9783:(f,v,d)=>{var _=d(6556),p=d(4626),x=d(7133),b=d(278),A=d(8517),O=d(5694),T=d(1469),R=d(9246),F=d(4144),U=d(3560),q=d(3218),Q=d(8630),nt=d(6719),ft=d(6390),J=d(3678);f.exports=function(bt,ot,st,vt,Ut,St,_t){var It=ft(bt,st),wt=ft(ot,st),yt=_t.get(wt);if(yt)_(bt,st,yt);else{var rt=St?St(It,wt,st+"",bt,ot,_t):void 0,pt=rt===void 0;if(pt){var W=T(wt),kt=!W&&F(wt),G=!W&&!kt&&nt(wt);rt=wt,W||kt||G?T(It)?rt=It:R(It)?rt=b(It):kt?(pt=!1,rt=p(wt,!0)):G?(pt=!1,rt=x(wt,!0)):rt=[]:Q(wt)||O(wt)?(rt=It,O(It)?rt=J(It):q(It)&&!U(It)||(rt=A(wt))):pt=!1}pt&&(_t.set(wt,rt),Ut(rt,wt,vt,St,_t),_t.delete(wt)),_(bt,st,rt)}}},9556:(f,v,d)=>{var _=d(9932),p=d(7786),x=d(7206),b=d(9199),A=d(1131),O=d(1717),T=d(5022),R=d(6557),F=d(1469);f.exports=function(U,q,Q){q=q.length?_(q,function(J){return F(J)?function(bt){return p(bt,J.length===1?J[0]:J)}:J}):[R];var nt=-1;q=_(q,O(x));var ft=b(U,function(J,bt,ot){return{criteria:_(q,function(st){return st(J)}),index:++nt,value:J}});return A(ft,function(J,bt){return T(J,bt,Q)})}},5970:(f,v,d)=>{var _=d(3012),p=d(9095);f.exports=function(x,b){return _(x,b,function(A,O){return p(x,O)})}},3012:(f,v,d)=>{var _=d(7786),p=d(611),x=d(1811);f.exports=function(b,A,O){for(var T=-1,R=A.length,F={};++T<R;){var U=A[T],q=_(b,U);O(q,U)&&p(F,x(U,b),q)}return F}},371:f=>{f.exports=function(v){return function(d){return d==null?void 0:d[v]}}},9152:(f,v,d)=>{var _=d(7786);f.exports=function(p){return function(x){return _(x,p)}}},98:f=>{var v=Math.ceil,d=Math.max;f.exports=function(_,p,x,b){for(var A=-1,O=d(v((p-_)/(x||1)),0),T=Array(O);O--;)T[b?O:++A]=_,_+=x;return T}},107:f=>{f.exports=function(v,d,_,p,x){return x(v,function(b,A,O){_=p?(p=!1,b):d(_,b,A,O)}),_}},5976:(f,v,d)=>{var _=d(6557),p=d(5357),x=d(61);f.exports=function(b,A){return x(p(b,A,_),b+"")}},611:(f,v,d)=>{var _=d(4865),p=d(1811),x=d(5776),b=d(3218),A=d(327);f.exports=function(O,T,R,F){if(!b(O))return O;for(var U=-1,q=(T=p(T,O)).length,Q=q-1,nt=O;nt!=null&&++U<q;){var ft=A(T[U]),J=R;if(ft==="__proto__"||ft==="constructor"||ft==="prototype")return O;if(U!=Q){var bt=nt[ft];(J=F?F(bt,ft,nt):void 0)===void 0&&(J=b(bt)?bt:x(T[U+1])?[]:{})}_(nt,ft,J),nt=nt[ft]}return O}},6560:(f,v,d)=>{var _=d(5703),p=d(8777),x=d(6557),b=p?function(A,O){return p(A,"toString",{configurable:!0,enumerable:!1,value:_(O),writable:!0})}:x;f.exports=b},1131:f=>{f.exports=function(v,d){var _=v.length;for(v.sort(d);_--;)v[_]=v[_].value;return v}},2545:f=>{f.exports=function(v,d){for(var _=-1,p=Array(v);++_<v;)p[_]=d(_);return p}},531:(f,v,d)=>{var _=d(2705),p=d(9932),x=d(1469),b=d(3448),A=_?_.prototype:void 0,O=A?A.toString:void 0;f.exports=function T(R){if(typeof R=="string")return R;if(x(R))return p(R,T)+"";if(b(R))return O?O.call(R):"";var F=R+"";return F=="0"&&1/R==-1/0?"-0":F}},7561:(f,v,d)=>{var _=d(7990),p=/^\s+/;f.exports=function(x){return x&&x.slice(0,_(x)+1).replace(p,"")}},1717:f=>{f.exports=function(v){return function(d){return v(d)}}},5652:(f,v,d)=>{var _=d(8668),p=d(7443),x=d(1196),b=d(4757),A=d(3593),O=d(1814);f.exports=function(T,R,F){var U=-1,q=p,Q=T.length,nt=!0,ft=[],J=ft;if(F)nt=!1,q=x;else if(Q>=200){var bt=R?null:A(T);if(bt)return O(bt);nt=!1,q=b,J=new _}else J=R?[]:ft;t:for(;++U<Q;){var ot=T[U],st=R?R(ot):ot;if(ot=F||ot!==0?ot:0,nt&&st==st){for(var vt=J.length;vt--;)if(J[vt]===st)continue t;R&&J.push(st),ft.push(ot)}else q(J,st,F)||(J!==ft&&J.push(st),ft.push(ot))}return ft}},7415:(f,v,d)=>{var _=d(9932);f.exports=function(p,x){return _(x,function(b){return p[b]})}},1757:f=>{f.exports=function(v,d,_){for(var p=-1,x=v.length,b=d.length,A={};++p<x;){var O=p<b?d[p]:void 0;_(A,v[p],O)}return A}},4757:f=>{f.exports=function(v,d){return v.has(d)}},4290:(f,v,d)=>{var _=d(6557);f.exports=function(p){return typeof p=="function"?p:_}},1811:(f,v,d)=>{var _=d(1469),p=d(5403),x=d(5514),b=d(9833);f.exports=function(A,O){return _(A)?A:p(A,O)?[A]:x(b(A))}},4318:(f,v,d)=>{var _=d(1149);f.exports=function(p){var x=new p.constructor(p.byteLength);return new _(x).set(new _(p)),x}},4626:(f,v,d)=>{f=d.nmd(f);var _=d(5639),p=v&&!v.nodeType&&v,x=p&&f&&!f.nodeType&&f,b=x&&x.exports===p?_.Buffer:void 0,A=b?b.allocUnsafe:void 0;f.exports=function(O,T){if(T)return O.slice();var R=O.length,F=A?A(R):new O.constructor(R);return O.copy(F),F}},7157:(f,v,d)=>{var _=d(4318);f.exports=function(p,x){var b=x?_(p.buffer):p.buffer;return new p.constructor(b,p.byteOffset,p.byteLength)}},3147:f=>{var v=/\w*$/;f.exports=function(d){var _=new d.constructor(d.source,v.exec(d));return _.lastIndex=d.lastIndex,_}},419:(f,v,d)=>{var _=d(2705),p=_?_.prototype:void 0,x=p?p.valueOf:void 0;f.exports=function(b){return x?Object(x.call(b)):{}}},7133:(f,v,d)=>{var _=d(4318);f.exports=function(p,x){var b=x?_(p.buffer):p.buffer;return new p.constructor(b,p.byteOffset,p.length)}},6393:(f,v,d)=>{var _=d(3448);f.exports=function(p,x){if(p!==x){var b=p!==void 0,A=p===null,O=p==p,T=_(p),R=x!==void 0,F=x===null,U=x==x,q=_(x);if(!F&&!q&&!T&&p>x||T&&R&&U&&!F&&!q||A&&R&&U||!b&&U||!O)return 1;if(!A&&!T&&!q&&p<x||q&&b&&O&&!A&&!T||F&&b&&O||!R&&O||!U)return-1}return 0}},5022:(f,v,d)=>{var _=d(6393);f.exports=function(p,x,b){for(var A=-1,O=p.criteria,T=x.criteria,R=O.length,F=b.length;++A<R;){var U=_(O[A],T[A]);if(U)return A>=F?U:U*(b[A]=="desc"?-1:1)}return p.index-x.index}},278:f=>{f.exports=function(v,d){var _=-1,p=v.length;for(d||(d=Array(p));++_<p;)d[_]=v[_];return d}},8363:(f,v,d)=>{var _=d(4865),p=d(9465);f.exports=function(x,b,A,O){var T=!A;A||(A={});for(var R=-1,F=b.length;++R<F;){var U=b[R],q=O?O(A[U],x[U],U,A,x):void 0;q===void 0&&(q=x[U]),T?p(A,U,q):_(A,U,q)}return A}},8805:(f,v,d)=>{var _=d(8363),p=d(9551);f.exports=function(x,b){return _(x,p(x),b)}},1911:(f,v,d)=>{var _=d(8363),p=d(1442);f.exports=function(x,b){return _(x,p(x),b)}},4429:(f,v,d)=>{var _=d(5639)["__core-js_shared__"];f.exports=_},1463:(f,v,d)=>{var _=d(5976),p=d(6612);f.exports=function(x){return _(function(b,A){var O=-1,T=A.length,R=T>1?A[T-1]:void 0,F=T>2?A[2]:void 0;for(R=x.length>3&&typeof R=="function"?(T--,R):void 0,F&&p(A[0],A[1],F)&&(R=T<3?void 0:R,T=1),b=Object(b);++O<T;){var U=A[O];U&&x(b,U,O,R)}return b})}},9291:(f,v,d)=>{var _=d(8612);f.exports=function(p,x){return function(b,A){if(b==null)return b;if(!_(b))return p(b,A);for(var O=b.length,T=x?O:-1,R=Object(b);(x?T--:++T<O)&&A(R[T],T,R)!==!1;);return b}}},5063:f=>{f.exports=function(v){return function(d,_,p){for(var x=-1,b=Object(d),A=p(d),O=A.length;O--;){var T=A[v?O:++x];if(_(b[T],T,b)===!1)break}return d}}},7740:(f,v,d)=>{var _=d(7206),p=d(8612),x=d(3674);f.exports=function(b){return function(A,O,T){var R=Object(A);if(!p(A)){var F=_(O,3);A=x(A),O=function(q){return F(R[q],q,R)}}var U=b(A,O,T);return U>-1?R[F?A[U]:U]:void 0}}},7445:(f,v,d)=>{var _=d(98),p=d(6612),x=d(8601);f.exports=function(b){return function(A,O,T){return T&&typeof T!="number"&&p(A,O,T)&&(O=T=void 0),A=x(A),O===void 0?(O=A,A=0):O=x(O),T=T===void 0?A<O?1:-1:x(T),_(A,O,T,b)}}},3593:(f,v,d)=>{var _=d(8525),p=d(308),x=d(1814),b=_&&1/x(new _([,-0]))[1]==1/0?function(A){return new _(A)}:p;f.exports=b},8777:(f,v,d)=>{var _=d(852),p=function(){try{var x=_(Object,"defineProperty");return x({},"",{}),x}catch{}}();f.exports=p},7114:(f,v,d)=>{var _=d(8668),p=d(2908),x=d(4757);f.exports=function(b,A,O,T,R,F){var U=1&O,q=b.length,Q=A.length;if(q!=Q&&!(U&&Q>q))return!1;var nt=F.get(b),ft=F.get(A);if(nt&&ft)return nt==A&&ft==b;var J=-1,bt=!0,ot=2&O?new _:void 0;for(F.set(b,A),F.set(A,b);++J<q;){var st=b[J],vt=A[J];if(T)var Ut=U?T(vt,st,J,A,b,F):T(st,vt,J,b,A,F);if(Ut!==void 0){if(Ut)continue;bt=!1;break}if(ot){if(!p(A,function(St,_t){if(!x(ot,_t)&&(st===St||R(st,St,O,T,F)))return ot.push(_t)})){bt=!1;break}}else if(st!==vt&&!R(st,vt,O,T,F)){bt=!1;break}}return F.delete(b),F.delete(A),bt}},8351:(f,v,d)=>{var _=d(2705),p=d(1149),x=d(7813),b=d(7114),A=d(8776),O=d(1814),T=_?_.prototype:void 0,R=T?T.valueOf:void 0;f.exports=function(F,U,q,Q,nt,ft,J){switch(q){case"[object DataView]":if(F.byteLength!=U.byteLength||F.byteOffset!=U.byteOffset)return!1;F=F.buffer,U=U.buffer;case"[object ArrayBuffer]":return!(F.byteLength!=U.byteLength||!ft(new p(F),new p(U)));case"[object Boolean]":case"[object Date]":case"[object Number]":return x(+F,+U);case"[object Error]":return F.name==U.name&&F.message==U.message;case"[object RegExp]":case"[object String]":return F==U+"";case"[object Map]":var bt=A;case"[object Set]":var ot=1&Q;if(bt||(bt=O),F.size!=U.size&&!ot)return!1;var st=J.get(F);if(st)return st==U;Q|=2,J.set(F,U);var vt=b(bt(F),bt(U),Q,nt,ft,J);return J.delete(F),vt;case"[object Symbol]":if(R)return R.call(F)==R.call(U)}return!1}},6096:(f,v,d)=>{var _=d(8234),p=Object.prototype.hasOwnProperty;f.exports=function(x,b,A,O,T,R){var F=1&A,U=_(x),q=U.length;if(q!=_(b).length&&!F)return!1;for(var Q=q;Q--;){var nt=U[Q];if(!(F?nt in b:p.call(b,nt)))return!1}var ft=R.get(x),J=R.get(b);if(ft&&J)return ft==b&&J==x;var bt=!0;R.set(x,b),R.set(b,x);for(var ot=F;++Q<q;){var st=x[nt=U[Q]],vt=b[nt];if(O)var Ut=F?O(vt,st,nt,b,x,R):O(st,vt,nt,x,b,R);if(!(Ut===void 0?st===vt||T(st,vt,A,O,R):Ut)){bt=!1;break}ot||(ot=nt=="constructor")}if(bt&&!ot){var St=x.constructor,_t=b.constructor;St==_t||!("constructor"in x)||!("constructor"in b)||typeof St=="function"&&St instanceof St&&typeof _t=="function"&&_t instanceof _t||(bt=!1)}return R.delete(x),R.delete(b),bt}},9021:(f,v,d)=>{var _=d(5564),p=d(5357),x=d(61);f.exports=function(b){return x(p(b,void 0,_),b+"")}},1957:(f,v,d)=>{var _=typeof d.g=="object"&&d.g&&d.g.Object===Object&&d.g;f.exports=_},8234:(f,v,d)=>{var _=d(8866),p=d(9551),x=d(3674);f.exports=function(b){return _(b,x,p)}},6904:(f,v,d)=>{var _=d(8866),p=d(1442),x=d(1704);f.exports=function(b){return _(b,x,p)}},5050:(f,v,d)=>{var _=d(7019);f.exports=function(p,x){var b=p.__data__;return _(x)?b[typeof x=="string"?"string":"hash"]:b.map}},1499:(f,v,d)=>{var _=d(9162),p=d(3674);f.exports=function(x){for(var b=p(x),A=b.length;A--;){var O=b[A],T=x[O];b[A]=[O,T,_(T)]}return b}},852:(f,v,d)=>{var _=d(8458),p=d(7801);f.exports=function(x,b){var A=p(x,b);return _(A)?A:void 0}},5924:(f,v,d)=>{var _=d(5569)(Object.getPrototypeOf,Object);f.exports=_},9607:(f,v,d)=>{var _=d(2705),p=Object.prototype,x=p.hasOwnProperty,b=p.toString,A=_?_.toStringTag:void 0;f.exports=function(O){var T=x.call(O,A),R=O[A];try{O[A]=void 0;var F=!0}catch{}var U=b.call(O);return F&&(T?O[A]=R:delete O[A]),U}},9551:(f,v,d)=>{var _=d(4963),p=d(479),x=Object.prototype.propertyIsEnumerable,b=Object.getOwnPropertySymbols,A=b?function(O){return O==null?[]:(O=Object(O),_(b(O),function(T){return x.call(O,T)}))}:p;f.exports=A},1442:(f,v,d)=>{var _=d(2488),p=d(5924),x=d(9551),b=d(479),A=Object.getOwnPropertySymbols?function(O){for(var T=[];O;)_(T,x(O)),O=p(O);return T}:b;f.exports=A},4160:(f,v,d)=>{var _=d(8552),p=d(7071),x=d(3818),b=d(8525),A=d(577),O=d(4239),T=d(346),R="[object Map]",F="[object Promise]",U="[object Set]",q="[object WeakMap]",Q="[object DataView]",nt=T(_),ft=T(p),J=T(x),bt=T(b),ot=T(A),st=O;(_&&st(new _(new ArrayBuffer(1)))!=Q||p&&st(new p)!=R||x&&st(x.resolve())!=F||b&&st(new b)!=U||A&&st(new A)!=q)&&(st=function(vt){var Ut=O(vt),St=Ut=="[object Object]"?vt.constructor:void 0,_t=St?T(St):"";if(_t)switch(_t){case nt:return Q;case ft:return R;case J:return F;case bt:return U;case ot:return q}return Ut}),f.exports=st},7801:f=>{f.exports=function(v,d){return v==null?void 0:v[d]}},222:(f,v,d)=>{var _=d(1811),p=d(5694),x=d(1469),b=d(5776),A=d(1780),O=d(327);f.exports=function(T,R,F){for(var U=-1,q=(R=_(R,T)).length,Q=!1;++U<q;){var nt=O(R[U]);if(!(Q=T!=null&&F(T,nt)))break;T=T[nt]}return Q||++U!=q?Q:!!(q=T==null?0:T.length)&&A(q)&&b(nt,q)&&(x(T)||p(T))}},2689:f=>{var v=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");f.exports=function(d){return v.test(d)}},1789:(f,v,d)=>{var _=d(4536);f.exports=function(){this.__data__=_?_(null):{},this.size=0}},401:f=>{f.exports=function(v){var d=this.has(v)&&delete this.__data__[v];return this.size-=d?1:0,d}},7667:(f,v,d)=>{var _=d(4536),p=Object.prototype.hasOwnProperty;f.exports=function(x){var b=this.__data__;if(_){var A=b[x];return A==="__lodash_hash_undefined__"?void 0:A}return p.call(b,x)?b[x]:void 0}},1327:(f,v,d)=>{var _=d(4536),p=Object.prototype.hasOwnProperty;f.exports=function(x){var b=this.__data__;return _?b[x]!==void 0:p.call(b,x)}},1866:(f,v,d)=>{var _=d(4536);f.exports=function(p,x){var b=this.__data__;return this.size+=this.has(p)?0:1,b[p]=_&&x===void 0?"__lodash_hash_undefined__":x,this}},3824:f=>{var v=Object.prototype.hasOwnProperty;f.exports=function(d){var _=d.length,p=new d.constructor(_);return _&&typeof d[0]=="string"&&v.call(d,"index")&&(p.index=d.index,p.input=d.input),p}},9148:(f,v,d)=>{var _=d(4318),p=d(7157),x=d(3147),b=d(419),A=d(7133);f.exports=function(O,T,R){var F=O.constructor;switch(T){case"[object ArrayBuffer]":return _(O);case"[object Boolean]":case"[object Date]":return new F(+O);case"[object DataView]":return p(O,R);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 A(O,R);case"[object Map]":case"[object Set]":return new F;case"[object Number]":case"[object String]":return new F(O);case"[object RegExp]":return x(O);case"[object Symbol]":return b(O)}}},8517:(f,v,d)=>{var _=d(3118),p=d(5924),x=d(5726);f.exports=function(b){return typeof b.constructor!="function"||x(b)?{}:_(p(b))}},7285:(f,v,d)=>{var _=d(2705),p=d(5694),x=d(1469),b=_?_.isConcatSpreadable:void 0;f.exports=function(A){return x(A)||p(A)||!!(b&&A&&A[b])}},5776:f=>{var v=/^(?:0|[1-9]\d*)$/;f.exports=function(d,_){var p=typeof d;return!!(_=_==null?9007199254740991:_)&&(p=="number"||p!="symbol"&&v.test(d))&&d>-1&&d%1==0&&d<_}},6612:(f,v,d)=>{var _=d(7813),p=d(8612),x=d(5776),b=d(3218);f.exports=function(A,O,T){if(!b(T))return!1;var R=typeof O;return!!(R=="number"?p(T)&&x(O,T.length):R=="string"&&O in T)&&_(T[O],A)}},5403:(f,v,d)=>{var _=d(1469),p=d(3448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b=/^\w*$/;f.exports=function(A,O){if(_(A))return!1;var T=typeof A;return!(T!="number"&&T!="symbol"&&T!="boolean"&&A!=null&&!p(A))||b.test(A)||!x.test(A)||O!=null&&A in Object(O)}},7019:f=>{f.exports=function(v){var d=typeof v;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?v!=="__proto__":v===null}},5346:(f,v,d)=>{var _,p=d(4429),x=(_=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"";f.exports=function(b){return!!x&&x in b}},5726:f=>{var v=Object.prototype;f.exports=function(d){var _=d&&d.constructor;return d===(typeof _=="function"&&_.prototype||v)}},9162:(f,v,d)=>{var _=d(3218);f.exports=function(p){return p==p&&!_(p)}},7040:f=>{f.exports=function(){this.__data__=[],this.size=0}},4125:(f,v,d)=>{var _=d(8470),p=Array.prototype.splice;f.exports=function(x){var b=this.__data__,A=_(b,x);return!(A<0||(A==b.length-1?b.pop():p.call(b,A,1),--this.size,0))}},2117:(f,v,d)=>{var _=d(8470);f.exports=function(p){var x=this.__data__,b=_(x,p);return b<0?void 0:x[b][1]}},7518:(f,v,d)=>{var _=d(8470);f.exports=function(p){return _(this.__data__,p)>-1}},4705:(f,v,d)=>{var _=d(8470);f.exports=function(p,x){var b=this.__data__,A=_(b,p);return A<0?(++this.size,b.push([p,x])):b[A][1]=x,this}},4785:(f,v,d)=>{var _=d(1989),p=d(8407),x=d(7071);f.exports=function(){this.size=0,this.__data__={hash:new _,map:new(x||p),string:new _}}},1285:(f,v,d)=>{var _=d(5050);f.exports=function(p){var x=_(this,p).delete(p);return this.size-=x?1:0,x}},6e3:(f,v,d)=>{var _=d(5050);f.exports=function(p){return _(this,p).get(p)}},9916:(f,v,d)=>{var _=d(5050);f.exports=function(p){return _(this,p).has(p)}},5265:(f,v,d)=>{var _=d(5050);f.exports=function(p,x){var b=_(this,p),A=b.size;return b.set(p,x),this.size+=b.size==A?0:1,this}},8776:f=>{f.exports=function(v){var d=-1,_=Array(v.size);return v.forEach(function(p,x){_[++d]=[x,p]}),_}},2634:f=>{f.exports=function(v,d){return function(_){return _!=null&&_[v]===d&&(d!==void 0||v in Object(_))}}},4523:(f,v,d)=>{var _=d(8306);f.exports=function(p){var x=_(p,function(A){return b.size===500&&b.clear(),A}),b=x.cache;return x}},4536:(f,v,d)=>{var _=d(852)(Object,"create");f.exports=_},6916:(f,v,d)=>{var _=d(5569)(Object.keys,Object);f.exports=_},3498:f=>{f.exports=function(v){var d=[];if(v!=null)for(var _ in Object(v))d.push(_);return d}},1167:(f,v,d)=>{f=d.nmd(f);var _=d(1957),p=v&&!v.nodeType&&v,x=p&&f&&!f.nodeType&&f,b=x&&x.exports===p&&_.process,A=function(){try{return x&&x.require&&x.require("util").types||b&&b.binding&&b.binding("util")}catch{}}();f.exports=A},2333:f=>{var v=Object.prototype.toString;f.exports=function(d){return v.call(d)}},5569:f=>{f.exports=function(v,d){return function(_){return v(d(_))}}},5357:(f,v,d)=>{var _=d(6874),p=Math.max;f.exports=function(x,b,A){return b=p(b===void 0?x.length-1:b,0),function(){for(var O=arguments,T=-1,R=p(O.length-b,0),F=Array(R);++T<R;)F[T]=O[b+T];T=-1;for(var U=Array(b+1);++T<b;)U[T]=O[T];return U[b]=A(F),_(x,this,U)}}},5639:(f,v,d)=>{var _=d(1957),p=typeof self=="object"&&self&&self.Object===Object&&self,x=_||p||Function("return this")();f.exports=x},6390:f=>{f.exports=function(v,d){if((d!=="constructor"||typeof v[d]!="function")&&d!="__proto__")return v[d]}},619:f=>{f.exports=function(v){return this.__data__.set(v,"__lodash_hash_undefined__"),this}},2385:f=>{f.exports=function(v){return this.__data__.has(v)}},1814:f=>{f.exports=function(v){var d=-1,_=Array(v.size);return v.forEach(function(p){_[++d]=p}),_}},61:(f,v,d)=>{var _=d(6560),p=d(1275)(_);f.exports=p},1275:f=>{var v=Date.now;f.exports=function(d){var _=0,p=0;return function(){var x=v(),b=16-(x-p);if(p=x,b>0){if(++_>=800)return arguments[0]}else _=0;return d.apply(void 0,arguments)}}},7465:(f,v,d)=>{var _=d(8407);f.exports=function(){this.__data__=new _,this.size=0}},3779:f=>{f.exports=function(v){var d=this.__data__,_=d.delete(v);return this.size=d.size,_}},7599:f=>{f.exports=function(v){return this.__data__.get(v)}},4758:f=>{f.exports=function(v){return this.__data__.has(v)}},4309:(f,v,d)=>{var _=d(8407),p=d(7071),x=d(3369);f.exports=function(b,A){var O=this.__data__;if(O instanceof _){var T=O.__data__;if(!p||T.length<199)return T.push([b,A]),this.size=++O.size,this;O=this.__data__=new x(T)}return O.set(b,A),this.size=O.size,this}},2351:f=>{f.exports=function(v,d,_){for(var p=_-1,x=v.length;++p<x;)if(v[p]===d)return p;return-1}},8016:(f,v,d)=>{var _=d(8983),p=d(2689),x=d(1903);f.exports=function(b){return p(b)?x(b):_(b)}},5514:(f,v,d)=>{var _=d(4523),p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,b=_(function(A){var O=[];return A.charCodeAt(0)===46&&O.push(""),A.replace(p,function(T,R,F,U){O.push(F?U.replace(x,"$1"):R||T)}),O});f.exports=b},327:(f,v,d)=>{var _=d(3448);f.exports=function(p){if(typeof p=="string"||_(p))return p;var x=p+"";return x=="0"&&1/p==-1/0?"-0":x}},346:f=>{var v=Function.prototype.toString;f.exports=function(d){if(d!=null){try{return v.call(d)}catch{}try{return d+""}catch{}}return""}},7990:f=>{var v=/\s/;f.exports=function(d){for(var _=d.length;_--&&v.test(d.charAt(_)););return _}},1903:f=>{var v="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",d="\\ud83c[\\udffb-\\udfff]",_="[^\\ud800-\\udfff]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",x="[\\ud800-\\udbff][\\udc00-\\udfff]",b="(?:"+v+"|"+d+")?",A="[\\ufe0e\\ufe0f]?",O=A+b+"(?:\\u200d(?:"+[_,p,x].join("|")+")"+A+b+")*",T="(?:"+[_+v+"?",v,p,x,"[\\ud800-\\udfff]"].join("|")+")",R=RegExp(d+"(?="+d+")|"+T+O,"g");f.exports=function(F){for(var U=R.lastIndex=0;R.test(F);)++U;return U}},6678:(f,v,d)=>{var _=d(5990);f.exports=function(p){return _(p,4)}},361:(f,v,d)=>{var _=d(5990);f.exports=function(p){return _(p,5)}},5703:f=>{f.exports=function(v){return function(){return v}}},1747:(f,v,d)=>{var _=d(5976),p=d(7813),x=d(6612),b=d(1704),A=Object.prototype,O=A.hasOwnProperty,T=_(function(R,F){R=Object(R);var U=-1,q=F.length,Q=q>2?F[2]:void 0;for(Q&&x(F[0],F[1],Q)&&(q=1);++U<q;)for(var nt=F[U],ft=b(nt),J=-1,bt=ft.length;++J<bt;){var ot=ft[J],st=R[ot];(st===void 0||p(st,A[ot])&&!O.call(R,ot))&&(R[ot]=nt[ot])}return R});f.exports=T},6073:(f,v,d)=>{f.exports=d(4486)},7813:f=>{f.exports=function(v,d){return v===d||v!=v&&d!=d}},3105:(f,v,d)=>{var _=d(4963),p=d(760),x=d(7206),b=d(1469);f.exports=function(A,O){return(b(A)?_:p)(A,x(O,3))}},3311:(f,v,d)=>{var _=d(7740)(d(998));f.exports=_},998:(f,v,d)=>{var _=d(1848),p=d(7206),x=d(554),b=Math.max;f.exports=function(A,O,T){var R=A==null?0:A.length;if(!R)return-1;var F=T==null?0:x(T);return F<0&&(F=b(R+F,0)),_(A,p(O,3),F)}},5564:(f,v,d)=>{var _=d(1078);f.exports=function(p){return p!=null&&p.length?_(p,1):[]}},4486:(f,v,d)=>{var _=d(7412),p=d(9881),x=d(4290),b=d(1469);f.exports=function(A,O){return(b(A)?_:p)(A,x(O))}},2620:(f,v,d)=>{var _=d(8483),p=d(4290),x=d(1704);f.exports=function(b,A){return b==null?b:_(b,p(A),x)}},7361:(f,v,d)=>{var _=d(7786);f.exports=function(p,x,b){var A=p==null?void 0:_(p,x);return A===void 0?b:A}},8721:(f,v,d)=>{var _=d(8565),p=d(222);f.exports=function(x,b){return x!=null&&p(x,b,_)}},9095:(f,v,d)=>{var _=d(13),p=d(222);f.exports=function(x,b){return x!=null&&p(x,b,_)}},6557:f=>{f.exports=function(v){return v}},5694:(f,v,d)=>{var _=d(9454),p=d(7005),x=Object.prototype,b=x.hasOwnProperty,A=x.propertyIsEnumerable,O=_(function(){return arguments}())?_:function(T){return p(T)&&b.call(T,"callee")&&!A.call(T,"callee")};f.exports=O},1469:f=>{var v=Array.isArray;f.exports=v},8612:(f,v,d)=>{var _=d(3560),p=d(1780);f.exports=function(x){return x!=null&&p(x.length)&&!_(x)}},9246:(f,v,d)=>{var _=d(8612),p=d(7005);f.exports=function(x){return p(x)&&_(x)}},4144:(f,v,d)=>{f=d.nmd(f);var _=d(5639),p=d(5062),x=v&&!v.nodeType&&v,b=x&&f&&!f.nodeType&&f,A=b&&b.exports===x?_.Buffer:void 0,O=(A?A.isBuffer:void 0)||p;f.exports=O},1609:(f,v,d)=>{var _=d(280),p=d(4160),x=d(5694),b=d(1469),A=d(8612),O=d(4144),T=d(5726),R=d(6719),F=Object.prototype.hasOwnProperty;f.exports=function(U){if(U==null)return!0;if(A(U)&&(b(U)||typeof U=="string"||typeof U.splice=="function"||O(U)||R(U)||x(U)))return!U.length;var q=p(U);if(q=="[object Map]"||q=="[object Set]")return!U.size;if(T(U))return!_(U).length;for(var Q in U)if(F.call(U,Q))return!1;return!0}},3560:(f,v,d)=>{var _=d(4239),p=d(3218);f.exports=function(x){if(!p(x))return!1;var b=_(x);return b=="[object Function]"||b=="[object GeneratorFunction]"||b=="[object AsyncFunction]"||b=="[object Proxy]"}},1780:f=>{f.exports=function(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=9007199254740991}},6688:(f,v,d)=>{var _=d(5588),p=d(1717),x=d(1167),b=x&&x.isMap,A=b?p(b):_;f.exports=A},3218:f=>{f.exports=function(v){var d=typeof v;return v!=null&&(d=="object"||d=="function")}},7005:f=>{f.exports=function(v){return v!=null&&typeof v=="object"}},8630:(f,v,d)=>{var _=d(4239),p=d(5924),x=d(7005),b=Function.prototype,A=Object.prototype,O=b.toString,T=A.hasOwnProperty,R=O.call(Object);f.exports=function(F){if(!x(F)||_(F)!="[object Object]")return!1;var U=p(F);if(U===null)return!0;var q=T.call(U,"constructor")&&U.constructor;return typeof q=="function"&&q instanceof q&&O.call(q)==R}},2928:(f,v,d)=>{var _=d(9221),p=d(1717),x=d(1167),b=x&&x.isSet,A=b?p(b):_;f.exports=A},7037:(f,v,d)=>{var _=d(4239),p=d(1469),x=d(7005);f.exports=function(b){return typeof b=="string"||!p(b)&&x(b)&&_(b)=="[object String]"}},3448:(f,v,d)=>{var _=d(4239),p=d(7005);f.exports=function(x){return typeof x=="symbol"||p(x)&&_(x)=="[object Symbol]"}},6719:(f,v,d)=>{var _=d(8749),p=d(1717),x=d(1167),b=x&&x.isTypedArray,A=b?p(b):_;f.exports=A},2353:f=>{f.exports=function(v){return v===void 0}},3674:(f,v,d)=>{var _=d(4636),p=d(280),x=d(8612);f.exports=function(b){return x(b)?_(b):p(b)}},1704:(f,v,d)=>{var _=d(4636),p=d(313),x=d(8612);f.exports=function(b){return x(b)?_(b,!0):p(b)}},928:f=>{f.exports=function(v){var d=v==null?0:v.length;return d?v[d-1]:void 0}},5161:(f,v,d)=>{var _=d(9932),p=d(7206),x=d(9199),b=d(1469);f.exports=function(A,O){return(b(A)?_:x)(A,p(O,3))}},6604:(f,v,d)=>{var _=d(9465),p=d(7816),x=d(7206);f.exports=function(b,A){var O={};return A=x(A,3),p(b,function(T,R,F){_(O,R,A(T,R,F))}),O}},6162:(f,v,d)=>{var _=d(6029),p=d(3325),x=d(6557);f.exports=function(b){return b&&b.length?_(b,x,p):void 0}},8306:(f,v,d)=>{var _=d(3369);function p(x,b){if(typeof x!="function"||b!=null&&typeof b!="function")throw new TypeError("Expected a function");var A=function(){var O=arguments,T=b?b.apply(this,O):O[0],R=A.cache;if(R.has(T))return R.get(T);var F=x.apply(this,O);return A.cache=R.set(T,F)||R,F};return A.cache=new(p.Cache||_),A}p.Cache=_,f.exports=p},3857:(f,v,d)=>{var _=d(2980),p=d(1463)(function(x,b,A){_(x,b,A)});f.exports=p},3632:(f,v,d)=>{var _=d(6029),p=d(433),x=d(6557);f.exports=function(b){return b&&b.length?_(b,x,p):void 0}},2762:(f,v,d)=>{var _=d(6029),p=d(7206),x=d(433);f.exports=function(b,A){return b&&b.length?_(b,p(A,2),x):void 0}},308:f=>{f.exports=function(){}},7771:(f,v,d)=>{var _=d(5639);f.exports=function(){return _.Date.now()}},9722:(f,v,d)=>{var _=d(5970),p=d(9021)(function(x,b){return x==null?{}:_(x,b)});f.exports=p},9601:(f,v,d)=>{var _=d(371),p=d(9152),x=d(5403),b=d(327);f.exports=function(A){return x(A)?_(b(A)):p(A)}},6026:(f,v,d)=>{var _=d(7445)();f.exports=_},4061:(f,v,d)=>{var _=d(2663),p=d(9881),x=d(7206),b=d(107),A=d(1469);f.exports=function(O,T,R){var F=A(O)?_:b,U=arguments.length<3;return F(O,x(T,4),R,U,p)}},4238:(f,v,d)=>{var _=d(280),p=d(4160),x=d(8612),b=d(7037),A=d(8016);f.exports=function(O){if(O==null)return 0;if(x(O))return b(O)?A(O):O.length;var T=p(O);return T=="[object Map]"||T=="[object Set]"?O.size:_(O).length}},9734:(f,v,d)=>{var _=d(1078),p=d(9556),x=d(5976),b=d(6612),A=x(function(O,T){if(O==null)return[];var R=T.length;return R>1&&b(O,T[0],T[1])?T=[]:R>2&&b(T[0],T[1],T[2])&&(T=[T[0]]),p(O,_(T,1),[])});f.exports=A},479:f=>{f.exports=function(){return[]}},5062:f=>{f.exports=function(){return!1}},8601:(f,v,d)=>{var _=d(4841);f.exports=function(p){return p?(p=_(p))===1/0||p===-1/0?17976931348623157e292*(p<0?-1:1):p==p?p:0:p===0?p:0}},554:(f,v,d)=>{var _=d(8601);f.exports=function(p){var x=_(p),b=x%1;return x==x?b?x-b:x:0}},4841:(f,v,d)=>{var _=d(7561),p=d(3218),x=d(3448),b=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,O=/^0o[0-7]+$/i,T=parseInt;f.exports=function(R){if(typeof R=="number")return R;if(x(R))return NaN;if(p(R)){var F=typeof R.valueOf=="function"?R.valueOf():R;R=p(F)?F+"":F}if(typeof R!="string")return R===0?R:+R;R=_(R);var U=A.test(R);return U||O.test(R)?T(R.slice(2),U?2:8):b.test(R)?NaN:+R}},3678:(f,v,d)=>{var _=d(8363),p=d(1704);f.exports=function(x){return _(x,p(x))}},9833:(f,v,d)=>{var _=d(531);f.exports=function(p){return p==null?"":_(p)}},8718:(f,v,d)=>{var _=d(7412),p=d(3118),x=d(7816),b=d(7206),A=d(5924),O=d(1469),T=d(4144),R=d(3560),F=d(3218),U=d(6719);f.exports=function(q,Q,nt){var ft=O(q),J=ft||T(q)||U(q);if(Q=b(Q,4),nt==null){var bt=q&&q.constructor;nt=J?ft?new bt:[]:F(q)&&R(bt)?p(A(q)):{}}return(J?_:x)(q,function(ot,st,vt){return Q(nt,ot,st,vt)}),nt}},3386:(f,v,d)=>{var _=d(1078),p=d(5976),x=d(5652),b=d(9246),A=p(function(O){return x(_(O,1,b,!0))});f.exports=A},3955:(f,v,d)=>{var _=d(9833),p=0;f.exports=function(x){var b=++p;return _(x)+b}},2628:(f,v,d)=>{var _=d(7415),p=d(3674);f.exports=function(x){return x==null?[]:_(x,p(x))}},7287:(f,v,d)=>{var _=d(4865),p=d(1757);f.exports=function(x,b){return p(x||[],b||[],_)}},9234:()=>{},1748:(f,v,d)=>{var _={"./locale":9234,"./locale.js":9234};function p(b){var A=x(b);return d(A)}function x(b){if(!d.o(_,b)){var A=new Error("Cannot find module '"+b+"'");throw A.code="MODULE_NOT_FOUND",A}return _[b]}p.keys=function(){return Object.keys(_)},p.resolve=x,f.exports=p,p.id=1748},1941:function(f,v,d){(f=d.nmd(f)).exports=function(){var _,p;function x(){return _.apply(null,arguments)}function b(L){return L instanceof Array||Object.prototype.toString.call(L)==="[object Array]"}function A(L){return L!=null&&Object.prototype.toString.call(L)==="[object Object]"}function O(L){return L===void 0}function T(L){return typeof L=="number"||Object.prototype.toString.call(L)==="[object Number]"}function R(L){return L instanceof Date||Object.prototype.toString.call(L)==="[object Date]"}function F(L,Y){var et,mt=[];for(et=0;et<L.length;++et)mt.push(Y(L[et],et));return mt}function U(L,Y){return Object.prototype.hasOwnProperty.call(L,Y)}function q(L,Y){for(var et in Y)U(Y,et)&&(L[et]=Y[et]);return U(Y,"toString")&&(L.toString=Y.toString),U(Y,"valueOf")&&(L.valueOf=Y.valueOf),L}function Q(L,Y,et,mt){return Fi(L,Y,et,mt,!0).utc()}function nt(L){return L._pf==null&&(L._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}),L._pf}function ft(L){if(L._isValid==null){var Y=nt(L),et=p.call(Y.parsedDateParts,function(ie){return ie!=null}),mt=!isNaN(L._d.getTime())&&Y.overflow<0&&!Y.empty&&!Y.invalidMonth&&!Y.invalidWeekday&&!Y.weekdayMismatch&&!Y.nullInput&&!Y.invalidFormat&&!Y.userInvalidated&&(!Y.meridiem||Y.meridiem&&et);if(L._strict&&(mt=mt&&Y.charsLeftOver===0&&Y.unusedTokens.length===0&&Y.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(L))return mt;L._isValid=mt}return L._isValid}function J(L){var Y=Q(NaN);return L!=null?q(nt(Y),L):nt(Y).userInvalidated=!0,Y}p=Array.prototype.some?Array.prototype.some:function(L){for(var Y=Object(this),et=Y.length>>>0,mt=0;mt<et;mt++)if(mt in Y&&L.call(this,Y[mt],mt,Y))return!0;return!1};var bt=x.momentProperties=[];function ot(L,Y){var et,mt,ie;if(O(Y._isAMomentObject)||(L._isAMomentObject=Y._isAMomentObject),O(Y._i)||(L._i=Y._i),O(Y._f)||(L._f=Y._f),O(Y._l)||(L._l=Y._l),O(Y._strict)||(L._strict=Y._strict),O(Y._tzm)||(L._tzm=Y._tzm),O(Y._isUTC)||(L._isUTC=Y._isUTC),O(Y._offset)||(L._offset=Y._offset),O(Y._pf)||(L._pf=nt(Y)),O(Y._locale)||(L._locale=Y._locale),0<bt.length)for(et=0;et<bt.length;et++)O(ie=Y[mt=bt[et]])||(L[mt]=ie);return L}var st=!1;function vt(L){ot(this,L),this._d=new Date(L._d!=null?L._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),st===!1&&(st=!0,x.updateOffset(this),st=!1)}function Ut(L){return L instanceof vt||L!=null&&L._isAMomentObject!=null}function St(L){return L<0?Math.ceil(L)||0:Math.floor(L)}function _t(L){var Y=+L,et=0;return Y!==0&&isFinite(Y)&&(et=St(Y)),et}function It(L,Y,et){var mt,ie=Math.min(L.length,Y.length),Ie=Math.abs(L.length-Y.length),$e=0;for(mt=0;mt<ie;mt++)(et&&L[mt]!==Y[mt]||!et&&_t(L[mt])!==_t(Y[mt]))&&$e++;return $e+Ie}function wt(L){x.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+L)}function yt(L,Y){var et=!0;return q(function(){if(x.deprecationHandler!=null&&x.deprecationHandler(null,L),et){for(var mt,ie=[],Ie=0;Ie<arguments.length;Ie++){if(mt="",typeof arguments[Ie]=="object"){for(var $e in mt+=`
|
|
[`+Ie+"] ",arguments[0])mt+=$e+": "+arguments[0][$e]+", ";mt=mt.slice(0,-2)}else mt=arguments[Ie];ie.push(mt)}wt(L+`
|
|
Arguments: `+Array.prototype.slice.call(ie).join("")+`
|
|
`+new Error().stack),et=!1}return Y.apply(this,arguments)},Y)}var rt,pt={};function W(L,Y){x.deprecationHandler!=null&&x.deprecationHandler(L,Y),pt[L]||(wt(Y),pt[L]=!0)}function kt(L){return L instanceof Function||Object.prototype.toString.call(L)==="[object Function]"}function G(L,Y){var et,mt=q({},L);for(et in Y)U(Y,et)&&(A(L[et])&&A(Y[et])?(mt[et]={},q(mt[et],L[et]),q(mt[et],Y[et])):Y[et]!=null?mt[et]=Y[et]:delete mt[et]);for(et in L)U(L,et)&&!U(Y,et)&&A(L[et])&&(mt[et]=q({},mt[et]));return mt}function At(L){L!=null&&this.set(L)}x.suppressDeprecationWarnings=!1,x.deprecationHandler=null,rt=Object.keys?Object.keys:function(L){var Y,et=[];for(Y in L)U(L,Y)&&et.push(Y);return et};var Mt={};function Gt(L,Y){var et=L.toLowerCase();Mt[et]=Mt[et+"s"]=Mt[Y]=L}function me(L){return typeof L=="string"?Mt[L]||Mt[L.toLowerCase()]:void 0}function Ze(L){var Y,et,mt={};for(et in L)U(L,et)&&(Y=me(et))&&(mt[Y]=L[et]);return mt}var Ee={};function pe(L,Y){Ee[L]=Y}function we(L,Y,et){var mt=""+Math.abs(L),ie=Y-mt.length;return(0<=L?et?"+":"":"-")+Math.pow(10,Math.max(0,ie)).toString().substr(1)+mt}var Oe=/(\[[^\[]*\])|(\\)?([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,De=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,xe={},Ar={};function be(L,Y,et,mt){var ie=mt;typeof mt=="string"&&(ie=function(){return this[mt]()}),L&&(Ar[L]=ie),Y&&(Ar[Y[0]]=function(){return we(ie.apply(this,arguments),Y[1],Y[2])}),et&&(Ar[et]=function(){return this.localeData().ordinal(ie.apply(this,arguments),L)})}function Qe(L,Y){return L.isValid()?(Y=Rt(Y,L.localeData()),xe[Y]=xe[Y]||function(et){var mt,ie,Ie,$e=et.match(Oe);for(mt=0,ie=$e.length;mt<ie;mt++)Ar[$e[mt]]?$e[mt]=Ar[$e[mt]]:$e[mt]=(Ie=$e[mt]).match(/\[[\s\S]/)?Ie.replace(/^\[|\]$/g,""):Ie.replace(/\\/g,"");return function(er){var rr,pr="";for(rr=0;rr<ie;rr++)pr+=kt($e[rr])?$e[rr].call(er,et):$e[rr];return pr}}(Y),xe[Y](L)):L.localeData().invalidDate()}function Rt(L,Y){var et=5;function mt(ie){return Y.longDateFormat(ie)||ie}for(De.lastIndex=0;0<=et&&De.test(L);)L=L.replace(De,mt),De.lastIndex=0,et-=1;return L}var de=/\d/,ne=/\d\d/,Ct=/\d{3}/,Te=/\d{4}/,tt=/[+-]?\d{6}/,le=/\d\d?/,ct=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,ye=/\d{1,3}/,ze=/\d{1,4}/,or=/[+-]?\d{1,6}/,Xe=/\d+/,ur=/[+-]?\d+/,Ne=/Z|[+-]\d\d:?\d\d/gi,Be=/Z|[+-]\d\d(?::?\d\d)?/gi,Ue=/[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,Pe={};function ve(L,Y,et){Pe[L]=kt(Y)?Y:function(mt,ie){return mt&&et?et:Y}}function oe(L,Y){return U(Pe,L)?Pe[L](Y._strict,Y._locale):new RegExp(vr(L.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(et,mt,ie,Ie,$e){return mt||ie||Ie||$e})))}function vr(L){return L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var We={};function cr(L,Y){var et,mt=Y;for(typeof L=="string"&&(L=[L]),T(Y)&&(mt=function(ie,Ie){Ie[Y]=_t(ie)}),et=0;et<L.length;et++)We[L[et]]=mt}function He(L,Y){cr(L,function(et,mt,ie,Ie){ie._w=ie._w||{},Y(et,ie._w,ie,Ie)})}function Tr(L){return Qr(L)?366:365}function Qr(L){return L%4==0&&L%100!=0||L%400==0}be("Y",0,0,function(){var L=this.year();return L<=9999?""+L:"+"+L}),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"),pe("year",1),ve("Y",ur),ve("YY",le,ne),ve("YYYY",ze,Te),ve("YYYYY",or,tt),ve("YYYYYY",or,tt),cr(["YYYYY","YYYYYY"],0),cr("YYYY",function(L,Y){Y[0]=L.length===2?x.parseTwoDigitYear(L):_t(L)}),cr("YY",function(L,Y){Y[0]=x.parseTwoDigitYear(L)}),cr("Y",function(L,Y){Y[0]=parseInt(L,10)}),x.parseTwoDigitYear=function(L){return _t(L)+(68<_t(L)?1900:2e3)};var Nr,Fr=Le("FullYear",!0);function Le(L,Y){return function(et){return et!=null?(nr(this,L,et),x.updateOffset(this,Y),this):tr(this,L)}}function tr(L,Y){return L.isValid()?L._d["get"+(L._isUTC?"UTC":"")+Y]():NaN}function nr(L,Y,et){L.isValid()&&!isNaN(et)&&(Y==="FullYear"&&Qr(L.year())&&L.month()===1&&L.date()===29?L._d["set"+(L._isUTC?"UTC":"")+Y](et,L.month(),Ae(et,L.month())):L._d["set"+(L._isUTC?"UTC":"")+Y](et))}function Ae(L,Y){if(isNaN(L)||isNaN(Y))return NaN;var et=(Y%12+12)%12;return L+=(Y-et)/12,et===1?Qr(L)?29:28:31-et%7%2}Nr=Array.prototype.indexOf?Array.prototype.indexOf:function(L){var Y;for(Y=0;Y<this.length;++Y)if(this[Y]===L)return Y;return-1},be("M",["MM",2],"Mo",function(){return this.month()+1}),be("MMM",0,0,function(L){return this.localeData().monthsShort(this,L)}),be("MMMM",0,0,function(L){return this.localeData().months(this,L)}),Gt("month","M"),pe("month",8),ve("M",le),ve("MM",le,ne),ve("MMM",function(L,Y){return Y.monthsShortRegex(L)}),ve("MMMM",function(L,Y){return Y.monthsRegex(L)}),cr(["M","MM"],function(L,Y){Y[1]=_t(L)-1}),cr(["MMM","MMMM"],function(L,Y,et,mt){var ie=et._locale.monthsParse(L,mt,et._strict);ie!=null?Y[1]=ie:nt(et).invalidMonth=L});var Cr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Bt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),xn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Vt(L,Y){var et;if(!L.isValid())return L;if(typeof Y=="string"){if(/^\d+$/.test(Y))Y=_t(Y);else if(!T(Y=L.localeData().monthsParse(Y)))return L}return et=Math.min(L.date(),Ae(L.year(),Y)),L._d["set"+(L._isUTC?"UTC":"")+"Month"](Y,et),L}function Wr(L){return L!=null?(Vt(this,L),x.updateOffset(this,!0),this):tr(this,"Month")}var jr=Ue,Vr=Ue;function Rr(){function L($e,er){return er.length-$e.length}var Y,et,mt=[],ie=[],Ie=[];for(Y=0;Y<12;Y++)et=Q([2e3,Y]),mt.push(this.monthsShort(et,"")),ie.push(this.months(et,"")),Ie.push(this.months(et,"")),Ie.push(this.monthsShort(et,""));for(mt.sort(L),ie.sort(L),Ie.sort(L),Y=0;Y<12;Y++)mt[Y]=vr(mt[Y]),ie[Y]=vr(ie[Y]);for(Y=0;Y<24;Y++)Ie[Y]=vr(Ie[Y]);this._monthsRegex=new RegExp("^("+Ie.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+ie.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+mt.join("|")+")","i")}function Zr(L){var Y;if(L<100&&0<=L){var et=Array.prototype.slice.call(arguments);et[0]=L+400,Y=new Date(Date.UTC.apply(null,et)),isFinite(Y.getUTCFullYear())&&Y.setUTCFullYear(L)}else Y=new Date(Date.UTC.apply(null,arguments));return Y}function Ur(L,Y,et){var mt=7+Y-et;return-(7+Zr(L,0,mt).getUTCDay()-Y)%7+mt-1}function Lr(L,Y,et,mt,ie){var Ie,$e,er=1+7*(Y-1)+(7+et-mt)%7+Ur(L,mt,ie);return $e=er<=0?Tr(Ie=L-1)+er:er>Tr(L)?(Ie=L+1,er-Tr(L)):(Ie=L,er),{year:Ie,dayOfYear:$e}}function Yr(L,Y,et){var mt,ie,Ie=Ur(L.year(),Y,et),$e=Math.floor((L.dayOfYear()-Ie-1)/7)+1;return $e<1?mt=$e+$r(ie=L.year()-1,Y,et):$e>$r(L.year(),Y,et)?(mt=$e-$r(L.year(),Y,et),ie=L.year()+1):(ie=L.year(),mt=$e),{week:mt,year:ie}}function $r(L,Y,et){var mt=Ur(L,Y,et),ie=Ur(L+1,Y,et);return(Tr(L)-mt+ie)/7}function Hr(L,Y){return L.slice(Y,7).concat(L.slice(0,Y))}be("w",["ww",2],"wo","week"),be("W",["WW",2],"Wo","isoWeek"),Gt("week","w"),Gt("isoWeek","W"),pe("week",5),pe("isoWeek",5),ve("w",le),ve("ww",le,ne),ve("W",le),ve("WW",le,ne),He(["w","ww","W","WW"],function(L,Y,et,mt){Y[mt.substr(0,1)]=_t(L)}),be("d",0,"do","day"),be("dd",0,0,function(L){return this.localeData().weekdaysMin(this,L)}),be("ddd",0,0,function(L){return this.localeData().weekdaysShort(this,L)}),be("dddd",0,0,function(L){return this.localeData().weekdays(this,L)}),be("e",0,0,"weekday"),be("E",0,0,"isoWeekday"),Gt("day","d"),Gt("weekday","e"),Gt("isoWeekday","E"),pe("day",11),pe("weekday",11),pe("isoWeekday",11),ve("d",le),ve("e",le),ve("E",le),ve("dd",function(L,Y){return Y.weekdaysMinRegex(L)}),ve("ddd",function(L,Y){return Y.weekdaysShortRegex(L)}),ve("dddd",function(L,Y){return Y.weekdaysRegex(L)}),He(["dd","ddd","dddd"],function(L,Y,et,mt){var ie=et._locale.weekdaysParse(L,mt,et._strict);ie!=null?Y.d=ie:nt(et).invalidWeekday=L}),He(["d","e","E"],function(L,Y,et,mt){Y[mt]=_t(L)});var ya="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),On="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Cn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mr=Ue,hi=Ue,Pr=Ue;function wn(){function L(_r,Sr){return Sr.length-_r.length}var Y,et,mt,ie,Ie,$e=[],er=[],rr=[],pr=[];for(Y=0;Y<7;Y++)et=Q([2e3,1]).day(Y),mt=this.weekdaysMin(et,""),ie=this.weekdaysShort(et,""),Ie=this.weekdays(et,""),$e.push(mt),er.push(ie),rr.push(Ie),pr.push(mt),pr.push(ie),pr.push(Ie);for($e.sort(L),er.sort(L),rr.sort(L),pr.sort(L),Y=0;Y<7;Y++)er[Y]=vr(er[Y]),rr[Y]=vr(rr[Y]),pr[Y]=vr(pr[Y]);this._weekdaysRegex=new RegExp("^("+pr.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+rr.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+er.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+$e.join("|")+")","i")}function Nn(){return this.hours()%12||12}function vn(L,Y){be(L,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),Y)})}function Kn(L,Y){return Y._meridiemParse}be("H",["HH",2],0,"hour"),be("h",["hh",2],0,Nn),be("k",["kk",2],0,function(){return this.hours()||24}),be("hmm",0,0,function(){return""+Nn.apply(this)+we(this.minutes(),2)}),be("hmmss",0,0,function(){return""+Nn.apply(this)+we(this.minutes(),2)+we(this.seconds(),2)}),be("Hmm",0,0,function(){return""+this.hours()+we(this.minutes(),2)}),be("Hmmss",0,0,function(){return""+this.hours()+we(this.minutes(),2)+we(this.seconds(),2)}),vn("a",!0),vn("A",!1),Gt("hour","h"),pe("hour",13),ve("a",Kn),ve("A",Kn),ve("H",le),ve("h",le),ve("k",le),ve("HH",le,ne),ve("hh",le,ne),ve("kk",le,ne),ve("hmm",ct),ve("hmmss",Se),ve("Hmm",ct),ve("Hmmss",Se),cr(["H","HH"],3),cr(["k","kk"],function(L,Y,et){var mt=_t(L);Y[3]=mt===24?0:mt}),cr(["a","A"],function(L,Y,et){et._isPm=et._locale.isPM(L),et._meridiem=L}),cr(["h","hh"],function(L,Y,et){Y[3]=_t(L),nt(et).bigHour=!0}),cr("hmm",function(L,Y,et){var mt=L.length-2;Y[3]=_t(L.substr(0,mt)),Y[4]=_t(L.substr(mt)),nt(et).bigHour=!0}),cr("hmmss",function(L,Y,et){var mt=L.length-4,ie=L.length-2;Y[3]=_t(L.substr(0,mt)),Y[4]=_t(L.substr(mt,2)),Y[5]=_t(L.substr(ie)),nt(et).bigHour=!0}),cr("Hmm",function(L,Y,et){var mt=L.length-2;Y[3]=_t(L.substr(0,mt)),Y[4]=_t(L.substr(mt))}),cr("Hmmss",function(L,Y,et){var mt=L.length-4,ie=L.length-2;Y[3]=_t(L.substr(0,mt)),Y[4]=_t(L.substr(mt,2)),Y[5]=_t(L.substr(ie))});var Ft,Ln=Le("Hours",!0),Dn={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:Bt,monthsShort:xn,week:{dow:0,doy:6},weekdays:ya,weekdaysMin:Cn,weekdaysShort:On,meridiemParse:/[ap]\.?m?\.?/i},Xr={},ri={};function qn(L){return L&&L.toLowerCase().replace("_","-")}function Fn(L){var Y=null;if(!Xr[L]&&f&&f.exports)try{Y=Ft._abbr,d(1748)("./"+L),ni(Y)}catch{}return Xr[L]}function ni(L,Y){var et;return L&&((et=O(Y)?fn(L):Ia(L,Y))?Ft=et:typeof console<"u"&&console.warn&&console.warn("Locale "+L+" not found. Did you forget to load it?")),Ft._abbr}function Ia(L,Y){if(Y===null)return delete Xr[L],null;var et,mt=Dn;if(Y.abbr=L,Xr[L]!=null)W("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."),mt=Xr[L]._config;else if(Y.parentLocale!=null)if(Xr[Y.parentLocale]!=null)mt=Xr[Y.parentLocale]._config;else{if((et=Fn(Y.parentLocale))==null)return ri[Y.parentLocale]||(ri[Y.parentLocale]=[]),ri[Y.parentLocale].push({name:L,config:Y}),null;mt=et._config}return Xr[L]=new At(G(mt,Y)),ri[L]&&ri[L].forEach(function(ie){Ia(ie.name,ie.config)}),ni(L),Xr[L]}function fn(L){var Y;if(L&&L._locale&&L._locale._abbr&&(L=L._locale._abbr),!L)return Ft;if(!b(L)){if(Y=Fn(L))return Y;L=[L]}return function(et){for(var mt,ie,Ie,$e,er=0;er<et.length;){for(mt=($e=qn(et[er]).split("-")).length,ie=(ie=qn(et[er+1]))?ie.split("-"):null;0<mt;){if(Ie=Fn($e.slice(0,mt).join("-")))return Ie;if(ie&&ie.length>=mt&&It($e,ie,!0)>=mt-1)break;mt--}er++}return Ft}(L)}function Ai(L){var Y,et=L._a;return et&&nt(L).overflow===-2&&(Y=et[1]<0||11<et[1]?1:et[2]<1||et[2]>Ae(et[0],et[1])?2:et[3]<0||24<et[3]||et[3]===24&&(et[4]!==0||et[5]!==0||et[6]!==0)?3:et[4]<0||59<et[4]?4:et[5]<0||59<et[5]?5:et[6]<0||999<et[6]?6:-1,nt(L)._overflowDayOfYear&&(Y<0||2<Y)&&(Y=2),nt(L)._overflowWeeks&&Y===-1&&(Y=7),nt(L)._overflowWeekday&&Y===-1&&(Y=8),nt(L).overflow=Y),L}function Bi(L,Y,et){return L!=null?L:Y!=null?Y:et}function Ci(L){var Y,et,mt,ie,Ie,$e=[];if(!L._d){var er,rr;for(er=L,rr=new Date(x.now()),mt=er._useUTC?[rr.getUTCFullYear(),rr.getUTCMonth(),rr.getUTCDate()]:[rr.getFullYear(),rr.getMonth(),rr.getDate()],L._w&&L._a[2]==null&&L._a[1]==null&&function(pr){var _r,Sr,Ir,_n,sn,Vn,mi,Zn;if((_r=pr._w).GG!=null||_r.W!=null||_r.E!=null)sn=1,Vn=4,Sr=Bi(_r.GG,pr._a[0],Yr(kr(),1,4).year),Ir=Bi(_r.W,1),((_n=Bi(_r.E,1))<1||7<_n)&&(Zn=!0);else{sn=pr._locale._week.dow,Vn=pr._locale._week.doy;var Os=Yr(kr(),sn,Vn);Sr=Bi(_r.gg,pr._a[0],Os.year),Ir=Bi(_r.w,Os.week),_r.d!=null?((_n=_r.d)<0||6<_n)&&(Zn=!0):_r.e!=null?(_n=_r.e+sn,(_r.e<0||6<_r.e)&&(Zn=!0)):_n=sn}Ir<1||Ir>$r(Sr,sn,Vn)?nt(pr)._overflowWeeks=!0:Zn!=null?nt(pr)._overflowWeekday=!0:(mi=Lr(Sr,Ir,_n,sn,Vn),pr._a[0]=mi.year,pr._dayOfYear=mi.dayOfYear)}(L),L._dayOfYear!=null&&(Ie=Bi(L._a[0],mt[0]),(L._dayOfYear>Tr(Ie)||L._dayOfYear===0)&&(nt(L)._overflowDayOfYear=!0),et=Zr(Ie,0,L._dayOfYear),L._a[1]=et.getUTCMonth(),L._a[2]=et.getUTCDate()),Y=0;Y<3&&L._a[Y]==null;++Y)L._a[Y]=$e[Y]=mt[Y];for(;Y<7;Y++)L._a[Y]=$e[Y]=L._a[Y]==null?Y===2?1:0:L._a[Y];L._a[3]===24&&L._a[4]===0&&L._a[5]===0&&L._a[6]===0&&(L._nextDay=!0,L._a[3]=0),L._d=(L._useUTC?Zr:function(pr,_r,Sr,Ir,_n,sn,Vn){var mi;return pr<100&&0<=pr?(mi=new Date(pr+400,_r,Sr,Ir,_n,sn,Vn),isFinite(mi.getFullYear())&&mi.setFullYear(pr)):mi=new Date(pr,_r,Sr,Ir,_n,sn,Vn),mi}).apply(null,$e),ie=L._useUTC?L._d.getUTCDay():L._d.getDay(),L._tzm!=null&&L._d.setUTCMinutes(L._d.getUTCMinutes()-L._tzm),L._nextDay&&(L._a[3]=24),L._w&&L._w.d!==void 0&&L._w.d!==ie&&(nt(L).weekdayMismatch=!0)}}var fr=/^\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)?)?$/,mr=/^\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)?)?$/,Kr=/Z|[+-]\d\d(?::?\d\d)?/,ir=[["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}/]],un=[["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/]],Xt=/^\/?Date\((\-?\d+)/i;function Yn(L){var Y,et,mt,ie,Ie,$e,er=L._i,rr=fr.exec(er)||mr.exec(er);if(rr){for(nt(L).iso=!0,Y=0,et=ir.length;Y<et;Y++)if(ir[Y][1].exec(rr[1])){ie=ir[Y][0],mt=ir[Y][2]!==!1;break}if(ie==null)return void(L._isValid=!1);if(rr[3]){for(Y=0,et=un.length;Y<et;Y++)if(un[Y][1].exec(rr[3])){Ie=(rr[2]||" ")+un[Y][0];break}if(Ie==null)return void(L._isValid=!1)}if(!mt&&Ie!=null)return void(L._isValid=!1);if(rr[4]){if(!Kr.exec(rr[4]))return void(L._isValid=!1);$e="Z"}L._f=ie+(Ie||"")+($e||""),di(L)}else L._isValid=!1}var ee=/^(?:(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}))$/,kn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function si(L){var Y,et,mt,ie=ee.exec(L._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(ie){var Ie=function($e,er,rr,pr,_r,Sr){var Ir=[function(_n){var sn=parseInt(_n,10);return sn<=49?2e3+sn:sn<=999?1900+sn:sn}($e),xn.indexOf(er),parseInt(rr,10),parseInt(pr,10),parseInt(_r,10)];return Sr&&Ir.push(parseInt(Sr,10)),Ir}(ie[4],ie[3],ie[2],ie[5],ie[6],ie[7]);if(et=Ie,mt=L,(Y=ie[1])&&On.indexOf(Y)!==new Date(et[0],et[1],et[2]).getDay()&&(nt(mt).weekdayMismatch=!0,!(mt._isValid=!1)))return;L._a=Ie,L._tzm=function($e,er,rr){if($e)return kn[$e];if(er)return 0;var pr=parseInt(rr,10),_r=pr%100;return(pr-_r)/100*60+_r}(ie[8],ie[9],ie[10]),L._d=Zr.apply(null,L._a),L._d.setUTCMinutes(L._d.getUTCMinutes()-L._tzm),nt(L).rfc2822=!0}else L._isValid=!1}function di(L){if(L._f!==x.ISO_8601)if(L._f!==x.RFC_2822){L._a=[],nt(L).empty=!0;var Y,et,mt,ie,Ie,$e,er,rr,pr=""+L._i,_r=pr.length,Sr=0;for(mt=Rt(L._f,L._locale).match(Oe)||[],Y=0;Y<mt.length;Y++)ie=mt[Y],(et=(pr.match(oe(ie,L))||[])[0])&&(0<(Ie=pr.substr(0,pr.indexOf(et))).length&&nt(L).unusedInput.push(Ie),pr=pr.slice(pr.indexOf(et)+et.length),Sr+=et.length),Ar[ie]?(et?nt(L).empty=!1:nt(L).unusedTokens.push(ie),$e=ie,rr=L,(er=et)!=null&&U(We,$e)&&We[$e](er,rr._a,rr,$e)):L._strict&&!et&&nt(L).unusedTokens.push(ie);nt(L).charsLeftOver=_r-Sr,0<pr.length&&nt(L).unusedInput.push(pr),L._a[3]<=12&&nt(L).bigHour===!0&&0<L._a[3]&&(nt(L).bigHour=void 0),nt(L).parsedDateParts=L._a.slice(0),nt(L).meridiem=L._meridiem,L._a[3]=function(Ir,_n,sn){var Vn;return sn==null?_n:Ir.meridiemHour!=null?Ir.meridiemHour(_n,sn):(Ir.isPM!=null&&((Vn=Ir.isPM(sn))&&_n<12&&(_n+=12),Vn||_n!==12||(_n=0)),_n)}(L._locale,L._a[3],L._meridiem),Ci(L),Ai(L)}else si(L);else Yn(L)}function Na(L){var Y,et,mt,ie,Ie=L._i,$e=L._f;return L._locale=L._locale||fn(L._l),Ie===null||$e===void 0&&Ie===""?J({nullInput:!0}):(typeof Ie=="string"&&(L._i=Ie=L._locale.preparse(Ie)),Ut(Ie)?new vt(Ai(Ie)):(R(Ie)?L._d=Ie:b($e)?function(er){var rr,pr,_r,Sr,Ir;if(er._f.length===0)return nt(er).invalidFormat=!0,er._d=new Date(NaN);for(Sr=0;Sr<er._f.length;Sr++)Ir=0,rr=ot({},er),er._useUTC!=null&&(rr._useUTC=er._useUTC),rr._f=er._f[Sr],di(rr),ft(rr)&&(Ir+=nt(rr).charsLeftOver,Ir+=10*nt(rr).unusedTokens.length,nt(rr).score=Ir,(_r==null||Ir<_r)&&(_r=Ir,pr=rr));q(er,pr||rr)}(L):$e?di(L):O(et=(Y=L)._i)?Y._d=new Date(x.now()):R(et)?Y._d=new Date(et.valueOf()):typeof et=="string"?(mt=Y,(ie=Xt.exec(mt._i))===null?(Yn(mt),mt._isValid===!1&&(delete mt._isValid,si(mt),mt._isValid===!1&&(delete mt._isValid,x.createFromInputFallback(mt)))):mt._d=new Date(+ie[1])):b(et)?(Y._a=F(et.slice(0),function(er){return parseInt(er,10)}),Ci(Y)):A(et)?function(er){if(!er._d){var rr=Ze(er._i);er._a=F([rr.year,rr.month,rr.day||rr.date,rr.hour,rr.minute,rr.second,rr.millisecond],function(pr){return pr&&parseInt(pr,10)}),Ci(er)}}(Y):T(et)?Y._d=new Date(et):x.createFromInputFallback(Y),ft(L)||(L._d=null),L))}function Fi(L,Y,et,mt,ie){var Ie,$e={};return et!==!0&&et!==!1||(mt=et,et=void 0),(A(L)&&function(er){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(er).length===0;var rr;for(rr in er)if(er.hasOwnProperty(rr))return!1;return!0}(L)||b(L)&&L.length===0)&&(L=void 0),$e._isAMomentObject=!0,$e._useUTC=$e._isUTC=ie,$e._l=et,$e._i=L,$e._f=Y,$e._strict=mt,(Ie=new vt(Ai(Na($e))))._nextDay&&(Ie.add(1,"d"),Ie._nextDay=void 0),Ie}function kr(L,Y,et,mt){return Fi(L,Y,et,mt,!1)}x.createFromInputFallback=yt("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(L){L._d=new Date(L._i+(L._useUTC?" UTC":""))}),x.ISO_8601=function(){},x.RFC_2822=function(){};var jn=yt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var L=kr.apply(null,arguments);return this.isValid()&&L.isValid()?L<this?this:L:J()}),Br=yt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var L=kr.apply(null,arguments);return this.isValid()&&L.isValid()?this<L?this:L:J()});function ma(L,Y){var et,mt;if(Y.length===1&&b(Y[0])&&(Y=Y[0]),!Y.length)return kr();for(et=Y[0],mt=1;mt<Y.length;++mt)Y[mt].isValid()&&!Y[mt][L](et)||(et=Y[mt]);return et}var Pn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pi(L){var Y=Ze(L),et=Y.year||0,mt=Y.quarter||0,ie=Y.month||0,Ie=Y.week||Y.isoWeek||0,$e=Y.day||0,er=Y.hour||0,rr=Y.minute||0,pr=Y.second||0,_r=Y.millisecond||0;this._isValid=function(Sr){for(var Ir in Sr)if(Nr.call(Pn,Ir)===-1||Sr[Ir]!=null&&isNaN(Sr[Ir]))return!1;for(var _n=!1,sn=0;sn<Pn.length;++sn)if(Sr[Pn[sn]]){if(_n)return!1;parseFloat(Sr[Pn[sn]])!==_t(Sr[Pn[sn]])&&(_n=!0)}return!0}(Y),this._milliseconds=+_r+1e3*pr+6e4*rr+1e3*er*60*60,this._days=+$e+7*Ie,this._months=+ie+3*mt+12*et,this._data={},this._locale=fn(),this._bubble()}function $n(L){return L instanceof Pi}function mn(L){return L<0?-1*Math.round(-1*L):Math.round(L)}function ki(L,Y){be(L,0,0,function(){var et=this.utcOffset(),mt="+";return et<0&&(et=-et,mt="-"),mt+we(~~(et/60),2)+Y+we(~~et%60,2)})}ki("Z",":"),ki("ZZ",""),ve("Z",Be),ve("ZZ",Be),cr(["Z","ZZ"],function(L,Y,et){et._useUTC=!0,et._tzm=ii(Be,L)});var Wn=/([\+\-]|\d\d)/gi;function ii(L,Y){var et=(Y||"").match(L);if(et===null)return null;var mt=((et[et.length-1]||[])+"").match(Wn)||["-",0,0],ie=60*mt[1]+_t(mt[2]);return ie===0?0:mt[0]==="+"?ie:-ie}function Qi(L,Y){var et,mt;return Y._isUTC?(et=Y.clone(),mt=(Ut(L)||R(L)?L.valueOf():kr(L).valueOf())-et.valueOf(),et._d.setTime(et._d.valueOf()+mt),x.updateOffset(et,!1),et):kr(L).local()}function Ii(L){return 15*-Math.round(L._d.getTimezoneOffset()/15)}function ai(){return!!this.isValid()&&this._isUTC&&this._offset===0}x.updateOffset=function(){};var _a=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Gn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Jn(L,Y){var et,mt,ie,Ie=L,$e=null;return $n(L)?Ie={ms:L._milliseconds,d:L._days,M:L._months}:T(L)?(Ie={},Y?Ie[Y]=L:Ie.milliseconds=L):($e=_a.exec(L))?(et=$e[1]==="-"?-1:1,Ie={y:0,d:_t($e[2])*et,h:_t($e[3])*et,m:_t($e[4])*et,s:_t($e[5])*et,ms:_t(mn(1e3*$e[6]))*et}):($e=Gn.exec(L))?(et=$e[1]==="-"?-1:1,Ie={y:ci($e[2],et),M:ci($e[3],et),w:ci($e[4],et),d:ci($e[5],et),h:ci($e[6],et),m:ci($e[7],et),s:ci($e[8],et)}):Ie==null?Ie={}:typeof Ie=="object"&&("from"in Ie||"to"in Ie)&&(ie=function(er,rr){var pr;return er.isValid()&&rr.isValid()?(rr=Qi(rr,er),er.isBefore(rr)?pr=zi(er,rr):((pr=zi(rr,er)).milliseconds=-pr.milliseconds,pr.months=-pr.months),pr):{milliseconds:0,months:0}}(kr(Ie.from),kr(Ie.to)),(Ie={}).ms=ie.milliseconds,Ie.M=ie.months),mt=new Pi(Ie),$n(L)&&U(L,"_locale")&&(mt._locale=L._locale),mt}function ci(L,Y){var et=L&&parseFloat(L.replace(",","."));return(isNaN(et)?0:et)*Y}function zi(L,Y){var et={};return et.months=Y.month()-L.month()+12*(Y.year()-L.year()),L.clone().add(et.months,"M").isAfter(Y)&&--et.months,et.milliseconds=+Y-+L.clone().add(et.months,"M"),et}function Io(L,Y){return function(et,mt){var ie;return mt===null||isNaN(+mt)||(W(Y,"moment()."+Y+"(period, number) is deprecated. Please use moment()."+Y+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),ie=et,et=mt,mt=ie),Hi(this,Jn(et=typeof et=="string"?+et:et,mt),L),this}}function Hi(L,Y,et,mt){var ie=Y._milliseconds,Ie=mn(Y._days),$e=mn(Y._months);L.isValid()&&(mt=mt==null||mt,$e&&Vt(L,tr(L,"Month")+$e*et),Ie&&nr(L,"Date",tr(L,"Date")+Ie*et),ie&&L._d.setTime(L._d.valueOf()+ie*et),mt&&x.updateOffset(L,Ie||$e))}Jn.fn=Pi.prototype,Jn.invalid=function(){return Jn(NaN)};var Qt=Io(1,"add"),Er=Io(-1,"subtract");function sr(L,Y){var et=12*(Y.year()-L.year())+(Y.month()-L.month()),mt=L.clone().add(et,"months");return-(et+(Y-mt<0?(Y-mt)/(mt-L.clone().add(et-1,"months")):(Y-mt)/(L.clone().add(et+1,"months")-mt)))||0}function on(L){var Y;return L===void 0?this._locale._abbr:((Y=fn(L))!=null&&(this._locale=Y),this)}x.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",x.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Hn=yt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(L){return L===void 0?this.localeData():this.locale(L)});function gi(){return this._locale}var Qn=126227808e5;function qi(L,Y){return(L%Y+Y)%Y}function ta(L,Y,et){return L<100&&0<=L?new Date(L+400,Y,et)-Qn:new Date(L,Y,et).valueOf()}function fi(L,Y,et){return L<100&&0<=L?Date.UTC(L+400,Y,et)-Qn:Date.UTC(L,Y,et)}function Ja(L,Y){be(0,[L,L.length],0,Y)}function os(L,Y,et,mt,ie){var Ie;return L==null?Yr(this,mt,ie).year:((Ie=$r(L,mt,ie))<Y&&(Y=Ie),function($e,er,rr,pr,_r){var Sr=Lr($e,er,rr,pr,_r),Ir=Zr(Sr.year,0,Sr.dayOfYear);return this.year(Ir.getUTCFullYear()),this.month(Ir.getUTCMonth()),this.date(Ir.getUTCDate()),this}.call(this,L,Y,et,mt,ie))}be(0,["gg",2],0,function(){return this.weekYear()%100}),be(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ja("gggg","weekYear"),Ja("ggggg","weekYear"),Ja("GGGG","isoWeekYear"),Ja("GGGGG","isoWeekYear"),Gt("weekYear","gg"),Gt("isoWeekYear","GG"),pe("weekYear",1),pe("isoWeekYear",1),ve("G",ur),ve("g",ur),ve("GG",le,ne),ve("gg",le,ne),ve("GGGG",ze,Te),ve("gggg",ze,Te),ve("GGGGG",or,tt),ve("ggggg",or,tt),He(["gggg","ggggg","GGGG","GGGGG"],function(L,Y,et,mt){Y[mt.substr(0,2)]=_t(L)}),He(["gg","GG"],function(L,Y,et,mt){Y[mt]=x.parseTwoDigitYear(L)}),be("Q",0,"Qo","quarter"),Gt("quarter","Q"),pe("quarter",7),ve("Q",de),cr("Q",function(L,Y){Y[1]=3*(_t(L)-1)}),be("D",["DD",2],"Do","date"),Gt("date","D"),pe("date",9),ve("D",le),ve("DD",le,ne),ve("Do",function(L,Y){return L?Y._dayOfMonthOrdinalParse||Y._ordinalParse:Y._dayOfMonthOrdinalParseLenient}),cr(["D","DD"],2),cr("Do",function(L,Y){Y[2]=_t(L.match(le)[0])});var gc=Le("Date",!0);be("DDD",["DDDD",3],"DDDo","dayOfYear"),Gt("dayOfYear","DDD"),pe("dayOfYear",4),ve("DDD",ye),ve("DDDD",Ct),cr(["DDD","DDDD"],function(L,Y,et){et._dayOfYear=_t(L)}),be("m",["mm",2],0,"minute"),Gt("minute","m"),pe("minute",14),ve("m",le),ve("mm",le,ne),cr(["m","mm"],4);var el=Le("Minutes",!1);be("s",["ss",2],0,"second"),Gt("second","s"),pe("second",15),ve("s",le),ve("ss",le,ne),cr(["s","ss"],5);var La,Is=Le("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"),pe("millisecond",16),ve("S",ye,de),ve("SS",ye,ne),ve("SSS",ye,Ct),La="SSSS";La.length<=9;La+="S")ve(La,Xe);function cu(L,Y){Y[6]=_t(1e3*("0."+L))}for(La="S";La.length<=9;La+="S")cr(La,cu);var yc=Le("Milliseconds",!1);be("z",0,0,"zoneAbbr"),be("zz",0,0,"zoneName");var hr=vt.prototype;function mc(L){return L}hr.add=Qt,hr.calendar=function(L,Y){var et=L||kr(),mt=Qi(et,this).startOf("day"),ie=x.calendarFormat(this,mt)||"sameElse",Ie=Y&&(kt(Y[ie])?Y[ie].call(this,et):Y[ie]);return this.format(Ie||this.localeData().calendar(ie,this,kr(et)))},hr.clone=function(){return new vt(this)},hr.diff=function(L,Y,et){var mt,ie,Ie;if(!this.isValid())return NaN;if(!(mt=Qi(L,this)).isValid())return NaN;switch(ie=6e4*(mt.utcOffset()-this.utcOffset()),Y=me(Y)){case"year":Ie=sr(this,mt)/12;break;case"month":Ie=sr(this,mt);break;case"quarter":Ie=sr(this,mt)/3;break;case"second":Ie=(this-mt)/1e3;break;case"minute":Ie=(this-mt)/6e4;break;case"hour":Ie=(this-mt)/36e5;break;case"day":Ie=(this-mt-ie)/864e5;break;case"week":Ie=(this-mt-ie)/6048e5;break;default:Ie=this-mt}return et?Ie:St(Ie)},hr.endOf=function(L){var Y;if((L=me(L))===void 0||L==="millisecond"||!this.isValid())return this;var et=this._isUTC?fi:ta;switch(L){case"year":Y=et(this.year()+1,0,1)-1;break;case"quarter":Y=et(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":Y=et(this.year(),this.month()+1,1)-1;break;case"week":Y=et(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":Y=et(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":Y=et(this.year(),this.month(),this.date()+1)-1;break;case"hour":Y=this._d.valueOf(),Y+=36e5-qi(Y+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":Y=this._d.valueOf(),Y+=6e4-qi(Y,6e4)-1;break;case"second":Y=this._d.valueOf(),Y+=1e3-qi(Y,1e3)-1}return this._d.setTime(Y),x.updateOffset(this,!0),this},hr.format=function(L){L||(L=this.isUtc()?x.defaultFormatUtc:x.defaultFormat);var Y=Qe(this,L);return this.localeData().postformat(Y)},hr.from=function(L,Y){return this.isValid()&&(Ut(L)&&L.isValid()||kr(L).isValid())?Jn({to:this,from:L}).locale(this.locale()).humanize(!Y):this.localeData().invalidDate()},hr.fromNow=function(L){return this.from(kr(),L)},hr.to=function(L,Y){return this.isValid()&&(Ut(L)&&L.isValid()||kr(L).isValid())?Jn({from:this,to:L}).locale(this.locale()).humanize(!Y):this.localeData().invalidDate()},hr.toNow=function(L){return this.to(kr(),L)},hr.get=function(L){return kt(this[L=me(L)])?this[L]():this},hr.invalidAt=function(){return nt(this).overflow},hr.isAfter=function(L,Y){var et=Ut(L)?L:kr(L);return!(!this.isValid()||!et.isValid())&&((Y=me(Y)||"millisecond")==="millisecond"?this.valueOf()>et.valueOf():et.valueOf()<this.clone().startOf(Y).valueOf())},hr.isBefore=function(L,Y){var et=Ut(L)?L:kr(L);return!(!this.isValid()||!et.isValid())&&((Y=me(Y)||"millisecond")==="millisecond"?this.valueOf()<et.valueOf():this.clone().endOf(Y).valueOf()<et.valueOf())},hr.isBetween=function(L,Y,et,mt){var ie=Ut(L)?L:kr(L),Ie=Ut(Y)?Y:kr(Y);return!!(this.isValid()&&ie.isValid()&&Ie.isValid())&&((mt=mt||"()")[0]==="("?this.isAfter(ie,et):!this.isBefore(ie,et))&&(mt[1]===")"?this.isBefore(Ie,et):!this.isAfter(Ie,et))},hr.isSame=function(L,Y){var et,mt=Ut(L)?L:kr(L);return!(!this.isValid()||!mt.isValid())&&((Y=me(Y)||"millisecond")==="millisecond"?this.valueOf()===mt.valueOf():(et=mt.valueOf(),this.clone().startOf(Y).valueOf()<=et&&et<=this.clone().endOf(Y).valueOf()))},hr.isSameOrAfter=function(L,Y){return this.isSame(L,Y)||this.isAfter(L,Y)},hr.isSameOrBefore=function(L,Y){return this.isSame(L,Y)||this.isBefore(L,Y)},hr.isValid=function(){return ft(this)},hr.lang=Hn,hr.locale=on,hr.localeData=gi,hr.max=Br,hr.min=jn,hr.parsingFlags=function(){return q({},nt(this))},hr.set=function(L,Y){if(typeof L=="object")for(var et=function(ie){var Ie=[];for(var $e in ie)Ie.push({unit:$e,priority:Ee[$e]});return Ie.sort(function(er,rr){return er.priority-rr.priority}),Ie}(L=Ze(L)),mt=0;mt<et.length;mt++)this[et[mt].unit](L[et[mt].unit]);else if(kt(this[L=me(L)]))return this[L](Y);return this},hr.startOf=function(L){var Y;if((L=me(L))===void 0||L==="millisecond"||!this.isValid())return this;var et=this._isUTC?fi:ta;switch(L){case"year":Y=et(this.year(),0,1);break;case"quarter":Y=et(this.year(),this.month()-this.month()%3,1);break;case"month":Y=et(this.year(),this.month(),1);break;case"week":Y=et(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":Y=et(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":Y=et(this.year(),this.month(),this.date());break;case"hour":Y=this._d.valueOf(),Y-=qi(Y+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":Y=this._d.valueOf(),Y-=qi(Y,6e4);break;case"second":Y=this._d.valueOf(),Y-=qi(Y,1e3)}return this._d.setTime(Y),x.updateOffset(this,!0),this},hr.subtract=Er,hr.toArray=function(){var L=this;return[L.year(),L.month(),L.date(),L.hour(),L.minute(),L.second(),L.millisecond()]},hr.toObject=function(){var L=this;return{years:L.year(),months:L.month(),date:L.date(),hours:L.hours(),minutes:L.minutes(),seconds:L.seconds(),milliseconds:L.milliseconds()}},hr.toDate=function(){return new Date(this.valueOf())},hr.toISOString=function(L){if(!this.isValid())return null;var Y=L!==!0,et=Y?this.clone().utc():this;return et.year()<0||9999<et.year()?Qe(et,Y?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):kt(Date.prototype.toISOString)?Y?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Qe(et,"Z")):Qe(et,Y?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},hr.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var L="moment",Y="";this.isLocal()||(L=this.utcOffset()===0?"moment.utc":"moment.parseZone",Y="Z");var et="["+L+'("]',mt=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",ie=Y+'[")]';return this.format(et+mt+"-MM-DD[T]HH:mm:ss.SSS"+ie)},hr.toJSON=function(){return this.isValid()?this.toISOString():null},hr.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},hr.unix=function(){return Math.floor(this.valueOf()/1e3)},hr.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},hr.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},hr.year=Fr,hr.isLeapYear=function(){return Qr(this.year())},hr.weekYear=function(L){return os.call(this,L,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},hr.isoWeekYear=function(L){return os.call(this,L,this.isoWeek(),this.isoWeekday(),1,4)},hr.quarter=hr.quarters=function(L){return L==null?Math.ceil((this.month()+1)/3):this.month(3*(L-1)+this.month()%3)},hr.month=Wr,hr.daysInMonth=function(){return Ae(this.year(),this.month())},hr.week=hr.weeks=function(L){var Y=this.localeData().week(this);return L==null?Y:this.add(7*(L-Y),"d")},hr.isoWeek=hr.isoWeeks=function(L){var Y=Yr(this,1,4).week;return L==null?Y:this.add(7*(L-Y),"d")},hr.weeksInYear=function(){var L=this.localeData()._week;return $r(this.year(),L.dow,L.doy)},hr.isoWeeksInYear=function(){return $r(this.year(),1,4)},hr.date=gc,hr.day=hr.days=function(L){if(!this.isValid())return L!=null?this:NaN;var Y,et,mt=this._isUTC?this._d.getUTCDay():this._d.getDay();return L!=null?(Y=L,et=this.localeData(),L=typeof Y!="string"?Y:isNaN(Y)?typeof(Y=et.weekdaysParse(Y))=="number"?Y:null:parseInt(Y,10),this.add(L-mt,"d")):mt},hr.weekday=function(L){if(!this.isValid())return L!=null?this:NaN;var Y=(this.day()+7-this.localeData()._week.dow)%7;return L==null?Y:this.add(L-Y,"d")},hr.isoWeekday=function(L){if(!this.isValid())return L!=null?this:NaN;if(L==null)return this.day()||7;var Y,et,mt=(Y=L,et=this.localeData(),typeof Y=="string"?et.weekdaysParse(Y)%7||7:isNaN(Y)?null:Y);return this.day(this.day()%7?mt:mt-7)},hr.dayOfYear=function(L){var Y=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return L==null?Y:this.add(L-Y,"d")},hr.hour=hr.hours=Ln,hr.minute=hr.minutes=el,hr.second=hr.seconds=Is,hr.millisecond=hr.milliseconds=yc,hr.utcOffset=function(L,Y,et){var mt,ie=this._offset||0;if(!this.isValid())return L!=null?this:NaN;if(L==null)return this._isUTC?ie:Ii(this);if(typeof L=="string"){if((L=ii(Be,L))===null)return this}else Math.abs(L)<16&&!et&&(L*=60);return!this._isUTC&&Y&&(mt=Ii(this)),this._offset=L,this._isUTC=!0,mt!=null&&this.add(mt,"m"),ie!==L&&(!Y||this._changeInProgress?Hi(this,Jn(L-ie,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,x.updateOffset(this,!0),this._changeInProgress=null)),this},hr.utc=function(L){return this.utcOffset(0,L)},hr.local=function(L){return this._isUTC&&(this.utcOffset(0,L),this._isUTC=!1,L&&this.subtract(Ii(this),"m")),this},hr.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var L=ii(Ne,this._i);L!=null?this.utcOffset(L):this.utcOffset(0,!0)}return this},hr.hasAlignedHourOffset=function(L){return!!this.isValid()&&(L=L?kr(L).utcOffset():0,(this.utcOffset()-L)%60==0)},hr.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},hr.isLocal=function(){return!!this.isValid()&&!this._isUTC},hr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},hr.isUtc=ai,hr.isUTC=ai,hr.zoneAbbr=function(){return this._isUTC?"UTC":""},hr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},hr.dates=yt("dates accessor is deprecated. Use date instead.",gc),hr.months=yt("months accessor is deprecated. Use month instead",Wr),hr.years=yt("years accessor is deprecated. Use year instead",Fr),hr.zone=yt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(L,Y){return L!=null?(typeof L!="string"&&(L=-L),this.utcOffset(L,Y),this):-this.utcOffset()}),hr.isDSTShifted=yt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!O(this._isDSTShifted))return this._isDSTShifted;var L={};if(ot(L,this),(L=Na(L))._a){var Y=L._isUTC?Q(L._a):kr(L._a);this._isDSTShifted=this.isValid()&&0<It(L._a,Y.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var En=At.prototype;function ea(L,Y,et,mt){var ie=fn(),Ie=Q().set(mt,Y);return ie[et](Ie,L)}function ho(L,Y,et){if(T(L)&&(Y=L,L=void 0),L=L||"",Y!=null)return ea(L,Y,et,"month");var mt,ie=[];for(mt=0;mt<12;mt++)ie[mt]=ea(L,mt,et,"month");return ie}function Ma(L,Y,et,mt){typeof L=="boolean"?T(Y)&&(et=Y,Y=void 0):(Y=L,L=!1,T(et=Y)&&(et=Y,Y=void 0)),Y=Y||"";var ie,Ie=fn(),$e=L?Ie._week.dow:0;if(et!=null)return ea(Y,(et+$e)%7,mt,"day");var er=[];for(ie=0;ie<7;ie++)er[ie]=ea(Y,(ie+$e)%7,mt,"day");return er}En.calendar=function(L,Y,et){var mt=this._calendar[L]||this._calendar.sameElse;return kt(mt)?mt.call(Y,et):mt},En.longDateFormat=function(L){var Y=this._longDateFormat[L],et=this._longDateFormat[L.toUpperCase()];return Y||!et?Y:(this._longDateFormat[L]=et.replace(/MMMM|MM|DD|dddd/g,function(mt){return mt.slice(1)}),this._longDateFormat[L])},En.invalidDate=function(){return this._invalidDate},En.ordinal=function(L){return this._ordinal.replace("%d",L)},En.preparse=mc,En.postformat=mc,En.relativeTime=function(L,Y,et,mt){var ie=this._relativeTime[et];return kt(ie)?ie(L,Y,et,mt):ie.replace(/%d/i,L)},En.pastFuture=function(L,Y){var et=this._relativeTime[0<L?"future":"past"];return kt(et)?et(Y):et.replace(/%s/i,Y)},En.set=function(L){var Y,et;for(et in L)kt(Y=L[et])?this[et]=Y:this["_"+et]=Y;this._config=L,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},En.months=function(L,Y){return L?b(this._months)?this._months[L.month()]:this._months[(this._months.isFormat||Cr).test(Y)?"format":"standalone"][L.month()]:b(this._months)?this._months:this._months.standalone},En.monthsShort=function(L,Y){return L?b(this._monthsShort)?this._monthsShort[L.month()]:this._monthsShort[Cr.test(Y)?"format":"standalone"][L.month()]:b(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},En.monthsParse=function(L,Y,et){var mt,ie,Ie;if(this._monthsParseExact)return function($e,er,rr){var pr,_r,Sr,Ir=$e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],pr=0;pr<12;++pr)Sr=Q([2e3,pr]),this._shortMonthsParse[pr]=this.monthsShort(Sr,"").toLocaleLowerCase(),this._longMonthsParse[pr]=this.months(Sr,"").toLocaleLowerCase();return rr?er==="MMM"?(_r=Nr.call(this._shortMonthsParse,Ir))!==-1?_r:null:(_r=Nr.call(this._longMonthsParse,Ir))!==-1?_r:null:er==="MMM"?(_r=Nr.call(this._shortMonthsParse,Ir))!==-1||(_r=Nr.call(this._longMonthsParse,Ir))!==-1?_r:null:(_r=Nr.call(this._longMonthsParse,Ir))!==-1||(_r=Nr.call(this._shortMonthsParse,Ir))!==-1?_r:null}.call(this,L,Y,et);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),mt=0;mt<12;mt++)if(ie=Q([2e3,mt]),et&&!this._longMonthsParse[mt]&&(this._longMonthsParse[mt]=new RegExp("^"+this.months(ie,"").replace(".","")+"$","i"),this._shortMonthsParse[mt]=new RegExp("^"+this.monthsShort(ie,"").replace(".","")+"$","i")),et||this._monthsParse[mt]||(Ie="^"+this.months(ie,"")+"|^"+this.monthsShort(ie,""),this._monthsParse[mt]=new RegExp(Ie.replace(".",""),"i")),et&&Y==="MMMM"&&this._longMonthsParse[mt].test(L)||et&&Y==="MMM"&&this._shortMonthsParse[mt].test(L)||!et&&this._monthsParse[mt].test(L))return mt},En.monthsRegex=function(L){return this._monthsParseExact?(U(this,"_monthsRegex")||Rr.call(this),L?this._monthsStrictRegex:this._monthsRegex):(U(this,"_monthsRegex")||(this._monthsRegex=Vr),this._monthsStrictRegex&&L?this._monthsStrictRegex:this._monthsRegex)},En.monthsShortRegex=function(L){return this._monthsParseExact?(U(this,"_monthsRegex")||Rr.call(this),L?this._monthsShortStrictRegex:this._monthsShortRegex):(U(this,"_monthsShortRegex")||(this._monthsShortRegex=jr),this._monthsShortStrictRegex&&L?this._monthsShortStrictRegex:this._monthsShortRegex)},En.week=function(L){return Yr(L,this._week.dow,this._week.doy).week},En.firstDayOfYear=function(){return this._week.doy},En.firstDayOfWeek=function(){return this._week.dow},En.weekdays=function(L,Y){var et=b(this._weekdays)?this._weekdays:this._weekdays[L&&L!==!0&&this._weekdays.isFormat.test(Y)?"format":"standalone"];return L===!0?Hr(et,this._week.dow):L?et[L.day()]:et},En.weekdaysMin=function(L){return L===!0?Hr(this._weekdaysMin,this._week.dow):L?this._weekdaysMin[L.day()]:this._weekdaysMin},En.weekdaysShort=function(L){return L===!0?Hr(this._weekdaysShort,this._week.dow):L?this._weekdaysShort[L.day()]:this._weekdaysShort},En.weekdaysParse=function(L,Y,et){var mt,ie,Ie;if(this._weekdaysParseExact)return function($e,er,rr){var pr,_r,Sr,Ir=$e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],pr=0;pr<7;++pr)Sr=Q([2e3,1]).day(pr),this._minWeekdaysParse[pr]=this.weekdaysMin(Sr,"").toLocaleLowerCase(),this._shortWeekdaysParse[pr]=this.weekdaysShort(Sr,"").toLocaleLowerCase(),this._weekdaysParse[pr]=this.weekdays(Sr,"").toLocaleLowerCase();return rr?er==="dddd"?(_r=Nr.call(this._weekdaysParse,Ir))!==-1?_r:null:er==="ddd"?(_r=Nr.call(this._shortWeekdaysParse,Ir))!==-1?_r:null:(_r=Nr.call(this._minWeekdaysParse,Ir))!==-1?_r:null:er==="dddd"?(_r=Nr.call(this._weekdaysParse,Ir))!==-1||(_r=Nr.call(this._shortWeekdaysParse,Ir))!==-1||(_r=Nr.call(this._minWeekdaysParse,Ir))!==-1?_r:null:er==="ddd"?(_r=Nr.call(this._shortWeekdaysParse,Ir))!==-1||(_r=Nr.call(this._weekdaysParse,Ir))!==-1||(_r=Nr.call(this._minWeekdaysParse,Ir))!==-1?_r:null:(_r=Nr.call(this._minWeekdaysParse,Ir))!==-1||(_r=Nr.call(this._weekdaysParse,Ir))!==-1||(_r=Nr.call(this._shortWeekdaysParse,Ir))!==-1?_r:null}.call(this,L,Y,et);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),mt=0;mt<7;mt++)if(ie=Q([2e3,1]).day(mt),et&&!this._fullWeekdaysParse[mt]&&(this._fullWeekdaysParse[mt]=new RegExp("^"+this.weekdays(ie,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[mt]=new RegExp("^"+this.weekdaysShort(ie,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[mt]=new RegExp("^"+this.weekdaysMin(ie,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[mt]||(Ie="^"+this.weekdays(ie,"")+"|^"+this.weekdaysShort(ie,"")+"|^"+this.weekdaysMin(ie,""),this._weekdaysParse[mt]=new RegExp(Ie.replace(".",""),"i")),et&&Y==="dddd"&&this._fullWeekdaysParse[mt].test(L)||et&&Y==="ddd"&&this._shortWeekdaysParse[mt].test(L)||et&&Y==="dd"&&this._minWeekdaysParse[mt].test(L)||!et&&this._weekdaysParse[mt].test(L))return mt},En.weekdaysRegex=function(L){return this._weekdaysParseExact?(U(this,"_weekdaysRegex")||wn.call(this),L?this._weekdaysStrictRegex:this._weekdaysRegex):(U(this,"_weekdaysRegex")||(this._weekdaysRegex=Mr),this._weekdaysStrictRegex&&L?this._weekdaysStrictRegex:this._weekdaysRegex)},En.weekdaysShortRegex=function(L){return this._weekdaysParseExact?(U(this,"_weekdaysRegex")||wn.call(this),L?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(U(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=hi),this._weekdaysShortStrictRegex&&L?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},En.weekdaysMinRegex=function(L){return this._weekdaysParseExact?(U(this,"_weekdaysRegex")||wn.call(this),L?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(U(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pr),this._weekdaysMinStrictRegex&&L?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},En.isPM=function(L){return(L+"").toLowerCase().charAt(0)==="p"},En.meridiem=function(L,Y,et){return 11<L?et?"pm":"PM":et?"am":"AM"},ni("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(L){var Y=L%10;return L+(_t(L%100/10)===1?"th":Y===1?"st":Y===2?"nd":Y===3?"rd":"th")}}),x.lang=yt("moment.lang is deprecated. Use moment.locale instead.",ni),x.langData=yt("moment.langData is deprecated. Use moment.localeData instead.",fn);var Oa=Math.abs;function No(L,Y,et,mt){var ie=Jn(Y,et);return L._milliseconds+=mt*ie._milliseconds,L._days+=mt*ie._days,L._months+=mt*ie._months,L._bubble()}function _c(L){return L<0?Math.floor(L):Math.ceil(L)}function rl(L){return 4800*L/146097}function Ns(L){return 146097*L/4800}function $a(L){return function(){return this.as(L)}}var bc=$a("ms"),Da=$a("s"),vc=$a("m"),xc=$a("h"),ra=$a("d"),Ls=$a("w"),Lo=$a("M"),yi=$a("Q"),rn=$a("y");function zn(L){return function(){return this.isValid()?this._data[L]:NaN}}var Ei=zn("milliseconds"),nl=zn("seconds"),Mo=zn("minutes"),Ms=zn("hours"),Ha=zn("days"),fo=zn("months"),ss=zn("years"),Ui=Math.round,xr={ss:44,s:45,m:45,h:22,d:26,M:11},ba=Math.abs;function Wi(L){return(0<L)-(L<0)||+L}function na(){if(!this.isValid())return this.localeData().invalidDate();var L,Y,et=ba(this._milliseconds)/1e3,mt=ba(this._days),ie=ba(this._months);Y=St((L=St(et/60))/60),et%=60,L%=60;var Ie=St(ie/12),$e=ie%=12,er=mt,rr=Y,pr=L,_r=et?et.toFixed(3).replace(/\.?0+$/,""):"",Sr=this.asSeconds();if(!Sr)return"P0D";var Ir=Sr<0?"-":"",_n=Wi(this._months)!==Wi(Sr)?"-":"",sn=Wi(this._days)!==Wi(Sr)?"-":"",Vn=Wi(this._milliseconds)!==Wi(Sr)?"-":"";return Ir+"P"+(Ie?_n+Ie+"Y":"")+($e?_n+$e+"M":"")+(er?sn+er+"D":"")+(rr||pr||_r?"T":"")+(rr?Vn+rr+"H":"")+(pr?Vn+pr+"M":"")+(_r?Vn+_r+"S":"")}var tn=Pi.prototype;return tn.isValid=function(){return this._isValid},tn.abs=function(){var L=this._data;return this._milliseconds=Oa(this._milliseconds),this._days=Oa(this._days),this._months=Oa(this._months),L.milliseconds=Oa(L.milliseconds),L.seconds=Oa(L.seconds),L.minutes=Oa(L.minutes),L.hours=Oa(L.hours),L.months=Oa(L.months),L.years=Oa(L.years),this},tn.add=function(L,Y){return No(this,L,Y,1)},tn.subtract=function(L,Y){return No(this,L,Y,-1)},tn.as=function(L){if(!this.isValid())return NaN;var Y,et,mt=this._milliseconds;if((L=me(L))==="month"||L==="quarter"||L==="year")switch(Y=this._days+mt/864e5,et=this._months+rl(Y),L){case"month":return et;case"quarter":return et/3;case"year":return et/12}else switch(Y=this._days+Math.round(Ns(this._months)),L){case"week":return Y/7+mt/6048e5;case"day":return Y+mt/864e5;case"hour":return 24*Y+mt/36e5;case"minute":return 1440*Y+mt/6e4;case"second":return 86400*Y+mt/1e3;case"millisecond":return Math.floor(864e5*Y)+mt;default:throw new Error("Unknown unit "+L)}},tn.asMilliseconds=bc,tn.asSeconds=Da,tn.asMinutes=vc,tn.asHours=xc,tn.asDays=ra,tn.asWeeks=Ls,tn.asMonths=Lo,tn.asQuarters=yi,tn.asYears=rn,tn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_t(this._months/12):NaN},tn._bubble=function(){var L,Y,et,mt,ie,Ie=this._milliseconds,$e=this._days,er=this._months,rr=this._data;return 0<=Ie&&0<=$e&&0<=er||Ie<=0&&$e<=0&&er<=0||(Ie+=864e5*_c(Ns(er)+$e),er=$e=0),rr.milliseconds=Ie%1e3,L=St(Ie/1e3),rr.seconds=L%60,Y=St(L/60),rr.minutes=Y%60,et=St(Y/60),rr.hours=et%24,er+=ie=St(rl($e+=St(et/24))),$e-=_c(Ns(ie)),mt=St(er/12),er%=12,rr.days=$e,rr.months=er,rr.years=mt,this},tn.clone=function(){return Jn(this)},tn.get=function(L){return L=me(L),this.isValid()?this[L+"s"]():NaN},tn.milliseconds=Ei,tn.seconds=nl,tn.minutes=Mo,tn.hours=Ms,tn.days=Ha,tn.weeks=function(){return St(this.days()/7)},tn.months=fo,tn.years=ss,tn.humanize=function(L){if(!this.isValid())return this.localeData().invalidDate();var Y,et,mt,ie,Ie,$e,er,rr,pr,_r,Sr=this.localeData(),Ir=(Y=!L,et=Sr,mt=Jn(this).abs(),ie=Ui(mt.as("s")),Ie=Ui(mt.as("m")),$e=Ui(mt.as("h")),er=Ui(mt.as("d")),rr=Ui(mt.as("M")),pr=Ui(mt.as("y")),(_r=ie<=xr.ss&&["s",ie]||ie<xr.s&&["ss",ie]||Ie<=1&&["m"]||Ie<xr.m&&["mm",Ie]||$e<=1&&["h"]||$e<xr.h&&["hh",$e]||er<=1&&["d"]||er<xr.d&&["dd",er]||rr<=1&&["M"]||rr<xr.M&&["MM",rr]||pr<=1&&["y"]||["yy",pr])[2]=Y,_r[3]=0<+this,_r[4]=et,function(_n,sn,Vn,mi,Zn){return Zn.relativeTime(sn||1,!!Vn,_n,mi)}.apply(null,_r));return L&&(Ir=Sr.pastFuture(+this,Ir)),Sr.postformat(Ir)},tn.toISOString=na,tn.toString=na,tn.toJSON=na,tn.locale=on,tn.localeData=gi,tn.toIsoString=yt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",na),tn.lang=Hn,be("X",0,0,"unix"),be("x",0,0,"valueOf"),ve("x",ur),ve("X",/[+-]?\d+(\.\d{1,3})?/),cr("X",function(L,Y,et){et._d=new Date(1e3*parseFloat(L,10))}),cr("x",function(L,Y,et){et._d=new Date(_t(L))}),x.version="2.24.0",_=kr,x.fn=hr,x.min=function(){return ma("isBefore",[].slice.call(arguments,0))},x.max=function(){return ma("isAfter",[].slice.call(arguments,0))},x.now=function(){return Date.now?Date.now():+new Date},x.utc=Q,x.unix=function(L){return kr(1e3*L)},x.months=function(L,Y){return ho(L,Y,"months")},x.isDate=R,x.locale=ni,x.invalid=J,x.duration=Jn,x.isMoment=Ut,x.weekdays=function(L,Y,et){return Ma(L,Y,et,"weekdays")},x.parseZone=function(){return kr.apply(null,arguments).parseZone()},x.localeData=fn,x.isDuration=$n,x.monthsShort=function(L,Y){return ho(L,Y,"monthsShort")},x.weekdaysMin=function(L,Y,et){return Ma(L,Y,et,"weekdaysMin")},x.defineLocale=Ia,x.updateLocale=function(L,Y){if(Y!=null){var et,mt,ie=Dn;(mt=Fn(L))!=null&&(ie=mt._config),(et=new At(Y=G(ie,Y))).parentLocale=Xr[L],Xr[L]=et,ni(L)}else Xr[L]!=null&&(Xr[L].parentLocale!=null?Xr[L]=Xr[L].parentLocale:Xr[L]!=null&&delete Xr[L]);return Xr[L]},x.locales=function(){return rt(Xr)},x.weekdaysShort=function(L,Y,et){return Ma(L,Y,et,"weekdaysShort")},x.normalizeUnits=me,x.relativeTimeRounding=function(L){return L===void 0?Ui:typeof L=="function"&&(Ui=L,!0)},x.relativeTimeThreshold=function(L,Y){return xr[L]!==void 0&&(Y===void 0?xr[L]:(xr[L]=Y,L==="s"&&(xr.ss=Y-1),!0))},x.calendarFormat=function(L,Y){var et=L.diff(Y,"days",!0);return et<-6?"sameElse":et<-1?"lastWeek":et<0?"lastDay":et<1?"sameDay":et<2?"nextDay":et<7?"nextWeek":"sameElse"},x.prototype=hr,x.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"},x}()},6470:f=>{function v(p){if(typeof p!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(p))}function d(p,x){for(var b,A="",O=0,T=-1,R=0,F=0;F<=p.length;++F){if(F<p.length)b=p.charCodeAt(F);else{if(b===47)break;b=47}if(b===47){if(!(T===F-1||R===1))if(T!==F-1&&R===2){if(A.length<2||O!==2||A.charCodeAt(A.length-1)!==46||A.charCodeAt(A.length-2)!==46){if(A.length>2){var U=A.lastIndexOf("/");if(U!==A.length-1){U===-1?(A="",O=0):O=(A=A.slice(0,U)).length-1-A.lastIndexOf("/"),T=F,R=0;continue}}else if(A.length===2||A.length===1){A="",O=0,T=F,R=0;continue}}x&&(A.length>0?A+="/..":A="..",O=2)}else A.length>0?A+="/"+p.slice(T+1,F):A=p.slice(T+1,F),O=F-T-1;T=F,R=0}else b===46&&R!==-1?++R:R=-1}return A}var _={resolve:function(){for(var p,x="",b=!1,A=arguments.length-1;A>=-1&&!b;A--){var O;A>=0?O=arguments[A]:(p===void 0&&(p=process.cwd()),O=p),v(O),O.length!==0&&(x=O+"/"+x,b=O.charCodeAt(0)===47)}return x=d(x,!b),b?x.length>0?"/"+x:"/":x.length>0?x:"."},normalize:function(p){if(v(p),p.length===0)return".";var x=p.charCodeAt(0)===47,b=p.charCodeAt(p.length-1)===47;return(p=d(p,!x)).length!==0||x||(p="."),p.length>0&&b&&(p+="/"),x?"/"+p:p},isAbsolute:function(p){return v(p),p.length>0&&p.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var p,x=0;x<arguments.length;++x){var b=arguments[x];v(b),b.length>0&&(p===void 0?p=b:p+="/"+b)}return p===void 0?".":_.normalize(p)},relative:function(p,x){if(v(p),v(x),p===x||(p=_.resolve(p))===(x=_.resolve(x)))return"";for(var b=1;b<p.length&&p.charCodeAt(b)===47;++b);for(var A=p.length,O=A-b,T=1;T<x.length&&x.charCodeAt(T)===47;++T);for(var R=x.length-T,F=O<R?O:R,U=-1,q=0;q<=F;++q){if(q===F){if(R>F){if(x.charCodeAt(T+q)===47)return x.slice(T+q+1);if(q===0)return x.slice(T+q)}else O>F&&(p.charCodeAt(b+q)===47?U=q:q===0&&(U=0));break}var Q=p.charCodeAt(b+q);if(Q!==x.charCodeAt(T+q))break;Q===47&&(U=q)}var nt="";for(q=b+U+1;q<=A;++q)q!==A&&p.charCodeAt(q)!==47||(nt.length===0?nt+="..":nt+="/..");return nt.length>0?nt+x.slice(T+U):(T+=U,x.charCodeAt(T)===47&&++T,x.slice(T))},_makeLong:function(p){return p},dirname:function(p){if(v(p),p.length===0)return".";for(var x=p.charCodeAt(0),b=x===47,A=-1,O=!0,T=p.length-1;T>=1;--T)if((x=p.charCodeAt(T))===47){if(!O){A=T;break}}else O=!1;return A===-1?b?"/":".":b&&A===1?"//":p.slice(0,A)},basename:function(p,x){if(x!==void 0&&typeof x!="string")throw new TypeError('"ext" argument must be a string');v(p);var b,A=0,O=-1,T=!0;if(x!==void 0&&x.length>0&&x.length<=p.length){if(x.length===p.length&&x===p)return"";var R=x.length-1,F=-1;for(b=p.length-1;b>=0;--b){var U=p.charCodeAt(b);if(U===47){if(!T){A=b+1;break}}else F===-1&&(T=!1,F=b+1),R>=0&&(U===x.charCodeAt(R)?--R==-1&&(O=b):(R=-1,O=F))}return A===O?O=F:O===-1&&(O=p.length),p.slice(A,O)}for(b=p.length-1;b>=0;--b)if(p.charCodeAt(b)===47){if(!T){A=b+1;break}}else O===-1&&(T=!1,O=b+1);return O===-1?"":p.slice(A,O)},extname:function(p){v(p);for(var x=-1,b=0,A=-1,O=!0,T=0,R=p.length-1;R>=0;--R){var F=p.charCodeAt(R);if(F!==47)A===-1&&(O=!1,A=R+1),F===46?x===-1?x=R:T!==1&&(T=1):x!==-1&&(T=-1);else if(!O){b=R+1;break}}return x===-1||A===-1||T===0||T===1&&x===A-1&&x===b+1?"":p.slice(x,A)},format:function(p){if(p===null||typeof p!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof p);return function(x,b){var A=b.dir||b.root,O=b.base||(b.name||"")+(b.ext||"");return A?A===b.root?A+O:A+"/"+O:O}(0,p)},parse:function(p){v(p);var x={root:"",dir:"",base:"",ext:"",name:""};if(p.length===0)return x;var b,A=p.charCodeAt(0),O=A===47;O?(x.root="/",b=1):b=0;for(var T=-1,R=0,F=-1,U=!0,q=p.length-1,Q=0;q>=b;--q)if((A=p.charCodeAt(q))!==47)F===-1&&(U=!1,F=q+1),A===46?T===-1?T=q:Q!==1&&(Q=1):T!==-1&&(Q=-1);else if(!U){R=q+1;break}return T===-1||F===-1||Q===0||Q===1&&T===F-1&&T===R+1?F!==-1&&(x.base=x.name=R===0&&O?p.slice(1,F):p.slice(R,F)):(R===0&&O?(x.name=p.slice(1,T),x.base=p.slice(1,F)):(x.name=p.slice(R,T),x.base=p.slice(R,F)),x.ext=p.slice(T,F)),R>0?x.dir=p.slice(0,R-1):O&&(x.dir="/"),x},sep:"/",delimiter:":",win32:null,posix:null};_.posix=_,f.exports=_},555:()=>{},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{},7543:(f,v,d)=>{function _(a,o){return a==null||o==null?NaN:a<o?-1:a>o?1:a>=o?0:NaN}function p(a){let o=a,l=a,h=a;function g(y,w,k=0,S=y.length){if(k<S){if(l(w,w)!==0)return S;do{const I=k+S>>>1;h(y[I],w)<0?k=I+1:S=I}while(k<S)}return k}return a.length!==2&&(o=(y,w)=>a(y)-w,l=_,h=(y,w)=>_(a(y),w)),{left:g,center:function(y,w,k=0,S=y.length){const I=g(y,w,k,S-1);return I>k&&o(y[I-1],w)>-o(y[I],w)?I-1:I},right:function(y,w,k=0,S=y.length){if(k<S){if(l(w,w)!==0)return S;do{const I=k+S>>>1;h(y[I],w)<=0?k=I+1:S=I}while(k<S)}return k}}}function x(a){return a===null?NaN:+a}d.r(v),d.d(v,{Adder:()=>vt,Delaunay:()=>qu,FormatSpecifier:()=>$c,InternMap:()=>_t,InternSet:()=>It,Node:()=>Gc,Voronoi:()=>D1,ZoomTransform:()=>as,active:()=>ld,arc:()=>vv,area:()=>Xy,areaRadial:()=>tm,ascending:()=>_,autoType:()=>Bl,axisBottom:()=>fn,axisLeft:()=>Ai,axisRight:()=>Ia,axisTop:()=>ni,bin:()=>or,bisect:()=>R,bisectCenter:()=>T,bisectLeft:()=>O,bisectRight:()=>A,bisector:()=>p,blob:()=>ec,brush:()=>Eu,brushSelection:()=>m1,brushX:()=>_1,brushY:()=>b1,buffer:()=>V1,chord:()=>Cu,chordDirected:()=>$s,chordTranspose:()=>Iu,cluster:()=>L_,color:()=>Ir,contourDensity:()=>za,contours:()=>Zs,count:()=>F,create:()=>cv,creator:()=>No,cross:()=>nt,csv:()=>Pd,csvFormat:()=>Vu,csvFormatBody:()=>Zu,csvFormatRow:()=>z1,csvFormatRows:()=>P1,csvFormatValue:()=>Dl,csvParse:()=>xs,csvParseRows:()=>Qs,cubehelix:()=>Tn,cumsum:()=>ft,curveBasis:()=>zv,curveBasisClosed:()=>Uv,curveBasisOpen:()=>Yv,curveBumpX:()=>jv,curveBumpY:()=>$v,curveBundle:()=>Hv,curveCardinal:()=>qv,curveCardinalClosed:()=>Wv,curveCardinalOpen:()=>Gv,curveCatmullRom:()=>Vv,curveCatmullRomClosed:()=>Zv,curveCatmullRomOpen:()=>Xv,curveLinear:()=>W0,curveLinearClosed:()=>Kv,curveMonotoneX:()=>Jv,curveMonotoneY:()=>Qv,curveNatural:()=>t5,curveStep:()=>e5,curveStepAfter:()=>n5,curveStepBefore:()=>r5,descending:()=>J,deviation:()=>ot,difference:()=>On,disjoint:()=>Cn,dispatch:()=>un,drag:()=>Nd,dragDisable:()=>fo,dragEnable:()=>ss,dsv:()=>X1,dsvFormat:()=>ge,easeBack:()=>ih,easeBackIn:()=>Fd,easeBackInOut:()=>ih,easeBackOut:()=>nh,easeBounce:()=>gn,easeBounceIn:()=>Bd,easeBounceInOut:()=>Pl,easeBounceOut:()=>gn,easeCircle:()=>W1,easeCircleIn:()=>q1,easeCircleInOut:()=>W1,easeCircleOut:()=>rh,easeCubic:()=>Ys,easeCubicIn:()=>gl,easeCubicInOut:()=>Ys,easeCubicOut:()=>yl,easeElastic:()=>ks,easeElasticIn:()=>ah,easeElasticInOut:()=>oh,easeElasticOut:()=>ks,easeExp:()=>eh,easeExpIn:()=>Dd,easeExpInOut:()=>eh,easeExpOut:()=>Rd,easeLinear:()=>Fl,easePoly:()=>Ju,easePolyIn:()=>Y1,easePolyInOut:()=>Ju,easePolyOut:()=>j1,easeQuad:()=>Fc,easeQuadIn:()=>Xi,easeQuadInOut:()=>Fc,easeQuadOut:()=>Ku,easeSin:()=>th,easeSinIn:()=>H1,easeSinInOut:()=>th,easeSinOut:()=>ko,every:()=>Ur,extent:()=>st,fcumsum:()=>St,filter:()=>Yr,flatGroup:()=>Mt,flatRollup:()=>Gt,forceCenter:()=>K1,forceCollide:()=>jl,forceLink:()=>Q1,forceManyBody:()=>n0,forceRadial:()=>i0,forceSimulation:()=>r0,forceX:()=>Yc,forceY:()=>$d,format:()=>Hl,formatDefaultLocale:()=>dh,formatLocale:()=>c0,formatPrefix:()=>ql,formatSpecifier:()=>To,fsum:()=>Ut,geoAlbers:()=>Ep,geoAlbersUsa:()=>p_,geoArea:()=>Sn,geoAzimuthalEqualArea:()=>g_,geoAzimuthalEqualAreaRaw:()=>_f,geoAzimuthalEquidistant:()=>y_,geoAzimuthalEquidistantRaw:()=>bf,geoBounds:()=>Rm,geoCentroid:()=>Ym,geoCircle:()=>jm,geoClipAntimeridian:()=>Xd,geoClipCircle:()=>G2,geoClipExtent:()=>qm,geoClipRectangle:()=>p0,geoConicConformal:()=>__,geoConicConformalRaw:()=>Ap,geoConicEqualArea:()=>E0,geoConicEqualAreaRaw:()=>kp,geoConicEquidistant:()=>v_,geoConicEquidistantRaw:()=>Cp,geoContains:()=>Km,geoDistance:()=>g0,geoEqualEarth:()=>x_,geoEqualEarthRaw:()=>vf,geoEquirectangular:()=>b_,geoEquirectangularRaw:()=>Ah,geoGnomonic:()=>w_,geoGnomonicRaw:()=>xf,geoGraticule:()=>np,geoGraticule10:()=>Jm,geoIdentity:()=>k_,geoInterpolate:()=>Qm,geoLength:()=>V2,geoMercator:()=>m_,geoMercatorRaw:()=>Sh,geoNaturalEarth1:()=>E_,geoNaturalEarth1Raw:()=>wf,geoOrthographic:()=>T_,geoOrthographicRaw:()=>kf,geoPath:()=>u_,geoProjection:()=>ns,geoProjectionMutator:()=>yf,geoRotation:()=>z2,geoStereographic:()=>S_,geoStereographicRaw:()=>Ef,geoStream:()=>Nt,geoTransform:()=>h_,geoTransverseMercator:()=>A_,geoTransverseMercatorRaw:()=>Tf,gray:()=>gd,greatest:()=>Cr,greatestIndex:()=>Bt,group:()=>kt,groupSort:()=>Qe,groups:()=>G,hcl:()=>Fa,hierarchy:()=>Sf,histogram:()=>or,hsl:()=>Oo,html:()=>Ua,image:()=>Ud,index:()=>Ee,indexes:()=>pe,interpolate:()=>en,interpolateArray:()=>ed,interpolateBasis:()=>_i,interpolateBasisClosed:()=>du,interpolateBlues:()=>$4,interpolateBrBG:()=>w4,interpolateBuGn:()=>L4,interpolateBuPu:()=>M4,interpolateCividis:()=>Z4,interpolateCool:()=>J4,interpolateCubehelix:()=>s3,interpolateCubehelixDefault:()=>X4,interpolateCubehelixLong:()=>O0,interpolateDate:()=>Kh,interpolateDiscrete:()=>t3,interpolateGnBu:()=>O4,interpolateGreens:()=>H4,interpolateGreys:()=>q4,interpolateHcl:()=>a3,interpolateHclLong:()=>o3,interpolateHsl:()=>r3,interpolateHslLong:()=>n3,interpolateHue:()=>e3,interpolateInferno:()=>ov,interpolateLab:()=>i3,interpolateMagma:()=>av,interpolateNumber:()=>ua,interpolateNumberArray:()=>wc,interpolateObject:()=>ia,interpolateOrRd:()=>D4,interpolateOranges:()=>V4,interpolatePRGn:()=>k4,interpolatePiYG:()=>E4,interpolatePlasma:()=>sv,interpolatePuBu:()=>B4,interpolatePuBuGn:()=>R4,interpolatePuOr:()=>T4,interpolatePuRd:()=>F4,interpolatePurples:()=>W4,interpolateRainbow:()=>Q4,interpolateRdBu:()=>S4,interpolateRdGy:()=>A4,interpolateRdPu:()=>P4,interpolateRdYlBu:()=>C4,interpolateRdYlGn:()=>I4,interpolateReds:()=>G4,interpolateRgb:()=>Rs,interpolateRgbBasis:()=>ol,interpolateRgbBasisClosed:()=>td,interpolateRound:()=>M0,interpolateSinebow:()=>rv,interpolateSpectral:()=>N4,interpolateString:()=>qa,interpolateTransformCss:()=>i1,interpolateTransformSvg:()=>hl,interpolateTurbo:()=>nv,interpolateViridis:()=>iv,interpolateWarm:()=>K4,interpolateYlGn:()=>U4,interpolateYlGnBu:()=>z4,interpolateYlOrBr:()=>Y4,interpolateYlOrRd:()=>j4,interpolateZoom:()=>Gp,interrupt:()=>ro,intersection:()=>Mr,interval:()=>b5,isoFormat:()=>y5,isoParse:()=>_5,json:()=>Eo,lab:()=>Cl,lch:()=>jo,least:()=>nr,leastIndex:()=>Ae,line:()=>g2,lineRadial:()=>Qy,linkHorizontal:()=>Nv,linkRadial:()=>Mv,linkVertical:()=>Lv,local:()=>Wy,map:()=>$r,matcher:()=>di,max:()=>Xe,maxIndex:()=>vr,mean:()=>We,median:()=>cr,merge:()=>He,min:()=>ur,minIndex:()=>Tr,mode:()=>Qr,namespace:()=>ai,namespaces:()=>Ii,nice:()=>ye,now:()=>Sc,pack:()=>U_,packEnclose:()=>Np,packSiblings:()=>P_,pairs:()=>Nr,partition:()=>Y_,path:()=>ys,permute:()=>De,pie:()=>Ev,piecewise:()=>Kp,pointRadial:()=>qh,pointer:()=>ha,pointers:()=>uv,polygonArea:()=>l3,polygonCentroid:()=>u3,polygonContains:()=>p3,polygonHull:()=>f3,polygonLength:()=>g3,precisionFixed:()=>Wl,precisionPrefix:()=>fh,precisionRound:()=>ph,quadtree:()=>Ul,quantile:()=>Ue,quantileSorted:()=>Pe,quantize:()=>c3,quickselect:()=>Ne,radialArea:()=>tm,radialLine:()=>Qy,randomBates:()=>b3,randomBernoulli:()=>w3,randomBeta:()=>eg,randomBinomial:()=>rg,randomCauchy:()=>E3,randomExponential:()=>v3,randomGamma:()=>Df,randomGeometric:()=>tg,randomInt:()=>m3,randomIrwinHall:()=>Qp,randomLcg:()=>A3,randomLogNormal:()=>_3,randomLogistic:()=>T3,randomNormal:()=>Of,randomPareto:()=>x3,randomPoisson:()=>S3,randomUniform:()=>y3,randomWeibull:()=>k3,range:()=>Le,rank:()=>tr,reduce:()=>Hr,reverse:()=>ya,rgb:()=>mi,ribbon:()=>E1,ribbonArrow:()=>T1,rollup:()=>me,rollups:()=>Ze,scaleBand:()=>Ff,scaleDiverging:()=>yy,scaleDivergingLog:()=>my,scaleDivergingPow:()=>u2,scaleDivergingSqrt:()=>u4,scaleDivergingSymlog:()=>_y,scaleIdentity:()=>cg,scaleImplicit:()=>Rf,scaleLinear:()=>sg,scaleLog:()=>fg,scaleOrdinal:()=>Bf,scalePoint:()=>C3,scalePow:()=>$f,scaleQuantile:()=>vg,scaleQuantize:()=>xg,scaleRadial:()=>bg,scaleSequential:()=>dy,scaleSequentialLog:()=>fy,scaleSequentialPow:()=>l2,scaleSequentialQuantile:()=>gy,scaleSequentialSqrt:()=>l4,scaleSequentialSymlog:()=>py,scaleSqrt:()=>B3,scaleSymlog:()=>yg,scaleThreshold:()=>wg,scaleTime:()=>s4,scaleUtc:()=>c4,scan:()=>xn,schemeAccent:()=>d4,schemeBlues:()=>Uy,schemeBrBG:()=>by,schemeBuGn:()=>Cy,schemeBuPu:()=>Iy,schemeCategory10:()=>h4,schemeDark2:()=>f4,schemeGnBu:()=>Ny,schemeGreens:()=>Yy,schemeGreys:()=>jy,schemeOrRd:()=>Ly,schemeOranges:()=>qy,schemePRGn:()=>vy,schemePaired:()=>p4,schemePastel1:()=>g4,schemePastel2:()=>y4,schemePiYG:()=>xy,schemePuBu:()=>Oy,schemePuBuGn:()=>My,schemePuOr:()=>wy,schemePuRd:()=>Dy,schemePurples:()=>$y,schemeRdBu:()=>ky,schemeRdGy:()=>Ey,schemeRdPu:()=>Ry,schemeRdYlBu:()=>Ty,schemeRdYlGn:()=>Sy,schemeReds:()=>Hy,schemeSet1:()=>m4,schemeSet2:()=>_4,schemeSet3:()=>b4,schemeSpectral:()=>Ay,schemeTableau10:()=>x4,schemeYlGn:()=>Fy,schemeYlGnBu:()=>By,schemeYlOrBr:()=>Py,schemeYlOrRd:()=>zy,select:()=>Ei,selectAll:()=>hv,selection:()=>zn,selector:()=>Yn,selectorAll:()=>si,shuffle:()=>Vt,shuffler:()=>Wr,some:()=>Lr,sort:()=>xe,stack:()=>o5,stackOffsetDiverging:()=>c5,stackOffsetExpand:()=>s5,stackOffsetNone:()=>au,stackOffsetSilhouette:()=>l5,stackOffsetWiggle:()=>u5,stackOrderAppearance:()=>Em,stackOrderAscending:()=>Tm,stackOrderDescending:()=>d5,stackOrderInsideOut:()=>f5,stackOrderNone:()=>ou,stackOrderReverse:()=>p5,stratify:()=>q_,style:()=>on,subset:()=>Nn,sum:()=>jr,superset:()=>Pr,svg:()=>ch,symbol:()=>Pv,symbolCircle:()=>_2,symbolCross:()=>em,symbolDiamond:()=>nm,symbolSquare:()=>om,symbolStar:()=>am,symbolTriangle:()=>sm,symbolWye:()=>cm,symbols:()=>Fv,text:()=>zc,thresholdFreedmanDiaconis:()=>ve,thresholdScott:()=>oe,thresholdSturges:()=>ze,tickFormat:()=>og,tickIncrement:()=>ct,tickStep:()=>Se,ticks:()=>le,timeDay:()=>Fh,timeDays:()=>U3,timeFormat:()=>o2,timeFormatDefaultLocale:()=>hy,timeFormatLocale:()=>Zg,timeFriday:()=>Lg,timeFridays:()=>q3,timeHour:()=>Kf,timeHours:()=>z3,timeInterval:()=>ji,timeMillisecond:()=>Zf,timeMilliseconds:()=>kg,timeMinute:()=>Xf,timeMinutes:()=>P3,timeMonday:()=>Ph,timeMondays:()=>Y3,timeMonth:()=>Jf,timeMonths:()=>G3,timeParse:()=>Xg,timeSaturday:()=>Mg,timeSaturdays:()=>W3,timeSecond:()=>oc,timeSeconds:()=>Tg,timeSunday:()=>eu,timeSundays:()=>Og,timeThursday:()=>Xc,timeThursdays:()=>H3,timeTickInterval:()=>Vg,timeTicks:()=>Gg,timeTuesday:()=>Ig,timeTuesdays:()=>j3,timeWednesday:()=>Ng,timeWednesdays:()=>$3,timeWeek:()=>eu,timeWeeks:()=>Og,timeYear:()=>sc,timeYears:()=>V3,timeout:()=>ll,timer:()=>Bo,timerFlush:()=>Fs,transition:()=>fl,transpose:()=>Vr,tree:()=>Z_,treemap:()=>X_,treemapBinary:()=>K_,treemapDice:()=>Oh,treemapResquarify:()=>Q_,treemapSlice:()=>L0,treemapSliceDice:()=>J_,treemapSquarify:()=>qp,tsv:()=>zd,tsvFormat:()=>Bc,tsvFormatBody:()=>Md,tsvFormatRow:()=>Xu,tsvFormatRows:()=>U1,tsvFormatValue:()=>Rl,tsvParse:()=>Za,tsvParseRows:()=>Ld,union:()=>vn,utcDay:()=>zh,utcDays:()=>K3,utcFormat:()=>F0,utcFriday:()=>Ug,utcFridays:()=>rb,utcHour:()=>e2,utcHours:()=>X3,utcMillisecond:()=>Zf,utcMilliseconds:()=>kg,utcMinute:()=>t2,utcMinutes:()=>Z3,utcMonday:()=>Uh,utcMondays:()=>J3,utcMonth:()=>r2,utcMonths:()=>ib,utcParse:()=>s2,utcSaturday:()=>Yg,utcSaturdays:()=>nb,utcSecond:()=>oc,utcSeconds:()=>Tg,utcSunday:()=>ru,utcSundays:()=>jg,utcThursday:()=>Jc,utcThursdays:()=>eb,utcTickInterval:()=>Wg,utcTicks:()=>qg,utcTuesday:()=>Pg,utcTuesdays:()=>Q3,utcWednesday:()=>zg,utcWednesdays:()=>tb,utcWeek:()=>ru,utcWeeks:()=>jg,utcYear:()=>cc,utcYears:()=>ab,variance:()=>bt,window:()=>Hi,xml:()=>Es,zip:()=>Zr,zoom:()=>S5,zoomIdentity:()=>Q0,zoomTransform:()=>Cm});const b=p(_),A=b.right,O=b.left,T=p(x).center,R=A;function F(a,o){let l=0;if(o===void 0)for(let h of a)h!=null&&(h=+h)>=h&&++l;else{let h=-1;for(let g of a)(g=o(g,++h,a))!=null&&(g=+g)>=g&&++l}return l}function U(a){return 0|a.length}function q(a){return!(a>0)}function Q(a){return typeof a!="object"||"length"in a?a:Array.from(a)}function nt(...a){const o=typeof a[a.length-1]=="function"&&function(w){return k=>w(...k)}(a.pop()),l=(a=a.map(Q)).map(U),h=a.length-1,g=new Array(h+1).fill(0),y=[];if(h<0||l.some(q))return y;for(;;){y.push(g.map((k,S)=>a[S][k]));let w=h;for(;++g[w]===l[w];){if(w===0)return o?y.map(o):y;g[w--]=0}}}function ft(a,o){var l=0,h=0;return Float64Array.from(a,o===void 0?g=>l+=+g||0:g=>l+=+o(g,h++,a)||0)}function J(a,o){return a==null||o==null?NaN:o<a?-1:o>a?1:o>=a?0:NaN}function bt(a,o){let l,h=0,g=0,y=0;if(o===void 0)for(let w of a)w!=null&&(w=+w)>=w&&(l=w-g,g+=l/++h,y+=l*(w-g));else{let w=-1;for(let k of a)(k=o(k,++w,a))!=null&&(k=+k)>=k&&(l=k-g,g+=l/++h,y+=l*(k-g))}if(h>1)return y/(h-1)}function ot(a,o){const l=bt(a,o);return l&&Math.sqrt(l)}function st(a,o){let l,h;if(o===void 0)for(const g of a)g!=null&&(l===void 0?g>=g&&(l=h=g):(l>g&&(l=g),h<g&&(h=g)));else{let g=-1;for(let y of a)(y=o(y,++g,a))!=null&&(l===void 0?y>=y&&(l=h=y):(l>y&&(l=y),h<y&&(h=y)))}return[l,h]}class vt{constructor(){this._partials=new Float64Array(32),this._n=0}add(o){const l=this._partials;let h=0;for(let g=0;g<this._n&&g<32;g++){const y=l[g],w=o+y,k=Math.abs(o)<Math.abs(y)?o-(w-y):y-(w-o);k&&(l[h++]=k),o=w}return l[h]=o,this._n=h+1,this}valueOf(){const o=this._partials;let l,h,g,y=this._n,w=0;if(y>0){for(w=o[--y];y>0&&(l=w,h=o[--y],w=l+h,g=h-(w-l),!g););y>0&&(g<0&&o[y-1]<0||g>0&&o[y-1]>0)&&(h=2*g,l=w+h,h==l-w&&(w=l))}return w}}function Ut(a,o){const l=new vt;if(o===void 0)for(let h of a)(h=+h)&&l.add(h);else{let h=-1;for(let g of a)(g=+o(g,++h,a))&&l.add(g)}return+l}function St(a,o){const l=new vt;let h=-1;return Float64Array.from(a,o===void 0?g=>l.add(+g||0):g=>l.add(+o(g,++h,a)||0))}class _t extends Map{constructor(o,l=pt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:l}}),o!=null)for(const[h,g]of o)this.set(h,g)}get(o){return super.get(wt(this,o))}has(o){return super.has(wt(this,o))}set(o,l){return super.set(yt(this,o),l)}delete(o){return super.delete(rt(this,o))}}class It extends Set{constructor(o,l=pt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:l}}),o!=null)for(const h of o)this.add(h)}has(o){return super.has(wt(this,o))}add(o){return super.add(yt(this,o))}delete(o){return super.delete(rt(this,o))}}function wt({_intern:a,_key:o},l){const h=o(l);return a.has(h)?a.get(h):l}function yt({_intern:a,_key:o},l){const h=o(l);return a.has(h)?a.get(h):(a.set(h,l),l)}function rt({_intern:a,_key:o},l){const h=o(l);return a.has(h)&&(l=a.get(h),a.delete(h)),l}function pt(a){return a!==null&&typeof a=="object"?a.valueOf():a}function W(a){return a}function kt(a,...o){return Oe(a,W,W,o)}function G(a,...o){return Oe(a,Array.from,W,o)}function At(a,o){for(let l=1,h=o.length;l<h;++l)a=a.flatMap(g=>g.pop().map(([y,w])=>[...g,y,w]));return a}function Mt(a,...o){return At(G(a,...o),o)}function Gt(a,o,...l){return At(Ze(a,o,...l),l)}function me(a,o,...l){return Oe(a,W,o,l)}function Ze(a,o,...l){return Oe(a,Array.from,o,l)}function Ee(a,...o){return Oe(a,W,we,o)}function pe(a,...o){return Oe(a,Array.from,we,o)}function we(a){if(a.length!==1)throw new Error("duplicate key");return a[0]}function Oe(a,o,l,h){return function g(y,w){if(w>=h.length)return l(y);const k=new _t,S=h[w++];let I=-1;for(const B of y){const $=S(B,++I,y),P=k.get($);P?P.push(B):k.set($,[B])}for(const[B,$]of k)k.set(B,g($,w));return o(k)}(a,0)}function De(a,o){return Array.from(o,l=>a[l])}function xe(a,...o){if(typeof a[Symbol.iterator]!="function")throw new TypeError("values is not iterable");a=Array.from(a);let[l]=o;if(l&&l.length!==2||o.length>1){const h=Uint32Array.from(a,(g,y)=>y);return o.length>1?(o=o.map(g=>a.map(g)),h.sort((g,y)=>{for(const w of o){const k=be(w[g],w[y]);if(k)return k}})):(l=a.map(l),h.sort((g,y)=>be(l[g],l[y]))),De(a,h)}return a.sort(Ar(l))}function Ar(a=_){if(a===_)return be;if(typeof a!="function")throw new TypeError("compare is not a function");return(o,l)=>{const h=a(o,l);return h||h===0?h:(a(l,l)===0)-(a(o,o)===0)}}function be(a,o){return(a==null||!(a>=a))-(o==null||!(o>=o))||(a<o?-1:a>o?1:0)}function Qe(a,o,l){return(o.length!==2?xe(me(a,o,l),([h,g],[y,w])=>_(g,w)||_(h,y)):xe(kt(a,l),([h,g],[y,w])=>o(g,w)||_(h,y))).map(([h])=>h)}var Rt=Array.prototype,de=Rt.slice;function ne(a){return()=>a}var Ct=Math.sqrt(50),Te=Math.sqrt(10),tt=Math.sqrt(2);function le(a,o,l){var h,g,y,w,k=-1;if(l=+l,(a=+a)==(o=+o)&&l>0)return[a];if((h=o<a)&&(g=a,a=o,o=g),(w=ct(a,o,l))===0||!isFinite(w))return[];if(w>0){let S=Math.round(a/w),I=Math.round(o/w);for(S*w<a&&++S,I*w>o&&--I,y=new Array(g=I-S+1);++k<g;)y[k]=(S+k)*w}else{w=-w;let S=Math.round(a*w),I=Math.round(o*w);for(S/w<a&&++S,I/w>o&&--I,y=new Array(g=I-S+1);++k<g;)y[k]=(S+k)/w}return h&&y.reverse(),y}function ct(a,o,l){var h=(o-a)/Math.max(0,l),g=Math.floor(Math.log(h)/Math.LN10),y=h/Math.pow(10,g);return g>=0?(y>=Ct?10:y>=Te?5:y>=tt?2:1)*Math.pow(10,g):-Math.pow(10,-g)/(y>=Ct?10:y>=Te?5:y>=tt?2:1)}function Se(a,o,l){var h=Math.abs(o-a)/Math.max(0,l),g=Math.pow(10,Math.floor(Math.log(h)/Math.LN10)),y=h/g;return y>=Ct?g*=10:y>=Te?g*=5:y>=tt&&(g*=2),o<a?-g:g}function ye(a,o,l){let h;for(;;){const g=ct(a,o,l);if(g===h||g===0||!isFinite(g))return[a,o];g>0?(a=Math.floor(a/g)*g,o=Math.ceil(o/g)*g):g<0&&(a=Math.ceil(a*g)/g,o=Math.floor(o*g)/g),h=g}}function ze(a){return Math.ceil(Math.log(F(a))/Math.LN2)+1}function or(){var a=W,o=st,l=ze;function h(g){Array.isArray(g)||(g=Array.from(g));var y,w,k=g.length,S=new Array(k);for(y=0;y<k;++y)S[y]=a(g[y],y,g);var I=o(S),B=I[0],$=I[1],P=l(S,B,$);if(!Array.isArray(P)){const Z=$,K=+P;if(o===st&&([B,$]=ye(B,$,K)),(P=le(B,$,K))[P.length-1]>=$)if(Z>=$&&o===st){const gt=ct(B,$,K);isFinite(gt)&&(gt>0?$=(Math.floor($/gt)+1)*gt:gt<0&&($=(Math.ceil($*-gt)+1)/-gt))}else P.pop()}for(var H=P.length;P[0]<=B;)P.shift(),--H;for(;P[H-1]>$;)P.pop(),--H;var at,V=new Array(H+1);for(y=0;y<=H;++y)(at=V[y]=[]).x0=y>0?P[y-1]:B,at.x1=y<H?P[y]:$;for(y=0;y<k;++y)(w=S[y])!=null&&B<=w&&w<=$&&V[R(P,w,0,H)].push(g[y]);return V}return h.value=function(g){return arguments.length?(a=typeof g=="function"?g:ne(g),h):a},h.domain=function(g){return arguments.length?(o=typeof g=="function"?g:ne([g[0],g[1]]),h):o},h.thresholds=function(g){return arguments.length?(l=typeof g=="function"?g:Array.isArray(g)?ne(de.call(g)):ne(g),h):l},h}function Xe(a,o){let l;if(o===void 0)for(const h of a)h!=null&&(l<h||l===void 0&&h>=h)&&(l=h);else{let h=-1;for(let g of a)(g=o(g,++h,a))!=null&&(l<g||l===void 0&&g>=g)&&(l=g)}return l}function ur(a,o){let l;if(o===void 0)for(const h of a)h!=null&&(l>h||l===void 0&&h>=h)&&(l=h);else{let h=-1;for(let g of a)(g=o(g,++h,a))!=null&&(l>g||l===void 0&&g>=g)&&(l=g)}return l}function Ne(a,o,l=0,h=a.length-1,g){for(g=g===void 0?be:Ar(g);h>l;){if(h-l>600){const S=h-l+1,I=o-l+1,B=Math.log(S),$=.5*Math.exp(2*B/3),P=.5*Math.sqrt(B*$*(S-$)/S)*(I-S/2<0?-1:1);Ne(a,o,Math.max(l,Math.floor(o-I*$/S+P)),Math.min(h,Math.floor(o+(S-I)*$/S+P)),g)}const y=a[o];let w=l,k=h;for(Be(a,l,o),g(a[h],y)>0&&Be(a,l,h);w<k;){for(Be(a,w,k),++w,--k;g(a[w],y)<0;)++w;for(;g(a[k],y)>0;)--k}g(a[l],y)===0?Be(a,l,k):(++k,Be(a,k,h)),k<=o&&(l=k+1),o<=k&&(h=k-1)}return a}function Be(a,o,l){const h=a[o];a[o]=a[l],a[l]=h}function Ue(a,o,l){if(a=Float64Array.from(function*(k,S){if(S===void 0)for(let I of k)I!=null&&(I=+I)>=I&&(yield I);else{let I=-1;for(let B of k)(B=S(B,++I,k))!=null&&(B=+B)>=B&&(yield B)}}(a,l)),h=a.length){if((o=+o)<=0||h<2)return ur(a);if(o>=1)return Xe(a);var h,g=(h-1)*o,y=Math.floor(g),w=Xe(Ne(a,y).subarray(0,y+1));return w+(ur(a.subarray(y+1))-w)*(g-y)}}function Pe(a,o,l=x){if(h=a.length){if((o=+o)<=0||h<2)return+l(a[0],0,a);if(o>=1)return+l(a[h-1],h-1,a);var h,g=(h-1)*o,y=Math.floor(g),w=+l(a[y],y,a);return w+(+l(a[y+1],y+1,a)-w)*(g-y)}}function ve(a,o,l){return Math.ceil((l-o)/(2*(Ue(a,.75)-Ue(a,.25))*Math.pow(F(a),-1/3)))}function oe(a,o,l){return Math.ceil((l-o)/(3.5*ot(a)*Math.pow(F(a),-1/3)))}function vr(a,o){let l,h=-1,g=-1;if(o===void 0)for(const y of a)++g,y!=null&&(l<y||l===void 0&&y>=y)&&(l=y,h=g);else for(let y of a)(y=o(y,++g,a))!=null&&(l<y||l===void 0&&y>=y)&&(l=y,h=g);return h}function We(a,o){let l=0,h=0;if(o===void 0)for(let g of a)g!=null&&(g=+g)>=g&&(++l,h+=g);else{let g=-1;for(let y of a)(y=o(y,++g,a))!=null&&(y=+y)>=y&&(++l,h+=y)}if(l)return h/l}function cr(a,o){return Ue(a,.5,o)}function He(a){return Array.from(function*(o){for(const l of o)yield*l}(a))}function Tr(a,o){let l,h=-1,g=-1;if(o===void 0)for(const y of a)++g,y!=null&&(l>y||l===void 0&&y>=y)&&(l=y,h=g);else for(let y of a)(y=o(y,++g,a))!=null&&(l>y||l===void 0&&y>=y)&&(l=y,h=g);return h}function Qr(a,o){const l=new _t;if(o===void 0)for(let y of a)y!=null&&y>=y&&l.set(y,(l.get(y)||0)+1);else{let y=-1;for(let w of a)(w=o(w,++y,a))!=null&&w>=w&&l.set(w,(l.get(w)||0)+1)}let h,g=0;for(const[y,w]of l)w>g&&(g=w,h=y);return h}function Nr(a,o=Fr){const l=[];let h,g=!1;for(const y of a)g&&l.push(o(h,y)),h=y,g=!0;return l}function Fr(a,o){return[a,o]}function Le(a,o,l){a=+a,o=+o,l=(g=arguments.length)<2?(o=a,a=0,1):g<3?1:+l;for(var h=-1,g=0|Math.max(0,Math.ceil((o-a)/l)),y=new Array(g);++h<g;)y[h]=a+h*l;return y}function tr(a,o=_){if(typeof a[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let l=Array.from(a);const h=new Float64Array(l.length);o.length!==2&&(l=l.map(o),o=_);const g=(k,S)=>o(l[k],l[S]);let y,w;return Uint32Array.from(l,(k,S)=>S).sort(o===_?(k,S)=>be(l[k],l[S]):Ar(g)).forEach((k,S)=>{const I=g(k,y===void 0?k:y);I>=0?((y===void 0||I>0)&&(y=k,w=S),h[k]=w):h[k]=NaN}),h}function nr(a,o=_){let l,h=!1;if(o.length===1){let g;for(const y of a){const w=o(y);(h?_(w,g)<0:_(w,w)===0)&&(l=y,g=w,h=!0)}}else for(const g of a)(h?o(g,l)<0:o(g,g)===0)&&(l=g,h=!0);return l}function Ae(a,o=_){if(o.length===1)return Tr(a,o);let l,h=-1,g=-1;for(const y of a)++g,(h<0?o(y,y)===0:o(y,l)<0)&&(l=y,h=g);return h}function Cr(a,o=_){let l,h=!1;if(o.length===1){let g;for(const y of a){const w=o(y);(h?_(w,g)>0:_(w,w)===0)&&(l=y,g=w,h=!0)}}else for(const g of a)(h?o(g,l)>0:o(g,g)===0)&&(l=g,h=!0);return l}function Bt(a,o=_){if(o.length===1)return vr(a,o);let l,h=-1,g=-1;for(const y of a)++g,(h<0?o(y,y)===0:o(y,l)>0)&&(l=y,h=g);return h}function xn(a,o){const l=Ae(a,o);return l<0?void 0:l}const Vt=Wr(Math.random);function Wr(a){return function(o,l=0,h=o.length){let g=h-(l=+l);for(;g;){const y=a()*g--|0,w=o[g+l];o[g+l]=o[y+l],o[y+l]=w}return o}}function jr(a,o){let l=0;if(o===void 0)for(let h of a)(h=+h)&&(l+=h);else{let h=-1;for(let g of a)(g=+o(g,++h,a))&&(l+=g)}return l}function Vr(a){if(!(g=a.length))return[];for(var o=-1,l=ur(a,Rr),h=new Array(l);++o<l;)for(var g,y=-1,w=h[o]=new Array(g);++y<g;)w[y]=a[y][o];return h}function Rr(a){return a.length}function Zr(){return Vr(arguments)}function Ur(a,o){if(typeof o!="function")throw new TypeError("test is not a function");let l=-1;for(const h of a)if(!o(h,++l,a))return!1;return!0}function Lr(a,o){if(typeof o!="function")throw new TypeError("test is not a function");let l=-1;for(const h of a)if(o(h,++l,a))return!0;return!1}function Yr(a,o){if(typeof o!="function")throw new TypeError("test is not a function");const l=[];let h=-1;for(const g of a)o(g,++h,a)&&l.push(g);return l}function $r(a,o){if(typeof a[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof o!="function")throw new TypeError("mapper is not a function");return Array.from(a,(l,h)=>o(l,h,a))}function Hr(a,o,l){if(typeof o!="function")throw new TypeError("reducer is not a function");const h=a[Symbol.iterator]();let g,y,w=-1;if(arguments.length<3){if({done:g,value:l}=h.next(),g)return;++w}for(;{done:g,value:y}=h.next(),!g;)l=o(l,y,++w,a);return l}function ya(a){if(typeof a[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(a).reverse()}function On(a,...o){a=new It(a);for(const l of o)for(const h of l)a.delete(h);return a}function Cn(a,o){const l=o[Symbol.iterator](),h=new It;for(const g of a){if(h.has(g))return!1;let y,w;for(;({value:y,done:w}=l.next())&&!w;){if(Object.is(g,y))return!1;h.add(y)}}return!0}function Mr(a,...o){a=new It(a),o=o.map(hi);t:for(const l of a)for(const h of o)if(!h.has(l)){a.delete(l);continue t}return a}function hi(a){return a instanceof It?a:new It(a)}function Pr(a,o){const l=a[Symbol.iterator](),h=new Set;for(const g of o){const y=wn(g);if(h.has(y))continue;let w,k;for(;{value:w,done:k}=l.next();){if(k)return!1;const S=wn(w);if(h.add(S),Object.is(y,S))break}}return!0}function wn(a){return a!==null&&typeof a=="object"?a.valueOf():a}function Nn(a,o){return Pr(o,a)}function vn(...a){const o=new It;for(const l of a)for(const h of l)o.add(h);return o}function Kn(a){return a}var Ft=1e-6;function Ln(a){return"translate("+a+",0)"}function Dn(a){return"translate(0,"+a+")"}function Xr(a){return o=>+a(o)}function ri(a,o){return o=Math.max(0,a.bandwidth()-2*o)/2,a.round()&&(o=Math.round(o)),l=>+a(l)+o}function qn(){return!this.__axis}function Fn(a,o){var l=[],h=null,g=null,y=6,w=6,k=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,I=a===1||a===4?-1:1,B=a===4||a===2?"x":"y",$=a===1||a===3?Ln:Dn;function P(H){var at=h==null?o.ticks?o.ticks.apply(o,l):o.domain():h,V=g==null?o.tickFormat?o.tickFormat.apply(o,l):Kn:g,Z=Math.max(y,0)+k,K=o.range(),gt=+K[0]+S,ht=+K[K.length-1]+S,dt=(o.bandwidth?ri:Xr)(o.copy(),S),xt=H.selection?H.selection():H,Et=xt.selectAll(".domain").data([null]),re=xt.selectAll(".tick").data(at,o).order(),_e=re.exit(),Zt=re.enter().append("g").attr("class","tick"),$t=re.select("line"),Ht=re.select("text");Et=Et.merge(Et.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),re=re.merge(Zt),$t=$t.merge(Zt.append("line").attr("stroke","currentColor").attr(B+"2",I*y)),Ht=Ht.merge(Zt.append("text").attr("fill","currentColor").attr(B,I*Z).attr("dy",a===1?"0em":a===3?"0.71em":"0.32em")),H!==xt&&(Et=Et.transition(H),re=re.transition(H),$t=$t.transition(H),Ht=Ht.transition(H),_e=_e.transition(H).attr("opacity",Ft).attr("transform",function(Wt){return isFinite(Wt=dt(Wt))?$(Wt+S):this.getAttribute("transform")}),Zt.attr("opacity",Ft).attr("transform",function(Wt){var Tt=this.parentNode.__axis;return $((Tt&&isFinite(Tt=Tt(Wt))?Tt:dt(Wt))+S)})),_e.remove(),Et.attr("d",a===4||a===2?w?"M"+I*w+","+gt+"H"+S+"V"+ht+"H"+I*w:"M"+S+","+gt+"V"+ht:w?"M"+gt+","+I*w+"V"+S+"H"+ht+"V"+I*w:"M"+gt+","+S+"H"+ht),re.attr("opacity",1).attr("transform",function(Wt){return $(dt(Wt)+S)}),$t.attr(B+"2",I*y),Ht.attr(B,I*Z).text(V),xt.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",a===2?"start":a===4?"end":"middle"),xt.each(function(){this.__axis=dt})}return P.scale=function(H){return arguments.length?(o=H,P):o},P.ticks=function(){return l=Array.from(arguments),P},P.tickArguments=function(H){return arguments.length?(l=H==null?[]:Array.from(H),P):l.slice()},P.tickValues=function(H){return arguments.length?(h=H==null?null:Array.from(H),P):h&&h.slice()},P.tickFormat=function(H){return arguments.length?(g=H,P):g},P.tickSize=function(H){return arguments.length?(y=w=+H,P):y},P.tickSizeInner=function(H){return arguments.length?(y=+H,P):y},P.tickSizeOuter=function(H){return arguments.length?(w=+H,P):w},P.tickPadding=function(H){return arguments.length?(k=+H,P):k},P.offset=function(H){return arguments.length?(S=+H,P):S},P}function ni(a){return Fn(1,a)}function Ia(a){return Fn(2,a)}function fn(a){return Fn(3,a)}function Ai(a){return Fn(4,a)}var Bi={value:()=>{}};function Ci(){for(var a,o=0,l=arguments.length,h={};o<l;++o){if(!(a=arguments[o]+"")||a in h||/[\s.]/.test(a))throw new Error("illegal type: "+a);h[a]=[]}return new fr(h)}function fr(a){this._=a}function mr(a,o){return a.trim().split(/^|\s+/).map(function(l){var h="",g=l.indexOf(".");if(g>=0&&(h=l.slice(g+1),l=l.slice(0,g)),l&&!o.hasOwnProperty(l))throw new Error("unknown type: "+l);return{type:l,name:h}})}function Kr(a,o){for(var l,h=0,g=a.length;h<g;++h)if((l=a[h]).name===o)return l.value}function ir(a,o,l){for(var h=0,g=a.length;h<g;++h)if(a[h].name===o){a[h]=Bi,a=a.slice(0,h).concat(a.slice(h+1));break}return l!=null&&a.push({name:o,value:l}),a}fr.prototype=Ci.prototype={constructor:fr,on:function(a,o){var l,h=this._,g=mr(a+"",h),y=-1,w=g.length;if(!(arguments.length<2)){if(o!=null&&typeof o!="function")throw new Error("invalid callback: "+o);for(;++y<w;)if(l=(a=g[y]).type)h[l]=ir(h[l],a.name,o);else if(o==null)for(l in h)h[l]=ir(h[l],a.name,null);return this}for(;++y<w;)if((l=(a=g[y]).type)&&(l=Kr(h[l],a.name)))return l},copy:function(){var a={},o=this._;for(var l in o)a[l]=o[l].slice();return new fr(a)},call:function(a,o){if((l=arguments.length-2)>0)for(var l,h,g=new Array(l),y=0;y<l;++y)g[y]=arguments[y+2];if(!this._.hasOwnProperty(a))throw new Error("unknown type: "+a);for(y=0,l=(h=this._[a]).length;y<l;++y)h[y].value.apply(o,g)},apply:function(a,o,l){if(!this._.hasOwnProperty(a))throw new Error("unknown type: "+a);for(var h=this._[a],g=0,y=h.length;g<y;++g)h[g].value.apply(o,l)}};const un=Ci;function Xt(){}function Yn(a){return a==null?Xt:function(){return this.querySelector(a)}}function ee(a){return a==null?[]:Array.isArray(a)?a:Array.from(a)}function kn(){return[]}function si(a){return a==null?kn:function(){return this.querySelectorAll(a)}}function di(a){return function(){return this.matches(a)}}function Na(a){return function(o){return o.matches(a)}}var Fi=Array.prototype.find;function kr(){return this.firstElementChild}var jn=Array.prototype.filter;function Br(){return Array.from(this.children)}function ma(a){return new Array(a.length)}function Pn(a,o){this.ownerDocument=a.ownerDocument,this.namespaceURI=a.namespaceURI,this._next=null,this._parent=a,this.__data__=o}function Pi(a){return function(){return a}}function $n(a,o,l,h,g,y){for(var w,k=0,S=o.length,I=y.length;k<I;++k)(w=o[k])?(w.__data__=y[k],h[k]=w):l[k]=new Pn(a,y[k]);for(;k<S;++k)(w=o[k])&&(g[k]=w)}function mn(a,o,l,h,g,y,w){var k,S,I,B=new Map,$=o.length,P=y.length,H=new Array($);for(k=0;k<$;++k)(S=o[k])&&(H[k]=I=w.call(S,S.__data__,k,o)+"",B.has(I)?g[k]=S:B.set(I,S));for(k=0;k<P;++k)I=w.call(a,y[k],k,y)+"",(S=B.get(I))?(h[k]=S,S.__data__=y[k],B.delete(I)):l[k]=new Pn(a,y[k]);for(k=0;k<$;++k)(S=o[k])&&B.get(H[k])===S&&(g[k]=S)}function ki(a){return a.__data__}function Wn(a){return typeof a=="object"&&"length"in a?a:Array.from(a)}function ii(a,o){return a<o?-1:a>o?1:a>=o?0:NaN}Pn.prototype={constructor:Pn,appendChild:function(a){return this._parent.insertBefore(a,this._next)},insertBefore:function(a,o){return this._parent.insertBefore(a,o)},querySelector:function(a){return this._parent.querySelector(a)},querySelectorAll:function(a){return this._parent.querySelectorAll(a)}};var Qi="http://www.w3.org/1999/xhtml";const Ii={svg:"http://www.w3.org/2000/svg",xhtml:Qi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ai(a){var o=a+="",l=o.indexOf(":");return l>=0&&(o=a.slice(0,l))!=="xmlns"&&(a=a.slice(l+1)),Ii.hasOwnProperty(o)?{space:Ii[o],local:a}:a}function _a(a){return function(){this.removeAttribute(a)}}function Gn(a){return function(){this.removeAttributeNS(a.space,a.local)}}function Jn(a,o){return function(){this.setAttribute(a,o)}}function ci(a,o){return function(){this.setAttributeNS(a.space,a.local,o)}}function zi(a,o){return function(){var l=o.apply(this,arguments);l==null?this.removeAttribute(a):this.setAttribute(a,l)}}function Io(a,o){return function(){var l=o.apply(this,arguments);l==null?this.removeAttributeNS(a.space,a.local):this.setAttributeNS(a.space,a.local,l)}}function Hi(a){return a.ownerDocument&&a.ownerDocument.defaultView||a.document&&a||a.defaultView}function Qt(a){return function(){this.style.removeProperty(a)}}function Er(a,o,l){return function(){this.style.setProperty(a,o,l)}}function sr(a,o,l){return function(){var h=o.apply(this,arguments);h==null?this.style.removeProperty(a):this.style.setProperty(a,h,l)}}function on(a,o){return a.style.getPropertyValue(o)||Hi(a).getComputedStyle(a,null).getPropertyValue(o)}function Hn(a){return function(){delete this[a]}}function gi(a,o){return function(){this[a]=o}}function Qn(a,o){return function(){var l=o.apply(this,arguments);l==null?delete this[a]:this[a]=l}}function qi(a){return a.trim().split(/^|\s+/)}function ta(a){return a.classList||new fi(a)}function fi(a){this._node=a,this._names=qi(a.getAttribute("class")||"")}function Ja(a,o){for(var l=ta(a),h=-1,g=o.length;++h<g;)l.add(o[h])}function os(a,o){for(var l=ta(a),h=-1,g=o.length;++h<g;)l.remove(o[h])}function gc(a){return function(){Ja(this,a)}}function el(a){return function(){os(this,a)}}function La(a,o){return function(){(o.apply(this,arguments)?Ja:os)(this,a)}}function Is(){this.textContent=""}function cu(a){return function(){this.textContent=a}}function yc(a){return function(){var o=a.apply(this,arguments);this.textContent=o==null?"":o}}function hr(){this.innerHTML=""}function mc(a){return function(){this.innerHTML=a}}function En(a){return function(){var o=a.apply(this,arguments);this.innerHTML=o==null?"":o}}function ea(){this.nextSibling&&this.parentNode.appendChild(this)}function ho(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ma(a){return function(){var o=this.ownerDocument,l=this.namespaceURI;return l===Qi&&o.documentElement.namespaceURI===Qi?o.createElement(a):o.createElementNS(l,a)}}function Oa(a){return function(){return this.ownerDocument.createElementNS(a.space,a.local)}}function No(a){var o=ai(a);return(o.local?Oa:Ma)(o)}function _c(){return null}function rl(){var a=this.parentNode;a&&a.removeChild(this)}function Ns(){var a=this.cloneNode(!1),o=this.parentNode;return o?o.insertBefore(a,this.nextSibling):a}function $a(){var a=this.cloneNode(!0),o=this.parentNode;return o?o.insertBefore(a,this.nextSibling):a}function bc(a){return a.trim().split(/^|\s+/).map(function(o){var l="",h=o.indexOf(".");return h>=0&&(l=o.slice(h+1),o=o.slice(0,h)),{type:o,name:l}})}function Da(a){return function(){var o=this.__on;if(o){for(var l,h=0,g=-1,y=o.length;h<y;++h)l=o[h],a.type&&l.type!==a.type||l.name!==a.name?o[++g]=l:this.removeEventListener(l.type,l.listener,l.options);++g?o.length=g:delete this.__on}}}function vc(a,o,l){return function(){var h,g=this.__on,y=function(S){return function(I){S.call(this,I,this.__data__)}}(o);if(g){for(var w=0,k=g.length;w<k;++w)if((h=g[w]).type===a.type&&h.name===a.name)return this.removeEventListener(h.type,h.listener,h.options),this.addEventListener(h.type,h.listener=y,h.options=l),void(h.value=o)}this.addEventListener(a.type,y,l),h={type:a.type,name:a.name,value:o,listener:y,options:l},g?g.push(h):this.__on=[h]}}function xc(a,o,l){var h=Hi(a),g=h.CustomEvent;typeof g=="function"?g=new g(o,l):(g=h.document.createEvent("Event"),l?(g.initEvent(o,l.bubbles,l.cancelable),g.detail=l.detail):g.initEvent(o,!1,!1)),a.dispatchEvent(g)}function ra(a,o){return function(){return xc(this,a,o)}}function Ls(a,o){return function(){return xc(this,a,o.apply(this,arguments))}}fi.prototype={add:function(a){this._names.indexOf(a)<0&&(this._names.push(a),this._node.setAttribute("class",this._names.join(" ")))},remove:function(a){var o=this._names.indexOf(a);o>=0&&(this._names.splice(o,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(a){return this._names.indexOf(a)>=0}};var Lo=[null];function yi(a,o){this._groups=a,this._parents=o}function rn(){return new yi([[document.documentElement]],Lo)}yi.prototype=rn.prototype={constructor:yi,select:function(a){typeof a!="function"&&(a=Yn(a));for(var o=this._groups,l=o.length,h=new Array(l),g=0;g<l;++g)for(var y,w,k=o[g],S=k.length,I=h[g]=new Array(S),B=0;B<S;++B)(y=k[B])&&(w=a.call(y,y.__data__,B,k))&&("__data__"in y&&(w.__data__=y.__data__),I[B]=w);return new yi(h,this._parents)},selectAll:function(a){a=typeof a=="function"?function(B){return function(){return ee(B.apply(this,arguments))}}(a):si(a);for(var o=this._groups,l=o.length,h=[],g=[],y=0;y<l;++y)for(var w,k=o[y],S=k.length,I=0;I<S;++I)(w=k[I])&&(h.push(a.call(w,w.__data__,I,k)),g.push(w));return new yi(h,g)},selectChild:function(a){return this.select(a==null?kr:function(o){return function(){return Fi.call(this.children,o)}}(typeof a=="function"?a:Na(a)))},selectChildren:function(a){return this.selectAll(a==null?Br:function(o){return function(){return jn.call(this.children,o)}}(typeof a=="function"?a:Na(a)))},filter:function(a){typeof a!="function"&&(a=di(a));for(var o=this._groups,l=o.length,h=new Array(l),g=0;g<l;++g)for(var y,w=o[g],k=w.length,S=h[g]=[],I=0;I<k;++I)(y=w[I])&&a.call(y,y.__data__,I,w)&&S.push(y);return new yi(h,this._parents)},data:function(a,o){if(!arguments.length)return Array.from(this,ki);var l=o?mn:$n,h=this._parents,g=this._groups;typeof a!="function"&&(a=Pi(a));for(var y=g.length,w=new Array(y),k=new Array(y),S=new Array(y),I=0;I<y;++I){var B=h[I],$=g[I],P=$.length,H=Wn(a.call(B,B&&B.__data__,I,h)),at=H.length,V=k[I]=new Array(at),Z=w[I]=new Array(at),K=S[I]=new Array(P);l(B,$,V,Z,K,H,o);for(var gt,ht,dt=0,xt=0;dt<at;++dt)if(gt=V[dt]){for(dt>=xt&&(xt=dt+1);!(ht=Z[xt])&&++xt<at;);gt._next=ht||null}}return(w=new yi(w,h))._enter=k,w._exit=S,w},enter:function(){return new yi(this._enter||this._groups.map(ma),this._parents)},exit:function(){return new yi(this._exit||this._groups.map(ma),this._parents)},join:function(a,o,l){var h=this.enter(),g=this,y=this.exit();return typeof a=="function"?(h=a(h))&&(h=h.selection()):h=h.append(a+""),o!=null&&(g=o(g))&&(g=g.selection()),l==null?y.remove():l(y),h&&g?h.merge(g).order():g},merge:function(a){for(var o=a.selection?a.selection():a,l=this._groups,h=o._groups,g=l.length,y=h.length,w=Math.min(g,y),k=new Array(g),S=0;S<w;++S)for(var I,B=l[S],$=h[S],P=B.length,H=k[S]=new Array(P),at=0;at<P;++at)(I=B[at]||$[at])&&(H[at]=I);for(;S<g;++S)k[S]=l[S];return new yi(k,this._parents)},selection:function(){return this},order:function(){for(var a=this._groups,o=-1,l=a.length;++o<l;)for(var h,g=a[o],y=g.length-1,w=g[y];--y>=0;)(h=g[y])&&(w&&4^h.compareDocumentPosition(w)&&w.parentNode.insertBefore(h,w),w=h);return this},sort:function(a){function o($,P){return $&&P?a($.__data__,P.__data__):!$-!P}a||(a=ii);for(var l=this._groups,h=l.length,g=new Array(h),y=0;y<h;++y){for(var w,k=l[y],S=k.length,I=g[y]=new Array(S),B=0;B<S;++B)(w=k[B])&&(I[B]=w);I.sort(o)}return new yi(g,this._parents).order()},call:function(){var a=arguments[0];return arguments[0]=this,a.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var a=this._groups,o=0,l=a.length;o<l;++o)for(var h=a[o],g=0,y=h.length;g<y;++g){var w=h[g];if(w)return w}return null},size:function(){let a=0;for(const o of this)++a;return a},empty:function(){return!this.node()},each:function(a){for(var o=this._groups,l=0,h=o.length;l<h;++l)for(var g,y=o[l],w=0,k=y.length;w<k;++w)(g=y[w])&&a.call(g,g.__data__,w,y);return this},attr:function(a,o){var l=ai(a);if(arguments.length<2){var h=this.node();return l.local?h.getAttributeNS(l.space,l.local):h.getAttribute(l)}return this.each((o==null?l.local?Gn:_a:typeof o=="function"?l.local?Io:zi:l.local?ci:Jn)(l,o))},style:function(a,o,l){return arguments.length>1?this.each((o==null?Qt:typeof o=="function"?sr:Er)(a,o,l==null?"":l)):on(this.node(),a)},property:function(a,o){return arguments.length>1?this.each((o==null?Hn:typeof o=="function"?Qn:gi)(a,o)):this.node()[a]},classed:function(a,o){var l=qi(a+"");if(arguments.length<2){for(var h=ta(this.node()),g=-1,y=l.length;++g<y;)if(!h.contains(l[g]))return!1;return!0}return this.each((typeof o=="function"?La:o?gc:el)(l,o))},text:function(a){return arguments.length?this.each(a==null?Is:(typeof a=="function"?yc:cu)(a)):this.node().textContent},html:function(a){return arguments.length?this.each(a==null?hr:(typeof a=="function"?En:mc)(a)):this.node().innerHTML},raise:function(){return this.each(ea)},lower:function(){return this.each(ho)},append:function(a){var o=typeof a=="function"?a:No(a);return this.select(function(){return this.appendChild(o.apply(this,arguments))})},insert:function(a,o){var l=typeof a=="function"?a:No(a),h=o==null?_c:typeof o=="function"?o:Yn(o);return this.select(function(){return this.insertBefore(l.apply(this,arguments),h.apply(this,arguments)||null)})},remove:function(){return this.each(rl)},clone:function(a){return this.select(a?$a:Ns)},datum:function(a){return arguments.length?this.property("__data__",a):this.node().__data__},on:function(a,o,l){var h,g,y=bc(a+""),w=y.length;if(!(arguments.length<2)){for(k=o?vc:Da,h=0;h<w;++h)this.each(k(y[h],o,l));return this}var k=this.node().__on;if(k){for(var S,I=0,B=k.length;I<B;++I)for(h=0,S=k[I];h<w;++h)if((g=y[h]).type===S.type&&g.name===S.name)return S.value}},dispatch:function(a,o){return this.each((typeof o=="function"?Ls:ra)(a,o))},[Symbol.iterator]:function*(){for(var a=this._groups,o=0,l=a.length;o<l;++o)for(var h,g=a[o],y=0,w=g.length;y<w;++y)(h=g[y])&&(yield h)}};const zn=rn;function Ei(a){return typeof a=="string"?new yi([[document.querySelector(a)]],[document.documentElement]):new yi([[a]],Lo)}const nl={passive:!1},Mo={capture:!0,passive:!1};function Ms(a){a.stopImmediatePropagation()}function Ha(a){a.preventDefault(),a.stopImmediatePropagation()}function fo(a){var o=a.document.documentElement,l=Ei(a).on("dragstart.drag",Ha,Mo);"onselectstart"in o?l.on("selectstart.drag",Ha,Mo):(o.__noselect=o.style.MozUserSelect,o.style.MozUserSelect="none")}function ss(a,o){var l=a.document.documentElement,h=Ei(a).on("dragstart.drag",null);o&&(h.on("click.drag",Ha,Mo),setTimeout(function(){h.on("click.drag",null)},0)),"onselectstart"in l?h.on("selectstart.drag",null):(l.style.MozUserSelect=l.__noselect,delete l.__noselect)}function Ui(a,o,l){a.prototype=o.prototype=l,l.constructor=a}function xr(a,o){var l=Object.create(a.prototype);for(var h in o)l[h]=o[h];return l}function ba(){}var Wi=.7,na=1/Wi,tn="\\s*([+-]?\\d+)\\s*",L="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Y="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",et=/^#([0-9a-f]{3,8})$/,mt=new RegExp("^rgb\\("+[tn,tn,tn]+"\\)$"),ie=new RegExp("^rgb\\("+[Y,Y,Y]+"\\)$"),Ie=new RegExp("^rgba\\("+[tn,tn,tn,L]+"\\)$"),$e=new RegExp("^rgba\\("+[Y,Y,Y,L]+"\\)$"),er=new RegExp("^hsl\\("+[L,Y,Y]+"\\)$"),rr=new RegExp("^hsla\\("+[L,Y,Y,L]+"\\)$"),pr={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 _r(){return this.rgb().formatHex()}function Sr(){return this.rgb().formatRgb()}function Ir(a){var o,l;return a=(a+"").trim().toLowerCase(),(o=et.exec(a))?(l=o[1].length,o=parseInt(o[1],16),l===6?_n(o):l===3?new Zn(o>>8&15|o>>4&240,o>>4&15|240&o,(15&o)<<4|15&o,1):l===8?sn(o>>24&255,o>>16&255,o>>8&255,(255&o)/255):l===4?sn(o>>12&15|o>>8&240,o>>8&15|o>>4&240,o>>4&15|240&o,((15&o)<<4|15&o)/255):null):(o=mt.exec(a))?new Zn(o[1],o[2],o[3],1):(o=ie.exec(a))?new Zn(255*o[1]/100,255*o[2]/100,255*o[3]/100,1):(o=Ie.exec(a))?sn(o[1],o[2],o[3],o[4]):(o=$e.exec(a))?sn(255*o[1]/100,255*o[2]/100,255*o[3]/100,o[4]):(o=er.exec(a))?uu(o[1],o[2]/100,o[3]/100,1):(o=rr.exec(a))?uu(o[1],o[2]/100,o[3]/100,o[4]):pr.hasOwnProperty(a)?_n(pr[a]):a==="transparent"?new Zn(NaN,NaN,NaN,0):null}function _n(a){return new Zn(a>>16&255,a>>8&255,255&a,1)}function sn(a,o,l,h){return h<=0&&(a=o=l=NaN),new Zn(a,o,l,h)}function Vn(a){return a instanceof ba||(a=Ir(a)),a?new Zn((a=a.rgb()).r,a.g,a.b,a.opacity):new Zn}function mi(a,o,l,h){return arguments.length===1?Vn(a):new Zn(a,o,l,h==null?1:h)}function Zn(a,o,l,h){this.r=+a,this.g=+o,this.b=+l,this.opacity=+h}function Os(){return"#"+lu(this.r)+lu(this.g)+lu(this.b)}function il(){var a=this.opacity;return((a=isNaN(a)?1:Math.max(0,Math.min(1,a)))===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))+(a===1?")":", "+a+")")}function lu(a){return((a=Math.max(0,Math.min(255,Math.round(a)||0)))<16?"0":"")+a.toString(16)}function uu(a,o,l,h){return h<=0?a=o=l=NaN:l<=0||l>=1?a=o=NaN:o<=0&&(a=NaN),new Qa(a,o,l,h)}function hu(a){if(a instanceof Qa)return new Qa(a.h,a.s,a.l,a.opacity);if(a instanceof ba||(a=Ir(a)),!a)return new Qa;if(a instanceof Qa)return a;var o=(a=a.rgb()).r/255,l=a.g/255,h=a.b/255,g=Math.min(o,l,h),y=Math.max(o,l,h),w=NaN,k=y-g,S=(y+g)/2;return k?(w=o===y?(l-h)/k+6*(l<h):l===y?(h-o)/k+2:(o-l)/k+4,k/=S<.5?y+g:2-y-g,w*=60):k=S>0&&S<1?0:w,new Qa(w,k,S,a.opacity)}function Oo(a,o,l,h){return arguments.length===1?hu(a):new Qa(a,o,l,h==null?1:h)}function Qa(a,o,l,h){this.h=+a,this.s=+o,this.l=+l,this.opacity=+h}function cs(a,o,l){return 255*(a<60?o+(l-o)*a/60:a<180?l:a<240?o+(l-o)*(240-a)/60:o)}function Vh(a,o,l,h,g){var y=a*a,w=y*a;return((1-3*a+3*y-w)*o+(4-6*y+3*w)*l+(1+3*a+3*y-3*w)*h+w*g)/6}function _i(a){var o=a.length-1;return function(l){var h=l<=0?l=0:l>=1?(l=1,o-1):Math.floor(l*o),g=a[h],y=a[h+1],w=h>0?a[h-1]:2*g-y,k=h<o-1?a[h+2]:2*y-g;return Vh((l-h/o)*o,w,g,y,k)}}function du(a){var o=a.length;return function(l){var h=Math.floor(((l%=1)<0?++l:l)*o),g=a[(h+o-1)%o],y=a[h%o],w=a[(h+1)%o],k=a[(h+2)%o];return Vh((l-h/o)*o,g,y,w,k)}}Ui(ba,Ir,{copy:function(a){return Object.assign(new this.constructor,this,a)},displayable:function(){return this.rgb().displayable()},hex:_r,formatHex:_r,formatHsl:function(){return hu(this).formatHsl()},formatRgb:Sr,toString:Sr}),Ui(Zn,mi,xr(ba,{brighter:function(a){return a=a==null?na:Math.pow(na,a),new Zn(this.r*a,this.g*a,this.b*a,this.opacity)},darker:function(a){return a=a==null?Wi:Math.pow(Wi,a),new Zn(this.r*a,this.g*a,this.b*a,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:Os,formatHex:Os,formatRgb:il,toString:il})),Ui(Qa,Oo,xr(ba,{brighter:function(a){return a=a==null?na:Math.pow(na,a),new Qa(this.h,this.s,this.l*a,this.opacity)},darker:function(a){return a=a==null?Wi:Math.pow(Wi,a),new Qa(this.h,this.s,this.l*a,this.opacity)},rgb:function(){var a=this.h%360+360*(this.h<0),o=isNaN(a)||isNaN(this.s)?0:this.s,l=this.l,h=l+(l<.5?l:1-l)*o,g=2*l-h;return new Zn(cs(a>=240?a-240:a+120,g,h),cs(a,g,h),cs(a<120?a+240:a-120,g,h),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 a=this.opacity;return((a=isNaN(a)?1:Math.max(0,Math.min(1,a)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(a===1?")":", "+a+")")}}));const Ds=a=>()=>a;function Zh(a,o){return function(l){return a+l*o}}function al(a,o){var l=o-a;return l?Zh(a,l>180||l<-180?l-360*Math.round(l/360):l):Ds(isNaN(a)?o:a)}function Ni(a,o){var l=o-a;return l?Zh(a,l):Ds(isNaN(a)?o:a)}const Rs=function a(o){var l=function(g){return(g=+g)==1?Ni:function(y,w){return w-y?function(k,S,I){return k=Math.pow(k,I),S=Math.pow(S,I)-k,I=1/I,function(B){return Math.pow(k+B*S,I)}}(y,w,g):Ds(isNaN(y)?w:y)}}(o);function h(g,y){var w=l((g=mi(g)).r,(y=mi(y)).r),k=l(g.g,y.g),S=l(g.b,y.b),I=Ni(g.opacity,y.opacity);return function(B){return g.r=w(B),g.g=k(B),g.b=S(B),g.opacity=I(B),g+""}}return h.gamma=a,h}(1);function ls(a){return function(o){var l,h,g=o.length,y=new Array(g),w=new Array(g),k=new Array(g);for(l=0;l<g;++l)h=mi(o[l]),y[l]=h.r||0,w[l]=h.g||0,k[l]=h.b||0;return y=a(y),w=a(w),k=a(k),h.opacity=1,function(S){return h.r=y(S),h.g=w(S),h.b=k(S),h+""}}}var ol=ls(_i),td=ls(du);function wc(a,o){o||(o=[]);var l,h=a?Math.min(o.length,a.length):0,g=o.slice();return function(y){for(l=0;l<h;++l)g[l]=a[l]*(1-y)+o[l]*y;return g}}function kc(a){return ArrayBuffer.isView(a)&&!(a instanceof DataView)}function ed(a,o){return(kc(o)?wc:Xh)(a,o)}function Xh(a,o){var l,h=o?o.length:0,g=a?Math.min(h,a.length):0,y=new Array(g),w=new Array(h);for(l=0;l<g;++l)y[l]=en(a[l],o[l]);for(;l<h;++l)w[l]=o[l];return function(k){for(l=0;l<g;++l)w[l]=y[l](k);return w}}function Kh(a,o){var l=new Date;return a=+a,o=+o,function(h){return l.setTime(a*(1-h)+o*h),l}}function ua(a,o){return a=+a,o=+o,function(l){return a*(1-l)+o*l}}function ia(a,o){var l,h={},g={};for(l in a!==null&&typeof a=="object"||(a={}),o!==null&&typeof o=="object"||(o={}),o)l in a?h[l]=en(a[l],o[l]):g[l]=o[l];return function(y){for(l in h)g[l]=h[l](y);return g}}var Li=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oi=new RegExp(Li.source,"g");function qa(a,o){var l,h,g,y=Li.lastIndex=oi.lastIndex=0,w=-1,k=[],S=[];for(a+="",o+="";(l=Li.exec(a))&&(h=oi.exec(o));)(g=h.index)>y&&(g=o.slice(y,g),k[w]?k[w]+=g:k[++w]=g),(l=l[0])===(h=h[0])?k[w]?k[w]+=h:k[++w]=h:(k[++w]=null,S.push({i:w,x:ua(l,h)})),y=oi.lastIndex;return y<o.length&&(g=o.slice(y),k[w]?k[w]+=g:k[++w]=g),k.length<2?S[0]?function(I){return function(B){return I(B)+""}}(S[0].x):function(I){return function(){return I}}(o):(o=S.length,function(I){for(var B,$=0;$<o;++$)k[(B=S[$]).i]=B.x(I);return k.join("")})}function en(a,o){var l,h=typeof o;return o==null||h==="boolean"?Ds(o):(h==="number"?ua:h==="string"?(l=Ir(o))?(o=l,Rs):qa:o instanceof Ir?Rs:o instanceof Date?Kh:kc(o)?wc:Array.isArray(o)?Xh:typeof o.valueOf!="function"&&typeof o.toString!="function"||isNaN(o)?ia:ua)(a,o)}function Ra(a){let o;for(;o=a.sourceEvent;)a=o;return a}function ha(a,o){if(a=Ra(a),o===void 0&&(o=a.currentTarget),o){var l=o.ownerSVGElement||o;if(l.createSVGPoint){var h=l.createSVGPoint();return h.x=a.clientX,h.y=a.clientY,[(h=h.matrixTransform(o.getScreenCTM().inverse())).x,h.y]}if(o.getBoundingClientRect){var g=o.getBoundingClientRect();return[a.clientX-g.left-o.clientLeft,a.clientY-g.top-o.clientTop]}}return[a.pageX,a.pageY]}var us,Ec,Bs=0,Do=0,Ro=0,sl=0,hs=0,cl=0,Tc=typeof performance=="object"&&performance.now?performance:Date,Jh=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(a){setTimeout(a,17)};function Sc(){return hs||(Jh(Qh),hs=Tc.now()+cl)}function Qh(){hs=0}function Ac(){this._call=this._time=this._next=null}function Bo(a,o,l){var h=new Ac;return h.restart(a,o,l),h}function Fs(){Sc(),++Bs;for(var a,o=us;o;)(a=hs-o._time)>=0&&o._call.call(void 0,a),o=o._next;--Bs}function to(){hs=(sl=Tc.now())+cl,Bs=Do=0;try{Fs()}finally{Bs=0,function(){for(var a,o,l=us,h=1/0;l;)l._call?(h>l._time&&(h=l._time),a=l,l=l._next):(o=l._next,l._next=null,l=a?a._next=o:us=o);Ec=a,Ps(h)}(),hs=0}}function Fo(){var a=Tc.now(),o=a-sl;o>1e3&&(cl-=o,sl=a)}function Ps(a){Bs||(Do&&(Do=clearTimeout(Do)),a-hs>24?(a<1/0&&(Do=setTimeout(to,a-Tc.now()-cl)),Ro&&(Ro=clearInterval(Ro))):(Ro||(sl=Tc.now(),Ro=setInterval(Fo,1e3)),Bs=1,Jh(to)))}function ll(a,o,l){var h=new Ac;return o=o==null?0:+o,h.restart(g=>{h.stop(),a(g+o)},o,l),h}Ac.prototype=Bo.prototype={constructor:Ac,restart:function(a,o,l){if(typeof a!="function")throw new TypeError("callback is not a function");l=(l==null?Sc():+l)+(o==null?0:+o),this._next||Ec===this||(Ec?Ec._next=this:us=this,Ec=this),this._call=a,this._time=l,Ps()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ps())}};var t1=un("start","end","cancel","interrupt"),e1=[];function po(a,o,l,h,g,y){var w=a.__transition;if(w){if(l in w)return}else a.__transition={};(function(k,S,I){var B,$=k.__transition;function P(V){var Z,K,gt,ht;if(I.state!==1)return at();for(Z in $)if((ht=$[Z]).name===I.name){if(ht.state===3)return ll(P);ht.state===4?(ht.state=6,ht.timer.stop(),ht.on.call("interrupt",k,k.__data__,ht.index,ht.group),delete $[Z]):+Z<S&&(ht.state=6,ht.timer.stop(),ht.on.call("cancel",k,k.__data__,ht.index,ht.group),delete $[Z])}if(ll(function(){I.state===3&&(I.state=4,I.timer.restart(H,I.delay,I.time),H(V))}),I.state=2,I.on.call("start",k,k.__data__,I.index,I.group),I.state===2){for(I.state=3,B=new Array(gt=I.tween.length),Z=0,K=-1;Z<gt;++Z)(ht=I.tween[Z].value.call(k,k.__data__,I.index,I.group))&&(B[++K]=ht);B.length=K+1}}function H(V){for(var Z=V<I.duration?I.ease.call(null,V/I.duration):(I.timer.restart(at),I.state=5,1),K=-1,gt=B.length;++K<gt;)B[K].call(k,Z);I.state===5&&(I.on.call("end",k,k.__data__,I.index,I.group),at())}function at(){for(var V in I.state=6,I.timer.stop(),delete $[S],$)return;delete k.__transition}$[S]=I,I.timer=Bo(function(V){I.state=1,I.timer.restart(P,I.delay,I.time),I.delay<=V&&P(V-I.delay)},0,I.time)})(a,l,{name:o,index:h,group:g,on:t1,tween:e1,time:y.time,delay:y.delay,duration:y.duration,ease:y.ease,timer:null,state:0})}function ul(a,o){var l=Ba(a,o);if(l.state>0)throw new Error("too late; already scheduled");return l}function eo(a,o){var l=Ba(a,o);if(l.state>3)throw new Error("too late; already running");return l}function Ba(a,o){var l=a.__transition;if(!l||!(l=l[o]))throw new Error("transition not found");return l}function ro(a,o){var l,h,g,y=a.__transition,w=!0;if(y){for(g in o=o==null?null:o+"",y)(l=y[g]).name===o?(h=l.state>2&&l.state<5,l.state=6,l.timer.stop(),l.on.call(h?"interrupt":"cancel",a,a.__data__,l.index,l.group),delete y[g]):w=!1;w&&delete a.__transition}}var bi,r1=180/Math.PI,zs={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function n1(a,o,l,h,g,y){var w,k,S;return(w=Math.sqrt(a*a+o*o))&&(a/=w,o/=w),(S=a*l+o*h)&&(l-=a*S,h-=o*S),(k=Math.sqrt(l*l+h*h))&&(l/=k,h/=k,S/=k),a*h<o*l&&(a=-a,o=-o,S=-S,w=-w),{translateX:g,translateY:y,rotate:Math.atan2(o,a)*r1,skewX:Math.atan(S)*r1,scaleX:w,scaleY:k}}function fu(a,o,l,h){function g(y){return y.length?y.pop()+" ":""}return function(y,w){var k=[],S=[];return y=a(y),w=a(w),function(I,B,$,P,H,at){if(I!==$||B!==P){var V=H.push("translate(",null,o,null,l);at.push({i:V-4,x:ua(I,$)},{i:V-2,x:ua(B,P)})}else($||P)&&H.push("translate("+$+o+P+l)}(y.translateX,y.translateY,w.translateX,w.translateY,k,S),function(I,B,$,P){I!==B?(I-B>180?B+=360:B-I>180&&(I+=360),P.push({i:$.push(g($)+"rotate(",null,h)-2,x:ua(I,B)})):B&&$.push(g($)+"rotate("+B+h)}(y.rotate,w.rotate,k,S),function(I,B,$,P){I!==B?P.push({i:$.push(g($)+"skewX(",null,h)-2,x:ua(I,B)}):B&&$.push(g($)+"skewX("+B+h)}(y.skewX,w.skewX,k,S),function(I,B,$,P,H,at){if(I!==$||B!==P){var V=H.push(g(H)+"scale(",null,",",null,")");at.push({i:V-4,x:ua(I,$)},{i:V-2,x:ua(B,P)})}else $===1&&P===1||H.push(g(H)+"scale("+$+","+P+")")}(y.scaleX,y.scaleY,w.scaleX,w.scaleY,k,S),y=w=null,function(I){for(var B,$=-1,P=S.length;++$<P;)k[(B=S[$]).i]=B.x(I);return k.join("")}}}var i1=fu(function(a){const o=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(a+"");return o.isIdentity?zs:n1(o.a,o.b,o.c,o.d,o.e,o.f)},"px, ","px)","deg)"),hl=fu(function(a){return a==null?zs:(bi||(bi=document.createElementNS("http://www.w3.org/2000/svg","g")),bi.setAttribute("transform",a),(a=bi.transform.baseVal.consolidate())?n1((a=a.matrix).a,a.b,a.c,a.d,a.e,a.f):zs)},", ",")",")");function a1(a,o){var l,h;return function(){var g=eo(this,a),y=g.tween;if(y!==l){for(var w=0,k=(h=l=y).length;w<k;++w)if(h[w].name===o){(h=h.slice()).splice(w,1);break}}g.tween=h}}function rd(a,o,l){var h,g;if(typeof l!="function")throw new Error;return function(){var y=eo(this,a),w=y.tween;if(w!==h){g=(h=w).slice();for(var k={name:o,value:l},S=0,I=g.length;S<I;++S)if(g[S].name===o){g[S]=k;break}S===I&&g.push(k)}y.tween=g}}function pu(a,o,l){var h=a._id;return a.each(function(){var g=eo(this,h);(g.value||(g.value={}))[o]=l.apply(this,arguments)}),function(g){return Ba(g,h).value[o]}}function gu(a,o){var l;return(typeof o=="number"?ua:o instanceof Ir?Rs:(l=Ir(o))?(o=l,Rs):qa)(a,o)}function Cc(a){return function(){this.removeAttribute(a)}}function yu(a){return function(){this.removeAttributeNS(a.space,a.local)}}function o1(a,o,l){var h,g,y=l+"";return function(){var w=this.getAttribute(a);return w===y?null:w===h?g:g=o(h=w,l)}}function nd(a,o,l){var h,g,y=l+"";return function(){var w=this.getAttributeNS(a.space,a.local);return w===y?null:w===h?g:g=o(h=w,l)}}function go(a,o,l){var h,g,y;return function(){var w,k,S=l(this);if(S!=null)return(w=this.getAttribute(a))===(k=S+"")?null:w===h&&k===g?y:(g=k,y=o(h=w,S));this.removeAttribute(a)}}function Po(a,o,l){var h,g,y;return function(){var w,k,S=l(this);if(S!=null)return(w=this.getAttributeNS(a.space,a.local))===(k=S+"")?null:w===h&&k===g?y:(g=k,y=o(h=w,S));this.removeAttributeNS(a.space,a.local)}}function Rn(a,o){return function(l){this.setAttribute(a,o.call(this,l))}}function s1(a,o){return function(l){this.setAttributeNS(a.space,a.local,o.call(this,l))}}function c1(a,o){var l,h;function g(){var y=o.apply(this,arguments);return y!==h&&(l=(h=y)&&s1(a,y)),l}return g._value=o,g}function id(a,o){var l,h;function g(){var y=o.apply(this,arguments);return y!==h&&(l=(h=y)&&Rn(a,y)),l}return g._value=o,g}function ad(a,o){return function(){ul(this,a).delay=+o.apply(this,arguments)}}function od(a,o){return o=+o,function(){ul(this,a).delay=o}}function mu(a,o){return function(){eo(this,a).duration=+o.apply(this,arguments)}}function _u(a,o){return o=+o,function(){eo(this,a).duration=o}}function yo(a,o){if(typeof o!="function")throw new Error;return function(){eo(this,a).ease=o}}function dl(a,o,l){var h,g,y=function(w){return(w+"").trim().split(/^|\s+/).every(function(k){var S=k.indexOf(".");return S>=0&&(k=k.slice(0,S)),!k||k==="start"})}(o)?ul:eo;return function(){var w=y(this,a),k=w.on;k!==h&&(g=(h=k).copy()).on(o,l),w.on=g}}var sd=zn.prototype.constructor;function bu(a){return function(){this.style.removeProperty(a)}}function vu(a,o,l){return function(h){this.style.setProperty(a,o.call(this,h),l)}}function li(a,o,l){var h,g;function y(){var w=o.apply(this,arguments);return w!==g&&(h=(g=w)&&vu(a,w,l)),h}return y._value=o,y}function ds(a){return function(o){this.textContent=a.call(this,o)}}function Us(a){var o,l;function h(){var g=a.apply(this,arguments);return g!==l&&(o=(l=g)&&ds(g)),o}return h._value=a,h}var no=0;function va(a,o,l,h){this._groups=a,this._parents=o,this._name=l,this._id=h}function fl(a){return zn().transition(a)}function pl(){return++no}var Wa=zn.prototype;function gl(a){return a*a*a}function yl(a){return--a*a*a+1}function Ys(a){return((a*=2)<=1?a*a*a:(a-=2)*a*a+2)/2}va.prototype=fl.prototype={constructor:va,select:function(a){var o=this._name,l=this._id;typeof a!="function"&&(a=Yn(a));for(var h=this._groups,g=h.length,y=new Array(g),w=0;w<g;++w)for(var k,S,I=h[w],B=I.length,$=y[w]=new Array(B),P=0;P<B;++P)(k=I[P])&&(S=a.call(k,k.__data__,P,I))&&("__data__"in k&&(S.__data__=k.__data__),$[P]=S,po($[P],o,l,P,$,Ba(k,l)));return new va(y,this._parents,o,l)},selectAll:function(a){var o=this._name,l=this._id;typeof a!="function"&&(a=si(a));for(var h=this._groups,g=h.length,y=[],w=[],k=0;k<g;++k)for(var S,I=h[k],B=I.length,$=0;$<B;++$)if(S=I[$]){for(var P,H=a.call(S,S.__data__,$,I),at=Ba(S,l),V=0,Z=H.length;V<Z;++V)(P=H[V])&&po(P,o,l,V,H,at);y.push(H),w.push(S)}return new va(y,w,o,l)},selectChild:Wa.selectChild,selectChildren:Wa.selectChildren,filter:function(a){typeof a!="function"&&(a=di(a));for(var o=this._groups,l=o.length,h=new Array(l),g=0;g<l;++g)for(var y,w=o[g],k=w.length,S=h[g]=[],I=0;I<k;++I)(y=w[I])&&a.call(y,y.__data__,I,w)&&S.push(y);return new va(h,this._parents,this._name,this._id)},merge:function(a){if(a._id!==this._id)throw new Error;for(var o=this._groups,l=a._groups,h=o.length,g=l.length,y=Math.min(h,g),w=new Array(h),k=0;k<y;++k)for(var S,I=o[k],B=l[k],$=I.length,P=w[k]=new Array($),H=0;H<$;++H)(S=I[H]||B[H])&&(P[H]=S);for(;k<h;++k)w[k]=o[k];return new va(w,this._parents,this._name,this._id)},selection:function(){return new sd(this._groups,this._parents)},transition:function(){for(var a=this._name,o=this._id,l=pl(),h=this._groups,g=h.length,y=0;y<g;++y)for(var w,k=h[y],S=k.length,I=0;I<S;++I)if(w=k[I]){var B=Ba(w,o);po(w,a,l,I,k,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new va(h,this._parents,a,l)},call:Wa.call,nodes:Wa.nodes,node:Wa.node,size:Wa.size,empty:Wa.empty,each:Wa.each,on:function(a,o){var l=this._id;return arguments.length<2?Ba(this.node(),l).on.on(a):this.each(dl(l,a,o))},attr:function(a,o){var l=ai(a),h=l==="transform"?hl:gu;return this.attrTween(a,typeof o=="function"?(l.local?Po:go)(l,h,pu(this,"attr."+a,o)):o==null?(l.local?yu:Cc)(l):(l.local?nd:o1)(l,h,o))},attrTween:function(a,o){var l="attr."+a;if(arguments.length<2)return(l=this.tween(l))&&l._value;if(o==null)return this.tween(l,null);if(typeof o!="function")throw new Error;var h=ai(a);return this.tween(l,(h.local?c1:id)(h,o))},style:function(a,o,l){var h=(a+="")=="transform"?i1:gu;return o==null?this.styleTween(a,function(g,y){var w,k,S;return function(){var I=on(this,g),B=(this.style.removeProperty(g),on(this,g));return I===B?null:I===w&&B===k?S:S=y(w=I,k=B)}}(a,h)).on("end.style."+a,bu(a)):typeof o=="function"?this.styleTween(a,function(g,y,w){var k,S,I;return function(){var B=on(this,g),$=w(this),P=$+"";return $==null&&(this.style.removeProperty(g),P=$=on(this,g)),B===P?null:B===k&&P===S?I:(S=P,I=y(k=B,$))}}(a,h,pu(this,"style."+a,o))).each(function(g,y){var w,k,S,I,B="style."+y,$="end."+B;return function(){var P=eo(this,g),H=P.on,at=P.value[B]==null?I||(I=bu(y)):void 0;H===w&&S===at||(k=(w=H).copy()).on($,S=at),P.on=k}}(this._id,a)):this.styleTween(a,function(g,y,w){var k,S,I=w+"";return function(){var B=on(this,g);return B===I?null:B===k?S:S=y(k=B,w)}}(a,h,o),l).on("end.style."+a,null)},styleTween:function(a,o,l){var h="style."+(a+="");if(arguments.length<2)return(h=this.tween(h))&&h._value;if(o==null)return this.tween(h,null);if(typeof o!="function")throw new Error;return this.tween(h,li(a,o,l==null?"":l))},text:function(a){return this.tween("text",typeof a=="function"?function(o){return function(){var l=o(this);this.textContent=l==null?"":l}}(pu(this,"text",a)):function(o){return function(){this.textContent=o}}(a==null?"":a+""))},textTween:function(a){var o="text";if(arguments.length<1)return(o=this.tween(o))&&o._value;if(a==null)return this.tween(o,null);if(typeof a!="function")throw new Error;return this.tween(o,Us(a))},remove:function(){return this.on("end.remove",function(a){return function(){var o=this.parentNode;for(var l in this.__transition)if(+l!==a)return;o&&o.removeChild(this)}}(this._id))},tween:function(a,o){var l=this._id;if(a+="",arguments.length<2){for(var h,g=Ba(this.node(),l).tween,y=0,w=g.length;y<w;++y)if((h=g[y]).name===a)return h.value;return null}return this.each((o==null?a1:rd)(l,a,o))},delay:function(a){var o=this._id;return arguments.length?this.each((typeof a=="function"?ad:od)(o,a)):Ba(this.node(),o).delay},duration:function(a){var o=this._id;return arguments.length?this.each((typeof a=="function"?mu:_u)(o,a)):Ba(this.node(),o).duration},ease:function(a){var o=this._id;return arguments.length?this.each(yo(o,a)):Ba(this.node(),o).ease},easeVarying:function(a){if(typeof a!="function")throw new Error;return this.each(function(o,l){return function(){var h=l.apply(this,arguments);if(typeof h!="function")throw new Error;eo(this,o).ease=h}}(this._id,a))},end:function(){var a,o,l=this,h=l._id,g=l.size();return new Promise(function(y,w){var k={value:w},S={value:function(){--g==0&&y()}};l.each(function(){var I=eo(this,h),B=I.on;B!==a&&((o=(a=B).copy())._.cancel.push(k),o._.interrupt.push(k),o._.end.push(S)),I.on=o}),g===0&&y()})},[Symbol.iterator]:Wa[Symbol.iterator]};var cd={time:null,delay:0,duration:250,ease:Ys};function xu(a,o){for(var l;!(l=a.__transition)||!(l=l[o]);)if(!(a=a.parentNode))throw new Error(`transition ${o} not found`);return l}zn.prototype.interrupt=function(a){return this.each(function(){ro(this,a)})},zn.prototype.transition=function(a){var o,l;a instanceof va?(o=a._id,a=a._name):(o=pl(),(l=cd).time=Sc(),a=a==null?null:a+"");for(var h=this._groups,g=h.length,y=0;y<g;++y)for(var w,k=h[y],S=k.length,I=0;I<S;++I)(w=k[I])&&po(w,a,o,I,k,l||xu(w,o));return new va(h,this._parents,a,o)};var l1=[null];function ld(a,o){var l,h,g=a.__transition;if(g){for(h in o=o==null?null:o+"",g)if((l=g[h]).state>1&&l.name===o)return new va([[a]],l1,o,+h)}return null}const Ic=a=>()=>a;function u1(a,{sourceEvent:o,target:l,selection:h,mode:g,dispatch:y}){Object.defineProperties(this,{type:{value:a,enumerable:!0,configurable:!0},sourceEvent:{value:o,enumerable:!0,configurable:!0},target:{value:l,enumerable:!0,configurable:!0},selection:{value:h,enumerable:!0,configurable:!0},mode:{value:g,enumerable:!0,configurable:!0},_:{value:y}})}function ud(a){a.stopImmediatePropagation()}function ml(a){a.preventDefault(),a.stopImmediatePropagation()}var wu={name:"drag"},io={name:"space"},js={name:"handle"},Mi={name:"center"};const{abs:h1,max:Yi,min:Gi}=Math;function d1(a){return[+a[0],+a[1]]}function ku(a){return[d1(a[0]),d1(a[1])]}var _l={name:"x",handles:["w","e"].map(xa),input:function(a,o){return a==null?null:[[+a[0],o[0][1]],[+a[1],o[1][1]]]},output:function(a){return a&&[a[0][0],a[1][0]]}},bl={name:"y",handles:["n","s"].map(xa),input:function(a,o){return a==null?null:[[o[0][0],+a[0]],[o[1][0],+a[1]]]},output:function(a){return a&&[a[0][1],a[1][1]]}},hd={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(xa),input:function(a){return a==null?null:ku(a)},output:function(a){return a}},mo={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"},f1={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},p1={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},dd={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},fd={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function xa(a){return{type:a}}function pd(a){return!a.ctrlKey&&!a.button}function g1(){var a=this.ownerSVGElement||this;return a.hasAttribute("viewBox")?[[(a=a.viewBox.baseVal).x,a.y],[a.x+a.width,a.y+a.height]]:[[0,0],[a.width.baseVal.value,a.height.baseVal.value]]}function y1(){return navigator.maxTouchPoints||"ontouchstart"in this}function vl(a){for(;!a.__brush;)if(!(a=a.parentNode))return;return a.__brush}function xl(a){return a[0][0]===a[1][0]||a[0][1]===a[1][1]}function m1(a){var o=a.__brush;return o?o.dim.output(o.selection):null}function _1(){return Tu(_l)}function b1(){return Tu(bl)}function Eu(){return Tu(hd)}function Tu(a){var o,l=g1,h=pd,g=y1,y=!0,w=un("start","brush","end"),k=6;function S(Z){var K=Z.property("__brush",V).selectAll(".overlay").data([xa("overlay")]);K.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",mo.overlay).merge(K).each(function(){var ht=vl(this).extent;Ei(this).attr("x",ht[0][0]).attr("y",ht[0][1]).attr("width",ht[1][0]-ht[0][0]).attr("height",ht[1][1]-ht[0][1])}),Z.selectAll(".selection").data([xa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",mo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var gt=Z.selectAll(".handle").data(a.handles,function(ht){return ht.type});gt.exit().remove(),gt.enter().append("rect").attr("class",function(ht){return"handle handle--"+ht.type}).attr("cursor",function(ht){return mo[ht.type]}),Z.each(I).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",P).filter(g).on("touchstart.brush",P).on("touchmove.brush",H).on("touchend.brush touchcancel.brush",at).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function I(){var Z=Ei(this),K=vl(this).selection;K?(Z.selectAll(".selection").style("display",null).attr("x",K[0][0]).attr("y",K[0][1]).attr("width",K[1][0]-K[0][0]).attr("height",K[1][1]-K[0][1]),Z.selectAll(".handle").style("display",null).attr("x",function(gt){return gt.type[gt.type.length-1]==="e"?K[1][0]-k/2:K[0][0]-k/2}).attr("y",function(gt){return gt.type[0]==="s"?K[1][1]-k/2:K[0][1]-k/2}).attr("width",function(gt){return gt.type==="n"||gt.type==="s"?K[1][0]-K[0][0]+k:k}).attr("height",function(gt){return gt.type==="e"||gt.type==="w"?K[1][1]-K[0][1]+k:k})):Z.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function B(Z,K,gt){var ht=Z.__brush.emitter;return!ht||gt&&ht.clean?new $(Z,K,gt):ht}function $(Z,K,gt){this.that=Z,this.args=K,this.state=Z.__brush,this.active=0,this.clean=gt}function P(Z){if((!o||Z.touches)&&h.apply(this,arguments)){var K,gt,ht,dt,xt,Et,re,_e,Zt,$t,Ht,Wt=this,Tt=Z.target.__data__.type,Pt=(y&&Z.metaKey?Tt="overlay":Tt)==="selection"?wu:y&&Z.altKey?Mi:js,Kt=a===bl?null:dd[Tt],se=a===_l?null:fd[Tt],Ce=vl(Wt),qe=Ce.extent,Ke=Ce.selection,yr=qe[0][0],Je=qe[0][1],qr=qe[1][0],Gr=qe[1][1],Dr=0,zr=0,An=Kt&&se&&y&&Z.shiftKey,ln=Array.from(Z.touches||[Z],dn=>{const $i=dn.identifier;return(dn=ha(dn,Wt)).point0=dn.slice(),dn.identifier=$i,dn});ro(Wt);var ja=B(Wt,arguments,!0).beforestart();if(Tt==="overlay"){Ke&&(Zt=!0);const dn=[ln[0],ln[1]||ln[0]];Ce.selection=Ke=[[K=a===bl?yr:Gi(dn[0][0],dn[1][0]),ht=a===_l?Je:Gi(dn[0][1],dn[1][1])],[xt=a===bl?qr:Yi(dn[0][0],dn[1][0]),re=a===_l?Gr:Yi(dn[0][1],dn[1][1])]],ln.length>1&&tl(Z)}else K=Ke[0][0],ht=Ke[0][1],xt=Ke[1][0],re=Ke[1][1];gt=K,dt=ht,Et=xt,_e=re;var fc=Ei(Wt).attr("pointer-events","none"),Co=fc.selectAll(".overlay").attr("cursor",mo[Tt]);if(Z.touches)ja.moved=Nm,ja.ended=Lm;else{var su=Ei(Z.view).on("mousemove.brush",Nm,!0).on("mouseup.brush",Lm,!0);y&&su.on("keydown.brush",A5,!0).on("keyup.brush",C5,!0),fo(Z.view)}I.call(Wt),ja.start(Z,Pt.name)}function Nm(dn){for(const $i of dn.changedTouches||[dn])for(const Gh of ln)Gh.identifier===$i.identifier&&(Gh.cur=ha($i,Wt));if(An&&!$t&&!Ht&&ln.length===1){const $i=ln[0];h1($i.cur[0]-$i[0])>h1($i.cur[1]-$i[1])?Ht=!0:$t=!0}for(const $i of ln)$i.cur&&($i[0]=$i.cur[0],$i[1]=$i.cur[1]);Zt=!0,ml(dn),tl(dn)}function tl(dn){const $i=ln[0],Gh=$i.point0;var pc;switch(Dr=$i[0]-Gh[0],zr=$i[1]-Gh[1],Pt){case io:case wu:Kt&&(Dr=Yi(yr-K,Gi(qr-xt,Dr)),gt=K+Dr,Et=xt+Dr),se&&(zr=Yi(Je-ht,Gi(Gr-re,zr)),dt=ht+zr,_e=re+zr);break;case js:ln[1]?(Kt&&(gt=Yi(yr,Gi(qr,ln[0][0])),Et=Yi(yr,Gi(qr,ln[1][0])),Kt=1),se&&(dt=Yi(Je,Gi(Gr,ln[0][1])),_e=Yi(Je,Gi(Gr,ln[1][1])),se=1)):(Kt<0?(Dr=Yi(yr-K,Gi(qr-K,Dr)),gt=K+Dr,Et=xt):Kt>0&&(Dr=Yi(yr-xt,Gi(qr-xt,Dr)),gt=K,Et=xt+Dr),se<0?(zr=Yi(Je-ht,Gi(Gr-ht,zr)),dt=ht+zr,_e=re):se>0&&(zr=Yi(Je-re,Gi(Gr-re,zr)),dt=ht,_e=re+zr));break;case Mi:Kt&&(gt=Yi(yr,Gi(qr,K-Dr*Kt)),Et=Yi(yr,Gi(qr,xt+Dr*Kt))),se&&(dt=Yi(Je,Gi(Gr,ht-zr*se)),_e=Yi(Je,Gi(Gr,re+zr*se)))}Et<gt&&(Kt*=-1,pc=K,K=xt,xt=pc,pc=gt,gt=Et,Et=pc,Tt in f1&&Co.attr("cursor",mo[Tt=f1[Tt]])),_e<dt&&(se*=-1,pc=ht,ht=re,re=pc,pc=dt,dt=_e,_e=pc,Tt in p1&&Co.attr("cursor",mo[Tt=p1[Tt]])),Ce.selection&&(Ke=Ce.selection),$t&&(gt=Ke[0][0],Et=Ke[1][0]),Ht&&(dt=Ke[0][1],_e=Ke[1][1]),Ke[0][0]===gt&&Ke[0][1]===dt&&Ke[1][0]===Et&&Ke[1][1]===_e||(Ce.selection=[[gt,dt],[Et,_e]],I.call(Wt),ja.brush(dn,Pt.name))}function Lm(dn){if(ud(dn),dn.touches){if(dn.touches.length)return;o&&clearTimeout(o),o=setTimeout(function(){o=null},500)}else ss(dn.view,Zt),su.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);fc.attr("pointer-events","all"),Co.attr("cursor",mo.overlay),Ce.selection&&(Ke=Ce.selection),xl(Ke)&&(Ce.selection=null,I.call(Wt)),ja.end(dn,Pt.name)}function A5(dn){switch(dn.keyCode){case 16:An=Kt&&se;break;case 18:Pt===js&&(Kt&&(xt=Et-Dr*Kt,K=gt+Dr*Kt),se&&(re=_e-zr*se,ht=dt+zr*se),Pt=Mi,tl(dn));break;case 32:Pt!==js&&Pt!==Mi||(Kt<0?xt=Et-Dr:Kt>0&&(K=gt-Dr),se<0?re=_e-zr:se>0&&(ht=dt-zr),Pt=io,Co.attr("cursor",mo.selection),tl(dn));break;default:return}ml(dn)}function C5(dn){switch(dn.keyCode){case 16:An&&($t=Ht=An=!1,tl(dn));break;case 18:Pt===Mi&&(Kt<0?xt=Et:Kt>0&&(K=gt),se<0?re=_e:se>0&&(ht=dt),Pt=js,tl(dn));break;case 32:Pt===io&&(dn.altKey?(Kt&&(xt=Et-Dr*Kt,K=gt+Dr*Kt),se&&(re=_e-zr*se,ht=dt+zr*se),Pt=Mi):(Kt<0?xt=Et:Kt>0&&(K=gt),se<0?re=_e:se>0&&(ht=dt),Pt=js),Co.attr("cursor",mo[Tt]),tl(dn));break;default:return}ml(dn)}}function H(Z){B(this,arguments).moved(Z)}function at(Z){B(this,arguments).ended(Z)}function V(){var Z=this.__brush||{selection:null};return Z.extent=ku(l.apply(this,arguments)),Z.dim=a,Z}return S.move=function(Z,K,gt){Z.tween?Z.on("start.brush",function(ht){B(this,arguments).beforestart().start(ht)}).on("interrupt.brush end.brush",function(ht){B(this,arguments).end(ht)}).tween("brush",function(){var ht=this,dt=ht.__brush,xt=B(ht,arguments),Et=dt.selection,re=a.input(typeof K=="function"?K.apply(this,arguments):K,dt.extent),_e=en(Et,re);function Zt($t){dt.selection=$t===1&&re===null?null:_e($t),I.call(ht),xt.brush()}return Et!==null&&re!==null?Zt:Zt(1)}):Z.each(function(){var ht=this,dt=arguments,xt=ht.__brush,Et=a.input(typeof K=="function"?K.apply(ht,dt):K,xt.extent),re=B(ht,dt).beforestart();ro(ht),xt.selection=Et===null?null:Et,I.call(ht),re.start(gt).brush(gt).end(gt)})},S.clear=function(Z,K){S.move(Z,null,K)},$.prototype={beforestart:function(){return++this.active==1&&(this.state.emitter=this,this.starting=!0),this},start:function(Z,K){return this.starting?(this.starting=!1,this.emit("start",Z,K)):this.emit("brush",Z),this},brush:function(Z,K){return this.emit("brush",Z,K),this},end:function(Z,K){return--this.active==0&&(delete this.state.emitter,this.emit("end",Z,K)),this},emit:function(Z,K,gt){var ht=Ei(this.that).datum();w.call(Z,this.that,new u1(Z,{sourceEvent:K,target:S,selection:a.output(this.state.selection),mode:gt,dispatch:w}),ht)}},S.extent=function(Z){return arguments.length?(l=typeof Z=="function"?Z:Ic(ku(Z)),S):l},S.filter=function(Z){return arguments.length?(h=typeof Z=="function"?Z:Ic(!!Z),S):h},S.touchable=function(Z){return arguments.length?(g=typeof Z=="function"?Z:Ic(!!Z),S):g},S.handleSize=function(Z){return arguments.length?(k=+Z,S):k},S.keyModifiers=function(Z){return arguments.length?(y=!!Z,S):y},S.on=function(){var Z=w.on.apply(w,arguments);return Z===w?S:Z},S}var Su=Math.abs,zo=Math.cos,Uo=Math.sin,Nc=Math.PI,wa=Nc/2,wl=2*Nc,kl=Math.max,fs=1e-12;function ps(a,o){return Array.from({length:o-a},(l,h)=>a+h)}function Au(a){return function(o,l){return a(o.source.value+o.target.value,l.source.value+l.target.value)}}function Cu(){return El(!1,!1)}function Iu(){return El(!1,!0)}function $s(){return El(!0,!1)}function El(a,o){var l=0,h=null,g=null,y=null;function w(k){var S,I=k.length,B=new Array(I),$=ps(0,I),P=new Array(I*I),H=new Array(I),at=0;k=Float64Array.from({length:I*I},o?(V,Z)=>k[Z%I][Z/I|0]:(V,Z)=>k[Z/I|0][Z%I]);for(let V=0;V<I;++V){let Z=0;for(let K=0;K<I;++K)Z+=k[V*I+K]+a*k[K*I+V];at+=B[V]=Z}S=(at=kl(0,wl-l*I)/at)?l:wl/I;{let V=0;h&&$.sort((Z,K)=>h(B[Z],B[K]));for(const Z of $){const K=V;if(a){const gt=ps(1+~I,I).filter(ht=>ht<0?k[~ht*I+Z]:k[Z*I+ht]);g&>.sort((ht,dt)=>g(ht<0?-k[~ht*I+Z]:k[Z*I+ht],dt<0?-k[~dt*I+Z]:k[Z*I+dt]));for(const ht of gt)ht<0?(P[~ht*I+Z]||(P[~ht*I+Z]={source:null,target:null})).target={index:Z,startAngle:V,endAngle:V+=k[~ht*I+Z]*at,value:k[~ht*I+Z]}:(P[Z*I+ht]||(P[Z*I+ht]={source:null,target:null})).source={index:Z,startAngle:V,endAngle:V+=k[Z*I+ht]*at,value:k[Z*I+ht]};H[Z]={index:Z,startAngle:K,endAngle:V,value:B[Z]}}else{const gt=ps(0,I).filter(ht=>k[Z*I+ht]||k[ht*I+Z]);g&>.sort((ht,dt)=>g(k[Z*I+ht],k[Z*I+dt]));for(const ht of gt){let dt;if(Z<ht?(dt=P[Z*I+ht]||(P[Z*I+ht]={source:null,target:null}),dt.source={index:Z,startAngle:V,endAngle:V+=k[Z*I+ht]*at,value:k[Z*I+ht]}):(dt=P[ht*I+Z]||(P[ht*I+Z]={source:null,target:null}),dt.target={index:Z,startAngle:V,endAngle:V+=k[Z*I+ht]*at,value:k[Z*I+ht]},Z===ht&&(dt.source=dt.target)),dt.source&&dt.target&&dt.source.value<dt.target.value){const xt=dt.source;dt.source=dt.target,dt.target=xt}}H[Z]={index:Z,startAngle:K,endAngle:V,value:B[Z]}}V+=S}}return(P=Object.values(P)).groups=H,y?P.sort(y):P}return w.padAngle=function(k){return arguments.length?(l=kl(0,k),w):l},w.sortGroups=function(k){return arguments.length?(h=k,w):h},w.sortSubgroups=function(k){return arguments.length?(g=k,w):g},w.sortChords=function(k){return arguments.length?(k==null?y=null:(y=Au(k))._=k,w):y&&y._},w}const Hs=Math.PI,gs=2*Hs,_o=1e-6,Nu=gs-_o;function Tl(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Lu(){return new Tl}Tl.prototype=Lu.prototype={constructor:Tl,moveTo:function(a,o){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+o)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(a,o){this._+="L"+(this._x1=+a)+","+(this._y1=+o)},quadraticCurveTo:function(a,o,l,h){this._+="Q"+ +a+","+ +o+","+(this._x1=+l)+","+(this._y1=+h)},bezierCurveTo:function(a,o,l,h,g,y){this._+="C"+ +a+","+ +o+","+ +l+","+ +h+","+(this._x1=+g)+","+(this._y1=+y)},arcTo:function(a,o,l,h,g){a=+a,o=+o,l=+l,h=+h,g=+g;var y=this._x1,w=this._y1,k=l-a,S=h-o,I=y-a,B=w-o,$=I*I+B*B;if(g<0)throw new Error("negative radius: "+g);if(this._x1===null)this._+="M"+(this._x1=a)+","+(this._y1=o);else if($>_o)if(Math.abs(B*k-S*I)>_o&&g){var P=l-y,H=h-w,at=k*k+S*S,V=P*P+H*H,Z=Math.sqrt(at),K=Math.sqrt($),gt=g*Math.tan((Hs-Math.acos((at+$-V)/(2*Z*K)))/2),ht=gt/K,dt=gt/Z;Math.abs(ht-1)>_o&&(this._+="L"+(a+ht*I)+","+(o+ht*B)),this._+="A"+g+","+g+",0,0,"+ +(B*P>I*H)+","+(this._x1=a+dt*k)+","+(this._y1=o+dt*S)}else this._+="L"+(this._x1=a)+","+(this._y1=o)},arc:function(a,o,l,h,g,y){a=+a,o=+o,y=!!y;var w=(l=+l)*Math.cos(h),k=l*Math.sin(h),S=a+w,I=o+k,B=1^y,$=y?h-g:g-h;if(l<0)throw new Error("negative radius: "+l);this._x1===null?this._+="M"+S+","+I:(Math.abs(this._x1-S)>_o||Math.abs(this._y1-I)>_o)&&(this._+="L"+S+","+I),l&&($<0&&($=$%gs+gs),$>Nu?this._+="A"+l+","+l+",0,1,"+B+","+(a-w)+","+(o-k)+"A"+l+","+l+",0,1,"+B+","+(this._x1=S)+","+(this._y1=I):$>_o&&(this._+="A"+l+","+l+",0,"+ +($>=Hs)+","+B+","+(this._x1=a+l*Math.cos(g))+","+(this._y1=o+l*Math.sin(g))))},rect:function(a,o,l,h){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+o)+"h"+ +l+"v"+ +h+"h"+-l+"Z"},toString:function(){return this._}};const ys=Lu;var Mu=Array.prototype.slice;function Yo(a){return function(){return a}}function v1(a){return a.source}function x1(a){return a.target}function ms(a){return a.radius}function vi(a){return a.startAngle}function w1(a){return a.endAngle}function qs(){return 0}function k1(){return 10}function Ou(a){var o=v1,l=x1,h=ms,g=ms,y=vi,w=w1,k=qs,S=null;function I(){var B,$=o.apply(this,arguments),P=l.apply(this,arguments),H=k.apply(this,arguments)/2,at=Mu.call(arguments),V=+h.apply(this,(at[0]=$,at)),Z=y.apply(this,at)-wa,K=w.apply(this,at)-wa,gt=+g.apply(this,(at[0]=P,at)),ht=y.apply(this,at)-wa,dt=w.apply(this,at)-wa;if(S||(S=B=ys()),H>fs&&(Su(K-Z)>2*H+fs?K>Z?(Z+=H,K-=H):(Z-=H,K+=H):Z=K=(Z+K)/2,Su(dt-ht)>2*H+fs?dt>ht?(ht+=H,dt-=H):(ht-=H,dt+=H):ht=dt=(ht+dt)/2),S.moveTo(V*zo(Z),V*Uo(Z)),S.arc(0,0,V,Z,K),Z!==ht||K!==dt)if(a){var xt=+a.apply(this,arguments),Et=gt-xt,re=(ht+dt)/2;S.quadraticCurveTo(0,0,Et*zo(ht),Et*Uo(ht)),S.lineTo(gt*zo(re),gt*Uo(re)),S.lineTo(Et*zo(dt),Et*Uo(dt))}else S.quadraticCurveTo(0,0,gt*zo(ht),gt*Uo(ht)),S.arc(0,0,gt,ht,dt);if(S.quadraticCurveTo(0,0,V*zo(Z),V*Uo(Z)),S.closePath(),B)return S=null,B+""||null}return a&&(I.headRadius=function(B){return arguments.length?(a=typeof B=="function"?B:Yo(+B),I):a}),I.radius=function(B){return arguments.length?(h=g=typeof B=="function"?B:Yo(+B),I):h},I.sourceRadius=function(B){return arguments.length?(h=typeof B=="function"?B:Yo(+B),I):h},I.targetRadius=function(B){return arguments.length?(g=typeof B=="function"?B:Yo(+B),I):g},I.startAngle=function(B){return arguments.length?(y=typeof B=="function"?B:Yo(+B),I):y},I.endAngle=function(B){return arguments.length?(w=typeof B=="function"?B:Yo(+B),I):w},I.padAngle=function(B){return arguments.length?(k=typeof B=="function"?B:Yo(+B),I):k},I.source=function(B){return arguments.length?(o=B,I):o},I.target=function(B){return arguments.length?(l=B,I):l},I.context=function(B){return arguments.length?(S=B==null?null:B,I):S},I}function E1(){return Ou()}function T1(){return Ou(k1)}const Du=Math.PI/180,bo=180/Math.PI,Sl=.96422,S1=.82521,A1=4/29,Al=6/29,Ru=3*Al*Al;function C1(a){if(a instanceof Ga)return new Ga(a.l,a.a,a.b,a.opacity);if(a instanceof ao)return N1(a);a instanceof Zn||(a=Vn(a));var o,l,h=Lc(a.r),g=Lc(a.g),y=Lc(a.b),w=Bu((.2225045*h+.7168786*g+.0606169*y)/1);return h===g&&g===y?o=l=w:(o=Bu((.4360747*h+.3850649*g+.1430804*y)/Sl),l=Bu((.0139322*h+.0971045*g+.7141733*y)/S1)),new Ga(116*w-16,500*(o-w),200*(w-l),a.opacity)}function gd(a,o){return new Ga(a,0,0,o==null?1:o)}function Cl(a,o,l,h){return arguments.length===1?C1(a):new Ga(a,o,l,h==null?1:h)}function Ga(a,o,l,h){this.l=+a,this.a=+o,this.b=+l,this.opacity=+h}function Bu(a){return a>.008856451679035631?Math.pow(a,1/3):a/Ru+A1}function Fu(a){return a>Al?a*a*a:Ru*(a-A1)}function Ws(a){return 255*(a<=.0031308?12.92*a:1.055*Math.pow(a,1/2.4)-.055)}function Lc(a){return(a/=255)<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)}function I1(a){if(a instanceof ao)return new ao(a.h,a.c,a.l,a.opacity);if(a instanceof Ga||(a=C1(a)),a.a===0&&a.b===0)return new ao(NaN,0<a.l&&a.l<100?0:NaN,a.l,a.opacity);var o=Math.atan2(a.b,a.a)*bo;return new ao(o<0?o+360:o,Math.sqrt(a.a*a.a+a.b*a.b),a.l,a.opacity)}function jo(a,o,l,h){return arguments.length===1?I1(a):new ao(l,o,a,h==null?1:h)}function Fa(a,o,l,h){return arguments.length===1?I1(a):new ao(a,o,l,h==null?1:h)}function ao(a,o,l,h){this.h=+a,this.c=+o,this.l=+l,this.opacity=+h}function N1(a){if(isNaN(a.h))return new Ga(a.l,0,0,a.opacity);var o=a.h*Du;return new Ga(a.l,Math.cos(o)*a.c,Math.sin(o)*a.c,a.opacity)}Ui(Ga,Cl,xr(ba,{brighter:function(a){return new Ga(this.l+18*(a==null?1:a),this.a,this.b,this.opacity)},darker:function(a){return new Ga(this.l-18*(a==null?1:a),this.a,this.b,this.opacity)},rgb:function(){var a=(this.l+16)/116,o=isNaN(this.a)?a:a+this.a/500,l=isNaN(this.b)?a:a-this.b/200;return new Zn(Ws(3.1338561*(o=Sl*Fu(o))-1.6168667*(a=1*Fu(a))-.4906146*(l=S1*Fu(l))),Ws(-.9787684*o+1.9161415*a+.033454*l),Ws(.0719453*o-.2289914*a+1.4052427*l),this.opacity)}})),Ui(ao,Fa,xr(ba,{brighter:function(a){return new ao(this.h,this.c,this.l+18*(a==null?1:a),this.opacity)},darker:function(a){return new ao(this.h,this.c,this.l-18*(a==null?1:a),this.opacity)},rgb:function(){return N1(this).rgb()}}));var L1=-.14861,Mc=1.78277,Vi=-.29227,$o=-.90649,Pa=1.97294,Gs=Pa*$o,M1=Pa*Mc,Il=Mc*Vi-$o*L1;function yd(a){if(a instanceof Ho)return new Ho(a.h,a.s,a.l,a.opacity);a instanceof Zn||(a=Vn(a));var o=a.r/255,l=a.g/255,h=a.b/255,g=(Il*h+Gs*o-M1*l)/(Il+Gs-M1),y=h-g,w=(Pa*(l-g)-Vi*y)/$o,k=Math.sqrt(w*w+y*y)/(Pa*g*(1-g)),S=k?Math.atan2(w,y)*bo-120:NaN;return new Ho(S<0?S+360:S,k,g,a.opacity)}function Tn(a,o,l,h){return arguments.length===1?yd(a):new Ho(a,o,l,h==null?1:h)}function Ho(a,o,l,h){this.h=+a,this.s=+o,this.l=+l,this.opacity=+h}Ui(Ho,Tn,xr(ba,{brighter:function(a){return a=a==null?na:Math.pow(na,a),new Ho(this.h,this.s,this.l*a,this.opacity)},darker:function(a){return a=a==null?Wi:Math.pow(Wi,a),new Ho(this.h,this.s,this.l*a,this.opacity)},rgb:function(){var a=isNaN(this.h)?0:(this.h+120)*Du,o=+this.l,l=isNaN(this.s)?0:this.s*o*(1-o),h=Math.cos(a),g=Math.sin(a);return new Zn(255*(o+l*(L1*h+Mc*g)),255*(o+l*(Vi*h+$o*g)),255*(o+l*(Pa*h)),this.opacity)}}));var Pu=Array.prototype.slice;function O1(a,o){return a-o}const vo=a=>()=>a;function Vs(a,o){for(var l,h=-1,g=o.length;++h<g;)if(l=md(a,o[h]))return l;return 0}function md(a,o){for(var l=o[0],h=o[1],g=-1,y=0,w=a.length,k=w-1;y<w;k=y++){var S=a[y],I=S[0],B=S[1],$=a[k],P=$[0],H=$[1];if(zu(S,$,o))return 0;B>h!=H>h&&l<(P-I)*(h-B)/(H-B)+I&&(g=-g)}return g}function zu(a,o,l){var h,g,y,w;return function(k,S,I){return(S[0]-k[0])*(I[1]-k[1])==(I[0]-k[0])*(S[1]-k[1])}(a,o,l)&&(g=a[h=+(a[0]===o[0])],y=l[h],w=o[h],g<=y&&y<=w||w<=y&&y<=g)}function _d(){}var xo=[[],[[[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 Zs(){var a=1,o=1,l=ze,h=k;function g(S){var I=l(S);if(Array.isArray(I))I=I.slice().sort(O1);else{const B=st(S),$=Se(B[0],B[1],I);I=le(Math.floor(B[0]/$)*$,Math.floor(B[1]/$-1)*$,I)}return I.map(B=>y(S,B))}function y(S,I){var B=[],$=[];return function(P,H,at){var V,Z,K,gt,ht,dt,xt=new Array,Et=new Array;for(V=Z=-1,gt=P[0]>=H,xo[gt<<1].forEach(re);++V<a-1;)K=gt,gt=P[V+1]>=H,xo[K|gt<<1].forEach(re);for(xo[gt<<0].forEach(re);++Z<o-1;){for(V=-1,gt=P[Z*a+a]>=H,ht=P[Z*a]>=H,xo[gt<<1|ht<<2].forEach(re);++V<a-1;)K=gt,gt=P[Z*a+a+V+1]>=H,dt=ht,ht=P[Z*a+V+1]>=H,xo[K|gt<<1|ht<<2|dt<<3].forEach(re);xo[gt|ht<<3].forEach(re)}for(V=-1,ht=P[Z*a]>=H,xo[ht<<2].forEach(re);++V<a-1;)dt=ht,ht=P[Z*a+V+1]>=H,xo[ht<<2|dt<<3].forEach(re);function re(_e){var Zt,$t,Ht=[_e[0][0]+V,_e[0][1]+Z],Wt=[_e[1][0]+V,_e[1][1]+Z],Tt=w(Ht),Pt=w(Wt);(Zt=Et[Tt])?($t=xt[Pt])?(delete Et[Zt.end],delete xt[$t.start],Zt===$t?(Zt.ring.push(Wt),at(Zt.ring)):xt[Zt.start]=Et[$t.end]={start:Zt.start,end:$t.end,ring:Zt.ring.concat($t.ring)}):(delete Et[Zt.end],Zt.ring.push(Wt),Et[Zt.end=Pt]=Zt):(Zt=xt[Pt])?($t=Et[Tt])?(delete xt[Zt.start],delete Et[$t.end],Zt===$t?(Zt.ring.push(Wt),at(Zt.ring)):xt[$t.start]=Et[Zt.end]={start:$t.start,end:Zt.end,ring:$t.ring.concat(Zt.ring)}):(delete xt[Zt.start],Zt.ring.unshift(Ht),xt[Zt.start=Tt]=Zt):xt[Tt]=Et[Pt]={start:Tt,end:Pt,ring:[Ht,Wt]}}xo[ht<<3].forEach(re)}(S,I,function(P){h(P,S,I),function(H){for(var at=0,V=H.length,Z=H[V-1][1]*H[0][0]-H[V-1][0]*H[0][1];++at<V;)Z+=H[at-1][1]*H[at][0]-H[at-1][0]*H[at][1];return Z}(P)>0?B.push([P]):$.push(P)}),$.forEach(function(P){for(var H,at=0,V=B.length;at<V;++at)if(Vs((H=B[at])[0],P)!==-1)return void H.push(P)}),{type:"MultiPolygon",value:I,coordinates:B}}function w(S){return 2*S[0]+S[1]*(a+1)*4}function k(S,I,B){S.forEach(function($){var P,H=$[0],at=$[1],V=0|H,Z=0|at,K=I[Z*a+V];H>0&&H<a&&V===H&&(P=I[Z*a+V-1],$[0]=H+(B-P)/(K-P)-.5),at>0&&at<o&&Z===at&&(P=I[(Z-1)*a+V],$[1]=at+(B-P)/(K-P)-.5)})}return g.contour=y,g.size=function(S){if(!arguments.length)return[a,o];var I=Math.floor(S[0]),B=Math.floor(S[1]);if(!(I>=0&&B>=0))throw new Error("invalid size");return a=I,o=B,g},g.thresholds=function(S){return arguments.length?(l=typeof S=="function"?S:Array.isArray(S)?vo(Pu.call(S)):vo(S),g):l},g.smooth=function(S){return arguments.length?(h=S?k:_d,g):h===k},g}function oo(a,o,l){for(var h=a.width,g=a.height,y=1+(l<<1),w=0;w<g;++w)for(var k=0,S=0;k<h+l;++k)k<h&&(S+=a.data[k+w*h]),k>=l&&(k>=y&&(S-=a.data[k-y+w*h]),o.data[k-l+w*h]=S/Math.min(k+1,h-1+y-k,y))}function ka(a,o,l){for(var h=a.width,g=a.height,y=1+(l<<1),w=0;w<h;++w)for(var k=0,S=0;k<g+l;++k)k<g&&(S+=a.data[w+k*h]),k>=l&&(k>=y&&(S-=a.data[w+(k-y)*h]),o.data[w+(k-l)*h]=S/Math.min(k+1,g-1+y-k,y))}function Nl(a){return a[0]}function Uu(a){return a[1]}function bd(){return 1}function za(){var a=Nl,o=Uu,l=bd,h=960,g=500,y=20,w=2,k=3*y,S=h+2*k>>w,I=g+2*k>>w,B=vo(20);function $(K){var gt=new Float32Array(S*I),ht=new Float32Array(S*I),dt=Math.pow(2,-w);K.forEach(function(re,_e,Zt){var $t=(a(re,_e,Zt)+k)*dt,Ht=(o(re,_e,Zt)+k)*dt,Wt=+l(re,_e,Zt);if($t>=0&&$t<S&&Ht>=0&&Ht<I){var Tt=Math.floor($t),Pt=Math.floor(Ht),Kt=$t-Tt-.5,se=Ht-Pt-.5;gt[Tt+Pt*S]+=(1-Kt)*(1-se)*Wt,gt[Tt+1+Pt*S]+=Kt*(1-se)*Wt,gt[Tt+1+(Pt+1)*S]+=Kt*se*Wt,gt[Tt+(Pt+1)*S]+=(1-Kt)*se*Wt}}),oo({width:S,height:I,data:gt},{width:S,height:I,data:ht},y>>w),ka({width:S,height:I,data:ht},{width:S,height:I,data:gt},y>>w),oo({width:S,height:I,data:gt},{width:S,height:I,data:ht},y>>w),ka({width:S,height:I,data:ht},{width:S,height:I,data:gt},y>>w),oo({width:S,height:I,data:gt},{width:S,height:I,data:ht},y>>w),ka({width:S,height:I,data:ht},{width:S,height:I,data:gt},y>>w);var xt=B(gt);if(!Array.isArray(xt)){var Et=Xe(gt);xt=Se(0,Et,xt),(xt=Le(0,Math.floor(Et/xt)*xt,xt)).shift()}return Zs().thresholds(xt).size([S,I])(gt).map(P)}function P(K){return K.value*=Math.pow(2,-2*w),K.coordinates.forEach(H),K}function H(K){K.forEach(at)}function at(K){K.forEach(V)}function V(K){K[0]=K[0]*Math.pow(2,w)-k,K[1]=K[1]*Math.pow(2,w)-k}function Z(){return S=h+2*(k=3*y)>>w,I=g+2*k>>w,$}return $.x=function(K){return arguments.length?(a=typeof K=="function"?K:vo(+K),$):a},$.y=function(K){return arguments.length?(o=typeof K=="function"?K:vo(+K),$):o},$.weight=function(K){return arguments.length?(l=typeof K=="function"?K:vo(+K),$):l},$.size=function(K){if(!arguments.length)return[h,g];var gt=+K[0],ht=+K[1];if(!(gt>=0&&ht>=0))throw new Error("invalid size");return h=gt,g=ht,Z()},$.cellSize=function(K){if(!arguments.length)return 1<<w;if(!((K=+K)>=1))throw new Error("invalid cell size");return w=Math.floor(Math.log(K)/Math.LN2),Z()},$.thresholds=function(K){return arguments.length?(B=typeof K=="function"?K:Array.isArray(K)?vo(Pu.call(K)):vo(K),$):B},$.bandwidth=function(K){if(!arguments.length)return Math.sqrt(y*(y+1));if(!((K=+K)>=0))throw new Error("invalid bandwidth");return y=Math.round((Math.sqrt(4*K*K+1)-1)/2),Z()},$}const xi=134217729;function qo(a,o,l,h,g){let y,w,k,S,I=o[0],B=h[0],$=0,P=0;B>I==B>-I?(y=I,I=o[++$]):(y=B,B=h[++P]);let H=0;if($<a&&P<l)for(B>I==B>-I?(w=I+y,k=y-(w-I),I=o[++$]):(w=B+y,k=y-(w-B),B=h[++P]),y=w,k!==0&&(g[H++]=k);$<a&&P<l;)B>I==B>-I?(w=y+I,S=w-y,k=y-(w-S)+(I-S),I=o[++$]):(w=y+B,S=w-y,k=y-(w-S)+(B-S),B=h[++P]),y=w,k!==0&&(g[H++]=k);for(;$<a;)w=y+I,S=w-y,k=y-(w-S)+(I-S),I=o[++$],y=w,k!==0&&(g[H++]=k);for(;P<l;)w=y+B,S=w-y,k=y-(w-S)+(B-S),B=h[++P],y=w,k!==0&&(g[H++]=k);return y===0&&H!==0||(g[H++]=y),H}function wo(a){return new Float64Array(a)}const _s=wo(4),Yu=wo(8),Ll=wo(12),ju=wo(16),Zi=wo(4);function Oc(a,o,l,h,g,y){const w=(o-y)*(l-g),k=(a-g)*(h-y),S=w-k;if(w===0||k===0||w>0!=k>0)return S;const I=Math.abs(w+k);return Math.abs(S)>=33306690738754716e-32*I?S:-function(B,$,P,H,at,V,Z){let K,gt,ht,dt,xt,Et,re,_e,Zt,$t,Ht,Wt,Tt,Pt,Kt,se,Ce,qe;const Ke=B-at,yr=P-at,Je=$-V,qr=H-V;Pt=Ke*qr,Et=xi*Ke,re=Et-(Et-Ke),_e=Ke-re,Et=xi*qr,Zt=Et-(Et-qr),$t=qr-Zt,Kt=_e*$t-(Pt-re*Zt-_e*Zt-re*$t),se=Je*yr,Et=xi*Je,re=Et-(Et-Je),_e=Je-re,Et=xi*yr,Zt=Et-(Et-yr),$t=yr-Zt,Ce=_e*$t-(se-re*Zt-_e*Zt-re*$t),Ht=Kt-Ce,xt=Kt-Ht,_s[0]=Kt-(Ht+xt)+(xt-Ce),Wt=Pt+Ht,xt=Wt-Pt,Tt=Pt-(Wt-xt)+(Ht-xt),Ht=Tt-se,xt=Tt-Ht,_s[1]=Tt-(Ht+xt)+(xt-se),qe=Wt+Ht,xt=qe-Wt,_s[2]=Wt-(qe-xt)+(Ht-xt),_s[3]=qe;let Gr=function(ja,fc){let Co=fc[0];for(let su=1;su<4;su++)Co+=fc[su];return Co}(0,_s),Dr=22204460492503146e-32*Z;if(Gr>=Dr||-Gr>=Dr||(xt=B-Ke,K=B-(Ke+xt)+(xt-at),xt=P-yr,ht=P-(yr+xt)+(xt-at),xt=$-Je,gt=$-(Je+xt)+(xt-V),xt=H-qr,dt=H-(qr+xt)+(xt-V),K===0&>===0&&ht===0&&dt===0)||(Dr=11093356479670487e-47*Z+33306690738754706e-32*Math.abs(Gr),Gr+=Ke*dt+qr*K-(Je*ht+yr*gt),Gr>=Dr||-Gr>=Dr))return Gr;Pt=K*qr,Et=xi*K,re=Et-(Et-K),_e=K-re,Et=xi*qr,Zt=Et-(Et-qr),$t=qr-Zt,Kt=_e*$t-(Pt-re*Zt-_e*Zt-re*$t),se=gt*yr,Et=xi*gt,re=Et-(Et-gt),_e=gt-re,Et=xi*yr,Zt=Et-(Et-yr),$t=yr-Zt,Ce=_e*$t-(se-re*Zt-_e*Zt-re*$t),Ht=Kt-Ce,xt=Kt-Ht,Zi[0]=Kt-(Ht+xt)+(xt-Ce),Wt=Pt+Ht,xt=Wt-Pt,Tt=Pt-(Wt-xt)+(Ht-xt),Ht=Tt-se,xt=Tt-Ht,Zi[1]=Tt-(Ht+xt)+(xt-se),qe=Wt+Ht,xt=qe-Wt,Zi[2]=Wt-(qe-xt)+(Ht-xt),Zi[3]=qe;const zr=qo(4,_s,4,Zi,Yu);Pt=Ke*dt,Et=xi*Ke,re=Et-(Et-Ke),_e=Ke-re,Et=xi*dt,Zt=Et-(Et-dt),$t=dt-Zt,Kt=_e*$t-(Pt-re*Zt-_e*Zt-re*$t),se=Je*ht,Et=xi*Je,re=Et-(Et-Je),_e=Je-re,Et=xi*ht,Zt=Et-(Et-ht),$t=ht-Zt,Ce=_e*$t-(se-re*Zt-_e*Zt-re*$t),Ht=Kt-Ce,xt=Kt-Ht,Zi[0]=Kt-(Ht+xt)+(xt-Ce),Wt=Pt+Ht,xt=Wt-Pt,Tt=Pt-(Wt-xt)+(Ht-xt),Ht=Tt-se,xt=Tt-Ht,Zi[1]=Tt-(Ht+xt)+(xt-se),qe=Wt+Ht,xt=qe-Wt,Zi[2]=Wt-(qe-xt)+(Ht-xt),Zi[3]=qe;const An=qo(zr,Yu,4,Zi,Ll);Pt=K*dt,Et=xi*K,re=Et-(Et-K),_e=K-re,Et=xi*dt,Zt=Et-(Et-dt),$t=dt-Zt,Kt=_e*$t-(Pt-re*Zt-_e*Zt-re*$t),se=gt*ht,Et=xi*gt,re=Et-(Et-gt),_e=gt-re,Et=xi*ht,Zt=Et-(Et-ht),$t=ht-Zt,Ce=_e*$t-(se-re*Zt-_e*Zt-re*$t),Ht=Kt-Ce,xt=Kt-Ht,Zi[0]=Kt-(Ht+xt)+(xt-Ce),Wt=Pt+Ht,xt=Wt-Pt,Tt=Pt-(Wt-xt)+(Ht-xt),Ht=Tt-se,xt=Tt-Ht,Zi[1]=Tt-(Ht+xt)+(xt-se),qe=Wt+Ht,xt=qe-Wt,Zi[2]=Wt-(qe-xt)+(Ht-xt),Zi[3]=qe;const ln=qo(An,Ll,4,Zi,ju);return ju[ln-1]}(a,o,l,h,g,y,I)}const $u=Math.pow(2,-52),Xs=new Uint32Array(512);class bs{static from(o,l=Rc,h=wd){const g=o.length,y=new Float64Array(2*g);for(let w=0;w<g;w++){const k=o[w];y[2*w]=l(k),y[2*w+1]=h(k)}return new bs(y)}constructor(o){const l=o.length>>1;if(l>0&&typeof o[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=o;const h=Math.max(2*l-5,0);this._triangles=new Uint32Array(3*h),this._halfedges=new Int32Array(3*h),this._hashSize=Math.ceil(Math.sqrt(l)),this._hullPrev=new Uint32Array(l),this._hullNext=new Uint32Array(l),this._hullTri=new Uint32Array(l),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(l),this._dists=new Float64Array(l),this.update()}update(){const{coords:o,_hullPrev:l,_hullNext:h,_hullTri:g,_hullHash:y}=this,w=o.length>>1;let k=1/0,S=1/0,I=-1/0,B=-1/0;for(let $t=0;$t<w;$t++){const Ht=o[2*$t],Wt=o[2*$t+1];Ht<k&&(k=Ht),Wt<S&&(S=Wt),Ht>I&&(I=Ht),Wt>B&&(B=Wt),this._ids[$t]=$t}const $=(k+I)/2,P=(S+B)/2;let H,at,V,Z=1/0;for(let $t=0;$t<w;$t++){const Ht=Ml($,P,o[2*$t],o[2*$t+1]);Ht<Z&&(H=$t,Z=Ht)}const K=o[2*H],gt=o[2*H+1];Z=1/0;for(let $t=0;$t<w;$t++){if($t===H)continue;const Ht=Ml(K,gt,o[2*$t],o[2*$t+1]);Ht<Z&&Ht>0&&(at=$t,Z=Ht)}let ht=o[2*at],dt=o[2*at+1],xt=1/0;for(let $t=0;$t<w;$t++){if($t===H||$t===at)continue;const Ht=xd(K,gt,ht,dt,o[2*$t],o[2*$t+1]);Ht<xt&&(V=$t,xt=Ht)}let Et=o[2*V],re=o[2*V+1];if(xt===1/0){for(let Wt=0;Wt<w;Wt++)this._dists[Wt]=o[2*Wt]-o[0]||o[2*Wt+1]-o[1];Ks(this._ids,this._dists,0,w-1);const $t=new Uint32Array(w);let Ht=0;for(let Wt=0,Tt=-1/0;Wt<w;Wt++){const Pt=this._ids[Wt];this._dists[Pt]>Tt&&($t[Ht++]=Pt,Tt=this._dists[Pt])}return this.hull=$t.subarray(0,Ht),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(Oc(K,gt,ht,dt,Et,re)<0){const $t=at,Ht=ht,Wt=dt;at=V,ht=Et,dt=re,V=$t,Et=Ht,re=Wt}const _e=function($t,Ht,Wt,Tt,Pt,Kt){const se=Wt-$t,Ce=Tt-Ht,qe=Pt-$t,Ke=Kt-Ht,yr=se*se+Ce*Ce,Je=qe*qe+Ke*Ke,qr=.5/(se*Ke-Ce*qe);return{x:$t+(Ke*yr-Ce*Je)*qr,y:Ht+(se*Je-qe*yr)*qr}}(K,gt,ht,dt,Et,re);this._cx=_e.x,this._cy=_e.y;for(let $t=0;$t<w;$t++)this._dists[$t]=Ml(o[2*$t],o[2*$t+1],_e.x,_e.y);Ks(this._ids,this._dists,0,w-1),this._hullStart=H;let Zt=3;h[H]=l[V]=at,h[at]=l[H]=V,h[V]=l[at]=H,g[H]=0,g[at]=1,g[V]=2,y.fill(-1),y[this._hashKey(K,gt)]=H,y[this._hashKey(ht,dt)]=at,y[this._hashKey(Et,re)]=V,this.trianglesLen=0,this._addTriangle(H,at,V,-1,-1,-1);for(let $t,Ht,Wt=0;Wt<this._ids.length;Wt++){const Tt=this._ids[Wt],Pt=o[2*Tt],Kt=o[2*Tt+1];if(Wt>0&&Math.abs(Pt-$t)<=$u&&Math.abs(Kt-Ht)<=$u||($t=Pt,Ht=Kt,Tt===H||Tt===at||Tt===V))continue;let se=0;for(let Je=0,qr=this._hashKey(Pt,Kt);Je<this._hashSize&&(se=y[(qr+Je)%this._hashSize],se===-1||se===h[se]);Je++);se=l[se];let Ce,qe=se;for(;Ce=h[qe],Oc(Pt,Kt,o[2*qe],o[2*qe+1],o[2*Ce],o[2*Ce+1])>=0;)if(qe=Ce,qe===se){qe=-1;break}if(qe===-1)continue;let Ke=this._addTriangle(qe,Tt,h[qe],-1,-1,g[qe]);g[Tt]=this._legalize(Ke+2),g[qe]=Ke,Zt++;let yr=h[qe];for(;Ce=h[yr],Oc(Pt,Kt,o[2*yr],o[2*yr+1],o[2*Ce],o[2*Ce+1])<0;)Ke=this._addTriangle(yr,Tt,Ce,g[Tt],-1,g[yr]),g[Tt]=this._legalize(Ke+2),h[yr]=yr,Zt--,yr=Ce;if(qe===se)for(;Ce=l[qe],Oc(Pt,Kt,o[2*Ce],o[2*Ce+1],o[2*qe],o[2*qe+1])<0;)Ke=this._addTriangle(Ce,Tt,qe,-1,g[qe],g[Ce]),this._legalize(Ke+2),g[Ce]=Ke,h[qe]=qe,Zt--,qe=Ce;this._hullStart=l[Tt]=qe,h[qe]=l[yr]=Tt,h[Tt]=yr,y[this._hashKey(Pt,Kt)]=Tt,y[this._hashKey(o[2*qe],o[2*qe+1])]=qe}this.hull=new Uint32Array(Zt);for(let $t=0,Ht=this._hullStart;$t<Zt;$t++)this.hull[$t]=Ht,Ht=h[Ht];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(o,l){return Math.floor(function(h,g){const y=h/(Math.abs(h)+Math.abs(g));return(g>0?3-y:1+y)/4}(o-this._cx,l-this._cy)*this._hashSize)%this._hashSize}_legalize(o){const{_triangles:l,_halfedges:h,coords:g}=this;let y=0,w=0;for(;;){const k=h[o],S=o-o%3;if(w=S+(o+2)%3,k===-1){if(y===0)break;o=Xs[--y];continue}const I=k-k%3,B=S+(o+1)%3,$=I+(k+2)%3,P=l[w],H=l[o],at=l[B],V=l[$];if(vd(g[2*P],g[2*P+1],g[2*H],g[2*H+1],g[2*at],g[2*at+1],g[2*V],g[2*V+1])){l[o]=V,l[k]=P;const Z=h[$];if(Z===-1){let gt=this._hullStart;do{if(this._hullTri[gt]===$){this._hullTri[gt]=o;break}gt=this._hullPrev[gt]}while(gt!==this._hullStart)}this._link(o,Z),this._link(k,h[w]),this._link(w,$);const K=I+(k+1)%3;y<Xs.length&&(Xs[y++]=K)}else{if(y===0)break;o=Xs[--y]}}return w}_link(o,l){this._halfedges[o]=l,l!==-1&&(this._halfedges[l]=o)}_addTriangle(o,l,h,g,y,w){const k=this.trianglesLen;return this._triangles[k]=o,this._triangles[k+1]=l,this._triangles[k+2]=h,this._link(k,g),this._link(k+1,y),this._link(k+2,w),this.trianglesLen+=3,k}}function Ml(a,o,l,h){const g=a-l,y=o-h;return g*g+y*y}function vd(a,o,l,h,g,y,w,k){const S=a-w,I=o-k,B=l-w,$=h-k,P=g-w,H=y-k,at=B*B+$*$,V=P*P+H*H;return S*($*V-at*H)-I*(B*V-at*P)+(S*S+I*I)*(B*H-$*P)<0}function xd(a,o,l,h,g,y){const w=l-a,k=h-o,S=g-a,I=y-o,B=w*w+k*k,$=S*S+I*I,P=.5/(w*I-k*S),H=(I*B-k*$)*P,at=(w*$-S*B)*P;return H*H+at*at}function Ks(a,o,l,h){if(h-l<=20)for(let g=l+1;g<=h;g++){const y=a[g],w=o[y];let k=g-1;for(;k>=l&&o[a[k]]>w;)a[k+1]=a[k--];a[k+1]=y}else{let g=l+1,y=h;Dc(a,l+h>>1,g),o[a[l]]>o[a[h]]&&Dc(a,l,h),o[a[g]]>o[a[h]]&&Dc(a,g,h),o[a[l]]>o[a[g]]&&Dc(a,l,g);const w=a[g],k=o[w];for(;;){do g++;while(o[a[g]]<k);do y--;while(o[a[y]]>k);if(y<g)break;Dc(a,g,y)}a[l+1]=a[y],a[y]=w,h-g+1>=y-l?(Ks(a,o,g,h),Ks(a,o,l,y-1)):(Ks(a,o,l,y-1),Ks(a,o,g,h))}}function Dc(a,o,l){const h=a[o];a[o]=a[l],a[l]=h}function Rc(a){return a[0]}function wd(a){return a[1]}const Va=1e-6;class vs{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(o,l){this._+=`M${this._x0=this._x1=+o},${this._y0=this._y1=+l}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(o,l){this._+=`L${this._x1=+o},${this._y1=+l}`}arc(o,l,h){const g=(o=+o)+(h=+h),y=l=+l;if(h<0)throw new Error("negative radius");this._x1===null?this._+=`M${g},${y}`:(Math.abs(this._x1-g)>Va||Math.abs(this._y1-y)>Va)&&(this._+="L"+g+","+y),h&&(this._+=`A${h},${h},0,1,1,${o-h},${l}A${h},${h},0,1,1,${this._x1=g},${this._y1=y}`)}rect(o,l,h,g){this._+=`M${this._x0=this._x1=+o},${this._y0=this._y1=+l}h${+h}v${+g}h${-h}Z`}value(){return this._||null}}class Hu{constructor(){this._=[]}moveTo(o,l){this._.push([o,l])}closePath(){this._.push(this._[0].slice())}lineTo(o,l){this._.push([o,l])}value(){return this._.length?this._:null}}class D1{constructor(o,[l,h,g,y]=[0,0,960,500]){if(!((g=+g)>=(l=+l)&&(y=+y)>=(h=+h)))throw new Error("invalid bounds");this.delaunay=o,this._circumcenters=new Float64Array(2*o.points.length),this.vectors=new Float64Array(2*o.points.length),this.xmax=g,this.xmin=l,this.ymax=y,this.ymin=h,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:o,hull:l,triangles:h},vectors:g}=this,y=this.circumcenters=this._circumcenters.subarray(0,h.length/3*2);for(let H,at,V=0,Z=0,K=h.length;V<K;V+=3,Z+=2){const gt=2*h[V],ht=2*h[V+1],dt=2*h[V+2],xt=o[gt],Et=o[gt+1],re=o[ht],_e=o[ht+1],Zt=o[dt],$t=o[dt+1],Ht=re-xt,Wt=_e-Et,Tt=Zt-xt,Pt=$t-Et,Kt=2*(Ht*Pt-Wt*Tt);if(Math.abs(Kt)<1e-9){let se=1e9;const Ce=2*h[0];se*=Math.sign((o[Ce]-xt)*Pt-(o[Ce+1]-Et)*Tt),H=(xt+Zt)/2-se*Pt,at=(Et+$t)/2+se*Tt}else{const se=1/Kt,Ce=Ht*Ht+Wt*Wt,qe=Tt*Tt+Pt*Pt;H=xt+(Pt*Ce-Wt*qe)*se,at=Et+(Ht*qe-Tt*Ce)*se}y[Z]=H,y[Z+1]=at}let w,k,S,I=l[l.length-1],B=4*I,$=o[2*I],P=o[2*I+1];g.fill(0);for(let H=0;H<l.length;++H)I=l[H],w=B,k=$,S=P,B=4*I,$=o[2*I],P=o[2*I+1],g[w+2]=g[B]=S-P,g[w+3]=g[B+1]=$-k}render(o){const l=o==null?o=new vs:void 0,{delaunay:{halfedges:h,inedges:g,hull:y},circumcenters:w,vectors:k}=this;if(y.length<=1)return null;for(let B=0,$=h.length;B<$;++B){const P=h[B];if(P<B)continue;const H=2*Math.floor(B/3),at=2*Math.floor(P/3),V=w[H],Z=w[H+1],K=w[at],gt=w[at+1];this._renderSegment(V,Z,K,gt,o)}let S,I=y[y.length-1];for(let B=0;B<y.length;++B){S=I,I=y[B];const $=2*Math.floor(g[I]/3),P=w[$],H=w[$+1],at=4*S,V=this._project(P,H,k[at+2],k[at+3]);V&&this._renderSegment(P,H,V[0],V[1],o)}return l&&l.value()}renderBounds(o){const l=o==null?o=new vs:void 0;return o.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),l&&l.value()}renderCell(o,l){const h=l==null?l=new vs:void 0,g=this._clip(o);if(g===null||!g.length)return;l.moveTo(g[0],g[1]);let y=g.length;for(;g[0]===g[y-2]&&g[1]===g[y-1]&&y>1;)y-=2;for(let w=2;w<y;w+=2)g[w]===g[w-2]&&g[w+1]===g[w-1]||l.lineTo(g[w],g[w+1]);return l.closePath(),h&&h.value()}*cellPolygons(){const{delaunay:{points:o}}=this;for(let l=0,h=o.length/2;l<h;++l){const g=this.cellPolygon(l);g&&(g.index=l,yield g)}}cellPolygon(o){const l=new Hu;return this.renderCell(o,l),l.value()}_renderSegment(o,l,h,g,y){let w;const k=this._regioncode(o,l),S=this._regioncode(h,g);k===0&&S===0?(y.moveTo(o,l),y.lineTo(h,g)):(w=this._clipSegment(o,l,h,g,k,S))&&(y.moveTo(w[0],w[1]),y.lineTo(w[2],w[3]))}contains(o,l,h){return(l=+l)==l&&(h=+h)==h&&this.delaunay._step(o,l,h)===o}*neighbors(o){const l=this._clip(o);if(l)for(const h of this.delaunay.neighbors(o)){const g=this._clip(h);if(g){t:for(let y=0,w=l.length;y<w;y+=2)for(let k=0,S=g.length;k<S;k+=2)if(l[y]==g[k]&&l[y+1]==g[k+1]&&l[(y+2)%w]==g[(k+S-2)%S]&&l[(y+3)%w]==g[(k+S-1)%S]){yield h;break t}}}}_cell(o){const{circumcenters:l,delaunay:{inedges:h,halfedges:g,triangles:y}}=this,w=h[o];if(w===-1)return null;const k=[];let S=w;do{const I=Math.floor(S/3);if(k.push(l[2*I],l[2*I+1]),S=S%3==2?S-2:S+1,y[S]!==o)break;S=g[S]}while(S!==w&&S!==-1);return k}_clip(o){if(o===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const l=this._cell(o);if(l===null)return null;const{vectors:h}=this,g=4*o;return h[g]||h[g+1]?this._clipInfinite(o,l,h[g],h[g+1],h[g+2],h[g+3]):this._clipFinite(o,l)}_clipFinite(o,l){const h=l.length;let g,y,w,k,S=null,I=l[h-2],B=l[h-1],$=this._regioncode(I,B),P=0;for(let H=0;H<h;H+=2)if(g=I,y=B,I=l[H],B=l[H+1],w=$,$=this._regioncode(I,B),w===0&&$===0)k=P,P=0,S?S.push(I,B):S=[I,B];else{let at,V,Z,K,gt;if(w===0){if((at=this._clipSegment(g,y,I,B,w,$))===null)continue;[V,Z,K,gt]=at}else{if((at=this._clipSegment(I,B,g,y,$,w))===null)continue;[K,gt,V,Z]=at,k=P,P=this._edgecode(V,Z),k&&P&&this._edge(o,k,P,S,S.length),S?S.push(V,Z):S=[V,Z]}k=P,P=this._edgecode(K,gt),k&&P&&this._edge(o,k,P,S,S.length),S?S.push(K,gt):S=[K,gt]}if(S)k=P,P=this._edgecode(S[0],S[1]),k&&P&&this._edge(o,k,P,S,S.length);else if(this.contains(o,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return S}_clipSegment(o,l,h,g,y,w){for(;;){if(y===0&&w===0)return[o,l,h,g];if(y&w)return null;let k,S,I=y||w;8&I?(k=o+(h-o)*(this.ymax-l)/(g-l),S=this.ymax):4&I?(k=o+(h-o)*(this.ymin-l)/(g-l),S=this.ymin):2&I?(S=l+(g-l)*(this.xmax-o)/(h-o),k=this.xmax):(S=l+(g-l)*(this.xmin-o)/(h-o),k=this.xmin),y?(o=k,l=S,y=this._regioncode(o,l)):(h=k,g=S,w=this._regioncode(h,g))}}_clipInfinite(o,l,h,g,y,w){let k,S=Array.from(l);if((k=this._project(S[0],S[1],h,g))&&S.unshift(k[0],k[1]),(k=this._project(S[S.length-2],S[S.length-1],y,w))&&S.push(k[0],k[1]),S=this._clipFinite(o,S))for(let I,B=0,$=S.length,P=this._edgecode(S[$-2],S[$-1]);B<$;B+=2)I=P,P=this._edgecode(S[B],S[B+1]),I&&P&&(B=this._edge(o,I,P,S,B),$=S.length);else this.contains(o,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(S=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return S}_edge(o,l,h,g,y){for(;l!==h;){let w,k;switch(l){case 5:l=4;continue;case 4:l=6,w=this.xmax,k=this.ymin;break;case 6:l=2;continue;case 2:l=10,w=this.xmax,k=this.ymax;break;case 10:l=8;continue;case 8:l=9,w=this.xmin,k=this.ymax;break;case 9:l=1;continue;case 1:l=5,w=this.xmin,k=this.ymin}g[y]===w&&g[y+1]===k||!this.contains(o,w,k)||(g.splice(y,0,w,k),y+=2)}if(g.length>4)for(let w=0;w<g.length;w+=2){const k=(w+2)%g.length,S=(w+4)%g.length;(g[w]===g[k]&&g[k]===g[S]||g[w+1]===g[k+1]&&g[k+1]===g[S+1])&&(g.splice(k,2),w-=2)}return y}_project(o,l,h,g){let y,w,k,S=1/0;if(g<0){if(l<=this.ymin)return null;(y=(this.ymin-l)/g)<S&&(k=this.ymin,w=o+(S=y)*h)}else if(g>0){if(l>=this.ymax)return null;(y=(this.ymax-l)/g)<S&&(k=this.ymax,w=o+(S=y)*h)}if(h>0){if(o>=this.xmax)return null;(y=(this.xmax-o)/h)<S&&(w=this.xmax,k=l+(S=y)*g)}else if(h<0){if(o<=this.xmin)return null;(y=(this.xmin-o)/h)<S&&(w=this.xmin,k=l+(S=y)*g)}return[w,k]}_edgecode(o,l){return(o===this.xmin?1:o===this.xmax?2:0)|(l===this.ymin?4:l===this.ymax?8:0)}_regioncode(o,l){return(o<this.xmin?1:o>this.xmax?2:0)|(l<this.ymin?4:l>this.ymax?8:0)}}const R1=2*Math.PI,Js=Math.pow;function kd(a){return a[0]}function Ed(a){return a[1]}function Td(a,o,l){return[a+Math.sin(a+o)*l,o+Math.cos(a-o)*l]}class qu{static from(o,l=kd,h=Ed,g){return new qu("length"in o?function(y,w,k,S){const I=y.length,B=new Float64Array(2*I);for(let $=0;$<I;++$){const P=y[$];B[2*$]=w.call(S,P,$,y),B[2*$+1]=k.call(S,P,$,y)}return B}(o,l,h,g):Float64Array.from(function*(y,w,k,S){let I=0;for(const B of y)yield w.call(S,B,I,y),yield k.call(S,B,I,y),++I}(o,l,h,g)))}constructor(o){this._delaunator=new bs(o),this.inedges=new Int32Array(o.length/2),this._hullIndex=new Int32Array(o.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const o=this._delaunator,l=this.points;if(o.hull&&o.hull.length>2&&function(S){const{triangles:I,coords:B}=S;for(let $=0;$<I.length;$+=3){const P=2*I[$],H=2*I[$+1],at=2*I[$+2];if((B[at]-B[P])*(B[H+1]-B[P+1])-(B[H]-B[P])*(B[at+1]-B[P+1])>1e-10)return!1}return!0}(o)){this.collinear=Int32Array.from({length:l.length/2},(P,H)=>H).sort((P,H)=>l[2*P]-l[2*H]||l[2*P+1]-l[2*H+1]);const S=this.collinear[0],I=this.collinear[this.collinear.length-1],B=[l[2*S],l[2*S+1],l[2*I],l[2*I+1]],$=1e-8*Math.hypot(B[3]-B[1],B[2]-B[0]);for(let P=0,H=l.length/2;P<H;++P){const at=Td(l[2*P],l[2*P+1],$);l[2*P]=at[0],l[2*P+1]=at[1]}this._delaunator=new bs(l)}else delete this.collinear;const h=this.halfedges=this._delaunator.halfedges,g=this.hull=this._delaunator.hull,y=this.triangles=this._delaunator.triangles,w=this.inedges.fill(-1),k=this._hullIndex.fill(-1);for(let S=0,I=h.length;S<I;++S){const B=y[S%3==2?S-2:S+1];h[S]!==-1&&w[B]!==-1||(w[B]=S)}for(let S=0,I=g.length;S<I;++S)k[g[S]]=S;g.length<=2&&g.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=g[0],w[g[0]]=1,g.length===2&&(w[g[1]]=0,this.triangles[1]=g[1],this.triangles[2]=g[1]))}voronoi(o){return new D1(this,o)}*neighbors(o){const{inedges:l,hull:h,_hullIndex:g,halfedges:y,triangles:w,collinear:k}=this;if(k){const $=k.indexOf(o);return $>0&&(yield k[$-1]),void($<k.length-1&&(yield k[$+1]))}const S=l[o];if(S===-1)return;let I=S,B=-1;do{if(yield B=w[I],I=I%3==2?I-2:I+1,w[I]!==o)return;if(I=y[I],I===-1){const $=h[(g[o]+1)%h.length];return void($!==B&&(yield $))}}while(I!==S)}find(o,l,h=0){if((o=+o)!=o||(l=+l)!=l)return-1;const g=h;let y;for(;(y=this._step(h,o,l))>=0&&y!==h&&y!==g;)h=y;return y}_step(o,l,h){const{inedges:g,hull:y,_hullIndex:w,halfedges:k,triangles:S,points:I}=this;if(g[o]===-1||!I.length)return(o+1)%(I.length>>1);let B=o,$=Js(l-I[2*o],2)+Js(h-I[2*o+1],2);const P=g[o];let H=P;do{let at=S[H];const V=Js(l-I[2*at],2)+Js(h-I[2*at+1],2);if(V<$&&($=V,B=at),H=H%3==2?H-2:H+1,S[H]!==o)break;if(H=k[H],H===-1){if(H=y[(w[o]+1)%y.length],H!==at&&Js(l-I[2*H],2)+Js(h-I[2*H+1],2)<$)return H;break}}while(H!==P);return B}render(o){const l=o==null?o=new vs:void 0,{points:h,halfedges:g,triangles:y}=this;for(let w=0,k=g.length;w<k;++w){const S=g[w];if(S<w)continue;const I=2*y[w],B=2*y[S];o.moveTo(h[I],h[I+1]),o.lineTo(h[B],h[B+1])}return this.renderHull(o),l&&l.value()}renderPoints(o,l){l!==void 0||o&&typeof o.moveTo=="function"||(l=o,o=null),l=l==null?2:+l;const h=o==null?o=new vs:void 0,{points:g}=this;for(let y=0,w=g.length;y<w;y+=2){const k=g[y],S=g[y+1];o.moveTo(k+l,S),o.arc(k,S,l,0,R1)}return h&&h.value()}renderHull(o){const l=o==null?o=new vs:void 0,{hull:h,points:g}=this,y=2*h[0],w=h.length;o.moveTo(g[y],g[y+1]);for(let k=1;k<w;++k){const S=2*h[k];o.lineTo(g[S],g[S+1])}return o.closePath(),l&&l.value()}hullPolygon(){const o=new Hu;return this.renderHull(o),o.value()}renderTriangle(o,l){const h=l==null?l=new vs:void 0,{points:g,triangles:y}=this,w=2*y[o*=3],k=2*y[o+1],S=2*y[o+2];return l.moveTo(g[w],g[w+1]),l.lineTo(g[k],g[k+1]),l.lineTo(g[S],g[S+1]),l.closePath(),h&&h.value()}*trianglePolygons(){const{triangles:o}=this;for(let l=0,h=o.length/3;l<h;++l)yield this.trianglePolygon(l)}trianglePolygon(o){const l=new Hu;return this.renderTriangle(o,l),l.value()}}const Ol=a=>()=>a;function Wo(a,{sourceEvent:o,subject:l,target:h,identifier:g,active:y,x:w,y:k,dx:S,dy:I,dispatch:B}){Object.defineProperties(this,{type:{value:a,enumerable:!0,configurable:!0},sourceEvent:{value:o,enumerable:!0,configurable:!0},subject:{value:l,enumerable:!0,configurable:!0},target:{value:h,enumerable:!0,configurable:!0},identifier:{value:g,enumerable:!0,configurable:!0},active:{value:y,enumerable:!0,configurable:!0},x:{value:w,enumerable:!0,configurable:!0},y:{value:k,enumerable:!0,configurable:!0},dx:{value:S,enumerable:!0,configurable:!0},dy:{value:I,enumerable:!0,configurable:!0},_:{value:B}})}function Sd(a){return!a.ctrlKey&&!a.button}function Ad(){return this.parentNode}function Cd(a,o){return o==null?{x:a.x,y:a.y}:o}function Id(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nd(){var a,o,l,h,g=Sd,y=Ad,w=Cd,k=Id,S={},I=un("start","drag","end"),B=0,$=0;function P(dt){dt.on("mousedown.drag",H).filter(k).on("touchstart.drag",Z).on("touchmove.drag",K,nl).on("touchend.drag touchcancel.drag",gt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function H(dt,xt){if(!h&&g.call(this,dt,xt)){var Et=ht(this,y.call(this,dt,xt),dt,xt,"mouse");Et&&(Ei(dt.view).on("mousemove.drag",at,Mo).on("mouseup.drag",V,Mo),fo(dt.view),Ms(dt),l=!1,a=dt.clientX,o=dt.clientY,Et("start",dt))}}function at(dt){if(Ha(dt),!l){var xt=dt.clientX-a,Et=dt.clientY-o;l=xt*xt+Et*Et>$}S.mouse("drag",dt)}function V(dt){Ei(dt.view).on("mousemove.drag mouseup.drag",null),ss(dt.view,l),Ha(dt),S.mouse("end",dt)}function Z(dt,xt){if(g.call(this,dt,xt)){var Et,re,_e=dt.changedTouches,Zt=y.call(this,dt,xt),$t=_e.length;for(Et=0;Et<$t;++Et)(re=ht(this,Zt,dt,xt,_e[Et].identifier,_e[Et]))&&(Ms(dt),re("start",dt,_e[Et]))}}function K(dt){var xt,Et,re=dt.changedTouches,_e=re.length;for(xt=0;xt<_e;++xt)(Et=S[re[xt].identifier])&&(Ha(dt),Et("drag",dt,re[xt]))}function gt(dt){var xt,Et,re=dt.changedTouches,_e=re.length;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),xt=0;xt<_e;++xt)(Et=S[re[xt].identifier])&&(Ms(dt),Et("end",dt,re[xt]))}function ht(dt,xt,Et,re,_e,Zt){var $t,Ht,Wt,Tt=I.copy(),Pt=ha(Zt||Et,xt);if((Wt=w.call(dt,new Wo("beforestart",{sourceEvent:Et,target:P,identifier:_e,active:B,x:Pt[0],y:Pt[1],dx:0,dy:0,dispatch:Tt}),re))!=null)return $t=Wt.x-Pt[0]||0,Ht=Wt.y-Pt[1]||0,function Kt(se,Ce,qe){var Ke,yr=Pt;switch(se){case"start":S[_e]=Kt,Ke=B++;break;case"end":delete S[_e],--B;case"drag":Pt=ha(qe||Ce,xt),Ke=B}Tt.call(se,dt,new Wo(se,{sourceEvent:Ce,subject:Wt,target:P,identifier:_e,active:Ke,x:Pt[0]+$t,y:Pt[1]+Ht,dx:Pt[0]-yr[0],dy:Pt[1]-yr[1],dispatch:Tt}),re)}}return P.filter=function(dt){return arguments.length?(g=typeof dt=="function"?dt:Ol(!!dt),P):g},P.container=function(dt){return arguments.length?(y=typeof dt=="function"?dt:Ol(dt),P):y},P.subject=function(dt){return arguments.length?(w=typeof dt=="function"?dt:Ol(dt),P):w},P.touchable=function(dt){return arguments.length?(k=typeof dt=="function"?dt:Ol(!!dt),P):k},P.on=function(){var dt=I.on.apply(I,arguments);return dt===I?P:dt},P.clickDistance=function(dt){return arguments.length?($=(dt=+dt)*dt,P):Math.sqrt($)},P}Wo.prototype.on=function(){var a=this._.on.apply(this._,arguments);return a===this._?this:a};var B1={},Wu={};function F1(a){return new Function("d","return {"+a.map(function(o,l){return JSON.stringify(o)+": d["+l+'] || ""'}).join(",")+"}")}function Gu(a){var o=Object.create(null),l=[];return a.forEach(function(h){for(var g in h)g in o||l.push(o[g]=g)}),l}function da(a,o){var l=a+"",h=l.length;return h<o?new Array(o-h+1).join(0)+l:l}function ge(a){var o=new RegExp('["'+a+`
|
|
\r]`),l=a.charCodeAt(0);function h(k,S){var I,B=[],$=k.length,P=0,H=0,at=$<=0,V=!1;function Z(){if(at)return Wu;if(V)return V=!1,B1;var gt,ht,dt=P;if(k.charCodeAt(dt)===34){for(;P++<$&&k.charCodeAt(P)!==34||k.charCodeAt(++P)===34;);return(gt=P)>=$?at=!0:(ht=k.charCodeAt(P++))===10?V=!0:ht===13&&(V=!0,k.charCodeAt(P)===10&&++P),k.slice(dt+1,gt-1).replace(/""/g,'"')}for(;P<$;){if((ht=k.charCodeAt(gt=P++))===10)V=!0;else if(ht===13)V=!0,k.charCodeAt(P)===10&&++P;else if(ht!==l)continue;return k.slice(dt,gt)}return at=!0,k.slice(dt,$)}for(k.charCodeAt($-1)===10&&--$,k.charCodeAt($-1)===13&&--$;(I=Z())!==Wu;){for(var K=[];I!==B1&&I!==Wu;)K.push(I),I=Z();S&&(K=S(K,H++))==null||B.push(K)}return B}function g(k,S){return k.map(function(I){return S.map(function(B){return w(I[B])}).join(a)})}function y(k){return k.map(w).join(a)}function w(k){return k==null?"":k instanceof Date?function(S){var I=S.getUTCHours(),B=S.getUTCMinutes(),$=S.getUTCSeconds(),P=S.getUTCMilliseconds();return isNaN(S)?"Invalid Date":function(H){return H<0?"-"+da(-H,6):H>9999?"+"+da(H,6):da(H,4)}(S.getUTCFullYear())+"-"+da(S.getUTCMonth()+1,2)+"-"+da(S.getUTCDate(),2)+(P?"T"+da(I,2)+":"+da(B,2)+":"+da($,2)+"."+da(P,3)+"Z":$?"T"+da(I,2)+":"+da(B,2)+":"+da($,2)+"Z":B||I?"T"+da(I,2)+":"+da(B,2)+"Z":"")}(k):o.test(k+="")?'"'+k.replace(/"/g,'""')+'"':k}return{parse:function(k,S){var I,B,$=h(k,function(P,H){if(I)return I(P,H-1);B=P,I=S?function(at,V){var Z=F1(at);return function(K,gt){return V(Z(K),gt,at)}}(P,S):F1(P)});return $.columns=B||[],$},parseRows:h,format:function(k,S){return S==null&&(S=Gu(k)),[S.map(w).join(a)].concat(g(k,S)).join(`
|
|
`)},formatBody:function(k,S){return S==null&&(S=Gu(k)),g(k,S).join(`
|
|
`)},formatRows:function(k){return k.map(y).join(`
|
|
`)},formatRow:y,formatValue:w}}var ar=ge(","),xs=ar.parse,Qs=ar.parseRows,Vu=ar.format,Zu=ar.formatBody,P1=ar.formatRows,z1=ar.formatRow,Dl=ar.formatValue,Go=ge(" "),Za=Go.parse,Ld=Go.parseRows,Bc=Go.format,Md=Go.formatBody,U1=Go.formatRows,Xu=Go.formatRow,Rl=Go.formatValue;function Bl(a){for(var o in a){var l,h,g=a[o].trim();if(g)if(g==="true")g=!0;else if(g==="false")g=!1;else if(g==="NaN")g=NaN;else if(isNaN(l=+g)){if(!(h=g.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Od&&h[4]&&!h[7]&&(g=g.replace(/-/g,"/").replace(/T/," ")),g=new Date(g)}else g=l;else g=null;a[o]=g}return a}const Od=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),Fl=a=>+a;function Xi(a){return a*a}function Ku(a){return a*(2-a)}function Fc(a){return((a*=2)<=1?a*a:--a*(2-a)+1)/2}var Y1=function a(o){function l(h){return Math.pow(h,o)}return o=+o,l.exponent=a,l}(3),j1=function a(o){function l(h){return 1-Math.pow(1-h,o)}return o=+o,l.exponent=a,l}(3),Ju=function a(o){function l(h){return((h*=2)<=1?Math.pow(h,o):2-Math.pow(2-h,o))/2}return o=+o,l.exponent=a,l}(3),$1=Math.PI,Qu=$1/2;function H1(a){return+a==1?1:1-Math.cos(a*Qu)}function ko(a){return Math.sin(a*Qu)}function th(a){return(1-Math.cos($1*a))/2}function wi(a){return 1.0009775171065494*(Math.pow(2,-10*a)-.0009765625)}function Dd(a){return wi(1-+a)}function Rd(a){return 1-wi(a)}function eh(a){return((a*=2)<=1?wi(1-a):2-wi(a-1))/2}function q1(a){return 1-Math.sqrt(1-a*a)}function rh(a){return Math.sqrt(1- --a*a)}function W1(a){return((a*=2)<=1?1-Math.sqrt(1-a*a):Math.sqrt(1-(a-=2)*a)+1)/2}var Pc=7.5625;function Bd(a){return 1-gn(1-a)}function gn(a){return(a=+a)<.36363636363636365?Pc*a*a:a<.7272727272727273?Pc*(a-=.5454545454545454)*a+.75:a<.9090909090909091?Pc*(a-=.8181818181818182)*a+.9375:Pc*(a-=.9545454545454546)*a+.984375}function Pl(a){return((a*=2)<=1?1-gn(1-a):gn(a-1)+1)/2}var so=1.70158,Fd=function a(o){function l(h){return(h=+h)*h*(o*(h-1)+h)}return o=+o,l.overshoot=a,l}(so),nh=function a(o){function l(h){return--h*h*((h+1)*o+h)+1}return o=+o,l.overshoot=a,l}(so),ih=function a(o){function l(h){return((h*=2)<1?h*h*((o+1)*h-o):(h-=2)*h*((o+1)*h+o)+2)/2}return o=+o,l.overshoot=a,l}(so),ws=2*Math.PI,ah=function a(o,l){var h=Math.asin(1/(o=Math.max(1,o)))*(l/=ws);function g(y){return o*wi(- --y)*Math.sin((h-y)/l)}return g.amplitude=function(y){return a(y,l*ws)},g.period=function(y){return a(o,y)},g}(1,.3),ks=function a(o,l){var h=Math.asin(1/(o=Math.max(1,o)))*(l/=ws);function g(y){return 1-o*wi(y=+y)*Math.sin((y+h)/l)}return g.amplitude=function(y){return a(y,l*ws)},g.period=function(y){return a(o,y)},g}(1,.3),oh=function a(o,l){var h=Math.asin(1/(o=Math.max(1,o)))*(l/=ws);function g(y){return((y=2*y-1)<0?o*wi(-y)*Math.sin((h-y)/l):2-o*wi(y)*Math.sin((h+y)/l))/2}return g.amplitude=function(y){return a(y,l*ws)},g.period=function(y){return a(o,y)},g}(1,.3);function tc(a){if(!a.ok)throw new Error(a.status+" "+a.statusText);return a.blob()}function ec(a,o){return fetch(a,o).then(tc)}function G1(a){if(!a.ok)throw new Error(a.status+" "+a.statusText);return a.arrayBuffer()}function V1(a,o){return fetch(a,o).then(G1)}function Z1(a){if(!a.ok)throw new Error(a.status+" "+a.statusText);return a.text()}function zc(a,o){return fetch(a,o).then(Z1)}function sh(a){return function(o,l,h){return arguments.length===2&&typeof l=="function"&&(h=l,l=void 0),zc(o,l).then(function(g){return a(g,h)})}}function X1(a,o,l,h){arguments.length===3&&typeof l=="function"&&(h=l,l=void 0);var g=ge(a);return zc(o,l).then(function(y){return g.parse(y,h)})}var Pd=sh(xs),zd=sh(Za);function Ud(a,o){return new Promise(function(l,h){var g=new Image;for(var y in o)g[y]=o[y];g.onerror=h,g.onload=function(){l(g)},g.src=a})}function Yd(a){if(!a.ok)throw new Error(a.status+" "+a.statusText);if(a.status!==204&&a.status!==205)return a.json()}function Eo(a,o){return fetch(a,o).then(Yd)}function Uc(a){return(o,l)=>zc(o,l).then(h=>new DOMParser().parseFromString(h,a))}const Es=Uc("application/xml");var Ua=Uc("text/html"),ch=Uc("image/svg+xml");function K1(a,o){var l,h=1;function g(){var y,w,k=l.length,S=0,I=0;for(y=0;y<k;++y)S+=(w=l[y]).x,I+=w.y;for(S=(S/k-a)*h,I=(I/k-o)*h,y=0;y<k;++y)(w=l[y]).x-=S,w.y-=I}return a==null&&(a=0),o==null&&(o=0),g.initialize=function(y){l=y},g.x=function(y){return arguments.length?(a=+y,g):a},g.y=function(y){return arguments.length?(o=+y,g):o},g.strength=function(y){return arguments.length?(h=+y,g):h},g}function zl(a,o,l,h){if(isNaN(o)||isNaN(l))return a;var g,y,w,k,S,I,B,$,P,H=a._root,at={data:h},V=a._x0,Z=a._y0,K=a._x1,gt=a._y1;if(!H)return a._root=at,a;for(;H.length;)if((I=o>=(y=(V+K)/2))?V=y:K=y,(B=l>=(w=(Z+gt)/2))?Z=w:gt=w,g=H,!(H=H[$=B<<1|I]))return g[$]=at,a;if(k=+a._x.call(null,H.data),S=+a._y.call(null,H.data),o===k&&l===S)return at.next=H,g?g[$]=at:a._root=at,a;do g=g?g[$]=new Array(4):a._root=new Array(4),(I=o>=(y=(V+K)/2))?V=y:K=y,(B=l>=(w=(Z+gt)/2))?Z=w:gt=w;while(($=B<<1|I)==(P=(S>=w)<<1|k>=y));return g[P]=H,g[$]=at,a}function aa(a,o,l,h,g){this.node=a,this.x0=o,this.y0=l,this.x1=h,this.y1=g}function jd(a){return a[0]}function J1(a){return a[1]}function Ul(a,o,l){var h=new Yl(o==null?jd:o,l==null?J1:l,NaN,NaN,NaN,NaN);return a==null?h:h.addAll(a)}function Yl(a,o,l,h,g,y){this._x=a,this._y=o,this._x0=l,this._y0=h,this._x1=g,this._y1=y,this._root=void 0}function lh(a){for(var o={data:a.data},l=o;a=a.next;)l=l.next={data:a.data};return o}var oa=Ul.prototype=Yl.prototype;function ui(a){return function(){return a}}function Vo(a){return 1e-6*(a()-.5)}function Oi(a){return a.x+a.vx}function sa(a){return a.y+a.vy}function jl(a){var o,l,h,g=1,y=1;function w(){for(var I,B,$,P,H,at,V,Z=o.length,K=0;K<y;++K)for(B=Ul(o,Oi,sa).visitAfter(k),I=0;I<Z;++I)$=o[I],at=l[$.index],V=at*at,P=$.x+$.vx,H=$.y+$.vy,B.visit(gt);function gt(ht,dt,xt,Et,re){var _e=ht.data,Zt=ht.r,$t=at+Zt;if(!_e)return dt>P+$t||Et<P-$t||xt>H+$t||re<H-$t;if(_e.index>$.index){var Ht=P-_e.x-_e.vx,Wt=H-_e.y-_e.vy,Tt=Ht*Ht+Wt*Wt;Tt<$t*$t&&(Ht===0&&(Tt+=(Ht=Vo(h))*Ht),Wt===0&&(Tt+=(Wt=Vo(h))*Wt),Tt=($t-(Tt=Math.sqrt(Tt)))/Tt*g,$.vx+=(Ht*=Tt)*($t=(Zt*=Zt)/(V+Zt)),$.vy+=(Wt*=Tt)*$t,_e.vx-=Ht*($t=1-$t),_e.vy-=Wt*$t)}}}function k(I){if(I.data)return I.r=l[I.data.index];for(var B=I.r=0;B<4;++B)I[B]&&I[B].r>I.r&&(I.r=I[B].r)}function S(){if(o){var I,B,$=o.length;for(l=new Array($),I=0;I<$;++I)B=o[I],l[B.index]=+a(B,I,o)}}return typeof a!="function"&&(a=ui(a==null?1:+a)),w.initialize=function(I,B){o=I,h=B,S()},w.iterations=function(I){return arguments.length?(y=+I,w):y},w.strength=function(I){return arguments.length?(g=+I,w):g},w.radius=function(I){return arguments.length?(a=typeof I=="function"?I:ui(+I),S(),w):a},w}function Ti(a){return a.index}function Di(a,o){var l=a.get(o);if(!l)throw new Error("node not found: "+o);return l}function Q1(a){var o,l,h,g,y,w,k=Ti,S=function(V){return 1/Math.min(g[V.source.index],g[V.target.index])},I=ui(30),B=1;function $(V){for(var Z=0,K=a.length;Z<B;++Z)for(var gt,ht,dt,xt,Et,re,_e,Zt=0;Zt<K;++Zt)ht=(gt=a[Zt]).source,xt=(dt=gt.target).x+dt.vx-ht.x-ht.vx||Vo(w),Et=dt.y+dt.vy-ht.y-ht.vy||Vo(w),xt*=re=((re=Math.sqrt(xt*xt+Et*Et))-l[Zt])/re*V*o[Zt],Et*=re,dt.vx-=xt*(_e=y[Zt]),dt.vy-=Et*_e,ht.vx+=xt*(_e=1-_e),ht.vy+=Et*_e}function P(){if(h){var V,Z,K=h.length,gt=a.length,ht=new Map(h.map((dt,xt)=>[k(dt,xt,h),dt]));for(V=0,g=new Array(K);V<gt;++V)(Z=a[V]).index=V,typeof Z.source!="object"&&(Z.source=Di(ht,Z.source)),typeof Z.target!="object"&&(Z.target=Di(ht,Z.target)),g[Z.source.index]=(g[Z.source.index]||0)+1,g[Z.target.index]=(g[Z.target.index]||0)+1;for(V=0,y=new Array(gt);V<gt;++V)Z=a[V],y[V]=g[Z.source.index]/(g[Z.source.index]+g[Z.target.index]);o=new Array(gt),H(),l=new Array(gt),at()}}function H(){if(h)for(var V=0,Z=a.length;V<Z;++V)o[V]=+S(a[V],V,a)}function at(){if(h)for(var V=0,Z=a.length;V<Z;++V)l[V]=+I(a[V],V,a)}return a==null&&(a=[]),$.initialize=function(V,Z){h=V,w=Z,P()},$.links=function(V){return arguments.length?(a=V,P(),$):a},$.id=function(V){return arguments.length?(k=V,$):k},$.iterations=function(V){return arguments.length?(B=+V,$):B},$.strength=function(V){return arguments.length?(S=typeof V=="function"?V:ui(+V),H(),$):S},$.distance=function(V){return arguments.length?(I=typeof V=="function"?V:ui(+V),at(),$):I},$}oa.copy=function(){var a,o,l=new Yl(this._x,this._y,this._x0,this._y0,this._x1,this._y1),h=this._root;if(!h)return l;if(!h.length)return l._root=lh(h),l;for(a=[{source:h,target:l._root=new Array(4)}];h=a.pop();)for(var g=0;g<4;++g)(o=h.source[g])&&(o.length?a.push({source:o,target:h.target[g]=new Array(4)}):h.target[g]=lh(o));return l},oa.add=function(a){const o=+this._x.call(null,a),l=+this._y.call(null,a);return zl(this.cover(o,l),o,l,a)},oa.addAll=function(a){var o,l,h,g,y=a.length,w=new Array(y),k=new Array(y),S=1/0,I=1/0,B=-1/0,$=-1/0;for(l=0;l<y;++l)isNaN(h=+this._x.call(null,o=a[l]))||isNaN(g=+this._y.call(null,o))||(w[l]=h,k[l]=g,h<S&&(S=h),h>B&&(B=h),g<I&&(I=g),g>$&&($=g));if(S>B||I>$)return this;for(this.cover(S,I).cover(B,$),l=0;l<y;++l)zl(this,w[l],k[l],a[l]);return this},oa.cover=function(a,o){if(isNaN(a=+a)||isNaN(o=+o))return this;var l=this._x0,h=this._y0,g=this._x1,y=this._y1;if(isNaN(l))g=(l=Math.floor(a))+1,y=(h=Math.floor(o))+1;else{for(var w,k,S=g-l||1,I=this._root;l>a||a>=g||h>o||o>=y;)switch(k=(o<h)<<1|a<l,(w=new Array(4))[k]=I,I=w,S*=2,k){case 0:g=l+S,y=h+S;break;case 1:l=g-S,y=h+S;break;case 2:g=l+S,h=y-S;break;case 3:l=g-S,h=y-S}this._root&&this._root.length&&(this._root=I)}return this._x0=l,this._y0=h,this._x1=g,this._y1=y,this},oa.data=function(){var a=[];return this.visit(function(o){if(!o.length)do a.push(o.data);while(o=o.next)}),a},oa.extent=function(a){return arguments.length?this.cover(+a[0][0],+a[0][1]).cover(+a[1][0],+a[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},oa.find=function(a,o,l){var h,g,y,w,k,S,I,B=this._x0,$=this._y0,P=this._x1,H=this._y1,at=[],V=this._root;for(V&&at.push(new aa(V,B,$,P,H)),l==null?l=1/0:(B=a-l,$=o-l,P=a+l,H=o+l,l*=l);S=at.pop();)if(!(!(V=S.node)||(g=S.x0)>P||(y=S.y0)>H||(w=S.x1)<B||(k=S.y1)<$))if(V.length){var Z=(g+w)/2,K=(y+k)/2;at.push(new aa(V[3],Z,K,w,k),new aa(V[2],g,K,Z,k),new aa(V[1],Z,y,w,K),new aa(V[0],g,y,Z,K)),(I=(o>=K)<<1|a>=Z)&&(S=at[at.length-1],at[at.length-1]=at[at.length-1-I],at[at.length-1-I]=S)}else{var gt=a-+this._x.call(null,V.data),ht=o-+this._y.call(null,V.data),dt=gt*gt+ht*ht;if(dt<l){var xt=Math.sqrt(l=dt);B=a-xt,$=o-xt,P=a+xt,H=o+xt,h=V.data}}return h},oa.remove=function(a){if(isNaN(y=+this._x.call(null,a))||isNaN(w=+this._y.call(null,a)))return this;var o,l,h,g,y,w,k,S,I,B,$,P,H=this._root,at=this._x0,V=this._y0,Z=this._x1,K=this._y1;if(!H)return this;if(H.length)for(;;){if((I=y>=(k=(at+Z)/2))?at=k:Z=k,(B=w>=(S=(V+K)/2))?V=S:K=S,o=H,!(H=H[$=B<<1|I]))return this;if(!H.length)break;(o[$+1&3]||o[$+2&3]||o[$+3&3])&&(l=o,P=$)}for(;H.data!==a;)if(h=H,!(H=H.next))return this;return(g=H.next)&&delete H.next,h?(g?h.next=g:delete h.next,this):o?(g?o[$]=g:delete o[$],(H=o[0]||o[1]||o[2]||o[3])&&H===(o[3]||o[2]||o[1]||o[0])&&!H.length&&(l?l[P]=H:this._root=H),this):(this._root=g,this)},oa.removeAll=function(a){for(var o=0,l=a.length;o<l;++o)this.remove(a[o]);return this},oa.root=function(){return this._root},oa.size=function(){var a=0;return this.visit(function(o){if(!o.length)do++a;while(o=o.next)}),a},oa.visit=function(a){var o,l,h,g,y,w,k=[],S=this._root;for(S&&k.push(new aa(S,this._x0,this._y0,this._x1,this._y1));o=k.pop();)if(!a(S=o.node,h=o.x0,g=o.y0,y=o.x1,w=o.y1)&&S.length){var I=(h+y)/2,B=(g+w)/2;(l=S[3])&&k.push(new aa(l,I,B,y,w)),(l=S[2])&&k.push(new aa(l,h,B,I,w)),(l=S[1])&&k.push(new aa(l,I,g,y,B)),(l=S[0])&&k.push(new aa(l,h,g,I,B))}return this},oa.visitAfter=function(a){var o,l=[],h=[];for(this._root&&l.push(new aa(this._root,this._x0,this._y0,this._x1,this._y1));o=l.pop();){var g=o.node;if(g.length){var y,w=o.x0,k=o.y0,S=o.x1,I=o.y1,B=(w+S)/2,$=(k+I)/2;(y=g[0])&&l.push(new aa(y,w,k,B,$)),(y=g[1])&&l.push(new aa(y,B,k,S,$)),(y=g[2])&&l.push(new aa(y,w,$,B,I)),(y=g[3])&&l.push(new aa(y,B,$,S,I))}h.push(o)}for(;o=h.pop();)a(o.node,o.x0,o.y0,o.x1,o.y1);return this},oa.x=function(a){return arguments.length?(this._x=a,this):this._x},oa.y=function(a){return arguments.length?(this._y=a,this):this._y};const Zo=4294967296;function uh(a){return a.x}function t0(a){return a.y}var e0=Math.PI*(3-Math.sqrt(5));function r0(a){var o,l=1,h=.001,g=1-Math.pow(h,1/300),y=0,w=.6,k=new Map,S=Bo($),I=un("tick","end"),B=function(){let V=1;return()=>(V=(1664525*V+1013904223)%Zo)/Zo}();function $(){P(),I.call("tick",o),l<h&&(S.stop(),I.call("end",o))}function P(V){var Z,K,gt=a.length;V===void 0&&(V=1);for(var ht=0;ht<V;++ht)for(l+=(y-l)*g,k.forEach(function(dt){dt(l)}),Z=0;Z<gt;++Z)(K=a[Z]).fx==null?K.x+=K.vx*=w:(K.x=K.fx,K.vx=0),K.fy==null?K.y+=K.vy*=w:(K.y=K.fy,K.vy=0);return o}function H(){for(var V,Z=0,K=a.length;Z<K;++Z){if((V=a[Z]).index=Z,V.fx!=null&&(V.x=V.fx),V.fy!=null&&(V.y=V.fy),isNaN(V.x)||isNaN(V.y)){var gt=10*Math.sqrt(.5+Z),ht=Z*e0;V.x=gt*Math.cos(ht),V.y=gt*Math.sin(ht)}(isNaN(V.vx)||isNaN(V.vy))&&(V.vx=V.vy=0)}}function at(V){return V.initialize&&V.initialize(a,B),V}return a==null&&(a=[]),H(),o={tick:P,restart:function(){return S.restart($),o},stop:function(){return S.stop(),o},nodes:function(V){return arguments.length?(a=V,H(),k.forEach(at),o):a},alpha:function(V){return arguments.length?(l=+V,o):l},alphaMin:function(V){return arguments.length?(h=+V,o):h},alphaDecay:function(V){return arguments.length?(g=+V,o):+g},alphaTarget:function(V){return arguments.length?(y=+V,o):y},velocityDecay:function(V){return arguments.length?(w=1-V,o):1-w},randomSource:function(V){return arguments.length?(B=V,k.forEach(at),o):B},force:function(V,Z){return arguments.length>1?(Z==null?k.delete(V):k.set(V,at(Z)),o):k.get(V)},find:function(V,Z,K){var gt,ht,dt,xt,Et,re=0,_e=a.length;for(K==null?K=1/0:K*=K,re=0;re<_e;++re)(dt=(gt=V-(xt=a[re]).x)*gt+(ht=Z-xt.y)*ht)<K&&(Et=xt,K=dt);return Et},on:function(V,Z){return arguments.length>1?(I.on(V,Z),o):I.on(V)}}}function n0(){var a,o,l,h,g,y=ui(-30),w=1,k=1/0,S=.81;function I(H){var at,V=a.length,Z=Ul(a,uh,t0).visitAfter($);for(h=H,at=0;at<V;++at)o=a[at],Z.visit(P)}function B(){if(a){var H,at,V=a.length;for(g=new Array(V),H=0;H<V;++H)at=a[H],g[at.index]=+y(at,H,a)}}function $(H){var at,V,Z,K,gt,ht=0,dt=0;if(H.length){for(Z=K=gt=0;gt<4;++gt)(at=H[gt])&&(V=Math.abs(at.value))&&(ht+=at.value,dt+=V,Z+=V*at.x,K+=V*at.y);H.x=Z/dt,H.y=K/dt}else{(at=H).x=at.data.x,at.y=at.data.y;do ht+=g[at.data.index];while(at=at.next)}H.value=ht}function P(H,at,V,Z){if(!H.value)return!0;var K=H.x-o.x,gt=H.y-o.y,ht=Z-at,dt=K*K+gt*gt;if(ht*ht/S<dt)return dt<k&&(K===0&&(dt+=(K=Vo(l))*K),gt===0&&(dt+=(gt=Vo(l))*gt),dt<w&&(dt=Math.sqrt(w*dt)),o.vx+=K*H.value*h/dt,o.vy+=gt*H.value*h/dt),!0;if(!(H.length||dt>=k)){(H.data!==o||H.next)&&(K===0&&(dt+=(K=Vo(l))*K),gt===0&&(dt+=(gt=Vo(l))*gt),dt<w&&(dt=Math.sqrt(w*dt)));do H.data!==o&&(ht=g[H.data.index]*h/dt,o.vx+=K*ht,o.vy+=gt*ht);while(H=H.next)}}return I.initialize=function(H,at){a=H,l=at,B()},I.strength=function(H){return arguments.length?(y=typeof H=="function"?H:ui(+H),B(),I):y},I.distanceMin=function(H){return arguments.length?(w=H*H,I):Math.sqrt(w)},I.distanceMax=function(H){return arguments.length?(k=H*H,I):Math.sqrt(k)},I.theta=function(H){return arguments.length?(S=H*H,I):Math.sqrt(S)},I}function i0(a,o,l){var h,g,y,w=ui(.1);function k(I){for(var B=0,$=h.length;B<$;++B){var P=h[B],H=P.x-o||1e-6,at=P.y-l||1e-6,V=Math.sqrt(H*H+at*at),Z=(y[B]-V)*g[B]*I/V;P.vx+=H*Z,P.vy+=at*Z}}function S(){if(h){var I,B=h.length;for(g=new Array(B),y=new Array(B),I=0;I<B;++I)y[I]=+a(h[I],I,h),g[I]=isNaN(y[I])?0:+w(h[I],I,h)}}return typeof a!="function"&&(a=ui(+a)),o==null&&(o=0),l==null&&(l=0),k.initialize=function(I){h=I,S()},k.strength=function(I){return arguments.length?(w=typeof I=="function"?I:ui(+I),S(),k):w},k.radius=function(I){return arguments.length?(a=typeof I=="function"?I:ui(+I),S(),k):a},k.x=function(I){return arguments.length?(o=+I,k):o},k.y=function(I){return arguments.length?(l=+I,k):l},k}function Yc(a){var o,l,h,g=ui(.1);function y(k){for(var S,I=0,B=o.length;I<B;++I)(S=o[I]).vx+=(h[I]-S.x)*l[I]*k}function w(){if(o){var k,S=o.length;for(l=new Array(S),h=new Array(S),k=0;k<S;++k)l[k]=isNaN(h[k]=+a(o[k],k,o))?0:+g(o[k],k,o)}}return typeof a!="function"&&(a=ui(a==null?0:+a)),y.initialize=function(k){o=k,w()},y.strength=function(k){return arguments.length?(g=typeof k=="function"?k:ui(+k),w(),y):g},y.x=function(k){return arguments.length?(a=typeof k=="function"?k:ui(+k),w(),y):a},y}function $d(a){var o,l,h,g=ui(.1);function y(k){for(var S,I=0,B=o.length;I<B;++I)(S=o[I]).vy+=(h[I]-S.y)*l[I]*k}function w(){if(o){var k,S=o.length;for(l=new Array(S),h=new Array(S),k=0;k<S;++k)l[k]=isNaN(h[k]=+a(o[k],k,o))?0:+g(o[k],k,o)}}return typeof a!="function"&&(a=ui(a==null?0:+a)),y.initialize=function(k){o=k,w()},y.strength=function(k){return arguments.length?(g=typeof k=="function"?k:ui(+k),w(),y):g},y.y=function(k){return arguments.length?(a=typeof k=="function"?k:ui(+k),w(),y):a},y}function Xo(a,o){if((l=(a=o?a.toExponential(o-1):a.toExponential()).indexOf("e"))<0)return null;var l,h=a.slice(0,l);return[h.length>1?h[0]+h.slice(2):h,+a.slice(l+1)]}function Si(a){return(a=Xo(Math.abs(a)))?a[1]:NaN}var Ts,jc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function To(a){if(!(o=jc.exec(a)))throw new Error("invalid format: "+a);var o;return new $c({fill:o[1],align:o[2],sign:o[3],symbol:o[4],zero:o[5],width:o[6],comma:o[7],precision:o[8]&&o[8].slice(1),trim:o[9],type:o[10]})}function $c(a){this.fill=a.fill===void 0?" ":a.fill+"",this.align=a.align===void 0?">":a.align+"",this.sign=a.sign===void 0?"-":a.sign+"",this.symbol=a.symbol===void 0?"":a.symbol+"",this.zero=!!a.zero,this.width=a.width===void 0?void 0:+a.width,this.comma=!!a.comma,this.precision=a.precision===void 0?void 0:+a.precision,this.trim=!!a.trim,this.type=a.type===void 0?"":a.type+""}function hh(a,o){var l=Xo(a,o);if(!l)return a+"";var h=l[0],g=l[1];return g<0?"0."+new Array(-g).join("0")+h:h.length>g+1?h.slice(0,g+1)+"."+h.slice(g+1):h+new Array(g-h.length+2).join("0")}To.prototype=$c.prototype,$c.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 a0={"%":(a,o)=>(100*a).toFixed(o),b:a=>Math.round(a).toString(2),c:a=>a+"",d:function(a){return Math.abs(a=Math.round(a))>=1e21?a.toLocaleString("en").replace(/,/g,""):a.toString(10)},e:(a,o)=>a.toExponential(o),f:(a,o)=>a.toFixed(o),g:(a,o)=>a.toPrecision(o),o:a=>Math.round(a).toString(8),p:(a,o)=>hh(100*a,o),r:hh,s:function(a,o){var l=Xo(a,o);if(!l)return a+"";var h=l[0],g=l[1],y=g-(Ts=3*Math.max(-8,Math.min(8,Math.floor(g/3))))+1,w=h.length;return y===w?h:y>w?h+new Array(y-w+1).join("0"):y>0?h.slice(0,y)+"."+h.slice(y):"0."+new Array(1-y).join("0")+Xo(a,Math.max(0,o+y-1))[0]},X:a=>Math.round(a).toString(16).toUpperCase(),x:a=>Math.round(a).toString(16)};function o0(a){return a}var $l,Hl,ql,s0=Array.prototype.map,Hc=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function c0(a){var o,l,h=a.grouping===void 0||a.thousands===void 0?o0:(o=s0.call(a.grouping,Number),l=a.thousands+"",function(P,H){for(var at=P.length,V=[],Z=0,K=o[0],gt=0;at>0&&K>0&&(gt+K+1>H&&(K=Math.max(1,H-gt)),V.push(P.substring(at-=K,at+K)),!((gt+=K+1)>H));)K=o[Z=(Z+1)%o.length];return V.reverse().join(l)}),g=a.currency===void 0?"":a.currency[0]+"",y=a.currency===void 0?"":a.currency[1]+"",w=a.decimal===void 0?".":a.decimal+"",k=a.numerals===void 0?o0:function(P){return function(H){return H.replace(/[0-9]/g,function(at){return P[+at]})}}(s0.call(a.numerals,String)),S=a.percent===void 0?"%":a.percent+"",I=a.minus===void 0?"\u2212":a.minus+"",B=a.nan===void 0?"NaN":a.nan+"";function $(P){var H=(P=To(P)).fill,at=P.align,V=P.sign,Z=P.symbol,K=P.zero,gt=P.width,ht=P.comma,dt=P.precision,xt=P.trim,Et=P.type;Et==="n"?(ht=!0,Et="g"):a0[Et]||(dt===void 0&&(dt=12),xt=!0,Et="g"),(K||H==="0"&&at==="=")&&(K=!0,H="0",at="=");var re=Z==="$"?g:Z==="#"&&/[boxX]/.test(Et)?"0"+Et.toLowerCase():"",_e=Z==="$"?y:/[%p]/.test(Et)?S:"",Zt=a0[Et],$t=/[defgprs%]/.test(Et);function Ht(Wt){var Tt,Pt,Kt,se=re,Ce=_e;if(Et==="c")Ce=Zt(Wt)+Ce,Wt="";else{var qe=(Wt=+Wt)<0||1/Wt<0;if(Wt=isNaN(Wt)?B:Zt(Math.abs(Wt),dt),xt&&(Wt=function(Je){t:for(var qr,Gr=Je.length,Dr=1,zr=-1;Dr<Gr;++Dr)switch(Je[Dr]){case".":zr=qr=Dr;break;case"0":zr===0&&(zr=Dr),qr=Dr;break;default:if(!+Je[Dr])break t;zr>0&&(zr=0)}return zr>0?Je.slice(0,zr)+Je.slice(qr+1):Je}(Wt)),qe&&+Wt==0&&V!=="+"&&(qe=!1),se=(qe?V==="("?V:I:V==="-"||V==="("?"":V)+se,Ce=(Et==="s"?Hc[8+Ts/3]:"")+Ce+(qe&&V==="("?")":""),$t){for(Tt=-1,Pt=Wt.length;++Tt<Pt;)if(48>(Kt=Wt.charCodeAt(Tt))||Kt>57){Ce=(Kt===46?w+Wt.slice(Tt+1):Wt.slice(Tt))+Ce,Wt=Wt.slice(0,Tt);break}}}ht&&!K&&(Wt=h(Wt,1/0));var Ke=se.length+Wt.length+Ce.length,yr=Ke<gt?new Array(gt-Ke+1).join(H):"";switch(ht&&K&&(Wt=h(yr+Wt,yr.length?gt-Ce.length:1/0),yr=""),at){case"<":Wt=se+Wt+Ce+yr;break;case"=":Wt=se+yr+Wt+Ce;break;case"^":Wt=yr.slice(0,Ke=yr.length>>1)+se+Wt+Ce+yr.slice(Ke);break;default:Wt=yr+se+Wt+Ce}return k(Wt)}return dt=dt===void 0?6:/[gprs]/.test(Et)?Math.max(1,Math.min(21,dt)):Math.max(0,Math.min(20,dt)),Ht.toString=function(){return P+""},Ht}return{format:$,formatPrefix:function(P,H){var at=$(((P=To(P)).type="f",P)),V=3*Math.max(-8,Math.min(8,Math.floor(Si(H)/3))),Z=Math.pow(10,-V),K=Hc[8+V/3];return function(gt){return at(Z*gt)+K}}}}function dh(a){return $l=c0(a),Hl=$l.format,ql=$l.formatPrefix,$l}function Wl(a){return Math.max(0,-Si(Math.abs(a)))}function fh(a,o){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Si(o)/3)))-Si(Math.abs(a)))}function ph(a,o){return a=Math.abs(a),o=Math.abs(o)-a,Math.max(0,Si(o)-Si(a))+1}dh({thousands:",",grouping:[3],currency:["$",""]});var Jr=1e-6,rc=1e-12,nn=Math.PI,ti=nn/2,Ko=nn/4,Ki=2*nn,Un=180/nn,wr=nn/180,yn=Math.abs,Ss=Math.atan,Mn=Math.atan2,Or=Math.cos,u=Math.ceil,s=Math.exp,m=Math.hypot,E=Math.log,C=Math.pow,N=Math.sin,M=Math.sign||function(a){return a>0?1:a<0?-1:0},D=Math.sqrt,z=Math.tan;function j(a){return a>1?0:a<-1?nn:Math.acos(a)}function X(a){return a>1?ti:a<-1?-ti:Math.asin(a)}function it(a){return(a=N(a/2))*a}function ut(){}function lt(a,o){a&&Lt.hasOwnProperty(a.type)&&Lt[a.type](a,o)}var Ot={Feature:function(a,o){lt(a.geometry,o)},FeatureCollection:function(a,o){for(var l=a.features,h=-1,g=l.length;++h<g;)lt(l[h].geometry,o)}},Lt={Sphere:function(a,o){o.sphere()},Point:function(a,o){a=a.coordinates,o.point(a[0],a[1],a[2])},MultiPoint:function(a,o){for(var l=a.coordinates,h=-1,g=l.length;++h<g;)a=l[h],o.point(a[0],a[1],a[2])},LineString:function(a,o){Yt(a.coordinates,o,0)},MultiLineString:function(a,o){for(var l=a.coordinates,h=-1,g=l.length;++h<g;)Yt(l[h],o,0)},Polygon:function(a,o){qt(a.coordinates,o)},MultiPolygon:function(a,o){for(var l=a.coordinates,h=-1,g=l.length;++h<g;)qt(l[h],o)},GeometryCollection:function(a,o){for(var l=a.geometries,h=-1,g=l.length;++h<g;)lt(l[h],o)}};function Yt(a,o,l){var h,g=-1,y=a.length-l;for(o.lineStart();++g<y;)h=a[g],o.point(h[0],h[1],h[2]);o.lineEnd()}function qt(a,o){var l=-1,h=a.length;for(o.polygonStart();++l<h;)Yt(a[l],o,1);o.polygonEnd()}function Nt(a,o){a&&Ot.hasOwnProperty(a.type)?Ot[a.type](a,o):lt(a,o)}var zt,Dt,te,Re,ke,he,Jt,ue,jt,ce,ae,fe,Me,Fe,Ye,gr,je=new vt,lr=new vt,dr={point:ut,lineStart:ut,lineEnd:ut,polygonStart:function(){je=new vt,dr.lineStart=Ge,dr.lineEnd=Ve},polygonEnd:function(){var a=+je;lr.add(a<0?Ki+a:a),this.lineStart=this.lineEnd=this.point=ut},sphere:function(){lr.add(Ki)}};function Ge(){dr.point=br}function Ve(){bn(zt,Dt)}function br(a,o){dr.point=bn,zt=a,Dt=o,te=a*=wr,Re=Or(o=(o*=wr)/2+Ko),ke=N(o)}function bn(a,o){var l=(a*=wr)-te,h=l>=0?1:-1,g=h*l,y=Or(o=(o*=wr)/2+Ko),w=N(o),k=ke*w,S=Re*y+k*Or(g),I=k*h*N(g);je.add(Mn(I,S)),te=a,Re=y,ke=w}function Sn(a){return lr=new vt,Nt(a,dr),2*lr}function ei(a){return[Mn(a[1],a[0]),X(a[2])]}function pn(a){var o=a[0],l=a[1],h=Or(l);return[h*Or(o),h*N(o),N(l)]}function Ri(a,o){return a[0]*o[0]+a[1]*o[1]+a[2]*o[2]}function hn(a,o){return[a[1]*o[2]-a[2]*o[1],a[2]*o[0]-a[0]*o[2],a[0]*o[1]-a[1]*o[0]]}function Xa(a,o){a[0]+=o[0],a[1]+=o[1],a[2]+=o[2]}function fa(a,o){return[a[0]*o,a[1]*o,a[2]*o]}function pi(a){var o=D(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]);a[0]/=o,a[1]/=o,a[2]/=o}var Bn,Ya,Ea,Jo,Qo,ca,ts,qc,Gl,Vl,Zl,gh,A2,Ta,Sa,Aa,As={point:Hd,lineStart:I2,lineEnd:N2,polygonStart:function(){As.point=L2,As.lineStart=Mm,As.lineEnd=Om,Fe=new vt,dr.polygonStart()},polygonEnd:function(){dr.polygonEnd(),As.point=Hd,As.lineStart=I2,As.lineEnd=N2,je<0?(he=-(ue=180),Jt=-(jt=90)):Fe>Jr?jt=90:Fe<-1e-6&&(Jt=-90),gr[0]=he,gr[1]=ue},sphere:function(){he=-(ue=180),Jt=-(jt=90)}};function Hd(a,o){Ye.push(gr=[he=a,ue=a]),o<Jt&&(Jt=o),o>jt&&(jt=o)}function C2(a,o){var l=pn([a*wr,o*wr]);if(Me){var h=hn(Me,l),g=hn([h[1],-h[0],0],h);pi(g),g=ei(g);var y,w=a-ce,k=w>0?1:-1,S=g[0]*Un*k,I=yn(w)>180;I^(k*ce<S&&S<k*a)?(y=g[1]*Un)>jt&&(jt=y):I^(k*ce<(S=(S+360)%360-180)&&S<k*a)?(y=-g[1]*Un)<Jt&&(Jt=y):(o<Jt&&(Jt=o),o>jt&&(jt=o)),I?a<ce?Ka(he,a)>Ka(he,ue)&&(ue=a):Ka(a,ue)>Ka(he,ue)&&(he=a):ue>=he?(a<he&&(he=a),a>ue&&(ue=a)):a>ce?Ka(he,a)>Ka(he,ue)&&(ue=a):Ka(a,ue)>Ka(he,ue)&&(he=a)}else Ye.push(gr=[he=a,ue=a]);o<Jt&&(Jt=o),o>jt&&(jt=o),Me=l,ce=a}function I2(){As.point=C2}function N2(){gr[0]=he,gr[1]=ue,As.point=Hd,Me=null}function L2(a,o){if(Me){var l=a-ce;Fe.add(yn(l)>180?l+(l>0?360:-360):l)}else ae=a,fe=o;dr.point(a,o),C2(a,o)}function Mm(){dr.lineStart()}function Om(){L2(ae,fe),dr.lineEnd(),yn(Fe)>Jr&&(he=-(ue=180)),gr[0]=he,gr[1]=ue,Me=null}function Ka(a,o){return(o-=a)<0?o+360:o}function Dm(a,o){return a[0]-o[0]}function M2(a,o){return a[0]<=a[1]?a[0]<=o&&o<=a[1]:o<a[0]||a[1]<o}function Rm(a){var o,l,h,g,y,w,k;if(jt=ue=-(he=Jt=1/0),Ye=[],Nt(a,As),l=Ye.length){for(Ye.sort(Dm),o=1,y=[h=Ye[0]];o<l;++o)M2(h,(g=Ye[o])[0])||M2(h,g[1])?(Ka(h[0],g[1])>Ka(h[0],h[1])&&(h[1]=g[1]),Ka(g[0],h[1])>Ka(h[0],h[1])&&(h[0]=g[0])):y.push(h=g);for(w=-1/0,o=0,h=y[l=y.length-1];o<=l;h=g,++o)g=y[o],(k=Ka(h[1],g[0]))>w&&(w=k,he=g[0],ue=h[1])}return Ye=gr=null,he===1/0||Jt===1/0?[[NaN,NaN],[NaN,NaN]]:[[he,Jt],[ue,jt]]}var So={sphere:ut,point:qd,lineStart:O2,lineEnd:D2,polygonStart:function(){So.lineStart=Pm,So.lineEnd=zm},polygonEnd:function(){So.lineStart=O2,So.lineEnd=D2}};function qd(a,o){a*=wr;var l=Or(o*=wr);yh(l*Or(a),l*N(a),N(o))}function yh(a,o,l){++Bn,Ea+=(a-Ea)/Bn,Jo+=(o-Jo)/Bn,Qo+=(l-Qo)/Bn}function O2(){So.point=Bm}function Bm(a,o){a*=wr;var l=Or(o*=wr);Ta=l*Or(a),Sa=l*N(a),Aa=N(o),So.point=Fm,yh(Ta,Sa,Aa)}function Fm(a,o){a*=wr;var l=Or(o*=wr),h=l*Or(a),g=l*N(a),y=N(o),w=Mn(D((w=Sa*y-Aa*g)*w+(w=Aa*h-Ta*y)*w+(w=Ta*g-Sa*h)*w),Ta*h+Sa*g+Aa*y);Ya+=w,ca+=w*(Ta+(Ta=h)),ts+=w*(Sa+(Sa=g)),qc+=w*(Aa+(Aa=y)),yh(Ta,Sa,Aa)}function D2(){So.point=qd}function Pm(){So.point=Um}function zm(){R2(gh,A2),So.point=qd}function Um(a,o){gh=a,A2=o,a*=wr,o*=wr,So.point=R2;var l=Or(o);Ta=l*Or(a),Sa=l*N(a),Aa=N(o),yh(Ta,Sa,Aa)}function R2(a,o){a*=wr;var l=Or(o*=wr),h=l*Or(a),g=l*N(a),y=N(o),w=Sa*y-Aa*g,k=Aa*h-Ta*y,S=Ta*g-Sa*h,I=m(w,k,S),B=X(I),$=I&&-B/I;Gl.add($*w),Vl.add($*k),Zl.add($*S),Ya+=B,ca+=B*(Ta+(Ta=h)),ts+=B*(Sa+(Sa=g)),qc+=B*(Aa+(Aa=y)),yh(Ta,Sa,Aa)}function Ym(a){Bn=Ya=Ea=Jo=Qo=ca=ts=qc=0,Gl=new vt,Vl=new vt,Zl=new vt,Nt(a,So);var o=+Gl,l=+Vl,h=+Zl,g=m(o,l,h);return g<rc&&(o=ca,l=ts,h=qc,Ya<Jr&&(o=Ea,l=Jo,h=Qo),(g=m(o,l,h))<rc)?[NaN,NaN]:[Mn(l,o)*Un,X(h/g)*Un]}function Xl(a){return function(){return a}}function Wd(a,o){function l(h,g){return h=a(h,g),o(h[0],h[1])}return a.invert&&o.invert&&(l.invert=function(h,g){return(h=o.invert(h,g))&&a.invert(h[0],h[1])}),l}function Gd(a,o){return[yn(a)>nn?a+Math.round(-a/Ki)*Ki:a,o]}function Vd(a,o,l){return(a%=Ki)?o||l?Wd(F2(a),P2(o,l)):F2(a):o||l?P2(o,l):Gd}function B2(a){return function(o,l){return[(o+=a)>nn?o-Ki:o<-nn?o+Ki:o,l]}}function F2(a){var o=B2(a);return o.invert=B2(-a),o}function P2(a,o){var l=Or(a),h=N(a),g=Or(o),y=N(o);function w(k,S){var I=Or(S),B=Or(k)*I,$=N(k)*I,P=N(S),H=P*l+B*h;return[Mn($*g-H*y,B*l-P*h),X(H*g+$*y)]}return w.invert=function(k,S){var I=Or(S),B=Or(k)*I,$=N(k)*I,P=N(S),H=P*g-$*y;return[Mn($*g+P*y,B*l+H*h),X(H*l-B*h)]},w}function z2(a){function o(l){return(l=a(l[0]*wr,l[1]*wr))[0]*=Un,l[1]*=Un,l}return a=Vd(a[0]*wr,a[1]*wr,a.length>2?a[2]*wr:0),o.invert=function(l){return(l=a.invert(l[0]*wr,l[1]*wr))[0]*=Un,l[1]*=Un,l},o}function U2(a,o,l,h,g,y){if(l){var w=Or(o),k=N(o),S=h*l;g==null?(g=o+h*Ki,y=o-S/2):(g=Y2(w,g),y=Y2(w,y),(h>0?g<y:g>y)&&(g+=h*Ki));for(var I,B=g;h>0?B>y:B<y;B-=S)I=ei([w,-k*Or(B),-k*N(B)]),a.point(I[0],I[1])}}function Y2(a,o){(o=pn(o))[0]-=a,pi(o);var l=j(-o[1]);return((-o[2]<0?-l:l)+Ki-Jr)%Ki}function jm(){var a,o,l=Xl([0,0]),h=Xl(90),g=Xl(6),y={point:function(k,S){a.push(k=o(k,S)),k[0]*=Un,k[1]*=Un}};function w(){var k=l.apply(this,arguments),S=h.apply(this,arguments)*wr,I=g.apply(this,arguments)*wr;return a=[],o=Vd(-k[0]*wr,-k[1]*wr,0).invert,U2(y,S,I,1),k={type:"Polygon",coordinates:[a]},a=o=null,k}return w.center=function(k){return arguments.length?(l=typeof k=="function"?k:Xl([+k[0],+k[1]]),w):l},w.radius=function(k){return arguments.length?(h=typeof k=="function"?k:Xl(+k),w):h},w.precision=function(k){return arguments.length?(g=typeof k=="function"?k:Xl(+k),w):g},w}function j2(){var a,o=[];return{point:function(l,h,g){a.push([l,h,g])},lineStart:function(){o.push(a=[])},lineEnd:ut,rejoin:function(){o.length>1&&o.push(o.pop().concat(o.shift()))},result:function(){var l=o;return o=[],a=null,l}}}function l0(a,o){return yn(a[0]-o[0])<Jr&&yn(a[1]-o[1])<Jr}function u0(a,o,l,h){this.x=a,this.z=o,this.o=l,this.e=h,this.v=!1,this.n=this.p=null}function $2(a,o,l,h,g){var y,w,k=[],S=[];if(a.forEach(function(at){if(!((V=at.length-1)<=0)){var V,Z,K=at[0],gt=at[V];if(l0(K,gt)){if(!K[2]&&!gt[2]){for(g.lineStart(),y=0;y<V;++y)g.point((K=at[y])[0],K[1]);return void g.lineEnd()}gt[0]+=2e-6}k.push(Z=new u0(K,at,null,!0)),S.push(Z.o=new u0(K,null,Z,!1)),k.push(Z=new u0(gt,at,null,!1)),S.push(Z.o=new u0(gt,null,Z,!0))}}),k.length){for(S.sort(o),H2(k),H2(S),y=0,w=S.length;y<w;++y)S[y].e=l=!l;for(var I,B,$=k[0];;){for(var P=$,H=!0;P.v;)if((P=P.n)===$)return;I=P.z,g.lineStart();do{if(P.v=P.o.v=!0,P.e){if(H)for(y=0,w=I.length;y<w;++y)g.point((B=I[y])[0],B[1]);else h(P.x,P.n.x,1,g);P=P.n}else{if(H)for(I=P.p.z,y=I.length-1;y>=0;--y)g.point((B=I[y])[0],B[1]);else h(P.x,P.p.x,-1,g);P=P.p}I=(P=P.o).z,H=!H}while(!P.v);g.lineEnd()}}}function H2(a){if(o=a.length){for(var o,l,h=0,g=a[0];++h<o;)g.n=l=a[h],l.p=g,g=l;g.n=l=a[0],l.p=g}}function Zd(a){return yn(a[0])<=nn?a[0]:M(a[0])*((yn(a[0])+nn)%Ki-nn)}function q2(a,o){var l=Zd(o),h=o[1],g=N(h),y=[N(l),-Or(l),0],w=0,k=0,S=new vt;g===1?h=ti+Jr:g===-1&&(h=-ti-Jr);for(var I=0,B=a.length;I<B;++I)if(P=($=a[I]).length)for(var $,P,H=$[P-1],at=Zd(H),V=H[1]/2+Ko,Z=N(V),K=Or(V),gt=0;gt<P;++gt,at=dt,Z=Et,K=re,H=ht){var ht=$[gt],dt=Zd(ht),xt=ht[1]/2+Ko,Et=N(xt),re=Or(xt),_e=dt-at,Zt=_e>=0?1:-1,$t=Zt*_e,Ht=$t>nn,Wt=Z*Et;if(S.add(Mn(Wt*Zt*N($t),K*re+Wt*Or($t))),w+=Ht?_e+Zt*Ki:_e,Ht^at>=l^dt>=l){var Tt=hn(pn(H),pn(ht));pi(Tt);var Pt=hn(y,Tt);pi(Pt);var Kt=(Ht^_e>=0?-1:1)*X(Pt[2]);(h>Kt||h===Kt&&(Tt[0]||Tt[1]))&&(k+=Ht^_e>=0?1:-1)}}return(w<-1e-6||w<Jr&&S<-1e-12)^1&k}function W2(a,o,l,h){return function(g){var y,w,k,S=o(g),I=j2(),B=o(I),$=!1,P={point:H,lineStart:V,lineEnd:Z,polygonStart:function(){P.point=K,P.lineStart=gt,P.lineEnd=ht,w=[],y=[]},polygonEnd:function(){P.point=H,P.lineStart=V,P.lineEnd=Z,w=He(w);var dt=q2(y,h);w.length?($||(g.polygonStart(),$=!0),$2(w,Hm,dt,l,g)):dt&&($||(g.polygonStart(),$=!0),g.lineStart(),l(null,null,1,g),g.lineEnd()),$&&(g.polygonEnd(),$=!1),w=y=null},sphere:function(){g.polygonStart(),g.lineStart(),l(null,null,1,g),g.lineEnd(),g.polygonEnd()}};function H(dt,xt){a(dt,xt)&&g.point(dt,xt)}function at(dt,xt){S.point(dt,xt)}function V(){P.point=at,S.lineStart()}function Z(){P.point=H,S.lineEnd()}function K(dt,xt){k.push([dt,xt]),B.point(dt,xt)}function gt(){B.lineStart(),k=[]}function ht(){K(k[0][0],k[0][1]),B.lineEnd();var dt,xt,Et,re,_e=B.clean(),Zt=I.result(),$t=Zt.length;if(k.pop(),y.push(k),k=null,$t)if(1&_e){if((xt=(Et=Zt[0]).length-1)>0){for($||(g.polygonStart(),$=!0),g.lineStart(),dt=0;dt<xt;++dt)g.point((re=Et[dt])[0],re[1]);g.lineEnd()}}else $t>1&&2&_e&&Zt.push(Zt.pop().concat(Zt.shift())),w.push(Zt.filter($m))}return P}}function $m(a){return a.length>1}function Hm(a,o){return((a=a.x)[0]<0?a[1]-ti-Jr:ti-a[1])-((o=o.x)[0]<0?o[1]-ti-Jr:ti-o[1])}Gd.invert=Gd;const Xd=W2(function(){return!0},function(a){var o,l=NaN,h=NaN,g=NaN;return{lineStart:function(){a.lineStart(),o=1},point:function(y,w){var k=y>0?nn:-nn,S=yn(y-l);yn(S-nn)<Jr?(a.point(l,h=(h+w)/2>0?ti:-ti),a.point(g,h),a.lineEnd(),a.lineStart(),a.point(k,h),a.point(y,h),o=0):g!==k&&S>=nn&&(yn(l-g)<Jr&&(l-=g*Jr),yn(y-k)<Jr&&(y-=k*Jr),h=function(I,B,$,P){var H,at,V=N(I-$);return yn(V)>Jr?Ss((N(B)*(at=Or(P))*N($)-N(P)*(H=Or(B))*N(I))/(H*at*V)):(B+P)/2}(l,h,y,w),a.point(g,h),a.lineEnd(),a.lineStart(),a.point(k,h),o=0),a.point(l=y,h=w),g=k},lineEnd:function(){a.lineEnd(),l=h=NaN},clean:function(){return 2-o}}},function(a,o,l,h){var g;if(a==null)g=l*ti,h.point(-nn,g),h.point(0,g),h.point(nn,g),h.point(nn,0),h.point(nn,-g),h.point(0,-g),h.point(-nn,-g),h.point(-nn,0),h.point(-nn,g);else if(yn(a[0]-o[0])>Jr){var y=a[0]<o[0]?nn:-nn;g=l*y/2,h.point(-y,g),h.point(0,g),h.point(y,g)}else h.point(o[0],o[1])},[-nn,-ti]);function G2(a){var o=Or(a),l=6*wr,h=o>0,g=yn(o)>Jr;function y(S,I){return Or(S)*Or(I)>o}function w(S,I,B){var $=[1,0,0],P=hn(pn(S),pn(I)),H=Ri(P,P),at=P[0],V=H-at*at;if(!V)return!B&&S;var Z=o*H/V,K=-o*at/V,gt=hn($,P),ht=fa($,Z);Xa(ht,fa(P,K));var dt=gt,xt=Ri(ht,dt),Et=Ri(dt,dt),re=xt*xt-Et*(Ri(ht,ht)-1);if(!(re<0)){var _e=D(re),Zt=fa(dt,(-xt-_e)/Et);if(Xa(Zt,ht),Zt=ei(Zt),!B)return Zt;var $t,Ht=S[0],Wt=I[0],Tt=S[1],Pt=I[1];Wt<Ht&&($t=Ht,Ht=Wt,Wt=$t);var Kt=Wt-Ht,se=yn(Kt-nn)<Jr;if(!se&&Pt<Tt&&($t=Tt,Tt=Pt,Pt=$t),se||Kt<Jr?se?Tt+Pt>0^Zt[1]<(yn(Zt[0]-Ht)<Jr?Tt:Pt):Tt<=Zt[1]&&Zt[1]<=Pt:Kt>nn^(Ht<=Zt[0]&&Zt[0]<=Wt)){var Ce=fa(dt,(-xt+_e)/Et);return Xa(Ce,ht),[Zt,ei(Ce)]}}}function k(S,I){var B=h?a:nn-a,$=0;return S<-B?$|=1:S>B&&($|=2),I<-B?$|=4:I>B&&($|=8),$}return W2(y,function(S){var I,B,$,P,H;return{lineStart:function(){P=$=!1,H=1},point:function(at,V){var Z,K=[at,V],gt=y(at,V),ht=h?gt?0:k(at,V):gt?k(at+(at<0?nn:-nn),V):0;if(!I&&(P=$=gt)&&S.lineStart(),gt!==$&&(!(Z=w(I,K))||l0(I,Z)||l0(K,Z))&&(K[2]=1),gt!==$)H=0,gt?(S.lineStart(),Z=w(K,I),S.point(Z[0],Z[1])):(Z=w(I,K),S.point(Z[0],Z[1],2),S.lineEnd()),I=Z;else if(g&&I&&h^gt){var dt;ht&B||!(dt=w(K,I,!0))||(H=0,h?(S.lineStart(),S.point(dt[0][0],dt[0][1]),S.point(dt[1][0],dt[1][1]),S.lineEnd()):(S.point(dt[1][0],dt[1][1]),S.lineEnd(),S.lineStart(),S.point(dt[0][0],dt[0][1],3)))}!gt||I&&l0(I,K)||S.point(K[0],K[1]),I=K,$=gt,B=ht},lineEnd:function(){$&&S.lineEnd(),I=null},clean:function(){return H|(P&&$)<<1}}},function(S,I,B,$){U2($,a,l,B,S,I)},h?[0,-a]:[-nn,a-nn])}var Kd,Jd,h0,d0,mh=1e9,f0=-mh;function p0(a,o,l,h){function g(I,B){return a<=I&&I<=l&&o<=B&&B<=h}function y(I,B,$,P){var H=0,at=0;if(I==null||(H=w(I,$))!==(at=w(B,$))||S(I,B)<0^$>0)do P.point(H===0||H===3?a:l,H>1?h:o);while((H=(H+$+4)%4)!==at);else P.point(B[0],B[1])}function w(I,B){return yn(I[0]-a)<Jr?B>0?0:3:yn(I[0]-l)<Jr?B>0?2:1:yn(I[1]-o)<Jr?B>0?1:0:B>0?3:2}function k(I,B){return S(I.x,B.x)}function S(I,B){var $=w(I,1),P=w(B,1);return $!==P?$-P:$===0?B[1]-I[1]:$===1?I[0]-B[0]:$===2?I[1]-B[1]:B[0]-I[0]}return function(I){var B,$,P,H,at,V,Z,K,gt,ht,dt,xt=I,Et=j2(),re={point:_e,lineStart:function(){re.point=Zt,$&&$.push(P=[]),ht=!0,gt=!1,Z=K=NaN},lineEnd:function(){B&&(Zt(H,at),V&>&&Et.rejoin(),B.push(Et.result())),re.point=_e,gt&&xt.lineEnd()},polygonStart:function(){xt=Et,B=[],$=[],dt=!0},polygonEnd:function(){var $t=function(){for(var Tt=0,Pt=0,Kt=$.length;Pt<Kt;++Pt)for(var se,Ce,qe=$[Pt],Ke=1,yr=qe.length,Je=qe[0],qr=Je[0],Gr=Je[1];Ke<yr;++Ke)se=qr,Ce=Gr,qr=(Je=qe[Ke])[0],Gr=Je[1],Ce<=h?Gr>h&&(qr-se)*(h-Ce)>(Gr-Ce)*(a-se)&&++Tt:Gr<=h&&(qr-se)*(h-Ce)<(Gr-Ce)*(a-se)&&--Tt;return Tt}(),Ht=dt&&$t,Wt=(B=He(B)).length;(Ht||Wt)&&(I.polygonStart(),Ht&&(I.lineStart(),y(null,null,1,I),I.lineEnd()),Wt&&$2(B,k,$t,y,I),I.polygonEnd()),xt=I,B=$=P=null}};function _e($t,Ht){g($t,Ht)&&xt.point($t,Ht)}function Zt($t,Ht){var Wt=g($t,Ht);if($&&P.push([$t,Ht]),ht)H=$t,at=Ht,V=Wt,ht=!1,Wt&&(xt.lineStart(),xt.point($t,Ht));else if(Wt&>)xt.point($t,Ht);else{var Tt=[Z=Math.max(f0,Math.min(mh,Z)),K=Math.max(f0,Math.min(mh,K))],Pt=[$t=Math.max(f0,Math.min(mh,$t)),Ht=Math.max(f0,Math.min(mh,Ht))];(function(Kt,se,Ce,qe,Ke,yr){var Je,qr=Kt[0],Gr=Kt[1],Dr=0,zr=1,An=se[0]-qr,ln=se[1]-Gr;if(Je=Ce-qr,An||!(Je>0)){if(Je/=An,An<0){if(Je<Dr)return;Je<zr&&(zr=Je)}else if(An>0){if(Je>zr)return;Je>Dr&&(Dr=Je)}if(Je=Ke-qr,An||!(Je<0)){if(Je/=An,An<0){if(Je>zr)return;Je>Dr&&(Dr=Je)}else if(An>0){if(Je<Dr)return;Je<zr&&(zr=Je)}if(Je=qe-Gr,ln||!(Je>0)){if(Je/=ln,ln<0){if(Je<Dr)return;Je<zr&&(zr=Je)}else if(ln>0){if(Je>zr)return;Je>Dr&&(Dr=Je)}if(Je=yr-Gr,ln||!(Je<0)){if(Je/=ln,ln<0){if(Je>zr)return;Je>Dr&&(Dr=Je)}else if(ln>0){if(Je<Dr)return;Je<zr&&(zr=Je)}return Dr>0&&(Kt[0]=qr+Dr*An,Kt[1]=Gr+Dr*ln),zr<1&&(se[0]=qr+zr*An,se[1]=Gr+zr*ln),!0}}}}})(Tt,Pt,a,o,l,h)?(gt||(xt.lineStart(),xt.point(Tt[0],Tt[1])),xt.point(Pt[0],Pt[1]),Wt||xt.lineEnd(),dt=!1):Wt&&(xt.lineStart(),xt.point($t,Ht),dt=!1)}Z=$t,K=Ht,gt=Wt}return re}}function qm(){var a,o,l,h=0,g=0,y=960,w=500;return l={stream:function(k){return a&&o===k?a:a=p0(h,g,y,w)(o=k)},extent:function(k){return arguments.length?(h=+k[0][0],g=+k[0][1],y=+k[1][0],w=+k[1][1],a=o=null,l):[[h,g],[y,w]]}}}var Kl={sphere:ut,point:ut,lineStart:function(){Kl.point=Gm,Kl.lineEnd=Wm},lineEnd:ut,polygonStart:ut,polygonEnd:ut};function Wm(){Kl.point=Kl.lineEnd=ut}function Gm(a,o){Jd=a*=wr,h0=N(o*=wr),d0=Or(o),Kl.point=Vm}function Vm(a,o){a*=wr;var l=N(o*=wr),h=Or(o),g=yn(a-Jd),y=Or(g),w=h*N(g),k=d0*l-h0*h*y,S=h0*l+d0*h*y;Kd.add(Mn(D(w*w+k*k),S)),Jd=a,h0=l,d0=h}function V2(a){return Kd=new vt,Nt(a,Kl),+Kd}var Qd=[null,null],Zm={type:"LineString",coordinates:Qd};function g0(a,o){return Qd[0]=a,Qd[1]=o,V2(Zm)}var Z2={Feature:function(a,o){return y0(a.geometry,o)},FeatureCollection:function(a,o){for(var l=a.features,h=-1,g=l.length;++h<g;)if(y0(l[h].geometry,o))return!0;return!1}},X2={Sphere:function(){return!0},Point:function(a,o){return K2(a.coordinates,o)},MultiPoint:function(a,o){for(var l=a.coordinates,h=-1,g=l.length;++h<g;)if(K2(l[h],o))return!0;return!1},LineString:function(a,o){return J2(a.coordinates,o)},MultiLineString:function(a,o){for(var l=a.coordinates,h=-1,g=l.length;++h<g;)if(J2(l[h],o))return!0;return!1},Polygon:function(a,o){return Q2(a.coordinates,o)},MultiPolygon:function(a,o){for(var l=a.coordinates,h=-1,g=l.length;++h<g;)if(Q2(l[h],o))return!0;return!1},GeometryCollection:function(a,o){for(var l=a.geometries,h=-1,g=l.length;++h<g;)if(y0(l[h],o))return!0;return!1}};function y0(a,o){return!(!a||!X2.hasOwnProperty(a.type))&&X2[a.type](a,o)}function K2(a,o){return g0(a,o)===0}function J2(a,o){for(var l,h,g,y=0,w=a.length;y<w;y++){if((h=g0(a[y],o))===0||y>0&&(g=g0(a[y],a[y-1]))>0&&l<=g&&h<=g&&(l+h-g)*(1-Math.pow((l-h)/g,2))<rc*g)return!0;l=h}return!1}function Q2(a,o){return!!q2(a.map(Xm),tp(o))}function Xm(a){return(a=a.map(tp)).pop(),a}function tp(a){return[a[0]*wr,a[1]*wr]}function Km(a,o){return(a&&Z2.hasOwnProperty(a.type)?Z2[a.type]:y0)(a,o)}function ep(a,o,l){var h=Le(a,o-Jr,l).concat(o);return function(g){return h.map(function(y){return[g,y]})}}function rp(a,o,l){var h=Le(a,o-Jr,l).concat(o);return function(g){return h.map(function(y){return[y,g]})}}function np(){var a,o,l,h,g,y,w,k,S,I,B,$,P=10,H=P,at=90,V=360,Z=2.5;function K(){return{type:"MultiLineString",coordinates:gt()}}function gt(){return Le(u(h/at)*at,l,at).map(B).concat(Le(u(k/V)*V,w,V).map($)).concat(Le(u(o/P)*P,a,P).filter(function(ht){return yn(ht%at)>Jr}).map(S)).concat(Le(u(y/H)*H,g,H).filter(function(ht){return yn(ht%V)>Jr}).map(I))}return K.lines=function(){return gt().map(function(ht){return{type:"LineString",coordinates:ht}})},K.outline=function(){return{type:"Polygon",coordinates:[B(h).concat($(w).slice(1),B(l).reverse().slice(1),$(k).reverse().slice(1))]}},K.extent=function(ht){return arguments.length?K.extentMajor(ht).extentMinor(ht):K.extentMinor()},K.extentMajor=function(ht){return arguments.length?(h=+ht[0][0],l=+ht[1][0],k=+ht[0][1],w=+ht[1][1],h>l&&(ht=h,h=l,l=ht),k>w&&(ht=k,k=w,w=ht),K.precision(Z)):[[h,k],[l,w]]},K.extentMinor=function(ht){return arguments.length?(o=+ht[0][0],a=+ht[1][0],y=+ht[0][1],g=+ht[1][1],o>a&&(ht=o,o=a,a=ht),y>g&&(ht=y,y=g,g=ht),K.precision(Z)):[[o,y],[a,g]]},K.step=function(ht){return arguments.length?K.stepMajor(ht).stepMinor(ht):K.stepMinor()},K.stepMajor=function(ht){return arguments.length?(at=+ht[0],V=+ht[1],K):[at,V]},K.stepMinor=function(ht){return arguments.length?(P=+ht[0],H=+ht[1],K):[P,H]},K.precision=function(ht){return arguments.length?(Z=+ht,S=ep(y,g,90),I=rp(o,a,Z),B=ep(k,w,90),$=rp(h,l,Z),K):Z},K.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Jm(){return np()()}function Qm(a,o){var l=a[0]*wr,h=a[1]*wr,g=o[0]*wr,y=o[1]*wr,w=Or(h),k=N(h),S=Or(y),I=N(y),B=w*Or(l),$=w*N(l),P=S*Or(g),H=S*N(g),at=2*X(D(it(y-h)+w*S*it(g-l))),V=N(at),Z=at?function(K){var gt=N(K*=at)/V,ht=N(at-K)/V,dt=ht*B+gt*P,xt=ht*$+gt*H,Et=ht*k+gt*I;return[Mn(xt,dt)*Un,Mn(Et,D(dt*dt+xt*xt))*Un]}:function(){return[l*Un,h*Un]};return Z.distance=at,Z}const _h=a=>a;var ip,ap,tf,ef,rf=new vt,nf=new vt,nc={point:ut,lineStart:ut,lineEnd:ut,polygonStart:function(){nc.lineStart=t_,nc.lineEnd=r_},polygonEnd:function(){nc.lineStart=nc.lineEnd=nc.point=ut,rf.add(yn(nf)),nf=new vt},result:function(){var a=rf/2;return rf=new vt,a}};function t_(){nc.point=e_}function e_(a,o){nc.point=op,ip=tf=a,ap=ef=o}function op(a,o){nf.add(ef*a-tf*o),tf=a,ef=o}function r_(){op(ip,ap)}const sp=nc;var Jl=1/0,m0=Jl,bh=-Jl,_0=bh,n_={point:function(a,o){a<Jl&&(Jl=a),a>bh&&(bh=a),o<m0&&(m0=o),o>_0&&(_0=o)},lineStart:ut,lineEnd:ut,polygonStart:ut,polygonEnd:ut,result:function(){var a=[[Jl,m0],[bh,_0]];return bh=_0=-(m0=Jl=1/0),a}};const b0=n_;var cp,lp,es,rs,af=0,of=0,vh=0,v0=0,x0=0,Ql=0,sf=0,cf=0,xh=0,Ao={point:Wc,lineStart:up,lineEnd:hp,polygonStart:function(){Ao.lineStart=o_,Ao.lineEnd=s_},polygonEnd:function(){Ao.point=Wc,Ao.lineStart=up,Ao.lineEnd=hp},result:function(){var a=xh?[sf/xh,cf/xh]:Ql?[v0/Ql,x0/Ql]:vh?[af/vh,of/vh]:[NaN,NaN];return af=of=vh=v0=x0=Ql=sf=cf=xh=0,a}};function Wc(a,o){af+=a,of+=o,++vh}function up(){Ao.point=i_}function i_(a,o){Ao.point=a_,Wc(es=a,rs=o)}function a_(a,o){var l=a-es,h=o-rs,g=D(l*l+h*h);v0+=g*(es+a)/2,x0+=g*(rs+o)/2,Ql+=g,Wc(es=a,rs=o)}function hp(){Ao.point=Wc}function o_(){Ao.point=c_}function s_(){dp(cp,lp)}function c_(a,o){Ao.point=dp,Wc(cp=es=a,lp=rs=o)}function dp(a,o){var l=a-es,h=o-rs,g=D(l*l+h*h);v0+=g*(es+a)/2,x0+=g*(rs+o)/2,Ql+=g,sf+=(g=rs*a-es*o)*(es+a),cf+=g*(rs+o),xh+=3*g,Wc(es=a,rs=o)}const fp=Ao;function pp(a){this._context=a}pp.prototype={_radius:4.5,pointRadius:function(a){return this._radius=a,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(a,o){switch(this._point){case 0:this._context.moveTo(a,o),this._point=1;break;case 1:this._context.lineTo(a,o);break;default:this._context.moveTo(a+this._radius,o),this._context.arc(a,o,this._radius,0,Ki)}},result:ut};var lf,gp,yp,wh,kh,uf=new vt,w0={point:ut,lineStart:function(){w0.point=l_},lineEnd:function(){lf&&mp(gp,yp),w0.point=ut},polygonStart:function(){lf=!0},polygonEnd:function(){lf=null},result:function(){var a=+uf;return uf=new vt,a}};function l_(a,o){w0.point=mp,gp=wh=a,yp=kh=o}function mp(a,o){wh-=a,kh-=o,uf.add(D(wh*wh+kh*kh)),wh=a,kh=o}const _p=w0;function bp(){this._string=[]}function vp(a){return"m0,"+a+"a"+a+","+a+" 0 1,1 0,"+-2*a+"a"+a+","+a+" 0 1,1 0,"+2*a+"z"}function u_(a,o){var l,h,g=4.5;function y(w){return w&&(typeof g=="function"&&h.pointRadius(+g.apply(this,arguments)),Nt(w,l(h))),h.result()}return y.area=function(w){return Nt(w,l(sp)),sp.result()},y.measure=function(w){return Nt(w,l(_p)),_p.result()},y.bounds=function(w){return Nt(w,l(b0)),b0.result()},y.centroid=function(w){return Nt(w,l(fp)),fp.result()},y.projection=function(w){return arguments.length?(l=w==null?(a=null,_h):(a=w).stream,y):a},y.context=function(w){return arguments.length?(h=w==null?(o=null,new bp):new pp(o=w),typeof g!="function"&&h.pointRadius(g),y):o},y.pointRadius=function(w){return arguments.length?(g=typeof w=="function"?w:(h.pointRadius(+w),+w),y):g},y.projection(a).context(o)}function h_(a){return{stream:Eh(a)}}function Eh(a){return function(o){var l=new hf;for(var h in a)l[h]=a[h];return l.stream=o,l}}function hf(){}function df(a,o,l){var h=a.clipExtent&&a.clipExtent();return a.scale(150).translate([0,0]),h!=null&&a.clipExtent(null),Nt(l,a.stream(b0)),o(b0.result()),h!=null&&a.clipExtent(h),a}function k0(a,o,l){return df(a,function(h){var g=o[1][0]-o[0][0],y=o[1][1]-o[0][1],w=Math.min(g/(h[1][0]-h[0][0]),y/(h[1][1]-h[0][1])),k=+o[0][0]+(g-w*(h[1][0]+h[0][0]))/2,S=+o[0][1]+(y-w*(h[1][1]+h[0][1]))/2;a.scale(150*w).translate([k,S])},l)}function ff(a,o,l){return k0(a,[[0,0],o],l)}function pf(a,o,l){return df(a,function(h){var g=+o,y=g/(h[1][0]-h[0][0]),w=(g-y*(h[1][0]+h[0][0]))/2,k=-y*h[0][1];a.scale(150*y).translate([w,k])},l)}function gf(a,o,l){return df(a,function(h){var g=+o,y=g/(h[1][1]-h[0][1]),w=-y*h[0][0],k=(g-y*(h[1][1]+h[0][1]))/2;a.scale(150*y).translate([w,k])},l)}bp.prototype={_radius:4.5,_circle:vp(4.5),pointRadius:function(a){return(a=+a)!==this._radius&&(this._radius=a,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(a,o){switch(this._point){case 0:this._string.push("M",a,",",o),this._point=1;break;case 1:this._string.push("L",a,",",o);break;default:this._circle==null&&(this._circle=vp(this._radius)),this._string.push("M",a,",",o,this._circle)}},result:function(){if(this._string.length){var a=this._string.join("");return this._string=[],a}return null}},hf.prototype={constructor:hf,point:function(a,o){this.stream.point(a,o)},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 d_=Or(30*wr);function xp(a,o){return+o?function(l,h){function g(y,w,k,S,I,B,$,P,H,at,V,Z,K,gt){var ht=$-y,dt=P-w,xt=ht*ht+dt*dt;if(xt>4*h&&K--){var Et=S+at,re=I+V,_e=B+Z,Zt=D(Et*Et+re*re+_e*_e),$t=X(_e/=Zt),Ht=yn(yn(_e)-1)<Jr||yn(k-H)<Jr?(k+H)/2:Mn(re,Et),Wt=l(Ht,$t),Tt=Wt[0],Pt=Wt[1],Kt=Tt-y,se=Pt-w,Ce=dt*Kt-ht*se;(Ce*Ce/xt>h||yn((ht*Kt+dt*se)/xt-.5)>.3||S*at+I*V+B*Z<d_)&&(g(y,w,k,S,I,B,Tt,Pt,Ht,Et/=Zt,re/=Zt,_e,K,gt),gt.point(Tt,Pt),g(Tt,Pt,Ht,Et,re,_e,$,P,H,at,V,Z,K,gt))}}return function(y){var w,k,S,I,B,$,P,H,at,V,Z,K,gt={point:ht,lineStart:dt,lineEnd:Et,polygonStart:function(){y.polygonStart(),gt.lineStart=re},polygonEnd:function(){y.polygonEnd(),gt.lineStart=dt}};function ht($t,Ht){$t=l($t,Ht),y.point($t[0],$t[1])}function dt(){H=NaN,gt.point=xt,y.lineStart()}function xt($t,Ht){var Wt=pn([$t,Ht]),Tt=l($t,Ht);g(H,at,P,V,Z,K,H=Tt[0],at=Tt[1],P=$t,V=Wt[0],Z=Wt[1],K=Wt[2],16,y),y.point(H,at)}function Et(){gt.point=ht,y.lineEnd()}function re(){dt(),gt.point=_e,gt.lineEnd=Zt}function _e($t,Ht){xt(w=$t,Ht),k=H,S=at,I=V,B=Z,$=K,gt.point=xt}function Zt(){g(H,at,P,V,Z,K,k,S,w,I,B,$,16,y),gt.lineEnd=Et,Et()}return gt}}(a,o):function(l){return Eh({point:function(h,g){h=l(h,g),this.stream.point(h[0],h[1])}})}(a)}var f_=Eh({point:function(a,o){this.stream.point(a*wr,o*wr)}});function wp(a,o,l,h,g,y){if(!y)return function(V,Z,K,gt,ht){function dt(xt,Et){return[Z+V*(xt*=gt),K-V*(Et*=ht)]}return dt.invert=function(xt,Et){return[(xt-Z)/V*gt,(K-Et)/V*ht]},dt}(a,o,l,h,g);var w=Or(y),k=N(y),S=w*a,I=k*a,B=w/a,$=k/a,P=(k*l-w*o)/a,H=(k*o+w*l)/a;function at(V,Z){return[S*(V*=h)-I*(Z*=g)+o,l-I*V-S*Z]}return at.invert=function(V,Z){return[h*(B*V-$*Z+P),g*(H-$*V-B*Z)]},at}function ns(a){return yf(function(){return a})()}function yf(a){var o,l,h,g,y,w,k,S,I,B,$=150,P=480,H=250,at=0,V=0,Z=0,K=0,gt=0,ht=0,dt=1,xt=1,Et=null,re=Xd,_e=null,Zt=_h,$t=.5;function Ht(Kt){return S(Kt[0]*wr,Kt[1]*wr)}function Wt(Kt){return(Kt=S.invert(Kt[0],Kt[1]))&&[Kt[0]*Un,Kt[1]*Un]}function Tt(){var Kt=wp($,0,0,dt,xt,ht).apply(null,o(at,V)),se=wp($,P-Kt[0],H-Kt[1],dt,xt,ht);return l=Vd(Z,K,gt),k=Wd(o,se),S=Wd(l,k),w=xp(k,$t),Pt()}function Pt(){return I=B=null,Ht}return Ht.stream=function(Kt){return I&&B===Kt?I:I=f_(function(se){return Eh({point:function(Ce,qe){var Ke=se(Ce,qe);return this.stream.point(Ke[0],Ke[1])}})}(l)(re(w(Zt(B=Kt)))))},Ht.preclip=function(Kt){return arguments.length?(re=Kt,Et=void 0,Pt()):re},Ht.postclip=function(Kt){return arguments.length?(Zt=Kt,_e=h=g=y=null,Pt()):Zt},Ht.clipAngle=function(Kt){return arguments.length?(re=+Kt?G2(Et=Kt*wr):(Et=null,Xd),Pt()):Et*Un},Ht.clipExtent=function(Kt){return arguments.length?(Zt=Kt==null?(_e=h=g=y=null,_h):p0(_e=+Kt[0][0],h=+Kt[0][1],g=+Kt[1][0],y=+Kt[1][1]),Pt()):_e==null?null:[[_e,h],[g,y]]},Ht.scale=function(Kt){return arguments.length?($=+Kt,Tt()):$},Ht.translate=function(Kt){return arguments.length?(P=+Kt[0],H=+Kt[1],Tt()):[P,H]},Ht.center=function(Kt){return arguments.length?(at=Kt[0]%360*wr,V=Kt[1]%360*wr,Tt()):[at*Un,V*Un]},Ht.rotate=function(Kt){return arguments.length?(Z=Kt[0]%360*wr,K=Kt[1]%360*wr,gt=Kt.length>2?Kt[2]%360*wr:0,Tt()):[Z*Un,K*Un,gt*Un]},Ht.angle=function(Kt){return arguments.length?(ht=Kt%360*wr,Tt()):ht*Un},Ht.reflectX=function(Kt){return arguments.length?(dt=Kt?-1:1,Tt()):dt<0},Ht.reflectY=function(Kt){return arguments.length?(xt=Kt?-1:1,Tt()):xt<0},Ht.precision=function(Kt){return arguments.length?(w=xp(k,$t=Kt*Kt),Pt()):D($t)},Ht.fitExtent=function(Kt,se){return k0(Ht,Kt,se)},Ht.fitSize=function(Kt,se){return ff(Ht,Kt,se)},Ht.fitWidth=function(Kt,se){return pf(Ht,Kt,se)},Ht.fitHeight=function(Kt,se){return gf(Ht,Kt,se)},function(){return o=a.apply(this,arguments),Ht.invert=o.invert&&Wt,Tt()}}function mf(a){var o=0,l=nn/3,h=yf(a),g=h(o,l);return g.parallels=function(y){return arguments.length?h(o=y[0]*wr,l=y[1]*wr):[o*Un,l*Un]},g}function kp(a,o){var l=N(a),h=(l+N(o))/2;if(yn(h)<Jr)return function(k){var S=Or(k);function I(B,$){return[B*S,N($)/S]}return I.invert=function(B,$){return[B/S,X($*S)]},I}(a);var g=1+l*(2*h-l),y=D(g)/h;function w(k,S){var I=D(g-2*h*N(S))/h;return[I*N(k*=h),y-I*Or(k)]}return w.invert=function(k,S){var I=y-S,B=Mn(k,yn(I))*M(I);return I*h<0&&(B-=nn*M(k)*M(I)),[B/h,X((g-(k*k+I*I)*h*h)/(2*h))]},w}function E0(){return mf(kp).scale(155.424).center([0,33.6442])}function Ep(){return E0().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function p_(){var a,o,l,h,g,y,w=Ep(),k=E0().rotate([154,0]).center([-2,58.5]).parallels([55,65]),S=E0().rotate([157,0]).center([-3,19.9]).parallels([8,18]),I={point:function(P,H){y=[P,H]}};function B(P){var H=P[0],at=P[1];return y=null,l.point(H,at),y||(h.point(H,at),y)||(g.point(H,at),y)}function $(){return a=o=null,B}return B.invert=function(P){var H=w.scale(),at=w.translate(),V=(P[0]-at[0])/H,Z=(P[1]-at[1])/H;return(Z>=.12&&Z<.234&&V>=-.425&&V<-.214?k:Z>=.166&&Z<.234&&V>=-.214&&V<-.115?S:w).invert(P)},B.stream=function(P){return a&&o===P?a:(H=[w.stream(o=P),k.stream(P),S.stream(P)],at=H.length,a={point:function(V,Z){for(var K=-1;++K<at;)H[K].point(V,Z)},sphere:function(){for(var V=-1;++V<at;)H[V].sphere()},lineStart:function(){for(var V=-1;++V<at;)H[V].lineStart()},lineEnd:function(){for(var V=-1;++V<at;)H[V].lineEnd()},polygonStart:function(){for(var V=-1;++V<at;)H[V].polygonStart()},polygonEnd:function(){for(var V=-1;++V<at;)H[V].polygonEnd()}});var H,at},B.precision=function(P){return arguments.length?(w.precision(P),k.precision(P),S.precision(P),$()):w.precision()},B.scale=function(P){return arguments.length?(w.scale(P),k.scale(.35*P),S.scale(P),B.translate(w.translate())):w.scale()},B.translate=function(P){if(!arguments.length)return w.translate();var H=w.scale(),at=+P[0],V=+P[1];return l=w.translate(P).clipExtent([[at-.455*H,V-.238*H],[at+.455*H,V+.238*H]]).stream(I),h=k.translate([at-.307*H,V+.201*H]).clipExtent([[at-.425*H+Jr,V+.12*H+Jr],[at-.214*H-Jr,V+.234*H-Jr]]).stream(I),g=S.translate([at-.205*H,V+.212*H]).clipExtent([[at-.214*H+Jr,V+.166*H+Jr],[at-.115*H-Jr,V+.234*H-Jr]]).stream(I),$()},B.fitExtent=function(P,H){return k0(B,P,H)},B.fitSize=function(P,H){return ff(B,P,H)},B.fitWidth=function(P,H){return pf(B,P,H)},B.fitHeight=function(P,H){return gf(B,P,H)},B.scale(1070)}function Tp(a){return function(o,l){var h=Or(o),g=Or(l),y=a(h*g);return y===1/0?[2,0]:[y*g*N(o),y*N(l)]}}function Th(a){return function(o,l){var h=D(o*o+l*l),g=a(h),y=N(g),w=Or(g);return[Mn(o*y,h*w),X(h&&l*y/h)]}}var _f=Tp(function(a){return D(2/(1+a))});function g_(){return ns(_f).scale(124.75).clipAngle(179.999)}_f.invert=Th(function(a){return 2*X(a/2)});var bf=Tp(function(a){return(a=j(a))&&a/N(a)});function y_(){return ns(bf).scale(79.4188).clipAngle(179.999)}function Sh(a,o){return[a,E(z((ti+o)/2))]}function m_(){return Sp(Sh).scale(961/Ki)}function Sp(a){var o,l,h,g=ns(a),y=g.center,w=g.scale,k=g.translate,S=g.clipExtent,I=null;function B(){var $=nn*w(),P=g(z2(g.rotate()).invert([0,0]));return S(I==null?[[P[0]-$,P[1]-$],[P[0]+$,P[1]+$]]:a===Sh?[[Math.max(P[0]-$,I),o],[Math.min(P[0]+$,l),h]]:[[I,Math.max(P[1]-$,o)],[l,Math.min(P[1]+$,h)]])}return g.scale=function($){return arguments.length?(w($),B()):w()},g.translate=function($){return arguments.length?(k($),B()):k()},g.center=function($){return arguments.length?(y($),B()):y()},g.clipExtent=function($){return arguments.length?($==null?I=o=l=h=null:(I=+$[0][0],o=+$[0][1],l=+$[1][0],h=+$[1][1]),B()):I==null?null:[[I,o],[l,h]]},B()}function T0(a){return z((ti+a)/2)}function Ap(a,o){var l=Or(a),h=a===o?N(a):E(l/Or(o))/E(T0(o)/T0(a)),g=l*C(T0(a),h)/h;if(!h)return Sh;function y(w,k){g>0?k<-ti+Jr&&(k=-ti+Jr):k>ti-Jr&&(k=ti-Jr);var S=g/C(T0(k),h);return[S*N(h*w),g-S*Or(h*w)]}return y.invert=function(w,k){var S=g-k,I=M(h)*D(w*w+S*S),B=Mn(w,yn(S))*M(S);return S*h<0&&(B-=nn*M(w)*M(S)),[B/h,2*Ss(C(g/I,1/h))-ti]},y}function __(){return mf(Ap).scale(109.5).parallels([30,30])}function Ah(a,o){return[a,o]}function b_(){return ns(Ah).scale(152.63)}function Cp(a,o){var l=Or(a),h=a===o?N(a):(l-Or(o))/(o-a),g=l/h+a;if(yn(h)<Jr)return Ah;function y(w,k){var S=g-k,I=h*w;return[S*N(I),g-S*Or(I)]}return y.invert=function(w,k){var S=g-k,I=Mn(w,yn(S))*M(S);return S*h<0&&(I-=nn*M(w)*M(S)),[I/h,g-M(h)*D(w*w+S*S)]},y}function v_(){return mf(Cp).scale(131.154).center([0,13.9389])}bf.invert=Th(function(a){return a}),Sh.invert=function(a,o){return[a,2*Ss(s(o))-ti]},Ah.invert=Ah;var Ch=1.340264,Ih=-.081106,Nh=893e-6,Lh=.003796,S0=D(3)/2;function vf(a,o){var l=X(S0*N(o)),h=l*l,g=h*h*h;return[a*Or(l)/(S0*(Ch+3*Ih*h+g*(7*Nh+9*Lh*h))),l*(Ch+Ih*h+g*(Nh+Lh*h))]}function x_(){return ns(vf).scale(177.158)}function xf(a,o){var l=Or(o),h=Or(a)*l;return[l*N(a)/h,N(o)/h]}function w_(){return ns(xf).scale(144.049).clipAngle(60)}function k_(){var a,o,l,h,g,y,w,k=1,S=0,I=0,B=1,$=1,P=0,H=null,at=1,V=1,Z=Eh({point:function(dt,xt){var Et=ht([dt,xt]);this.stream.point(Et[0],Et[1])}}),K=_h;function gt(){return at=k*B,V=k*$,y=w=null,ht}function ht(dt){var xt=dt[0]*at,Et=dt[1]*V;if(P){var re=Et*a-xt*o;xt=xt*a+Et*o,Et=re}return[xt+S,Et+I]}return ht.invert=function(dt){var xt=dt[0]-S,Et=dt[1]-I;if(P){var re=Et*a+xt*o;xt=xt*a-Et*o,Et=re}return[xt/at,Et/V]},ht.stream=function(dt){return y&&w===dt?y:y=Z(K(w=dt))},ht.postclip=function(dt){return arguments.length?(K=dt,H=l=h=g=null,gt()):K},ht.clipExtent=function(dt){return arguments.length?(K=dt==null?(H=l=h=g=null,_h):p0(H=+dt[0][0],l=+dt[0][1],h=+dt[1][0],g=+dt[1][1]),gt()):H==null?null:[[H,l],[h,g]]},ht.scale=function(dt){return arguments.length?(k=+dt,gt()):k},ht.translate=function(dt){return arguments.length?(S=+dt[0],I=+dt[1],gt()):[S,I]},ht.angle=function(dt){return arguments.length?(o=N(P=dt%360*wr),a=Or(P),gt()):P*Un},ht.reflectX=function(dt){return arguments.length?(B=dt?-1:1,gt()):B<0},ht.reflectY=function(dt){return arguments.length?($=dt?-1:1,gt()):$<0},ht.fitExtent=function(dt,xt){return k0(ht,dt,xt)},ht.fitSize=function(dt,xt){return ff(ht,dt,xt)},ht.fitWidth=function(dt,xt){return pf(ht,dt,xt)},ht.fitHeight=function(dt,xt){return gf(ht,dt,xt)},ht}function wf(a,o){var l=o*o,h=l*l;return[a*(.8707-.131979*l+h*(h*(.003971*l-.001529*h)-.013791)),o*(1.007226+l*(.015085+h*(.028874*l-.044475-.005916*h)))]}function E_(){return ns(wf).scale(175.295)}function kf(a,o){return[Or(o)*N(a),N(o)]}function T_(){return ns(kf).scale(249.5).clipAngle(90.000001)}function Ef(a,o){var l=Or(o),h=1+Or(a)*l;return[l*N(a)/h,N(o)/h]}function S_(){return ns(Ef).scale(250).clipAngle(142)}function Tf(a,o){return[E(z((ti+o)/2)),-a]}function A_(){var a=Sp(Tf),o=a.center,l=a.rotate;return a.center=function(h){return arguments.length?o([-h[1],h[0]]):[(h=o())[1],-h[0]]},a.rotate=function(h){return arguments.length?l([h[0],h[1],h.length>2?h[2]+90:90]):[(h=l())[0],h[1],h[2]-90]},l([0,0,90]).scale(159.155)}function C_(a,o){return a.parent===o.parent?1:2}function I_(a,o){return a+o.x}function N_(a,o){return Math.max(a,o.y)}function L_(){var a=C_,o=1,l=1,h=!1;function g(y){var w,k=0;y.eachAfter(function(P){var H=P.children;H?(P.x=function(at){return at.reduce(I_,0)/at.length}(H),P.y=function(at){return 1+at.reduce(N_,0)}(H)):(P.x=w?k+=a(P,w):0,P.y=0,w=P)});var S=function(P){for(var H;H=P.children;)P=H[0];return P}(y),I=function(P){for(var H;H=P.children;)P=H[H.length-1];return P}(y),B=S.x-a(S,I)/2,$=I.x+a(I,S)/2;return y.eachAfter(h?function(P){P.x=(P.x-y.x)*o,P.y=(y.y-P.y)*l}:function(P){P.x=(P.x-B)/($-B)*o,P.y=(1-(y.y?P.y/y.y:1))*l})}return g.separation=function(y){return arguments.length?(a=y,g):a},g.size=function(y){return arguments.length?(h=!1,o=+y[0],l=+y[1],g):h?null:[o,l]},g.nodeSize=function(y){return arguments.length?(h=!0,o=+y[0],l=+y[1],g):h?[o,l]:null},g}function M_(a){var o=0,l=a.children,h=l&&l.length;if(h)for(;--h>=0;)o+=l[h].value;else o=1;a.value=o}function Sf(a,o){a instanceof Map?(a=[void 0,a],o===void 0&&(o=D_)):o===void 0&&(o=O_);for(var l,h,g,y,w,k=new Gc(a),S=[k];l=S.pop();)if((g=o(l.data))&&(w=(g=Array.from(g)).length))for(l.children=g,y=w-1;y>=0;--y)S.push(h=g[y]=new Gc(g[y])),h.parent=l,h.depth=l.depth+1;return k.eachBefore(Ip)}function O_(a){return a.children}function D_(a){return Array.isArray(a)?a[1]:null}function R_(a){a.data.value!==void 0&&(a.value=a.data.value),a.data=a.data.data}function Ip(a){var o=0;do a.height=o;while((a=a.parent)&&a.height<++o)}function Gc(a){this.data=a,this.depth=this.height=0,this.parent=null}function Np(a){for(var o,l,h=0,g=(a=function(w){for(var k,S,I=w.length;I;)S=Math.random()*I--|0,k=w[I],w[I]=w[S],w[S]=k;return w}(Array.from(a))).length,y=[];h<g;)o=a[h],l&&Lp(l,o)?++h:(l=F_(y=B_(y,o)),h=0);return l}function B_(a,o){var l,h;if(Af(o,a))return[o];for(l=0;l<a.length;++l)if(A0(o,a[l])&&Af(Mh(a[l],o),a))return[a[l],o];for(l=0;l<a.length-1;++l)for(h=l+1;h<a.length;++h)if(A0(Mh(a[l],a[h]),o)&&A0(Mh(a[l],o),a[h])&&A0(Mh(a[h],o),a[l])&&Af(Mp(a[l],a[h],o),a))return[a[l],a[h],o];throw new Error}function A0(a,o){var l=a.r-o.r,h=o.x-a.x,g=o.y-a.y;return l<0||l*l<h*h+g*g}function Lp(a,o){var l=a.r-o.r+1e-9*Math.max(a.r,o.r,1),h=o.x-a.x,g=o.y-a.y;return l>0&&l*l>h*h+g*g}function Af(a,o){for(var l=0;l<o.length;++l)if(!Lp(a,o[l]))return!1;return!0}function F_(a){switch(a.length){case 1:return{x:(o=a[0]).x,y:o.y,r:o.r};case 2:return Mh(a[0],a[1]);case 3:return Mp(a[0],a[1],a[2])}var o}function Mh(a,o){var l=a.x,h=a.y,g=a.r,y=o.x,w=o.y,k=o.r,S=y-l,I=w-h,B=k-g,$=Math.sqrt(S*S+I*I);return{x:(l+y+S/$*B)/2,y:(h+w+I/$*B)/2,r:($+g+k)/2}}function Mp(a,o,l){var h=a.x,g=a.y,y=a.r,w=o.x,k=o.y,S=o.r,I=l.x,B=l.y,$=l.r,P=h-w,H=h-I,at=g-k,V=g-B,Z=S-y,K=$-y,gt=h*h+g*g-y*y,ht=gt-w*w-k*k+S*S,dt=gt-I*I-B*B+$*$,xt=H*at-P*V,Et=(at*dt-V*ht)/(2*xt)-h,re=(V*Z-at*K)/xt,_e=(H*ht-P*dt)/(2*xt)-g,Zt=(P*K-H*Z)/xt,$t=re*re+Zt*Zt-1,Ht=2*(y+Et*re+_e*Zt),Wt=Et*Et+_e*_e-y*y,Tt=-($t?(Ht+Math.sqrt(Ht*Ht-4*$t*Wt))/(2*$t):Wt/Ht);return{x:h+Et+re*Tt,y:g+_e+Zt*Tt,r:Tt}}function Op(a,o,l){var h,g,y,w,k=a.x-o.x,S=a.y-o.y,I=k*k+S*S;I?(g=o.r+l.r,g*=g,w=a.r+l.r,g>(w*=w)?(h=(I+w-g)/(2*I),y=Math.sqrt(Math.max(0,w/I-h*h)),l.x=a.x-h*k-y*S,l.y=a.y-h*S+y*k):(h=(I+g-w)/(2*I),y=Math.sqrt(Math.max(0,g/I-h*h)),l.x=o.x+h*k-y*S,l.y=o.y+h*S+y*k)):(l.x=o.x+l.r,l.y=o.y)}function Dp(a,o){var l=a.r+o.r-1e-6,h=o.x-a.x,g=o.y-a.y;return l>0&&l*l>h*h+g*g}function Rp(a){var o=a._,l=a.next._,h=o.r+l.r,g=(o.x*l.r+l.x*o.r)/h,y=(o.y*l.r+l.y*o.r)/h;return g*g+y*y}function C0(a){this._=a,this.next=null,this.previous=null}function Bp(a){if(!(y=(o=a,a=typeof o=="object"&&"length"in o?o:Array.from(o)).length))return 0;var o,l,h,g,y,w,k,S,I,B,$,P;if((l=a[0]).x=0,l.y=0,!(y>1))return l.r;if(h=a[1],l.x=-h.r,h.x=l.r,h.y=0,!(y>2))return l.r+h.r;Op(h,l,g=a[2]),l=new C0(l),h=new C0(h),g=new C0(g),l.next=g.previous=h,h.next=l.previous=g,g.next=h.previous=l;t:for(S=3;S<y;++S){Op(l._,h._,g=a[S]),g=new C0(g),I=h.next,B=l.previous,$=h._.r,P=l._.r;do if($<=P){if(Dp(I._,g._)){h=I,l.next=h,h.previous=l,--S;continue t}$+=I._.r,I=I.next}else{if(Dp(B._,g._)){(l=B).next=h,h.previous=l,--S;continue t}P+=B._.r,B=B.previous}while(I!==B.next);for(g.previous=l,g.next=h,l.next=h.previous=h=g,w=Rp(l);(g=g.next)!==h;)(k=Rp(g))<w&&(l=g,w=k);h=l.next}for(l=[h._],g=h;(g=g.next)!==h;)l.push(g._);for(g=Np(l),S=0;S<y;++S)(l=a[S]).x-=g.x,l.y-=g.y;return g.r}function P_(a){return Bp(a),a}function I0(a){return a==null?null:Fp(a)}function Fp(a){if(typeof a!="function")throw new Error;return a}function Vc(){return 0}function tu(a){return function(){return a}}function z_(a){return Math.sqrt(a.value)}function U_(){var a=null,o=1,l=1,h=Vc;function g(y){return y.x=o/2,y.y=l/2,a?y.eachBefore(Pp(a)).eachAfter(Cf(h,.5)).eachBefore(zp(1)):y.eachBefore(Pp(z_)).eachAfter(Cf(Vc,1)).eachAfter(Cf(h,y.r/Math.min(o,l))).eachBefore(zp(Math.min(o,l)/(2*y.r))),y}return g.radius=function(y){return arguments.length?(a=I0(y),g):a},g.size=function(y){return arguments.length?(o=+y[0],l=+y[1],g):[o,l]},g.padding=function(y){return arguments.length?(h=typeof y=="function"?y:tu(+y),g):h},g}function Pp(a){return function(o){o.children||(o.r=Math.max(0,+a(o)||0))}}function Cf(a,o){return function(l){if(h=l.children){var h,g,y,w=h.length,k=a(l)*o||0;if(k)for(g=0;g<w;++g)h[g].r+=k;if(y=Bp(h),k)for(g=0;g<w;++g)h[g].r-=k;l.r=y+k}}}function zp(a){return function(o){var l=o.parent;o.r*=a,l&&(o.x=l.x+a*o.x,o.y=l.y+a*o.y)}}function Up(a){a.x0=Math.round(a.x0),a.y0=Math.round(a.y0),a.x1=Math.round(a.x1),a.y1=Math.round(a.y1)}function Oh(a,o,l,h,g){for(var y,w=a.children,k=-1,S=w.length,I=a.value&&(h-o)/a.value;++k<S;)(y=w[k]).y0=l,y.y1=g,y.x0=o,y.x1=o+=y.value*I}function Y_(){var a=1,o=1,l=0,h=!1;function g(y){var w=y.height+1;return y.x0=y.y0=l,y.x1=a,y.y1=o/w,y.eachBefore(function(k,S){return function(I){I.children&&Oh(I,I.x0,k*(I.depth+1)/S,I.x1,k*(I.depth+2)/S);var B=I.x0,$=I.y0,P=I.x1-l,H=I.y1-l;P<B&&(B=P=(B+P)/2),H<$&&($=H=($+H)/2),I.x0=B,I.y0=$,I.x1=P,I.y1=H}}(o,w)),h&&y.eachBefore(Up),y}return g.round=function(y){return arguments.length?(h=!!y,g):h},g.size=function(y){return arguments.length?(a=+y[0],o=+y[1],g):[a,o]},g.padding=function(y){return arguments.length?(l=+y,g):l},g}vf.invert=function(a,o){for(var l,h=o,g=h*h,y=g*g*g,w=0;w<12&&(y=(g=(h-=l=(h*(Ch+Ih*g+y*(Nh+Lh*g))-o)/(Ch+3*Ih*g+y*(7*Nh+9*Lh*g)))*h)*g*g,!(yn(l)<rc));++w);return[S0*a*(Ch+3*Ih*g+y*(7*Nh+9*Lh*g))/Or(h),X(N(h)/S0)]},xf.invert=Th(Ss),wf.invert=function(a,o){var l,h=o,g=25;do{var y=h*h,w=y*y;h-=l=(h*(1.007226+y*(.015085+w*(.028874*y-.044475-.005916*w)))-o)/(1.007226+y*(.045255+w*(.259866*y-.311325-.005916*11*w)))}while(yn(l)>Jr&&--g>0);return[a/(.8707+(y=h*h)*(y*(y*y*y*(.003971-.001529*y)-.013791)-.131979)),h]},kf.invert=Th(X),Ef.invert=Th(function(a){return 2*Ss(a)}),Tf.invert=function(a,o){return[-o,2*Ss(s(a))-ti]},Gc.prototype=Sf.prototype={constructor:Gc,count:function(){return this.eachAfter(M_)},each:function(a,o){let l=-1;for(const h of this)a.call(o,h,++l,this);return this},eachAfter:function(a,o){for(var l,h,g,y=this,w=[y],k=[],S=-1;y=w.pop();)if(k.push(y),l=y.children)for(h=0,g=l.length;h<g;++h)w.push(l[h]);for(;y=k.pop();)a.call(o,y,++S,this);return this},eachBefore:function(a,o){for(var l,h,g=this,y=[g],w=-1;g=y.pop();)if(a.call(o,g,++w,this),l=g.children)for(h=l.length-1;h>=0;--h)y.push(l[h]);return this},find:function(a,o){let l=-1;for(const h of this)if(a.call(o,h,++l,this))return h},sum:function(a){return this.eachAfter(function(o){for(var l=+a(o.data)||0,h=o.children,g=h&&h.length;--g>=0;)l+=h[g].value;o.value=l})},sort:function(a){return this.eachBefore(function(o){o.children&&o.children.sort(a)})},path:function(a){for(var o=this,l=function(y,w){if(y===w)return y;var k=y.ancestors(),S=w.ancestors(),I=null;for(y=k.pop(),w=S.pop();y===w;)I=y,y=k.pop(),w=S.pop();return I}(o,a),h=[o];o!==l;)o=o.parent,h.push(o);for(var g=h.length;a!==l;)h.splice(g,0,a),a=a.parent;return h},ancestors:function(){for(var a=this,o=[a];a=a.parent;)o.push(a);return o},descendants:function(){return Array.from(this)},leaves:function(){var a=[];return this.eachBefore(function(o){o.children||a.push(o)}),a},links:function(){var a=this,o=[];return a.each(function(l){l!==a&&o.push({source:l.parent,target:l})}),o},copy:function(){return Sf(this).eachBefore(R_)},[Symbol.iterator]:function*(){var a,o,l,h,g=this,y=[g];do for(a=y.reverse(),y=[];g=a.pop();)if(yield g,o=g.children)for(l=0,h=o.length;l<h;++l)y.push(o[l]);while(y.length)}};var j_={depth:-1},Yp={},If={};function $_(a){return a.id}function H_(a){return a.parentId}function q_(){var a,o=$_,l=H_;function h(g){var y,w,k,S,I,B,$,P,H=Array.from(g),at=o,V=l,Z=new Map;if(a!=null){const K=H.map((dt,xt)=>function(Et){let re=(Et=`${Et}`).length;return Nf(Et,re-1)&&!Nf(Et,re-2)&&(Et=Et.slice(0,-1)),Et[0]==="/"?Et:`/${Et}`}(a(dt,xt,g))),gt=K.map(jp),ht=new Set(K).add("");for(const dt of gt)ht.has(dt)||(ht.add(dt),K.push(dt),gt.push(jp(dt)),H.push(If));at=(dt,xt)=>K[xt],V=(dt,xt)=>gt[xt]}for(k=0,y=H.length;k<y;++k)w=H[k],B=H[k]=new Gc(w),($=at(w,k,g))!=null&&($+="")&&(P=B.id=$,Z.set(P,Z.has(P)?Yp:B)),($=V(w,k,g))!=null&&($+="")&&(B.parent=$);for(k=0;k<y;++k)if($=(B=H[k]).parent){if(!(I=Z.get($)))throw new Error("missing: "+$);if(I===Yp)throw new Error("ambiguous: "+$);I.children?I.children.push(B):I.children=[B],B.parent=I}else{if(S)throw new Error("multiple roots");S=B}if(!S)throw new Error("no root");if(a!=null){for(;S.data===If&&S.children.length===1;)S=S.children[0],--y;for(let K=H.length-1;K>=0&&(B=H[K],B.data===If);--K)B.data=null}if(S.parent=j_,S.eachBefore(function(K){K.depth=K.parent.depth+1,--y}).eachBefore(Ip),S.parent=null,y>0)throw new Error("cycle");return S}return h.id=function(g){return arguments.length?(o=I0(g),h):o},h.parentId=function(g){return arguments.length?(l=I0(g),h):l},h.path=function(g){return arguments.length?(a=I0(g),h):a},h}function jp(a){let o=a.length;if(o<2)return"";for(;--o>1&&!Nf(a,o););return a.slice(0,o)}function Nf(a,o){if(a[o]==="/"){let l=0;for(;o>0&&a[--o]==="\\";)++l;if((1&l)==0)return!0}return!1}function W_(a,o){return a.parent===o.parent?1:2}function Lf(a){var o=a.children;return o?o[0]:a.t}function Mf(a){var o=a.children;return o?o[o.length-1]:a.t}function G_(a,o,l){var h=l/(o.i-a.i);o.c-=h,o.s+=l,a.c+=h,o.z+=l,o.m+=l}function V_(a,o,l){return a.a.parent===o.parent?a.a:l}function N0(a,o){this._=a,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=o}function Z_(){var a=W_,o=1,l=1,h=null;function g(S){var I=function(K){for(var gt,ht,dt,xt,Et,re=new N0(K,0),_e=[re];gt=_e.pop();)if(dt=gt._.children)for(gt.children=new Array(Et=dt.length),xt=Et-1;xt>=0;--xt)_e.push(ht=gt.children[xt]=new N0(dt[xt],xt)),ht.parent=gt;return(re.parent=new N0(null,0)).children=[re],re}(S);if(I.eachAfter(y),I.parent.m=-I.z,I.eachBefore(w),h)S.eachBefore(k);else{var B=S,$=S,P=S;S.eachBefore(function(K){K.x<B.x&&(B=K),K.x>$.x&&($=K),K.depth>P.depth&&(P=K)});var H=B===$?1:a(B,$)/2,at=H-B.x,V=o/($.x+H+at),Z=l/(P.depth||1);S.eachBefore(function(K){K.x=(K.x+at)*V,K.y=K.depth*Z})}return S}function y(S){var I=S.children,B=S.parent.children,$=S.i?B[S.i-1]:null;if(I){(function(H){for(var at,V=0,Z=0,K=H.children,gt=K.length;--gt>=0;)(at=K[gt]).z+=V,at.m+=V,V+=at.s+(Z+=at.c)})(S);var P=(I[0].z+I[I.length-1].z)/2;$?(S.z=$.z+a(S._,$._),S.m=S.z-P):S.z=P}else $&&(S.z=$.z+a(S._,$._));S.parent.A=function(H,at,V){if(at){for(var Z,K=H,gt=H,ht=at,dt=K.parent.children[0],xt=K.m,Et=gt.m,re=ht.m,_e=dt.m;ht=Mf(ht),K=Lf(K),ht&&K;)dt=Lf(dt),(gt=Mf(gt)).a=H,(Z=ht.z+re-K.z-xt+a(ht._,K._))>0&&(G_(V_(ht,H,V),H,Z),xt+=Z,Et+=Z),re+=ht.m,xt+=K.m,_e+=dt.m,Et+=gt.m;ht&&!Mf(gt)&&(gt.t=ht,gt.m+=re-Et),K&&!Lf(dt)&&(dt.t=K,dt.m+=xt-_e,V=H)}return V}(S,$,S.parent.A||B[0])}function w(S){S._.x=S.z+S.parent.m,S.m+=S.parent.m}function k(S){S.x*=o,S.y=S.depth*l}return g.separation=function(S){return arguments.length?(a=S,g):a},g.size=function(S){return arguments.length?(h=!1,o=+S[0],l=+S[1],g):h?null:[o,l]},g.nodeSize=function(S){return arguments.length?(h=!0,o=+S[0],l=+S[1],g):h?[o,l]:null},g}function L0(a,o,l,h,g){for(var y,w=a.children,k=-1,S=w.length,I=a.value&&(g-l)/a.value;++k<S;)(y=w[k]).x0=o,y.x1=h,y.y0=l,y.y1=l+=y.value*I}N0.prototype=Object.create(Gc.prototype);var $p=(1+Math.sqrt(5))/2;function Hp(a,o,l,h,g,y){for(var w,k,S,I,B,$,P,H,at,V,Z,K=[],gt=o.children,ht=0,dt=0,xt=gt.length,Et=o.value;ht<xt;){S=g-l,I=y-h;do B=gt[dt++].value;while(!B&&dt<xt);for($=P=B,Z=B*B*(V=Math.max(I/S,S/I)/(Et*a)),at=Math.max(P/Z,Z/$);dt<xt;++dt){if(B+=k=gt[dt].value,k<$&&($=k),k>P&&(P=k),Z=B*B*V,(H=Math.max(P/Z,Z/$))>at){B-=k;break}at=H}K.push(w={value:B,dice:S<I,children:gt.slice(ht,dt)}),w.dice?Oh(w,l,h,g,Et?h+=I*B/Et:y):L0(w,l,h,Et?l+=S*B/Et:g,y),Et-=B,ht=dt}return K}const qp=function a(o){function l(h,g,y,w,k){Hp(o,h,g,y,w,k)}return l.ratio=function(h){return a((h=+h)>1?h:1)},l}($p);function X_(){var a=qp,o=!1,l=1,h=1,g=[0],y=Vc,w=Vc,k=Vc,S=Vc,I=Vc;function B(P){return P.x0=P.y0=0,P.x1=l,P.y1=h,P.eachBefore($),g=[0],o&&P.eachBefore(Up),P}function $(P){var H=g[P.depth],at=P.x0+H,V=P.y0+H,Z=P.x1-H,K=P.y1-H;Z<at&&(at=Z=(at+Z)/2),K<V&&(V=K=(V+K)/2),P.x0=at,P.y0=V,P.x1=Z,P.y1=K,P.children&&(H=g[P.depth+1]=y(P)/2,at+=I(P)-H,V+=w(P)-H,(Z-=k(P)-H)<at&&(at=Z=(at+Z)/2),(K-=S(P)-H)<V&&(V=K=(V+K)/2),a(P,at,V,Z,K))}return B.round=function(P){return arguments.length?(o=!!P,B):o},B.size=function(P){return arguments.length?(l=+P[0],h=+P[1],B):[l,h]},B.tile=function(P){return arguments.length?(a=Fp(P),B):a},B.padding=function(P){return arguments.length?B.paddingInner(P).paddingOuter(P):B.paddingInner()},B.paddingInner=function(P){return arguments.length?(y=typeof P=="function"?P:tu(+P),B):y},B.paddingOuter=function(P){return arguments.length?B.paddingTop(P).paddingRight(P).paddingBottom(P).paddingLeft(P):B.paddingTop()},B.paddingTop=function(P){return arguments.length?(w=typeof P=="function"?P:tu(+P),B):w},B.paddingRight=function(P){return arguments.length?(k=typeof P=="function"?P:tu(+P),B):k},B.paddingBottom=function(P){return arguments.length?(S=typeof P=="function"?P:tu(+P),B):S},B.paddingLeft=function(P){return arguments.length?(I=typeof P=="function"?P:tu(+P),B):I},B}function K_(a,o,l,h,g){var y,w,k=a.children,S=k.length,I=new Array(S+1);for(I[0]=w=y=0;y<S;++y)I[y+1]=w+=k[y].value;(function B($,P,H,at,V,Z,K){if($>=P-1){var gt=k[$];return gt.x0=at,gt.y0=V,gt.x1=Z,void(gt.y1=K)}for(var ht=I[$],dt=H/2+ht,xt=$+1,Et=P-1;xt<Et;){var re=xt+Et>>>1;I[re]<dt?xt=re+1:Et=re}dt-I[xt-1]<I[xt]-dt&&$+1<xt&&--xt;var _e=I[xt]-ht,Zt=H-_e;if(Z-at>K-V){var $t=H?(at*Zt+Z*_e)/H:Z;B($,xt,_e,at,V,$t,K),B(xt,P,Zt,$t,V,Z,K)}else{var Ht=H?(V*Zt+K*_e)/H:K;B($,xt,_e,at,V,Z,Ht),B(xt,P,Zt,at,Ht,Z,K)}})(0,S,a.value,o,l,h,g)}function J_(a,o,l,h,g){(1&a.depth?L0:Oh)(a,o,l,h,g)}const Q_=function a(o){function l(h,g,y,w,k){if((S=h._squarify)&&S.ratio===o)for(var S,I,B,$,P,H=-1,at=S.length,V=h.value;++H<at;){for(B=(I=S[H]).children,$=I.value=0,P=B.length;$<P;++$)I.value+=B[$].value;I.dice?Oh(I,g,y,w,V?y+=(k-y)*I.value/V:k):L0(I,g,y,V?g+=(w-g)*I.value/V:w,k),V-=I.value}else h._squarify=S=Hp(o,h,g,y,w,k),S.ratio=o}return l.ratio=function(h){return a((h=+h)>1?h:1)},l}($p);function t3(a){var o=a.length;return function(l){return a[Math.max(0,Math.min(o-1,Math.floor(l*o)))]}}function e3(a,o){var l=al(+a,+o);return function(h){var g=l(h);return g-360*Math.floor(g/360)}}function M0(a,o){return a=+a,o=+o,function(l){return Math.round(a*(1-l)+o*l)}}function Wp(a){return((a=Math.exp(a))+1/a)/2}const Gp=function a(o,l,h){function g(y,w){var k,S,I=y[0],B=y[1],$=y[2],P=w[0],H=w[1],at=w[2],V=P-I,Z=H-B,K=V*V+Z*Z;if(K<1e-12)S=Math.log(at/$)/o,k=function(re){return[I+re*V,B+re*Z,$*Math.exp(o*re*S)]};else{var gt=Math.sqrt(K),ht=(at*at-$*$+h*K)/(2*$*l*gt),dt=(at*at-$*$-h*K)/(2*at*l*gt),xt=Math.log(Math.sqrt(ht*ht+1)-ht),Et=Math.log(Math.sqrt(dt*dt+1)-dt);S=(Et-xt)/o,k=function(re){var _e,Zt=re*S,$t=Wp(xt),Ht=$/(l*gt)*($t*(_e=o*Zt+xt,((_e=Math.exp(2*_e))-1)/(_e+1))-function(Wt){return((Wt=Math.exp(Wt))-1/Wt)/2}(xt));return[I+Ht*V,B+Ht*Z,$*$t/Wp(o*Zt+xt)]}}return k.duration=1e3*S*o/Math.SQRT2,k}return g.rho=function(y){var w=Math.max(.001,+y),k=w*w;return a(w,k,k*k)},g}(Math.SQRT2,2,4);function Vp(a){return function(o,l){var h=a((o=Oo(o)).h,(l=Oo(l)).h),g=Ni(o.s,l.s),y=Ni(o.l,l.l),w=Ni(o.opacity,l.opacity);return function(k){return o.h=h(k),o.s=g(k),o.l=y(k),o.opacity=w(k),o+""}}}const r3=Vp(al);var n3=Vp(Ni);function i3(a,o){var l=Ni((a=Cl(a)).l,(o=Cl(o)).l),h=Ni(a.a,o.a),g=Ni(a.b,o.b),y=Ni(a.opacity,o.opacity);return function(w){return a.l=l(w),a.a=h(w),a.b=g(w),a.opacity=y(w),a+""}}function Zp(a){return function(o,l){var h=a((o=Fa(o)).h,(l=Fa(l)).h),g=Ni(o.c,l.c),y=Ni(o.l,l.l),w=Ni(o.opacity,l.opacity);return function(k){return o.h=h(k),o.c=g(k),o.l=y(k),o.opacity=w(k),o+""}}}const a3=Zp(al);var o3=Zp(Ni);function Xp(a){return function o(l){function h(g,y){var w=a((g=Tn(g)).h,(y=Tn(y)).h),k=Ni(g.s,y.s),S=Ni(g.l,y.l),I=Ni(g.opacity,y.opacity);return function(B){return g.h=w(B),g.s=k(B),g.l=S(Math.pow(B,l)),g.opacity=I(B),g+""}}return l=+l,h.gamma=o,h}(1)}const s3=Xp(al);var O0=Xp(Ni);function Kp(a,o){o===void 0&&(o=a,a=en);for(var l=0,h=o.length-1,g=o[0],y=new Array(h<0?0:h);l<h;)y[l]=a(g,g=o[++l]);return function(w){var k=Math.max(0,Math.min(h-1,Math.floor(w*=h)));return y[k](w-k)}}function c3(a,o){for(var l=new Array(o),h=0;h<o;++h)l[h]=a(h/(o-1));return l}function l3(a){for(var o,l=-1,h=a.length,g=a[h-1],y=0;++l<h;)o=g,g=a[l],y+=o[1]*g[0]-o[0]*g[1];return y/2}function u3(a){for(var o,l,h=-1,g=a.length,y=0,w=0,k=a[g-1],S=0;++h<g;)o=k,k=a[h],S+=l=o[0]*k[1]-k[0]*o[1],y+=(o[0]+k[0])*l,w+=(o[1]+k[1])*l;return[y/(S*=3),w/S]}function h3(a,o,l){return(o[0]-a[0])*(l[1]-a[1])-(o[1]-a[1])*(l[0]-a[0])}function d3(a,o){return a[0]-o[0]||a[1]-o[1]}function Jp(a){const o=a.length,l=[0,1];let h,g=2;for(h=2;h<o;++h){for(;g>1&&h3(a[l[g-2]],a[l[g-1]],a[h])<=0;)--g;l[g++]=h}return l.slice(0,g)}function f3(a){if((l=a.length)<3)return null;var o,l,h=new Array(l),g=new Array(l);for(o=0;o<l;++o)h[o]=[+a[o][0],+a[o][1],o];for(h.sort(d3),o=0;o<l;++o)g[o]=[h[o][0],-h[o][1]];var y=Jp(h),w=Jp(g),k=w[0]===y[0],S=w[w.length-1]===y[y.length-1],I=[];for(o=y.length-1;o>=0;--o)I.push(a[h[y[o]][2]]);for(o=+k;o<w.length-S;++o)I.push(a[h[w[o]][2]]);return I}function p3(a,o){for(var l,h,g=a.length,y=a[g-1],w=o[0],k=o[1],S=y[0],I=y[1],B=!1,$=0;$<g;++$)l=(y=a[$])[0],(h=y[1])>k!=I>k&&w<(S-l)*(k-h)/(I-h)+l&&(B=!B),S=l,I=h;return B}function g3(a){for(var o,l,h=-1,g=a.length,y=a[g-1],w=y[0],k=y[1],S=0;++h<g;)o=w,l=k,o-=w=(y=a[h])[0],l-=k=y[1],S+=Math.hypot(o,l);return S}const la=Math.random,y3=function a(o){function l(h,g){return h=h==null?0:+h,g=g==null?1:+g,arguments.length===1?(g=h,h=0):g-=h,function(){return o()*g+h}}return l.source=a,l}(la),m3=function a(o){function l(h,g){return arguments.length<2&&(g=h,h=0),h=Math.floor(h),g=Math.floor(g)-h,function(){return Math.floor(o()*g+h)}}return l.source=a,l}(la),Of=function a(o){function l(h,g){var y,w;return h=h==null?0:+h,g=g==null?1:+g,function(){var k;if(y!=null)k=y,y=null;else do y=2*o()-1,k=2*o()-1,w=y*y+k*k;while(!w||w>1);return h+g*k*Math.sqrt(-2*Math.log(w)/w)}}return l.source=a,l}(la),_3=function a(o){var l=Of.source(o);function h(){var g=l.apply(this,arguments);return function(){return Math.exp(g())}}return h.source=a,h}(la),Qp=function a(o){function l(h){return(h=+h)<=0?()=>0:function(){for(var g=0,y=h;y>1;--y)g+=o();return g+y*o()}}return l.source=a,l}(la),b3=function a(o){var l=Qp.source(o);function h(g){if((g=+g)==0)return o;var y=l(g);return function(){return y()/g}}return h.source=a,h}(la),v3=function a(o){function l(h){return function(){return-Math.log1p(-o())/h}}return l.source=a,l}(la),x3=function a(o){function l(h){if((h=+h)<0)throw new RangeError("invalid alpha");return h=1/-h,function(){return Math.pow(1-o(),h)}}return l.source=a,l}(la),w3=function a(o){function l(h){if((h=+h)<0||h>1)throw new RangeError("invalid p");return function(){return Math.floor(o()+h)}}return l.source=a,l}(la),tg=function a(o){function l(h){if((h=+h)<0||h>1)throw new RangeError("invalid p");return h===0?()=>1/0:h===1?()=>1:(h=Math.log1p(-h),function(){return 1+Math.floor(Math.log1p(-o())/h)})}return l.source=a,l}(la),Df=function a(o){var l=Of.source(o)();function h(g,y){if((g=+g)<0)throw new RangeError("invalid k");if(g===0)return()=>0;if(y=y==null?1:+y,g===1)return()=>-Math.log1p(-o())*y;var w=(g<1?g+1:g)-1/3,k=1/(3*Math.sqrt(w)),S=g<1?()=>Math.pow(o(),1/g):()=>1;return function(){do{do var I=l(),B=1+k*I;while(B<=0);B*=B*B;var $=1-o()}while($>=1-.0331*I*I*I*I&&Math.log($)>=.5*I*I+w*(1-B+Math.log(B)));return w*B*S()*y}}return h.source=a,h}(la),eg=function a(o){var l=Df.source(o);function h(g,y){var w=l(g),k=l(y);return function(){var S=w();return S===0?0:S/(S+k())}}return h.source=a,h}(la),rg=function a(o){var l=tg.source(o),h=eg.source(o);function g(y,w){return y=+y,(w=+w)>=1?()=>y:w<=0?()=>0:function(){for(var k=0,S=y,I=w;S*I>16&&S*(1-I)>16;){var B=Math.floor((S+1)*I),$=h(B,S-B+1)();$<=I?(k+=B,S-=B,I=(I-$)/(1-$)):(S=B-1,I/=$)}for(var P=I<.5,H=l(P?I:1-I),at=H(),V=0;at<=S;++V)at+=H();return k+(P?V:S-V)}}return g.source=a,g}(la),k3=function a(o){function l(h,g,y){var w;return(h=+h)==0?w=k=>-Math.log(k):(h=1/h,w=k=>Math.pow(k,h)),g=g==null?0:+g,y=y==null?1:+y,function(){return g+y*w(-Math.log1p(-o()))}}return l.source=a,l}(la),E3=function a(o){function l(h,g){return h=h==null?0:+h,g=g==null?1:+g,function(){return h+g*Math.tan(Math.PI*o())}}return l.source=a,l}(la),T3=function a(o){function l(h,g){return h=h==null?0:+h,g=g==null?1:+g,function(){var y=o();return h+g*Math.log(y/(1-y))}}return l.source=a,l}(la),S3=function a(o){var l=Df.source(o),h=rg.source(o);function g(y){return function(){for(var w=0,k=y;k>16;){var S=Math.floor(.875*k),I=l(S)();if(I>k)return w+h(S-1,k/I)();w+=S,k-=I}for(var B=-Math.log1p(-o()),$=0;B<=k;++$)B-=Math.log1p(-o());return w+$}}return g.source=a,g}(la),ng=1/4294967296;function A3(a=Math.random()){let o=0|(0<=a&&a<1?a/ng:Math.abs(a));return()=>(o=1664525*o+1013904223|0,ng*(o>>>0))}function co(a,o){switch(arguments.length){case 0:break;case 1:this.range(a);break;default:this.range(o).domain(a)}return this}function Cs(a,o){switch(arguments.length){case 0:break;case 1:typeof a=="function"?this.interpolator(a):this.range(a);break;default:this.domain(a),typeof o=="function"?this.interpolator(o):this.range(o)}return this}const Rf=Symbol("implicit");function Bf(){var a=new _t,o=[],l=[],h=Rf;function g(y){let w=a.get(y);if(w===void 0){if(h!==Rf)return h;a.set(y,w=o.push(y)-1)}return l[w%l.length]}return g.domain=function(y){if(!arguments.length)return o.slice();o=[],a=new _t;for(const w of y)a.has(w)||a.set(w,o.push(w)-1);return g},g.range=function(y){return arguments.length?(l=Array.from(y),g):l.slice()},g.unknown=function(y){return arguments.length?(h=y,g):h},g.copy=function(){return Bf(o,l).unknown(h)},co.apply(g,arguments),g}function Ff(){var a,o,l=Bf().unknown(void 0),h=l.domain,g=l.range,y=0,w=1,k=!1,S=0,I=0,B=.5;function $(){var P=h().length,H=w<y,at=H?w:y,V=H?y:w;a=(V-at)/Math.max(1,P-S+2*I),k&&(a=Math.floor(a)),at+=(V-at-a*(P-S))*B,o=a*(1-S),k&&(at=Math.round(at),o=Math.round(o));var Z=Le(P).map(function(K){return at+a*K});return g(H?Z.reverse():Z)}return delete l.unknown,l.domain=function(P){return arguments.length?(h(P),$()):h()},l.range=function(P){return arguments.length?([y,w]=P,y=+y,w=+w,$()):[y,w]},l.rangeRound=function(P){return[y,w]=P,y=+y,w=+w,k=!0,$()},l.bandwidth=function(){return o},l.step=function(){return a},l.round=function(P){return arguments.length?(k=!!P,$()):k},l.padding=function(P){return arguments.length?(S=Math.min(1,I=+P),$()):S},l.paddingInner=function(P){return arguments.length?(S=Math.min(1,P),$()):S},l.paddingOuter=function(P){return arguments.length?(I=+P,$()):I},l.align=function(P){return arguments.length?(B=Math.max(0,Math.min(1,P)),$()):B},l.copy=function(){return Ff(h(),[y,w]).round(k).paddingInner(S).paddingOuter(I).align(B)},co.apply($(),arguments)}function ig(a){var o=a.copy;return a.padding=a.paddingOuter,delete a.paddingInner,delete a.paddingOuter,a.copy=function(){return ig(o())},a}function C3(){return ig(Ff.apply(null,arguments).paddingInner(1))}function D0(a){return+a}var ag=[0,1];function Ca(a){return a}function Pf(a,o){return(o-=a=+a)?function(h){return(h-a)/o}:(l=isNaN(o)?NaN:.5,function(){return l});var l}function I3(a,o,l){var h=a[0],g=a[1],y=o[0],w=o[1];return g<h?(h=Pf(g,h),y=l(w,y)):(h=Pf(h,g),y=l(y,w)),function(k){return y(h(k))}}function N3(a,o,l){var h=Math.min(a.length,o.length)-1,g=new Array(h),y=new Array(h),w=-1;for(a[h]<a[0]&&(a=a.slice().reverse(),o=o.slice().reverse());++w<h;)g[w]=Pf(a[w],a[w+1]),y[w]=l(o[w],o[w+1]);return function(k){var S=R(a,k,1,h)-1;return y[S](g[S](k))}}function Dh(a,o){return o.domain(a.domain()).range(a.range()).interpolate(a.interpolate()).clamp(a.clamp()).unknown(a.unknown())}function R0(){var a,o,l,h,g,y,w=ag,k=ag,S=en,I=Ca;function B(){var P,H,at,V=Math.min(w.length,k.length);return I!==Ca&&(P=w[0],H=w[V-1],P>H&&(at=P,P=H,H=at),I=function(Z){return Math.max(P,Math.min(H,Z))}),h=V>2?N3:I3,g=y=null,$}function $(P){return P==null||isNaN(P=+P)?l:(g||(g=h(w.map(a),k,S)))(a(I(P)))}return $.invert=function(P){return I(o((y||(y=h(k,w.map(a),ua)))(P)))},$.domain=function(P){return arguments.length?(w=Array.from(P,D0),B()):w.slice()},$.range=function(P){return arguments.length?(k=Array.from(P),B()):k.slice()},$.rangeRound=function(P){return k=Array.from(P),S=M0,B()},$.clamp=function(P){return arguments.length?(I=!!P||Ca,B()):I!==Ca},$.interpolate=function(P){return arguments.length?(S=P,B()):S},$.unknown=function(P){return arguments.length?(l=P,$):l},function(P,H){return a=P,o=H,B()}}function zf(){return R0()(Ca,Ca)}function og(a,o,l,h){var g,y=Se(a,o,l);switch((h=To(h==null?",f":h)).type){case"s":var w=Math.max(Math.abs(a),Math.abs(o));return h.precision!=null||isNaN(g=fh(y,w))||(h.precision=g),ql(h,w);case"":case"e":case"g":case"p":case"r":h.precision!=null||isNaN(g=ph(y,Math.max(Math.abs(a),Math.abs(o))))||(h.precision=g-(h.type==="e"));break;case"f":case"%":h.precision!=null||isNaN(g=Wl(y))||(h.precision=g-2*(h.type==="%"))}return Hl(h)}function ic(a){var o=a.domain;return a.ticks=function(l){var h=o();return le(h[0],h[h.length-1],l==null?10:l)},a.tickFormat=function(l,h){var g=o();return og(g[0],g[g.length-1],l==null?10:l,h)},a.nice=function(l){l==null&&(l=10);var h,g,y=o(),w=0,k=y.length-1,S=y[w],I=y[k],B=10;for(I<S&&(g=S,S=I,I=g,g=w,w=k,k=g);B-- >0;){if((g=ct(S,I,l))===h)return y[w]=S,y[k]=I,o(y);if(g>0)S=Math.floor(S/g)*g,I=Math.ceil(I/g)*g;else{if(!(g<0))break;S=Math.ceil(S*g)/g,I=Math.floor(I*g)/g}h=g}return a},a}function sg(){var a=zf();return a.copy=function(){return Dh(a,sg())},co.apply(a,arguments),ic(a)}function cg(a){var o;function l(h){return h==null||isNaN(h=+h)?o:h}return l.invert=l,l.domain=l.range=function(h){return arguments.length?(a=Array.from(h,D0),l):a.slice()},l.unknown=function(h){return arguments.length?(o=h,l):o},l.copy=function(){return cg(a).unknown(o)},a=arguments.length?Array.from(a,D0):[0,1],ic(l)}function lg(a,o){var l,h=0,g=(a=a.slice()).length-1,y=a[h],w=a[g];return w<y&&(l=h,h=g,g=l,l=y,y=w,w=l),a[h]=o.floor(y),a[g]=o.ceil(w),a}function ug(a){return Math.log(a)}function hg(a){return Math.exp(a)}function L3(a){return-Math.log(-a)}function M3(a){return-Math.exp(-a)}function O3(a){return isFinite(a)?+("1e"+a):a<0?0:a}function dg(a){return(o,l)=>-a(-o,l)}function Uf(a){const o=a(ug,hg),l=o.domain;let h,g,y=10;function w(){return h=function(k){return k===Math.E?Math.log:k===10&&Math.log10||k===2&&Math.log2||(k=Math.log(k),S=>Math.log(S)/k)}(y),g=function(k){return k===10?O3:k===Math.E?Math.exp:S=>Math.pow(k,S)}(y),l()[0]<0?(h=dg(h),g=dg(g),a(L3,M3)):a(ug,hg),o}return o.base=function(k){return arguments.length?(y=+k,w()):y},o.domain=function(k){return arguments.length?(l(k),w()):l()},o.ticks=k=>{const S=l();let I=S[0],B=S[S.length-1];const $=B<I;$&&([I,B]=[B,I]);let P,H,at=h(I),V=h(B);const Z=k==null?10:+k;let K=[];if(!(y%1)&&V-at<Z){if(at=Math.floor(at),V=Math.ceil(V),I>0){for(;at<=V;++at)for(P=1;P<y;++P)if(H=at<0?P/g(-at):P*g(at),!(H<I)){if(H>B)break;K.push(H)}}else for(;at<=V;++at)for(P=y-1;P>=1;--P)if(H=at>0?P/g(-at):P*g(at),!(H<I)){if(H>B)break;K.push(H)}2*K.length<Z&&(K=le(I,B,Z))}else K=le(at,V,Math.min(V-at,Z)).map(g);return $?K.reverse():K},o.tickFormat=(k,S)=>{if(k==null&&(k=10),S==null&&(S=y===10?"s":","),typeof S!="function"&&(y%1||(S=To(S)).precision!=null||(S.trim=!0),S=Hl(S)),k===1/0)return S;const I=Math.max(1,y*k/o.ticks().length);return B=>{let $=B/g(Math.round(h(B)));return $*y<y-.5&&($*=y),$<=I?S(B):""}},o.nice=()=>l(lg(l(),{floor:k=>g(Math.floor(h(k))),ceil:k=>g(Math.ceil(h(k)))})),o}function fg(){const a=Uf(R0()).domain([1,10]);return a.copy=()=>Dh(a,fg()).base(a.base()),co.apply(a,arguments),a}function pg(a){return function(o){return Math.sign(o)*Math.log1p(Math.abs(o/a))}}function gg(a){return function(o){return Math.sign(o)*Math.expm1(Math.abs(o))*a}}function Yf(a){var o=1,l=a(pg(o),gg(o));return l.constant=function(h){return arguments.length?a(pg(o=+h),gg(o)):o},ic(l)}function yg(){var a=Yf(R0());return a.copy=function(){return Dh(a,yg()).constant(a.constant())},co.apply(a,arguments)}function mg(a){return function(o){return o<0?-Math.pow(-o,a):Math.pow(o,a)}}function D3(a){return a<0?-Math.sqrt(-a):Math.sqrt(a)}function R3(a){return a<0?-a*a:a*a}function jf(a){var o=a(Ca,Ca),l=1;function h(){return l===1?a(Ca,Ca):l===.5?a(D3,R3):a(mg(l),mg(1/l))}return o.exponent=function(g){return arguments.length?(l=+g,h()):l},ic(o)}function $f(){var a=jf(R0());return a.copy=function(){return Dh(a,$f()).exponent(a.exponent())},co.apply(a,arguments),a}function B3(){return $f.apply(null,arguments).exponent(.5)}function _g(a){return Math.sign(a)*a*a}function F3(a){return Math.sign(a)*Math.sqrt(Math.abs(a))}function bg(){var a,o=zf(),l=[0,1],h=!1;function g(y){var w=F3(o(y));return isNaN(w)?a:h?Math.round(w):w}return g.invert=function(y){return o.invert(_g(y))},g.domain=function(y){return arguments.length?(o.domain(y),g):o.domain()},g.range=function(y){return arguments.length?(o.range((l=Array.from(y,D0)).map(_g)),g):l.slice()},g.rangeRound=function(y){return g.range(y).round(!0)},g.round=function(y){return arguments.length?(h=!!y,g):h},g.clamp=function(y){return arguments.length?(o.clamp(y),g):o.clamp()},g.unknown=function(y){return arguments.length?(a=y,g):a},g.copy=function(){return bg(o.domain(),l).round(h).clamp(o.clamp()).unknown(a)},co.apply(g,arguments),ic(g)}function vg(){var a,o=[],l=[],h=[];function g(){var w=0,k=Math.max(1,l.length);for(h=new Array(k-1);++w<k;)h[w-1]=Pe(o,w/k);return y}function y(w){return w==null||isNaN(w=+w)?a:l[R(h,w)]}return y.invertExtent=function(w){var k=l.indexOf(w);return k<0?[NaN,NaN]:[k>0?h[k-1]:o[0],k<h.length?h[k]:o[o.length-1]]},y.domain=function(w){if(!arguments.length)return o.slice();o=[];for(let k of w)k==null||isNaN(k=+k)||o.push(k);return o.sort(_),g()},y.range=function(w){return arguments.length?(l=Array.from(w),g()):l.slice()},y.unknown=function(w){return arguments.length?(a=w,y):a},y.quantiles=function(){return h.slice()},y.copy=function(){return vg().domain(o).range(l).unknown(a)},co.apply(y,arguments)}function xg(){var a,o=0,l=1,h=1,g=[.5],y=[0,1];function w(S){return S!=null&&S<=S?y[R(g,S,0,h)]:a}function k(){var S=-1;for(g=new Array(h);++S<h;)g[S]=((S+1)*l-(S-h)*o)/(h+1);return w}return w.domain=function(S){return arguments.length?([o,l]=S,o=+o,l=+l,k()):[o,l]},w.range=function(S){return arguments.length?(h=(y=Array.from(S)).length-1,k()):y.slice()},w.invertExtent=function(S){var I=y.indexOf(S);return I<0?[NaN,NaN]:I<1?[o,g[0]]:I>=h?[g[h-1],l]:[g[I-1],g[I]]},w.unknown=function(S){return arguments.length&&(a=S),w},w.thresholds=function(){return g.slice()},w.copy=function(){return xg().domain([o,l]).range(y).unknown(a)},co.apply(ic(w),arguments)}function wg(){var a,o=[.5],l=[0,1],h=1;function g(y){return y!=null&&y<=y?l[R(o,y,0,h)]:a}return g.domain=function(y){return arguments.length?(o=Array.from(y),h=Math.min(o.length,l.length-1),g):o.slice()},g.range=function(y){return arguments.length?(l=Array.from(y),h=Math.min(o.length,l.length-1),g):l.slice()},g.invertExtent=function(y){var w=l.indexOf(y);return[o[w-1],o[w]]},g.unknown=function(y){return arguments.length?(a=y,g):a},g.copy=function(){return wg().domain(o).range(l).unknown(a)},co.apply(g,arguments)}const Rh=1e3,ac=6e4,Bh=36e5,Hf=864e5,qf=6048e5,Wf=31536e6;var Gf=new Date,Vf=new Date;function ji(a,o,l,h){function g(y){return a(y=arguments.length===0?new Date:new Date(+y)),y}return g.floor=function(y){return a(y=new Date(+y)),y},g.ceil=function(y){return a(y=new Date(y-1)),o(y,1),a(y),y},g.round=function(y){var w=g(y),k=g.ceil(y);return y-w<k-y?w:k},g.offset=function(y,w){return o(y=new Date(+y),w==null?1:Math.floor(w)),y},g.range=function(y,w,k){var S,I=[];if(y=g.ceil(y),k=k==null?1:Math.floor(k),!(y<w&&k>0))return I;do I.push(S=new Date(+y)),o(y,k),a(y);while(S<y&&y<w);return I},g.filter=function(y){return ji(function(w){if(w>=w)for(;a(w),!y(w);)w.setTime(w-1)},function(w,k){if(w>=w)if(k<0)for(;++k<=0;)for(;o(w,-1),!y(w););else for(;--k>=0;)for(;o(w,1),!y(w););})},l&&(g.count=function(y,w){return Gf.setTime(+y),Vf.setTime(+w),a(Gf),a(Vf),Math.floor(l(Gf,Vf))},g.every=function(y){return y=Math.floor(y),isFinite(y)&&y>0?y>1?g.filter(h?function(w){return h(w)%y==0}:function(w){return g.count(0,w)%y==0}):g:null}),g}var B0=ji(function(){},function(a,o){a.setTime(+a+o)},function(a,o){return o-a});B0.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?ji(function(o){o.setTime(Math.floor(o/a)*a)},function(o,l){o.setTime(+o+l*a)},function(o,l){return(l-o)/a}):B0:null};const Zf=B0;var kg=B0.range,Eg=ji(function(a){a.setTime(a-a.getMilliseconds())},function(a,o){a.setTime(+a+o*Rh)},function(a,o){return(o-a)/Rh},function(a){return a.getUTCSeconds()});const oc=Eg;var Tg=Eg.range,Sg=ji(function(a){a.setTime(a-a.getMilliseconds()-a.getSeconds()*Rh)},function(a,o){a.setTime(+a+o*ac)},function(a,o){return(o-a)/ac},function(a){return a.getMinutes()});const Xf=Sg;var P3=Sg.range,Ag=ji(function(a){a.setTime(a-a.getMilliseconds()-a.getSeconds()*Rh-a.getMinutes()*ac)},function(a,o){a.setTime(+a+o*Bh)},function(a,o){return(o-a)/Bh},function(a){return a.getHours()});const Kf=Ag;var z3=Ag.range,Cg=ji(a=>a.setHours(0,0,0,0),(a,o)=>a.setDate(a.getDate()+o),(a,o)=>(o-a-(o.getTimezoneOffset()-a.getTimezoneOffset())*ac)/Hf,a=>a.getDate()-1);const Fh=Cg;var U3=Cg.range;function Zc(a){return ji(function(o){o.setDate(o.getDate()-(o.getDay()+7-a)%7),o.setHours(0,0,0,0)},function(o,l){o.setDate(o.getDate()+7*l)},function(o,l){return(l-o-(l.getTimezoneOffset()-o.getTimezoneOffset())*ac)/qf})}var eu=Zc(0),Ph=Zc(1),Ig=Zc(2),Ng=Zc(3),Xc=Zc(4),Lg=Zc(5),Mg=Zc(6),Og=eu.range,Y3=Ph.range,j3=Ig.range,$3=Ng.range,H3=Xc.range,q3=Lg.range,W3=Mg.range,Dg=ji(function(a){a.setDate(1),a.setHours(0,0,0,0)},function(a,o){a.setMonth(a.getMonth()+o)},function(a,o){return o.getMonth()-a.getMonth()+12*(o.getFullYear()-a.getFullYear())},function(a){return a.getMonth()});const Jf=Dg;var G3=Dg.range,Qf=ji(function(a){a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,o){a.setFullYear(a.getFullYear()+o)},function(a,o){return o.getFullYear()-a.getFullYear()},function(a){return a.getFullYear()});Qf.every=function(a){return isFinite(a=Math.floor(a))&&a>0?ji(function(o){o.setFullYear(Math.floor(o.getFullYear()/a)*a),o.setMonth(0,1),o.setHours(0,0,0,0)},function(o,l){o.setFullYear(o.getFullYear()+l*a)}):null};const sc=Qf;var V3=Qf.range,Rg=ji(function(a){a.setUTCSeconds(0,0)},function(a,o){a.setTime(+a+o*ac)},function(a,o){return(o-a)/ac},function(a){return a.getUTCMinutes()});const t2=Rg;var Z3=Rg.range,Bg=ji(function(a){a.setUTCMinutes(0,0,0)},function(a,o){a.setTime(+a+o*Bh)},function(a,o){return(o-a)/Bh},function(a){return a.getUTCHours()});const e2=Bg;var X3=Bg.range,Fg=ji(function(a){a.setUTCHours(0,0,0,0)},function(a,o){a.setUTCDate(a.getUTCDate()+o)},function(a,o){return(o-a)/Hf},function(a){return a.getUTCDate()-1});const zh=Fg;var K3=Fg.range;function Kc(a){return ji(function(o){o.setUTCDate(o.getUTCDate()-(o.getUTCDay()+7-a)%7),o.setUTCHours(0,0,0,0)},function(o,l){o.setUTCDate(o.getUTCDate()+7*l)},function(o,l){return(l-o)/qf})}var ru=Kc(0),Uh=Kc(1),Pg=Kc(2),zg=Kc(3),Jc=Kc(4),Ug=Kc(5),Yg=Kc(6),jg=ru.range,J3=Uh.range,Q3=Pg.range,tb=zg.range,eb=Jc.range,rb=Ug.range,nb=Yg.range,$g=ji(function(a){a.setUTCDate(1),a.setUTCHours(0,0,0,0)},function(a,o){a.setUTCMonth(a.getUTCMonth()+o)},function(a,o){return o.getUTCMonth()-a.getUTCMonth()+12*(o.getUTCFullYear()-a.getUTCFullYear())},function(a){return a.getUTCMonth()});const r2=$g;var ib=$g.range,n2=ji(function(a){a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,o){a.setUTCFullYear(a.getUTCFullYear()+o)},function(a,o){return o.getUTCFullYear()-a.getUTCFullYear()},function(a){return a.getUTCFullYear()});n2.every=function(a){return isFinite(a=Math.floor(a))&&a>0?ji(function(o){o.setUTCFullYear(Math.floor(o.getUTCFullYear()/a)*a),o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0)},function(o,l){o.setUTCFullYear(o.getUTCFullYear()+l*a)}):null};const cc=n2;var ab=n2.range;function Hg(a,o,l,h,g,y){const w=[[oc,1,Rh],[oc,5,5e3],[oc,15,15e3],[oc,30,3e4],[y,1,ac],[y,5,3e5],[y,15,9e5],[y,30,18e5],[g,1,Bh],[g,3,108e5],[g,6,216e5],[g,12,432e5],[h,1,Hf],[h,2,1728e5],[l,1,qf],[o,1,2592e6],[o,3,7776e6],[a,1,Wf]];function k(S,I,B){const $=Math.abs(I-S)/B,P=p(([,,V])=>V).right(w,$);if(P===w.length)return a.every(Se(S/Wf,I/Wf,B));if(P===0)return Zf.every(Math.max(Se(S,I,B),1));const[H,at]=w[$/w[P-1][2]<w[P][2]/$?P-1:P];return H.every(at)}return[function(S,I,B){const $=I<S;$&&([S,I]=[I,S]);const P=B&&typeof B.range=="function"?B:k(S,I,B),H=P?P.range(S,+I+1):[];return $?H.reverse():H},k]}const[qg,Wg]=Hg(cc,r2,ru,zh,e2,t2),[Gg,Vg]=Hg(sc,Jf,eu,Fh,Kf,Xf);function i2(a){if(0<=a.y&&a.y<100){var o=new Date(-1,a.m,a.d,a.H,a.M,a.S,a.L);return o.setFullYear(a.y),o}return new Date(a.y,a.m,a.d,a.H,a.M,a.S,a.L)}function a2(a){if(0<=a.y&&a.y<100){var o=new Date(Date.UTC(-1,a.m,a.d,a.H,a.M,a.S,a.L));return o.setUTCFullYear(a.y),o}return new Date(Date.UTC(a.y,a.m,a.d,a.H,a.M,a.S,a.L))}function Yh(a,o,l){return{y:a,m:o,d:l,H:0,M:0,S:0,L:0}}function Zg(a){var o=a.dateTime,l=a.date,h=a.time,g=a.periods,y=a.days,w=a.shortDays,k=a.months,S=a.shortMonths,I=jh(g),B=$h(g),$=jh(y),P=$h(y),H=jh(w),at=$h(w),V=jh(k),Z=$h(k),K=jh(S),gt=$h(S),ht={a:function(Zt){return w[Zt.getDay()]},A:function(Zt){return y[Zt.getDay()]},b:function(Zt){return S[Zt.getMonth()]},B:function(Zt){return k[Zt.getMonth()]},c:null,d:ry,e:ry,f:Cb,g:Pb,G:Ub,H:Tb,I:Sb,j:Ab,L:ny,m:Ib,M:Nb,p:function(Zt){return g[+(Zt.getHours()>=12)]},q:function(Zt){return 1+~~(Zt.getMonth()/3)},Q:ly,s:uy,S:Lb,u:Mb,U:Ob,V:Db,w:Rb,W:Bb,x:null,X:null,y:Fb,Y:zb,Z:Yb,"%":cy},dt={a:function(Zt){return w[Zt.getUTCDay()]},A:function(Zt){return y[Zt.getUTCDay()]},b:function(Zt){return S[Zt.getUTCMonth()]},B:function(Zt){return k[Zt.getUTCMonth()]},c:null,d:ay,e:ay,f:qb,g:e4,G:n4,H:jb,I:$b,j:Hb,L:oy,m:Wb,M:Gb,p:function(Zt){return g[+(Zt.getUTCHours()>=12)]},q:function(Zt){return 1+~~(Zt.getUTCMonth()/3)},Q:ly,s:uy,S:Vb,u:Zb,U:Xb,V:Kb,w:Jb,W:Qb,x:null,X:null,y:t4,Y:r4,Z:i4,"%":cy},xt={a:function(Zt,$t,Ht){var Wt=H.exec($t.slice(Ht));return Wt?(Zt.w=at.get(Wt[0].toLowerCase()),Ht+Wt[0].length):-1},A:function(Zt,$t,Ht){var Wt=$.exec($t.slice(Ht));return Wt?(Zt.w=P.get(Wt[0].toLowerCase()),Ht+Wt[0].length):-1},b:function(Zt,$t,Ht){var Wt=K.exec($t.slice(Ht));return Wt?(Zt.m=gt.get(Wt[0].toLowerCase()),Ht+Wt[0].length):-1},B:function(Zt,$t,Ht){var Wt=V.exec($t.slice(Ht));return Wt?(Zt.m=Z.get(Wt[0].toLowerCase()),Ht+Wt[0].length):-1},c:function(Zt,$t,Ht){return _e(Zt,o,$t,Ht)},d:ty,e:ty,f:xb,g:Qg,G:Jg,H:ey,I:ey,j:mb,L:vb,m:yb,M:_b,p:function(Zt,$t,Ht){var Wt=I.exec($t.slice(Ht));return Wt?(Zt.p=B.get(Wt[0].toLowerCase()),Ht+Wt[0].length):-1},q:gb,Q:kb,s:Eb,S:bb,u:ub,U:hb,V:db,w:lb,W:fb,x:function(Zt,$t,Ht){return _e(Zt,l,$t,Ht)},X:function(Zt,$t,Ht){return _e(Zt,h,$t,Ht)},y:Qg,Y:Jg,Z:pb,"%":wb};function Et(Zt,$t){return function(Ht){var Wt,Tt,Pt,Kt=[],se=-1,Ce=0,qe=Zt.length;for(Ht instanceof Date||(Ht=new Date(+Ht));++se<qe;)Zt.charCodeAt(se)===37&&(Kt.push(Zt.slice(Ce,se)),(Tt=Kg[Wt=Zt.charAt(++se)])!=null?Wt=Zt.charAt(++se):Tt=Wt==="e"?" ":"0",(Pt=$t[Wt])&&(Wt=Pt(Ht,Tt)),Kt.push(Wt),Ce=se+1);return Kt.push(Zt.slice(Ce,se)),Kt.join("")}}function re(Zt,$t){return function(Ht){var Wt,Tt,Pt=Yh(1900,void 0,1);if(_e(Pt,Zt,Ht+="",0)!=Ht.length)return null;if("Q"in Pt)return new Date(Pt.Q);if("s"in Pt)return new Date(1e3*Pt.s+("L"in Pt?Pt.L:0));if($t&&!("Z"in Pt)&&(Pt.Z=0),"p"in Pt&&(Pt.H=Pt.H%12+12*Pt.p),Pt.m===void 0&&(Pt.m="q"in Pt?Pt.q:0),"V"in Pt){if(Pt.V<1||Pt.V>53)return null;"w"in Pt||(Pt.w=1),"Z"in Pt?(Tt=(Wt=a2(Yh(Pt.y,0,1))).getUTCDay(),Wt=Tt>4||Tt===0?Uh.ceil(Wt):Uh(Wt),Wt=zh.offset(Wt,7*(Pt.V-1)),Pt.y=Wt.getUTCFullYear(),Pt.m=Wt.getUTCMonth(),Pt.d=Wt.getUTCDate()+(Pt.w+6)%7):(Tt=(Wt=i2(Yh(Pt.y,0,1))).getDay(),Wt=Tt>4||Tt===0?Ph.ceil(Wt):Ph(Wt),Wt=Fh.offset(Wt,7*(Pt.V-1)),Pt.y=Wt.getFullYear(),Pt.m=Wt.getMonth(),Pt.d=Wt.getDate()+(Pt.w+6)%7)}else("W"in Pt||"U"in Pt)&&("w"in Pt||(Pt.w="u"in Pt?Pt.u%7:"W"in Pt?1:0),Tt="Z"in Pt?a2(Yh(Pt.y,0,1)).getUTCDay():i2(Yh(Pt.y,0,1)).getDay(),Pt.m=0,Pt.d="W"in Pt?(Pt.w+6)%7+7*Pt.W-(Tt+5)%7:Pt.w+7*Pt.U-(Tt+6)%7);return"Z"in Pt?(Pt.H+=Pt.Z/100|0,Pt.M+=Pt.Z%100,a2(Pt)):i2(Pt)}}function _e(Zt,$t,Ht,Wt){for(var Tt,Pt,Kt=0,se=$t.length,Ce=Ht.length;Kt<se;){if(Wt>=Ce)return-1;if((Tt=$t.charCodeAt(Kt++))===37){if(Tt=$t.charAt(Kt++),!(Pt=xt[Tt in Kg?$t.charAt(Kt++):Tt])||(Wt=Pt(Zt,Ht,Wt))<0)return-1}else if(Tt!=Ht.charCodeAt(Wt++))return-1}return Wt}return ht.x=Et(l,ht),ht.X=Et(h,ht),ht.c=Et(o,ht),dt.x=Et(l,dt),dt.X=Et(h,dt),dt.c=Et(o,dt),{format:function(Zt){var $t=Et(Zt+="",ht);return $t.toString=function(){return Zt},$t},parse:function(Zt){var $t=re(Zt+="",!1);return $t.toString=function(){return Zt},$t},utcFormat:function(Zt){var $t=Et(Zt+="",dt);return $t.toString=function(){return Zt},$t},utcParse:function(Zt){var $t=re(Zt+="",!0);return $t.toString=function(){return Zt},$t}}}var nu,o2,Xg,F0,s2,Kg={"-":"",_:" ",0:"0"},Ji=/^\s*\d+/,ob=/^%/,sb=/[\\^$*+?|[\]().{}]/g;function In(a,o,l){var h=a<0?"-":"",g=(h?-a:a)+"",y=g.length;return h+(y<l?new Array(l-y+1).join(o)+g:g)}function cb(a){return a.replace(sb,"\\$&")}function jh(a){return new RegExp("^(?:"+a.map(cb).join("|")+")","i")}function $h(a){return new Map(a.map((o,l)=>[o.toLowerCase(),l]))}function lb(a,o,l){var h=Ji.exec(o.slice(l,l+1));return h?(a.w=+h[0],l+h[0].length):-1}function ub(a,o,l){var h=Ji.exec(o.slice(l,l+1));return h?(a.u=+h[0],l+h[0].length):-1}function hb(a,o,l){var h=Ji.exec(o.slice(l,l+2));return h?(a.U=+h[0],l+h[0].length):-1}function db(a,o,l){var h=Ji.exec(o.slice(l,l+2));return h?(a.V=+h[0],l+h[0].length):-1}function fb(a,o,l){var h=Ji.exec(o.slice(l,l+2));return h?(a.W=+h[0],l+h[0].length):-1}function Jg(a,o,l){var h=Ji.exec(o.slice(l,l+4));return h?(a.y=+h[0],l+h[0].length):-1}function Qg(a,o,l){var h=Ji.exec(o.slice(l,l+2));return h?(a.y=+h[0]+(+h[0]>68?1900:2e3),l+h[0].length):-1}function pb(a,o,l){var h=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(o.slice(l,l+6));return h?(a.Z=h[1]?0:-(h[2]+(h[3]||"00")),l+h[0].length):-1}function gb(a,o,l){var h=Ji.exec(o.slice(l,l+1));return h?(a.q=3*h[0]-3,l+h[0].length):-1}function yb(a,o,l){var h=Ji.exec(o.slice(l,l+2));return h?(a.m=h[0]-1,l+h[0].length):-1}function ty(a,o,l){var h=Ji.exec(o.slice(l,l+2));return h?(a.d=+h[0],l+h[0].length):-1}function mb(a,o,l){var h=Ji.exec(o.slice(l,l+3));return h?(a.m=0,a.d=+h[0],l+h[0].length):-1}function ey(a,o,l){var h=Ji.exec(o.slice(l,l+2));return h?(a.H=+h[0],l+h[0].length):-1}function _b(a,o,l){var h=Ji.exec(o.slice(l,l+2));return h?(a.M=+h[0],l+h[0].length):-1}function bb(a,o,l){var h=Ji.exec(o.slice(l,l+2));return h?(a.S=+h[0],l+h[0].length):-1}function vb(a,o,l){var h=Ji.exec(o.slice(l,l+3));return h?(a.L=+h[0],l+h[0].length):-1}function xb(a,o,l){var h=Ji.exec(o.slice(l,l+6));return h?(a.L=Math.floor(h[0]/1e3),l+h[0].length):-1}function wb(a,o,l){var h=ob.exec(o.slice(l,l+1));return h?l+h[0].length:-1}function kb(a,o,l){var h=Ji.exec(o.slice(l));return h?(a.Q=+h[0],l+h[0].length):-1}function Eb(a,o,l){var h=Ji.exec(o.slice(l));return h?(a.s=+h[0],l+h[0].length):-1}function ry(a,o){return In(a.getDate(),o,2)}function Tb(a,o){return In(a.getHours(),o,2)}function Sb(a,o){return In(a.getHours()%12||12,o,2)}function Ab(a,o){return In(1+Fh.count(sc(a),a),o,3)}function ny(a,o){return In(a.getMilliseconds(),o,3)}function Cb(a,o){return ny(a,o)+"000"}function Ib(a,o){return In(a.getMonth()+1,o,2)}function Nb(a,o){return In(a.getMinutes(),o,2)}function Lb(a,o){return In(a.getSeconds(),o,2)}function Mb(a){var o=a.getDay();return o===0?7:o}function Ob(a,o){return In(eu.count(sc(a)-1,a),o,2)}function iy(a){var o=a.getDay();return o>=4||o===0?Xc(a):Xc.ceil(a)}function Db(a,o){return a=iy(a),In(Xc.count(sc(a),a)+(sc(a).getDay()===4),o,2)}function Rb(a){return a.getDay()}function Bb(a,o){return In(Ph.count(sc(a)-1,a),o,2)}function Fb(a,o){return In(a.getFullYear()%100,o,2)}function Pb(a,o){return In((a=iy(a)).getFullYear()%100,o,2)}function zb(a,o){return In(a.getFullYear()%1e4,o,4)}function Ub(a,o){var l=a.getDay();return In((a=l>=4||l===0?Xc(a):Xc.ceil(a)).getFullYear()%1e4,o,4)}function Yb(a){var o=a.getTimezoneOffset();return(o>0?"-":(o*=-1,"+"))+In(o/60|0,"0",2)+In(o%60,"0",2)}function ay(a,o){return In(a.getUTCDate(),o,2)}function jb(a,o){return In(a.getUTCHours(),o,2)}function $b(a,o){return In(a.getUTCHours()%12||12,o,2)}function Hb(a,o){return In(1+zh.count(cc(a),a),o,3)}function oy(a,o){return In(a.getUTCMilliseconds(),o,3)}function qb(a,o){return oy(a,o)+"000"}function Wb(a,o){return In(a.getUTCMonth()+1,o,2)}function Gb(a,o){return In(a.getUTCMinutes(),o,2)}function Vb(a,o){return In(a.getUTCSeconds(),o,2)}function Zb(a){var o=a.getUTCDay();return o===0?7:o}function Xb(a,o){return In(ru.count(cc(a)-1,a),o,2)}function sy(a){var o=a.getUTCDay();return o>=4||o===0?Jc(a):Jc.ceil(a)}function Kb(a,o){return a=sy(a),In(Jc.count(cc(a),a)+(cc(a).getUTCDay()===4),o,2)}function Jb(a){return a.getUTCDay()}function Qb(a,o){return In(Uh.count(cc(a)-1,a),o,2)}function t4(a,o){return In(a.getUTCFullYear()%100,o,2)}function e4(a,o){return In((a=sy(a)).getUTCFullYear()%100,o,2)}function r4(a,o){return In(a.getUTCFullYear()%1e4,o,4)}function n4(a,o){var l=a.getUTCDay();return In((a=l>=4||l===0?Jc(a):Jc.ceil(a)).getUTCFullYear()%1e4,o,4)}function i4(){return"+0000"}function cy(){return"%"}function ly(a){return+a}function uy(a){return Math.floor(+a/1e3)}function hy(a){return nu=Zg(a),o2=nu.format,Xg=nu.parse,F0=nu.utcFormat,s2=nu.utcParse,nu}function a4(a){return new Date(a)}function o4(a){return a instanceof Date?+a:+new Date(+a)}function c2(a,o,l,h,g,y,w,k,S,I){var B=zf(),$=B.invert,P=B.domain,H=I(".%L"),at=I(":%S"),V=I("%I:%M"),Z=I("%I %p"),K=I("%a %d"),gt=I("%b %d"),ht=I("%B"),dt=I("%Y");function xt(Et){return(S(Et)<Et?H:k(Et)<Et?at:w(Et)<Et?V:y(Et)<Et?Z:h(Et)<Et?g(Et)<Et?K:gt:l(Et)<Et?ht:dt)(Et)}return B.invert=function(Et){return new Date($(Et))},B.domain=function(Et){return arguments.length?P(Array.from(Et,o4)):P().map(a4)},B.ticks=function(Et){var re=P();return a(re[0],re[re.length-1],Et==null?10:Et)},B.tickFormat=function(Et,re){return re==null?xt:I(re)},B.nice=function(Et){var re=P();return Et&&typeof Et.range=="function"||(Et=o(re[0],re[re.length-1],Et==null?10:Et)),Et?P(lg(re,Et)):B},B.copy=function(){return Dh(B,c2(a,o,l,h,g,y,w,k,S,I))},B}function s4(){return co.apply(c2(Gg,Vg,sc,Jf,eu,Fh,Kf,Xf,oc,o2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function c4(){return co.apply(c2(qg,Wg,cc,r2,ru,zh,e2,t2,oc,F0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function P0(){var a,o,l,h,g,y=0,w=1,k=Ca,S=!1;function I($){return $==null||isNaN($=+$)?g:k(l===0?.5:($=(h($)-a)*l,S?Math.max(0,Math.min(1,$)):$))}function B($){return function(P){var H,at;return arguments.length?([H,at]=P,k=$(H,at),I):[k(0),k(1)]}}return I.domain=function($){return arguments.length?([y,w]=$,a=h(y=+y),o=h(w=+w),l=a===o?0:1/(o-a),I):[y,w]},I.clamp=function($){return arguments.length?(S=!!$,I):S},I.interpolator=function($){return arguments.length?(k=$,I):k},I.range=B(en),I.rangeRound=B(M0),I.unknown=function($){return arguments.length?(g=$,I):g},function($){return h=$,a=$(y),o=$(w),l=a===o?0:1/(o-a),I}}function lc(a,o){return o.domain(a.domain()).interpolator(a.interpolator()).clamp(a.clamp()).unknown(a.unknown())}function dy(){var a=ic(P0()(Ca));return a.copy=function(){return lc(a,dy())},Cs.apply(a,arguments)}function fy(){var a=Uf(P0()).domain([1,10]);return a.copy=function(){return lc(a,fy()).base(a.base())},Cs.apply(a,arguments)}function py(){var a=Yf(P0());return a.copy=function(){return lc(a,py()).constant(a.constant())},Cs.apply(a,arguments)}function l2(){var a=jf(P0());return a.copy=function(){return lc(a,l2()).exponent(a.exponent())},Cs.apply(a,arguments)}function l4(){return l2.apply(null,arguments).exponent(.5)}function gy(){var a=[],o=Ca;function l(h){if(h!=null&&!isNaN(h=+h))return o((R(a,h,1)-1)/(a.length-1))}return l.domain=function(h){if(!arguments.length)return a.slice();a=[];for(let g of h)g==null||isNaN(g=+g)||a.push(g);return a.sort(_),l},l.interpolator=function(h){return arguments.length?(o=h,l):o},l.range=function(){return a.map((h,g)=>o(g/(a.length-1)))},l.quantiles=function(h){return Array.from({length:h+1},(g,y)=>Ue(a,y/h))},l.copy=function(){return gy(o).domain(a)},Cs.apply(l,arguments)}function z0(){var a,o,l,h,g,y,w,k=0,S=.5,I=1,B=1,$=Ca,P=!1;function H(V){return isNaN(V=+V)?w:(V=.5+((V=+y(V))-o)*(B*V<B*o?h:g),$(P?Math.max(0,Math.min(1,V)):V))}function at(V){return function(Z){var K,gt,ht;return arguments.length?([K,gt,ht]=Z,$=Kp(V,[K,gt,ht]),H):[$(0),$(.5),$(1)]}}return H.domain=function(V){return arguments.length?([k,S,I]=V,a=y(k=+k),o=y(S=+S),l=y(I=+I),h=a===o?0:.5/(o-a),g=o===l?0:.5/(l-o),B=o<a?-1:1,H):[k,S,I]},H.clamp=function(V){return arguments.length?(P=!!V,H):P},H.interpolator=function(V){return arguments.length?($=V,H):$},H.range=at(en),H.rangeRound=at(M0),H.unknown=function(V){return arguments.length?(w=V,H):w},function(V){return y=V,a=V(k),o=V(S),l=V(I),h=a===o?0:.5/(o-a),g=o===l?0:.5/(l-o),B=o<a?-1:1,H}}function yy(){var a=ic(z0()(Ca));return a.copy=function(){return lc(a,yy())},Cs.apply(a,arguments)}function my(){var a=Uf(z0()).domain([.1,1,10]);return a.copy=function(){return lc(a,my()).base(a.base())},Cs.apply(a,arguments)}function _y(){var a=Yf(z0());return a.copy=function(){return lc(a,_y()).constant(a.constant())},Cs.apply(a,arguments)}function u2(){var a=jf(z0());return a.copy=function(){return lc(a,u2()).exponent(a.exponent())},Cs.apply(a,arguments)}function u4(){return u2.apply(null,arguments).exponent(.5)}function cn(a){for(var o=a.length/6|0,l=new Array(o),h=0;h<o;)l[h]="#"+a.slice(6*h,6*++h);return l}hy({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const h4=cn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),d4=cn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),f4=cn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),p4=cn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),g4=cn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),y4=cn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),m4=cn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),_4=cn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),b4=cn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),x4=cn("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Xn=a=>ol(a[a.length-1]);var by=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(cn);const w4=Xn(by);var vy=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(cn);const k4=Xn(vy);var xy=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(cn);const E4=Xn(xy);var wy=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(cn);const T4=Xn(wy);var ky=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(cn);const S4=Xn(ky);var Ey=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(cn);const A4=Xn(Ey);var Ty=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(cn);const C4=Xn(Ty);var Sy=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(cn);const I4=Xn(Sy);var Ay=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(cn);const N4=Xn(Ay);var Cy=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(cn);const L4=Xn(Cy);var Iy=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(cn);const M4=Xn(Iy);var Ny=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(cn);const O4=Xn(Ny);var Ly=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(cn);const D4=Xn(Ly);var My=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(cn);const R4=Xn(My);var Oy=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(cn);const B4=Xn(Oy);var Dy=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(cn);const F4=Xn(Dy);var Ry=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(cn);const P4=Xn(Ry);var By=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(cn);const z4=Xn(By);var Fy=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(cn);const U4=Xn(Fy);var Py=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(cn);const Y4=Xn(Py);var zy=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(cn);const j4=Xn(zy);var Uy=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(cn);const $4=Xn(Uy);var Yy=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(cn);const H4=Xn(Yy);var jy=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(cn);const q4=Xn(jy);var $y=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(cn);const W4=Xn($y);var Hy=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(cn);const G4=Xn(Hy);var qy=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(cn);const V4=Xn(qy);function Z4(a){return a=Math.max(0,Math.min(1,a)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-a*(35.34-a*(2381.73-a*(6402.7-a*(7024.72-2710.57*a)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+a*(170.73+a*(52.82-a*(131.46-a*(176.58-67.37*a)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+a*(442.36-a*(2482.43-a*(6167.24-a*(6614.94-2475.67*a)))))))+")"}const X4=O0(Tn(300,.5,0),Tn(-240,.5,1));var K4=O0(Tn(-100,.75,.35),Tn(80,1.5,.8)),J4=O0(Tn(260,.75,.35),Tn(80,1.5,.8)),U0=Tn();function Q4(a){(a<0||a>1)&&(a-=Math.floor(a));var o=Math.abs(a-.5);return U0.h=360*a-100,U0.s=1.5-1.5*o,U0.l=.8-.9*o,U0+""}var Y0=mi(),tv=Math.PI/3,ev=2*Math.PI/3;function rv(a){var o;return a=(.5-a)*Math.PI,Y0.r=255*(o=Math.sin(a))*o,Y0.g=255*(o=Math.sin(a+tv))*o,Y0.b=255*(o=Math.sin(a+ev))*o,Y0+""}function nv(a){return a=Math.max(0,Math.min(1,a)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+a*(1172.33-a*(10793.56-a*(33300.12-a*(38394.49-14825.05*a)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+a*(557.33+a*(1225.33-a*(3574.96-a*(1073.77+707.56*a)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+a*(3211.1-a*(15327.97-a*(27814-a*(22569.18-6838.66*a)))))))+")"}function j0(a){var o=a.length;return function(l){return a[Math.max(0,Math.min(o-1,Math.floor(l*o)))]}}const iv=j0(cn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var av=j0(cn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ov=j0(cn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),sv=j0(cn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function cv(a){return Ei(No(a).call(document.documentElement))}var lv=0;function Wy(){return new h2}function h2(){this._="@"+(++lv).toString(36)}function uv(a,o){return a.target&&(a=Ra(a),o===void 0&&(o=a.currentTarget),a=a.touches||[a]),Array.from(a,l=>ha(l,o))}function hv(a){return typeof a=="string"?new yi([document.querySelectorAll(a)],[document.documentElement]):new yi([ee(a)],Lo)}function an(a){return function(){return a}}h2.prototype=Wy.prototype={constructor:h2,get:function(a){for(var o=this._;!(o in a);)if(!(a=a.parentNode))return;return a[o]},set:function(a,o){return a[this._]=o},remove:function(a){return this._ in a&&delete a[this._]},toString:function(){return this._}};var Gy=Math.abs,pa=Math.atan2,Qc=Math.cos,dv=Math.max,d2=Math.min,is=Math.sin,iu=Math.sqrt,ga=1e-12,uc=Math.PI,$0=uc/2,hc=2*uc;function fv(a){return a>1?0:a<-1?uc:Math.acos(a)}function Vy(a){return a>=1?$0:a<=-1?-$0:Math.asin(a)}function pv(a){return a.innerRadius}function gv(a){return a.outerRadius}function yv(a){return a.startAngle}function mv(a){return a.endAngle}function _v(a){return a&&a.padAngle}function bv(a,o,l,h,g,y,w,k){var S=l-a,I=h-o,B=w-g,$=k-y,P=$*S-B*I;if(!(P*P<ga))return[a+(P=(B*(o-y)-$*(a-g))/P)*S,o+P*I]}function H0(a,o,l,h,g,y,w){var k=a-l,S=o-h,I=(w?y:-y)/iu(k*k+S*S),B=I*S,$=-I*k,P=a+B,H=o+$,at=l+B,V=h+$,Z=(P+at)/2,K=(H+V)/2,gt=at-P,ht=V-H,dt=gt*gt+ht*ht,xt=g-y,Et=P*V-at*H,re=(ht<0?-1:1)*iu(dv(0,xt*xt*dt-Et*Et)),_e=(Et*ht-gt*re)/dt,Zt=(-Et*gt-ht*re)/dt,$t=(Et*ht+gt*re)/dt,Ht=(-Et*gt+ht*re)/dt,Wt=_e-Z,Tt=Zt-K,Pt=$t-Z,Kt=Ht-K;return Wt*Wt+Tt*Tt>Pt*Pt+Kt*Kt&&(_e=$t,Zt=Ht),{cx:_e,cy:Zt,x01:-B,y01:-$,x11:_e*(g/xt-1),y11:Zt*(g/xt-1)}}function vv(){var a=pv,o=gv,l=an(0),h=null,g=yv,y=mv,w=_v,k=null;function S(){var I,B,$=+a.apply(this,arguments),P=+o.apply(this,arguments),H=g.apply(this,arguments)-$0,at=y.apply(this,arguments)-$0,V=Gy(at-H),Z=at>H;if(k||(k=I=ys()),P<$&&(B=P,P=$,$=B),P>ga)if(V>hc-ga)k.moveTo(P*Qc(H),P*is(H)),k.arc(0,0,P,H,at,!Z),$>ga&&(k.moveTo($*Qc(at),$*is(at)),k.arc(0,0,$,at,H,Z));else{var K,gt,ht=H,dt=at,xt=H,Et=at,re=V,_e=V,Zt=w.apply(this,arguments)/2,$t=Zt>ga&&(h?+h.apply(this,arguments):iu($*$+P*P)),Ht=d2(Gy(P-$)/2,+l.apply(this,arguments)),Wt=Ht,Tt=Ht;if($t>ga){var Pt=Vy($t/$*is(Zt)),Kt=Vy($t/P*is(Zt));(re-=2*Pt)>ga?(xt+=Pt*=Z?1:-1,Et-=Pt):(re=0,xt=Et=(H+at)/2),(_e-=2*Kt)>ga?(ht+=Kt*=Z?1:-1,dt-=Kt):(_e=0,ht=dt=(H+at)/2)}var se=P*Qc(ht),Ce=P*is(ht),qe=$*Qc(Et),Ke=$*is(Et);if(Ht>ga){var yr,Je=P*Qc(dt),qr=P*is(dt),Gr=$*Qc(xt),Dr=$*is(xt);if(V<uc&&(yr=bv(se,Ce,Gr,Dr,Je,qr,qe,Ke))){var zr=se-yr[0],An=Ce-yr[1],ln=Je-yr[0],ja=qr-yr[1],fc=1/is(fv((zr*ln+An*ja)/(iu(zr*zr+An*An)*iu(ln*ln+ja*ja)))/2),Co=iu(yr[0]*yr[0]+yr[1]*yr[1]);Wt=d2(Ht,($-Co)/(fc-1)),Tt=d2(Ht,(P-Co)/(fc+1))}}_e>ga?Tt>ga?(K=H0(Gr,Dr,se,Ce,P,Tt,Z),gt=H0(Je,qr,qe,Ke,P,Tt,Z),k.moveTo(K.cx+K.x01,K.cy+K.y01),Tt<Ht?k.arc(K.cx,K.cy,Tt,pa(K.y01,K.x01),pa(gt.y01,gt.x01),!Z):(k.arc(K.cx,K.cy,Tt,pa(K.y01,K.x01),pa(K.y11,K.x11),!Z),k.arc(0,0,P,pa(K.cy+K.y11,K.cx+K.x11),pa(gt.cy+gt.y11,gt.cx+gt.x11),!Z),k.arc(gt.cx,gt.cy,Tt,pa(gt.y11,gt.x11),pa(gt.y01,gt.x01),!Z))):(k.moveTo(se,Ce),k.arc(0,0,P,ht,dt,!Z)):k.moveTo(se,Ce),$>ga&&re>ga?Wt>ga?(K=H0(qe,Ke,Je,qr,$,-Wt,Z),gt=H0(se,Ce,Gr,Dr,$,-Wt,Z),k.lineTo(K.cx+K.x01,K.cy+K.y01),Wt<Ht?k.arc(K.cx,K.cy,Wt,pa(K.y01,K.x01),pa(gt.y01,gt.x01),!Z):(k.arc(K.cx,K.cy,Wt,pa(K.y01,K.x01),pa(K.y11,K.x11),!Z),k.arc(0,0,$,pa(K.cy+K.y11,K.cx+K.x11),pa(gt.cy+gt.y11,gt.cx+gt.x11),Z),k.arc(gt.cx,gt.cy,Wt,pa(gt.y11,gt.x11),pa(gt.y01,gt.x01),!Z))):k.arc(0,0,$,Et,xt,Z):k.lineTo(qe,Ke)}else k.moveTo(0,0);if(k.closePath(),I)return k=null,I+""||null}return S.centroid=function(){var I=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2,B=(+g.apply(this,arguments)+ +y.apply(this,arguments))/2-uc/2;return[Qc(B)*I,is(B)*I]},S.innerRadius=function(I){return arguments.length?(a=typeof I=="function"?I:an(+I),S):a},S.outerRadius=function(I){return arguments.length?(o=typeof I=="function"?I:an(+I),S):o},S.cornerRadius=function(I){return arguments.length?(l=typeof I=="function"?I:an(+I),S):l},S.padRadius=function(I){return arguments.length?(h=I==null?null:typeof I=="function"?I:an(+I),S):h},S.startAngle=function(I){return arguments.length?(g=typeof I=="function"?I:an(+I),S):g},S.endAngle=function(I){return arguments.length?(y=typeof I=="function"?I:an(+I),S):y},S.padAngle=function(I){return arguments.length?(w=typeof I=="function"?I:an(+I),S):w},S.context=function(I){return arguments.length?(k=I==null?null:I,S):k},S}var xv=Array.prototype.slice;function q0(a){return typeof a=="object"&&"length"in a?a:Array.from(a)}function Zy(a){this._context=a}function W0(a){return new Zy(a)}function f2(a){return a[0]}function p2(a){return a[1]}function g2(a,o){var l=an(!0),h=null,g=W0,y=null;function w(k){var S,I,B,$=(k=q0(k)).length,P=!1;for(h==null&&(y=g(B=ys())),S=0;S<=$;++S)!(S<$&&l(I=k[S],S,k))===P&&((P=!P)?y.lineStart():y.lineEnd()),P&&y.point(+a(I,S,k),+o(I,S,k));if(B)return y=null,B+""||null}return a=typeof a=="function"?a:a===void 0?f2:an(a),o=typeof o=="function"?o:o===void 0?p2:an(o),w.x=function(k){return arguments.length?(a=typeof k=="function"?k:an(+k),w):a},w.y=function(k){return arguments.length?(o=typeof k=="function"?k:an(+k),w):o},w.defined=function(k){return arguments.length?(l=typeof k=="function"?k:an(!!k),w):l},w.curve=function(k){return arguments.length?(g=k,h!=null&&(y=g(h)),w):g},w.context=function(k){return arguments.length?(k==null?h=y=null:y=g(h=k),w):h},w}function Xy(a,o,l){var h=null,g=an(!0),y=null,w=W0,k=null;function S(B){var $,P,H,at,V,Z=(B=q0(B)).length,K=!1,gt=new Array(Z),ht=new Array(Z);for(y==null&&(k=w(V=ys())),$=0;$<=Z;++$){if(!($<Z&&g(at=B[$],$,B))===K)if(K=!K)P=$,k.areaStart(),k.lineStart();else{for(k.lineEnd(),k.lineStart(),H=$-1;H>=P;--H)k.point(gt[H],ht[H]);k.lineEnd(),k.areaEnd()}K&&(gt[$]=+a(at,$,B),ht[$]=+o(at,$,B),k.point(h?+h(at,$,B):gt[$],l?+l(at,$,B):ht[$]))}if(V)return k=null,V+""||null}function I(){return g2().defined(g).curve(w).context(y)}return a=typeof a=="function"?a:a===void 0?f2:an(+a),o=typeof o=="function"?o:an(o===void 0?0:+o),l=typeof l=="function"?l:l===void 0?p2:an(+l),S.x=function(B){return arguments.length?(a=typeof B=="function"?B:an(+B),h=null,S):a},S.x0=function(B){return arguments.length?(a=typeof B=="function"?B:an(+B),S):a},S.x1=function(B){return arguments.length?(h=B==null?null:typeof B=="function"?B:an(+B),S):h},S.y=function(B){return arguments.length?(o=typeof B=="function"?B:an(+B),l=null,S):o},S.y0=function(B){return arguments.length?(o=typeof B=="function"?B:an(+B),S):o},S.y1=function(B){return arguments.length?(l=B==null?null:typeof B=="function"?B:an(+B),S):l},S.lineX0=S.lineY0=function(){return I().x(a).y(o)},S.lineY1=function(){return I().x(a).y(l)},S.lineX1=function(){return I().x(h).y(o)},S.defined=function(B){return arguments.length?(g=typeof B=="function"?B:an(!!B),S):g},S.curve=function(B){return arguments.length?(w=B,y!=null&&(k=w(y)),S):w},S.context=function(B){return arguments.length?(B==null?y=k=null:k=w(y=B),S):y},S}function wv(a,o){return o<a?-1:o>a?1:o>=a?0:NaN}function kv(a){return a}function Ev(){var a=kv,o=wv,l=null,h=an(0),g=an(hc),y=an(0);function w(k){var S,I,B,$,P,H=(k=q0(k)).length,at=0,V=new Array(H),Z=new Array(H),K=+h.apply(this,arguments),gt=Math.min(hc,Math.max(-hc,g.apply(this,arguments)-K)),ht=Math.min(Math.abs(gt)/H,y.apply(this,arguments)),dt=ht*(gt<0?-1:1);for(S=0;S<H;++S)(P=Z[V[S]=S]=+a(k[S],S,k))>0&&(at+=P);for(o!=null?V.sort(function(xt,Et){return o(Z[xt],Z[Et])}):l!=null&&V.sort(function(xt,Et){return l(k[xt],k[Et])}),S=0,B=at?(gt-H*dt)/at:0;S<H;++S,K=$)I=V[S],$=K+((P=Z[I])>0?P*B:0)+dt,Z[I]={data:k[I],index:S,value:P,startAngle:K,endAngle:$,padAngle:ht};return Z}return w.value=function(k){return arguments.length?(a=typeof k=="function"?k:an(+k),w):a},w.sortValues=function(k){return arguments.length?(o=k,l=null,w):o},w.sort=function(k){return arguments.length?(l=k,o=null,w):l},w.startAngle=function(k){return arguments.length?(h=typeof k=="function"?k:an(+k),w):h},w.endAngle=function(k){return arguments.length?(g=typeof k=="function"?k:an(+k),w):g},w.padAngle=function(k){return arguments.length?(y=typeof k=="function"?k:an(+k),w):y},w}Zy.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(a,o){switch(a=+a,o=+o,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,o):this._context.moveTo(a,o);break;case 1:this._point=2;default:this._context.lineTo(a,o)}}};var Ky=y2(W0);function Jy(a){this._curve=a}function y2(a){function o(l){return new Jy(a(l))}return o._curve=a,o}function Hh(a){var o=a.curve;return a.angle=a.x,delete a.x,a.radius=a.y,delete a.y,a.curve=function(l){return arguments.length?o(y2(l)):o()._curve},a}function Qy(){return Hh(g2().curve(Ky))}function tm(){var a=Xy().curve(Ky),o=a.curve,l=a.lineX0,h=a.lineX1,g=a.lineY0,y=a.lineY1;return a.angle=a.x,delete a.x,a.startAngle=a.x0,delete a.x0,a.endAngle=a.x1,delete a.x1,a.radius=a.y,delete a.y,a.innerRadius=a.y0,delete a.y0,a.outerRadius=a.y1,delete a.y1,a.lineStartAngle=function(){return Hh(l())},delete a.lineX0,a.lineEndAngle=function(){return Hh(h())},delete a.lineX1,a.lineInnerRadius=function(){return Hh(g())},delete a.lineY0,a.lineOuterRadius=function(){return Hh(y())},delete a.lineY1,a.curve=function(w){return arguments.length?o(y2(w)):o()._curve},a}function qh(a,o){return[(o=+o)*Math.cos(a-=Math.PI/2),o*Math.sin(a)]}function Tv(a){return a.source}function Sv(a){return a.target}function m2(a){var o=Tv,l=Sv,h=f2,g=p2,y=null;function w(){var k,S=xv.call(arguments),I=o.apply(this,S),B=l.apply(this,S);if(y||(y=k=ys()),a(y,+h.apply(this,(S[0]=I,S)),+g.apply(this,S),+h.apply(this,(S[0]=B,S)),+g.apply(this,S)),k)return y=null,k+""||null}return w.source=function(k){return arguments.length?(o=k,w):o},w.target=function(k){return arguments.length?(l=k,w):l},w.x=function(k){return arguments.length?(h=typeof k=="function"?k:an(+k),w):h},w.y=function(k){return arguments.length?(g=typeof k=="function"?k:an(+k),w):g},w.context=function(k){return arguments.length?(y=k==null?null:k,w):y},w}function Av(a,o,l,h,g){a.moveTo(o,l),a.bezierCurveTo(o=(o+h)/2,l,o,g,h,g)}function Cv(a,o,l,h,g){a.moveTo(o,l),a.bezierCurveTo(o,l=(l+g)/2,h,l,h,g)}function Iv(a,o,l,h,g){var y=qh(o,l),w=qh(o,l=(l+g)/2),k=qh(h,l),S=qh(h,g);a.moveTo(y[0],y[1]),a.bezierCurveTo(w[0],w[1],k[0],k[1],S[0],S[1])}function Nv(){return m2(Av)}function Lv(){return m2(Cv)}function Mv(){var a=m2(Iv);return a.angle=a.x,delete a.x,a.radius=a.y,delete a.y,a}Jy.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(a,o){this._curve.point(o*Math.sin(a),o*-Math.cos(a))}};const _2={draw:function(a,o){var l=Math.sqrt(o/uc);a.moveTo(l,0),a.arc(0,0,l,0,hc)}},em={draw:function(a,o){var l=Math.sqrt(o/5)/2;a.moveTo(-3*l,-l),a.lineTo(-l,-l),a.lineTo(-l,-3*l),a.lineTo(l,-3*l),a.lineTo(l,-l),a.lineTo(3*l,-l),a.lineTo(3*l,l),a.lineTo(l,l),a.lineTo(l,3*l),a.lineTo(-l,3*l),a.lineTo(-l,l),a.lineTo(-3*l,l),a.closePath()}};var rm=Math.sqrt(1/3),Ov=2*rm;const nm={draw:function(a,o){var l=Math.sqrt(o/Ov),h=l*rm;a.moveTo(0,-l),a.lineTo(h,0),a.lineTo(0,l),a.lineTo(-h,0),a.closePath()}};var im=Math.sin(uc/10)/Math.sin(7*uc/10),Dv=Math.sin(hc/10)*im,Rv=-Math.cos(hc/10)*im;const am={draw:function(a,o){var l=Math.sqrt(.8908130915292852*o),h=Dv*l,g=Rv*l;a.moveTo(0,-l),a.lineTo(h,g);for(var y=1;y<5;++y){var w=hc*y/5,k=Math.cos(w),S=Math.sin(w);a.lineTo(S*l,-k*l),a.lineTo(k*h-S*g,S*h+k*g)}a.closePath()}},om={draw:function(a,o){var l=Math.sqrt(o),h=-l/2;a.rect(h,h,l,l)}};var b2=Math.sqrt(3);const sm={draw:function(a,o){var l=-Math.sqrt(o/(3*b2));a.moveTo(0,2*l),a.lineTo(-b2*l,-l),a.lineTo(b2*l,-l),a.closePath()}};var lo=-.5,uo=Math.sqrt(3)/2,v2=1/Math.sqrt(12),Bv=3*(v2/2+1);const cm={draw:function(a,o){var l=Math.sqrt(o/Bv),h=l/2,g=l*v2,y=h,w=l*v2+l,k=-y,S=w;a.moveTo(h,g),a.lineTo(y,w),a.lineTo(k,S),a.lineTo(lo*h-uo*g,uo*h+lo*g),a.lineTo(lo*y-uo*w,uo*y+lo*w),a.lineTo(lo*k-uo*S,uo*k+lo*S),a.lineTo(lo*h+uo*g,lo*g-uo*h),a.lineTo(lo*y+uo*w,lo*w-uo*y),a.lineTo(lo*k+uo*S,lo*S-uo*k),a.closePath()}};var Fv=[_2,em,nm,om,am,sm,cm];function Pv(a,o){var l=null;function h(){var g;if(l||(l=g=ys()),a.apply(this,arguments).draw(l,+o.apply(this,arguments)),g)return l=null,g+""||null}return a=typeof a=="function"?a:an(a||_2),o=typeof o=="function"?o:an(o===void 0?64:+o),h.type=function(g){return arguments.length?(a=typeof g=="function"?g:an(g),h):a},h.size=function(g){return arguments.length?(o=typeof g=="function"?g:an(+g),h):o},h.context=function(g){return arguments.length?(l=g==null?null:g,h):l},h}function dc(){}function G0(a,o,l){a._context.bezierCurveTo((2*a._x0+a._x1)/3,(2*a._y0+a._y1)/3,(a._x0+2*a._x1)/3,(a._y0+2*a._y1)/3,(a._x0+4*a._x1+o)/6,(a._y0+4*a._y1+l)/6)}function V0(a){this._context=a}function zv(a){return new V0(a)}function lm(a){this._context=a}function Uv(a){return new lm(a)}function um(a){this._context=a}function Yv(a){return new um(a)}V0.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:G0(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(a,o){switch(a=+a,o=+o,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,o):this._context.moveTo(a,o);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:G0(this,a,o)}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=o}},lm.prototype={areaStart:dc,areaEnd:dc,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(a,o){switch(a=+a,o=+o,this._point){case 0:this._point=1,this._x2=a,this._y2=o;break;case 1:this._point=2,this._x3=a,this._y3=o;break;case 2:this._point=3,this._x4=a,this._y4=o,this._context.moveTo((this._x0+4*this._x1+a)/6,(this._y0+4*this._y1+o)/6);break;default:G0(this,a,o)}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=o}},um.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(a,o){switch(a=+a,o=+o,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var l=(this._x0+4*this._x1+a)/6,h=(this._y0+4*this._y1+o)/6;this._line?this._context.lineTo(l,h):this._context.moveTo(l,h);break;case 3:this._point=4;default:G0(this,a,o)}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=o}};class hm{constructor(o,l){this._context=o,this._x=l}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(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._x?this._context.bezierCurveTo(this._x0=(this._x0+o)/2,this._y0,this._x0,l,o,l):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+l)/2,o,this._y0,o,l)}this._x0=o,this._y0=l}}function jv(a){return new hm(a,!0)}function $v(a){return new hm(a,!1)}function dm(a,o){this._basis=new V0(a),this._beta=o}dm.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var a=this._x,o=this._y,l=a.length-1;if(l>0)for(var h,g=a[0],y=o[0],w=a[l]-g,k=o[l]-y,S=-1;++S<=l;)h=S/l,this._basis.point(this._beta*a[S]+(1-this._beta)*(g+h*w),this._beta*o[S]+(1-this._beta)*(y+h*k));this._x=this._y=null,this._basis.lineEnd()},point:function(a,o){this._x.push(+a),this._y.push(+o)}};const Hv=function a(o){function l(h){return o===1?new V0(h):new dm(h,o)}return l.beta=function(h){return a(+h)},l}(.85);function Z0(a,o,l){a._context.bezierCurveTo(a._x1+a._k*(a._x2-a._x0),a._y1+a._k*(a._y2-a._y0),a._x2+a._k*(a._x1-o),a._y2+a._k*(a._y1-l),a._x2,a._y2)}function x2(a,o){this._context=a,this._k=(1-o)/6}x2.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:Z0(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(a,o){switch(a=+a,o=+o,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,o):this._context.moveTo(a,o);break;case 1:this._point=2,this._x1=a,this._y1=o;break;case 2:this._point=3;default:Z0(this,a,o)}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=o}};const qv=function a(o){function l(h){return new x2(h,o)}return l.tension=function(h){return a(+h)},l}(0);function w2(a,o){this._context=a,this._k=(1-o)/6}w2.prototype={areaStart:dc,areaEnd:dc,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(a,o){switch(a=+a,o=+o,this._point){case 0:this._point=1,this._x3=a,this._y3=o;break;case 1:this._point=2,this._context.moveTo(this._x4=a,this._y4=o);break;case 2:this._point=3,this._x5=a,this._y5=o;break;default:Z0(this,a,o)}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=o}};const Wv=function a(o){function l(h){return new w2(h,o)}return l.tension=function(h){return a(+h)},l}(0);function k2(a,o){this._context=a,this._k=(1-o)/6}k2.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(a,o){switch(a=+a,o=+o,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:Z0(this,a,o)}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=o}};const Gv=function a(o){function l(h){return new k2(h,o)}return l.tension=function(h){return a(+h)},l}(0);function E2(a,o,l){var h=a._x1,g=a._y1,y=a._x2,w=a._y2;if(a._l01_a>ga){var k=2*a._l01_2a+3*a._l01_a*a._l12_a+a._l12_2a,S=3*a._l01_a*(a._l01_a+a._l12_a);h=(h*k-a._x0*a._l12_2a+a._x2*a._l01_2a)/S,g=(g*k-a._y0*a._l12_2a+a._y2*a._l01_2a)/S}if(a._l23_a>ga){var I=2*a._l23_2a+3*a._l23_a*a._l12_a+a._l12_2a,B=3*a._l23_a*(a._l23_a+a._l12_a);y=(y*I+a._x1*a._l23_2a-o*a._l12_2a)/B,w=(w*I+a._y1*a._l23_2a-l*a._l12_2a)/B}a._context.bezierCurveTo(h,g,y,w,a._x2,a._y2)}function fm(a,o){this._context=a,this._alpha=o}fm.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(a,o){if(a=+a,o=+o,this._point){var l=this._x2-a,h=this._y2-o;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(l*l+h*h,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(a,o):this._context.moveTo(a,o);break;case 1:this._point=2;break;case 2:this._point=3;default:E2(this,a,o)}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=a,this._y0=this._y1,this._y1=this._y2,this._y2=o}};const Vv=function a(o){function l(h){return o?new fm(h,o):new x2(h,0)}return l.alpha=function(h){return a(+h)},l}(.5);function pm(a,o){this._context=a,this._alpha=o}pm.prototype={areaStart:dc,areaEnd:dc,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(a,o){if(a=+a,o=+o,this._point){var l=this._x2-a,h=this._y2-o;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(l*l+h*h,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=a,this._y3=o;break;case 1:this._point=2,this._context.moveTo(this._x4=a,this._y4=o);break;case 2:this._point=3,this._x5=a,this._y5=o;break;default:E2(this,a,o)}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=a,this._y0=this._y1,this._y1=this._y2,this._y2=o}};const Zv=function a(o){function l(h){return o?new pm(h,o):new w2(h,0)}return l.alpha=function(h){return a(+h)},l}(.5);function gm(a,o){this._context=a,this._alpha=o}gm.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(a,o){if(a=+a,o=+o,this._point){var l=this._x2-a,h=this._y2-o;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(l*l+h*h,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:E2(this,a,o)}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=a,this._y0=this._y1,this._y1=this._y2,this._y2=o}};const Xv=function a(o){function l(h){return o?new gm(h,o):new k2(h,0)}return l.alpha=function(h){return a(+h)},l}(.5);function ym(a){this._context=a}function Kv(a){return new ym(a)}function mm(a){return a<0?-1:1}function _m(a,o,l){var h=a._x1-a._x0,g=o-a._x1,y=(a._y1-a._y0)/(h||g<0&&-0),w=(l-a._y1)/(g||h<0&&-0),k=(y*g+w*h)/(h+g);return(mm(y)+mm(w))*Math.min(Math.abs(y),Math.abs(w),.5*Math.abs(k))||0}function bm(a,o){var l=a._x1-a._x0;return l?(3*(a._y1-a._y0)/l-o)/2:o}function T2(a,o,l){var h=a._x0,g=a._y0,y=a._x1,w=a._y1,k=(y-h)/3;a._context.bezierCurveTo(h+k,g+k*o,y-k,w-k*l,y,w)}function X0(a){this._context=a}function vm(a){this._context=new xm(a)}function xm(a){this._context=a}function Jv(a){return new X0(a)}function Qv(a){return new vm(a)}function wm(a){this._context=a}function km(a){var o,l,h=a.length-1,g=new Array(h),y=new Array(h),w=new Array(h);for(g[0]=0,y[0]=2,w[0]=a[0]+2*a[1],o=1;o<h-1;++o)g[o]=1,y[o]=4,w[o]=4*a[o]+2*a[o+1];for(g[h-1]=2,y[h-1]=7,w[h-1]=8*a[h-1]+a[h],o=1;o<h;++o)l=g[o]/y[o-1],y[o]-=l,w[o]-=l*w[o-1];for(g[h-1]=w[h-1]/y[h-1],o=h-2;o>=0;--o)g[o]=(w[o]-g[o+1])/y[o];for(y[h-1]=(a[h]+g[h-1])/2,o=0;o<h-1;++o)y[o]=2*a[o+1]-g[o+1];return[g,y]}function t5(a){return new wm(a)}function K0(a,o){this._context=a,this._t=o}function e5(a){return new K0(a,.5)}function r5(a){return new K0(a,0)}function n5(a){return new K0(a,1)}function au(a,o){if((g=a.length)>1)for(var l,h,g,y=1,w=a[o[0]],k=w.length;y<g;++y)for(h=w,w=a[o[y]],l=0;l<k;++l)w[l][1]+=w[l][0]=isNaN(h[l][1])?h[l][0]:h[l][1]}function ou(a){for(var o=a.length,l=new Array(o);--o>=0;)l[o]=o;return l}function i5(a,o){return a[o]}function a5(a){const o=[];return o.key=a,o}function o5(){var a=an([]),o=ou,l=au,h=i5;function g(y){var w,k,S=Array.from(a.apply(this,arguments),a5),I=S.length,B=-1;for(const $ of y)for(w=0,++B;w<I;++w)(S[w][B]=[0,+h($,S[w].key,B,y)]).data=$;for(w=0,k=q0(o(S));w<I;++w)S[k[w]].index=w;return l(S,k),S}return g.keys=function(y){return arguments.length?(a=typeof y=="function"?y:an(Array.from(y)),g):a},g.value=function(y){return arguments.length?(h=typeof y=="function"?y:an(+y),g):h},g.order=function(y){return arguments.length?(o=y==null?ou:typeof y=="function"?y:an(Array.from(y)),g):o},g.offset=function(y){return arguments.length?(l=y==null?au:y,g):l},g}function s5(a,o){if((h=a.length)>0){for(var l,h,g,y=0,w=a[0].length;y<w;++y){for(g=l=0;l<h;++l)g+=a[l][y][1]||0;if(g)for(l=0;l<h;++l)a[l][y][1]/=g}au(a,o)}}function c5(a,o){if((k=a.length)>0)for(var l,h,g,y,w,k,S=0,I=a[o[0]].length;S<I;++S)for(y=w=0,l=0;l<k;++l)(g=(h=a[o[l]][S])[1]-h[0])>0?(h[0]=y,h[1]=y+=g):g<0?(h[1]=w,h[0]=w+=g):(h[0]=0,h[1]=g)}function l5(a,o){if((l=a.length)>0){for(var l,h=0,g=a[o[0]],y=g.length;h<y;++h){for(var w=0,k=0;w<l;++w)k+=a[w][h][1]||0;g[h][1]+=g[h][0]=-k/2}au(a,o)}}function u5(a,o){if((g=a.length)>0&&(h=(l=a[o[0]]).length)>0){for(var l,h,g,y=0,w=1;w<h;++w){for(var k=0,S=0,I=0;k<g;++k){for(var B=a[o[k]],$=B[w][1]||0,P=($-(B[w-1][1]||0))/2,H=0;H<k;++H){var at=a[o[H]];P+=(at[w][1]||0)-(at[w-1][1]||0)}S+=$,I+=P*$}l[w-1][1]+=l[w-1][0]=y,S&&(y-=I/S)}l[w-1][1]+=l[w-1][0]=y,au(a,o)}}function Em(a){var o=a.map(h5);return ou(a).sort(function(l,h){return o[l]-o[h]})}function h5(a){for(var o,l=-1,h=0,g=a.length,y=-1/0;++l<g;)(o=+a[l][1])>y&&(y=o,h=l);return h}function Tm(a){var o=a.map(Sm);return ou(a).sort(function(l,h){return o[l]-o[h]})}function Sm(a){for(var o,l=0,h=-1,g=a.length;++h<g;)(o=+a[h][1])&&(l+=o);return l}function d5(a){return Tm(a).reverse()}function f5(a){var o,l,h=a.length,g=a.map(Sm),y=Em(a),w=0,k=0,S=[],I=[];for(o=0;o<h;++o)l=y[o],w<k?(w+=g[l],S.push(l)):(k+=g[l],I.push(l));return I.reverse().concat(S)}function p5(a){return ou(a).reverse()}ym.prototype={areaStart:dc,areaEnd:dc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(a,o){a=+a,o=+o,this._point?this._context.lineTo(a,o):(this._point=1,this._context.moveTo(a,o))}},X0.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:T2(this,this._t0,bm(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(a,o){var l=NaN;if(o=+o,(a=+a)!==this._x1||o!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(a,o):this._context.moveTo(a,o);break;case 1:this._point=2;break;case 2:this._point=3,T2(this,bm(this,l=_m(this,a,o)),l);break;default:T2(this,this._t0,l=_m(this,a,o))}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=o,this._t0=l}}},(vm.prototype=Object.create(X0.prototype)).point=function(a,o){X0.prototype.point.call(this,o,a)},xm.prototype={moveTo:function(a,o){this._context.moveTo(o,a)},closePath:function(){this._context.closePath()},lineTo:function(a,o){this._context.lineTo(o,a)},bezierCurveTo:function(a,o,l,h,g,y){this._context.bezierCurveTo(o,a,h,l,y,g)}},wm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var a=this._x,o=this._y,l=a.length;if(l)if(this._line?this._context.lineTo(a[0],o[0]):this._context.moveTo(a[0],o[0]),l===2)this._context.lineTo(a[1],o[1]);else for(var h=km(a),g=km(o),y=0,w=1;w<l;++y,++w)this._context.bezierCurveTo(h[0][y],g[0][y],h[1][y],g[1][y],a[w],o[w]);(this._line||this._line!==0&&l===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(a,o){this._x.push(+a),this._y.push(+o)}},K0.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(a,o){switch(a=+a,o=+o,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,o):this._context.moveTo(a,o);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,o),this._context.lineTo(a,o);else{var l=this._x*(1-this._t)+a*this._t;this._context.lineTo(l,this._y),this._context.lineTo(l,o)}}this._x=a,this._y=o}};var Am="%Y-%m-%dT%H:%M:%S.%LZ",g5=Date.prototype.toISOString?function(a){return a.toISOString()}:F0(Am);const y5=g5;var m5=+new Date("2000-01-01T00:00:00.000Z")?function(a){var o=new Date(a);return isNaN(o)?null:o}:s2(Am);const _5=m5;function b5(a,o,l){var h=new Ac,g=o;return o==null?(h.restart(a,o,l),h):(h._restart=h.restart,h.restart=function(y,w,k){w=+w,k=k==null?Sc():+k,h._restart(function S(I){I+=g,h._restart(S,g+=w,k),y(I)},w,k)},h.restart(a,o,l),h)}const J0=a=>()=>a;function v5(a,{sourceEvent:o,target:l,transform:h,dispatch:g}){Object.defineProperties(this,{type:{value:a,enumerable:!0,configurable:!0},sourceEvent:{value:o,enumerable:!0,configurable:!0},target:{value:l,enumerable:!0,configurable:!0},transform:{value:h,enumerable:!0,configurable:!0},_:{value:g}})}function as(a,o,l){this.k=a,this.x=o,this.y=l}as.prototype={constructor:as,scale:function(a){return a===1?this:new as(this.k*a,this.x,this.y)},translate:function(a,o){return a===0&o===0?this:new as(this.k,this.x+this.k*a,this.y+this.k*o)},apply:function(a){return[a[0]*this.k+this.x,a[1]*this.k+this.y]},applyX:function(a){return a*this.k+this.x},applyY:function(a){return a*this.k+this.y},invert:function(a){return[(a[0]-this.x)/this.k,(a[1]-this.y)/this.k]},invertX:function(a){return(a-this.x)/this.k},invertY:function(a){return(a-this.y)/this.k},rescaleX:function(a){return a.copy().domain(a.range().map(this.invertX,this).map(a.invert,a))},rescaleY:function(a){return a.copy().domain(a.range().map(this.invertY,this).map(a.invert,a))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Q0=new as(1,0,0);function Cm(a){for(;!a.__zoom;)if(!(a=a.parentNode))return Q0;return a.__zoom}function S2(a){a.stopImmediatePropagation()}function Wh(a){a.preventDefault(),a.stopImmediatePropagation()}function x5(a){return!(a.ctrlKey&&a.type!=="wheel"||a.button)}function w5(){var a=this;return a instanceof SVGElement?(a=a.ownerSVGElement||a).hasAttribute("viewBox")?[[(a=a.viewBox.baseVal).x,a.y],[a.x+a.width,a.y+a.height]]:[[0,0],[a.width.baseVal.value,a.height.baseVal.value]]:[[0,0],[a.clientWidth,a.clientHeight]]}function Im(){return this.__zoom||Q0}function k5(a){return-a.deltaY*(a.deltaMode===1?.05:a.deltaMode?1:.002)*(a.ctrlKey?10:1)}function E5(){return navigator.maxTouchPoints||"ontouchstart"in this}function T5(a,o,l){var h=a.invertX(o[0][0])-l[0][0],g=a.invertX(o[1][0])-l[1][0],y=a.invertY(o[0][1])-l[0][1],w=a.invertY(o[1][1])-l[1][1];return a.translate(g>h?(h+g)/2:Math.min(0,h)||Math.max(0,g),w>y?(y+w)/2:Math.min(0,y)||Math.max(0,w))}function S5(){var a,o,l,h=x5,g=w5,y=T5,w=k5,k=E5,S=[0,1/0],I=[[-1/0,-1/0],[1/0,1/0]],B=250,$=Gp,P=un("start","zoom","end"),H=500,at=0,V=10;function Z(Tt){Tt.property("__zoom",Im).on("wheel.zoom",re,{passive:!1}).on("mousedown.zoom",_e).on("dblclick.zoom",Zt).filter(k).on("touchstart.zoom",$t).on("touchmove.zoom",Ht).on("touchend.zoom touchcancel.zoom",Wt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function K(Tt,Pt){return(Pt=Math.max(S[0],Math.min(S[1],Pt)))===Tt.k?Tt:new as(Pt,Tt.x,Tt.y)}function gt(Tt,Pt,Kt){var se=Pt[0]-Kt[0]*Tt.k,Ce=Pt[1]-Kt[1]*Tt.k;return se===Tt.x&&Ce===Tt.y?Tt:new as(Tt.k,se,Ce)}function ht(Tt){return[(+Tt[0][0]+ +Tt[1][0])/2,(+Tt[0][1]+ +Tt[1][1])/2]}function dt(Tt,Pt,Kt,se){Tt.on("start.zoom",function(){xt(this,arguments).event(se).start()}).on("interrupt.zoom end.zoom",function(){xt(this,arguments).event(se).end()}).tween("zoom",function(){var Ce=this,qe=arguments,Ke=xt(Ce,qe).event(se),yr=g.apply(Ce,qe),Je=Kt==null?ht(yr):typeof Kt=="function"?Kt.apply(Ce,qe):Kt,qr=Math.max(yr[1][0]-yr[0][0],yr[1][1]-yr[0][1]),Gr=Ce.__zoom,Dr=typeof Pt=="function"?Pt.apply(Ce,qe):Pt,zr=$(Gr.invert(Je).concat(qr/Gr.k),Dr.invert(Je).concat(qr/Dr.k));return function(An){if(An===1)An=Dr;else{var ln=zr(An),ja=qr/ln[2];An=new as(ja,Je[0]-ln[0]*ja,Je[1]-ln[1]*ja)}Ke.zoom(null,An)}})}function xt(Tt,Pt,Kt){return!Kt&&Tt.__zooming||new Et(Tt,Pt)}function Et(Tt,Pt){this.that=Tt,this.args=Pt,this.active=0,this.sourceEvent=null,this.extent=g.apply(Tt,Pt),this.taps=0}function re(Tt,...Pt){if(h.apply(this,arguments)){var Kt=xt(this,Pt).event(Tt),se=this.__zoom,Ce=Math.max(S[0],Math.min(S[1],se.k*Math.pow(2,w.apply(this,arguments)))),qe=ha(Tt);if(Kt.wheel)Kt.mouse[0][0]===qe[0]&&Kt.mouse[0][1]===qe[1]||(Kt.mouse[1]=se.invert(Kt.mouse[0]=qe)),clearTimeout(Kt.wheel);else{if(se.k===Ce)return;Kt.mouse=[qe,se.invert(qe)],ro(this),Kt.start()}Wh(Tt),Kt.wheel=setTimeout(Ke,150),Kt.zoom("mouse",y(gt(K(se,Ce),Kt.mouse[0],Kt.mouse[1]),Kt.extent,I))}function Ke(){Kt.wheel=null,Kt.end()}}function _e(Tt,...Pt){if(!l&&h.apply(this,arguments)){var Kt=Tt.currentTarget,se=xt(this,Pt,!0).event(Tt),Ce=Ei(Tt.view).on("mousemove.zoom",Je,!0).on("mouseup.zoom",qr,!0),qe=ha(Tt,Kt),Ke=Tt.clientX,yr=Tt.clientY;fo(Tt.view),S2(Tt),se.mouse=[qe,this.__zoom.invert(qe)],ro(this),se.start()}function Je(Gr){if(Wh(Gr),!se.moved){var Dr=Gr.clientX-Ke,zr=Gr.clientY-yr;se.moved=Dr*Dr+zr*zr>at}se.event(Gr).zoom("mouse",y(gt(se.that.__zoom,se.mouse[0]=ha(Gr,Kt),se.mouse[1]),se.extent,I))}function qr(Gr){Ce.on("mousemove.zoom mouseup.zoom",null),ss(Gr.view,se.moved),Wh(Gr),se.event(Gr).end()}}function Zt(Tt,...Pt){if(h.apply(this,arguments)){var Kt=this.__zoom,se=ha(Tt.changedTouches?Tt.changedTouches[0]:Tt,this),Ce=Kt.invert(se),qe=Kt.k*(Tt.shiftKey?.5:2),Ke=y(gt(K(Kt,qe),se,Ce),g.apply(this,Pt),I);Wh(Tt),B>0?Ei(this).transition().duration(B).call(dt,Ke,se,Tt):Ei(this).call(Z.transform,Ke,se,Tt)}}function $t(Tt,...Pt){if(h.apply(this,arguments)){var Kt,se,Ce,qe,Ke=Tt.touches,yr=Ke.length,Je=xt(this,Pt,Tt.changedTouches.length===yr).event(Tt);for(S2(Tt),se=0;se<yr;++se)qe=[qe=ha(Ce=Ke[se],this),this.__zoom.invert(qe),Ce.identifier],Je.touch0?Je.touch1||Je.touch0[2]===qe[2]||(Je.touch1=qe,Je.taps=0):(Je.touch0=qe,Kt=!0,Je.taps=1+!!a);a&&(a=clearTimeout(a)),Kt&&(Je.taps<2&&(o=qe[0],a=setTimeout(function(){a=null},H)),ro(this),Je.start())}}function Ht(Tt,...Pt){if(this.__zooming){var Kt,se,Ce,qe,Ke=xt(this,Pt).event(Tt),yr=Tt.changedTouches,Je=yr.length;for(Wh(Tt),Kt=0;Kt<Je;++Kt)Ce=ha(se=yr[Kt],this),Ke.touch0&&Ke.touch0[2]===se.identifier?Ke.touch0[0]=Ce:Ke.touch1&&Ke.touch1[2]===se.identifier&&(Ke.touch1[0]=Ce);if(se=Ke.that.__zoom,Ke.touch1){var qr=Ke.touch0[0],Gr=Ke.touch0[1],Dr=Ke.touch1[0],zr=Ke.touch1[1],An=(An=Dr[0]-qr[0])*An+(An=Dr[1]-qr[1])*An,ln=(ln=zr[0]-Gr[0])*ln+(ln=zr[1]-Gr[1])*ln;se=K(se,Math.sqrt(An/ln)),Ce=[(qr[0]+Dr[0])/2,(qr[1]+Dr[1])/2],qe=[(Gr[0]+zr[0])/2,(Gr[1]+zr[1])/2]}else{if(!Ke.touch0)return;Ce=Ke.touch0[0],qe=Ke.touch0[1]}Ke.zoom("touch",y(gt(se,Ce,qe),Ke.extent,I))}}function Wt(Tt,...Pt){if(this.__zooming){var Kt,se,Ce=xt(this,Pt).event(Tt),qe=Tt.changedTouches,Ke=qe.length;for(S2(Tt),l&&clearTimeout(l),l=setTimeout(function(){l=null},H),Kt=0;Kt<Ke;++Kt)se=qe[Kt],Ce.touch0&&Ce.touch0[2]===se.identifier?delete Ce.touch0:Ce.touch1&&Ce.touch1[2]===se.identifier&&delete Ce.touch1;if(Ce.touch1&&!Ce.touch0&&(Ce.touch0=Ce.touch1,delete Ce.touch1),Ce.touch0)Ce.touch0[1]=this.__zoom.invert(Ce.touch0[0]);else if(Ce.end(),Ce.taps===2&&(se=ha(se,this),Math.hypot(o[0]-se[0],o[1]-se[1])<V)){var yr=Ei(this).on("dblclick.zoom");yr&&yr.apply(this,arguments)}}}return Z.transform=function(Tt,Pt,Kt,se){var Ce=Tt.selection?Tt.selection():Tt;Ce.property("__zoom",Im),Tt!==Ce?dt(Tt,Pt,Kt,se):Ce.interrupt().each(function(){xt(this,arguments).event(se).start().zoom(null,typeof Pt=="function"?Pt.apply(this,arguments):Pt).end()})},Z.scaleBy=function(Tt,Pt,Kt,se){Z.scaleTo(Tt,function(){var Ce=this.__zoom.k,qe=typeof Pt=="function"?Pt.apply(this,arguments):Pt;return Ce*qe},Kt,se)},Z.scaleTo=function(Tt,Pt,Kt,se){Z.transform(Tt,function(){var Ce=g.apply(this,arguments),qe=this.__zoom,Ke=Kt==null?ht(Ce):typeof Kt=="function"?Kt.apply(this,arguments):Kt,yr=qe.invert(Ke),Je=typeof Pt=="function"?Pt.apply(this,arguments):Pt;return y(gt(K(qe,Je),Ke,yr),Ce,I)},Kt,se)},Z.translateBy=function(Tt,Pt,Kt,se){Z.transform(Tt,function(){return y(this.__zoom.translate(typeof Pt=="function"?Pt.apply(this,arguments):Pt,typeof Kt=="function"?Kt.apply(this,arguments):Kt),g.apply(this,arguments),I)},null,se)},Z.translateTo=function(Tt,Pt,Kt,se,Ce){Z.transform(Tt,function(){var qe=g.apply(this,arguments),Ke=this.__zoom,yr=se==null?ht(qe):typeof se=="function"?se.apply(this,arguments):se;return y(Q0.translate(yr[0],yr[1]).scale(Ke.k).translate(typeof Pt=="function"?-Pt.apply(this,arguments):-Pt,typeof Kt=="function"?-Kt.apply(this,arguments):-Kt),qe,I)},se,Ce)},Et.prototype={event:function(Tt){return Tt&&(this.sourceEvent=Tt),this},start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Tt,Pt){return this.mouse&&Tt!=="mouse"&&(this.mouse[1]=Pt.invert(this.mouse[0])),this.touch0&&Tt!=="touch"&&(this.touch0[1]=Pt.invert(this.touch0[0])),this.touch1&&Tt!=="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(Tt){var Pt=Ei(this.that).datum();P.call(Tt,this.that,new v5(Tt,{sourceEvent:this.sourceEvent,target:Z,type:Tt,transform:this.that.__zoom,dispatch:P}),Pt)}},Z.wheelDelta=function(Tt){return arguments.length?(w=typeof Tt=="function"?Tt:J0(+Tt),Z):w},Z.filter=function(Tt){return arguments.length?(h=typeof Tt=="function"?Tt:J0(!!Tt),Z):h},Z.touchable=function(Tt){return arguments.length?(k=typeof Tt=="function"?Tt:J0(!!Tt),Z):k},Z.extent=function(Tt){return arguments.length?(g=typeof Tt=="function"?Tt:J0([[+Tt[0][0],+Tt[0][1]],[+Tt[1][0],+Tt[1][1]]]),Z):g},Z.scaleExtent=function(Tt){return arguments.length?(S[0]=+Tt[0],S[1]=+Tt[1],Z):[S[0],S[1]]},Z.translateExtent=function(Tt){return arguments.length?(I[0][0]=+Tt[0][0],I[1][0]=+Tt[1][0],I[0][1]=+Tt[0][1],I[1][1]=+Tt[1][1],Z):[[I[0][0],I[0][1]],[I[1][0],I[1][1]]]},Z.constrain=function(Tt){return arguments.length?(y=Tt,Z):y},Z.duration=function(Tt){return arguments.length?(B=+Tt,Z):B},Z.interpolate=function(Tt){return arguments.length?($=Tt,Z):$},Z.on=function(){var Tt=P.on.apply(P,arguments);return Tt===P?Z:Tt},Z.clickDistance=function(Tt){return arguments.length?(at=(Tt=+Tt)*Tt,Z):Math.sqrt(at)},Z.tapDistance=function(Tt){return arguments.length?(V=+Tt,Z):V},Z}Cm.prototype=as.prototype}},e={};function n(f){var v=e[f];if(v!==void 0)return v.exports;var d=e[f]={id:f,loaded:!1,exports:{}};return t[f].call(d.exports,d,d.exports,n),d.loaded=!0,d.exports}n.c=e,n.n=f=>{var v=f&&f.__esModule?()=>f.default:()=>f;return n.d(v,{a:v}),v},n.d=(f,v)=>{for(var d in v)n.o(v,d)&&!n.o(f,d)&&Object.defineProperty(f,d,{enumerable:!0,get:v[d]})},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=(f,v)=>Object.prototype.hasOwnProperty.call(f,v),n.r=f=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})},n.nmd=f=>(f.paths=[],f.children||(f.children=[]),f);var r=n(n.s=6359).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],([f])=>{const v={...f,serialized:"",errorMarkers:[],error:void 0};try{v.serialized=serializeState(f),r.parse(f.code),JSON.parse(f.mermaid)}catch(d){if(v.error=d,console.error(d),d.hash)try{const _={severity:8,startLineNumber:d.hash.loc.first_line,startColumn:d.hash.loc.first_column,endLineNumber:d.hash.loc.last_line,endColumn:d.hash.loc.last_column+1,message:d.str};v.errorMarkers=[_]}catch(_){console.error("Error without line helper",_)}}return v}),loadState=f=>{let v;console.log(`Loading '${f}'`);try{v=deserializeState(f);const d=typeof v.mermaid=="string"?JSON.parse(v.mermaid):v.mermaid;d.securityLevel&&d.securityLevel!=="strict"&&confirm(`Removing "securityLevel":"${d.securityLevel}" from the config for safety.
|
|
Click Cancel if you trust the source of this Diagram.`)&&delete d.securityLevel,v.mermaid=JSON.stringify(d,null,2)}catch(d){v=get_store_value(inputStateStore),f&&(console.error("Init error",d),v.code=urlParseFailedState,v.mermaid=defaultState.mermaid)}updateCodeStore({...v,updateEditor:!0})},updateCodeStore=f=>{inputStateStore.update(v=>({...v,...f}))};let prompted=!1;const updateCode=(f,{updateEditor:v,updateDiagram:d=!1,resetPanZoom:_=!1})=>{if(saveStatistics(f),(f.match(/\n/g)||"").length+1>50&&!prompted&&get_store_value(stateStore).autoSync){const x=confirm(`Long diagram detected. Turn off Auto Sync? Use ${cmdKey} + Enter or click the sync logo to manually sync.`);prompted=!0,x&&updateCodeStore({autoSync:!1})}inputStateStore.update(x=>(_&&(x.pan=void 0,x.zoom=void 0),{...x,code:f,updateEditor:v,updateDiagram:d}))},updateConfig=(f,v)=>{inputStateStore.update(d=>({...d,mermaid:f,updateEditor:v}))},toggleDarkTheme=f=>{inputStateStore.update(v=>{const d=JSON.parse(v.mermaid);return(!d.theme||["dark","default"].includes(d.theme))&&(d.theme=f?"dark":"default"),{...v,mermaid:JSON.stringify(d,null,2),updateEditor:!0}})},initURLSubscription=()=>{stateStore.subscribe(({serialized:f})=>{history.replaceState(void 0,void 0,`#${f}`)})},getStateString=()=>JSON.stringify(get_store_value(inputStateStore));export{r as A,updateCodeStore as B,getAugmentedNamespace as C,logEvent as a,initHandler as b,loadingStateStore as c,syncDiagram as d,analytics as e,pakoSerde as f,encode as g,inputStateStore as h,injectHistoryIDs as i,historyStore as j,historyModeStore as k,localStorage as l,loaderHistoryStore as m,getStateString as n,getPreviousState as o,persist as p,addHistoryEntry as q,restoreHistory as r,stateStore as s,toggleDarkTheme as t,updateCode as u,clearHistoryData as v,debounceEnabled as w,cmdKey as x,updateConfig as y,commonjsGlobal as z};
|