@next-bricks/markdown 1.13.2 → 1.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/bricks.json +1 -1
  2. package/dist/chunks/1945.d498e798.js +2 -0
  3. package/dist/chunks/1945.d498e798.js.map +1 -0
  4. package/dist/chunks/6934.2253ad8b.js +2 -0
  5. package/dist/chunks/6934.2253ad8b.js.map +1 -0
  6. package/dist/chunks/{7768.25c15640.js → 7768.0fc422f7.js} +3 -3
  7. package/dist/chunks/{7768.25c15640.js.map → 7768.0fc422f7.js.map} +1 -1
  8. package/dist/chunks/8488.3ed7729b.js +3 -0
  9. package/dist/chunks/8488.3ed7729b.js.map +1 -0
  10. package/dist/chunks/eo-markdown-display.84640f41.js +2 -0
  11. package/dist/chunks/eo-markdown-display.84640f41.js.map +1 -0
  12. package/dist/chunks/eo-markdown-editor.59c2f466.js +2 -0
  13. package/dist/chunks/{eo-markdown-editor.a32213aa.js.map → eo-markdown-editor.59c2f466.js.map} +1 -1
  14. package/dist/chunks/{main.c451c922.js → main.125402d8.js} +2 -2
  15. package/dist/chunks/{main.c451c922.js.map → main.125402d8.js.map} +1 -1
  16. package/dist/{index.cb7e902d.js → index.c824a3e4.js} +2 -2
  17. package/dist/{index.cb7e902d.js.map → index.c824a3e4.js.map} +1 -1
  18. package/package.json +2 -2
  19. package/dist/chunks/5522.bbd6f76c.js +0 -3
  20. package/dist/chunks/5522.bbd6f76c.js.map +0 -1
  21. package/dist/chunks/6069.14414932.js +0 -2
  22. package/dist/chunks/6069.14414932.js.map +0 -1
  23. package/dist/chunks/6934.6b647c62.js +0 -2
  24. package/dist/chunks/6934.6b647c62.js.map +0 -1
  25. package/dist/chunks/eo-markdown-display.9c8150da.js +0 -2
  26. package/dist/chunks/eo-markdown-display.9c8150da.js.map +0 -1
  27. package/dist/chunks/eo-markdown-editor.a32213aa.js +0 -2
  28. /package/dist/chunks/{7768.25c15640.js.LICENSE.txt → 7768.0fc422f7.js.LICENSE.txt} +0 -0
  29. /package/dist/chunks/{5522.bbd6f76c.js.LICENSE.txt → 8488.3ed7729b.js.LICENSE.txt} +0 -0
@@ -1,3 +0,0 @@
1
- /*! For license information please see 5522.bbd6f76c.js.LICENSE.txt */
2
- (globalThis.webpackChunk_next_bricks_markdown=globalThis.webpackChunk_next_bricks_markdown||[]).push([[5522],{45:(t,e,n)=>{"use strict";n.d(e,{l:()=>k});var r=n(659),i=n(9710),o=n(9820);function u(t){if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)}var a=n(4934),s=n(4435);const l=function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');p(t);let n,r=0,i=-1,o=t.length;if(void 0===e||0===e.length||e.length>t.length){for(;o--;)if(47===t.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":t.slice(r,i)}if(e===t)return"";let u=-1,a=e.length-1;for(;o--;)if(47===t.codePointAt(o)){if(n){r=o+1;break}}else u<0&&(n=!0,u=o+1),a>-1&&(t.codePointAt(o)===e.codePointAt(a--)?a<0&&(i=o):(a=-1,i=u));return r===i?i=u:i<0&&(i=t.length),t.slice(r,i)},c=function(t){if(p(t),0===t.length)return".";let e,n=-1,r=t.length;for(;--r;)if(47===t.codePointAt(r)){if(e){n=r;break}}else e||(e=!0);return n<0?47===t.codePointAt(0)?"/":".":1===n&&47===t.codePointAt(0)?"//":t.slice(0,n)},h=function(t){p(t);let e,n=t.length,r=-1,i=0,o=-1,u=0;for(;n--;){const a=t.codePointAt(n);if(47!==a)r<0&&(e=!0,r=n+1),46===a?o<0?o=n:1!==u&&(u=1):o>-1&&(u=-1);else if(e){i=n+1;break}}return o<0||r<0||0===u||1===u&&o===r-1&&o===i+1?"":t.slice(o,r)},d=function(...t){let e,n=-1;for(;++n<t.length;)p(t[n]),t[n]&&(e=void 0===e?t[n]:e+"/"+t[n]);return void 0===e?".":function(t){p(t);const e=47===t.codePointAt(0);let n=function(t,e){let n,r,i="",o=0,u=-1,a=0,s=-1;for(;++s<=t.length;){if(s<t.length)n=t.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(u===s-1||1===a);else if(u!==s-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),u=s,a=0;continue}}else if(i.length>0){i="",o=0,u=s,a=0;continue}e&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+t.slice(u+1,s):i=t.slice(u+1,s),o=s-u-1;u=s,a=0}else 46===n&&a>-1?a++:a=-1}return i}(t,!e);return 0!==n.length||e||(n="."),n.length>0&&47===t.codePointAt(t.length-1)&&(n+="/"),e?"/"+n:n}(e)},f="/";function p(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const g=function(){return"/"};function m(t){return Boolean(null!==t&&"object"==typeof t&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&void 0===t.auth)}const F=["history","path","basename","stem","extname","dirname"];class y{constructor(t){let e;e=t?m(t)?{path:t}:"string"==typeof t||function(t){return Boolean(t&&"object"==typeof t&&"byteLength"in t&&"byteOffset"in t)}(t)?{value:t}:t:{},this.cwd=g(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<F.length;){const t=F[r];t in e&&void 0!==e[t]&&null!==e[t]&&(this[t]="history"===t?[...e[t]]:e[t])}for(n in e)F.includes(n)||(this[n]=e[n])}get basename(){return"string"==typeof this.path?l(this.path):void 0}set basename(t){C(t,"basename"),A(t,"basename"),this.path=d(this.dirname||"",t)}get dirname(){return"string"==typeof this.path?c(this.path):void 0}set dirname(t){x(this.basename,"dirname"),this.path=d(t||"",this.basename)}get extname(){return"string"==typeof this.path?h(this.path):void 0}set extname(t){if(A(t,"extname"),x(this.dirname,"extname"),t){if(46!==t.codePointAt(0))throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=d(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){m(t)&&(t=function(t){if("string"==typeof t)t=new URL(t);else if(!m(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if("file:"!==t.protocol){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return function(t){if(""!==t.hostname){const t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}const e=t.pathname;let n=-1;for(;++n<e.length;)if(37===e.codePointAt(n)&&50===e.codePointAt(n+1)){const t=e.codePointAt(n+2);if(70===t||102===t){const t=new TypeError("File URL path must not include encoded / characters");throw t.code="ERR_INVALID_FILE_URL_PATH",t}}return decodeURIComponent(e)}(t)}(t)),C(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return"string"==typeof this.path?l(this.path,this.extname):void 0}set stem(t){C(t,"stem"),A(t,"stem"),this.path=d(this.dirname||"",t+(this.extname||""))}fail(t,e,n){const r=this.message(t,e,n);throw r.fatal=!0,r}info(t,e,n){const r=this.message(t,e,n);return r.fatal=void 0,r}message(t,e,n){const r=new s.o(t,e,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(t||void 0).decode(this.value)}}function A(t,e){if(t&&t.includes(f))throw new Error("`"+e+"` cannot be a path: did not expect `"+f+"`")}function C(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function x(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}const b=function(t){const e=this.constructor.prototype,n=e[t],r=function(){return n.apply(r,arguments)};Object.setPrototypeOf(r,e);const i=Object.getOwnPropertyNames(n);for(const t of i){const e=Object.getOwnPropertyDescriptor(n,t);e&&Object.defineProperty(r,t,e)}return r},D={}.hasOwnProperty;class E extends b{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=(0,a.S)()}copy(){const t=new E;let e=-1;for(;++e<this.attachers.length;){const n=this.attachers[e];t.use(...n)}return t.data(i(!0,{},this.namespace)),t}data(t,e){return"string"==typeof t?2===arguments.length?(v("data",this.frozen),this.namespace[t]=e,this):D.call(this.namespace,t)&&this.namespace[t]||void 0:t?(v("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[e,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=e.call(t,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const e=T(t),n=this.parser||this.Parser;return B("parse",n),n(String(e),e)}process(t,e){const n=this;return this.freeze(),B("process",this.parser||this.Parser),w("process",this.compiler||this.Compiler),e?r(void 0,e):new Promise(r);function r(r,i){const u=T(t),a=n.parse(u);function s(t,n){t||!n?i(t):r?r(n):((0,o.ok)(e,"`done` is defined if `resolve` is not"),e(void 0,n))}n.run(a,u,(function(t,e,r){if(t||!e||!r)return s(t);const i=e,o=n.stringify(i,r);var u;"string"==typeof(u=o)||function(t){return Boolean(t&&"object"==typeof t&&"byteLength"in t&&"byteOffset"in t)}(u)?r.value=o:r.result=o,s(t,r)}))}}processSync(t){let e,n=!1;return this.freeze(),B("processSync",this.parser||this.Parser),w("processSync",this.compiler||this.Compiler),this.process(t,(function(t,i){n=!0,(0,r.V)(t),e=i})),S("processSync","process",n),(0,o.ok)(e,"we either bailed on an error or have a tree"),e}run(t,e,n){_(t),this.freeze();const r=this.transformers;return n||"function"!=typeof e||(n=e,e=void 0),n?i(void 0,n):new Promise(i);function i(i,u){(0,o.ok)("function"!=typeof e,"`file` can’t be a `done` anymore, we checked");const a=T(e);r.run(t,a,(function(e,r,a){const s=r||t;e?u(e):i?i(s):((0,o.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,s,a))}))}}runSync(t,e){let n,i=!1;return this.run(t,e,(function(t,e){(0,r.V)(t),n=e,i=!0})),S("runSync","run",i),(0,o.ok)(n,"we either bailed on an error or have a tree"),n}stringify(t,e){this.freeze();const n=T(e),r=this.compiler||this.Compiler;return w("stringify",r),_(t),r(t,n)}use(t,...e){const n=this.attachers,r=this.namespace;if(v("use",this.frozen),null==t);else if("function"==typeof t)l(t,e);else{if("object"!=typeof t)throw new TypeError("Expected usable value, not `"+t+"`");Array.isArray(t)?s(t):a(t)}return this;function o(t){if("function"==typeof t)l(t,[]);else{if("object"!=typeof t)throw new TypeError("Expected usable value, not `"+t+"`");if(Array.isArray(t)){const[e,...n]=t;l(e,n)}else a(t)}}function a(t){if(!("plugins"in t)&&!("settings"in t))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(t.plugins),t.settings&&(r.settings=i(!0,r.settings,t.settings))}function s(t){let e=-1;if(null==t);else{if(!Array.isArray(t))throw new TypeError("Expected a list of plugins, not `"+t+"`");for(;++e<t.length;)o(t[e])}}function l(t,e){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===t){o=r;break}if(-1===o)n.push([t,...e]);else if(e.length>0){let[r,...a]=e;const s=n[o][1];u(s)&&u(r)&&(r=i(!0,s,r)),n[o]=[t,r,...a]}}}}const k=(new E).freeze();function B(t,e){if("function"!=typeof e)throw new TypeError("Cannot `"+t+"` without `parser`")}function w(t,e){if("function"!=typeof e)throw new TypeError("Cannot `"+t+"` without `compiler`")}function v(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _(t){if(!u(t)||"string"!=typeof t.type)throw new TypeError("Expected node, got `"+t+"`")}function S(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function T(t){return function(t){return Boolean(t&&"object"==typeof t&&"message"in t&&"messages"in t)}(t)?t:new y(t)}},84:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},123:(t,e,n)=>{"use strict";n.d(e,{A:()=>m});var r=n(405);const i=n(9600).A["__core-js_shared__"];var o,u=(o=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";var a=n(7942),s=n(1548),l=/^\[object .+?Constructor\]$/,c=Function.prototype,h=Object.prototype,d=c.toString,f=h.hasOwnProperty,p=RegExp("^"+d.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const g=function(t){return!(!(0,a.A)(t)||(e=t,u&&u in e))&&((0,r.A)(t)?p:l).test((0,s.A)(t));var e},m=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return g(n)?n:void 0}},248:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(6713),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,u=o&&o.exports===i&&r.A.process;const a=function(){try{return o&&o.require&&o.require("util").types||u&&u.binding&&u.binding("util")}catch(t){}}()},347:(t,e,n)=>{"use strict";n.d(e,{W6:()=>Zt,GZ:()=>ee,WY:()=>Pt,pC:()=>Ot,hE:()=>te,Gc:()=>Mt});var r=n(5323),i=n(8084);const o=(t,e)=>!!t&&!(!(e&&""===t.prefix||t.prefix)||!t.name),u=Object.freeze({left:0,top:0,width:16,height:16}),a=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),s=Object.freeze({...u,...a}),l=Object.freeze({...s,body:"",hidden:!1});function c(t,e){const n=function(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}(t,e);for(const r in l)r in a?r in t&&!(r in n)&&(n[r]=a[r]):r in e?n[r]=e[r]:r in t&&(n[r]=t[r]);return n}function h(t,e,n){const r=t.icons,i=t.aliases||Object.create(null);let o={};function u(t){o=c(r[t]||i[t],o)}return u(e),n.forEach(u),c(t,o)}const d=Object.freeze({width:null,height:null}),f=Object.freeze({...d,...a}),p=/(-?[0-9.]*[0-9]+[0-9.]*)/g,g=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function m(t,e,n){if(1===e)return t;if(n=n||100,"number"==typeof t)return Math.ceil(t*e*n)/n;if("string"!=typeof t)return t;const r=t.split(p);if(null===r||!r.length)return t;const i=[];let o=r.shift(),u=g.test(o);for(;;){if(u){const t=parseFloat(o);isNaN(t)?i.push(o):i.push(Math.ceil(t*e*n)/n)}else i.push(o);if(o=r.shift(),void 0===o)return i.join("");u=!u}}const F=/\sid="(\S+)"/g,y="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let A=0;var C=n(3213);var x={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function b(t){x=t}var D={exec:()=>null};function E(t,e=""){let n="string"==typeof t?t:t.source,r={replace:(t,e)=>{let i="string"==typeof e?e:e.source;return i=i.replace(k.caret,"$1"),n=n.replace(t,i),r},getRegex:()=>new RegExp(n,e)};return r}var k={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},B=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,w=/(?:[*+-]|\d{1,9}[.)])/,v=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_=E(v).replace(/bull/g,w).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),S=E(v).replace(/bull/g,w).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),T=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,M=/(?!\s*\])(?:\\.|[^\[\]\\])+/,L=E(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",M).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$=E(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,w).getRegex(),O="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",I=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,R=E("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",I).replace("tag",O).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),P=E(T).replace("hr",B).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),z={blockquote:E(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",P).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:L,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:B,html:R,lheading:_,list:$,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:P,table:D,text:/^[^\n]+/},N=E("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",B).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),j={...z,lheading:S,table:N,paragraph:E(T).replace("hr",B).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",N).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex()},q={...z,html:E("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",I).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:D,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:E(T).replace("hr",B).replace("heading"," *#{1,6} *[^\n]").replace("lheading",_).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},K=/^( {2,}|\\)\n(?!\s*$)/,W=/[\p{P}\p{S}]/u,H=/[\s\p{P}\p{S}]/u,U=/[^\s\p{P}\p{S}]/u,Y=E(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,H).getRegex(),G=/(?!~)[\p{P}\p{S}]/u,V=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,X=E(V,"u").replace(/punct/g,W).getRegex(),Z=E(V,"u").replace(/punct/g,G).getRegex(),Q="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",J=E(Q,"gu").replace(/notPunctSpace/g,U).replace(/punctSpace/g,H).replace(/punct/g,W).getRegex(),tt=E(Q,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,G).getRegex(),et=E("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,U).replace(/punctSpace/g,H).replace(/punct/g,W).getRegex(),nt=E(/\\(punct)/,"gu").replace(/punct/g,W).getRegex(),rt=E(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),it=E(I).replace("(?:--\x3e|$)","--\x3e").getRegex(),ot=E("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",it).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ut=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,at=E(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ut).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),st=E(/^!?\[(label)\]\[(ref)\]/).replace("label",ut).replace("ref",M).getRegex(),lt=E(/^!?\[(ref)\](?:\[\])?/).replace("ref",M).getRegex(),ct={_backpedal:D,anyPunctuation:nt,autolink:rt,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,br:K,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:D,emStrongLDelim:X,emStrongRDelimAst:J,emStrongRDelimUnd:et,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:at,nolink:lt,punctuation:Y,reflink:st,reflinkSearch:E("reflink|nolink(?!\\()","g").replace("reflink",st).replace("nolink",lt).getRegex(),tag:ot,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:D},ht={...ct,link:E(/^!?\[(label)\]\((.*?)\)/).replace("label",ut).getRegex(),reflink:E(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ut).getRegex()},dt={...ct,emStrongRDelimAst:tt,emStrongLDelim:Z,url:E(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},ft={...dt,br:E(K).replace("{2,}","*").getRegex(),text:E(dt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},pt={normal:z,gfm:j,pedantic:q},gt={normal:ct,gfm:dt,breaks:ft,pedantic:ht},mt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ft=t=>mt[t];function yt(t,e){if(e){if(k.escapeTest.test(t))return t.replace(k.escapeReplace,Ft)}else if(k.escapeTestNoEncode.test(t))return t.replace(k.escapeReplaceNoEncode,Ft);return t}function At(t){try{t=encodeURI(t).replace(k.percentDecode,"%")}catch{return null}return t}function Ct(t,e){let n=t.replace(k.findPipe,((t,e,n)=>{let r=!1,i=e;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(k.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(k.slashPipe,"|");return n}function xt(t,e,n){let r=t.length;if(0===r)return"";let i=0;for(;i<r;){let o=t.charAt(r-i-1);if(o!==e||n){if(o===e||!n)break;i++}else i++}return t.slice(0,r-i)}function bt(t,e,n,r,i){let o=e.href,u=e.title||null,a=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:"!"===t[0].charAt(0)?"image":"link",raw:n,href:o,title:u,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,s}var Dt=class{options;rules;lexer;constructor(t){this.options=t||x}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:xt(t,"\n")}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],n=function(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(null===r)return e;let i=r[1];return e.split("\n").map((t=>{let e=t.match(n.other.beginningSpace);if(null===e)return t;let[r]=e;return r.length>=i.length?t.slice(i.length):t})).join("\n")}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=xt(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:xt(e[0],"\n")}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=xt(e[0],"\n").split("\n"),n="",r="",i=[];for(;t.length>0;){let e,o=!1,u=[];for(e=0;e<t.length;e++)if(this.rules.other.blockquoteStart.test(t[e]))u.push(t[e]),o=!0;else{if(o)break;u.push(t[e])}t=t.slice(e);let a=u.join("\n"),s=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${a}`:a,r=r?`${r}\n${s}`:s;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(s,i,!0),this.lexer.state.top=l,0===t.length)break;let c=i.at(-1);if("code"===c?.type)break;if("blockquote"===c?.type){let e=c,o=e.raw+"\n"+t.join("\n"),u=this.blockquote(o);i[i.length-1]=u,n=n.substring(0,n.length-e.raw.length)+u.raw,r=r.substring(0,r.length-e.text.length)+u.text;break}if("list"!==c?.type);else{let e=c,o=e.raw+"\n"+t.join("\n"),u=this.list(o);i[i.length-1]=u,n=n.substring(0,n.length-c.raw.length)+u.raw,r=r.substring(0,r.length-e.raw.length)+u.raw,t=o.substring(i.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let o=this.rules.other.listItemRegex(n),u=!1;for(;t;){let n=!1,r="",a="";if(!(e=o.exec(t))||this.rules.block.hr.test(t))break;r=e[0],t=t.substring(r.length);let s=e[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,(t=>" ".repeat(3*t.length))),l=t.split("\n",1)[0],c=!s.trim(),h=0;if(this.options.pedantic?(h=2,a=s.trimStart()):c?h=e[1].length+1:(h=e[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,a=s.slice(h),h+=e[1].length),c&&this.rules.other.blankLine.test(l)&&(r+=l+"\n",t=t.substring(l.length+1),n=!0),!n){let e=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),o=this.rules.other.headingBeginRegex(h),u=this.rules.other.htmlBeginRegex(h);for(;t;){let d,f=t.split("\n",1)[0];if(l=f,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting," "),d=l):d=l.replace(this.rules.other.tabCharGlobal," "),i.test(l)||o.test(l)||u.test(l)||e.test(l)||n.test(l))break;if(d.search(this.rules.other.nonSpaceChar)>=h||!l.trim())a+="\n"+d.slice(h);else{if(c||s.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(s)||o.test(s)||n.test(s))break;a+="\n"+l}!c&&!l.trim()&&(c=!0),r+=f+"\n",t=t.substring(f.length+1),s=d.slice(h)}}i.loose||(u?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(u=!0));let d,f=null;this.options.gfm&&(f=this.rules.other.listIsTask.exec(a),f&&(d="[ ] "!==f[0],a=a.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:r,task:!!f,checked:d,loose:!1,text:a,tokens:[]}),i.raw+=r}let a=i.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),i.raw=i.raw.trimEnd();for(let t=0;t<i.items.length;t++)if(this.lexer.state.top=!1,i.items[t].tokens=this.lexer.blockTokens(i.items[t].text,[]),!i.loose){let e=i.items[t].tokens.filter((t=>"space"===t.type)),n=e.length>0&&e.some((t=>this.rules.other.anyLine.test(t.raw)));i.loose=n}if(i.loose)for(let t=0;t<i.items.length;t++)i.items[t].loose=!0;return i}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:n,title:r}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=Ct(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let t of r)this.rules.other.tableAlignRight.test(t)?o.align.push("right"):this.rules.other.tableAlignCenter.test(t)?o.align.push("center"):this.rules.other.tableAlignLeft.test(t)?o.align.push("left"):o.align.push(null);for(let t=0;t<n.length;t++)o.header.push({text:n[t],tokens:this.lexer.inline(n[t]),header:!0,align:o.align[t]});for(let t of i)o.rows.push(Ct(t,o.header.length).map(((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:o.align[e]}))));return o}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=xt(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t,e){if(-1===t.indexOf(e[1]))return-1;let n=0;for(let r=0;r<t.length;r++)if("\\"===t[r])r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}(e[2],"()");if(-2===t)return;if(t>-1){let n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(n);t&&(n=t[1],r=t[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n.slice(1):n.slice(1,-1)),bt(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let t=e[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return bt(n,t,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,i,o=[...r[0]].length-1,u=o,a=0,s="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(s.lastIndex=0,e=e.slice(-1*t.length+o);null!=(r=s.exec(e));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(i=[...n].length,r[3]||r[4]){u+=i;continue}if((r[5]||r[6])&&o%3&&!((o+i)%3)){a+=i;continue}if(u-=i,u>0)continue;i=Math.min(i,i+u+a);let e=[...r[0]][0].length,s=t.slice(0,o+r.index+e+i);if(Math.min(o,i)%2){let t=s.slice(1,-1);return{type:"em",raw:s,text:t,tokens:this.lexer.inlineTokens(t)}}let l=s.slice(2,-2);return{type:"strong",raw:s,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,n;return"@"===e[2]?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,n;if("@"===e[2])t=e[0],n="mailto:"+t;else{let r;do{r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??""}while(r!==e[0]);t=e[0],n="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},Et=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||x,this.options.tokenizer=this.options.tokenizer||new Dt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:k,block:pt.normal,inline:gt.normal};this.options.pedantic?(e.block=pt.pedantic,e.inline=gt.pedantic):this.options.gfm&&(e.block=pt.gfm,this.options.breaks?e.inline=gt.breaks:e.inline=gt.gfm),this.tokenizer.rules=e}static get rules(){return{block:pt,inline:gt}}static lex(e,n){return new t(n).lex(e)}static lexInline(e,n){return new t(n).inlineTokens(e)}lex(t){t=t.replace(k.carriageReturn,"\n"),this.blockTokens(t,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],n=!1){for(this.options.pedantic&&(t=t.replace(k.tabCharGlobal," ").replace(k.spaceLine,""));t;){let r;if(this.options.extensions?.block?.some((n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0))))continue;if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length);let n=e.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length);let n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length);let n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),e.push(r);continue}let i=t;if(this.options.extensions?.startBlock){let e,n=1/0,r=t.slice(1);this.options.extensions.startBlock.forEach((t=>{e=t.call({lexer:this},r),"number"==typeof e&&e>=0&&(n=Math.min(n,e))})),n<1/0&&n>=0&&(i=t.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let o=e.at(-1);n&&"paragraph"===o?.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):e.push(r),n=i.length!==t.length,t=t.substring(r.raw.length)}else if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length);let n=e.at(-1);"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):e.push(r)}else if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n=t,r=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n));)t.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,o="";for(;t;){let r;if(i||(o=""),i=!1,this.options.extensions?.inline?.some((n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0))))continue;if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);let n=e.at(-1);"text"===r.type&&"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if(r=this.tokenizer.emStrong(t,n,o)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),e.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),e.push(r);continue}let u=t;if(this.options.extensions?.startInline){let e,n=1/0,r=t.slice(1);this.options.extensions.startInline.forEach((t=>{e=t.call({lexer:this},r),"number"==typeof e&&e>=0&&(n=Math.min(n,e))})),n<1/0&&n>=0&&(u=t.substring(0,n+1))}if(r=this.tokenizer.inlineText(u)){t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),i=!0;let n=e.at(-1);"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):e.push(r)}else if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return e}},kt=class{options;parser;constructor(t){this.options=t||x}space(t){return""}code({text:t,lang:e,escaped:n}){let r=(e||"").match(k.notSpaceStart)?.[0],i=t.replace(k.endingNewline,"")+"\n";return r?'<pre><code class="language-'+yt(r)+'">'+(n?i:yt(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:yt(i,!0))+"</code></pre>\n"}blockquote({tokens:t}){return`<blockquote>\n${this.parser.parse(t)}</blockquote>\n`}html({text:t}){return t}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>\n`}hr(t){return"<hr>\n"}list(t){let e=t.ordered,n=t.start,r="";for(let e=0;e<t.items.length;e++){let n=t.items[e];r+=this.listitem(n)}let i=e?"ol":"ul";return"<"+i+(e&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(t){let e="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?"paragraph"===t.tokens[0]?.type?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=n+" "+yt(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>\n`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>\n`}table(t){let e="",n="";for(let e=0;e<t.header.length;e++)n+=this.tablecell(t.header[e]);e+=this.tablerow({text:n});let r="";for(let e=0;e<t.rows.length;e++){let i=t.rows[e];n="";for(let t=0;t<i.length;t++)n+=this.tablecell(i[t]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+r+"</table>\n"}tablerow({text:t}){return`<tr>\n${t}</tr>\n`}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${yt(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let r=this.parser.parseInline(n),i=At(t);if(null===i)return r;let o='<a href="'+(t=i)+'"';return e&&(o+=' title="'+yt(e)+'"'),o+=">"+r+"</a>",o}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=At(t);if(null===i)return yt(n);let o=`<img src="${t=i}" alt="${n}"`;return e&&(o+=` title="${yt(e)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:yt(t.text)}},Bt=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},wt=class t{options;renderer;textRenderer;constructor(t){this.options=t||x,this.options.renderer=this.options.renderer||new kt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Bt}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(t,e=!0){let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let t=i,e=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(t.type)){n+=e||"";continue}}let o=i;switch(o.type){case"space":n+=this.renderer.space(o);continue;case"hr":n+=this.renderer.hr(o);continue;case"heading":n+=this.renderer.heading(o);continue;case"code":n+=this.renderer.code(o);continue;case"table":n+=this.renderer.table(o);continue;case"blockquote":n+=this.renderer.blockquote(o);continue;case"list":n+=this.renderer.list(o);continue;case"html":n+=this.renderer.html(o);continue;case"paragraph":n+=this.renderer.paragraph(o);continue;case"text":{let i=o,u=this.renderer.text(i);for(;r+1<t.length&&"text"===t[r+1].type;)i=t[++r],u+="\n"+this.renderer.text(i);n+=e?this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):u;continue}default:{let t='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return n}parseInline(t,e=this.renderer){let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let t=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=t||"";continue}}let o=i;switch(o.type){case"escape":case"text":n+=e.text(o);break;case"html":n+=e.html(o);break;case"link":n+=e.link(o);break;case"image":n+=e.image(o);break;case"strong":n+=e.strong(o);break;case"em":n+=e.em(o);break;case"codespan":n+=e.codespan(o);break;case"br":n+=e.br(o);break;case"del":n+=e.del(o);break;default:{let t='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return n}},vt=class{options;block;constructor(t){this.options=t||x}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Et.lex:Et.lexInline}provideParser(){return this.block?wt.parse:wt.parseInline}},_t=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=wt;Renderer=kt;TextRenderer=Bt;Lexer=Et;Tokenizer=Dt;Hooks=vt;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{let t=r;for(let r of t.header)n=n.concat(this.walkTokens(r.tokens,e));for(let r of t.rows)for(let t of r)n=n.concat(this.walkTokens(t.tokens,e));break}case"list":{let t=r;n=n.concat(this.walkTokens(t.items,e));break}default:{let t=r;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach((r=>{let i=t[r].flat(1/0);n=n.concat(this.walkTokens(i,e))})):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach((t=>{let n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let n=e.renderers[t.name];e.renderers[t.name]=n?function(...e){let r=t.renderer.apply(this,e);return!1===r&&(r=n.apply(this,e)),r}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");let n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),n.extensions=e),t.renderer){let e=this.defaults.renderer||new kt(this.defaults);for(let n in t.renderer){if(!(n in e))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,i=t.renderer[r],o=e[r];e[r]=(...t)=>{let n=i.apply(e,t);return!1===n&&(n=o.apply(e,t)),n||""}}n.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new Dt(this.defaults);for(let n in t.tokenizer){if(!(n in e))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,i=t.tokenizer[r],o=e[r];e[r]=(...t)=>{let n=i.apply(e,t);return!1===n&&(n=o.apply(e,t)),n}}n.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new vt;for(let n in t.hooks){if(!(n in e))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,i=t.hooks[r],o=e[r];vt.passThroughHooks.has(n)?e[r]=t=>{if(this.defaults.async)return Promise.resolve(i.call(e,t)).then((t=>o.call(e,t)));let n=i.call(e,t);return o.call(e,n)}:e[r]=(...t)=>{let n=i.apply(e,t);return!1===n&&(n=o.apply(e,t)),n}}n.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,r=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(r.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return Et.lex(t,e??this.defaults)}parser(t,e){return wt.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||null===e)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=t);let u=i.hooks?i.hooks.provideLexer():t?Et.lex:Et.lexInline,a=i.hooks?i.hooks.provideParser():t?wt.parse:wt.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(e):e).then((t=>u(t,i))).then((t=>i.hooks?i.hooks.processAllTokens(t):t)).then((t=>i.walkTokens?Promise.all(this.walkTokens(t,i.walkTokens)).then((()=>t)):t)).then((t=>a(t,i))).then((t=>i.hooks?i.hooks.postprocess(t):t)).catch(o);try{i.hooks&&(e=i.hooks.preprocess(e));let t=u(e,i);i.hooks&&(t=i.hooks.processAllTokens(t)),i.walkTokens&&this.walkTokens(t,i.walkTokens);let n=a(t,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(t){return o(t)}}}onError(t,e){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t){let t="<p>An error occurred:</p><pre>"+yt(n.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}};function St(t,e){return _t.parse(t,e)}St.options=St.setOptions=function(t){return _t.setOptions(t),St.defaults=_t.defaults,b(St.defaults),St},St.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},St.defaults=x,St.use=function(...t){return _t.use(...t),St.defaults=_t.defaults,b(St.defaults),St},St.walkTokens=function(t,e){return _t.walkTokens(t,e)},St.parseInline=_t.parseInline,St.Parser=wt,St.parser=wt.parse,St.Renderer=kt,St.TextRenderer=Bt,St.Lexer=Et,St.lexer=Et.lex,St.Tokenizer=Dt,St.Hooks=vt,St.parse=St,St.options,St.setOptions,St.use,St.walkTokens,St.parseInline,wt.parse,Et.lex;var Tt=n(8968),Mt={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},Lt=new Map,$t=new Map,Ot=(0,i.K2)((t=>{for(const e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.Rm.debug("Registering icon pack:",e.name),"loader"in e)$t.set(e.name,e.loader);else{if(!("icons"in e))throw i.Rm.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.');Lt.set(e.name,e.icons)}}}),"registerIconPacks"),It=(0,i.K2)((async(t,e)=>{const n=((t,e,n,r="")=>{const i=t.split(":");if("@"===t.slice(0,1)){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const t=i.pop(),n=i.pop(),u={provider:i.length>0?i[0]:r,prefix:n,name:t};return e&&!o(u)?null:u}const u=i[0],a=u.split("-");if(a.length>1){const t={provider:r,prefix:a.shift(),name:a.join("-")};return e&&!o(t)?null:t}if(n&&""===r){const t={provider:r,prefix:"",name:u};return e&&!o(t,n)?null:t}return null})(t,!0,void 0!==e);if(!n)throw new Error(`Invalid icon name: ${t}`);const r=n.prefix||e;if(!r)throw new Error(`Icon name must contain a prefix: ${t}`);let u=Lt.get(r);if(!u){const t=$t.get(r);if(!t)throw new Error(`Icon set not found: ${n.prefix}`);try{u={...await t(),prefix:r},Lt.set(r,u)}catch(t){throw i.Rm.error(t),new Error(`Failed to load icon set: ${n.prefix}`)}}const a=function(t,e){if(t.icons[e])return h(t,e,[]);const n=function(t,e){const n=t.icons,r=t.aliases||Object.create(null),i=Object.create(null);return(e||Object.keys(n).concat(Object.keys(r))).forEach((function t(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;const n=r[e]&&r[e].parent,o=n&&t(n);o&&(i[e]=[n].concat(o))}return i[e]})),i}(t,[e])[e];return n?h(t,e,n):null}(u,n.name);if(!a)throw new Error(`Icon not found: ${t}`);return a}),"getRegisteredIconData"),Rt=(0,i.K2)((async t=>{try{return await It(t),!0}catch{return!1}}),"isIconAvailable"),Pt=(0,i.K2)((async(t,e,n)=>{let r;try{r=await It(t,e?.fallbackPrefix)}catch(t){i.Rm.error(t),r=Mt}const o=function(t,e){const n={...s,...t},r={...f,...e},i={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach((t=>{const e=[],n=t.hFlip,r=t.vFlip;let u,a=t.rotate;switch(n?r?a+=2:(e.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),e.push("scale(-1 1)"),i.top=i.left=0):r&&(e.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),e.push("scale(1 -1)"),i.top=i.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:u=i.height/2+i.top,e.unshift("rotate(90 "+u.toString()+" "+u.toString()+")");break;case 2:e.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:u=i.width/2+i.left,e.unshift("rotate(-90 "+u.toString()+" "+u.toString()+")")}a%2==1&&(i.left!==i.top&&(u=i.left,i.left=i.top,i.top=u),i.width!==i.height&&(u=i.width,i.width=i.height,i.height=u)),e.length&&(o=function(t,e){const n=function(t,e="defs"){let n="";const r=t.indexOf("<"+e);for(;r>=0;){const i=t.indexOf(">",r),o=t.indexOf("</"+e);if(-1===i||-1===o)break;const u=t.indexOf(">",o);if(-1===u)break;n+=t.slice(i+1,o).trim(),t=t.slice(0,r).trim()+t.slice(u+1)}return{defs:n,content:t}}(t);return r=n.defs,i=e+n.content+"</g>",r?"<defs>"+r+"</defs>"+i:i;var r,i}(o,'<g transform="'+e.join(" ")+'">'))}));const u=r.width,a=r.height,l=i.width,c=i.height;let h,d;null===u?(d=null===a?"1em":"auto"===a?c:a,h=m(d,l/c)):(h="auto"===u?l:u,d=null===a?m(h,c/l):"auto"===a?c:a);const p={},g=(t,e)=>{(t=>"unset"===t||"undefined"===t||"none"===t)(e)||(p[t]=e.toString())};g("width",h),g("height",d);const F=[i.left,i.top,l,c];return p.viewBox=F.join(" "),{attributes:p,viewBox:F,body:o}}(r,e);return function(t,e){let n=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const t in e)n+=" "+t+'="'+e[t]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}(function(t,e=y){const n=[];let r;for(;r=F.exec(t);)n.push(r[1]);if(!n.length)return t;const i="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const r="function"==typeof e?e(n):e+(A++).toString(),o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")})),t=t.replace(new RegExp(i,"g"),"")}(o.body),{...o.attributes,...n})}),"getIconSVG");function zt(t,{markdownAutoWrap:e}){const n=t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n"),r=(0,Tt.T)(n);return!1===e?r.replace(/ /g,"&nbsp;"):r}function Nt(t,e={}){const n=zt(t,e),r=St.lexer(n),o=[[]];let u=0;function a(t,e="normal"){"text"===t.type?t.text.split("\n").forEach(((t,n)=>{0!==n&&(u++,o.push([])),t.split(" ").forEach((t=>{(t=t.replace(/&#39;/g,"'"))&&o[u].push({content:t,type:e})}))})):"strong"===t.type||"em"===t.type?t.tokens.forEach((e=>{a(e,t.type)})):"html"===t.type&&o[u].push({content:t.text,type:"normal"})}return(0,i.K2)(a,"processNode"),r.forEach((t=>{"paragraph"===t.type?t.tokens?.forEach((t=>{a(t)})):"html"===t.type&&o[u].push({content:t.text,type:"normal"})})),o}function jt(t,{markdownAutoWrap:e}={}){const n=St.lexer(t);function r(t){return"text"===t.type?!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):t.text.replace(/\n */g,"<br/>"):"strong"===t.type?`<strong>${t.tokens?.map(r).join("")}</strong>`:"em"===t.type?`<em>${t.tokens?.map(r).join("")}</em>`:"paragraph"===t.type?`<p>${t.tokens?.map(r).join("")}</p>`:"space"===t.type?"":"html"===t.type?`${t.text}`:"escape"===t.type?t.text:`Unsupported markdown: ${t.type}`}return(0,i.K2)(r,"output"),n.map(r).join("")}function qt(t){return Intl.Segmenter?[...(new Intl.Segmenter).segment(t)].map((t=>t.segment)):[...t]}function Kt(t,e){return Wt(t,[],qt(e.content),e.type)}function Wt(t,e,n,r){if(0===n.length)return[{content:e.join(""),type:r},{content:"",type:r}];const[i,...o]=n,u=[...e,i];return t([{content:u.join(""),type:r}])?Wt(t,u,o,r):(0===e.length&&i&&(e.push(i),n.shift()),[{content:e.join(""),type:r},{content:n.join(""),type:r}])}function Ht(t,e){if(t.some((({content:t})=>t.includes("\n"))))throw new Error("splitLineToFitWidth does not support newlines in the line");return Ut(t,e)}function Ut(t,e,n=[],r=[]){if(0===t.length)return r.length>0&&n.push(r),n.length>0?n:[];let i="";" "===t[0].content&&(i=" ",t.shift());const o=t.shift()??{content:" ",type:"normal"},u=[...r];if(""!==i&&u.push({content:i,type:"normal"}),u.push(o),e(u))return Ut(t,e,n,u);if(r.length>0)n.push(r),t.unshift(o);else if(o.content){const[r,i]=Kt(e,o);n.push([r]),i.content&&t.unshift(i)}return Ut(t,e,n)}function Yt(t,e){e&&t.attr("style",e)}async function Gt(t,e,n,r,o=!1){const u=t.append("foreignObject");u.attr("width",10*n+"px"),u.attr("height",10*n+"px");const a=u.append("xhtml:div");let s=e.label;e.label&&(0,i.Wi)(e.label)&&(s=await(0,i.VJ)(e.label.replace(i.Y2.lineBreakRegex,"\n"),(0,i.D7)()));const l=e.isNode?"nodeLabel":"edgeLabel",c=a.append("span");c.html(s),Yt(c,e.labelStyle),c.attr("class",`${l} ${r}`),Yt(a,e.labelStyle),a.style("display","table-cell"),a.style("white-space","nowrap"),a.style("line-height","1.5"),a.style("max-width",n+"px"),a.style("text-align","center"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),o&&a.attr("class","labelBkg");let h=a.node().getBoundingClientRect();return h.width===n&&(a.style("display","table"),a.style("white-space","break-spaces"),a.style("width",n+"px"),h=a.node().getBoundingClientRect()),u.node()}function Vt(t,e,n){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*n-.1+"em").attr("dy",n+"em")}function Xt(t,e,n){const r=t.append("text"),i=Vt(r,1,e);Jt(i,n);const o=i.node().getComputedTextLength();return r.remove(),o}function Zt(t,e,n){const r=t.append("text"),i=Vt(r,1,e);Jt(i,[{content:n,type:"normal"}]);const o=i.node()?.getBoundingClientRect();return o&&r.remove(),o}function Qt(t,e,n,r=!1){const o=e.append("g"),u=o.insert("rect").attr("class","background").attr("style","stroke: none"),a=o.append("text").attr("y","-10.1");let s=0;for(const e of n){const n=(0,i.K2)((e=>Xt(o,1.1,e)<=t),"checkWidth"),r=n(e)?[e]:Ht(e,n);for(const t of r)Jt(Vt(a,s,1.1),t),s++}if(r){const t=a.node().getBBox(),e=2;return u.attr("x",t.x-e).attr("y",t.y-e).attr("width",t.width+2*e).attr("height",t.height+2*e),o.node()}return a.node()}function Jt(t,e){t.text(""),e.forEach(((e,n)=>{const r=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===n?r.text(e.content):r.text(" "+e.content)}))}async function te(t){const e=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,((t,n,r)=>(e.push((async()=>{const e=`${n}:${r}`;return await Rt(e)?await Pt(e,void 0,{class:"label-icon"}):`<i class='${(0,i.oB)(t).replace(":"," ")}'></i>`})()),t)));const n=await Promise.all(e);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(()=>n.shift()??""))}(0,i.K2)(zt,"preprocessMarkdown"),(0,i.K2)(Nt,"markdownToLines"),(0,i.K2)(jt,"markdownToHTML"),(0,i.K2)(qt,"splitTextToChars"),(0,i.K2)(Kt,"splitWordToFitWidth"),(0,i.K2)(Wt,"splitWordToFitWidthRecursion"),(0,i.K2)(Ht,"splitLineToFitWidth"),(0,i.K2)(Ut,"splitLineToFitWidthRecursion"),(0,i.K2)(Yt,"applyStyle"),(0,i.K2)(Gt,"addHtmlSpan"),(0,i.K2)(Vt,"createTspan"),(0,i.K2)(Xt,"computeWidthOfText"),(0,i.K2)(Zt,"computeDimensionOfText"),(0,i.K2)(Qt,"createFormattedText"),(0,i.K2)(Jt,"updateTextContentAndStyles"),(0,i.K2)(te,"replaceIconSubstring");var ee=(0,i.K2)((async(t,e="",{style:n="",isTitle:o=!1,classes:u="",useHtmlLabels:a=!0,isNode:s=!0,width:l=200,addSvgBackground:c=!1}={},h)=>{if(i.Rm.debug("XYZ createText",e,n,o,u,a,s,"addSvgBackground: ",c),a){const o=jt(e,h),a=await te((0,r.Sm)(o)),d=e.replace(/\\\\/g,"\\"),f={isNode:s,label:(0,i.Wi)(e)?d:a,labelStyle:n.replace("fill:","color:")};return await Gt(t,f,l,u,c)}{const r=Qt(l,t,Nt(e.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),h),!!e&&c);if(s){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));const t=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,C.Ltv)(r).attr("style",t)}else{const t=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,C.Ltv)(r).select("rect").attr("style",t.replace(/background:/g,"fill:"));const e=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,C.Ltv)(r).select("text").attr("style",e)}return r}}),"createText")},376:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(1475),i=n(7313);const o=function(t){return(0,i.A)(t)&&(0,r.A)(t)}},405:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(4044),i=n(7942);const o=function(t){if(!(0,i.A)(t))return!1;var e=(0,r.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},521:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(9600),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,u=o&&o.exports===i?r.A.Buffer:void 0,a=u?u.allocUnsafe:void 0;const s=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}},695:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(4151),i=n(6264),o=n(7649);const u=function(t,e){return(0,o.A)((0,i.A)(t,e,r.A),t+"")}},855:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},1028:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var r=n(3545),i=n(4607);const o={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(o.re);if(!e)return;const n=e[1],i=parseInt(n,16),u=n.length,a=u%4==0,s=u>4,l=s?1:17,c=s?8:4,h=a?0:-1,d=s?255:15;return r.A.set({r:(i>>c*(h+3)&d)*l,g:(i>>c*(h+2)&d)*l,b:(i>>c*(h+1)&d)*l,a:a?(i&d)*l/255:1},t)},stringify:t=>{const{r:e,g:n,b:r,a:o}=t;return o<1?`#${i.Y[Math.round(e)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}${i.Y[Math.round(255*o)]}`:`#${i.Y[Math.round(e)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}`}},u=o;var a=n(5718);const s={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:t=>{const e=t.match(s.hueRe);if(e){const[,t,n]=e;switch(n){case"grad":return a.A.channel.clamp.h(.9*parseFloat(t));case"rad":return a.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return a.A.channel.clamp.h(360*parseFloat(t))}}return a.A.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const n=t.match(s.re);if(!n)return;const[,i,o,u,l,c]=n;return r.A.set({h:s._hue2deg(i),s:a.A.channel.clamp.s(parseFloat(o)),l:a.A.channel.clamp.l(parseFloat(u)),a:l?a.A.channel.clamp.a(c?parseFloat(l)/100:parseFloat(l)):1},t)},stringify:t=>{const{h:e,s:n,l:r,a:i}=t;return i<1?`hsla(${a.A.lang.round(e)}, ${a.A.lang.round(n)}%, ${a.A.lang.round(r)}%, ${i})`:`hsl(${a.A.lang.round(e)}, ${a.A.lang.round(n)}%, ${a.A.lang.round(r)}%)`}},l=s,c={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=c.colors[t];if(e)return u.parse(e)},stringify:t=>{const e=u.stringify(t);for(const t in c.colors)if(c.colors[t]===e)return t}},h=c,d={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:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const n=t.match(d.re);if(!n)return;const[,i,o,u,s,l,c,h,f]=n;return r.A.set({r:a.A.channel.clamp.r(o?2.55*parseFloat(i):parseFloat(i)),g:a.A.channel.clamp.g(s?2.55*parseFloat(u):parseFloat(u)),b:a.A.channel.clamp.b(c?2.55*parseFloat(l):parseFloat(l)),a:h?a.A.channel.clamp.a(f?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:n,b:r,a:i}=t;return i<1?`rgba(${a.A.lang.round(e)}, ${a.A.lang.round(n)}, ${a.A.lang.round(r)}, ${a.A.lang.round(i)})`:`rgb(${a.A.lang.round(e)}, ${a.A.lang.round(n)}, ${a.A.lang.round(r)})`}},f=d,p={format:{keyword:c,hex:u,rgb:d,rgba:d,hsl:s,hsla:s},parse:t=>{if("string"!=typeof t)return t;const e=u.parse(t)||f.parse(t)||l.parse(t)||h.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(i.Z.HSL)||void 0===t.data.r?l.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?f.stringify(t):u.stringify(t)},g=p},1085:(t,e,n)=>{"use strict";t.exports=n(3335)},1140:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=Object.prototype;const i=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},1475:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(405),i=n(7893);const o=function(t){return null!=t&&(0,i.A)(t.length)&&!(0,r.A)(t)}},1535:(t,e,n)=>{"use strict";n.d(e,{XX:()=>c,q7:()=>h,sO:()=>l});var r=n(4386),i=n(4857),o=n(5323),u=n(8084),a={common:u.Y2,getConfig:u.zj,insertCluster:i.U,insertEdge:r.Jo,insertEdgeLabel:r.jP,insertMarkers:r.g0,insertNode:i.on,interpolateToCurve:o.Ib,labelHelper:i.Zk,log:u.Rm,positionEdgeLabel:r.T_},s={},l=(0,u.K2)((t=>{for(const e of t)s[e.name]=e}),"registerLayoutLoaders");(0,u.K2)((()=>{l([{name:"dagre",loader:(0,u.K2)((async()=>await Promise.all([n.e(6530),n.e(4228),n.e(6161)]).then(n.bind(n,6161))),"loader")}])}),"registerDefaultLayoutLoaders")();var c=(0,u.K2)((async(t,e)=>{if(!(t.layoutAlgorithm in s))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);const n=s[t.layoutAlgorithm];return(await n.loader()).render(t,e,a,{algorithm:n.algorithm})}),"render"),h=(0,u.K2)(((t="",{fallback:e="dagre"}={})=>{if(t in s)return t;if(e in s)return u.Rm.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)}),"getRegisteredLayoutAlgorithm")},1548:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=Function.prototype.toString;const i=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1594:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(7252),i=n(7942),o=n(1140);var u=Object.prototype.hasOwnProperty;const a=function(t){if(!(0,i.A)(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=(0,o.A)(t),n=[];for(var r in t)("constructor"!=r||!e&&u.call(t,r))&&n.push(r);return n};var s=n(1475);const l=function(t){return(0,s.A)(t)?(0,r.A)(t,!0):a(t)}},1740:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},1758:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(123);const i=function(){try{var t=(0,r.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},1942:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(5718),i=n(1028);const o=t=>(t=>{const{r:e,g:n,b:o}=i.A.parse(t),u=.2126*r.A.channel.toLinear(e)+.7152*r.A.channel.toLinear(n)+.0722*r.A.channel.toLinear(o);return r.A.lang.round(u)})(t)>=.5,u=t=>!o(t)},2209:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(5718),i=n(3545),o=n(1028),u=n(6135);const a=(t,e,n=0,a=1)=>{if("number"!=typeof t)return(0,u.A)(t,{a:e});const s=i.A.set({r:r.A.channel.clamp.r(t),g:r.A.channel.clamp.g(e),b:r.A.channel.clamp.b(n),a:r.A.channel.clamp.a(a)});return o.A.stringify(s)}},2553:(t,e,n)=>{"use strict";n.d(e,{H:()=>en,r:()=>tn});var r=n(8084);function i(t){return null==t}function o(t){return"object"==typeof t&&null!==t}function u(t){return Array.isArray(t)?t:i(t)?[]:[t]}function a(t,e){var n,r,i,o;if(e)for(n=0,r=(o=Object.keys(e)).length;n<r;n+=1)t[i=o[n]]=e[i];return t}function s(t,e){var n,r="";for(n=0;n<e;n+=1)r+=t;return r}function l(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}(0,r.K2)(i,"isNothing"),(0,r.K2)(o,"isObject"),(0,r.K2)(u,"toArray"),(0,r.K2)(a,"extend"),(0,r.K2)(s,"repeat"),(0,r.K2)(l,"isNegativeZero");var c={isNothing:i,isObject:o,toArray:u,repeat:s,isNegativeZero:l,extend:a};function h(t,e){var n="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+="\n\n"+t.mark.snippet),r+" "+n):r}function d(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=h(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(0,r.K2)(h,"formatError"),(0,r.K2)(d,"YAMLException$1"),d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.toString=(0,r.K2)((function(t){return this.name+": "+h(this,t)}),"toString");var f=d;function p(t,e,n,r,i){var o="",u="",a=Math.floor(i/2)-1;return r-e>a&&(e=r-a+(o=" ... ").length),n-r>a&&(n=r+a-(u=" ...").length),{str:o+t.slice(e,n).replace(/\t/g,"→")+u,pos:r-e+o.length}}function g(t,e){return c.repeat(" ",e-t.length)+t}function m(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,i=[0],o=[],u=-1;n=r.exec(t.buffer);)o.push(n.index),i.push(n.index+n[0].length),t.position<=n.index&&u<0&&(u=i.length-2);u<0&&(u=i.length-1);var a,s,l="",h=Math.min(t.line+e.linesAfter,o.length).toString().length,d=e.maxLength-(e.indent+h+3);for(a=1;a<=e.linesBefore&&!(u-a<0);a++)s=p(t.buffer,i[u-a],o[u-a],t.position-(i[u]-i[u-a]),d),l=c.repeat(" ",e.indent)+g((t.line-a+1).toString(),h)+" | "+s.str+"\n"+l;for(s=p(t.buffer,i[u],o[u],t.position,d),l+=c.repeat(" ",e.indent)+g((t.line+1).toString(),h)+" | "+s.str+"\n",l+=c.repeat("-",e.indent+h+3+s.pos)+"^\n",a=1;a<=e.linesAfter&&!(u+a>=o.length);a++)s=p(t.buffer,i[u+a],o[u+a],t.position-(i[u]-i[u+a]),d),l+=c.repeat(" ",e.indent)+g((t.line+a+1).toString(),h)+" | "+s.str+"\n";return l.replace(/\n$/,"")}(0,r.K2)(p,"getLine"),(0,r.K2)(g,"padStart"),(0,r.K2)(m,"makeSnippet");var F=m,y=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],A=["scalar","sequence","mapping"];function C(t){var e={};return null!==t&&Object.keys(t).forEach((function(n){t[n].forEach((function(t){e[String(t)]=n}))})),e}function x(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===y.indexOf(e))throw new f('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=C(e.styleAliases||null),-1===A.indexOf(this.kind))throw new f('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}(0,r.K2)(C,"compileStyleAliases"),(0,r.K2)(x,"Type$1");var b=x;function D(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,r){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=r)})),n[e]=t})),n}function E(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t}for((0,r.K2)(i,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return n}function k(t){return this.extend(t)}(0,r.K2)(D,"compileList"),(0,r.K2)(E,"compileMap"),(0,r.K2)(k,"Schema$1"),k.prototype.extend=(0,r.K2)((function(t){var e=[],n=[];if(t instanceof b)n.push(t);else if(Array.isArray(t))n=n.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new f("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof b))throw new f("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new f("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new f("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(t){if(!(t instanceof b))throw new f("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(k.prototype);return r.implicit=(this.implicit||[]).concat(e),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=D(r,"implicit"),r.compiledExplicit=D(r,"explicit"),r.compiledTypeMap=E(r.compiledImplicit,r.compiledExplicit),r}),"extend");var B=new k({explicit:[new b("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,r.K2)((function(t){return null!==t?t:""}),"construct")}),new b("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,r.K2)((function(t){return null!==t?t:[]}),"construct")}),new b("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,r.K2)((function(t){return null!==t?t:{}}),"construct")})]});function w(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function v(){return null}function _(t){return null===t}(0,r.K2)(w,"resolveYamlNull"),(0,r.K2)(v,"constructYamlNull"),(0,r.K2)(_,"isNull");var S=new b("tag:yaml.org,2002:null",{kind:"scalar",resolve:w,construct:v,predicate:_,represent:{canonical:(0,r.K2)((function(){return"~"}),"canonical"),lowercase:(0,r.K2)((function(){return"null"}),"lowercase"),uppercase:(0,r.K2)((function(){return"NULL"}),"uppercase"),camelcase:(0,r.K2)((function(){return"Null"}),"camelcase"),empty:(0,r.K2)((function(){return""}),"empty")},defaultStyle:"lowercase"});function T(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function M(t){return"true"===t||"True"===t||"TRUE"===t}function L(t){return"[object Boolean]"===Object.prototype.toString.call(t)}(0,r.K2)(T,"resolveYamlBoolean"),(0,r.K2)(M,"constructYamlBoolean"),(0,r.K2)(L,"isBoolean");var $=new b("tag:yaml.org,2002:bool",{kind:"scalar",resolve:T,construct:M,predicate:L,represent:{lowercase:(0,r.K2)((function(t){return t?"true":"false"}),"lowercase"),uppercase:(0,r.K2)((function(t){return t?"TRUE":"FALSE"}),"uppercase"),camelcase:(0,r.K2)((function(t){return t?"True":"False"}),"camelcase")},defaultStyle:"lowercase"});function O(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function I(t){return 48<=t&&t<=55}function R(t){return 48<=t&&t<=57}function P(t){if(null===t)return!1;var e,n=t.length,r=0,i=!1;if(!n)return!1;if("-"!==(e=t[r])&&"+"!==e||(e=t[++r]),"0"===e){if(r+1===n)return!0;if("b"===(e=t[++r])){for(r++;r<n;r++)if("_"!==(e=t[r])){if("0"!==e&&"1"!==e)return!1;i=!0}return i&&"_"!==e}if("x"===e){for(r++;r<n;r++)if("_"!==(e=t[r])){if(!O(t.charCodeAt(r)))return!1;i=!0}return i&&"_"!==e}if("o"===e){for(r++;r<n;r++)if("_"!==(e=t[r])){if(!I(t.charCodeAt(r)))return!1;i=!0}return i&&"_"!==e}}if("_"===e)return!1;for(;r<n;r++)if("_"!==(e=t[r])){if(!R(t.charCodeAt(r)))return!1;i=!0}return!(!i||"_"===e)}function z(t){var e,n=t,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(e=n[0])&&"+"!==e||("-"===e&&(r=-1),e=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===e){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)}function N(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!c.isNegativeZero(t)}(0,r.K2)(O,"isHexCode"),(0,r.K2)(I,"isOctCode"),(0,r.K2)(R,"isDecCode"),(0,r.K2)(P,"resolveYamlInteger"),(0,r.K2)(z,"constructYamlInteger"),(0,r.K2)(N,"isInteger");var j=new b("tag:yaml.org,2002:int",{kind:"scalar",resolve:P,construct:z,predicate:N,represent:{binary:(0,r.K2)((function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)}),"binary"),octal:(0,r.K2)((function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)}),"octal"),decimal:(0,r.K2)((function(t){return t.toString(10)}),"decimal"),hexadecimal:(0,r.K2)((function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}),"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),q=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function K(t){return null!==t&&!(!q.test(t)||"_"===t[t.length-1])}function W(t){var e,n;return n="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:n*parseFloat(e,10)}(0,r.K2)(K,"resolveYamlFloat"),(0,r.K2)(W,"constructYamlFloat");var H=/^[-+]?[0-9]+e/;function U(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(t))return"-0.0";return n=t.toString(10),H.test(n)?n.replace("e",".e"):n}function Y(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||c.isNegativeZero(t))}(0,r.K2)(U,"representYamlFloat"),(0,r.K2)(Y,"isFloat");var G=new b("tag:yaml.org,2002:float",{kind:"scalar",resolve:K,construct:W,predicate:Y,represent:U,defaultStyle:"lowercase"}),V=B.extend({implicit:[S,$,j,G]}),X=V,Z=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Q=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function J(t){return null!==t&&(null!==Z.exec(t)||null!==Q.exec(t))}function tt(t){var e,n,r,i,o,u,a,s,l=0,c=null;if(null===(e=Z.exec(t))&&(e=Q.exec(t)),null===e)throw new Error("Date resolve error");if(n=+e[1],r=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(n,r,i));if(o=+e[4],u=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(c=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(c=-c)),s=new Date(Date.UTC(n,r,i,o,u,a,l)),c&&s.setTime(s.getTime()-c),s}function et(t){return t.toISOString()}(0,r.K2)(J,"resolveYamlTimestamp"),(0,r.K2)(tt,"constructYamlTimestamp"),(0,r.K2)(et,"representYamlTimestamp");var nt=new b("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:J,construct:tt,instanceOf:Date,represent:et});function rt(t){return"<<"===t||null===t}(0,r.K2)(rt,"resolveYamlMerge");var it=new b("tag:yaml.org,2002:merge",{kind:"scalar",resolve:rt}),ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function ut(t){if(null===t)return!1;var e,n,r=0,i=t.length,o=ot;for(n=0;n<i;n++)if(!((e=o.indexOf(t.charAt(n)))>64)){if(e<0)return!1;r+=6}return r%8==0}function at(t){var e,n,r=t.replace(/[\r\n=]/g,""),i=r.length,o=ot,u=0,a=[];for(e=0;e<i;e++)e%4==0&&e&&(a.push(u>>16&255),a.push(u>>8&255),a.push(255&u)),u=u<<6|o.indexOf(r.charAt(e));return 0==(n=i%4*6)?(a.push(u>>16&255),a.push(u>>8&255),a.push(255&u)):18===n?(a.push(u>>10&255),a.push(u>>2&255)):12===n&&a.push(u>>4&255),new Uint8Array(a)}function st(t){var e,n,r="",i=0,o=t.length,u=ot;for(e=0;e<o;e++)e%3==0&&e&&(r+=u[i>>18&63],r+=u[i>>12&63],r+=u[i>>6&63],r+=u[63&i]),i=(i<<8)+t[e];return 0==(n=o%3)?(r+=u[i>>18&63],r+=u[i>>12&63],r+=u[i>>6&63],r+=u[63&i]):2===n?(r+=u[i>>10&63],r+=u[i>>4&63],r+=u[i<<2&63],r+=u[64]):1===n&&(r+=u[i>>2&63],r+=u[i<<4&63],r+=u[64],r+=u[64]),r}function lt(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}(0,r.K2)(ut,"resolveYamlBinary"),(0,r.K2)(at,"constructYamlBinary"),(0,r.K2)(st,"representYamlBinary"),(0,r.K2)(lt,"isBinary");var ct=new b("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ut,construct:at,predicate:lt,represent:st}),ht=Object.prototype.hasOwnProperty,dt=Object.prototype.toString;function ft(t){if(null===t)return!0;var e,n,r,i,o,u=[],a=t;for(e=0,n=a.length;e<n;e+=1){if(r=a[e],o=!1,"[object Object]"!==dt.call(r))return!1;for(i in r)if(ht.call(r,i)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==u.indexOf(i))return!1;u.push(i)}return!0}function pt(t){return null!==t?t:[]}(0,r.K2)(ft,"resolveYamlOmap"),(0,r.K2)(pt,"constructYamlOmap");var gt=new b("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ft,construct:pt}),mt=Object.prototype.toString;function Ft(t){if(null===t)return!0;var e,n,r,i,o,u=t;for(o=new Array(u.length),e=0,n=u.length;e<n;e+=1){if(r=u[e],"[object Object]"!==mt.call(r))return!1;if(1!==(i=Object.keys(r)).length)return!1;o[e]=[i[0],r[i[0]]]}return!0}function yt(t){if(null===t)return[];var e,n,r,i,o,u=t;for(o=new Array(u.length),e=0,n=u.length;e<n;e+=1)r=u[e],i=Object.keys(r),o[e]=[i[0],r[i[0]]];return o}(0,r.K2)(Ft,"resolveYamlPairs"),(0,r.K2)(yt,"constructYamlPairs");var At=new b("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ft,construct:yt}),Ct=Object.prototype.hasOwnProperty;function xt(t){if(null===t)return!0;var e,n=t;for(e in n)if(Ct.call(n,e)&&null!==n[e])return!1;return!0}function bt(t){return null!==t?t:{}}(0,r.K2)(xt,"resolveYamlSet"),(0,r.K2)(bt,"constructYamlSet");var Dt=new b("tag:yaml.org,2002:set",{kind:"mapping",resolve:xt,construct:bt}),Et=X.extend({implicit:[nt,it],explicit:[ct,gt,At,Dt]}),kt=Object.prototype.hasOwnProperty,Bt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,wt=/[\x85\u2028\u2029]/,vt=/[,\[\]\{\}]/,_t=/^(?:!|!!|![a-z\-]+!)$/i,St=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Tt(t){return Object.prototype.toString.call(t)}function Mt(t){return 10===t||13===t}function Lt(t){return 9===t||32===t}function $t(t){return 9===t||32===t||10===t||13===t}function Ot(t){return 44===t||91===t||93===t||123===t||125===t}function It(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function Rt(t){return 120===t?2:117===t?4:85===t?8:0}function Pt(t){return 48<=t&&t<=57?t-48:-1}function zt(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"…":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function Nt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}(0,r.K2)(Tt,"_class"),(0,r.K2)(Mt,"is_EOL"),(0,r.K2)(Lt,"is_WHITE_SPACE"),(0,r.K2)($t,"is_WS_OR_EOL"),(0,r.K2)(Ot,"is_FLOW_INDICATOR"),(0,r.K2)(It,"fromHexCode"),(0,r.K2)(Rt,"escapedHexLen"),(0,r.K2)(Pt,"fromDecimalCode"),(0,r.K2)(zt,"simpleEscapeSequence"),(0,r.K2)(Nt,"charFromCodepoint");var jt,qt=new Array(256),Kt=new Array(256);for(jt=0;jt<256;jt++)qt[jt]=zt(jt)?1:0,Kt[jt]=zt(jt);function Wt(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Et,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ht(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=F(n),new f(e,n)}function Ut(t,e){throw Ht(t,e)}function Yt(t,e){t.onWarning&&t.onWarning.call(null,Ht(t,e))}(0,r.K2)(Wt,"State$1"),(0,r.K2)(Ht,"generateError"),(0,r.K2)(Ut,"throwError"),(0,r.K2)(Yt,"throwWarning");var Gt={YAML:(0,r.K2)((function(t,e,n){var r,i,o;null!==t.version&&Ut(t,"duplication of %YAML directive"),1!==n.length&&Ut(t,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&Ut(t,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&Ut(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,1!==o&&2!==o&&Yt(t,"unsupported YAML version of the document")}),"handleYamlDirective"),TAG:(0,r.K2)((function(t,e,n){var r,i;2!==n.length&&Ut(t,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],_t.test(r)||Ut(t,"ill-formed tag handle (first argument) of the TAG directive"),kt.call(t.tagMap,r)&&Ut(t,'there is a previously declared suffix for "'+r+'" tag handle'),St.test(i)||Ut(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(e){Ut(t,"tag prefix is malformed: "+i)}t.tagMap[r]=i}),"handleTagDirective")};function Vt(t,e,n,r){var i,o,u,a;if(e<n){if(a=t.input.slice(e,n),r)for(i=0,o=a.length;i<o;i+=1)9===(u=a.charCodeAt(i))||32<=u&&u<=1114111||Ut(t,"expected valid JSON character");else Bt.test(a)&&Ut(t,"the stream contains non-printable characters");t.result+=a}}function Xt(t,e,n,r){var i,o,u,a;for(c.isObject(n)||Ut(t,"cannot merge mappings; the provided source object is unacceptable"),u=0,a=(i=Object.keys(n)).length;u<a;u+=1)o=i[u],kt.call(e,o)||(e[o]=n[o],r[o]=!0)}function Zt(t,e,n,r,i,o,u,a,s){var l,c;if(Array.isArray(i))for(l=0,c=(i=Array.prototype.slice.call(i)).length;l<c;l+=1)Array.isArray(i[l])&&Ut(t,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===Tt(i[l])&&(i[l]="[object Object]");if("object"==typeof i&&"[object Object]"===Tt(i)&&(i="[object Object]"),i=String(i),null===e&&(e={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(o))for(l=0,c=o.length;l<c;l+=1)Xt(t,e,o[l],n);else Xt(t,e,o,n);else t.json||kt.call(n,i)||!kt.call(e,i)||(t.line=u||t.line,t.lineStart=a||t.lineStart,t.position=s||t.position,Ut(t,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[i]=o,delete n[i];return e}function Qt(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):Ut(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Jt(t,e,n){for(var r=0,i=t.input.charCodeAt(t.position);0!==i;){for(;Lt(i);)9===i&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&35===i)do{i=t.input.charCodeAt(++t.position)}while(10!==i&&13!==i&&0!==i);if(!Mt(i))break;for(Qt(t),i=t.input.charCodeAt(t.position),r++,t.lineIndent=0;32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position)}return-1!==n&&0!==r&&t.lineIndent<n&&Yt(t,"deficient indentation"),r}function te(t){var e,n=t.position;return!(45!==(e=t.input.charCodeAt(n))&&46!==e||e!==t.input.charCodeAt(n+1)||e!==t.input.charCodeAt(n+2)||(n+=3,0!==(e=t.input.charCodeAt(n))&&!$t(e)))}function ee(t,e){1===e?t.result+=" ":e>1&&(t.result+=c.repeat("\n",e-1))}function ne(t,e,n){var r,i,o,u,a,s,l,c,h=t.kind,d=t.result;if($t(c=t.input.charCodeAt(t.position))||Ot(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&($t(r=t.input.charCodeAt(t.position+1))||n&&Ot(r)))return!1;for(t.kind="scalar",t.result="",i=o=t.position,u=!1;0!==c;){if(58===c){if($t(r=t.input.charCodeAt(t.position+1))||n&&Ot(r))break}else if(35===c){if($t(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&te(t)||n&&Ot(c))break;if(Mt(c)){if(a=t.line,s=t.lineStart,l=t.lineIndent,Jt(t,!1,-1),t.lineIndent>=e){u=!0,c=t.input.charCodeAt(t.position);continue}t.position=o,t.line=a,t.lineStart=s,t.lineIndent=l;break}}u&&(Vt(t,i,o,!1),ee(t,t.line-a),i=o=t.position,u=!1),Lt(c)||(o=t.position+1),c=t.input.charCodeAt(++t.position)}return Vt(t,i,o,!1),!!t.result||(t.kind=h,t.result=d,!1)}function re(t,e){var n,r,i;if(39!==(n=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(Vt(t,r,t.position,!0),39!==(n=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,i=t.position}else Mt(n)?(Vt(t,r,i,!0),ee(t,Jt(t,!1,e)),r=i=t.position):t.position===t.lineStart&&te(t)?Ut(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Ut(t,"unexpected end of the stream within a single quoted scalar")}function ie(t,e){var n,r,i,o,u,a;if(34!==(a=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=r=t.position;0!==(a=t.input.charCodeAt(t.position));){if(34===a)return Vt(t,n,t.position,!0),t.position++,!0;if(92===a){if(Vt(t,n,t.position,!0),Mt(a=t.input.charCodeAt(++t.position)))Jt(t,!1,e);else if(a<256&&qt[a])t.result+=Kt[a],t.position++;else if((u=Rt(a))>0){for(i=u,o=0;i>0;i--)(u=It(a=t.input.charCodeAt(++t.position)))>=0?o=(o<<4)+u:Ut(t,"expected hexadecimal character");t.result+=Nt(o),t.position++}else Ut(t,"unknown escape sequence");n=r=t.position}else Mt(a)?(Vt(t,n,r,!0),ee(t,Jt(t,!1,e)),n=r=t.position):t.position===t.lineStart&&te(t)?Ut(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}Ut(t,"unexpected end of the stream within a double quoted scalar")}function oe(t,e){var n,r,i,o,u,a,s,l,c,h,d,f,p=!0,g=t.tag,m=t.anchor,F=Object.create(null);if(91===(f=t.input.charCodeAt(t.position)))u=93,l=!1,o=[];else{if(123!==f)return!1;u=125,l=!0,o={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),f=t.input.charCodeAt(++t.position);0!==f;){if(Jt(t,!0,e),(f=t.input.charCodeAt(t.position))===u)return t.position++,t.tag=g,t.anchor=m,t.kind=l?"mapping":"sequence",t.result=o,!0;p?44===f&&Ut(t,"expected the node content, but found ','"):Ut(t,"missed comma between flow collection entries"),d=null,a=s=!1,63===f&&$t(t.input.charCodeAt(t.position+1))&&(a=s=!0,t.position++,Jt(t,!0,e)),n=t.line,r=t.lineStart,i=t.position,de(t,e,1,!1,!0),h=t.tag,c=t.result,Jt(t,!0,e),f=t.input.charCodeAt(t.position),!s&&t.line!==n||58!==f||(a=!0,f=t.input.charCodeAt(++t.position),Jt(t,!0,e),de(t,e,1,!1,!0),d=t.result),l?Zt(t,o,F,h,c,d,n,r,i):a?o.push(Zt(t,null,F,h,c,d,n,r,i)):o.push(c),Jt(t,!0,e),44===(f=t.input.charCodeAt(t.position))?(p=!0,f=t.input.charCodeAt(++t.position)):p=!1}Ut(t,"unexpected end of the stream within a flow collection")}function ue(t,e){var n,r,i,o,u=1,a=!1,s=!1,l=e,h=0,d=!1;if(124===(o=t.input.charCodeAt(t.position)))r=!1;else{if(62!==o)return!1;r=!0}for(t.kind="scalar",t.result="";0!==o;)if(43===(o=t.input.charCodeAt(++t.position))||45===o)1===u?u=43===o?3:2:Ut(t,"repeat of a chomping mode identifier");else{if(!((i=Pt(o))>=0))break;0===i?Ut(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Ut(t,"repeat of an indentation width identifier"):(l=e+i-1,s=!0)}if(Lt(o)){do{o=t.input.charCodeAt(++t.position)}while(Lt(o));if(35===o)do{o=t.input.charCodeAt(++t.position)}while(!Mt(o)&&0!==o)}for(;0!==o;){for(Qt(t),t.lineIndent=0,o=t.input.charCodeAt(t.position);(!s||t.lineIndent<l)&&32===o;)t.lineIndent++,o=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>l&&(l=t.lineIndent),Mt(o))h++;else{if(t.lineIndent<l){3===u?t.result+=c.repeat("\n",a?1+h:h):1===u&&a&&(t.result+="\n");break}for(r?Lt(o)?(d=!0,t.result+=c.repeat("\n",a?1+h:h)):d?(d=!1,t.result+=c.repeat("\n",h+1)):0===h?a&&(t.result+=" "):t.result+=c.repeat("\n",h):t.result+=c.repeat("\n",a?1+h:h),a=!0,s=!0,h=0,n=t.position;!Mt(o)&&0!==o;)o=t.input.charCodeAt(++t.position);Vt(t,n,t.position,!1)}}return!0}function ae(t,e){var n,r,i=t.tag,o=t.anchor,u=[],a=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=u),r=t.input.charCodeAt(t.position);0!==r&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,Ut(t,"tab characters must not be used in indentation")),45===r)&&$t(t.input.charCodeAt(t.position+1));)if(a=!0,t.position++,Jt(t,!0,-1)&&t.lineIndent<=e)u.push(null),r=t.input.charCodeAt(t.position);else if(n=t.line,de(t,e,3,!1,!0),u.push(t.result),Jt(t,!0,-1),r=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&0!==r)Ut(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!a&&(t.tag=i,t.anchor=o,t.kind="sequence",t.result=u,!0)}function se(t,e,n){var r,i,o,u,a,s,l,c=t.tag,h=t.anchor,d={},f=Object.create(null),p=null,g=null,m=null,F=!1,y=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),l=t.input.charCodeAt(t.position);0!==l;){if(F||-1===t.firstTabInLine||(t.position=t.firstTabInLine,Ut(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,63!==l&&58!==l||!$t(r)){if(u=t.line,a=t.lineStart,s=t.position,!de(t,n,2,!1,!0))break;if(t.line===o){for(l=t.input.charCodeAt(t.position);Lt(l);)l=t.input.charCodeAt(++t.position);if(58===l)$t(l=t.input.charCodeAt(++t.position))||Ut(t,"a whitespace character is expected after the key-value separator within a block mapping"),F&&(Zt(t,d,f,p,g,null,u,a,s),p=g=m=null),y=!0,F=!1,i=!1,p=t.tag,g=t.result;else{if(!y)return t.tag=c,t.anchor=h,!0;Ut(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return t.tag=c,t.anchor=h,!0;Ut(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(F&&(Zt(t,d,f,p,g,null,u,a,s),p=g=m=null),y=!0,F=!0,i=!0):F?(F=!1,i=!0):Ut(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,l=r;if((t.line===o||t.lineIndent>e)&&(F&&(u=t.line,a=t.lineStart,s=t.position),de(t,e,4,!0,i)&&(F?g=t.result:m=t.result),F||(Zt(t,d,f,p,g,m,u,a,s),p=g=m=null),Jt(t,!0,-1),l=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&0!==l)Ut(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return F&&Zt(t,d,f,p,g,null,u,a,s),y&&(t.tag=c,t.anchor=h,t.kind="mapping",t.result=d),y}function le(t){var e,n,r,i,o=!1,u=!1;if(33!==(i=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&Ut(t,"duplication of a tag property"),60===(i=t.input.charCodeAt(++t.position))?(o=!0,i=t.input.charCodeAt(++t.position)):33===i?(u=!0,n="!!",i=t.input.charCodeAt(++t.position)):n="!",e=t.position,o){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&62!==i);t.position<t.length?(r=t.input.slice(e,t.position),i=t.input.charCodeAt(++t.position)):Ut(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!$t(i);)33===i&&(u?Ut(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),_t.test(n)||Ut(t,"named tag handle cannot contain such characters"),u=!0,e=t.position+1)),i=t.input.charCodeAt(++t.position);r=t.input.slice(e,t.position),vt.test(r)&&Ut(t,"tag suffix cannot contain flow indicator characters")}r&&!St.test(r)&&Ut(t,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(e){Ut(t,"tag name is malformed: "+r)}return o?t.tag=r:kt.call(t.tagMap,n)?t.tag=t.tagMap[n]+r:"!"===n?t.tag="!"+r:"!!"===n?t.tag="tag:yaml.org,2002:"+r:Ut(t,'undeclared tag handle "'+n+'"'),!0}function ce(t){var e,n;if(38!==(n=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&Ut(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!$t(n)&&!Ot(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&Ut(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function he(t){var e,n,r;if(42!==(r=t.input.charCodeAt(t.position)))return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!$t(r)&&!Ot(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Ut(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),kt.call(t.anchorMap,n)||Ut(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],Jt(t,!0,-1),!0}function de(t,e,n,r,i){var o,u,a,s,l,c,h,d,f,p=1,g=!1,m=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=u=a=4===n||3===n,r&&Jt(t,!0,-1)&&(g=!0,t.lineIndent>e?p=1:t.lineIndent===e?p=0:t.lineIndent<e&&(p=-1)),1===p)for(;le(t)||ce(t);)Jt(t,!0,-1)?(g=!0,a=o,t.lineIndent>e?p=1:t.lineIndent===e?p=0:t.lineIndent<e&&(p=-1)):a=!1;if(a&&(a=g||i),1!==p&&4!==n||(d=1===n||2===n?e:e+1,f=t.position-t.lineStart,1===p?a&&(ae(t,f)||se(t,f,d))||oe(t,d)?m=!0:(u&&ue(t,d)||re(t,d)||ie(t,d)?m=!0:he(t)?(m=!0,null===t.tag&&null===t.anchor||Ut(t,"alias node should not have any properties")):ne(t,d,1===n)&&(m=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===p&&(m=a&&ae(t,f))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&Ut(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),s=0,l=t.implicitTypes.length;s<l;s+=1)if((h=t.implicitTypes[s]).resolve(t.result)){t.result=h.construct(t.result),t.tag=h.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(kt.call(t.typeMap[t.kind||"fallback"],t.tag))h=t.typeMap[t.kind||"fallback"][t.tag];else for(h=null,s=0,l=(c=t.typeMap.multi[t.kind||"fallback"]).length;s<l;s+=1)if(t.tag.slice(0,c[s].tag.length)===c[s].tag){h=c[s];break}h||Ut(t,"unknown tag !<"+t.tag+">"),null!==t.result&&h.kind!==t.kind&&Ut(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Ut(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}function fe(t){var e,n,r,i,o=t.position,u=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(i=t.input.charCodeAt(t.position))&&(Jt(t,!0,-1),i=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==i));){for(u=!0,i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!$t(i);)i=t.input.charCodeAt(++t.position);for(r=[],(n=t.input.slice(e,t.position)).length<1&&Ut(t,"directive name must not be less than one character in length");0!==i;){for(;Lt(i);)i=t.input.charCodeAt(++t.position);if(35===i){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&!Mt(i));break}if(Mt(i))break;for(e=t.position;0!==i&&!$t(i);)i=t.input.charCodeAt(++t.position);r.push(t.input.slice(e,t.position))}0!==i&&Qt(t),kt.call(Gt,n)?Gt[n](t,n,r):Yt(t,'unknown document directive "'+n+'"')}Jt(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,Jt(t,!0,-1)):u&&Ut(t,"directives end mark is expected"),de(t,t.lineIndent-1,4,!1,!0),Jt(t,!0,-1),t.checkLineBreaks&&wt.test(t.input.slice(o,t.position))&&Yt(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&te(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,Jt(t,!0,-1)):t.position<t.length-1&&Ut(t,"end of the stream or a document separator is expected")}function pe(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var n=new Wt(t,e),r=t.indexOf("\0");for(-1!==r&&(n.position=r,Ut(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)fe(n);return n.documents}function ge(t,e,n){null!==e&&"object"==typeof e&&void 0===n&&(n=e,e=null);var r=pe(t,n);if("function"!=typeof e)return r;for(var i=0,o=r.length;i<o;i+=1)e(r[i])}function me(t,e){var n=pe(t,e);if(0!==n.length){if(1===n.length)return n[0];throw new f("expected a single document in the stream, but found more")}}(0,r.K2)(Vt,"captureSegment"),(0,r.K2)(Xt,"mergeMappings"),(0,r.K2)(Zt,"storeMappingPair"),(0,r.K2)(Qt,"readLineBreak"),(0,r.K2)(Jt,"skipSeparationSpace"),(0,r.K2)(te,"testDocumentSeparator"),(0,r.K2)(ee,"writeFoldedLines"),(0,r.K2)(ne,"readPlainScalar"),(0,r.K2)(re,"readSingleQuotedScalar"),(0,r.K2)(ie,"readDoubleQuotedScalar"),(0,r.K2)(oe,"readFlowCollection"),(0,r.K2)(ue,"readBlockScalar"),(0,r.K2)(ae,"readBlockSequence"),(0,r.K2)(se,"readBlockMapping"),(0,r.K2)(le,"readTagProperty"),(0,r.K2)(ce,"readAnchorProperty"),(0,r.K2)(he,"readAlias"),(0,r.K2)(de,"composeNode"),(0,r.K2)(fe,"readDocument"),(0,r.K2)(pe,"loadDocuments"),(0,r.K2)(ge,"loadAll$1"),(0,r.K2)(me,"load$1");var Fe=me,ye=Object.prototype.toString,Ae=Object.prototype.hasOwnProperty,Ce=65279,xe={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},be=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],De=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ee(t,e){var n,r,i,o,u,a,s;if(null===e)return{};for(n={},i=0,o=(r=Object.keys(e)).length;i<o;i+=1)u=r[i],a=String(e[u]),"!!"===u.slice(0,2)&&(u="tag:yaml.org,2002:"+u.slice(2)),(s=t.compiledTypeMap.fallback[u])&&Ae.call(s.styleAliases,a)&&(a=s.styleAliases[a]),n[u]=a;return n}function ke(t){var e,n,r;if(e=t.toString(16).toUpperCase(),t<=255)n="x",r=2;else if(t<=65535)n="u",r=4;else{if(!(t<=4294967295))throw new f("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+c.repeat("0",r-e.length)+e}function Be(t){this.schema=t.schema||Et,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=c.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Ee(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function we(t,e){for(var n,r=c.repeat(" ",e),i=0,o=-1,u="",a=t.length;i<a;)-1===(o=t.indexOf("\n",i))?(n=t.slice(i),i=a):(n=t.slice(i,o+1),i=o+1),n.length&&"\n"!==n&&(u+=r),u+=n;return u}function ve(t,e){return"\n"+c.repeat(" ",t.indent*e)}function _e(t,e){var n,r;for(n=0,r=t.implicitTypes.length;n<r;n+=1)if(t.implicitTypes[n].resolve(e))return!0;return!1}function Se(t){return 32===t||9===t}function Te(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&t!==Ce||65536<=t&&t<=1114111}function Me(t){return Te(t)&&t!==Ce&&13!==t&&10!==t}function Le(t,e,n){var r=Me(t),i=r&&!Se(t);return(n?r:r&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!i)||Me(e)&&!Se(e)&&35===t||58===e&&i}function $e(t){return Te(t)&&t!==Ce&&!Se(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function Oe(t){return!Se(t)&&58!==t}function Ie(t,e){var n,r=t.charCodeAt(e);return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1))>=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function Re(t){return/^\n* /.test(t)}function Pe(t,e,n,r,i,o,u,a){var s,l=0,c=null,h=!1,d=!1,f=-1!==r,p=-1,g=$e(Ie(t,0))&&Oe(Ie(t,t.length-1));if(e||u)for(s=0;s<t.length;l>=65536?s+=2:s++){if(!Te(l=Ie(t,s)))return 5;g=g&&Le(l,c,a),c=l}else{for(s=0;s<t.length;l>=65536?s+=2:s++){if(10===(l=Ie(t,s)))h=!0,f&&(d=d||s-p-1>r&&" "!==t[p+1],p=s);else if(!Te(l))return 5;g=g&&Le(l,c,a),c=l}d=d||f&&s-p-1>r&&" "!==t[p+1]}return h||d?n>9&&Re(t)?5:u?2===o?5:2:d?4:3:!g||u||i(t)?2===o?5:2:1}function ze(t,e,n,i,o){t.dump=function(){if(0===e.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==be.indexOf(e)||De.test(e)))return 2===t.quotingType?'"'+e+'"':"'"+e+"'";var u=t.indent*Math.max(1,n),a=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-u),s=i||t.flowLevel>-1&&n>=t.flowLevel;function l(e){return _e(t,e)}switch((0,r.K2)(l,"testAmbiguity"),Pe(e,s,t.indent,a,l,t.quotingType,t.forceQuotes&&!i,o)){case 1:return e;case 2:return"'"+e.replace(/'/g,"''")+"'";case 3:return"|"+Ne(e,t.indent)+je(we(e,u));case 4:return">"+Ne(e,t.indent)+je(we(qe(e,a),u));case 5:return'"'+We(e)+'"';default:throw new f("impossible error: invalid scalar style")}}()}function Ne(t,e){var n=Re(t)?String(e):"",r="\n"===t[t.length-1];return n+(!r||"\n"!==t[t.length-2]&&"\n"!==t?r?"":"-":"+")+"\n"}function je(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function qe(t,e){for(var n,r,i,o=/(\n+)([^\n]*)/g,u=(n=-1!==(n=t.indexOf("\n"))?n:t.length,o.lastIndex=n,Ke(t.slice(0,n),e)),a="\n"===t[0]||" "===t[0];i=o.exec(t);){var s=i[1],l=i[2];r=" "===l[0],u+=s+(a||r||""===l?"":"\n")+Ke(l,e),a=r}return u}function Ke(t,e){if(""===t||" "===t[0])return t;for(var n,r,i=/ [^ ]/g,o=0,u=0,a=0,s="";n=i.exec(t);)(a=n.index)-o>e&&(r=u>o?u:a,s+="\n"+t.slice(o,r),o=r+1),u=a;return s+="\n",t.length-o>e&&u>o?s+=t.slice(o,u)+"\n"+t.slice(u+1):s+=t.slice(o),s.slice(1)}function We(t){for(var e,n="",r=0,i=0;i<t.length;r>=65536?i+=2:i++)r=Ie(t,i),!(e=xe[r])&&Te(r)?(n+=t[i],r>=65536&&(n+=t[i+1])):n+=e||ke(r);return n}function He(t,e,n){var r,i,o,u="",a=t.tag;for(r=0,i=n.length;r<i;r+=1)o=n[r],t.replacer&&(o=t.replacer.call(n,String(r),o)),(Xe(t,e,o,!1,!1)||void 0===o&&Xe(t,e,null,!1,!1))&&(""!==u&&(u+=","+(t.condenseFlow?"":" ")),u+=t.dump);t.tag=a,t.dump="["+u+"]"}function Ue(t,e,n,r){var i,o,u,a="",s=t.tag;for(i=0,o=n.length;i<o;i+=1)u=n[i],t.replacer&&(u=t.replacer.call(n,String(i),u)),(Xe(t,e+1,u,!0,!0,!1,!0)||void 0===u&&Xe(t,e+1,null,!0,!0,!1,!0))&&(r&&""===a||(a+=ve(t,e)),t.dump&&10===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=s,t.dump=a||"[]"}function Ye(t,e,n){var r,i,o,u,a,s="",l=t.tag,c=Object.keys(n);for(r=0,i=c.length;r<i;r+=1)a="",""!==s&&(a+=", "),t.condenseFlow&&(a+='"'),u=n[o=c[r]],t.replacer&&(u=t.replacer.call(n,o,u)),Xe(t,e,o,!1,!1)&&(t.dump.length>1024&&(a+="? "),a+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Xe(t,e,u,!1,!1)&&(s+=a+=t.dump));t.tag=l,t.dump="{"+s+"}"}function Ge(t,e,n,r){var i,o,u,a,s,l,c="",h=t.tag,d=Object.keys(n);if(!0===t.sortKeys)d.sort();else if("function"==typeof t.sortKeys)d.sort(t.sortKeys);else if(t.sortKeys)throw new f("sortKeys must be a boolean or a function");for(i=0,o=d.length;i<o;i+=1)l="",r&&""===c||(l+=ve(t,e)),a=n[u=d[i]],t.replacer&&(a=t.replacer.call(n,u,a)),Xe(t,e+1,u,!0,!0,!0)&&((s=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?l+="?":l+="? "),l+=t.dump,s&&(l+=ve(t,e)),Xe(t,e+1,a,!0,s)&&(t.dump&&10===t.dump.charCodeAt(0)?l+=":":l+=": ",c+=l+=t.dump));t.tag=h,t.dump=c||"{}"}function Ve(t,e,n){var r,i,o,u,a,s;for(o=0,u=(i=n?t.explicitTypes:t.implicitTypes).length;o<u;o+=1)if(((a=i[o]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof e&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(n?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(s=t.styleMap[a.tag]||a.defaultStyle,"[object Function]"===ye.call(a.represent))r=a.represent(e,s);else{if(!Ae.call(a.represent,s))throw new f("!<"+a.tag+'> tag resolver accepts not "'+s+'" style');r=a.represent[s](e,s)}t.dump=r}return!0}return!1}function Xe(t,e,n,r,i,o,u){t.tag=null,t.dump=n,Ve(t,n,!1)||Ve(t,n,!0);var a,s=ye.call(t.dump),l=r;r&&(r=t.flowLevel<0||t.flowLevel>e);var c,h,d="[object Object]"===s||"[object Array]"===s;if(d&&(h=-1!==(c=t.duplicates.indexOf(n))),(null!==t.tag&&"?"!==t.tag||h||2!==t.indent&&e>0)&&(i=!1),h&&t.usedDuplicates[c])t.dump="*ref_"+c;else{if(d&&h&&!t.usedDuplicates[c]&&(t.usedDuplicates[c]=!0),"[object Object]"===s)r&&0!==Object.keys(t.dump).length?(Ge(t,e,t.dump,i),h&&(t.dump="&ref_"+c+t.dump)):(Ye(t,e,t.dump),h&&(t.dump="&ref_"+c+" "+t.dump));else if("[object Array]"===s)r&&0!==t.dump.length?(t.noArrayIndent&&!u&&e>0?Ue(t,e-1,t.dump,i):Ue(t,e,t.dump,i),h&&(t.dump="&ref_"+c+t.dump)):(He(t,e,t.dump),h&&(t.dump="&ref_"+c+" "+t.dump));else{if("[object String]"!==s){if("[object Undefined]"===s)return!1;if(t.skipInvalid)return!1;throw new f("unacceptable kind of an object to dump "+s)}"?"!==t.tag&&ze(t,t.dump,e,o,l)}null!==t.tag&&"?"!==t.tag&&(a=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),a="!"===t.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",t.dump=a+" "+t.dump)}return!0}function Ze(t,e){var n,r,i=[],o=[];for(Qe(t,i,o),n=0,r=o.length;n<r;n+=1)e.duplicates.push(i[o[n]]);e.usedDuplicates=new Array(r)}function Qe(t,e,n){var r,i,o;if(null!==t&&"object"==typeof t)if(-1!==(i=e.indexOf(t)))-1===n.indexOf(i)&&n.push(i);else if(e.push(t),Array.isArray(t))for(i=0,o=t.length;i<o;i+=1)Qe(t[i],e,n);else for(i=0,o=(r=Object.keys(t)).length;i<o;i+=1)Qe(t[r[i]],e,n)}function Je(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}(0,r.K2)(Ee,"compileStyleMap"),(0,r.K2)(ke,"encodeHex"),(0,r.K2)(Be,"State"),(0,r.K2)(we,"indentString"),(0,r.K2)(ve,"generateNextLine"),(0,r.K2)(_e,"testImplicitResolving"),(0,r.K2)(Se,"isWhitespace"),(0,r.K2)(Te,"isPrintable"),(0,r.K2)(Me,"isNsCharOrWhitespace"),(0,r.K2)(Le,"isPlainSafe"),(0,r.K2)($e,"isPlainSafeFirst"),(0,r.K2)(Oe,"isPlainSafeLast"),(0,r.K2)(Ie,"codePointAt"),(0,r.K2)(Re,"needIndentIndicator"),(0,r.K2)(Pe,"chooseScalarStyle"),(0,r.K2)(ze,"writeScalar"),(0,r.K2)(Ne,"blockHeader"),(0,r.K2)(je,"dropEndingNewline"),(0,r.K2)(qe,"foldString"),(0,r.K2)(Ke,"foldLine"),(0,r.K2)(We,"escapeString"),(0,r.K2)(He,"writeFlowSequence"),(0,r.K2)(Ue,"writeBlockSequence"),(0,r.K2)(Ye,"writeFlowMapping"),(0,r.K2)(Ge,"writeBlockMapping"),(0,r.K2)(Ve,"detectType"),(0,r.K2)(Xe,"writeNode"),(0,r.K2)(Ze,"getDuplicateReferences"),(0,r.K2)(Qe,"inspectNode"),(0,r.K2)((function(t,e){var n=new Be(e=e||{});n.noRefs||Ze(t,n);var r=t;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Xe(n,0,r,!0,!0)?n.dump+"\n":""}),"dump$1"),(0,r.K2)(Je,"renamed");var tn=V,en=Fe;Je("safeLoad","load"),Je("safeLoadAll","loadAll"),Je("safeDump","dump")},2591:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var o={},u=[],a=0;a<t.length;a++){var s=t[a],l=r.base?s[0]+r.base:s[0],c=o[l]||0,h="".concat(l," ").concat(c);o[l]=c+1;var d=n(h),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=i(f,r);r.byIndex=a,e.splice(a,0,{identifier:h,updater:p,references:1})}u.push(h)}return u}function i(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var o=r(t=t||[],i=i||{});return function(t){t=t||[];for(var u=0;u<o.length;u++){var a=n(o[u]);e[a].references--}for(var s=r(t,i),l=0;l<o.length;l++){var c=n(o[l]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=s}}},2636:(t,e,n)=>{"use strict";n.d(e,{A:()=>nt});const{entries:r,setPrototypeOf:i,isFrozen:o,getPrototypeOf:u,getOwnPropertyDescriptor:a}=Object;let{freeze:s,seal:l,create:c}=Object,{apply:h,construct:d}="undefined"!=typeof Reflect&&Reflect;s||(s=function(t){return t}),l||(l=function(t){return t}),h||(h=function(t,e,n){return t.apply(e,n)}),d||(d=function(t,e){return new t(...e)});const f=v(Array.prototype.forEach),p=v(Array.prototype.lastIndexOf),g=v(Array.prototype.pop),m=v(Array.prototype.push),F=v(Array.prototype.splice),y=v(String.prototype.toLowerCase),A=v(String.prototype.toString),C=v(String.prototype.match),x=v(String.prototype.replace),b=v(String.prototype.indexOf),D=v(String.prototype.trim),E=v(Object.prototype.hasOwnProperty),k=v(RegExp.prototype.test),B=(w=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return d(w,e)});var w;function v(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return h(t,e,r)}}function _(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;i&&i(t,null);let r=e.length;for(;r--;){let i=e[r];if("string"==typeof i){const t=n(i);t!==i&&(o(e)||(e[r]=t),i=t)}t[i]=!0}return t}function S(t){for(let e=0;e<t.length;e++)E(t,e)||(t[e]=null);return t}function T(t){const e=c(null);for(const[n,i]of r(t))E(t,n)&&(Array.isArray(i)?e[n]=S(i):i&&"object"==typeof i&&i.constructor===Object?e[n]=T(i):e[n]=i);return e}function M(t,e){for(;null!==t;){const n=a(t,e);if(n){if(n.get)return v(n.get);if("function"==typeof n.value)return v(n.value)}t=u(t)}return function(){return null}}const L=s(["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"]),$=s(["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"]),O=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=s(["animate","color-profile","cursor","discard","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"]),R=s(["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","mprescripts"]),P=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=s(["#text"]),N=s(["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","popover","popovertarget","popovertargetaction","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","wrap","xmlns","slot"]),j=s(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),q=s(["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"]),K=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=l(/<%[\w\W]*|[\w\W]*%>/gm),U=l(/\$\{[\w\W]*/gm),Y=l(/^data-[\-\w.\u00B7-\uFFFF]+$/),G=l(/^aria-[\-\w]+$/),V=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=l(/^(?:\w+script|data):/i),Z=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=l(/^html$/i),J=l(/^[a-z][.\w]*(-[.\w]+)+$/i);var tt=Object.freeze({__proto__:null,ARIA_ATTR:G,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:J,DATA_ATTR:Y,DOCTYPE_NAME:Q,ERB_EXPR:H,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:X,MUSTACHE_EXPR:W,TMPLIT_EXPR:U});const et=function(){return"undefined"==typeof window?null:window};var nt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et();const n=e=>t(e);if(n.version="3.2.6",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let{document:i}=e;const o=i,u=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:h,Element:d,NodeFilter:w,NamedNodeMap:v=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:S,DOMParser:W,trustedTypes:H}=e,U=d.prototype,Y=M(U,"cloneNode"),G=M(U,"remove"),X=M(U,"nextSibling"),Z=M(U,"childNodes"),J=M(U,"parentNode");if("function"==typeof l){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let nt,rt="";const{implementation:it,createNodeIterator:ot,createDocumentFragment:ut,getElementsByTagName:at}=i,{importNode:st}=o;let lt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof r&&"function"==typeof J&&it&&void 0!==it.createHTMLDocument;const{MUSTACHE_EXPR:ct,ERB_EXPR:ht,TMPLIT_EXPR:dt,DATA_ATTR:ft,ARIA_ATTR:pt,IS_SCRIPT_OR_DATA:gt,ATTR_WHITESPACE:mt,CUSTOM_ELEMENT:Ft}=tt;let{IS_ALLOWED_URI:yt}=tt,At=null;const Ct=_({},[...L,...$,...O,...R,...z]);let xt=null;const bt=_({},[...N,...j,...q,...K]);let Dt=Object.seal(c(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}})),Et=null,kt=null,Bt=!0,wt=!0,vt=!1,_t=!0,St=!1,Tt=!0,Mt=!1,Lt=!1,$t=!1,Ot=!1,It=!1,Rt=!1,Pt=!0,zt=!1,Nt=!0,jt=!1,qt={},Kt=null;const Wt=_({},["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"]);let Ht=null;const Ut=_({},["audio","video","img","source","image","track"]);let Yt=null;const Gt=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vt="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",Zt="http://www.w3.org/1999/xhtml";let Qt=Zt,Jt=!1,te=null;const ee=_({},[Vt,Xt,Zt],A);let ne=_({},["mi","mo","mn","ms","mtext"]),re=_({},["annotation-xml"]);const ie=_({},["title","style","font","a","script"]);let oe=null;const ue=["application/xhtml+xml","text/html"];let ae=null,se=null;const le=i.createElement("form"),ce=function(t){return t instanceof RegExp||t instanceof Function},he=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!se||se!==t){if(t&&"object"==typeof t||(t={}),t=T(t),oe=-1===ue.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ae="application/xhtml+xml"===oe?A:y,At=E(t,"ALLOWED_TAGS")?_({},t.ALLOWED_TAGS,ae):Ct,xt=E(t,"ALLOWED_ATTR")?_({},t.ALLOWED_ATTR,ae):bt,te=E(t,"ALLOWED_NAMESPACES")?_({},t.ALLOWED_NAMESPACES,A):ee,Yt=E(t,"ADD_URI_SAFE_ATTR")?_(T(Gt),t.ADD_URI_SAFE_ATTR,ae):Gt,Ht=E(t,"ADD_DATA_URI_TAGS")?_(T(Ut),t.ADD_DATA_URI_TAGS,ae):Ut,Kt=E(t,"FORBID_CONTENTS")?_({},t.FORBID_CONTENTS,ae):Wt,Et=E(t,"FORBID_TAGS")?_({},t.FORBID_TAGS,ae):T({}),kt=E(t,"FORBID_ATTR")?_({},t.FORBID_ATTR,ae):T({}),qt=!!E(t,"USE_PROFILES")&&t.USE_PROFILES,Bt=!1!==t.ALLOW_ARIA_ATTR,wt=!1!==t.ALLOW_DATA_ATTR,vt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,_t=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,St=t.SAFE_FOR_TEMPLATES||!1,Tt=!1!==t.SAFE_FOR_XML,Mt=t.WHOLE_DOCUMENT||!1,Ot=t.RETURN_DOM||!1,It=t.RETURN_DOM_FRAGMENT||!1,Rt=t.RETURN_TRUSTED_TYPE||!1,$t=t.FORCE_BODY||!1,Pt=!1!==t.SANITIZE_DOM,zt=t.SANITIZE_NAMED_PROPS||!1,Nt=!1!==t.KEEP_CONTENT,jt=t.IN_PLACE||!1,yt=t.ALLOWED_URI_REGEXP||V,Qt=t.NAMESPACE||Zt,ne=t.MATHML_TEXT_INTEGRATION_POINTS||ne,re=t.HTML_INTEGRATION_POINTS||re,Dt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ce(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Dt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ce(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Dt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Dt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),St&&(wt=!1),It&&(Ot=!0),qt&&(At=_({},z),xt=[],!0===qt.html&&(_(At,L),_(xt,N)),!0===qt.svg&&(_(At,$),_(xt,j),_(xt,K)),!0===qt.svgFilters&&(_(At,O),_(xt,j),_(xt,K)),!0===qt.mathMl&&(_(At,R),_(xt,q),_(xt,K))),t.ADD_TAGS&&(At===Ct&&(At=T(At)),_(At,t.ADD_TAGS,ae)),t.ADD_ATTR&&(xt===bt&&(xt=T(xt)),_(xt,t.ADD_ATTR,ae)),t.ADD_URI_SAFE_ATTR&&_(Yt,t.ADD_URI_SAFE_ATTR,ae),t.FORBID_CONTENTS&&(Kt===Wt&&(Kt=T(Kt)),_(Kt,t.FORBID_CONTENTS,ae)),Nt&&(At["#text"]=!0),Mt&&_(At,["html","head","body"]),At.table&&(_(At,["tbody"]),delete Et.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');nt=t.TRUSTED_TYPES_POLICY,rt=nt.createHTML("")}else void 0===nt&&(nt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(H,u)),null!==nt&&"string"==typeof rt&&(rt=nt.createHTML(""));s&&s(t),se=t}},de=_({},[...$,...O,...I]),fe=_({},[...R,...P]),pe=function(t){m(n.removed,{element:t});try{J(t).removeChild(t)}catch(e){G(t)}},ge=function(t,e){try{m(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){m(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Ot||It)try{pe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},me=function(t){let e=null,n=null;if($t)t="<remove></remove>"+t;else{const e=C(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===oe&&Qt===Zt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=nt?nt.createHTML(t):t;if(Qt===Zt)try{e=(new W).parseFromString(r,oe)}catch(t){}if(!e||!e.documentElement){e=it.createDocument(Qt,"template",null);try{e.documentElement.innerHTML=Jt?rt:r}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),Qt===Zt?at.call(e,Mt?"html":"body")[0]:Mt?e.documentElement:o},Fe=function(t){return ot.call(t.ownerDocument||t,t,w.SHOW_ELEMENT|w.SHOW_COMMENT|w.SHOW_TEXT|w.SHOW_PROCESSING_INSTRUCTION|w.SHOW_CDATA_SECTION,null)},ye=function(t){return t instanceof S&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof v)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Ae=function(t){return"function"==typeof h&&t instanceof h};function Ce(t,e,r){f(t,(t=>{t.call(n,e,r,se)}))}const xe=function(t){let e=null;if(Ce(lt.beforeSanitizeElements,t,null),ye(t))return pe(t),!0;const r=ae(t.nodeName);if(Ce(lt.uponSanitizeElement,t,{tagName:r,allowedTags:At}),Tt&&t.hasChildNodes()&&!Ae(t.firstElementChild)&&k(/<[/\w!]/g,t.innerHTML)&&k(/<[/\w!]/g,t.textContent))return pe(t),!0;if(7===t.nodeType)return pe(t),!0;if(Tt&&8===t.nodeType&&k(/<[/\w]/g,t.data))return pe(t),!0;if(!At[r]||Et[r]){if(!Et[r]&&De(r)){if(Dt.tagNameCheck instanceof RegExp&&k(Dt.tagNameCheck,r))return!1;if(Dt.tagNameCheck instanceof Function&&Dt.tagNameCheck(r))return!1}if(Nt&&!Kt[r]){const e=J(t)||t.parentNode,n=Z(t)||t.childNodes;if(n&&e)for(let r=n.length-1;r>=0;--r){const i=Y(n[r],!0);i.__removalCount=(t.__removalCount||0)+1,e.insertBefore(i,X(t))}}return pe(t),!0}return t instanceof d&&!function(t){let e=J(t);e&&e.tagName||(e={namespaceURI:Qt,tagName:"template"});const n=y(t.tagName),r=y(e.tagName);return!!te[t.namespaceURI]&&(t.namespaceURI===Xt?e.namespaceURI===Zt?"svg"===n:e.namespaceURI===Vt?"svg"===n&&("annotation-xml"===r||ne[r]):Boolean(de[n]):t.namespaceURI===Vt?e.namespaceURI===Zt?"math"===n:e.namespaceURI===Xt?"math"===n&&re[r]:Boolean(fe[n]):t.namespaceURI===Zt?!(e.namespaceURI===Xt&&!re[r])&&!(e.namespaceURI===Vt&&!ne[r])&&!fe[n]&&(ie[n]||!de[n]):!("application/xhtml+xml"!==oe||!te[t.namespaceURI]))}(t)?(pe(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!k(/<\/no(script|embed|frames)/i,t.innerHTML)?(St&&3===t.nodeType&&(e=t.textContent,f([ct,ht,dt],(t=>{e=x(e,t," ")})),t.textContent!==e&&(m(n.removed,{element:t.cloneNode()}),t.textContent=e)),Ce(lt.afterSanitizeElements,t,null),!1):(pe(t),!0)},be=function(t,e,n){if(Pt&&("id"===e||"name"===e)&&(n in i||n in le))return!1;if(wt&&!kt[e]&&k(ft,e));else if(Bt&&k(pt,e));else if(!xt[e]||kt[e]){if(!(De(t)&&(Dt.tagNameCheck instanceof RegExp&&k(Dt.tagNameCheck,t)||Dt.tagNameCheck instanceof Function&&Dt.tagNameCheck(t))&&(Dt.attributeNameCheck instanceof RegExp&&k(Dt.attributeNameCheck,e)||Dt.attributeNameCheck instanceof Function&&Dt.attributeNameCheck(e))||"is"===e&&Dt.allowCustomizedBuiltInElements&&(Dt.tagNameCheck instanceof RegExp&&k(Dt.tagNameCheck,n)||Dt.tagNameCheck instanceof Function&&Dt.tagNameCheck(n))))return!1}else if(Yt[e]);else if(k(yt,x(n,mt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==b(n,"data:")||!Ht[t])if(vt&&!k(gt,x(n,mt,"")));else if(n)return!1;return!0},De=function(t){return"annotation-xml"!==t&&C(t,Ft)},Ee=function(t){Ce(lt.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||ye(t))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xt,forceKeepAttr:void 0};let i=e.length;for(;i--;){const o=e[i],{name:u,namespaceURI:a,value:s}=o,l=ae(u),c=s;let h="value"===u?c:D(c);if(r.attrName=l,r.attrValue=h,r.keepAttr=!0,r.forceKeepAttr=void 0,Ce(lt.uponSanitizeAttribute,t,r),h=r.attrValue,!zt||"id"!==l&&"name"!==l||(ge(u,t),h="user-content-"+h),Tt&&k(/((--!?|])>)|<\/(style|title)/i,h)){ge(u,t);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){ge(u,t);continue}if(!_t&&k(/\/>/i,h)){ge(u,t);continue}St&&f([ct,ht,dt],(t=>{h=x(h,t," ")}));const d=ae(t.nodeName);if(be(d,l,h)){if(nt&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(a);else switch(H.getAttributeType(d,l)){case"TrustedHTML":h=nt.createHTML(h);break;case"TrustedScriptURL":h=nt.createScriptURL(h)}if(h!==c)try{a?t.setAttributeNS(a,u,h):t.setAttribute(u,h),ye(t)?pe(t):g(n.removed)}catch(e){ge(u,t)}}else ge(u,t)}Ce(lt.afterSanitizeAttributes,t,null)},ke=function t(e){let n=null;const r=Fe(e);for(Ce(lt.beforeSanitizeShadowDOM,e,null);n=r.nextNode();)Ce(lt.uponSanitizeShadowNode,n,null),xe(n),Ee(n),n.content instanceof a&&t(n.content);Ce(lt.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,u=null,s=null;if(Jt=!t,Jt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Ae(t)){if("function"!=typeof t.toString)throw B("toString is not a function");if("string"!=typeof(t=t.toString()))throw B("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Lt||he(e),n.removed=[],"string"==typeof t&&(jt=!1),jt){if(t.nodeName){const e=ae(t.nodeName);if(!At[e]||Et[e])throw B("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof h)r=me("\x3c!----\x3e"),i=r.ownerDocument.importNode(t,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Ot&&!St&&!Mt&&-1===t.indexOf("<"))return nt&&Rt?nt.createHTML(t):t;if(r=me(t),!r)return Ot?null:Rt?rt:""}r&&$t&&pe(r.firstChild);const l=Fe(jt?t:r);for(;u=l.nextNode();)xe(u),Ee(u),u.content instanceof a&&ke(u.content);if(jt)return t;if(Ot){if(It)for(s=ut.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(xt.shadowroot||xt.shadowrootmode)&&(s=st.call(o,s,!0)),s}let c=Mt?r.outerHTML:r.innerHTML;return Mt&&At["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&k(Q,r.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+c),St&&f([ct,ht,dt],(t=>{c=x(c,t," ")})),nt&&Rt?nt.createHTML(c):c},n.setConfig=function(){he(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Lt=!0},n.clearConfig=function(){se=null,Lt=!1},n.isValidAttribute=function(t,e,n){se||he({});const r=ae(t),i=ae(e);return be(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&m(lt[t],e)},n.removeHook=function(t,e){if(void 0!==e){const n=p(lt[t],e);return-1===n?void 0:F(lt[t],n,1)[0]}return g(lt[t])},n.removeHooks=function(t){lt[t]=[]},n.removeAllHooks=function(){lt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()},2857:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e,n){for(var r=-1,i=Object(t),o=n(t),u=o.length;u--;){var a=o[++r];if(!1===e(i[a],a,i))break}return t}},2880:(t,e,n)=>{"use strict";n.d(e,{O:()=>r});var r=(0,n(8084).K2)((({flowchart:t})=>{const e=t?.subGraphTitleMargin?.top??0,n=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:e+n}}),"getSubGraphTitleMargins")},2888:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(4044),i=n(7893),o=n(7313),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var a=n(8126),s=n(248),l=s.A&&s.A.isTypedArray;const c=l?(0,a.A)(l):function(t){return(0,o.A)(t)&&(0,i.A)(t.length)&&!!u[(0,r.A)(t)]}},2937:(t,e,n)=>{"use strict";n.d(e,{A:()=>M});var r=n(6781),i=n(9271),o=n(6979);const u=function(t,e,n){(void 0!==n&&!(0,o.A)(t[e],n)||void 0===n&&!(e in t))&&(0,i.A)(t,e,n)};var a=n(2857),s=n(521),l=n(5246),c=n(84),h=n(8250),d=n(8748),f=n(6956),p=n(376),g=n(4517),m=n(405),F=n(7942),y=n(4044),A=n(4878),C=n(7313),x=Function.prototype,b=Object.prototype,D=x.toString,E=b.hasOwnProperty,k=D.call(Object);var B=n(2888);const w=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var v=n(8078),_=n(1594);const S=function(t,e,n,r,i,o,a){var x,b=w(t,n),S=w(e,n),T=a.get(S);if(T)u(t,n,T);else{var M=o?o(b,S,n+"",t,e,a):void 0,L=void 0===M;if(L){var $=(0,f.A)(S),O=!$&&(0,g.A)(S),I=!$&&!O&&(0,B.A)(S);M=S,$||O||I?(0,f.A)(b)?M=b:(0,p.A)(b)?M=(0,c.A)(b):O?(L=!1,M=(0,s.A)(S,!0)):I?(L=!1,M=(0,l.A)(S,!0)):M=[]:function(t){if(!(0,C.A)(t)||"[object Object]"!=(0,y.A)(t))return!1;var e=(0,A.A)(t);if(null===e)return!0;var n=E.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&D.call(n)==k}(S)||(0,d.A)(S)?(M=b,(0,d.A)(b)?(x=b,M=(0,v.A)(x,(0,_.A)(x))):(0,F.A)(b)&&!(0,m.A)(b)||(M=(0,h.A)(S))):L=!1}L&&(a.set(S,M),i(M,S,r,o,a),a.delete(S)),u(t,n,M)}},T=function t(e,n,i,o,s){e!==n&&(0,a.A)(n,(function(a,l){if(s||(s=new r.A),(0,F.A)(a))S(e,n,l,i,t,o,s);else{var c=o?o(w(e,l),a,l+"",e,n,s):void 0;void 0===c&&(c=a),u(e,l,c)}}),_.A)},M=(0,n(8050).A)((function(t,e,n){T(t,e,n)}))},2967:(t,e,n)=>{"use strict";n.d(e,{A:()=>ze});var r=n(8999),i=n(9820);a(/[A-Za-z]/),a(/[\dA-Za-z]/),a(/[#-'*+\--9=?A-Z^-~]/),a(/\d/),a(/[\dA-Fa-f]/),a(/[!-/:-@[-`{-~]/);const o=a(/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65\u{10100}-\u{10102}\u{1039F}\u{103D0}\u{1056F}\u{10857}\u{1091F}\u{1093F}\u{10A50}-\u{10A58}\u{10A7F}\u{10AF0}-\u{10AF6}\u{10B39}-\u{10B3F}\u{10B99}-\u{10B9C}\u{10D6E}\u{10EAD}\u{10F55}-\u{10F59}\u{10F86}-\u{10F89}\u{11047}-\u{1104D}\u{110BB}\u{110BC}\u{110BE}-\u{110C1}\u{11140}-\u{11143}\u{11174}\u{11175}\u{111C5}-\u{111C8}\u{111CD}\u{111DB}\u{111DD}-\u{111DF}\u{11238}-\u{1123D}\u{112A9}\u{113D4}\u{113D5}\u{113D7}\u{113D8}\u{1144B}-\u{1144F}\u{1145A}\u{1145B}\u{1145D}\u{114C6}\u{115C1}-\u{115D7}\u{11641}-\u{11643}\u{11660}-\u{1166C}\u{116B9}\u{1173C}-\u{1173E}\u{1183B}\u{11944}-\u{11946}\u{119E2}\u{11A3F}-\u{11A46}\u{11A9A}-\u{11A9C}\u{11A9E}-\u{11AA2}\u{11B00}-\u{11B09}\u{11BE1}\u{11C41}-\u{11C45}\u{11C70}\u{11C71}\u{11EF7}\u{11EF8}\u{11F43}-\u{11F4F}\u{11FFF}\u{12470}-\u{12474}\u{12FF1}\u{12FF2}\u{16A6E}\u{16A6F}\u{16AF5}\u{16B37}-\u{16B3B}\u{16B44}\u{16D6D}-\u{16D6F}\u{16E97}-\u{16E9A}\u{16FE2}\u{1BC9F}\u{1DA87}-\u{1DA8B}\u{1E5FF}\u{1E95E}\u{1E95F}]|[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD\u{10137}-\u{1013F}\u{10179}-\u{10189}\u{1018C}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FC}\u{10877}\u{10878}\u{10AC8}\u{10D8E}\u{10D8F}\u{1173F}\u{11FD5}-\u{11FF1}\u{16B3C}-\u{16B3F}\u{16B45}\u{1BC9C}\u{1CC00}-\u{1CCEF}\u{1CD00}-\u{1CEB3}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D164}\u{1D16A}-\u{1D16C}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1EA}\u{1D200}-\u{1D241}\u{1D245}\u{1D300}-\u{1D356}\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}\u{1DA86}\u{1E14F}\u{1E2FF}\u{1ECAC}\u{1ECB0}\u{1ED2E}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F10D}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBEF}]/u),u=a(/\s/);function a(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}var s=n(7096);const l=function(t){if(null==t)return h;if("function"==typeof t)return c(t);if("object"==typeof t)return Array.isArray(t)?function(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=l(t[n]);return c((function(...t){let n=-1;for(;++n<e.length;)if(e[n].apply(this,t))return!0;return!1}))}(t):function(t){const e=t;return c((function(n){const r=n;let i;for(i in t)if(r[i]!==e[i])return!1;return!0}))}(t);if("string"==typeof t)return e=t,c((function(t){return t&&t.type===e}));var e;throw new Error("Expected function, string, or object as test")};function c(t){return function(e,n,r){return Boolean(function(t){return null!==t&&"object"==typeof t&&"type"in t}(e)&&t.call(this,e,"number"==typeof n?n:void 0,r||void 0))}}function h(){return!0}const d=[],f=!0,p=!1,g="skip";function m(t,e,n,r){let i;"function"==typeof e&&"function"!=typeof n?(r=n,n=e):i=e;const o=l(i),u=r?-1:1;!function t(i,a,s){const l=i&&"object"==typeof i?i:{};if("string"==typeof l.type){const t="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(t?"<"+t+">":"")+")"})}return c;function c(){let l,c,h,m=d;if((!e||o(i,a,s[s.length-1]||void 0))&&(m=function(t){return Array.isArray(t)?t:"number"==typeof t?[f,t]:null==t?d:[t]}(n(i,s)),m[0]===p))return m;if("children"in i&&i.children){const e=i;if(e.children&&m[0]!==g)for(c=(r?e.children.length:-1)+u,h=s.concat(e);c>-1&&c<e.children.length;){const n=e.children[c];if(l=t(n,c,h)(),l[0]===p)return l;c="number"==typeof l[1]?l[1]:c+u}}return m}}(t,void 0,[])()}function F(t){return"function"==typeof t?t:function(){return t}}const y="phrasing",A=["autolink","link","image","label"];function C(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function x(t){this.config.enter.autolinkProtocol.call(this,t)}function b(t){this.config.exit.autolinkProtocol.call(this,t)}function D(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];(0,i.ok)("link"===e.type),e.url="http://"+this.sliceSerialize(t)}function E(t){this.config.exit.autolinkEmail.call(this,t)}function k(t){this.exit(t)}function B(t){!function(t,e,n){const r=l((n||{}).ignore||[]),i=function(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<n.length;){const t=n[r];e.push([(i=t[0],"string"==typeof i?new RegExp((0,s.A)(i),"g"):i),F(t[1])])}var i;return e}(e);let o=-1;for(;++o<i.length;)m(t,"text",u);function u(t,e){let n,u=-1;for(;++u<e.length;){const t=e[u],i=n?n.children:void 0;if(r(t,i?i.indexOf(t):void 0,n))return;n=t}if(n)return function(t,e){const n=e[e.length-1],r=i[o][0],u=i[o][1];let a=0;const s=n.children.indexOf(t);let l=!1,c=[];r.lastIndex=0;let h=r.exec(t.value);for(;h;){const n=h.index,i={index:h.index,input:h.input,stack:[...e,t]};let o=u(...h,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&c.push({type:"text",value:t.value.slice(a,n)}),Array.isArray(o)?c.push(...o):o&&c.push(o),a=n+h[0].length,l=!0),!r.global)break;h=r.exec(t.value)}return l?(a<t.value.length&&c.push({type:"text",value:t.value.slice(a)}),n.children.splice(s,1,...c)):c=[t],s+c.length}(t,e)}}(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,w],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,v]],{ignore:["link","linkReference"]})}function w(t,e,n,i,o){let u="";if(!_(o))return!1;if(/^w/i.test(e)&&(n=e+n,e="",u="http://"),!function(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}(n))return!1;const a=function(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],i=n.indexOf(")");const o=(0,r.D)(t,"(");let u=(0,r.D)(t,")");for(;-1!==i&&o>u;)t+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),u++;return[t,n]}(n+i);if(!a[0])return!1;const s={type:"link",title:null,url:u+e+a[0],children:[{type:"text",value:e+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function v(t,e,n,r){return!(!_(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function _(t,e){const n=t.input.charCodeAt(t.index-1);return(0===t.index||u(n)||o(n))&&(!e||47!==n)}function S(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function T(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function M(){this.buffer()}function L(t){const e=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.label=e,n.identifier=S(this.sliceSerialize(t)).toLowerCase()}function $(t){this.exit(t)}function O(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function I(){this.buffer()}function R(t){const e=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.label=e,n.identifier=S(this.sliceSerialize(t)).toLowerCase()}function P(t){this.exit(t)}function z(t,e,n,r){const i=n.createTracker(r);let o=i.move("[^");const u=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(t),{...i.current(),before:o,after:"]"})),a(),u(),o+=i.move("]"),o}function N(t,e,n,r){const i=n.createTracker(r);let o=i.move("[^");const u=n.enter("footnoteDefinition"),a=n.enter("label");return o+=i.move(n.safe(n.associationId(t),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(t.children&&t.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(t,i.current()),j)),u(),o}function j(t,e,n){return 0===e?t:(n?"":" ")+t}z.peek=function(){return"["};const q=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function K(t){this.enter({type:"delete",children:[]},t)}function W(t){this.exit(t)}function H(t,e,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let u=i.move("~~");return u+=n.containerPhrasing(t,{...i.current(),before:u,after:"~"}),u+=i.move("~~"),o(),u}H.peek=function(){return"~"};var U=n(7395);function Y(t,e,n){return">"+(n?"":" ")+t}function G(t,e,n){if("string"==typeof e&&(e=[e]),!e||0===e.length)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}function V(t,e,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&(G(o=n.stack,(u=n.unsafe[i]).inConstruct,!0)&&!G(o,u.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var o,u;return"\\\n"}var X=n(5344);function Z(t,e,n){return(n?"":" ")+t}function Q(t){const e=t.options.quote||'"';if('"'!==e&&"'"!==e)throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function J(t,e,n,r){const i=function(t){const e=t.options.emphasis||"*";if("*"!==e&&"_"!==e)throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}(n),o=n.enter("emphasis"),u=n.createTracker(r);let a=u.move(i);return a+=u.move(n.containerPhrasing(t,{before:a,after:i,...u.current()})),a+=u.move(i),o(),a}J.peek=function(t,e,n){return n.options.emphasis||"*"};var tt=n(4269),et=n(6197);const nt={};function rt(t,e){const n=e||nt;return it(t,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function it(t,e,n){if(function(t){return Boolean(t&&"object"==typeof t)}(t)){if("value"in t)return"html"!==t.type||n?t.value:"";if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return ot(t.children,e,n)}return Array.isArray(t)?ot(t,e,n):""}function ot(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=it(t[i],e,n);return r.join("")}function ut(t){return t.value||""}function at(t,e,n,r){const i=Q(n),o='"'===i?"Quote":"Apostrophe",u=n.enter("image");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");return l+=s.move(n.safe(t.alt,{before:l,after:"]",...s.current()})),l+=s.move("]("),a(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(a=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(t.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(a=n.enter("destinationRaw"),l+=s.move(n.safe(t.url,{before:l,after:t.title?" ":")",...s.current()}))),a(),t.title&&(a=n.enter(`title${o}`),l+=s.move(" "+i),l+=s.move(n.safe(t.title,{before:l,after:i,...s.current()})),l+=s.move(i),a()),l+=s.move(")"),u(),l}function st(t,e,n,r){const i=t.referenceType,o=n.enter("imageReference");let u=n.enter("label");const a=n.createTracker(r);let s=a.move("![");const l=n.safe(t.alt,{before:s,after:"]",...a.current()});s+=a.move(l+"]["),u();const c=n.stack;n.stack=[],u=n.enter("reference");const h=n.safe(n.associationId(t),{before:s,after:"]",...a.current()});return u(),n.stack=c,o(),"full"!==i&&l&&l===h?"shortcut"===i?s=s.slice(0,-1):s+=a.move("]"):s+=a.move(h+"]"),s}function lt(t,e,n){let r=t.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const t=n.unsafe[o],e=n.compilePattern(t);let i;if(t.atBreak)for(;i=e.exec(r);){let t=i.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(i.index+1)}}return i+r+i}function ct(t,e){const n=rt(t);return Boolean(!e.options.resourceLink&&t.url&&!t.title&&t.children&&1===t.children.length&&"text"===t.children[0].type&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}function ht(t,e,n,r){const i=Q(n),o='"'===i?"Quote":"Apostrophe",u=n.createTracker(r);let a,s;if(ct(t,n)){const e=n.stack;n.stack=[],a=n.enter("autolink");let r=u.move("<");return r+=u.move(n.containerPhrasing(t,{before:r,after:">",...u.current()})),r+=u.move(">"),a(),n.stack=e,r}a=n.enter("link"),s=n.enter("label");let l=u.move("[");return l+=u.move(n.containerPhrasing(t,{before:l,after:"](",...u.current()})),l+=u.move("]("),s(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(s=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(t.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(s=n.enter("destinationRaw"),l+=u.move(n.safe(t.url,{before:l,after:t.title?" ":")",...u.current()}))),s(),t.title&&(s=n.enter(`title${o}`),l+=u.move(" "+i),l+=u.move(n.safe(t.title,{before:l,after:i,...u.current()})),l+=u.move(i),s()),l+=u.move(")"),a(),l}function dt(t,e,n,r){const i=t.referenceType,o=n.enter("linkReference");let u=n.enter("label");const a=n.createTracker(r);let s=a.move("[");const l=n.containerPhrasing(t,{before:s,after:"]",...a.current()});s+=a.move(l+"]["),u();const c=n.stack;n.stack=[],u=n.enter("reference");const h=n.safe(n.associationId(t),{before:s,after:"]",...a.current()});return u(),n.stack=c,o(),"full"!==i&&l&&l===h?"shortcut"===i?s=s.slice(0,-1):s+=a.move("]"):s+=a.move(h+"]"),s}function ft(t){const e=t.options.bullet||"*";if("*"!==e&&"+"!==e&&"-"!==e)throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function pt(t){const e=t.options.rule||"*";if("*"!==e&&"-"!==e&&"_"!==e)throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}ut.peek=function(){return"<"},at.peek=function(){return"!"},st.peek=function(){return"!"},lt.peek=function(){return"`"},ht.peek=function(t,e,n){return ct(t,n)?"<":"["},dt.peek=function(){return"["};const gt=function(t){if(null==t)return Ft;if("function"==typeof t)return mt(t);if("object"==typeof t)return Array.isArray(t)?function(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=gt(t[n]);return mt((function(...t){let n=-1;for(;++n<e.length;)if(e[n].apply(this,t))return!0;return!1}))}(t):function(t){const e=t;return mt((function(n){const r=n;let i;for(i in t)if(r[i]!==e[i])return!1;return!0}))}(t);if("string"==typeof t)return e=t,mt((function(t){return t&&t.type===e}));var e;throw new Error("Expected function, string, or object as test")};function mt(t){return function(e,n,r){return Boolean(function(t){return null!==t&&"object"==typeof t&&"type"in t}(e)&&t.call(this,e,"number"==typeof n?n:void 0,r||void 0))}}function Ft(){return!0}const yt=gt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function At(t,e,n,r){const i=function(t){const e=t.options.strong||"*";if("*"!==e&&"_"!==e)throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}(n),o=n.enter("strong"),u=n.createTracker(r);let a=u.move(i+i);return a+=u.move(n.containerPhrasing(t,{before:a,after:i,...u.current()})),a+=u.move(i+i),o(),a}At.peek=function(t,e,n){return n.options.strong||"*"};const Ct={blockquote:function(t,e,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const u=n.indentLines(n.containerFlow(t,o.current()),Y);return i(),u},break:V,code:function(t,e,n,r){const i=function(t){const e=t.options.fence||"`";if("`"!==e&&"~"!==e)throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}(n),o=t.value||"",u="`"===i?"GraveAccent":"Tilde";if(function(t,e){return Boolean(!1===e.options.fences&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}(t,n)){const t=n.enter("codeIndented"),e=n.indentLines(o,Z);return t(),e}const a=n.createTracker(r),s=i.repeat(Math.max((0,X.D)(o,i)+1,3)),l=n.enter("codeFenced");let c=a.move(s);if(t.lang){const e=n.enter(`codeFencedLang${u}`);c+=a.move(n.safe(t.lang,{before:c,after:" ",encode:["`"],...a.current()})),e()}if(t.lang&&t.meta){const e=n.enter(`codeFencedMeta${u}`);c+=a.move(" "),c+=a.move(n.safe(t.meta,{before:c,after:"\n",encode:["`"],...a.current()})),e()}return c+=a.move("\n"),o&&(c+=a.move(o+"\n")),c+=a.move(s),l(),c},definition:function(t,e,n,r){const i=Q(n),o='"'===i?"Quote":"Apostrophe",u=n.enter("definition");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");return l+=s.move(n.safe(n.associationId(t),{before:l,after:"]",...s.current()})),l+=s.move("]: "),a(),!t.url||/[\0- \u007F]/.test(t.url)?(a=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(t.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(a=n.enter("destinationRaw"),l+=s.move(n.safe(t.url,{before:l,after:t.title?" ":"\n",...s.current()}))),a(),t.title&&(a=n.enter(`title${o}`),l+=s.move(" "+i),l+=s.move(n.safe(t.title,{before:l,after:i,...s.current()})),l+=s.move(i),a()),u(),l},emphasis:J,hardBreak:V,heading:function(t,e,n,r){const i=Math.max(Math.min(6,t.depth||1),1),o=n.createTracker(r);if(function(t,e){let n=!1;return(0,tt.YR)(t,(function(t){if("value"in t&&/\r?\n|\r/.test(t.value)||"break"===t.type)return n=!0,et.dc})),Boolean((!t.depth||t.depth<3)&&rt(t)&&(e.options.setext||n))}(t,n)){const e=n.enter("headingSetext"),r=n.enter("phrasing"),u=n.containerPhrasing(t,{...o.current(),before:"\n",after:"\n"});return r(),e(),u+"\n"+(1===i?"=":"-").repeat(u.length-(Math.max(u.lastIndexOf("\r"),u.lastIndexOf("\n"))+1))}const u="#".repeat(i),a=n.enter("headingAtx"),s=n.enter("phrasing");o.move(u+" ");let l=n.containerPhrasing(t,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(l)&&(l="&#x"+l.charCodeAt(0).toString(16).toUpperCase()+";"+l.slice(1)),l=l?u+" "+l:u,n.options.closeAtx&&(l+=" "+u),s(),a(),l},html:ut,image:at,imageReference:st,inlineCode:lt,link:ht,linkReference:dt,list:function(t,e,n,r){const i=n.enter("list"),o=n.bulletCurrent;let u=t.ordered?function(t){const e=t.options.bulletOrdered||".";if("."!==e&&")"!==e)throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}(n):ft(n);const a=t.ordered?"."===u?")":".":function(t){const e=ft(t),n=t.options.bulletOther;if(!n)return"*"===e?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let s=!(!e||!n.bulletLastUsed)&&u===n.bulletLastUsed;if(!t.ordered){const e=t.children?t.children[0]:void 0;if("*"!==u&&"-"!==u||!e||e.children&&e.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(s=!0),pt(n)===u&&e){let e=-1;for(;++e<t.children.length;){const n=t.children[e];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){s=!0;break}}}}s&&(u=a),n.bulletCurrent=u;const l=n.containerFlow(t,r);return n.bulletLastUsed=u,n.bulletCurrent=o,i(),l},listItem:function(t,e,n,r){const i=function(t){const e=t.options.listItemIndent||"one";if("tab"!==e&&"one"!==e&&"mixed"!==e)throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}(n);let o=n.bulletCurrent||ft(n);e&&"list"===e.type&&e.ordered&&(o=("number"==typeof e.start&&e.start>-1?e.start:1)+(!1===n.options.incrementListMarker?0:e.children.indexOf(t))+o);let u=o.length+1;("tab"===i||"mixed"===i&&(e&&"list"===e.type&&e.spread||t.spread))&&(u=4*Math.ceil(u/4));const a=n.createTracker(r);a.move(o+" ".repeat(u-o.length)),a.shift(u);const s=n.enter("listItem"),l=n.indentLines(n.containerFlow(t,a.current()),(function(t,e,n){return e?(n?"":" ".repeat(u))+t:(n?o:o+" ".repeat(u-o.length))+t}));return s(),l},paragraph:function(t,e,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),u=n.containerPhrasing(t,r);return o(),i(),u},root:function(t,e,n,r){return(t.children.some((function(t){return yt(t)}))?n.containerPhrasing:n.containerFlow).call(n,t,r)},strong:At,text:function(t,e,n,r){return n.safe(t.value,r)},thematicBreak:function(t,e,n){const r=(pt(n)+(n.options.ruleSpaces?" ":"")).repeat(function(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function xt(t){const e=t._align;(0,i.ok)(e,"expected `_align` on table"),this.enter({type:"table",align:e.map((function(t){return"none"===t?null:t})),children:[]},t),this.data.inTable=!0}function bt(t){this.exit(t),this.data.inTable=void 0}function Dt(t){this.enter({type:"tableRow",children:[]},t)}function Et(t){this.exit(t)}function kt(t){this.enter({type:"tableCell",children:[]},t)}function Bt(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,wt));const n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=e,this.exit(t)}function wt(t,e){return"|"===e?e:t}function vt(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,i=e.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(t,e,n){let r=Ct.inlineCode(t,e,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(t,e,n,r){return a(function(t,e,n){const r=t.children;let i=-1;const o=[],u=e.enter("table");for(;++i<r.length;)o[i]=s(r[i],e,n);return u(),o}(t,n,r),t.align)},tableCell:u,tableRow:function(t,e,n,r){const i=a([s(t,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function u(t,e,n,r){const i=n.enter("tableCell"),u=n.enter("phrasing"),a=n.containerPhrasing(t,{...r,before:o,after:o});return u(),i(),a}function a(t,e){return(0,U.Q)(t,{align:e,alignDelimiters:r,padding:n,stringLength:i})}function s(t,e,n){const r=t.children;let i=-1;const o=[],a=e.enter("tableRow");for(;++i<r.length;)o[i]=u(r[i],0,e,n);return a(),o}}function _t(t){const e=this.stack[this.stack.length-2];(0,i.ok)("listItem"===e.type),e.checked="taskListCheckValueChecked"===t.type}function St(t){const e=this.stack[this.stack.length-2];if(e&&"listItem"===e.type&&"boolean"==typeof e.checked){const t=this.stack[this.stack.length-1];(0,i.ok)("paragraph"===t.type);const n=t.children[0];if(n&&"text"===n.type){const r=e.children;let i,o=-1;for(;++o<r.length;){const t=r[o];if("paragraph"===t.type){i=t;break}}i===t&&(n.value=n.value.slice(1),0===n.value.length?t.children.shift():t.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,t.position.start=Object.assign({},n.position.start)))}}this.exit(t)}function Tt(t,e,n,r){const i=t.children[0],o="boolean"==typeof t.checked&&i&&"paragraph"===i.type,u="["+(t.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(u);let s=Ct.listItem(t,e,n,{...r,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+u}))),s}const Mt={}.hasOwnProperty;function Lt(t,e){let n;for(n in e){const r=(Mt.call(t,n)?t[n]:void 0)||(t[n]={}),i=e[n];let o;if(i)for(o in i){Mt.call(r,o)||(r[o]=[]);const t=i[o];$t(r[o],Array.isArray(t)?t:t?[t]:[])}}}function $t(t,e){let n=-1;const r=[];for(;++n<e.length;)("after"===e[n].add?t:r).push(e[n]);!function(t,e,n,r){const i=t.length;let o,u=0;if(e=e<0?-e>i?0:i+e:e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);u<r.length;)o=r.slice(u,u+1e4),o.unshift(e,0),t.splice(...o),u+=1e4,e+=1e4}(t,0,0,r)}const Ot=Nt(/[A-Za-z]/),It=Nt(/[\dA-Za-z]/);function Rt(t){return null!==t&&(t<0||32===t)}Nt(/[#-'*+\--9=?A-Z^-~]/),Nt(/\d/),Nt(/[\dA-Fa-f]/),Nt(/[!-/:-@[-`{-~]/);const Pt=Nt(/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65\u{10100}-\u{10102}\u{1039F}\u{103D0}\u{1056F}\u{10857}\u{1091F}\u{1093F}\u{10A50}-\u{10A58}\u{10A7F}\u{10AF0}-\u{10AF6}\u{10B39}-\u{10B3F}\u{10B99}-\u{10B9C}\u{10D6E}\u{10EAD}\u{10F55}-\u{10F59}\u{10F86}-\u{10F89}\u{11047}-\u{1104D}\u{110BB}\u{110BC}\u{110BE}-\u{110C1}\u{11140}-\u{11143}\u{11174}\u{11175}\u{111C5}-\u{111C8}\u{111CD}\u{111DB}\u{111DD}-\u{111DF}\u{11238}-\u{1123D}\u{112A9}\u{113D4}\u{113D5}\u{113D7}\u{113D8}\u{1144B}-\u{1144F}\u{1145A}\u{1145B}\u{1145D}\u{114C6}\u{115C1}-\u{115D7}\u{11641}-\u{11643}\u{11660}-\u{1166C}\u{116B9}\u{1173C}-\u{1173E}\u{1183B}\u{11944}-\u{11946}\u{119E2}\u{11A3F}-\u{11A46}\u{11A9A}-\u{11A9C}\u{11A9E}-\u{11AA2}\u{11B00}-\u{11B09}\u{11BE1}\u{11C41}-\u{11C45}\u{11C70}\u{11C71}\u{11EF7}\u{11EF8}\u{11F43}-\u{11F4F}\u{11FFF}\u{12470}-\u{12474}\u{12FF1}\u{12FF2}\u{16A6E}\u{16A6F}\u{16AF5}\u{16B37}-\u{16B3B}\u{16B44}\u{16D6D}-\u{16D6F}\u{16E97}-\u{16E9A}\u{16FE2}\u{1BC9F}\u{1DA87}-\u{1DA8B}\u{1E5FF}\u{1E95E}\u{1E95F}]|[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD\u{10137}-\u{1013F}\u{10179}-\u{10189}\u{1018C}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FC}\u{10877}\u{10878}\u{10AC8}\u{10D8E}\u{10D8F}\u{1173F}\u{11FD5}-\u{11FF1}\u{16B3C}-\u{16B3F}\u{16B45}\u{1BC9C}\u{1CC00}-\u{1CCEF}\u{1CD00}-\u{1CEB3}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D164}\u{1D16A}-\u{1D16C}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1EA}\u{1D200}-\u{1D241}\u{1D245}\u{1D300}-\u{1D356}\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}\u{1DA86}\u{1E14F}\u{1E2FF}\u{1ECAC}\u{1ECB0}\u{1ED2E}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F10D}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBEF}]/u),zt=Nt(/\s/);function Nt(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}const jt={tokenize:function(t,e,n){let r=0;return function e(o){return(87===o||119===o)&&r<3?(r++,t.consume(o),e):46===o&&3===r?(t.consume(o),i):n(o)};function i(t){return null===t?n(t):e(t)}},partial:!0},qt={tokenize:function(t,e,n){let r,i,o;return u;function u(e){return 46===e||95===e?t.check(Wt,s,a)(e):null===e||Rt(e)||zt(e)||45!==e&&Pt(e)?s(e):(o=!0,t.consume(e),u)}function a(e){return 95===e?r=!0:(i=r,r=void 0),t.consume(e),u}function s(t){return i||r||!o?n(t):e(t)}},partial:!0},Kt={tokenize:function(t,e){let n=0,r=0;return i;function i(u){return 40===u?(n++,t.consume(u),i):41===u&&r<n?o(u):33===u||34===u||38===u||39===u||41===u||42===u||44===u||46===u||58===u||59===u||60===u||63===u||93===u||95===u||126===u?t.check(Wt,e,o)(u):null===u||Rt(u)||zt(u)?e(u):(t.consume(u),i)}function o(e){return 41===e&&r++,t.consume(e),i}},partial:!0},Wt={tokenize:function(t,e,n){return r;function r(u){return 33===u||34===u||39===u||41===u||42===u||44===u||46===u||58===u||59===u||63===u||95===u||126===u?(t.consume(u),r):38===u?(t.consume(u),o):93===u?(t.consume(u),i):60===u||null===u||Rt(u)||zt(u)?e(u):n(u)}function i(t){return null===t||40===t||91===t||Rt(t)||zt(t)?e(t):r(t)}function o(t){return Ot(t)?u(t):n(t)}function u(e){return 59===e?(t.consume(e),r):Ot(e)?(t.consume(e),u):n(e)}},partial:!0},Ht={tokenize:function(t,e,n){return function(e){return t.consume(e),r};function r(t){return It(t)?n(t):e(t)}},partial:!0},Ut={tokenize:function(t,e,n){const r=this;return function(e){return 87!==e&&119!==e||!Zt.call(r,r.previous)||ee(r.events)?n(e):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(jt,t.attempt(qt,t.attempt(Kt,i),n),n)(e))};function i(n){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(n)}},previous:Zt},Yt={tokenize:function(t,e,n){const r=this;let i="",o=!1;return function(e){return 72!==e&&104!==e||!Qt.call(r,r.previous)||ee(r.events)?n(e):(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(e),t.consume(e),u)};function u(e){if(Ot(e)&&i.length<5)return i+=String.fromCodePoint(e),t.consume(e),u;if(58===e){const n=i.toLowerCase();if("http"===n||"https"===n)return t.consume(e),a}return n(e)}function a(e){return 47===e?(t.consume(e),o?s:(o=!0,a)):n(e)}function s(e){return null===e||function(t){return null!==t&&(t<32||127===t)}(e)||Rt(e)||zt(e)||Pt(e)?n(e):t.attempt(qt,t.attempt(Kt,l),n)(e)}function l(n){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(n)}},previous:Qt},Gt={tokenize:function(t,e,n){const r=this;let i,o;return function(e){return te(e)&&Jt.call(r,r.previous)&&!ee(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),u(e)):n(e)};function u(e){return te(e)?(t.consume(e),u):64===e?(t.consume(e),a):n(e)}function a(e){return 46===e?t.check(Ht,l,s)(e):45===e||95===e||It(e)?(o=!0,t.consume(e),a):l(e)}function s(e){return t.consume(e),i=!0,a}function l(u){return o&&i&&Ot(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(u)):n(u)}},previous:Jt},Vt={};let Xt=48;for(;Xt<123;)Vt[Xt]=Gt,Xt++,58===Xt?Xt=65:91===Xt&&(Xt=97);function Zt(t){return null===t||40===t||42===t||95===t||91===t||93===t||126===t||Rt(t)}function Qt(t){return!Ot(t)}function Jt(t){return!(47===t||te(t))}function te(t){return 43===t||45===t||46===t||95===t||It(t)}function ee(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function ne(t){return null!==t&&(t<0||32===t)}function re(t){return-2===t||-1===t||32===t}function ie(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}function oe(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return re(r)?(t.enter(n),u(r)):e(r)};function u(r){return re(r)&&o++<i?(t.consume(r),u):(t.exit(n),e(r))}}Vt[43]=Gt,Vt[45]=Gt,Vt[46]=Gt,Vt[95]=Gt,Vt[72]=[Gt,Yt],Vt[104]=[Gt,Yt],Vt[87]=[Gt,Ut],Vt[119]=[Gt,Ut],ie(/[A-Za-z]/),ie(/[\dA-Za-z]/),ie(/[#-'*+\--9=?A-Z^-~]/),ie(/\d/),ie(/[\dA-Fa-f]/),ie(/[!-/:-@[-`{-~]/),ie(/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65\u{10100}-\u{10102}\u{1039F}\u{103D0}\u{1056F}\u{10857}\u{1091F}\u{1093F}\u{10A50}-\u{10A58}\u{10A7F}\u{10AF0}-\u{10AF6}\u{10B39}-\u{10B3F}\u{10B99}-\u{10B9C}\u{10D6E}\u{10EAD}\u{10F55}-\u{10F59}\u{10F86}-\u{10F89}\u{11047}-\u{1104D}\u{110BB}\u{110BC}\u{110BE}-\u{110C1}\u{11140}-\u{11143}\u{11174}\u{11175}\u{111C5}-\u{111C8}\u{111CD}\u{111DB}\u{111DD}-\u{111DF}\u{11238}-\u{1123D}\u{112A9}\u{113D4}\u{113D5}\u{113D7}\u{113D8}\u{1144B}-\u{1144F}\u{1145A}\u{1145B}\u{1145D}\u{114C6}\u{115C1}-\u{115D7}\u{11641}-\u{11643}\u{11660}-\u{1166C}\u{116B9}\u{1173C}-\u{1173E}\u{1183B}\u{11944}-\u{11946}\u{119E2}\u{11A3F}-\u{11A46}\u{11A9A}-\u{11A9C}\u{11A9E}-\u{11AA2}\u{11B00}-\u{11B09}\u{11BE1}\u{11C41}-\u{11C45}\u{11C70}\u{11C71}\u{11EF7}\u{11EF8}\u{11F43}-\u{11F4F}\u{11FFF}\u{12470}-\u{12474}\u{12FF1}\u{12FF2}\u{16A6E}\u{16A6F}\u{16AF5}\u{16B37}-\u{16B3B}\u{16B44}\u{16D6D}-\u{16D6F}\u{16E97}-\u{16E9A}\u{16FE2}\u{1BC9F}\u{1DA87}-\u{1DA8B}\u{1E5FF}\u{1E95E}\u{1E95F}]|[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD\u{10137}-\u{1013F}\u{10179}-\u{10189}\u{1018C}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FC}\u{10877}\u{10878}\u{10AC8}\u{10D8E}\u{10D8F}\u{1173F}\u{11FD5}-\u{11FF1}\u{16B3C}-\u{16B3F}\u{16B45}\u{1BC9C}\u{1CC00}-\u{1CCEF}\u{1CD00}-\u{1CEB3}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D164}\u{1D16A}-\u{1D16C}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1EA}\u{1D200}-\u{1D241}\u{1D245}\u{1D300}-\u{1D356}\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}\u{1DA86}\u{1E14F}\u{1E2FF}\u{1ECAC}\u{1ECB0}\u{1ED2E}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F10D}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBEF}]/u),ie(/\s/);const ue={tokenize:function(t,e,n){return function(e){return re(e)?oe(t,r,"linePrefix")(e):r(e)};function r(t){return null===t||function(t){return null!==t&&t<-2}(t)?e(t):n(t)}},partial:!0};function ae(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const se={tokenize:function(t,e,n){const r=this;return oe(t,(function(t){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?e(t):n(t)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function le(t,e,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u;for(;i--;){const t=r.events[i][1];if("labelImage"===t.type){u=t;break}if("gfmFootnoteCall"===t.type||"labelLink"===t.type||"label"===t.type||"image"===t.type||"link"===t.type)break}return function(i){if(!u||!u._balanced)return n(i);const a=ae(r.sliceSerialize({start:u.end,end:r.now()}));return 94===a.codePointAt(0)&&o.includes(a.slice(1))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(i),t.exit("gfmFootnoteCallLabelMarker"),e(i)):n(i)}}function ce(t,e){let n,r=t.length;for(;r--;)if("labelImage"===t[r][1].type&&"enter"===t[r][0]){n=t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},s=[t[r+1],t[r+2],["enter",i,e],t[r+3],t[r+4],["enter",o,e],["exit",o,e],["enter",u,e],["enter",a,e],["exit",a,e],["exit",u,e],t[t.length-2],t[t.length-1],["exit",i,e]];return t.splice(r,t.length-r+1,...s),t}function he(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,u=0;return function(e){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(e),t.exit("gfmFootnoteCallLabelMarker"),a};function a(e){return 94!==e?n(e):(t.enter("gfmFootnoteCallMarker"),t.consume(e),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",s)}function s(a){if(u>999||93===a&&!o||null===a||91===a||ne(a))return n(a);if(93===a){t.exit("chunkString");const o=t.exit("gfmFootnoteCallString");return i.includes(ae(r.sliceSerialize(o)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(a),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(a)}return ne(a)||(o=!0),u++,t.consume(a),92===a?l:s}function l(e){return 91===e||92===e||93===e?(t.consume(e),u++,s):s(e)}}function de(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,u,a=0;return function(e){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(e),t.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(e){return 94===e?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(e),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",l):n(e)}function l(e){if(a>999||93===e&&!u||null===e||91===e||ne(e))return n(e);if(93===e){t.exit("chunkString");const n=t.exit("gfmFootnoteDefinitionLabelString");return o=ae(r.sliceSerialize(n)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(e),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),h}return ne(e)||(u=!0),a++,t.consume(e),92===e?c:l}function c(e){return 91===e||92===e||93===e?(t.consume(e),a++,l):l(e)}function h(e){return 58===e?(t.enter("definitionMarker"),t.consume(e),t.exit("definitionMarker"),i.includes(o)||i.push(o),oe(t,d,"gfmFootnoteDefinitionWhitespace")):n(e)}function d(t){return e(t)}}function fe(t,e,n){return t.check(ue,e,t.attempt(se,e,n))}function pe(t){t.exit("gfmFootnoteDefinition")}function ge(t,e,n,r){const i=t.length;let o,u=0;if(e=e<0?-e>i?0:i+e:e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);u<r.length;)o=r.slice(u,u+1e4),o.unshift(e,0),t.splice(...o),u+=1e4,e+=1e4}ye(/[A-Za-z]/),ye(/[\dA-Za-z]/),ye(/[#-'*+\--9=?A-Z^-~]/),ye(/\d/),ye(/[\dA-Fa-f]/),ye(/[!-/:-@[-`{-~]/);const me=ye(/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65\u{10100}-\u{10102}\u{1039F}\u{103D0}\u{1056F}\u{10857}\u{1091F}\u{1093F}\u{10A50}-\u{10A58}\u{10A7F}\u{10AF0}-\u{10AF6}\u{10B39}-\u{10B3F}\u{10B99}-\u{10B9C}\u{10D6E}\u{10EAD}\u{10F55}-\u{10F59}\u{10F86}-\u{10F89}\u{11047}-\u{1104D}\u{110BB}\u{110BC}\u{110BE}-\u{110C1}\u{11140}-\u{11143}\u{11174}\u{11175}\u{111C5}-\u{111C8}\u{111CD}\u{111DB}\u{111DD}-\u{111DF}\u{11238}-\u{1123D}\u{112A9}\u{113D4}\u{113D5}\u{113D7}\u{113D8}\u{1144B}-\u{1144F}\u{1145A}\u{1145B}\u{1145D}\u{114C6}\u{115C1}-\u{115D7}\u{11641}-\u{11643}\u{11660}-\u{1166C}\u{116B9}\u{1173C}-\u{1173E}\u{1183B}\u{11944}-\u{11946}\u{119E2}\u{11A3F}-\u{11A46}\u{11A9A}-\u{11A9C}\u{11A9E}-\u{11AA2}\u{11B00}-\u{11B09}\u{11BE1}\u{11C41}-\u{11C45}\u{11C70}\u{11C71}\u{11EF7}\u{11EF8}\u{11F43}-\u{11F4F}\u{11FFF}\u{12470}-\u{12474}\u{12FF1}\u{12FF2}\u{16A6E}\u{16A6F}\u{16AF5}\u{16B37}-\u{16B3B}\u{16B44}\u{16D6D}-\u{16D6F}\u{16E97}-\u{16E9A}\u{16FE2}\u{1BC9F}\u{1DA87}-\u{1DA8B}\u{1E5FF}\u{1E95E}\u{1E95F}]|[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD\u{10137}-\u{1013F}\u{10179}-\u{10189}\u{1018C}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FC}\u{10877}\u{10878}\u{10AC8}\u{10D8E}\u{10D8F}\u{1173F}\u{11FD5}-\u{11FF1}\u{16B3C}-\u{16B3F}\u{16B45}\u{1BC9C}\u{1CC00}-\u{1CCEF}\u{1CD00}-\u{1CEB3}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D164}\u{1D16A}-\u{1D16C}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1EA}\u{1D200}-\u{1D241}\u{1D245}\u{1D300}-\u{1D356}\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}\u{1DA86}\u{1E14F}\u{1E2FF}\u{1ECAC}\u{1ECB0}\u{1ED2E}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F10D}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBEF}]/u),Fe=ye(/\s/);function ye(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}function Ae(t){return null===t||function(t){return null!==t&&(t<0||32===t)}(t)||Fe(t)?1:me(t)?2:void 0}function Ce(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const o=t[i].resolveAll;o&&!r.includes(o)&&(e=o(e,n),r.push(o))}return e}function xe(t){let e=(t||{}).singleTilde;const n={tokenize:function(t,n,r){const i=this.previous,o=this.events;let u=0;return function(e){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(e):(t.enter("strikethroughSequenceTemporary"),a(e))};function a(o){const s=Ae(i);if(126===o)return u>1?r(o):(t.consume(o),u++,a);if(u<2&&!e)return r(o);const l=t.exit("strikethroughSequenceTemporary"),c=Ae(o);return l._open=!c||2===c&&Boolean(s),l._close=!s||2===s&&Boolean(c),n(o)}},resolveAll:function(t,e){let n=-1;for(;++n<t.length;)if("enter"===t[n][0]&&"strikethroughSequenceTemporary"===t[n][1].type&&t[n][1]._close){let r=n;for(;r--;)if("exit"===t[r][0]&&"strikethroughSequenceTemporary"===t[r][1].type&&t[r][1]._open&&t[n][1].end.offset-t[n][1].start.offset==t[r][1].end.offset-t[r][1].start.offset){t[n][1].type="strikethroughSequence",t[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},t[r][1].start),end:Object.assign({},t[n][1].end)},o={type:"strikethroughText",start:Object.assign({},t[r][1].end),end:Object.assign({},t[n][1].start)},u=[["enter",i,e],["enter",t[r][1],e],["exit",t[r][1],e],["enter",o,e]],a=e.parser.constructs.insideSpan.null;a&&ge(u,u.length,0,Ce(a,t.slice(r+1,n),e)),ge(u,u.length,0,[["exit",o,e],["enter",t[n][1],e],["exit",t[n][1],e],["exit",i,e]]),ge(t,r-1,n-r+3,u),n=r+u.length-2;break}}for(n=-1;++n<t.length;)"strikethroughSequenceTemporary"===t[n][1].type&&(t[n][1].type="data");return t}};return null==e&&(e=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}function be(t){return null!==t&&t<-2}function De(t){return null!==t&&(t<0||32===t)}function Ee(t){return-2===t||-1===t||32===t}function ke(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}function Be(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return Ee(r)?(t.enter(n),u(r)):e(r)};function u(r){return Ee(r)&&o++<i?(t.consume(r),u):(t.exit(n),e(r))}}ke(/[A-Za-z]/),ke(/[\dA-Za-z]/),ke(/[#-'*+\--9=?A-Z^-~]/),ke(/\d/),ke(/[\dA-Fa-f]/),ke(/[!-/:-@[-`{-~]/),ke(/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65\u{10100}-\u{10102}\u{1039F}\u{103D0}\u{1056F}\u{10857}\u{1091F}\u{1093F}\u{10A50}-\u{10A58}\u{10A7F}\u{10AF0}-\u{10AF6}\u{10B39}-\u{10B3F}\u{10B99}-\u{10B9C}\u{10D6E}\u{10EAD}\u{10F55}-\u{10F59}\u{10F86}-\u{10F89}\u{11047}-\u{1104D}\u{110BB}\u{110BC}\u{110BE}-\u{110C1}\u{11140}-\u{11143}\u{11174}\u{11175}\u{111C5}-\u{111C8}\u{111CD}\u{111DB}\u{111DD}-\u{111DF}\u{11238}-\u{1123D}\u{112A9}\u{113D4}\u{113D5}\u{113D7}\u{113D8}\u{1144B}-\u{1144F}\u{1145A}\u{1145B}\u{1145D}\u{114C6}\u{115C1}-\u{115D7}\u{11641}-\u{11643}\u{11660}-\u{1166C}\u{116B9}\u{1173C}-\u{1173E}\u{1183B}\u{11944}-\u{11946}\u{119E2}\u{11A3F}-\u{11A46}\u{11A9A}-\u{11A9C}\u{11A9E}-\u{11AA2}\u{11B00}-\u{11B09}\u{11BE1}\u{11C41}-\u{11C45}\u{11C70}\u{11C71}\u{11EF7}\u{11EF8}\u{11F43}-\u{11F4F}\u{11FFF}\u{12470}-\u{12474}\u{12FF1}\u{12FF2}\u{16A6E}\u{16A6F}\u{16AF5}\u{16B37}-\u{16B3B}\u{16B44}\u{16D6D}-\u{16D6F}\u{16E97}-\u{16E9A}\u{16FE2}\u{1BC9F}\u{1DA87}-\u{1DA8B}\u{1E5FF}\u{1E95E}\u{1E95F}]|[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD\u{10137}-\u{1013F}\u{10179}-\u{10189}\u{1018C}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FC}\u{10877}\u{10878}\u{10AC8}\u{10D8E}\u{10D8F}\u{1173F}\u{11FD5}-\u{11FF1}\u{16B3C}-\u{16B3F}\u{16B45}\u{1BC9C}\u{1CC00}-\u{1CCEF}\u{1CD00}-\u{1CEB3}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D164}\u{1D16A}-\u{1D16C}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1EA}\u{1D200}-\u{1D241}\u{1D245}\u{1D300}-\u{1D356}\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}\u{1DA86}\u{1E14F}\u{1E2FF}\u{1ECAC}\u{1ECB0}\u{1ED2E}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F10D}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBEF}]/u),ke(/\s/);class we{constructor(){this.map=[]}add(t,e,n){!function(t,e,n,r){let i=0;if(0!==n||0!==r.length){for(;i<t.map.length;){if(t.map[i][0]===e)return t.map[i][1]+=n,void t.map[i][2].push(...r);i+=1}t.map.push([e,n,r])}}(this,t,e,n)}consume(t){if(this.map.sort((function(t,e){return t[0]-e[0]})),0===this.map.length)return;let e=this.map.length;const n=[];for(;e>0;)e-=1,n.push(t.slice(this.map[e][0]+this.map[e][1]),this.map[e][2]),t.length=this.map[e][0];n.push([...t]),t.length=0;let r=n.pop();for(;r;)t.push(...r),r=n.pop();this.map.length=0}}function ve(t,e){let n=!1;const r=[];for(;e<t.length;){const i=t[e];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===t[e+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===t[e-1][1].type){const t=r.length-1;r[t]="left"===r[t]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);e+=1}return r}function _e(t,e,n){const r=this;let i,o=0,u=0;return function(t){let e=r.events.length-1;for(;e>-1;){const t=r.events[e][1].type;if("lineEnding"!==t&&"linePrefix"!==t)break;e--}const i=e>-1?r.events[e][1].type:null,o="tableHead"===i||"tableRow"===i?C:a;return o===C&&r.parser.lazy[r.now().line]?n(t):o(t)};function a(e){return t.enter("tableHead"),t.enter("tableRow"),function(t){return 124===t||(i=!0,u+=1),s(t)}(e)}function s(e){return null===e?n(e):be(e)?u>1?(u=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),h):n(e):Ee(e)?Be(t,s,"whitespace")(e):(u+=1,i&&(i=!1,o+=1),124===e?(t.enter("tableCellDivider"),t.consume(e),t.exit("tableCellDivider"),i=!0,s):(t.enter("data"),l(e)))}function l(e){return null===e||124===e||De(e)?(t.exit("data"),s(e)):(t.consume(e),92===e?c:l)}function c(e){return 92===e||124===e?(t.consume(e),l):l(e)}function h(e){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(e):(t.enter("tableDelimiterRow"),i=!1,Ee(e)?Be(t,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):d(e))}function d(e){return 45===e||58===e?p(e):124===e?(i=!0,t.enter("tableCellDivider"),t.consume(e),t.exit("tableCellDivider"),f):A(e)}function f(e){return Ee(e)?Be(t,p,"whitespace")(e):p(e)}function p(e){return 58===e?(u+=1,i=!0,t.enter("tableDelimiterMarker"),t.consume(e),t.exit("tableDelimiterMarker"),g):45===e?(u+=1,g(e)):null===e||be(e)?y(e):A(e)}function g(e){return 45===e?(t.enter("tableDelimiterFiller"),m(e)):A(e)}function m(e){return 45===e?(t.consume(e),m):58===e?(i=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(e),t.exit("tableDelimiterMarker"),F):(t.exit("tableDelimiterFiller"),F(e))}function F(e){return Ee(e)?Be(t,y,"whitespace")(e):y(e)}function y(n){return 124===n?d(n):(null===n||be(n))&&i&&o===u?(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(n)):A(n)}function A(t){return n(t)}function C(e){return t.enter("tableRow"),x(e)}function x(n){return 124===n?(t.enter("tableCellDivider"),t.consume(n),t.exit("tableCellDivider"),x):null===n||be(n)?(t.exit("tableRow"),e(n)):Ee(n)?Be(t,x,"whitespace")(n):(t.enter("data"),b(n))}function b(e){return null===e||124===e||De(e)?(t.exit("data"),x(e)):(t.consume(e),92===e?D:b)}function D(e){return 92===e||124===e?(t.consume(e),b):b(e)}}function Se(t,e){let n,r,i,o=-1,u=!0,a=0,s=[0,0,0,0],l=[0,0,0,0],c=!1,h=0;const d=new we;for(;++o<t.length;){const f=t[o],p=f[1];"enter"===f[0]?"tableHead"===p.type?(c=!1,0!==h&&(Me(d,e,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(o,0,[["enter",n,e]])):"tableRow"===p.type||"tableDelimiterRow"===p.type?(u=!0,i=void 0,s=[0,0,0,0],l=[0,o+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(o,0,[["enter",r,e]])),a="tableDelimiterRow"===p.type?2:r?3:1):!a||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type?"tableCellDivider"===p.type&&(u?u=!1:(0!==s[1]&&(l[0]=l[1],i=Te(d,e,s,a,void 0,i)),s=l,l=[s[1],o,0,0])):(u=!1,0===l[2]&&(0!==s[1]&&(l[0]=l[1],i=Te(d,e,s,a,void 0,i),s=[0,0,0,0]),l[2]=o)):"tableHead"===p.type?(c=!0,h=o):"tableRow"===p.type||"tableDelimiterRow"===p.type?(h=o,0!==s[1]?(l[0]=l[1],i=Te(d,e,s,a,o,i)):0!==l[1]&&(i=Te(d,e,l,a,o,i)),a=0):!a||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type||(l[3]=o)}for(0!==h&&Me(d,e,h,n,r),d.consume(e.events),o=-1;++o<e.events.length;){const t=e.events[o];"enter"===t[0]&&"table"===t[1].type&&(t[1]._align=ve(e.events,o))}return t}function Te(t,e,n,r,i,o){const u=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},Le(e.events,n[0])),t.add(n[0],0,[["exit",o,e]]));const a=Le(e.events,n[1]);if(o={type:u,start:Object.assign({},a),end:Object.assign({},a)},t.add(n[1],0,[["enter",o,e]]),0!==n[2]){const i=Le(e.events,n[2]),o=Le(e.events,n[3]),u={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(t.add(n[2],0,[["enter",u,e]]),2!==r){const r=e.events[n[2]],i=e.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const e=n[2]+1,r=n[3]-n[2]-1;t.add(e,r,[])}}t.add(n[3]+1,0,[["exit",u,e]])}return void 0!==i&&(o.end=Object.assign({},Le(e.events,i)),t.add(i,0,[["exit",o,e]]),o=void 0),o}function Me(t,e,n,r,i){const o=[],u=Le(e.events,n);i&&(i.end=Object.assign({},u),o.push(["exit",i,e])),r.end=Object.assign({},u),o.push(["exit",r,e]),t.add(n+1,0,o)}function Le(t,e){const n=t[e],r="enter"===n[0]?"start":"end";return n[1][r]}function $e(t){return-2===t||-1===t||32===t}function Oe(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}Oe(/[A-Za-z]/),Oe(/[\dA-Za-z]/),Oe(/[#-'*+\--9=?A-Z^-~]/),Oe(/\d/),Oe(/[\dA-Fa-f]/),Oe(/[!-/:-@[-`{-~]/),Oe(/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65\u{10100}-\u{10102}\u{1039F}\u{103D0}\u{1056F}\u{10857}\u{1091F}\u{1093F}\u{10A50}-\u{10A58}\u{10A7F}\u{10AF0}-\u{10AF6}\u{10B39}-\u{10B3F}\u{10B99}-\u{10B9C}\u{10D6E}\u{10EAD}\u{10F55}-\u{10F59}\u{10F86}-\u{10F89}\u{11047}-\u{1104D}\u{110BB}\u{110BC}\u{110BE}-\u{110C1}\u{11140}-\u{11143}\u{11174}\u{11175}\u{111C5}-\u{111C8}\u{111CD}\u{111DB}\u{111DD}-\u{111DF}\u{11238}-\u{1123D}\u{112A9}\u{113D4}\u{113D5}\u{113D7}\u{113D8}\u{1144B}-\u{1144F}\u{1145A}\u{1145B}\u{1145D}\u{114C6}\u{115C1}-\u{115D7}\u{11641}-\u{11643}\u{11660}-\u{1166C}\u{116B9}\u{1173C}-\u{1173E}\u{1183B}\u{11944}-\u{11946}\u{119E2}\u{11A3F}-\u{11A46}\u{11A9A}-\u{11A9C}\u{11A9E}-\u{11AA2}\u{11B00}-\u{11B09}\u{11BE1}\u{11C41}-\u{11C45}\u{11C70}\u{11C71}\u{11EF7}\u{11EF8}\u{11F43}-\u{11F4F}\u{11FFF}\u{12470}-\u{12474}\u{12FF1}\u{12FF2}\u{16A6E}\u{16A6F}\u{16AF5}\u{16B37}-\u{16B3B}\u{16B44}\u{16D6D}-\u{16D6F}\u{16E97}-\u{16E9A}\u{16FE2}\u{1BC9F}\u{1DA87}-\u{1DA8B}\u{1E5FF}\u{1E95E}\u{1E95F}]|[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD\u{10137}-\u{1013F}\u{10179}-\u{10189}\u{1018C}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FC}\u{10877}\u{10878}\u{10AC8}\u{10D8E}\u{10D8F}\u{1173F}\u{11FD5}-\u{11FF1}\u{16B3C}-\u{16B3F}\u{16B45}\u{1BC9C}\u{1CC00}-\u{1CCEF}\u{1CD00}-\u{1CEB3}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D164}\u{1D16A}-\u{1D16C}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1EA}\u{1D200}-\u{1D241}\u{1D245}\u{1D300}-\u{1D356}\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}\u{1DA86}\u{1E14F}\u{1E2FF}\u{1ECAC}\u{1ECB0}\u{1ED2E}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F10D}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBEF}]/u),Oe(/\s/);const Ie={tokenize:function(t,e,n){const r=this;return function(e){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(e),t.exit("taskListCheckMarker"),i):n(e)};function i(e){return function(t){return null!==t&&(t<0||32===t)}(e)?(t.enter("taskListCheckValueUnchecked"),t.consume(e),t.exit("taskListCheckValueUnchecked"),o):88===e||120===e?(t.enter("taskListCheckValueChecked"),t.consume(e),t.exit("taskListCheckValueChecked"),o):n(e)}function o(e){return 93===e?(t.enter("taskListCheckMarker"),t.consume(e),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),u):n(e)}function u(r){return function(t){return null!==t&&t<-2}(r)?e(r):$e(r)?t.check({tokenize:Re},e,n)(r):n(r)}}};function Re(t,e,n){return function(t,e,n){const r=Number.POSITIVE_INFINITY;let i=0;return function(r){return $e(r)?(t.enter(n),o(r)):e(r)};function o(u){return $e(u)&&i++<r?(t.consume(u),o):(t.exit(n),e(u))}}(t,(function(t){return null===t?n(t):e(t)}),"whitespace")}const Pe={};function ze(t){const e=t||Pe,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(t){return function(t){const e={};let n=-1;for(;++n<t.length;)Lt(e,t[n]);return e}([{text:Vt},{document:{91:{tokenize:de,continuation:{tokenize:fe},exit:pe}},text:{91:{tokenize:he},93:{add:"after",tokenize:le,resolveTo:ce}}},xe(t),{flow:{null:{tokenize:_e,resolveAll:Se}}},{text:{91:Ie}}])}(e)),i.push([{transforms:[B],enter:{literalAutolink:C,literalAutolinkEmail:x,literalAutolinkHttp:x,literalAutolinkWww:x},exit:{literalAutolink:k,literalAutolinkEmail:E,literalAutolinkHttp:b,literalAutolinkWww:D}},{enter:{gfmFootnoteDefinition:T,gfmFootnoteDefinitionLabelString:M,gfmFootnoteCall:O,gfmFootnoteCallString:I},exit:{gfmFootnoteDefinition:$,gfmFootnoteDefinitionLabelString:L,gfmFootnoteCall:P,gfmFootnoteCallString:R}},{canContainEols:["delete"],enter:{strikethrough:K},exit:{strikethrough:W}},{enter:{table:xt,tableData:kt,tableHeader:kt,tableRow:Dt},exit:{codeText:Bt,table:bt,tableData:Et,tableHeader:Et,tableRow:Et}},{exit:{taskListCheckValueChecked:_t,taskListCheckValueUnchecked:_t,paragraph:St}}]),o.push(function(t){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:y,notInConstruct:A},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:y,notInConstruct:A},{character:":",before:"[ps]",after:"\\/",inConstruct:y,notInConstruct:A}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:N,footnoteReference:z}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:q}],handlers:{delete:H}},vt(t),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Tt}}]}}(e))}},3051:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3213:(t,e,n)=>{"use strict";function r(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function i(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function o(t){return t}n.d(e,{JLW:()=>Ma,l78:()=>y,tlR:()=>F,qrM:()=>Ha,Yu4:()=>Ya,IA3:()=>Va,Wi0:()=>Za,PGM:()=>Qa,OEq:()=>ts,y8u:()=>rs,olC:()=>os,IrU:()=>as,oDi:()=>cs,Q7f:()=>ds,cVp:()=>ps,lUB:()=>Oa,Lx9:()=>ms,nVG:()=>Es,uxU:()=>ks,Xf2:()=>vs,GZz:()=>Ss,UPb:()=>Ms,dyv:()=>Ts,GPZ:()=>Dr,Sk5:()=>vr,bEH:()=>oi,n8j:()=>Pa,T9B:()=>r,jkA:()=>i,rLf:()=>ja,WH:()=>di,m4Y:()=>ji,UMr:()=>hi,w7C:()=>ra,zt:()=>ia,Ltv:()=>oa,UAC:()=>ro,DCK:()=>Io,TUC:()=>fo,Agd:()=>eo,t6C:()=>Zi,wXd:()=>Ji,ABi:()=>so,Ui6:()=>Do,rGn:()=>po,ucG:()=>Qi,YPH:()=>ao,Mol:()=>ho,PGu:()=>lo,GuW:()=>co,hkb:()=>Nr});var u=1,a=2,s=3,l=4,c=1e-6;function h(t){return"translate("+t+",0)"}function d(t){return"translate(0,"+t+")"}function f(t){return e=>+t(e)}function p(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function g(){return!this.__axis}function m(t,e){var n=[],r=null,i=null,m=6,F=6,y=3,A="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,C=t===u||t===l?-1:1,x=t===l||t===a?"x":"y",b=t===u||t===s?h:d;function D(h){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,D=null==i?e.tickFormat?e.tickFormat.apply(e,n):o:i,E=Math.max(m,0)+y,k=e.range(),B=+k[0]+A,w=+k[k.length-1]+A,v=(e.bandwidth?p:f)(e.copy(),A),_=h.selection?h.selection():h,S=_.selectAll(".domain").data([null]),T=_.selectAll(".tick").data(d,e).order(),M=T.exit(),L=T.enter().append("g").attr("class","tick"),$=T.select("line"),O=T.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(L),$=$.merge(L.append("line").attr("stroke","currentColor").attr(x+"2",C*m)),O=O.merge(L.append("text").attr("fill","currentColor").attr(x,C*E).attr("dy",t===u?"0em":t===s?"0.71em":"0.32em")),h!==_&&(S=S.transition(h),T=T.transition(h),$=$.transition(h),O=O.transition(h),M=M.transition(h).attr("opacity",c).attr("transform",(function(t){return isFinite(t=v(t))?b(t+A):this.getAttribute("transform")})),L.attr("opacity",c).attr("transform",(function(t){var e=this.parentNode.__axis;return b((e&&isFinite(e=e(t))?e:v(t))+A)}))),M.remove(),S.attr("d",t===l||t===a?F?"M"+C*F+","+B+"H"+A+"V"+w+"H"+C*F:"M"+A+","+B+"V"+w:F?"M"+B+","+C*F+"V"+A+"H"+w+"V"+C*F:"M"+B+","+A+"H"+w),T.attr("opacity",1).attr("transform",(function(t){return b(v(t)+A)})),$.attr(x+"2",C*m),O.attr(x,C*E).text(D),_.filter(g).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===a?"start":t===l?"end":"middle"),_.each((function(){this.__axis=v}))}return D.scale=function(t){return arguments.length?(e=t,D):e},D.ticks=function(){return n=Array.from(arguments),D},D.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),D):n.slice()},D.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),D):r&&r.slice()},D.tickFormat=function(t){return arguments.length?(i=t,D):i},D.tickSize=function(t){return arguments.length?(m=F=+t,D):m},D.tickSizeInner=function(t){return arguments.length?(m=+t,D):m},D.tickSizeOuter=function(t){return arguments.length?(F=+t,D):F},D.tickPadding=function(t){return arguments.length?(y=+t,D):y},D.offset=function(t){return arguments.length?(A=+t,D):A},D}function F(t){return m(u,t)}function y(t){return m(s,t)}function A(){}function C(t){return null==t?A:function(){return this.querySelector(t)}}function x(){return[]}function b(t){return null==t?x:function(){return this.querySelectorAll(t)}}function D(t){return function(){return this.matches(t)}}function E(t){return function(e){return e.matches(t)}}var k=Array.prototype.find;function B(){return this.firstElementChild}var w=Array.prototype.filter;function v(){return Array.from(this.children)}function _(t){return new Array(t.length)}function S(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function T(t,e,n,r,i,o){for(var u,a=0,s=e.length,l=o.length;a<l;++a)(u=e[a])?(u.__data__=o[a],r[a]=u):n[a]=new S(t,o[a]);for(;a<s;++a)(u=e[a])&&(i[a]=u)}function M(t,e,n,r,i,o,u){var a,s,l,c=new Map,h=e.length,d=o.length,f=new Array(h);for(a=0;a<h;++a)(s=e[a])&&(f[a]=l=u.call(s,s.__data__,a,e)+"",c.has(l)?i[a]=s:c.set(l,s));for(a=0;a<d;++a)l=u.call(t,o[a],a,o)+"",(s=c.get(l))?(r[a]=s,s.__data__=o[a],c.delete(l)):n[a]=new S(t,o[a]);for(a=0;a<h;++a)(s=e[a])&&c.get(f[a])===s&&(i[a]=s)}function L(t){return t.__data__}function $(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function O(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}S.prototype={constructor:S,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var I="http://www.w3.org/1999/xhtml";const R={svg:"http://www.w3.org/2000/svg",xhtml:I,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function P(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),R.hasOwnProperty(e)?{space:R[e],local:t}:t}function z(t){return function(){this.removeAttribute(t)}}function N(t){return function(){this.removeAttributeNS(t.space,t.local)}}function j(t,e){return function(){this.setAttribute(t,e)}}function q(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function K(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function W(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function H(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function U(t){return function(){this.style.removeProperty(t)}}function Y(t,e,n){return function(){this.style.setProperty(t,e,n)}}function G(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function V(t,e){return t.style.getPropertyValue(e)||H(t).getComputedStyle(t,null).getPropertyValue(e)}function X(t){return function(){delete this[t]}}function Z(t,e){return function(){this[t]=e}}function Q(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function J(t){return t.trim().split(/^|\s+/)}function tt(t){return t.classList||new et(t)}function et(t){this._node=t,this._names=J(t.getAttribute("class")||"")}function nt(t,e){for(var n=tt(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function rt(t,e){for(var n=tt(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function it(t){return function(){nt(this,t)}}function ot(t){return function(){rt(this,t)}}function ut(t,e){return function(){(e.apply(this,arguments)?nt:rt)(this,t)}}function at(){this.textContent=""}function st(t){return function(){this.textContent=t}}function lt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function ct(){this.innerHTML=""}function ht(t){return function(){this.innerHTML=t}}function dt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function ft(){this.nextSibling&&this.parentNode.appendChild(this)}function pt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===I&&e.documentElement.namespaceURI===I?e.createElement(t):e.createElementNS(n,t)}}function mt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ft(t){var e=P(t);return(e.local?mt:gt)(e)}function yt(){return null}function At(){var t=this.parentNode;t&&t.removeChild(this)}function Ct(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function xt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function bt(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function Dt(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var u=0,a=i.length;u<a;++u)if((r=i[u]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Et(t,e,n){var r=H(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function kt(t,e){return function(){return Et(this,t,e)}}function Bt(t,e){return function(){return Et(this,t,e.apply(this,arguments))}}et.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var wt=[null];function vt(t,e){this._groups=t,this._parents=e}function _t(){return new vt([[document.documentElement]],wt)}vt.prototype=_t.prototype={constructor:vt,select:function(t){"function"!=typeof t&&(t=C(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,u,a=e[i],s=a.length,l=r[i]=new Array(s),c=0;c<s;++c)(o=a[c])&&(u=t.call(o,o.__data__,c,a))&&("__data__"in o&&(u.__data__=o.__data__),l[c]=u);return new vt(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e);var e}}(t):b(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var u,a=e[o],s=a.length,l=0;l<s;++l)(u=a[l])&&(r.push(t.call(u,u.__data__,l,a)),i.push(u));return new vt(r,i)},selectChild:function(t){return this.select(null==t?B:function(t){return function(){return k.call(this.children,t)}}("function"==typeof t?t:E(t)))},selectChildren:function(t){return this.selectAll(null==t?v:function(t){return function(){return w.call(this.children,t)}}("function"==typeof t?t:E(t)))},filter:function(t){"function"!=typeof t&&(t=D(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,u=e[i],a=u.length,s=r[i]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new vt(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,L);var n,r=e?M:T,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var u=o.length,a=new Array(u),s=new Array(u),l=new Array(u),c=0;c<u;++c){var h=i[c],d=o[c],f=d.length,p=$(t.call(h,h&&h.__data__,c,i)),g=p.length,m=s[c]=new Array(g),F=a[c]=new Array(g);r(h,d,m,F,l[c]=new Array(f),p,e);for(var y,A,C=0,x=0;C<g;++C)if(y=m[C]){for(C>=x&&(x=C+1);!(A=F[x])&&++x<g;);y._next=A||null}}return(a=new vt(a,i))._enter=s,a._exit=l,a},enter:function(){return new vt(this._enter||this._groups.map(_),this._parents)},exit:function(){return new vt(this._exit||this._groups.map(_),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,u=Math.min(i,o),a=new Array(i),s=0;s<u;++s)for(var l,c=n[s],h=r[s],d=c.length,f=a[s]=new Array(d),p=0;p<d;++p)(l=c[p]||h[p])&&(f[p]=l);for(;s<i;++s)a[s]=n[s];return new vt(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=O);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var u,a=n[o],s=a.length,l=i[o]=new Array(s),c=0;c<s;++c)(u=a[c])&&(l[c]=u);l.sort(e)}return new vt(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,e){var n=P(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?N:z:"function"==typeof e?n.local?W:K:n.local?q:j)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?U:"function"==typeof e?G:Y)(t,e,null==n?"":n)):V(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?X:"function"==typeof e?Q:Z)(t,e)):this.node()[t]},classed:function(t,e){var n=J(t+"");if(arguments.length<2){for(var r=tt(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?ut:e?it:ot)(n,e))},text:function(t){return arguments.length?this.each(null==t?at:("function"==typeof t?lt:st)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ct:("function"==typeof t?dt:ht)(t)):this.node().innerHTML},raise:function(){return this.each(ft)},lower:function(){return this.each(pt)},append:function(t){var e="function"==typeof t?t:Ft(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:Ft(t),r=null==e?yt:"function"==typeof e?e:C(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(At)},clone:function(t){return this.select(t?xt:Ct)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),u=o.length;if(!(arguments.length<2)){for(a=e?Dt:bt,r=0;r<u;++r)this.each(a(o[r],e,n));return this}var a=this.node().__on;if(a)for(var s,l=0,c=a.length;l<c;++l)for(r=0,s=a[l];r<u;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(t,e){return this.each(("function"==typeof e?Bt:kt)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,u=i.length;o<u;++o)(r=i[o])&&(yield r)}};const St=_t;var Tt={value:()=>{}};function Mt(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Lt(r)}function Lt(t){this._=t}function $t(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Ot(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Tt,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Lt.prototype=Mt.prototype={constructor:Lt,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),u=-1,a=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++u<a;)if(n=(t=o[u]).type)i[n]=Ot(i[n],t.name,e);else if(null==e)for(n in i)i[n]=Ot(i[n],t.name,null);return this}for(;++u<a;)if((n=(t=o[u]).type)&&(n=$t(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Lt(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};const It=Mt;var Rt,Pt,zt=0,Nt=0,jt=0,qt=0,Kt=0,Wt=0,Ht="object"==typeof performance&&performance.now?performance:Date,Ut="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Yt(){return Kt||(Ut(Gt),Kt=Ht.now()+Wt)}function Gt(){Kt=0}function Vt(){this._call=this._time=this._next=null}function Xt(t,e,n){var r=new Vt;return r.restart(t,e,n),r}function Zt(){Kt=(qt=Ht.now())+Wt,zt=Nt=0;try{!function(){Yt(),++zt;for(var t,e=Rt;e;)(t=Kt-e._time)>=0&&e._call.call(void 0,t),e=e._next;--zt}()}finally{zt=0,function(){for(var t,e,n=Rt,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Rt=e);Pt=t,Jt(r)}(),Kt=0}}function Qt(){var t=Ht.now(),e=t-qt;e>1e3&&(Wt-=e,qt=t)}function Jt(t){zt||(Nt&&(Nt=clearTimeout(Nt)),t-Kt>24?(t<1/0&&(Nt=setTimeout(Zt,t-Ht.now()-Wt)),jt&&(jt=clearInterval(jt))):(jt||(qt=Ht.now(),jt=setInterval(Qt,1e3)),zt=1,Ut(Zt)))}function te(t,e,n){var r=new Vt;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Vt.prototype=Xt.prototype={constructor:Vt,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Yt():+n)+(null==e?0:+e),this._next||Pt===this||(Pt?Pt._next=this:Rt=this,Pt=this),this._call=t,this._time=n,Jt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jt())}};var ee=It("start","end","cancel","interrupt"),ne=[];function re(t,e,n,r,i,o){var u=t.__transition;if(u){if(n in u)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(s){var l,c,h,d;if(1!==n.state)return a();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return te(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[l]):+l<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[l])}if(te((function(){3===n.state&&(n.state=4,n.timer.restart(u,n.delay,n.time),u(s))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(h=n.tween.length),l=0,c=-1;l<h;++l)(d=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++c]=d);r.length=c+1}}function u(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Xt((function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:ee,tween:ne,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function ie(t,e){var n=ue(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function oe(t,e){var n=ue(t,e);if(n.state>3)throw new Error("too late; already running");return n}function ue(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function ae(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var se,le=180/Math.PI,ce={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function he(t,e,n,r,i,o){var u,a,s;return(u=Math.sqrt(t*t+e*e))&&(t/=u,e/=u),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,s/=a),t*r<e*n&&(t=-t,e=-e,s=-s,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*le,skewX:Math.atan(s)*le,scaleX:u,scaleY:a}}function de(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,u){var a=[],s=[];return o=t(o),u=t(u),function(t,r,i,o,u,a){if(t!==i||r!==o){var s=u.push("translate(",null,e,null,n);a.push({i:s-4,x:ae(t,i)},{i:s-2,x:ae(r,o)})}else(i||o)&&u.push("translate("+i+e+o+n)}(o.translateX,o.translateY,u.translateX,u.translateY,a,s),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:ae(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,u.rotate,a,s),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:ae(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,u.skewX,a,s),function(t,e,n,r,o,u){if(t!==n||e!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:ae(t,n)},{i:a-2,x:ae(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,s),o=u=null,function(t){for(var e,n=-1,r=s.length;++n<r;)a[(e=s[n]).i]=e.x(t);return a.join("")}}}var fe=de((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ce:he(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),pe=de((function(t){return null==t?ce:(se||(se=document.createElementNS("http://www.w3.org/2000/svg","g")),se.setAttribute("transform",t),(t=se.transform.baseVal.consolidate())?he((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):ce)}),", ",")",")");function ge(t,e){var n,r;return function(){var i=oe(this,t),o=i.tween;if(o!==n)for(var u=0,a=(r=n=o).length;u<a;++u)if(r[u].name===e){(r=r.slice()).splice(u,1);break}i.tween=r}}function me(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=oe(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:e,value:n},s=0,l=i.length;s<l;++s)if(i[s].name===e){i[s]=a;break}s===l&&i.push(a)}o.tween=i}}function Fe(t,e,n){var r=t._id;return t.each((function(){var t=oe(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return ue(t,r).value[e]}}function ye(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ae(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Ce(){}var xe=.7,be=1/xe,De="\\s*([+-]?\\d+)\\s*",Ee="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Be=/^#([0-9a-f]{3,8})$/,we=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),ve=new RegExp(`^rgb\\(${ke},${ke},${ke}\\)$`),_e=new RegExp(`^rgba\\(${De},${De},${De},${Ee}\\)$`),Se=new RegExp(`^rgba\\(${ke},${ke},${ke},${Ee}\\)$`),Te=new RegExp(`^hsl\\(${Ee},${ke},${ke}\\)$`),Me=new RegExp(`^hsla\\(${Ee},${ke},${ke},${Ee}\\)$`),Le={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 $e(){return this.rgb().formatHex()}function Oe(){return this.rgb().formatRgb()}function Ie(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Be.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Re(e):3===n?new ze(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Pe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Pe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=we.exec(t))?new ze(e[1],e[2],e[3],1):(e=ve.exec(t))?new ze(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=_e.exec(t))?Pe(e[1],e[2],e[3],e[4]):(e=Se.exec(t))?Pe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Te.exec(t))?He(e[1],e[2]/100,e[3]/100,1):(e=Me.exec(t))?He(e[1],e[2]/100,e[3]/100,e[4]):Le.hasOwnProperty(t)?Re(Le[t]):"transparent"===t?new ze(NaN,NaN,NaN,0):null}function Re(t){return new ze(t>>16&255,t>>8&255,255&t,1)}function Pe(t,e,n,r){return r<=0&&(t=e=n=NaN),new ze(t,e,n,r)}function ze(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ne(){return`#${We(this.r)}${We(this.g)}${We(this.b)}`}function je(){const t=qe(this.opacity);return`${1===t?"rgb(":"rgba("}${Ke(this.r)}, ${Ke(this.g)}, ${Ke(this.b)}${1===t?")":`, ${t})`}`}function qe(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ke(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function We(t){return((t=Ke(t))<16?"0":"")+t.toString(16)}function He(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ye(t,e,n,r)}function Ue(t){if(t instanceof Ye)return new Ye(t.h,t.s,t.l,t.opacity);if(t instanceof Ce||(t=Ie(t)),!t)return new Ye;if(t instanceof Ye)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),u=NaN,a=o-i,s=(o+i)/2;return a?(u=e===o?(n-r)/a+6*(n<r):n===o?(r-e)/a+2:(e-n)/a+4,a/=s<.5?o+i:2-o-i,u*=60):a=s>0&&s<1?0:u,new Ye(u,a,s,t.opacity)}function Ye(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ge(t){return(t=(t||0)%360)<0?t+360:t}function Ve(t){return Math.max(0,Math.min(1,t||0))}function Xe(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ze(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Qe(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Je(){}ye(Ce,Ie,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:$e,formatHex:$e,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ue(this).formatHsl()},formatRgb:Oe,toString:Oe}),ye(ze,(function(t,e,n,r){return 1===arguments.length?((i=t)instanceof Ce||(i=Ie(i)),i?new ze((i=i.rgb()).r,i.g,i.b,i.opacity):new ze):new ze(t,e,n,null==r?1:r);var i}),Ae(Ce,{brighter(t){return t=null==t?be:Math.pow(be,t),new ze(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?xe:Math.pow(xe,t),new ze(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ze(Ke(this.r),Ke(this.g),Ke(this.b),qe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ne,formatHex:Ne,formatHex8:function(){return`#${We(this.r)}${We(this.g)}${We(this.b)}${We(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:je,toString:je})),ye(Ye,(function(t,e,n,r){return 1===arguments.length?Ue(t):new Ye(t,e,n,null==r?1:r)}),Ae(Ce,{brighter(t){return t=null==t?be:Math.pow(be,t),new Ye(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?xe:Math.pow(xe,t),new Ye(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ze(Xe(t>=240?t-240:t+120,i,r),Xe(t,i,r),Xe(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Ye(Ge(this.h),Ve(this.s),Ve(this.l),qe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=qe(this.opacity);return`${1===t?"hsl(":"hsla("}${Ge(this.h)}, ${100*Ve(this.s)}%, ${100*Ve(this.l)}%${1===t?")":`, ${t})`}`}}));var tn=.7,en=1/tn,nn="\\s*([+-]?\\d+)\\s*",rn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",on="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",un=/^#([0-9a-f]{3,8})$/,an=new RegExp(`^rgb\\(${nn},${nn},${nn}\\)$`),sn=new RegExp(`^rgb\\(${on},${on},${on}\\)$`),ln=new RegExp(`^rgba\\(${nn},${nn},${nn},${rn}\\)$`),cn=new RegExp(`^rgba\\(${on},${on},${on},${rn}\\)$`),hn=new RegExp(`^hsl\\(${rn},${on},${on}\\)$`),dn=new RegExp(`^hsla\\(${rn},${on},${on},${rn}\\)$`),fn={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 pn(){return this.rgb().formatHex()}function gn(){return this.rgb().formatRgb()}function mn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=un.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Fn(e):3===n?new xn(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?yn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?yn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=an.exec(t))?new xn(e[1],e[2],e[3],1):(e=sn.exec(t))?new xn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ln.exec(t))?yn(e[1],e[2],e[3],e[4]):(e=cn.exec(t))?yn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=hn.exec(t))?wn(e[1],e[2]/100,e[3]/100,1):(e=dn.exec(t))?wn(e[1],e[2]/100,e[3]/100,e[4]):fn.hasOwnProperty(t)?Fn(fn[t]):"transparent"===t?new xn(NaN,NaN,NaN,0):null}function Fn(t){return new xn(t>>16&255,t>>8&255,255&t,1)}function yn(t,e,n,r){return r<=0&&(t=e=n=NaN),new xn(t,e,n,r)}function An(t){return t instanceof Je||(t=mn(t)),t?new xn((t=t.rgb()).r,t.g,t.b,t.opacity):new xn}function Cn(t,e,n,r){return 1===arguments.length?An(t):new xn(t,e,n,null==r?1:r)}function xn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function bn(){return`#${Bn(this.r)}${Bn(this.g)}${Bn(this.b)}`}function Dn(){const t=En(this.opacity);return`${1===t?"rgb(":"rgba("}${kn(this.r)}, ${kn(this.g)}, ${kn(this.b)}${1===t?")":`, ${t})`}`}function En(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function kn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Bn(t){return((t=kn(t))<16?"0":"")+t.toString(16)}function wn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new _n(t,e,n,r)}function vn(t){if(t instanceof _n)return new _n(t.h,t.s,t.l,t.opacity);if(t instanceof Je||(t=mn(t)),!t)return new _n;if(t instanceof _n)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),u=NaN,a=o-i,s=(o+i)/2;return a?(u=e===o?(n-r)/a+6*(n<r):n===o?(r-e)/a+2:(e-n)/a+4,a/=s<.5?o+i:2-o-i,u*=60):a=s>0&&s<1?0:u,new _n(u,a,s,t.opacity)}function _n(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Sn(t){return(t=(t||0)%360)<0?t+360:t}function Tn(t){return Math.max(0,Math.min(1,t||0))}function Mn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ln(t,e,n,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*e+(4-6*o+3*u)*n+(1+3*t+3*o-3*u)*r+u*i)/6}Ze(Je,mn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:pn,formatHex:pn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vn(this).formatHsl()},formatRgb:gn,toString:gn}),Ze(xn,Cn,Qe(Je,{brighter(t){return t=null==t?en:Math.pow(en,t),new xn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?tn:Math.pow(tn,t),new xn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new xn(kn(this.r),kn(this.g),kn(this.b),En(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bn,formatHex:bn,formatHex8:function(){return`#${Bn(this.r)}${Bn(this.g)}${Bn(this.b)}${Bn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Dn,toString:Dn})),Ze(_n,(function(t,e,n,r){return 1===arguments.length?vn(t):new _n(t,e,n,null==r?1:r)}),Qe(Je,{brighter(t){return t=null==t?en:Math.pow(en,t),new _n(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?tn:Math.pow(tn,t),new _n(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new xn(Mn(t>=240?t-240:t+120,i,r),Mn(t,i,r),Mn(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new _n(Sn(this.h),Tn(this.s),Tn(this.l),En(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=En(this.opacity);return`${1===t?"hsl(":"hsla("}${Sn(this.h)}, ${100*Tn(this.s)}%, ${100*Tn(this.l)}%${1===t?")":`, ${t})`}`}}));const $n=t=>()=>t;function On(t,e){return function(n){return t+n*e}}function In(t,e){var n=e-t;return n?On(t,n):$n(isNaN(t)?e:t)}const Rn=function t(e){var n=function(t){return 1==(t=+t)?In:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):$n(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Cn(t)).r,(e=Cn(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),u=In(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=u(e),t+""}}return r.gamma=t,r}(1);function Pn(t){return function(e){var n,r,i=e.length,o=new Array(i),u=new Array(i),a=new Array(i);for(n=0;n<i;++n)r=Cn(e[n]),o[n]=r.r||0,u[n]=r.g||0,a[n]=r.b||0;return o=t(o),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=a(t),r+""}}}Pn((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=r<e-1?t[r+2]:2*o-i;return Ln((n-r/e)*e,u,i,o,a)}})),Pn((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],u=t[(r+1)%e],a=t[(r+2)%e];return Ln((n-r/e)*e,i,o,u,a)}}));var zn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nn=new RegExp(zn.source,"g");function jn(t,e){var n,r,i,o=zn.lastIndex=Nn.lastIndex=0,u=-1,a=[],s=[];for(t+="",e+="";(n=zn.exec(t))&&(r=Nn.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(n=n[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,s.push({i:u,x:ae(n,r)})),o=Nn.lastIndex;return o<e.length&&(i=e.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?s[0]?function(t){return function(e){return t(e)+""}}(s[0].x):function(t){return function(){return t}}(e):(e=s.length,function(t){for(var n,r=0;r<e;++r)a[(n=s[r]).i]=n.x(t);return a.join("")})}function qn(t,e){var n;return("number"==typeof e?ae:e instanceof Ie?Rn:(n=Ie(e))?(e=n,Rn):jn)(t,e)}function Kn(t){return function(){this.removeAttribute(t)}}function Wn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Hn(t,e,n){var r,i,o=n+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=e(r=u,n)}}function Un(t,e,n){var r,i,o=n+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=e(r=u,n)}}function Yn(t,e,n){var r,i,o;return function(){var u,a,s=n(this);if(null!=s)return(u=this.getAttribute(t))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=e(r=u,s));this.removeAttribute(t)}}function Gn(t,e,n){var r,i,o;return function(){var u,a,s=n(this);if(null!=s)return(u=this.getAttributeNS(t.space,t.local))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=e(r=u,s));this.removeAttributeNS(t.space,t.local)}}function Vn(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Xn(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Zn(t,e){return function(){ie(this,t).delay=+e.apply(this,arguments)}}function Qn(t,e){return e=+e,function(){ie(this,t).delay=e}}function Jn(t,e){return function(){oe(this,t).duration=+e.apply(this,arguments)}}function tr(t,e){return e=+e,function(){oe(this,t).duration=e}}var er=St.prototype.constructor;function nr(t){return function(){this.style.removeProperty(t)}}var rr=0;function ir(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function or(){return++rr}var ur=St.prototype;ir.prototype=function(t){return St().transition(t)}.prototype={constructor:ir,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=C(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,s,l=r[u],c=l.length,h=o[u]=new Array(c),d=0;d<c;++d)(a=l[d])&&(s=t.call(a,a.__data__,d,l))&&("__data__"in a&&(s.__data__=a.__data__),h[d]=s,re(h[d],e,n,d,h,ue(a,n)));return new ir(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=b(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var s,l=r[a],c=l.length,h=0;h<c;++h)if(s=l[h]){for(var d,f=t.call(s,s.__data__,h,l),p=ue(s,n),g=0,m=f.length;g<m;++g)(d=f[g])&&re(d,e,n,g,f,p);o.push(f),u.push(s)}return new ir(o,u,e,n)},selectChild:ur.selectChild,selectChildren:ur.selectChildren,filter:function(t){"function"!=typeof t&&(t=D(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,u=e[i],a=u.length,s=r[i]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new ir(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var s,l=e[a],c=n[a],h=l.length,d=u[a]=new Array(h),f=0;f<h;++f)(s=l[f]||c[f])&&(d[f]=s);for(;a<r;++a)u[a]=e[a];return new ir(u,this._parents,this._name,this._id)},selection:function(){return new er(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=or(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,l=0;l<s;++l)if(u=a[l]){var c=ue(u,e);re(u,t,n,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new ir(r,this._parents,t,n)},call:ur.call,nodes:ur.nodes,node:ur.node,size:ur.size,empty:ur.empty,each:ur.each,on:function(t,e){var n=this._id;return arguments.length<2?ue(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?ie:oe;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(e,n),u.on=i}}(n,t,e))},attr:function(t,e){var n=P(t),r="transform"===n?pe:qn;return this.attrTween(t,"function"==typeof e?(n.local?Gn:Yn)(n,r,Fe(this,"attr."+t,e)):null==e?(n.local?Wn:Kn)(n):(n.local?Un:Hn)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=P(t);return this.tween(n,(r.local?Vn:Xn)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?fe:qn;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=V(this,t),u=(this.style.removeProperty(t),V(this,t));return o===u?null:o===n&&u===r?i:i=e(n=o,r=u)}}(t,r)).on("end.style."+t,nr(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var u=V(this,t),a=n(this),s=a+"";return null==a&&(this.style.removeProperty(t),s=a=V(this,t)),u===s?null:u===r&&s===i?o:(i=s,o=e(r=u,a))}}(t,r,Fe(this,"style."+t,e))).each(function(t,e){var n,r,i,o,u="style."+e,a="end."+u;return function(){var s=oe(this,t),l=s.on,c=null==s.value[u]?o||(o=nr(e)):void 0;l===n&&i===c||(r=(n=l).copy()).on(a,i=c),s.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var u=V(this,t);return u===o?null:u===r?i:i=e(r=u,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Fe(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=ue(this.node(),n).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?ge:me)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Zn:Qn)(e,t)):ue(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Jn:tr)(e,t)):ue(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){oe(this,t).ease=e}}(e,t)):ue(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;oe(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,u){var a={value:u},s={value:function(){0==--i&&o()}};n.each((function(){var n=oe(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(s)),n.on=e})),0===i&&o()}))},[Symbol.iterator]:ur[Symbol.iterator]};var ar={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function sr(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}St.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,o=t.__transition,u=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):u=!1;u&&delete t.__transition}}(this,t)}))},St.prototype.transition=function(t){var e,n;t instanceof ir?(e=t._id,t=t._name):(e=or(),(n=ar).time=Yt(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,l=0;l<s;++l)(u=a[l])&&re(u,t,e,l,a,n||sr(u,e));return new ir(r,this._parents,t,e)};const{abs:lr,max:cr,min:hr}=Math;function dr(t){return{type:t}}function fr(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function pr(t){return(t=fr(Math.abs(t)))?t[1]:NaN}["w","e"].map(dr),["n","s"].map(dr),["n","w","e","s","nw","ne","sw","se"].map(dr);var gr,mr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fr(t){if(!(e=mr.exec(t)))throw new Error("invalid format: "+t);var e;return new yr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function yr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ar(t,e){var n=fr(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Fr.prototype=yr.prototype,yr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Cr={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Ar(100*t,e),r:Ar,s:function(t,e){var n=fr(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(gr=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+fr(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function xr(t){return t}var br,Dr,Er,kr=Array.prototype.map,Br=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wr(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function vr(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Sr)):void 0===e&&(e=_r);for(var n,r,i,o,u,a=new Lr(t),s=[a];n=s.pop();)if((i=e(n.data))&&(u=(i=Array.from(i)).length))for(n.children=i,o=u-1;o>=0;--o)s.push(r=i[o]=new Lr(i[o])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(Mr)}function _r(t){return t.children}function Sr(t){return Array.isArray(t)?t[1]:null}function Tr(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Mr(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Lr(t){this.data=t,this.depth=this.height=0,this.parent=null}function $r(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Or(t,e,n,r,i){for(var o,u=t.children,a=-1,s=u.length,l=t.value&&(r-e)/t.value;++a<s;)(o=u[a]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*l}function Ir(t,e,n,r,i){for(var o,u=t.children,a=-1,s=u.length,l=t.value&&(i-n)/t.value;++a<s;)(o=u[a]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*l}br=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?xr:(e=kr.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],u=0,a=e[0],s=0;i>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),o.push(t.substring(i-=a,i+a)),!((s+=a+1)>r));)a=e[u=(u+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?xr:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(kr.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Fr(t)).fill,n=t.align,h=t.sign,d=t.symbol,f=t.zero,p=t.width,g=t.comma,m=t.precision,F=t.trim,y=t.type;"n"===y?(g=!0,y="g"):Cr[y]||(void 0===m&&(m=12),F=!0,y="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var A="$"===d?i:"#"===d&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",C="$"===d?o:/[%p]/.test(y)?s:"",x=Cr[y],b=/[defgprs%]/.test(y);function D(t){var i,o,s,d=A,D=C;if("c"===y)D=x(t)+D,t="";else{var E=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:x(Math.abs(t),m),F&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),E&&0==+t&&"+"!==h&&(E=!1),d=(E?"("===h?h:l:"-"===h||"("===h?"":h)+d,D=("s"===y?Br[8+gr/3]:"")+D+(E&&"("===h?")":""),b)for(i=-1,o=t.length;++i<o;)if(48>(s=t.charCodeAt(i))||s>57){D=(46===s?u+t.slice(i+1):t.slice(i))+D,t=t.slice(0,i);break}}g&&!f&&(t=r(t,1/0));var k=d.length+t.length+D.length,B=k<p?new Array(p-k+1).join(e):"";switch(g&&f&&(t=r(B+t,B.length?p-D.length:1/0),B=""),n){case"<":t=d+t+D+B;break;case"=":t=d+B+t+D;break;case"^":t=B.slice(0,k=B.length>>1)+d+t+D+B.slice(k);break;default:t=B+d+t+D}return a(t)}return m=void 0===m?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),D.toString=function(){return t+""},D}return{format:h,formatPrefix:function(t,e){var n=h(((t=Fr(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(pr(e)/3))),i=Math.pow(10,-r),o=Br[8+r/3];return function(t){return n(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),Dr=br.format,Er=br.formatPrefix,Lr.prototype=vr.prototype={constructor:Lr,count:function(){return this.eachAfter(wr)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,u=[o],a=[],s=-1;o=u.pop();)if(a.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)u.push(n[r]);for(;o=a.pop();)t.call(e,o,++s,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],u=-1;i=o.pop();)if(t.call(e,i,++u,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return vr(this).eachBefore(Tr)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}};const Rr=function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var u,a,s,l,c,h,d,f,p,g,m,F=[],y=e.children,A=0,C=0,x=y.length,b=e.value;A<x;){s=i-n,l=o-r;do{c=y[C++].value}while(!c&&C<x);for(h=d=c,m=c*c*(g=Math.max(l/s,s/l)/(b*t)),p=Math.max(d/m,m/h);C<x;++C){if(c+=a=y[C].value,a<h&&(h=a),a>d&&(d=a),m=c*c*g,(f=Math.max(d/m,m/h))>p){c-=a;break}p=f}F.push(u={value:c,dice:s<l,children:y.slice(A,C)}),u.dice?Or(u,n,r,i,b?r+=l*c/b:o):Ir(u,n,r,b?n+=s*c/b:i,o),b-=c,A=C}}(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}((1+Math.sqrt(5))/2);function Pr(){return 0}function zr(t){return function(){return t}}function Nr(){var t=Rr,e=!1,n=1,r=1,i=[0],o=Pr,u=Pr,a=Pr,s=Pr,l=Pr;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore($r),t}function h(e){var n=i[e.depth],r=e.x0+n,c=e.y0+n,h=e.x1-n,d=e.y1-n;h<r&&(r=h=(r+h)/2),d<c&&(c=d=(c+d)/2),e.x0=r,e.y0=c,e.x1=h,e.y1=d,e.children&&(n=i[e.depth+1]=o(e)/2,r+=l(e)-n,c+=u(e)-n,(h-=a(e)-n)<r&&(r=h=(r+h)/2),(d-=s(e)-n)<c&&(c=d=(c+d)/2),t(e,r,c,h,d))}return c.round=function(t){return arguments.length?(e=!!t,c):e},c.size=function(t){return arguments.length?(n=+t[0],r=+t[1],c):[n,r]},c.tile=function(e){return arguments.length?(t=function(t){if("function"!=typeof t)throw new Error;return t}(e),c):t},c.padding=function(t){return arguments.length?c.paddingInner(t).paddingOuter(t):c.paddingInner()},c.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:zr(+t),c):o},c.paddingOuter=function(t){return arguments.length?c.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):c.paddingTop()},c.paddingTop=function(t){return arguments.length?(u="function"==typeof t?t:zr(+t),c):u},c.paddingRight=function(t){return arguments.length?(a="function"==typeof t?t:zr(+t),c):a},c.paddingBottom=function(t){return arguments.length?(s="function"==typeof t?t:zr(+t),c):s},c.paddingLeft=function(t){return arguments.length?(l="function"==typeof t?t:zr(+t),c):l},c}const jr=Math.PI/180,qr=180/Math.PI,Kr=.96422,Wr=.82521,Hr=4/29,Ur=6/29,Yr=3*Ur*Ur,Gr=Ur*Ur*Ur;function Vr(t){if(t instanceof Xr)return new Xr(t.l,t.a,t.b,t.opacity);if(t instanceof ni)return ri(t);t instanceof xn||(t=An(t));var e,n,r=ti(t.r),i=ti(t.g),o=ti(t.b),u=Zr((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=u:(e=Zr((.4360747*r+.3850649*i+.1430804*o)/Kr),n=Zr((.0139322*r+.0971045*i+.7141733*o)/Wr)),new Xr(116*u-16,500*(e-u),200*(u-n),t.opacity)}function Xr(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Zr(t){return t>Gr?Math.pow(t,1/3):t/Yr+Hr}function Qr(t){return t>Ur?t*t*t:Yr*(t-Hr)}function Jr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ti(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ei(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof ni)return new ni(t.h,t.c,t.l,t.opacity);if(t instanceof Xr||(t=Vr(t)),0===t.a&&0===t.b)return new ni(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*qr;return new ni(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new ni(t,e,n,null==r?1:r)}function ni(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function ri(t){if(isNaN(t.h))return new Xr(t.l,0,0,t.opacity);var e=t.h*jr;return new Xr(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function ii(t){return function(e,n){var r=t((e=ei(e)).h,(n=ei(n)).h),i=In(e.c,n.c),o=In(e.l,n.l),u=In(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=u(t),e+""}}}Ze(Xr,(function(t,e,n,r){return 1===arguments.length?Vr(t):new Xr(t,e,n,null==r?1:r)}),Qe(Je,{brighter(t){return new Xr(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new Xr(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new xn(Jr(3.1338561*(e=Kr*Qr(e))-1.6168667*(t=1*Qr(t))-.4906146*(n=Wr*Qr(n))),Jr(-.9787684*e+1.9161415*t+.033454*n),Jr(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Ze(ni,ei,Qe(Je,{brighter(t){return new ni(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new ni(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return ri(this).rgb()}}));const oi=ii((function(t,e){var n=e-t;return n?On(t,n>180||n<-180?n-360*Math.round(n/360):n):$n(isNaN(t)?e:t)}));function ui(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}ii(In);class ai extends Map{constructor(t,e=li){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(si(this,t))}has(t){return super.has(si(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function si({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function li(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const ci=Symbol("implicit");function hi(){var t=new ai,e=[],n=[],r=ci;function i(i){let o=t.get(i);if(void 0===o){if(r!==ci)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new ai;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return hi(e,n).unknown(r)},ui.apply(i,arguments),i}function di(){var t,e,n=hi().unknown(void 0),r=n.domain,i=n.range,o=0,u=1,a=!1,s=0,l=0,c=.5;function h(){var n=r().length,h=u<o,d=h?u:o,f=h?o:u;t=(f-d)/Math.max(1,n-s+2*l),a&&(t=Math.floor(t)),d+=(f-d-t*(n-s))*c,e=t*(1-s),a&&(d=Math.round(d),e=Math.round(e));var p=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}(n).map((function(e){return d+t*e}));return i(h?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),h()):r()},n.range=function(t){return arguments.length?([o,u]=t,o=+o,u=+u,h()):[o,u]},n.rangeRound=function(t){return[o,u]=t,o=+o,u=+u,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(s=Math.min(1,l=+t),h()):s},n.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),h()):s},n.paddingOuter=function(t){return arguments.length?(l=+t,h()):l},n.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),h()):c},n.copy=function(){return di(r(),[o,u]).round(a).paddingInner(s).paddingOuter(l).align(c)},ui.apply(h(),arguments)}const fi=Math.sqrt(50),pi=Math.sqrt(10),gi=Math.sqrt(2);function mi(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),u=o>=fi?10:o>=pi?5:o>=gi?2:1;let a,s,l;return i<0?(l=Math.pow(10,-i)/u,a=Math.round(t*l),s=Math.round(e*l),a/l<t&&++a,s/l>e&&--s,l=-l):(l=Math.pow(10,i)*u,a=Math.round(t/l),s=Math.round(e/l),a*l<t&&++a,s*l>e&&--s),s<a&&.5<=n&&n<2?mi(t,e,2*n):[a,s,l]}function Fi(t,e,n){return mi(t=+t,e=+e,n=+n)[2]}function yi(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?Fi(e,t,n):Fi(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function Ai(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ci(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xi(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=Ai,n=(e,n)=>Ai(t(e),n),r=(e,n)=>t(e)-n):(e=t===Ai||t===Ci?t:bi,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){const u=i(t,e,n,o-1);return u>n&&r(t[u-1],e)>-r(t[u],e)?u-1:u},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function bi(){return 0}const Di=xi(Ai),Ei=Di.right,ki=(Di.left,xi((function(t){return null===t?NaN:+t})).center,Ei);function Bi(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),u=new Array(r);for(n=0;n<i;++n)o[n]=Si(t[n],e[n]);for(;n<r;++n)u[n]=e[n];return function(t){for(n=0;n<i;++n)u[n]=o[n](t);return u}}function wi(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function vi(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Si(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}function _i(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function Si(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?$n(e):("number"===i?ae:"string"===i?(n=mn(e))?(e=n,Rn):jn:e instanceof mn?Rn:e instanceof Date?wi:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Bi:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?vi:ae:_i))(t,e)}function Ti(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Mi(t){return+t}var Li=[0,1];function $i(t){return t}function Oi(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function Ii(t,e,n){var r=t[0],i=t[1],o=e[0],u=e[1];return i<r?(r=Oi(i,r),o=n(u,o)):(r=Oi(r,i),o=n(o,u)),function(t){return o(r(t))}}function Ri(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),u=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++u<r;)i[u]=Oi(t[u],t[u+1]),o[u]=n(e[u],e[u+1]);return function(e){var n=ki(t,e,1,r)-1;return o[n](i[n](e))}}function Pi(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function zi(){return function(){var t,e,n,r,i,o,u=Li,a=Li,s=Si,l=$i;function c(){var t,e,n,s=Math.min(u.length,a.length);return l!==$i&&(t=u[0],e=u[s-1],t>e&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=s>2?Ri:Ii,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(u.map(t),a,s)))(t(l(e)))}return h.invert=function(n){return l(e((o||(o=r(a,u.map(t),ae)))(n)))},h.domain=function(t){return arguments.length?(u=Array.from(t,Mi),c()):u.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),c()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),s=Ti,c()},h.clamp=function(t){return arguments.length?(l=!!t||$i,c()):l!==$i},h.interpolate=function(t){return arguments.length?(s=t,c()):s},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,c()}}()($i,$i)}function Ni(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];const r=e<t,[i,o,u]=r?mi(e,t,n):mi(t,e,n);if(!(o>=i))return[];const a=o-i+1,s=new Array(a);if(r)if(u<0)for(let t=0;t<a;++t)s[t]=(o-t)/-u;else for(let t=0;t<a;++t)s[t]=(o-t)*u;else if(u<0)for(let t=0;t<a;++t)s[t]=(i+t)/-u;else for(let t=0;t<a;++t)s[t]=(i+t)*u;return s}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var i,o=yi(t,e,n);switch((r=Fr(null==r?",f":r)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pr(e)/3)))-pr(Math.abs(t)))}(o,u))||(r.precision=i),Er(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,pr(e)-pr(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-pr(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return Dr(r)}(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),u=0,a=o.length-1,s=o[u],l=o[a],c=10;for(l<s&&(i=s,s=l,l=i,i=u,u=a,a=i);c-- >0;){if((i=Fi(s,l,n))===r)return o[u]=s,o[a]=l,e(o);if(i>0)s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function ji(){var t=zi();return t.copy=function(){return Pi(t,ji())},ui.apply(t,arguments),Ni(t)}const qi=1e3,Ki=6e4,Wi=36e5,Hi=864e5,Ui=6048e5,Yi=31536e6,Gi=new Date,Vi=new Date;function Xi(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{const u=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return u;let a;do{u.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return u},i.filter=n=>Xi((e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})),n&&(i.count=(e,r)=>(Gi.setTime(+e),Vi.setTime(+r),t(Gi),t(Vi),Math.floor(n(Gi,Vi))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const Zi=Xi((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Zi.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Xi((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):Zi:null),Zi.range;const Qi=Xi((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*qi)}),((t,e)=>(e-t)/qi),(t=>t.getUTCSeconds())),Ji=(Qi.range,Xi((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*qi)}),((t,e)=>{t.setTime(+t+e*Ki)}),((t,e)=>(e-t)/Ki),(t=>t.getMinutes()))),to=(Ji.range,Xi((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Ki)}),((t,e)=>(e-t)/Ki),(t=>t.getUTCMinutes()))),eo=(to.range,Xi((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*qi-t.getMinutes()*Ki)}),((t,e)=>{t.setTime(+t+e*Wi)}),((t,e)=>(e-t)/Wi),(t=>t.getHours()))),no=(eo.range,Xi((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Wi)}),((t,e)=>(e-t)/Wi),(t=>t.getUTCHours()))),ro=(no.range,Xi((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ki)/Hi),(t=>t.getDate()-1))),io=(ro.range,Xi((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Hi),(t=>t.getUTCDate()-1))),oo=(io.range,Xi((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Hi),(t=>Math.floor(t/Hi))));function uo(t){return Xi((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ki)/Ui))}oo.range;const ao=uo(0),so=uo(1),lo=uo(2),co=uo(3),ho=uo(4),fo=uo(5),po=uo(6);function go(t){return Xi((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Ui))}ao.range,so.range,lo.range,co.range,ho.range,fo.range,po.range;const mo=go(0),Fo=go(1),yo=go(2),Ao=go(3),Co=go(4),xo=go(5),bo=go(6),Do=(mo.range,Fo.range,yo.range,Ao.range,Co.range,xo.range,bo.range,Xi((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),Eo=(Do.range,Xi((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),ko=(Eo.range,Xi((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));ko.every=t=>isFinite(t=Math.floor(t))&&t>0?Xi((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)})):null,ko.range;const Bo=Xi((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function wo(t,e,n,r,i,o){const u=[[Qi,1,qi],[Qi,5,5e3],[Qi,15,15e3],[Qi,30,3e4],[o,1,Ki],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Wi],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Hi],[r,2,1728e5],[n,1,Ui],[e,1,2592e6],[e,3,7776e6],[t,1,Yi]];function a(e,n,r){const i=Math.abs(n-e)/r,o=xi((([,,t])=>t)).right(u,i);if(o===u.length)return t.every(yi(e/Yi,n/Yi,r));if(0===o)return Zi.every(Math.max(yi(e,n,r),1));const[a,s]=u[i/u[o-1][2]<u[o][2]/i?o-1:o];return a.every(s)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:a(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},a]}Bo.every=t=>isFinite(t=Math.floor(t))&&t>0?Xi((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null,Bo.range;const[vo,_o]=wo(Bo,Eo,mo,oo,no,to),[So,To]=wo(ko,Do,ao,ro,eo,Ji);function Mo(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Lo(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function $o(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Oo,Io,Ro={"-":"",_:" ",0:"0"},Po=/^\s*\d+/,zo=/^%/,No=/[\\^$*+?|[\]().{}]/g;function jo(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function qo(t){return t.replace(No,"\\$&")}function Ko(t){return new RegExp("^(?:"+t.map(qo).join("|")+")","i")}function Wo(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Ho(t,e,n){var r=Po.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Uo(t,e,n){var r=Po.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Yo(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Go(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Vo(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Xo(t,e,n){var r=Po.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Zo(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Qo(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Jo(t,e,n){var r=Po.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function tu(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function eu(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function nu(t,e,n){var r=Po.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ru(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function iu(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ou(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function uu(t,e,n){var r=Po.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function au(t,e,n){var r=Po.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function su(t,e,n){var r=zo.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function lu(t,e,n){var r=Po.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function cu(t,e,n){var r=Po.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function hu(t,e){return jo(t.getDate(),e,2)}function du(t,e){return jo(t.getHours(),e,2)}function fu(t,e){return jo(t.getHours()%12||12,e,2)}function pu(t,e){return jo(1+ro.count(ko(t),t),e,3)}function gu(t,e){return jo(t.getMilliseconds(),e,3)}function mu(t,e){return gu(t,e)+"000"}function Fu(t,e){return jo(t.getMonth()+1,e,2)}function yu(t,e){return jo(t.getMinutes(),e,2)}function Au(t,e){return jo(t.getSeconds(),e,2)}function Cu(t){var e=t.getDay();return 0===e?7:e}function xu(t,e){return jo(ao.count(ko(t)-1,t),e,2)}function bu(t){var e=t.getDay();return e>=4||0===e?ho(t):ho.ceil(t)}function Du(t,e){return t=bu(t),jo(ho.count(ko(t),t)+(4===ko(t).getDay()),e,2)}function Eu(t){return t.getDay()}function ku(t,e){return jo(so.count(ko(t)-1,t),e,2)}function Bu(t,e){return jo(t.getFullYear()%100,e,2)}function wu(t,e){return jo((t=bu(t)).getFullYear()%100,e,2)}function vu(t,e){return jo(t.getFullYear()%1e4,e,4)}function _u(t,e){var n=t.getDay();return jo((t=n>=4||0===n?ho(t):ho.ceil(t)).getFullYear()%1e4,e,4)}function Su(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+jo(e/60|0,"0",2)+jo(e%60,"0",2)}function Tu(t,e){return jo(t.getUTCDate(),e,2)}function Mu(t,e){return jo(t.getUTCHours(),e,2)}function Lu(t,e){return jo(t.getUTCHours()%12||12,e,2)}function $u(t,e){return jo(1+io.count(Bo(t),t),e,3)}function Ou(t,e){return jo(t.getUTCMilliseconds(),e,3)}function Iu(t,e){return Ou(t,e)+"000"}function Ru(t,e){return jo(t.getUTCMonth()+1,e,2)}function Pu(t,e){return jo(t.getUTCMinutes(),e,2)}function zu(t,e){return jo(t.getUTCSeconds(),e,2)}function Nu(t){var e=t.getUTCDay();return 0===e?7:e}function ju(t,e){return jo(mo.count(Bo(t)-1,t),e,2)}function qu(t){var e=t.getUTCDay();return e>=4||0===e?Co(t):Co.ceil(t)}function Ku(t,e){return t=qu(t),jo(Co.count(Bo(t),t)+(4===Bo(t).getUTCDay()),e,2)}function Wu(t){return t.getUTCDay()}function Hu(t,e){return jo(Fo.count(Bo(t)-1,t),e,2)}function Uu(t,e){return jo(t.getUTCFullYear()%100,e,2)}function Yu(t,e){return jo((t=qu(t)).getUTCFullYear()%100,e,2)}function Gu(t,e){return jo(t.getUTCFullYear()%1e4,e,4)}function Vu(t,e){var n=t.getUTCDay();return jo((t=n>=4||0===n?Co(t):Co.ceil(t)).getUTCFullYear()%1e4,e,4)}function Xu(){return"+0000"}function Zu(){return"%"}function Qu(t){return+t}function Ju(t){return Math.floor(+t/1e3)}function ta(t){return new Date(t)}function ea(t){return t instanceof Date?+t:+new Date(+t)}function na(t,e,n,r,i,o,u,a,s,l){var c=zi(),h=c.invert,d=c.domain,f=l(".%L"),p=l(":%S"),g=l("%I:%M"),m=l("%I %p"),F=l("%a %d"),y=l("%b %d"),A=l("%B"),C=l("%Y");function x(t){return(s(t)<t?f:a(t)<t?p:u(t)<t?g:o(t)<t?m:r(t)<t?i(t)<t?F:y:n(t)<t?A:C)(t)}return c.invert=function(t){return new Date(h(t))},c.domain=function(t){return arguments.length?d(Array.from(t,ea)):d().map(ta)},c.ticks=function(e){var n=d();return t(n[0],n[n.length-1],null==e?10:e)},c.tickFormat=function(t,e){return null==e?x:l(e)},c.nice=function(t){var n=d();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?d(function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],u=t[i];return u<o&&(n=r,r=i,i=n,n=o,o=u,u=n),t[r]=e.floor(o),t[i]=e.ceil(u),t}(n,t)):c},c.copy=function(){return Pi(c,na(t,e,n,r,i,o,u,a,s,l))},c}function ra(){return ui.apply(na(So,To,ko,Do,ao,ro,eo,Ji,Qi,Io).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}Oo=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,u=t.shortDays,a=t.months,s=t.shortMonths,l=Ko(i),c=Wo(i),h=Ko(o),d=Wo(o),f=Ko(u),p=Wo(u),g=Ko(a),m=Wo(a),F=Ko(s),y=Wo(s),A={a:function(t){return u[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:hu,e:hu,f:mu,g:wu,G:_u,H:du,I:fu,j:pu,L:gu,m:Fu,M:yu,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Qu,s:Ju,S:Au,u:Cu,U:xu,V:Du,w:Eu,W:ku,x:null,X:null,y:Bu,Y:vu,Z:Su,"%":Zu},C={a:function(t){return u[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Tu,e:Tu,f:Iu,g:Yu,G:Vu,H:Mu,I:Lu,j:$u,L:Ou,m:Ru,M:Pu,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Qu,s:Ju,S:zu,u:Nu,U:ju,V:Ku,w:Wu,W:Hu,x:null,X:null,y:Uu,Y:Gu,Z:Xu,"%":Zu},x={a:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=F.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return E(t,e,n,r)},d:eu,e:eu,f:au,g:Zo,G:Xo,H:ru,I:ru,j:nu,L:uu,m:tu,M:iu,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:Jo,Q:lu,s:cu,S:ou,u:Uo,U:Yo,V:Go,w:Ho,W:Vo,x:function(t,e,r){return E(t,n,e,r)},X:function(t,e,n){return E(t,r,e,n)},y:Zo,Y:Xo,Z:Qo,"%":su};function b(t,e){return function(n){var r,i,o,u=[],a=-1,s=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++a<l;)37===t.charCodeAt(a)&&(u.push(t.slice(s,a)),null!=(i=Ro[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),u.push(r),s=a+1);return u.push(t.slice(s,a)),u.join("")}}function D(t,e){return function(n){var r,i,o=$o(1900,void 0,1);if(E(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Lo($o(o.y,0,1))).getUTCDay(),r=i>4||0===i?Fo.ceil(r):Fo(r),r=io.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Mo($o(o.y,0,1))).getDay(),r=i>4||0===i?so.ceil(r):so(r),r=ro.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Lo($o(o.y,0,1)).getUTCDay():Mo($o(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Lo(o)):Mo(o)}}function E(t,e,n,r){for(var i,o,u=0,a=e.length,s=n.length;u<a;){if(r>=s)return-1;if(37===(i=e.charCodeAt(u++))){if(i=e.charAt(u++),!(o=x[i in Ro?e.charAt(u++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return A.x=b(n,A),A.X=b(r,A),A.c=b(e,A),C.x=b(n,C),C.X=b(r,C),C.c=b(e,C),{format:function(t){var e=b(t+="",A);return e.toString=function(){return t},e},parse:function(t){var e=D(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=b(t+="",C);return e.toString=function(){return t},e},utcParse:function(t){var e=D(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),Io=Oo.format,Oo.parse,Oo.utcFormat,Oo.utcParse;const ia=function(t){for(var e=new Array(10),n=0;n<10;)e[n]="#"+t.slice(6*n,6*++n);return e}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function oa(t){return"string"==typeof t?new vt([[document.querySelector(t)]],[document.documentElement]):new vt([[t]],wt)}function ua(t){return function(){return t}}const aa=Math.abs,sa=Math.atan2,la=Math.cos,ca=Math.max,ha=Math.min,da=Math.sin,fa=Math.sqrt,pa=1e-12,ga=Math.PI,ma=ga/2,Fa=2*ga;function ya(t){return t>=1?ma:t<=-1?-ma:Math.asin(t)}const Aa=Math.PI,Ca=2*Aa,xa=1e-6,ba=Ca-xa;function Da(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class Ea{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Da:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Da;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,u=this._y1,a=n-t,s=r-e,l=o-t,c=u-e,h=l*l+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>xa)if(Math.abs(c*a-s*l)>xa&&i){let d=n-o,f=r-u,p=a*a+s*s,g=d*d+f*f,m=Math.sqrt(p),F=Math.sqrt(h),y=i*Math.tan((Aa-Math.acos((p+h-g)/(2*m*F)))/2),A=y/F,C=y/m;Math.abs(A-1)>xa&&this._append`L${t+A*l},${e+A*c}`,this._append`A${i},${i},0,0,${+(c*d>l*f)},${this._x1=t+C*a},${this._y1=e+C*s}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(r),a=n*Math.sin(r),s=t+u,l=e+a,c=1^o,h=o?r-i:i-r;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>xa||Math.abs(this._y1-l)>xa)&&this._append`L${s},${l}`,n&&(h<0&&(h=h%Ca+Ca),h>ba?this._append`A${n},${n},0,1,${c},${t-u},${e-a}A${n},${n},0,1,${c},${this._x1=s},${this._y1=l}`:h>xa&&this._append`A${n},${n},0,${+(h>=Aa)},${c},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function ka(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new Ea(e)}function Ba(t){return t.innerRadius}function wa(t){return t.outerRadius}function va(t){return t.startAngle}function _a(t){return t.endAngle}function Sa(t){return t&&t.padAngle}function Ta(t,e,n,r,i,o,u){var a=t-n,s=e-r,l=(u?o:-o)/fa(a*a+s*s),c=l*s,h=-l*a,d=t+c,f=e+h,p=n+c,g=r+h,m=(d+p)/2,F=(f+g)/2,y=p-d,A=g-f,C=y*y+A*A,x=i-o,b=d*g-p*f,D=(A<0?-1:1)*fa(ca(0,x*x*C-b*b)),E=(b*A-y*D)/C,k=(-b*y-A*D)/C,B=(b*A+y*D)/C,w=(-b*y+A*D)/C,v=E-m,_=k-F,S=B-m,T=w-F;return v*v+_*_>S*S+T*T&&(E=B,k=w),{cx:E,cy:k,x01:-c,y01:-h,x11:E*(i/x-1),y11:k*(i/x-1)}}function Ma(){var t=Ba,e=wa,n=ua(0),r=null,i=va,o=_a,u=Sa,a=null,s=ka(l);function l(){var l,c,h,d=+t.apply(this,arguments),f=+e.apply(this,arguments),p=i.apply(this,arguments)-ma,g=o.apply(this,arguments)-ma,m=aa(g-p),F=g>p;if(a||(a=l=s()),f<d&&(c=f,f=d,d=c),f>pa)if(m>Fa-pa)a.moveTo(f*la(p),f*da(p)),a.arc(0,0,f,p,g,!F),d>pa&&(a.moveTo(d*la(g),d*da(g)),a.arc(0,0,d,g,p,F));else{var y,A,C=p,x=g,b=p,D=g,E=m,k=m,B=u.apply(this,arguments)/2,w=B>pa&&(r?+r.apply(this,arguments):fa(d*d+f*f)),v=ha(aa(f-d)/2,+n.apply(this,arguments)),_=v,S=v;if(w>pa){var T=ya(w/d*da(B)),M=ya(w/f*da(B));(E-=2*T)>pa?(b+=T*=F?1:-1,D-=T):(E=0,b=D=(p+g)/2),(k-=2*M)>pa?(C+=M*=F?1:-1,x-=M):(k=0,C=x=(p+g)/2)}var L=f*la(C),$=f*da(C),O=d*la(D),I=d*da(D);if(v>pa){var R,P=f*la(x),z=f*da(x),N=d*la(b),j=d*da(b);if(m<ga)if(R=function(t,e,n,r,i,o,u,a){var s=n-t,l=r-e,c=u-i,h=a-o,d=h*s-c*l;if(!(d*d<pa))return[t+(d=(c*(e-o)-h*(t-i))/d)*s,e+d*l]}(L,$,N,j,P,z,O,I)){var q=L-R[0],K=$-R[1],W=P-R[0],H=z-R[1],U=1/da(((h=(q*W+K*H)/(fa(q*q+K*K)*fa(W*W+H*H)))>1?0:h<-1?ga:Math.acos(h))/2),Y=fa(R[0]*R[0]+R[1]*R[1]);_=ha(v,(d-Y)/(U-1)),S=ha(v,(f-Y)/(U+1))}else _=S=0}k>pa?S>pa?(y=Ta(N,j,L,$,f,S,F),A=Ta(P,z,O,I,f,S,F),a.moveTo(y.cx+y.x01,y.cy+y.y01),S<v?a.arc(y.cx,y.cy,S,sa(y.y01,y.x01),sa(A.y01,A.x01),!F):(a.arc(y.cx,y.cy,S,sa(y.y01,y.x01),sa(y.y11,y.x11),!F),a.arc(0,0,f,sa(y.cy+y.y11,y.cx+y.x11),sa(A.cy+A.y11,A.cx+A.x11),!F),a.arc(A.cx,A.cy,S,sa(A.y11,A.x11),sa(A.y01,A.x01),!F))):(a.moveTo(L,$),a.arc(0,0,f,C,x,!F)):a.moveTo(L,$),d>pa&&E>pa?_>pa?(y=Ta(O,I,P,z,d,-_,F),A=Ta(L,$,N,j,d,-_,F),a.lineTo(y.cx+y.x01,y.cy+y.y01),_<v?a.arc(y.cx,y.cy,_,sa(y.y01,y.x01),sa(A.y01,A.x01),!F):(a.arc(y.cx,y.cy,_,sa(y.y01,y.x01),sa(y.y11,y.x11),!F),a.arc(0,0,d,sa(y.cy+y.y11,y.cx+y.x11),sa(A.cy+A.y11,A.cx+A.x11),F),a.arc(A.cx,A.cy,_,sa(A.y11,A.x11),sa(A.y01,A.x01),!F))):a.arc(0,0,d,D,b,F):a.lineTo(O,I)}else a.moveTo(0,0);if(a.closePath(),l)return a=null,l+""||null}return l.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-ga/2;return[la(r)*n,da(r)*n]},l.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:ua(+e),l):t},l.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:ua(+t),l):e},l.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:ua(+t),l):n},l.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:ua(+t),l):r},l.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:ua(+t),l):i},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:ua(+t),l):o},l.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:ua(+t),l):u},l.context=function(t){return arguments.length?(a=null==t?null:t,l):a},l}function La(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function $a(t){this._context=t}function Oa(t){return new $a(t)}function Ia(t){return t[0]}function Ra(t){return t[1]}function Pa(t,e){var n=ua(!0),r=null,i=Oa,o=null,u=ka(a);function a(a){var s,l,c,h=(a=La(a)).length,d=!1;for(null==r&&(o=i(c=u())),s=0;s<=h;++s)!(s<h&&n(l=a[s],s,a))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+t(l,s,a),+e(l,s,a));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?Ia:ua(t),e="function"==typeof e?e:void 0===e?Ra:ua(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:ua(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:ua(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:ua(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function za(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Na(t){return t}function ja(){var t=Na,e=za,n=null,r=ua(0),i=ua(Fa),o=ua(0);function u(u){var a,s,l,c,h,d=(u=La(u)).length,f=0,p=new Array(d),g=new Array(d),m=+r.apply(this,arguments),F=Math.min(Fa,Math.max(-Fa,i.apply(this,arguments)-m)),y=Math.min(Math.abs(F)/d,o.apply(this,arguments)),A=y*(F<0?-1:1);for(a=0;a<d;++a)(h=g[p[a]=a]=+t(u[a],a,u))>0&&(f+=h);for(null!=e?p.sort((function(t,n){return e(g[t],g[n])})):null!=n&&p.sort((function(t,e){return n(u[t],u[e])})),a=0,l=f?(F-d*A)/f:0;a<d;++a,m=c)s=p[a],c=m+((h=g[s])>0?h*l:0)+A,g[s]={data:u[s],index:a,value:h,startAngle:m,endAngle:c,padAngle:y};return g}return u.value=function(e){return arguments.length?(t="function"==typeof e?e:ua(+e),u):t},u.sortValues=function(t){return arguments.length?(e=t,n=null,u):e},u.sort=function(t){return arguments.length?(n=t,e=null,u):n},u.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:ua(+t),u):r},u.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:ua(+t),u):i},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:ua(+t),u):o},u}function qa(){}function Ka(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Wa(t){this._context=t}function Ha(t){return new Wa(t)}function Ua(t){this._context=t}function Ya(t){return new Ua(t)}function Ga(t){this._context=t}function Va(t){return new Ga(t)}Ea.prototype,Array.prototype.slice,$a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Wa.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:Ka(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ka(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ua.prototype={areaStart:qa,areaEnd:qa,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ka(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ga.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ka(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class Xa{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function Za(t){return new Xa(t,!0)}function Qa(t){return new Xa(t,!1)}function Ja(t,e){this._basis=new Wa(t),this._beta=e}Ja.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],u=t[n]-i,a=e[n]-o,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+r*u),this._beta*e[s]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const ts=function t(e){function n(t){return 1===e?new Wa(t):new Ja(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function es(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function ns(t,e){this._context=t,this._k=(1-e)/6}ns.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:es(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:es(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const rs=function t(e){function n(t){return new ns(t,e)}return n.tension=function(e){return t(+e)},n}(0);function is(t,e){this._context=t,this._k=(1-e)/6}is.prototype={areaStart:qa,areaEnd:qa,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:es(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const os=function t(e){function n(t){return new is(t,e)}return n.tension=function(e){return t(+e)},n}(0);function us(t,e){this._context=t,this._k=(1-e)/6}us.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:es(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const as=function t(e){function n(t){return new us(t,e)}return n.tension=function(e){return t(+e)},n}(0);function ss(t,e,n){var r=t._x1,i=t._y1,o=t._x2,u=t._y2;if(t._l01_a>pa){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>pa){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*l+t._x1*t._l23_2a-e*t._l12_2a)/c,u=(u*l+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,o,u,t._x2,t._y2)}function ls(t,e){this._context=t,this._alpha=e}ls.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||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ss(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const cs=function t(e){function n(t){return e?new ls(t,e):new ns(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function hs(t,e){this._context=t,this._alpha=e}hs.prototype={areaStart:qa,areaEnd:qa,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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ss(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ds=function t(e){function n(t){return e?new hs(t,e):new is(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function fs(t,e){this._context=t,this._alpha=e}fs.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:ss(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ps=function t(e){function n(t){return e?new fs(t,e):new us(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function gs(t){this._context=t}function ms(t){return new gs(t)}function Fs(t){return t<0?-1:1}function ys(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),u=(n-t._y1)/(i||r<0&&-0),a=(o*i+u*r)/(r+i);return(Fs(o)+Fs(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function As(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Cs(t,e,n){var r=t._x0,i=t._y0,o=t._x1,u=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*e,o-a,u-a*n,o,u)}function xs(t){this._context=t}function bs(t){this._context=new Ds(t)}function Ds(t){this._context=t}function Es(t){return new xs(t)}function ks(t){return new bs(t)}function Bs(t){this._context=t}function ws(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),u=new Array(r);for(i[0]=0,o[0]=2,u[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,u[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,u[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,u[e]-=n*u[e-1];for(i[r-1]=u[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(u[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function vs(t){return new Bs(t)}function _s(t,e){this._context=t,this._t=e}function Ss(t){return new _s(t,.5)}function Ts(t){return new _s(t,0)}function Ms(t){return new _s(t,1)}function Ls(t,e,n){this.k=t,this.x=e,this.y=n}gs.prototype={areaStart:qa,areaEnd:qa,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},xs.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:Cs(this,this._t0,As(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Cs(this,As(this,n=ys(this,t,e)),n);break;default:Cs(this,this._t0,n=ys(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(bs.prototype=Object.create(xs.prototype)).point=function(t,e){xs.prototype.point.call(this,e,t)},Ds.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},Bs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=ws(t),i=ws(e),o=0,u=1;u<n;++o,++u)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[u],e[u]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},_s.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},Ls.prototype={constructor:Ls,scale:function(t){return 1===t?this:new Ls(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Ls(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new Ls(1,0,0),Ls.prototype},3269:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});const r=(0,n(123).A)(Object,"create");var i=Object.prototype.hasOwnProperty;var o=Object.prototype.hasOwnProperty;function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},u.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},u.prototype.get=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0},u.prototype.has=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)},u.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this};const a=u;var s=n(6096),l=n(5436);const c=function(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map};function h(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}h.prototype.clear=function(){this.size=0,this.__data__={hash:new a,map:new(l.A||s.A),string:new a}},h.prototype.delete=function(t){var e=c(this,t).delete(t);return this.size-=e?1:0,e},h.prototype.get=function(t){return c(this,t).get(t)},h.prototype.has=function(t){return c(this,t).has(t)},h.prototype.set=function(t,e){var n=c(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};const d=h},3335:(t,e,n)=>{"use strict";var r=n(8769),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(t,e,n){var r,o={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==e.key&&(l=""+e.key),void 0!==e.ref&&(c=e.ref),e)u.call(e,r)&&!s.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===o[r]&&(o[r]=e[r]);return{$$typeof:i,type:t,key:l,ref:c,props:o,_owner:a.current}}e.Fragment=o,e.jsx=l,e.jsxs=l},3349:(t,e,n)=>{"use strict";n.d(e,{f:()=>X});var r={};n.r(r),n.d(r,{boolean:()=>l,booleanish:()=>c,commaOrSpaceSeparated:()=>g,commaSeparated:()=>p,number:()=>d,overloadedBoolean:()=>h,spaceSeparated:()=>f});class i{constructor(t,e,n){this.normal=e,this.property=t,n&&(this.space=n)}}function o(t,e){const n={},r={};for(const e of t)Object.assign(n,e.property),Object.assign(r,e.normal);return new i(n,r,e)}function u(t){return t.toLowerCase()}i.prototype.normal={},i.prototype.property={},i.prototype.space=void 0;class a{constructor(t,e){this.attribute=e,this.property=t}}a.prototype.attribute="",a.prototype.booleanish=!1,a.prototype.boolean=!1,a.prototype.commaOrSpaceSeparated=!1,a.prototype.commaSeparated=!1,a.prototype.defined=!1,a.prototype.mustUseProperty=!1,a.prototype.number=!1,a.prototype.overloadedBoolean=!1,a.prototype.property="",a.prototype.spaceSeparated=!1,a.prototype.space=void 0;let s=0;const l=m(),c=m(),h=m(),d=m(),f=m(),p=m(),g=m();function m(){return 2**++s}const F=Object.keys(r);class y extends a{constructor(t,e,n,i){let o=-1;if(super(t,e),A(this,"space",i),"number"==typeof n)for(;++o<F.length;){const t=F[o];A(this,F[o],(n&r[t])===r[t])}}}function A(t,e,n){n&&(t[e]=n)}function C(t){const e={},n={};for(const[r,i]of Object.entries(t.properties)){const o=new y(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[u(r)]=r,n[u(o.attribute)]=r}return new i(e,n,t.space)}y.prototype.defined=!0;const x=C({properties:{ariaActiveDescendant:null,ariaAtomic:c,ariaAutoComplete:null,ariaBusy:c,ariaChecked:c,ariaColCount:d,ariaColIndex:d,ariaColSpan:d,ariaControls:f,ariaCurrent:null,ariaDescribedBy:f,ariaDetails:null,ariaDisabled:c,ariaDropEffect:f,ariaErrorMessage:null,ariaExpanded:c,ariaFlowTo:f,ariaGrabbed:c,ariaHasPopup:null,ariaHidden:c,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:f,ariaLevel:d,ariaLive:null,ariaModal:c,ariaMultiLine:c,ariaMultiSelectable:c,ariaOrientation:null,ariaOwns:f,ariaPlaceholder:null,ariaPosInSet:d,ariaPressed:c,ariaReadOnly:c,ariaRelevant:null,ariaRequired:c,ariaRoleDescription:f,ariaRowCount:d,ariaRowIndex:d,ariaRowSpan:d,ariaSelected:c,ariaSetSize:d,ariaSort:null,ariaValueMax:d,ariaValueMin:d,ariaValueNow:d,ariaValueText:null,role:null},transform:(t,e)=>"role"===e?e:"aria-"+e.slice(4).toLowerCase()});function b(t,e){return e in t?t[e]:e}function D(t,e){return b(t,e.toLowerCase())}const E=C({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:p,acceptCharset:f,accessKey:f,action:null,allow:null,allowFullScreen:l,allowPaymentRequest:l,allowUserMedia:l,alt:null,as:null,async:l,autoCapitalize:null,autoComplete:f,autoFocus:l,autoPlay:l,blocking:f,capture:null,charSet:null,checked:l,cite:null,className:f,cols:d,colSpan:null,content:null,contentEditable:c,controls:l,controlsList:f,coords:d|p,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l,defer:l,dir:null,dirName:null,disabled:l,download:h,draggable:c,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l,formTarget:null,headers:f,height:d,hidden:h,high:d,href:null,hrefLang:null,htmlFor:f,httpEquiv:f,id:null,imageSizes:null,imageSrcSet:null,inert:l,inputMode:null,integrity:null,is:null,isMap:l,itemId:null,itemProp:f,itemRef:f,itemScope:l,itemType:f,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l,low:d,manifest:null,max:null,maxLength:d,media:null,method:null,min:null,minLength:d,multiple:l,muted:l,name:null,nonce:null,noModule:l,noValidate:l,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:l,optimum:d,pattern:null,ping:f,placeholder:null,playsInline:l,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:l,referrerPolicy:null,rel:f,required:l,reversed:l,rows:d,rowSpan:d,sandbox:f,scope:null,scoped:l,seamless:l,selected:l,shadowRootClonable:l,shadowRootDelegatesFocus:l,shadowRootMode:null,shape:null,size:d,sizes:null,slot:null,span:d,spellCheck:c,src:null,srcDoc:null,srcLang:null,srcSet:null,start:d,step:null,style:null,tabIndex:d,target:null,title:null,translate:null,type:null,typeMustMatch:l,useMap:null,value:c,width:d,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:f,axis:null,background:null,bgColor:null,border:d,borderColor:null,bottomMargin:d,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l,declare:l,event:null,face:null,frame:null,frameBorder:null,hSpace:d,leftMargin:d,link:null,longDesc:null,lowSrc:null,marginHeight:d,marginWidth:d,noResize:l,noHref:l,noShade:l,noWrap:l,object:null,profile:null,prompt:null,rev:null,rightMargin:d,rules:null,scheme:null,scrolling:c,standby:null,summary:null,text:null,topMargin:d,valueType:null,version:null,vAlign:null,vLink:null,vSpace:d,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:l,disableRemotePlayback:l,prefix:null,property:null,results:d,security:null,unselectable:null},space:"html",transform:D}),k=C({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:g,accentHeight:d,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:d,amplitude:d,arabicForm:null,ascent:d,attributeName:null,attributeType:null,azimuth:d,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:d,by:null,calcMode:null,capHeight:d,className:f,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:d,diffuseConstant:d,direction:null,display:null,dur:null,divisor:d,dominantBaseline:null,download:l,dx:null,dy:null,edgeMode:null,editable:null,elevation:d,enableBackground:null,end:null,event:null,exponent:d,externalResourcesRequired:null,fill:null,fillOpacity:d,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:p,g2:p,glyphName:p,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:d,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:d,horizOriginX:d,horizOriginY:d,id:null,ideographic:d,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:d,k:d,k1:d,k2:d,k3:d,k4:d,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:d,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:d,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:d,overlineThickness:d,paintOrder:null,panose1:null,path:null,pathLength:d,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:f,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:d,pointsAtY:d,pointsAtZ:d,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:d,specularExponent:d,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:d,strikethroughThickness:d,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:d,strokeOpacity:d,strokeWidth:null,style:null,surfaceScale:d,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:d,tableValues:null,target:null,targetX:d,targetY:d,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:d,underlineThickness:d,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:d,values:null,vAlphabetic:d,vMathematical:d,vectorEffect:null,vHanging:d,vIdeographic:d,version:null,vertAdvY:d,vertOriginX:d,vertOriginY:d,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:d,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:b}),B=C({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(t,e)=>"xlink:"+e.slice(5).toLowerCase()}),w=C({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:D}),v=C({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(t,e)=>"xml:"+e.slice(3).toLowerCase()}),_=o([x,E,B,w,v],"html"),S=o([x,k,B,w,v],"svg");var T=n(6469);const M=/[#.]/g,L=/[A-Z]/g,$=/-[a-z]/g,O=/^data[-\w.:]+$/i;function I(t){return"-"+t.toLowerCase()}function R(t){return t.charAt(1).toUpperCase()}var P=n(10);function z(t,e,n){const r=n?function(t){const e=new Map;for(const n of t)e.set(n.toLowerCase(),n);return e}(n):void 0;return function(n,i,...o){let u;if(null==n){u={type:"root",children:[]};const t=i;o.unshift(t)}else{u=function(t,e){const n=t||"",r={};let i,o,u=0;for(;u<n.length;){M.lastIndex=u;const t=M.exec(n),e=n.slice(u,t?t.index:n.length);e&&(i?"#"===i?r.id=e:Array.isArray(r.className)?r.className.push(e):r.className=[e]:o=e,u+=e.length),t&&(i=t[0],u++)}return{type:"element",tagName:o||e||"div",properties:r,children:[]}}(n,e);const a=u.tagName.toLowerCase(),s=r?r.get(a):void 0;if(u.tagName=s||a,function(t){if(null===t||"object"!=typeof t||Array.isArray(t))return!0;if("string"!=typeof t.type)return!1;const e=t,n=Object.keys(t);for(const t of n){const n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;const t=n;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!(!("children"in t)||!Array.isArray(t.children))}(i))o.unshift(i);else for(const[e,n]of Object.entries(i))N(t,u.properties,e,n)}for(const t of o)j(u.children,t);return"element"===u.type&&"template"===u.tagName&&(u.content={type:"root",children:u.children},u.children=[]),u}}function N(t,e,n,r){const i=function(t,e){const n=u(e);let r=e,i=a;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&O.test(e)){if("-"===e.charAt(4)){const t=e.slice(5).replace($,R);r="data"+t.charAt(0).toUpperCase()+t.slice(1)}else{const t=e.slice(4);if(!$.test(t)){let n=t.replace(L,I);"-"!==n.charAt(0)&&(n="-"+n),e="data"+n}}i=y}return new i(r,e)}(t,n);let o;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?(0,P.q)(r):i.commaSeparated?(0,T.q)(r):i.commaOrSpaceSeparated?(0,P.q)((0,T.q)(r).join(" ")):q(i,i.property,r):Array.isArray(r)?[...r]:"style"===i.property?function(t){const e=[];for(const[n,r]of Object.entries(t))e.push([n,r].join(": "));return e.join("; ")}(r):String(r);if(Array.isArray(o)){const t=[];for(const e of o)t.push(q(i,i.property,e));o=t}"className"===i.property&&Array.isArray(e.className)&&(o=e.className.concat(o)),e[i.property]=o}}function j(t,e){if(null==e);else if("number"==typeof e||"string"==typeof e)t.push({type:"text",value:String(e)});else if(Array.isArray(e))for(const n of e)j(t,n);else{if("object"!=typeof e||!("type"in e))throw new Error("Expected node, nodes, or string, got `"+e+"`");"root"===e.type?j(t,e.children):t.push(e)}}function q(t,e,n){if("string"==typeof n){if(t.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((t.boolean||t.overloadedBoolean)&&(""===n||u(n)===u(e)))return!0}return n}const K=z(_,"div"),W=z(S,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),H={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function U(t,e){const n=function(t,e){switch(t.nodeType){case 1:return function(t,e){const n=t.namespaceURI,r=n===H.svg?W:K,i=n===H.html?t.tagName.toLowerCase():t.tagName,o=n===H.html&&"template"===i?t.content:t,u=t.getAttributeNames(),a={};let s=-1;for(;++s<u.length;)a[u[s]]=t.getAttribute(u[s])||"";return r(i,a,G(o,e))}(t,e);case 3:return function(t){return{type:"text",value:t.nodeValue||""}}(t);case 8:return function(t){return{type:"comment",value:t.nodeValue||""}}(t);case 9:case 11:return Y(t,e);case 10:return{type:"doctype"};default:return}}(t,e);return n&&e.afterTransform&&e.afterTransform(t,n),n}function Y(t,e){return{type:"root",children:G(t,e)}}function G(t,e){const n=t.childNodes,r=[];let i=-1;for(;++i<n.length;){const t=U(n[i],e);void 0!==t&&r.push(t)}return r}const V=new DOMParser;function X(t,e){return U(e?.fragment?function(t){const e=document.createElement("template");return e.innerHTML=t,e.content}(t):V.parseFromString(t,"text/html"),{})||{type:"root",children:[]}}},3464:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,n="millisecond",r="second",i="minute",o="hour",u="day",a="week",s="month",l="quarter",c="year",h="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},F={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,s),o=n-i<0,u=e.clone().add(r+(o?-1:1),s);return+(-(r+(n-i)/(o?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:s,y:c,w:a,d:u,D:h,h:o,m:i,s:r,ms:n,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",A={};A[y]=g;var C="$isDayjsObject",x=function(t){return t instanceof k||!(!t||!t[C])},b=function t(e,n,r){var i;if(!e)return y;if("string"==typeof e){var o=e.toLowerCase();A[o]&&(i=o),n&&(A[o]=n,i=o);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;A[a]=e,i=a}return!r&&i&&(y=i),i||!r&&y},D=function(t,e){if(x(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new k(n)},E=F;E.l=b,E.i=x,E.w=function(t,e){return D(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function g(t){this.$L=b(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[C]=!0}var m=g.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return E},m.isValid=function(){return!(this.$d.toString()===d)},m.isSame=function(t,e){var n=D(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return D(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<D(t)},m.$g=function(t,e,n){return E.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,l=!!E.u(e)||e,d=E.p(t),f=function(t,e){var r=E.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return l?r:r.endOf(u)},p=function(t,e){return E.w(n.toDate()[t].apply(n.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},g=this.$W,m=this.$M,F=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case c:return l?f(1,0):f(31,11);case s:return l?f(1,m):f(0,m+1);case a:var A=this.$locale().weekStart||0,C=(g<A?g+7:g)-A;return f(l?F-C:F+(6-C),m);case u:case h:return p(y+"Hours",0);case o:return p(y+"Minutes",1);case i:return p(y+"Seconds",2);case r:return p(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var a,l=E.p(t),d="set"+(this.$u?"UTC":""),f=(a={},a[u]=d+"Date",a[h]=d+"Date",a[s]=d+"Month",a[c]=d+"FullYear",a[o]=d+"Hours",a[i]=d+"Minutes",a[r]=d+"Seconds",a[n]=d+"Milliseconds",a)[l],p=l===u?this.$D+(e-this.$W):e;if(l===s||l===c){var g=this.clone().set(h,1);g.$d[f](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[E.p(t)]()},m.add=function(n,l){var h,d=this;n=Number(n);var f=E.p(l),p=function(t){var e=D(d);return E.w(e.date(e.date()+Math.round(t*n)),d)};if(f===s)return this.set(s,this.$M+n);if(f===c)return this.set(c,this.$y+n);if(f===u)return p(1);if(f===a)return p(7);var g=(h={},h[i]=t,h[o]=e,h[r]=1e3,h)[f]||1,m=this.$d.getTime()+n*g;return E.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=E.z(this),o=this.$H,u=this.$m,a=this.$M,s=n.weekdays,l=n.months,c=n.meridiem,h=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},f=function(t){return E.s(o%12||12,t,"0")},g=c||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(p,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return E.s(e.$y,4,"0");case"M":return a+1;case"MM":return E.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,l,3);case"MMMM":return h(l,a);case"D":return e.$D;case"DD":return E.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,s,2);case"ddd":return h(n.weekdaysShort,e.$W,s,3);case"dddd":return s[e.$W];case"H":return String(o);case"HH":return E.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return g(o,u,!0);case"A":return g(o,u,!1);case"m":return String(u);case"mm":return E.s(u,2,"0");case"s":return String(e.$s);case"ss":return E.s(e.$s,2,"0");case"SSS":return E.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,h,d){var f,p=this,g=E.p(h),m=D(n),F=(m.utcOffset()-this.utcOffset())*t,y=this-m,A=function(){return E.m(p,m)};switch(g){case c:f=A()/12;break;case s:f=A();break;case l:f=A()/3;break;case a:f=(y-F)/6048e5;break;case u:f=(y-F)/864e5;break;case o:f=y/e;break;case i:f=y/t;break;case r:f=y/1e3;break;default:f=y}return d?f:E.a(f)},m.daysInMonth=function(){return this.endOf(s).$D},m.$locale=function(){return A[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=b(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return E.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),B=k.prototype;return D.prototype=B,[["$ms",n],["$s",r],["$m",i],["$H",o],["$W",u],["$M",s],["$y",c],["$D",h]].forEach((function(t){B[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),D.extend=function(t,e){return t.$i||(t(e,k,D),t.$i=!0),D},D.locale=b,D.isDayjs=x,D.unix=function(t){return D(1e3*t)},D.en=A[y],D.Ls=A,D.p={},D}()},3516:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=n(9600).A.Symbol},3545:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(5718),i=n(4607);const o=class{constructor(){this.type=i.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=i.Z.ALL}is(t){return this.type===t}},u=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new o}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=i.Z.ALL,this}_ensureHSL(){const t=this.data,{h:e,s:n,l:i}=t;void 0===e&&(t.h=r.A.channel.rgb2hsl(t,"h")),void 0===n&&(t.s=r.A.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=r.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:n,b:i}=t;void 0===e&&(t.r=r.A.channel.hsl2rgb(t,"r")),void 0===n&&(t.g=r.A.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=r.A.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),r.A.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),r.A.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),r.A.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),r.A.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),r.A.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),r.A.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent")},3656:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},3730:(t,e,n)=>{"use strict";n.d(e,{A:()=>$});var r=n(9820);const i="object"==typeof self?self:globalThis,o=t=>((t,e)=>{const n=(e,n)=>(t.set(n,e),e),r=o=>{if(t.has(o))return t.get(o);const[u,a]=e[o];switch(u){case 0:case-1:return n(a,o);case 1:{const t=n([],o);for(const e of a)t.push(r(e));return t}case 2:{const t=n({},o);for(const[e,n]of a)t[r(e)]=r(n);return t}case 3:return n(new Date(a),o);case 4:{const{source:t,flags:e}=a;return n(new RegExp(t,e),o)}case 5:{const t=n(new Map,o);for(const[e,n]of a)t.set(r(e),r(n));return t}case 6:{const t=n(new Set,o);for(const e of a)t.add(r(e));return t}case 7:{const{name:t,message:e}=a;return n(new i[t](e),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:t}=new Uint8Array(a);return n(new DataView(t),a)}}return n(new i[u](a),o)};return r})(new Map,t)(0),u="",{toString:a}={},{keys:s}=Object,l=t=>{const e=typeof t;if("object"!==e||!t)return[0,e];const n=a.call(t).slice(8,-1);switch(n){case"Array":return[1,u];case"Object":return[2,u];case"Date":return[3,u];case"RegExp":return[4,u];case"Map":return[5,u];case"Set":return[6,u];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},c=([t,e])=>0===t&&("function"===e||"symbol"===e),h=(t,{json:e,lossy:n}={})=>{const r=[];return((t,e,n,r)=>{const i=(t,e)=>{const i=r.push(t)-1;return n.set(e,i),i},o=r=>{if(n.has(r))return n.get(r);let[u,a]=l(r);switch(u){case 0:{let e=r;switch(a){case"bigint":u=8,e=r.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+a);e=null;break;case"undefined":return i([-1],r)}return i([u,e],r)}case 1:{if(a){let t=r;return"DataView"===a?t=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(t=new Uint8Array(r)),i([a,[...t]],r)}const t=[],e=i([u,t],r);for(const e of r)t.push(o(e));return e}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(e&&"toJSON"in r)return o(r.toJSON());const n=[],h=i([u,n],r);for(const e of s(r))!t&&c(l(r[e]))||n.push([o(e),o(r[e])]);return h}case 3:return i([u,r.toISOString()],r);case 4:{const{source:t,flags:e}=r;return i([u,{source:t,flags:e}],r)}case 5:{const e=[],n=i([u,e],r);for(const[n,i]of r)(t||!c(l(n))&&!c(l(i)))&&e.push([o(n),o(i)]);return n}case 6:{const e=[],n=i([u,e],r);for(const n of r)!t&&c(l(n))||e.push(o(n));return n}}const{message:h}=r;return i([u,{name:a,message:h}],r)};return o})(!(e||n),!!e,new Map,r)(t),r},d="function"==typeof structuredClone?(t,e)=>e&&("json"in e||"lossy"in e)?o(h(t,e)):structuredClone(t):(t,e)=>o(h(t,e)),f=(p(/[A-Za-z]/),p(/[\dA-Za-z]/));function p(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}function g(t){const e=[];let n=-1,r=0,i=0;for(;++n<t.length;){const o=t.charCodeAt(n);let u="";if(37===o&&f(t.charCodeAt(n+1))&&f(t.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(u=String.fromCharCode(o));else if(o>55295&&o<57344){const e=t.charCodeAt(n+1);o<56320&&e>56319&&e<57344?(u=String.fromCharCode(o,e),i=1):u="�"}else u=String.fromCharCode(o);u&&(e.push(t.slice(r,n),encodeURIComponent(u)),r=n+i+1,u=""),i&&(n+=i,i=0)}return e.join("")+t.slice(r)}function m(t,e){const n=[{type:"text",value:"↩"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function F(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}p(/[#-'*+\--9=?A-Z^-~]/),p(/\d/),p(/[\dA-Fa-f]/),p(/[!-/:-@[-`{-~]/),p(/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65\u{10100}-\u{10102}\u{1039F}\u{103D0}\u{1056F}\u{10857}\u{1091F}\u{1093F}\u{10A50}-\u{10A58}\u{10A7F}\u{10AF0}-\u{10AF6}\u{10B39}-\u{10B3F}\u{10B99}-\u{10B9C}\u{10D6E}\u{10EAD}\u{10F55}-\u{10F59}\u{10F86}-\u{10F89}\u{11047}-\u{1104D}\u{110BB}\u{110BC}\u{110BE}-\u{110C1}\u{11140}-\u{11143}\u{11174}\u{11175}\u{111C5}-\u{111C8}\u{111CD}\u{111DB}\u{111DD}-\u{111DF}\u{11238}-\u{1123D}\u{112A9}\u{113D4}\u{113D5}\u{113D7}\u{113D8}\u{1144B}-\u{1144F}\u{1145A}\u{1145B}\u{1145D}\u{114C6}\u{115C1}-\u{115D7}\u{11641}-\u{11643}\u{11660}-\u{1166C}\u{116B9}\u{1173C}-\u{1173E}\u{1183B}\u{11944}-\u{11946}\u{119E2}\u{11A3F}-\u{11A46}\u{11A9A}-\u{11A9C}\u{11A9E}-\u{11AA2}\u{11B00}-\u{11B09}\u{11BE1}\u{11C41}-\u{11C45}\u{11C70}\u{11C71}\u{11EF7}\u{11EF8}\u{11F43}-\u{11F4F}\u{11FFF}\u{12470}-\u{12474}\u{12FF1}\u{12FF2}\u{16A6E}\u{16A6F}\u{16AF5}\u{16B37}-\u{16B3B}\u{16B44}\u{16D6D}-\u{16D6F}\u{16E97}-\u{16E9A}\u{16FE2}\u{1BC9F}\u{1DA87}-\u{1DA8B}\u{1E5FF}\u{1E95E}\u{1E95F}]|[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD\u{10137}-\u{1013F}\u{10179}-\u{10189}\u{1018C}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FC}\u{10877}\u{10878}\u{10AC8}\u{10D8E}\u{10D8F}\u{1173F}\u{11FD5}-\u{11FF1}\u{16B3C}-\u{16B3F}\u{16B45}\u{1BC9C}\u{1CC00}-\u{1CCEF}\u{1CD00}-\u{1CEB3}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D164}\u{1D16A}-\u{1D16C}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1EA}\u{1D200}-\u{1D241}\u{1D245}\u{1D300}-\u{1D356}\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}\u{1DA86}\u{1E14F}\u{1E2FF}\u{1ECAC}\u{1ECB0}\u{1ED2E}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F10D}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBEF}]/u),p(/\s/);var y=n(4269),A=n(4585);function C(t,e){const n=e.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(e.label||e.identifier)+"]"),"imageReference"===e.type)return[{type:"text",value:"!["+e.alt+r}];const i=t.all(e),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const u=i[i.length-1];return u&&"text"===u.type?u.value+=r:i.push({type:"text",value:r}),i}function x(t){const e=t.spread;return null==e?t.children.length>1:e}function b(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),i=0;const o=[];for(;r;)o.push(D(e.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(e);return o.push(D(e.slice(i),i>0,!1)),o.join("")}function D(t,e,n){let r=0,i=t.length;if(e){let e=t.codePointAt(r);for(;9===e||32===e;)r++,e=t.codePointAt(r)}if(n){let e=t.codePointAt(i-1);for(;9===e||32===e;)i--,e=t.codePointAt(i-1)}return i>r?t.slice(r,i):""}const E={blockquote:function(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)},break:function(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:"\n"}]},code:function(t,e){const n=e.value?e.value+"\n":"",r={};e.lang&&(r.className=["language-"+e.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(i.data={meta:e.meta}),t.patch(e,i),i=t.applyData(e,i),i={type:"element",tagName:"pre",properties:{},children:[i]},t.patch(e,i),i},delete:function(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},emphasis:function(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},footnoteReference:function(t,e){const n="string"==typeof t.options.clobberPrefix?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),i=g(r.toLowerCase()),o=t.footnoteOrder.indexOf(r);let u,a=t.footnoteCounts.get(r);void 0===a?(a=0,t.footnoteOrder.push(r),u=t.footnoteOrder.length):u=o+1,a+=1,t.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};t.patch(e,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return t.patch(e,l),t.applyData(e,l)},heading:function(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},html:function(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}},imageReference:function(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return C(t,e);const i={src:g(r.url||""),alt:e.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,o),t.applyData(e,o)},image:function(t,e){const n={src:g(e.url)};null!==e.alt&&void 0!==e.alt&&(n.alt=e.alt),null!==e.title&&void 0!==e.title&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)},inlineCode:function(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)},linkReference:function(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return C(t,e);const i={href:g(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,o),t.applyData(e,o)},link:function(t,e){const n={href:g(e.url)};null!==e.title&&void 0!==e.title&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)},listItem:function(t,e,n){const r=t.all(e),i=n?function(t){let e=!1;if("list"===t.type){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=x(n[r])}return e}(n):x(e),o={},u=[];if("boolean"==typeof e.checked){const t=r[0];let n;t&&"element"===t.type&&"p"===t.tagName?n=t:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const t=r[a];(i||0!==a||"element"!==t.type||"p"!==t.tagName)&&u.push({type:"text",value:"\n"}),"element"!==t.type||"p"!==t.tagName||i?u.push(t):u.push(...t.children)}const s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&u.push({type:"text",value:"\n"});const l={type:"element",tagName:"li",properties:o,children:u};return t.patch(e,l),t.applyData(e,l)},list:function(t,e){const n={},r=t.all(e);let i=-1;for("number"==typeof e.start&&1!==e.start&&(n.start=e.start);++i<r.length;){const t=r[i];if("element"===t.type&&"li"===t.tagName&&t.properties&&Array.isArray(t.properties.className)&&t.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,o),t.applyData(e,o)},paragraph:function(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},root:function(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)},strong:function(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},table:function(t,e){const n=t.all(e),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},o=(0,A.PW)(e.children[1]),u=(0,A.Y)(e.children[e.children.length-1]);o&&u&&(r.position={start:o,end:u}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:t.wrap(i,!0)};return t.patch(e,o),t.applyData(e,o)},tableCell:function(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},tableRow:function(t,e,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(e):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,u=o?o.length:e.children.length;let a=-1;const s=[];for(;++a<u;){const n=e.children[a],r={},u=o?o[a]:void 0;u&&(r.align=u);let l={type:"element",tagName:i,properties:r,children:[]};n&&(l.children=t.all(n),t.patch(n,l),l=t.applyData(n,l)),s.push(l)}const l={type:"element",tagName:"tr",properties:{},children:t.wrap(s,!0)};return t.patch(e,l),t.applyData(e,l)},text:function(t,e){const n={type:"text",value:b(String(e.value))};return t.patch(e,n),t.applyData(e,n)},thematicBreak:function(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)},toml:k,yaml:k,definition:k,footnoteDefinition:k};function k(){}const B={}.hasOwnProperty,w={};function v(t,e){t.position&&(e.position=(0,A.G1)(t))}function _(t,e){let n=e;if(t&&t.data){const e=t.data.hName,r=t.data.hChildren,i=t.data.hProperties;"string"==typeof e&&("element"===n.type?n.tagName=e:n={type:"element",tagName:e,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,d(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function S(t,e){const n=e.data||{},r=!("value"in e)||B.call(n,"hProperties")||B.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:t.all(e)}:{type:"text",value:e.value};return t.patch(e,r),t.applyData(e,r)}function T(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:"\n"});++r<t.length;)r&&n.push({type:"text",value:"\n"}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:"\n"}),n}function M(t){let e=0,n=t.charCodeAt(e);for(;9===n||32===n;)e++,n=t.charCodeAt(e);return t.slice(e)}function L(t,e){const n=function(t,e){const n=e||w,r=new Map,i=new Map,o=new Map,u={...E,...n.handlers},a={all:function(t){const e=[];if("children"in t){const n=t.children;let r=-1;for(;++r<n.length;){const i=a.one(n[r],t);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=M(i.value)),!Array.isArray(i)&&"element"===i.type)){const t=i.children[0];t&&"text"===t.type&&(t.value=M(t.value))}Array.isArray(i)?e.push(...i):e.push(i)}}}return e},applyData:_,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:u,one:function(t,e){const n=t.type,r=a.handlers[n];if(B.call(a.handlers,n)&&r)return r(a,t,e);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in t){const{children:e,...n}=t,r=d(n);return r.children=a.all(t),r}return d(t)}return(a.options.unknownHandler||S)(a,t,e)},options:n,patch:v,wrap:T};return(0,y.YR)(t,(function(t){if("definition"===t.type||"footnoteDefinition"===t.type){const e="definition"===t.type?r:i,n=String(t.identifier).toUpperCase();e.has(n)||e.set(n,t)}})),a}(t,e),i=n.one(t,void 0),o=function(t){const e="string"==typeof t.options.clobberPrefix?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||m,r=t.options.footnoteBackLabel||F,i=t.options.footnoteLabel||"Footnotes",o=t.options.footnoteLabelTagName||"h2",u=t.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<t.footnoteOrder.length;){const i=t.footnoteById.get(t.footnoteOrder[s]);if(!i)continue;const o=t.all(i),u=String(i.identifier).toUpperCase(),l=g(u.toLowerCase());let c=0;const h=[],d=t.footnoteCounts.get(u);for(;void 0!==d&&++c<=d;){h.length>0&&h.push({type:"text",value:" "});let t="string"==typeof n?n:n(s,c);"string"==typeof t&&(t={type:"text",value:t}),h.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+l+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(t)?t:[t]})}const f=o[o.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const t=f.children[f.children.length-1];t&&"text"===t.type?t.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...h)}else o.push(...h);const p={type:"element",tagName:"li",properties:{id:e+"fn-"+l},children:t.wrap(o,!0)};t.patch(i,p),a.push(p)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...d(u),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:t.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),u=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&((0,r.ok)("children"in u),u.children.push({type:"text",value:"\n"},o)),u}function $(t,e){return t&&"run"in t?async function(n,r){const i=L(n,{file:r,...e});await t.run(i,r)}:function(n,r){return L(n,{file:r,...e||t})}}},4044:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(3516),i=Object.prototype,o=i.hasOwnProperty,u=i.toString,a=r.A?r.A.toStringTag:void 0;var s=Object.prototype.toString;var l=r.A?r.A.toStringTag:void 0;const c=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=u.call(t);return r&&(e?t[a]=n:delete t[a]),i}(t):function(t){return s.call(t)}(t)}},4151:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return t}},4269:(t,e,n)=>{"use strict";n.d(e,{YR:()=>i});var r=n(6197);function i(t,e,n,i){let o,u,a;"function"==typeof e&&"function"!=typeof n?(u=void 0,a=e,o=n):(u=e,a=n,o=i),(0,r.VG)(t,u,(function(t,e){const n=e[e.length-1],r=n?n.children.indexOf(t):void 0;return a(t,r,n)}),o)}},4386:(t,e,n)=>{"use strict";n.d(e,{IU:()=>F,Jo:()=>v,T_:()=>x,g0:()=>T,jP:()=>A});var r=n(7057),i=n(4857),o=n(2880),u=n(7996),a=n(347),s=n(5323),l=n(8084),c=n(3213),h=n(7083),d=(0,l.K2)(((t,e,n,r,i,o)=>{e.arrowTypeStart&&p(t,"start",e.arrowTypeStart,n,r,i,o),e.arrowTypeEnd&&p(t,"end",e.arrowTypeEnd,n,r,i,o)}),"addEdgeMarkers"),f={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},p=(0,l.K2)(((t,e,n,r,i,o,u)=>{const a=f[n];if(!a)return void l.Rm.warn(`Unknown arrow type: ${n}`);const s=`${i}_${o}-${a.type}${"start"===e?"Start":"End"}`;if(u&&""!==u.trim()){const n=`${s}_${u.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(n)){const t=document.getElementById(s);if(t){const e=t.cloneNode(!0);e.id=n,e.querySelectorAll("path, circle, line").forEach((t=>{t.setAttribute("stroke",u),a.fill&&t.setAttribute("fill",u)})),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${r}#${n})`)}else t.attr(`marker-${e}`,`url(${r}#${s})`)}),"addEdgeMarker"),g=new Map,m=new Map,F=(0,l.K2)((()=>{g.clear(),m.clear()}),"clear"),y=(0,l.K2)((t=>t?t.reduce(((t,e)=>t+";"+e),""):""),"getLabelStyles"),A=(0,l.K2)((async(t,e)=>{let n=(0,l._3)((0,l.D7)().flowchart.htmlLabels);const r=await(0,a.GZ)(t,e.label,{style:y(e.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1});l.Rm.info("abc82",e,e.labelType);const o=t.insert("g").attr("class","edgeLabel"),u=o.insert("g").attr("class","label");u.node().appendChild(r);let s,h=r.getBBox();if(n){const t=r.children[0],e=(0,c.Ltv)(r);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}if(u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),g.set(e.id,o),e.width=h.width,e.height=h.height,e.startLabelLeft){const n=await(0,i.DA)(e.startLabelLeft,y(e.labelStyle)),r=t.insert("g").attr("class","edgeTerminals"),o=r.insert("g").attr("class","inner");s=o.node().appendChild(n);const u=n.getBBox();o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),m.get(e.id)||m.set(e.id,{}),m.get(e.id).startLeft=r,C(s,e.startLabelLeft)}if(e.startLabelRight){const n=await(0,i.DA)(e.startLabelRight,y(e.labelStyle)),r=t.insert("g").attr("class","edgeTerminals"),o=r.insert("g").attr("class","inner");s=r.node().appendChild(n),o.node().appendChild(n);const u=n.getBBox();o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),m.get(e.id)||m.set(e.id,{}),m.get(e.id).startRight=r,C(s,e.startLabelRight)}if(e.endLabelLeft){const n=await(0,i.DA)(e.endLabelLeft,y(e.labelStyle)),r=t.insert("g").attr("class","edgeTerminals"),o=r.insert("g").attr("class","inner");s=o.node().appendChild(n);const u=n.getBBox();o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),r.node().appendChild(n),m.get(e.id)||m.set(e.id,{}),m.get(e.id).endLeft=r,C(s,e.endLabelLeft)}if(e.endLabelRight){const n=await(0,i.DA)(e.endLabelRight,y(e.labelStyle)),r=t.insert("g").attr("class","edgeTerminals"),o=r.insert("g").attr("class","inner");s=o.node().appendChild(n);const u=n.getBBox();o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),r.node().appendChild(n),m.get(e.id)||m.set(e.id,{}),m.get(e.id).endRight=r,C(s,e.endLabelRight)}return r}),"insertEdgeLabel");function C(t,e){(0,l.D7)().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,l.K2)(C,"setTerminalWidth");var x=(0,l.K2)(((t,e)=>{l.Rm.debug("Moving label abc88 ",t.id,t.label,g.get(t.id),e);let n=e.updatedPath?e.updatedPath:e.originalPath;const r=(0,l.D7)(),{subGraphTitleTotalMargin:i}=(0,o.O)(r);if(t.label){const r=g.get(t.id);let o=t.x,u=t.y;if(n){const r=s._K.calcLabelPosition(n);l.Rm.debug("Moving label "+t.label+" from (",o,",",u,") to (",r.x,",",r.y,") abc88"),e.updatedPath&&(o=r.x,u=r.y)}r.attr("transform",`translate(${o}, ${u+i/2})`)}if(t.startLabelLeft){const e=m.get(t.id).startLeft;let r=t.x,i=t.y;if(n){const e=s._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",n);r=e.x,i=e.y}e.attr("transform",`translate(${r}, ${i})`)}if(t.startLabelRight){const e=m.get(t.id).startRight;let r=t.x,i=t.y;if(n){const e=s._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",n);r=e.x,i=e.y}e.attr("transform",`translate(${r}, ${i})`)}if(t.endLabelLeft){const e=m.get(t.id).endLeft;let r=t.x,i=t.y;if(n){const e=s._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",n);r=e.x,i=e.y}e.attr("transform",`translate(${r}, ${i})`)}if(t.endLabelRight){const e=m.get(t.id).endRight;let r=t.x,i=t.y;if(n){const e=s._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",n);r=e.x,i=e.y}e.attr("transform",`translate(${r}, ${i})`)}}),"positionEdgeLabel"),b=(0,l.K2)(((t,e)=>{const n=t.x,r=t.y,i=Math.abs(e.x-n),o=Math.abs(e.y-r),u=t.width/2,a=t.height/2;return i>=u||o>=a}),"outsideNode"),D=(0,l.K2)(((t,e,n)=>{l.Rm.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(n)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const r=t.x,i=t.y,o=Math.abs(r-n.x),u=t.width/2;let a=n.x<e.x?u-o:u+o;const s=t.height/2,c=Math.abs(e.y-n.y),h=Math.abs(e.x-n.x);if(Math.abs(i-e.y)*u>Math.abs(r-e.x)*s){let t=n.y<e.y?e.y-s-i:i-s-e.y;a=h*t/c;const r={x:n.x<e.x?n.x+a:n.x-h+a,y:n.y<e.y?n.y+c-t:n.y-c+t};return 0===a&&(r.x=e.x,r.y=e.y),0===h&&(r.x=e.x),0===c&&(r.y=e.y),l.Rm.debug(`abc89 top/bottom calc, Q ${c}, q ${t}, R ${h}, r ${a}`,r),r}{a=n.x<e.x?e.x-u-r:r-u-e.x;let t=c*a/h,i=n.x<e.x?n.x+h-a:n.x-h+a,o=n.y<e.y?n.y+t:n.y-t;return l.Rm.debug(`sides calc abc89, Q ${c}, q ${t}, R ${h}, r ${a}`,{_x:i,_y:o}),0===a&&(i=e.x,o=e.y),0===h&&(i=e.x),0===c&&(o=e.y),{x:i,y:o}}}),"intersection"),E=(0,l.K2)(((t,e)=>{l.Rm.warn("abc88 cutPathAtIntersect",t,e);let n=[],r=t[0],i=!1;return t.forEach((t=>{if(l.Rm.info("abc88 checking point",t,e),b(e,t)||i)l.Rm.warn("abc88 outside",t,r),r=t,i||n.push(t);else{const o=D(e,r,t);l.Rm.debug("abc88 inside",t,r,o),l.Rm.debug("abc88 intersection",o,e);let u=!1;n.forEach((t=>{u=u||t.x===o.x&&t.y===o.y})),n.some((t=>t.x===o.x&&t.y===o.y))?l.Rm.warn("abc88 no intersect",o,n):n.push(o),i=!0}})),l.Rm.debug("returning points",n),n}),"cutPathAtIntersect");function k(t){const e=[],n=[];for(let r=1;r<t.length-1;r++){const i=t[r-1],o=t[r],u=t[r+1];(i.x===o.x&&o.y===u.y&&Math.abs(o.x-u.x)>5&&Math.abs(o.y-i.y)>5||i.y===o.y&&o.x===u.x&&Math.abs(o.x-i.x)>5&&Math.abs(o.y-u.y)>5)&&(e.push(o),n.push(r))}return{cornerPoints:e,cornerPointPositions:n}}(0,l.K2)(k,"extractCornerPoints");var B=(0,l.K2)((function(t,e,n){const r=e.x-t.x,i=e.y-t.y,o=n/Math.sqrt(r*r+i*i);return{x:e.x-o*r,y:e.y-o*i}}),"findAdjacentPoint"),w=(0,l.K2)((function(t){const{cornerPointPositions:e}=k(t),n=[];for(let r=0;r<t.length;r++)if(e.includes(r)){const e=t[r-1],i=t[r+1],o=t[r],u=B(e,o,5),a=B(i,o,5),s=a.x-u.x,c=a.y-u.y;n.push(u);const h=2*Math.sqrt(2);let d={x:o.x,y:o.y};if(Math.abs(i.x-e.x)>10&&Math.abs(i.y-e.y)>=10){l.Rm.debug("Corner point fixing",Math.abs(i.x-e.x),Math.abs(i.y-e.y));const t=5;d=o.x===u.x?{x:s<0?u.x-t+h:u.x+t-h,y:c<0?u.y-h:u.y+h}:{x:s<0?u.x-h:u.x+h,y:c<0?u.y-t+h:u.y+t-h}}else l.Rm.debug("Corner point skipping fixing",Math.abs(i.x-e.x),Math.abs(i.y-e.y));n.push(d,a)}else n.push(t[r]);return n}),"fixCorners"),v=(0,l.K2)((function(t,e,n,i,o,a,s){const{handDrawnSeed:f}=(0,l.D7)();let p=e.points,g=!1;const m=o;var F=a;const y=[];for(const t in e.cssCompiledStyles)(0,u.KX)(t)||y.push(e.cssCompiledStyles[t]);F.intersect&&m.intersect&&(p=p.slice(1,e.points.length-1),p.unshift(m.intersect(p[0])),l.Rm.debug("Last point APA12",e.start,"--\x3e",e.end,p[p.length-1],F,F.intersect(p[p.length-1])),p.push(F.intersect(p[p.length-1]))),e.toCluster&&(l.Rm.info("to cluster abc88",n.get(e.toCluster)),p=E(e.points,n.get(e.toCluster).node),g=!0),e.fromCluster&&(l.Rm.debug("from cluster abc88",n.get(e.fromCluster),JSON.stringify(p,null,2)),p=E(p.reverse(),n.get(e.fromCluster).node).reverse(),g=!0);let A=p.filter((t=>!Number.isNaN(t.y)));A=w(A);let C=c.qrM;switch(C=c.lUB,e.curve){case"linear":C=c.lUB;break;case"basis":default:C=c.qrM;break;case"cardinal":C=c.y8u;break;case"bumpX":C=c.Wi0;break;case"bumpY":C=c.PGM;break;case"catmullRom":C=c.oDi;break;case"monotoneX":C=c.nVG;break;case"monotoneY":C=c.uxU;break;case"natural":C=c.Xf2;break;case"step":C=c.GZz;break;case"stepAfter":C=c.UPb;break;case"stepBefore":C=c.dyv}const{x,y:b}=(0,r.R)(e),D=(0,c.n8j)().x(x).y(b).curve(C);let k,B;switch(e.thickness){case"normal":default:k="edge-thickness-normal";break;case"thick":k="edge-thickness-thick";break;case"invisible":k="edge-thickness-invisible"}switch(e.pattern){case"solid":default:k+=" edge-pattern-solid";break;case"dotted":k+=" edge-pattern-dotted";break;case"dashed":k+=" edge-pattern-dashed"}let v=D(A);const _=Array.isArray(e.style)?e.style:e.style?[e.style]:[];let S=_.find((t=>t?.startsWith("stroke:")));if("handDrawn"===e.look){const n=h.A.svg(t);Object.assign([],A);const r=n.path(v,{roughness:.3,seed:f});k+=" transition",B=(0,c.Ltv)(r).select("path").attr("id",e.id).attr("class"," "+k+(e.classes?" "+e.classes:"")).attr("style",_?_.reduce(((t,e)=>t+";"+e),""):"");let i=B.attr("d");B.attr("d",i),t.node().appendChild(B.node())}else{const n=y.join(";"),r=_?_.reduce(((t,e)=>t+e+";"),""):"";let i="";e.animate&&(i=" edge-animation-fast"),e.animation&&(i=" edge-animation-"+e.animation);const o=n?n+";"+r+";":r;B=t.append("path").attr("d",v).attr("id",e.id).attr("class"," "+k+(e.classes?" "+e.classes:"")+(i??"")).attr("style",o),S=o.match(/stroke:([^;]+)/)?.[1]}let T="";((0,l.D7)().flowchart.arrowMarkerAbsolute||(0,l.D7)().state.arrowMarkerAbsolute)&&(T=(0,l.ID)(!0)),l.Rm.info("arrowTypeStart",e.arrowTypeStart),l.Rm.info("arrowTypeEnd",e.arrowTypeEnd),d(B,e,T,s,i,S);let M={};return g&&(M.updatedPath=p),M.originalPath=e.points,M}),"insertEdge"),_=(0,l.K2)(((t,e,n,r)=>{e.forEach((e=>{S[e](t,n,r)}))}),"insertMarkers"),S={extension:(0,l.K2)(((t,e,n)=>{l.Rm.trace("Making markers for ",n),t.append("defs").append("marker").attr("id",n+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")}),"extension"),composition:(0,l.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).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")}),"composition"),aggregation:(0,l.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).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"),dependency:(0,l.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).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")}),"dependency"),lollipop:(0,l.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",n+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)}),"lollipop"),point:(0,l.K2)(((t,e,n)=>{t.append("marker").attr("id",n+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",n+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).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")}),"point"),circle:(0,l.K2)(((t,e,n)=>{t.append("marker").attr("id",n+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",n+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"circle"),cross:(0,l.K2)(((t,e,n)=>{t.append("marker").attr("id",n+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",n+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")}),"cross"),barb:(0,l.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}),"barb"),only_one:(0,l.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",n+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")}),"only_one"),zero_or_one:(0,l.K2)(((t,e,n)=>{const r=t.append("defs").append("marker").attr("id",n+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("d","M9,0 L9,18");const i=t.append("defs").append("marker").attr("id",n+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")}),"zero_or_one"),one_or_more:(0,l.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",n+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")}),"one_or_more"),zero_or_more:(0,l.K2)(((t,e,n)=>{const r=t.append("defs").append("marker").attr("id",n+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const i=t.append("defs").append("marker").attr("id",n+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")}),"zero_or_more"),requirement_arrow:(0,l.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d","M0,0\n L20,10\n M20,10\n L0,20")}),"requirement_arrow"),requirement_contains:(0,l.K2)(((t,e,n)=>{const r=t.append("defs").append("marker").attr("id",n+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");r.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),r.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),r.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)}),"requirement_contains")},T=_},4435:(t,e,n)=>{"use strict";n.d(e,{o:()=>i});var r=n(9993);class i extends Error{constructor(t,e,n){super(),"string"==typeof e&&(n=e,e=void 0);let i="",o={},u=!1;if(e&&(o="line"in e&&"column"in e||"start"in e&&"end"in e?{place:e}:"type"in e?{ancestors:[e],place:e.position}:{...e}),"string"==typeof t?i=t:!o.cause&&t&&(u=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&"string"==typeof n){const t=n.indexOf(":");-1===t?o.ruleId=n:(o.source=n.slice(0,t),o.ruleId=n.slice(t+1))}if(!o.place&&o.ancestors&&o.ancestors){const t=o.ancestors[o.ancestors.length-1];t&&(o.place=t.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=(0,r.L)(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=u&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}i.prototype.file="",i.prototype.name="",i.prototype.reason="",i.prototype.message="",i.prototype.stack="",i.prototype.column=void 0,i.prototype.line=void 0,i.prototype.ancestors=void 0,i.prototype.cause=void 0,i.prototype.fatal=void 0,i.prototype.place=void 0,i.prototype.ruleId=void 0,i.prototype.source=void 0},4517:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9600);var i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,u=o&&o.exports===i?r.A.Buffer:void 0;const a=(u?u.isBuffer:void 0)||function(){return!1}},4585:(t,e,n)=>{"use strict";n.d(e,{G1:()=>u,PW:()=>i,Y:()=>r});const r=o("end"),i=o("start");function o(t){return function(e){const n=e&&e.position&&e.position[t]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function u(t){const e=i(t),n=r(t);if(e&&n)return{start:e,end:n}}},4607:(t,e,n)=>{"use strict";n.d(e,{Y:()=>i,Z:()=>o});var r=n(5718);const i={};for(let t=0;t<=255;t++)i[t]=r.A.unit.dec2hex(t);const o={ALL:0,RGB:1,HSL:2}},4650:(t,e,n)=>{"use strict";function r(t){return"children"in t?o(t):"value"in t?t.value:""}function i(t){return"text"===t.type?t.value:"children"in t?o(t):""}function o(t){let e=-1;const n=[];for(;++e<t.children.length;)n[e]=i(t.children[e]);return n.join("")}n.d(e,{d:()=>r})},4857:(t,e,n)=>{"use strict";n.d(e,{DA:()=>C,IU:()=>_,U:()=>v,U7:()=>xe,U_:()=>De,Zk:()=>c,aP:()=>ye,gh:()=>be,lC:()=>d,on:()=>Ce});var r=n(2880),i=n(7996),o=n(347),u=n(5323),a=n(8084),s=n(3213),l=n(7083),c=(0,a.K2)((async(t,e,n)=>{let r;const i=e.useHtmlLabels||(0,a._3)((0,a.D7)()?.htmlLabels);r=n||"node default";const l=t.insert("g").attr("class",r).attr("id",e.domId||e.id),c=l.insert("g").attr("class","label").attr("style",(0,u.KL)(e.labelStyle));let h;h=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];const d=await(0,o.GZ)(c,(0,a.jZ)((0,u.Sm)(h),(0,a.D7)()),{useHtmlLabels:i,width:e.width||(0,a.D7)().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img});let f=d.getBBox();const p=(e?.padding??0)/2;if(i){const t=d.children[0],e=(0,s.Ltv)(d),n=t.getElementsByTagName("img");if(n){const t=""===h.replace(/<img[^>]*>/g,"").trim();await Promise.all([...n].map((e=>new Promise((n=>{function r(){if(e.style.display="flex",e.style.flexDirection="column",t){const t=(0,a.D7)().fontSize?(0,a.D7)().fontSize:window.getComputedStyle(document.body).fontSize,n=5,[r=a.UI.fontSize]=(0,u.I5)(t),i=r*n+"px";e.style.minWidth=i,e.style.maxWidth=i}else e.style.width="100%";n(e)}(0,a.K2)(r,"setupImage"),setTimeout((()=>{e.complete&&r()})),e.addEventListener("error",r),e.addEventListener("load",r)})))))}f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}return i?c.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):c.attr("transform","translate(0, "+-f.height/2+")"),e.centerLabel&&c.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),c.insert("rect",":first-child"),{shapeSvg:l,bbox:f,halfPadding:p,label:c}}),"labelHelper"),h=(0,a.K2)((async(t,e,n)=>{const r=n.useHtmlLabels||(0,a._3)((0,a.D7)()?.flowchart?.htmlLabels),i=t.insert("g").attr("class","label").attr("style",n.labelStyle||""),l=await(0,o.GZ)(i,(0,a.jZ)((0,u.Sm)(e),(0,a.D7)()),{useHtmlLabels:r,width:n.width||(0,a.D7)()?.flowchart?.wrappingWidth,style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img});let c=l.getBBox();const h=n.padding/2;if((0,a._3)((0,a.D7)()?.flowchart?.htmlLabels)){const t=l.children[0],e=(0,s.Ltv)(l);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}return r?i.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):i.attr("transform","translate(0, "+-c.height/2+")"),n.centerLabel&&i.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:t,bbox:c,halfPadding:h,label:i}}),"insertLabel"),d=(0,a.K2)(((t,e)=>{const n=e.node().getBBox();t.width=n.width,t.height=n.height}),"updateNodeBounds"),f=(0,a.K2)(((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||"")),"getNodeClasses");function p(t){const e=t.map(((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`));return e.push("Z"),e.join(" ")}function g(t,e,n,r,i,o){const u=[],a=n-t,s=r-e,l=a/o,c=2*Math.PI/l,h=e+s/2;for(let e=0;e<=50;e++){const n=t+e/50*a,r=h+i*Math.sin(c*(n-t));u.push({x:n,y:r})}return u}function m(t,e,n,r,i,o){const u=[],a=i*Math.PI/180,s=(o*Math.PI/180-a)/(r-1);for(let i=0;i<r;i++){const r=a+i*s,o=t+n*Math.cos(r),l=e+n*Math.sin(r);u.push({x:-o,y:-l})}return u}(0,a.K2)(p,"createPathFromPoints"),(0,a.K2)(g,"generateFullSineWavePoints"),(0,a.K2)(m,"generateCirclePoints");var F=(0,a.K2)(((t,e)=>{var n,r,i=t.x,o=t.y,u=e.x-i,a=e.y-o,s=t.width/2,l=t.height/2;return Math.abs(a)*s>Math.abs(u)*l?(a<0&&(l=-l),n=0===a?0:l*u/a,r=l):(u<0&&(s=-s),n=s,r=0===u?0:s*a/u),{x:i+n,y:o+r}}),"intersectRect");function y(t,e){e&&t.attr("style",e)}async function A(t){const e=(0,s.Ltv)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=e.append("xhtml:div");let r=t.label;t.label&&(0,a.Wi)(t.label)&&(r=await(0,a.VJ)(t.label.replace(a.Y2.lineBreakRegex,"\n"),(0,a.D7)()));const i=t.isNode?"nodeLabel":"edgeLabel";return n.html('<span class="'+i+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+r+"</span>"),y(n,t.labelStyle),n.style("display","inline-block"),n.style("padding-right","1px"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}(0,a.K2)(y,"applyStyle"),(0,a.K2)(A,"addHtmlLabel");var C=(0,a.K2)((async(t,e,n,r)=>{let i=t||"";if("object"==typeof i&&(i=i[0]),(0,a._3)((0,a.D7)().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"<br />"),a.Rm.info("vertexText"+i);const t={isNode:r,label:(0,u.Sm)(i).replace(/fa[blrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`)),labelStyle:e?e.replace("fill:","color:"):e};return await A(t)}{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let r=[];r="string"==typeof i?i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?i:[];for(const e of r){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),n?r.setAttribute("class","title-row"):r.setAttribute("class","row"),r.textContent=e.trim(),t.appendChild(r)}return t}}),"createLabel"),x=(0,a.K2)(((t,e,n,r,i)=>["M",t+i,e,"H",t+n-i,"A",i,i,0,0,1,t+n,e+i,"V",e+r-i,"A",i,i,0,0,1,t+n-i,e+r,"H",t+i,"A",i,i,0,0,1,t,e+r-i,"V",e+i,"A",i,i,0,0,1,t+i,e,"Z"].join(" ")),"createRoundedRectPathD"),b=(0,a.K2)((async(t,e)=>{a.Rm.info("Creating subgraph rect for ",e.id,e);const n=(0,a.D7)(),{themeVariables:u,handDrawnSeed:c}=n,{clusterBkg:h,clusterBorder:d}=u,{labelStyles:f,nodeStyles:p,borderStyles:g,backgroundStyles:m}=(0,i.GX)(e),y=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),A=(0,a._3)(n.flowchart.htmlLabels),C=y.insert("g").attr("class","cluster-label "),b=await(0,o.GZ)(C,e.label,{style:e.labelStyle,useHtmlLabels:A,isNode:!0});let D=b.getBBox();if((0,a._3)(n.flowchart.htmlLabels)){const t=b.children[0],e=(0,s.Ltv)(b);D=t.getBoundingClientRect(),e.attr("width",D.width),e.attr("height",D.height)}const E=e.width<=D.width+e.padding?D.width+e.padding:e.width;e.width<=D.width+e.padding?e.diff=(E-e.width)/2-e.padding:e.diff=-e.padding;const k=e.height,B=e.x-E/2,w=e.y-k/2;let v;if(a.Rm.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){const t=l.A.svg(y),n=(0,i.Fr)(e,{roughness:.7,fill:h,stroke:d,fillWeight:3,seed:c}),r=t.path(x(B,w,E,k,0),n);v=y.insert((()=>(a.Rm.debug("Rough node insert CXC",r),r)),":first-child"),v.select("path:nth-child(2)").attr("style",g.join(";")),v.select("path").attr("style",m.join(";").replace("fill","stroke"))}else v=y.insert("rect",":first-child"),v.attr("style",p).attr("rx",e.rx).attr("ry",e.ry).attr("x",B).attr("y",w).attr("width",E).attr("height",k);const{subGraphTitleTopMargin:_}=(0,r.O)(n);if(C.attr("transform",`translate(${e.x-D.width/2}, ${e.y-e.height/2+_})`),f){const t=C.select("span");t&&t.attr("style",f)}const S=v.node().getBBox();return e.offsetX=0,e.width=S.width,e.height=S.height,e.offsetY=D.height-e.padding/2,e.intersect=function(t){return F(e,t)},{cluster:y,labelBBox:D}}),"rect"),D=(0,a.K2)(((t,e)=>{const n=t.insert("g").attr("class","note-cluster").attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,o=i/2;r.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-o).attr("y",e.y-e.height/2-o).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");const u=r.node().getBBox();return e.width=u.width,e.height=u.height,e.intersect=function(t){return F(e,t)},{cluster:n,labelBBox:{width:0,height:0}}}),"noteGroup"),E=(0,a.K2)((async(t,e)=>{const n=(0,a.D7)(),{themeVariables:r,handDrawnSeed:i}=n,{altBackground:o,compositeBackground:u,compositeTitleBackground:c,nodeBorder:h}=r,d=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),f=d.insert("g",":first-child"),p=d.insert("g").attr("class","cluster-label");let g=d.append("rect");const m=p.node().appendChild(await C(e.label,e.labelStyle,void 0,!0));let y=m.getBBox();if((0,a._3)(n.flowchart.htmlLabels)){const t=m.children[0],e=(0,s.Ltv)(m);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}const A=0*e.padding,b=A/2,D=(e.width<=y.width+e.padding?y.width+e.padding:e.width)+A;e.width<=y.width+e.padding?e.diff=(D-e.width)/2-e.padding:e.diff=-e.padding;const E=e.height+A,k=e.height+A-y.height-6,B=e.x-D/2,w=e.y-E/2;e.width=D;const v=e.y-e.height/2-b+y.height+2;let _;if("handDrawn"===e.look){const t=e.cssClasses.includes("statediagram-cluster-alt"),n=l.A.svg(d),r=e.rx||e.ry?n.path(x(B,w,D,E,10),{roughness:.7,fill:c,fillStyle:"solid",stroke:h,seed:i}):n.rectangle(B,w,D,E,{seed:i});_=d.insert((()=>r),":first-child");const a=n.rectangle(B,v,D,k,{fill:t?o:u,fillStyle:t?"hachure":"solid",stroke:h,seed:i});_=d.insert((()=>r),":first-child"),g=d.insert((()=>a))}else{_=f.insert("rect",":first-child");const t="outer";_.attr("class",t).attr("x",B).attr("y",w).attr("width",D).attr("height",E).attr("data-look",e.look),g.attr("class","inner").attr("x",B).attr("y",v).attr("width",D).attr("height",k)}p.attr("transform",`translate(${e.x-y.width/2}, ${w+1-((0,a._3)(n.flowchart.htmlLabels)?0:3)})`);const S=_.node().getBBox();return e.height=S.height,e.offsetX=0,e.offsetY=y.height-e.padding/2,e.labelBBox=y,e.intersect=function(t){return F(e,t)},{cluster:d,labelBBox:y}}),"roundedWithTitle"),k=(0,a.K2)((async(t,e)=>{a.Rm.info("Creating subgraph rect for ",e.id,e);const n=(0,a.D7)(),{themeVariables:u,handDrawnSeed:c}=n,{clusterBkg:h,clusterBorder:d}=u,{labelStyles:f,nodeStyles:p,borderStyles:g,backgroundStyles:m}=(0,i.GX)(e),y=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),A=(0,a._3)(n.flowchart.htmlLabels),C=y.insert("g").attr("class","cluster-label "),b=await(0,o.GZ)(C,e.label,{style:e.labelStyle,useHtmlLabels:A,isNode:!0,width:e.width});let D=b.getBBox();if((0,a._3)(n.flowchart.htmlLabels)){const t=b.children[0],e=(0,s.Ltv)(b);D=t.getBoundingClientRect(),e.attr("width",D.width),e.attr("height",D.height)}const E=e.width<=D.width+e.padding?D.width+e.padding:e.width;e.width<=D.width+e.padding?e.diff=(E-e.width)/2-e.padding:e.diff=-e.padding;const k=e.height,B=e.x-E/2,w=e.y-k/2;let v;if(a.Rm.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){const t=l.A.svg(y),n=(0,i.Fr)(e,{roughness:.7,fill:h,stroke:d,fillWeight:4,seed:c}),r=t.path(x(B,w,E,k,e.rx),n);v=y.insert((()=>(a.Rm.debug("Rough node insert CXC",r),r)),":first-child"),v.select("path:nth-child(2)").attr("style",g.join(";")),v.select("path").attr("style",m.join(";").replace("fill","stroke"))}else v=y.insert("rect",":first-child"),v.attr("style",p).attr("rx",e.rx).attr("ry",e.ry).attr("x",B).attr("y",w).attr("width",E).attr("height",k);const{subGraphTitleTopMargin:_}=(0,r.O)(n);if(C.attr("transform",`translate(${e.x-D.width/2}, ${e.y-e.height/2+_})`),f){const t=C.select("span");t&&t.attr("style",f)}const S=v.node().getBBox();return e.offsetX=0,e.width=S.width,e.height=S.height,e.offsetY=D.height-e.padding/2,e.intersect=function(t){return F(e,t)},{cluster:y,labelBBox:D}}),"kanbanSection"),B={rect:b,squareRect:b,roundedWithTitle:E,noteGroup:D,divider:(0,a.K2)(((t,e)=>{const n=(0,a.D7)(),{themeVariables:r,handDrawnSeed:i}=n,{nodeBorder:o}=r,u=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),s=u.insert("g",":first-child"),c=0*e.padding,h=e.width+c;e.diff=-e.padding;const d=e.height+c,f=e.x-h/2,p=e.y-d/2;let g;if(e.width=h,"handDrawn"===e.look){const t=l.A.svg(u).rectangle(f,p,h,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:i});g=u.insert((()=>t),":first-child")}else{g=s.insert("rect",":first-child");const t="divider";g.attr("class",t).attr("x",f).attr("y",p).attr("width",h).attr("height",d).attr("data-look",e.look)}const m=g.node().getBBox();return e.height=m.height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return F(e,t)},{cluster:u,labelBBox:{}}}),"divider"),kanbanSection:k},w=new Map,v=(0,a.K2)((async(t,e)=>{const n=e.shape||"rect",r=await B[n](t,e);return w.set(e.id,r),r}),"insertCluster"),_=(0,a.K2)((()=>{w=new Map}),"clear");function S(t,e){return t.intersect(e)}(0,a.K2)(S,"intersectNode");var T=S;function M(t,e,n,r){var i=t.x,o=t.y,u=i-r.x,a=o-r.y,s=Math.sqrt(e*e*a*a+n*n*u*u),l=Math.abs(e*n*u/s);r.x<i&&(l=-l);var c=Math.abs(e*n*a/s);return r.y<o&&(c=-c),{x:i+l,y:o+c}}(0,a.K2)(M,"intersectEllipse");var L=M;function $(t,e,n){return L(t,e,e,n)}(0,a.K2)($,"intersectCircle");var O=$;function I(t,e,n,r){var i,o,u,a,s,l,c,h,d,f,p,g,m;if(i=e.y-t.y,u=t.x-e.x,s=e.x*t.y-t.x*e.y,d=i*n.x+u*n.y+s,f=i*r.x+u*r.y+s,!(0!==d&&0!==f&&R(d,f)||(o=r.y-n.y,a=n.x-r.x,l=r.x*n.y-n.x*r.y,c=o*t.x+a*t.y+l,h=o*e.x+a*e.y+l,0!==c&&0!==h&&R(c,h)||0==(p=i*a-o*u))))return g=Math.abs(p/2),{x:(m=u*l-a*s)<0?(m-g)/p:(m+g)/p,y:(m=o*s-i*l)<0?(m-g)/p:(m+g)/p}}function R(t,e){return t*e>0}(0,a.K2)(I,"intersectLine"),(0,a.K2)(R,"sameSign");var P=I;function z(t,e,n){let r=t.x,i=t.y,o=[],u=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){u=Math.min(u,t.x),a=Math.min(a,t.y)})):(u=Math.min(u,e.x),a=Math.min(a,e.y));let s=r-t.width/2-u,l=i-t.height/2-a;for(let r=0;r<e.length;r++){let i=e[r],u=e[r<e.length-1?r+1:0],a=P(t,n,{x:s+i.x,y:l+i.y},{x:s+u.x,y:l+u.y});a&&o.push(a)}return o.length?(o.length>1&&o.sort((function(t,e){let r=t.x-n.x,i=t.y-n.y,o=Math.sqrt(r*r+i*i),u=e.x-n.x,a=e.y-n.y,s=Math.sqrt(u*u+a*a);return o<s?-1:o===s?0:1})),o[0]):t}(0,a.K2)(z,"intersectPolygon");var N={node:T,circle:O,ellipse:L,polygon:z,rect:F};function j(t,e){const{labelStyles:n}=(0,i.GX)(e);e.labelStyle=n;const r=f(e);let o=r;r||(o="anchor");const s=t.insert("g").attr("class",o).attr("id",e.domId||e.id),{cssStyles:c}=e,h=l.A.svg(s),p=(0,i.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(p.roughness=0);const g=h.circle(0,0,2,p),m=s.insert((()=>g),":first-child");return m.attr("class","anchor").attr("style",(0,u.KL)(c)),d(e,m),e.intersect=function(t){return a.Rm.info("Circle intersect",e,1,t),N.circle(e,1,t)},s}function q(t,e,n,r,i,o,u){const a=(t+n)/2,s=(e+r)/2,l=Math.atan2(r-e,n-t),c=(n-t)/2/i,h=(r-e)/2/o,d=Math.sqrt(c**2+h**2);if(d>1)throw new Error("The given radii are too small to create an arc between the points.");const f=Math.sqrt(1-d**2),p=a+f*o*Math.sin(l)*(u?-1:1),g=s-f*i*Math.cos(l)*(u?-1:1),m=Math.atan2((e-g)/o,(t-p)/i);let F=Math.atan2((r-g)/o,(n-p)/i)-m;u&&F<0&&(F+=2*Math.PI),!u&&F>0&&(F-=2*Math.PI);const y=[];for(let t=0;t<20;t++){const e=m+t/19*F,n=p+i*Math.cos(e),r=g+o*Math.sin(e);y.push({x:n,y:r})}return y}async function K(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u}=await c(t,e,f(e)),a=u.width+e.padding+20,s=u.height+e.padding,h=s/2,g=h/(2.5+s/50),{cssStyles:m}=e,F=[{x:a/2,y:-s/2},{x:-a/2,y:-s/2},...q(-a/2,-s/2,-a/2,s/2,g,h,!1),{x:a/2,y:s/2},...q(a/2,s/2,a/2,-s/2,g,h,!0)],y=l.A.svg(o),A=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");const C=p(F),x=y.path(C,A),b=o.insert((()=>x),":first-child");return b.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",r),b.attr("transform",`translate(${g/2}, 0)`),d(e,b),e.intersect=function(t){return N.polygon(e,F,t)},o}function W(t,e,n,r){return t.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+n/2+")")}async function H(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u}=await c(t,e,f(e)),a=u.height+e.padding,s=u.width+e.padding+12,h=-a,g=[{x:12,y:h},{x:s,y:h},{x:s,y:0},{x:0,y:0},{x:0,y:h+12},{x:12,y:h}];let m;const{cssStyles:F}=e;if("handDrawn"===e.look){const t=l.A.svg(o),n=(0,i.Fr)(e,{}),r=p(g),u=t.path(r,n);m=o.insert((()=>u),":first-child").attr("transform",`translate(${-s/2}, ${a/2})`),F&&m.attr("style",F)}else m=W(o,s,a,g);return r&&m.attr("style",r),d(e,m),e.intersect=function(t){return N.polygon(e,g,t)},o}function U(t,e){const{nodeStyles:n}=(0,i.GX)(e);e.label="";const r=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,u=Math.max(28,e.width??0),a=[{x:0,y:u/2},{x:u/2,y:0},{x:0,y:-u/2},{x:-u/2,y:0}],s=l.A.svg(r),c=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");const h=p(a),d=s.path(h,c),g=r.insert((()=>d),":first-child");return o&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",o),n&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",n),e.width=28,e.height=28,e.intersect=function(t){return N.polygon(e,a,t)},r}async function Y(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:s,halfPadding:h}=await c(t,e,f(e)),p=s.width/2+h;let g;const{cssStyles:m}=e;if("handDrawn"===e.look){const t=l.A.svg(o),n=(0,i.Fr)(e,{}),r=t.circle(0,0,2*p,n);g=o.insert((()=>r),":first-child"),g.attr("class","basic label-container").attr("style",(0,u.KL)(m))}else g=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",r).attr("r",p).attr("cx",0).attr("cy",0);return d(e,g),e.intersect=function(t){return a.Rm.info("Circle intersect",e,p,t),N.circle(e,p,t)},o}function G(t){const e=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=2*t;return`M ${-r/2*e},${r/2*n} L ${r/2*e},${-r/2*n}\n M ${r/2*e},${r/2*n} L ${-r/2*e},${-r/2*n}`}function V(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n,e.label="";const o=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id),u=Math.max(30,e?.width??0),{cssStyles:s}=e,c=l.A.svg(o),h=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");const p=c.circle(0,0,2*u,h),g=G(u),m=c.path(g,h),F=o.insert((()=>p),":first-child");return F.insert((()=>m)),s&&"handDrawn"!==e.look&&F.selectAll("path").attr("style",s),r&&"handDrawn"!==e.look&&F.selectAll("path").attr("style",r),d(e,F),e.intersect=function(t){return a.Rm.info("crossedCircle intersect",e,{radius:u,point:t}),N.circle(e,u,t)},o}function X(t,e,n,r=100,i=0,o=180){const u=[],a=i*Math.PI/180,s=(o*Math.PI/180-a)/(r-1);for(let i=0;i<r;i++){const r=a+i*s,o=t+n*Math.cos(r),l=e+n*Math.sin(r);u.push({x:-o,y:-l})}return u}async function Z(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u,label:a}=await c(t,e,f(e)),s=u.width+(e.padding??0),h=u.height+(e.padding??0),g=Math.max(5,.1*h),{cssStyles:m}=e,F=[...X(s/2,-h/2,g,30,-90,0),{x:-s/2-g,y:g},...X(s/2+2*g,-g,g,20,-180,-270),...X(s/2+2*g,g,g,20,-90,-180),{x:-s/2-g,y:-h/2},...X(s/2,h/2,g,20,0,90)],y=[{x:s/2,y:-h/2-g},{x:-s/2,y:-h/2-g},...X(s/2,-h/2,g,20,-90,0),{x:-s/2-g,y:-g},...X(s/2+.1*s,-g,g,20,-180,-270),...X(s/2+.1*s,g,g,20,-90,-180),{x:-s/2-g,y:h/2},...X(s/2,h/2,g,20,0,90),{x:-s/2,y:h/2+g},{x:s/2,y:h/2+g}],A=l.A.svg(o),C=(0,i.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");const x=p(F).replace("Z",""),b=A.path(x,C),D=p(y),E=A.path(D,{...C}),k=o.insert("g",":first-child");return k.insert((()=>E),":first-child").attr("stroke-opacity",0),k.insert((()=>b),":first-child"),k.attr("class","text"),m&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",r),k.attr("transform",`translate(${g}, 0)`),a.attr("transform",`translate(${-s/2+g-(u.x-(u.left??0))},${-h/2+(e.padding??0)/2-(u.y-(u.top??0))})`),d(e,k),e.intersect=function(t){return N.polygon(e,y,t)},o}function Q(t,e,n,r=100,i=0,o=180){const u=[],a=i*Math.PI/180,s=(o*Math.PI/180-a)/(r-1);for(let i=0;i<r;i++){const r=a+i*s,o=t+n*Math.cos(r),l=e+n*Math.sin(r);u.push({x:o,y:l})}return u}async function J(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u,label:a}=await c(t,e,f(e)),s=u.width+(e.padding??0),h=u.height+(e.padding??0),g=Math.max(5,.1*h),{cssStyles:m}=e,F=[...Q(s/2,-h/2,g,20,-90,0),{x:s/2+g,y:-g},...Q(s/2+2*g,-g,g,20,-180,-270),...Q(s/2+2*g,g,g,20,-90,-180),{x:s/2+g,y:h/2},...Q(s/2,h/2,g,20,0,90)],y=[{x:-s/2,y:-h/2-g},{x:s/2,y:-h/2-g},...Q(s/2,-h/2,g,20,-90,0),{x:s/2+g,y:-g},...Q(s/2+2*g,-g,g,20,-180,-270),...Q(s/2+2*g,g,g,20,-90,-180),{x:s/2+g,y:h/2},...Q(s/2,h/2,g,20,0,90),{x:s/2,y:h/2+g},{x:-s/2,y:h/2+g}],A=l.A.svg(o),C=(0,i.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");const x=p(F).replace("Z",""),b=A.path(x,C),D=p(y),E=A.path(D,{...C}),k=o.insert("g",":first-child");return k.insert((()=>E),":first-child").attr("stroke-opacity",0),k.insert((()=>b),":first-child"),k.attr("class","text"),m&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",r),k.attr("transform",`translate(${-g}, 0)`),a.attr("transform",`translate(${-s/2+(e.padding??0)/2-(u.x-(u.left??0))},${-h/2+(e.padding??0)/2-(u.y-(u.top??0))})`),d(e,k),e.intersect=function(t){return N.polygon(e,y,t)},o}function tt(t,e,n,r=100,i=0,o=180){const u=[],a=i*Math.PI/180,s=(o*Math.PI/180-a)/(r-1);for(let i=0;i<r;i++){const r=a+i*s,o=t+n*Math.cos(r),l=e+n*Math.sin(r);u.push({x:-o,y:-l})}return u}async function et(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u,label:a}=await c(t,e,f(e)),s=u.width+(e.padding??0),h=u.height+(e.padding??0),g=Math.max(5,.1*h),{cssStyles:m}=e,F=[...tt(s/2,-h/2,g,30,-90,0),{x:-s/2-g,y:g},...tt(s/2+2*g,-g,g,20,-180,-270),...tt(s/2+2*g,g,g,20,-90,-180),{x:-s/2-g,y:-h/2},...tt(s/2,h/2,g,20,0,90)],y=[...tt(-s/2+g+g/2,-h/2,g,20,-90,-180),{x:s/2-g/2,y:g},...tt(-s/2-g/2,-g,g,20,0,90),...tt(-s/2-g/2,g,g,20,-90,0),{x:s/2-g/2,y:-g},...tt(-s/2+g+g/2,h/2,g,30,-180,-270)],A=[{x:s/2,y:-h/2-g},{x:-s/2,y:-h/2-g},...tt(s/2,-h/2,g,20,-90,0),{x:-s/2-g,y:-g},...tt(s/2+2*g,-g,g,20,-180,-270),...tt(s/2+2*g,g,g,20,-90,-180),{x:-s/2-g,y:h/2},...tt(s/2,h/2,g,20,0,90),{x:-s/2,y:h/2+g},{x:s/2-g-g/2,y:h/2+g},...tt(-s/2+g+g/2,-h/2,g,20,-90,-180),{x:s/2-g/2,y:g},...tt(-s/2-g/2,-g,g,20,0,90),...tt(-s/2-g/2,g,g,20,-90,0),{x:s/2-g/2,y:-g},...tt(-s/2+g+g/2,h/2,g,30,-180,-270)],C=l.A.svg(o),x=(0,i.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=p(F).replace("Z",""),D=C.path(b,x),E=p(y).replace("Z",""),k=C.path(E,x),B=p(A),w=C.path(B,{...x}),v=o.insert("g",":first-child");return v.insert((()=>w),":first-child").attr("stroke-opacity",0),v.insert((()=>D),":first-child"),v.insert((()=>k),":first-child"),v.attr("class","text"),m&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",r),v.attr("transform",`translate(${g-g/4}, 0)`),a.attr("transform",`translate(${-s/2+(e.padding??0)/2-(u.x-(u.left??0))},${-h/2+(e.padding??0)/2-(u.y-(u.top??0))})`),d(e,v),e.intersect=function(t){return N.polygon(e,A,t)},o}async function nt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u}=await c(t,e,f(e)),a=Math.max(80,1.25*(u.width+2*(e.padding??0)),e?.width??0),s=Math.max(20,u.height+2*(e.padding??0),e?.height??0),h=s/2,{cssStyles:g}=e,F=l.A.svg(o),y=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");const A=a-h,C=s/4,x=[{x:A,y:0},{x:C,y:0},{x:0,y:s/2},{x:C,y:s},{x:A,y:s},...m(-A,-s/2,h,50,270,90)],b=p(x),D=F.path(b,y),E=o.insert((()=>D),":first-child");return E.attr("class","basic label-container"),g&&"handDrawn"!==e.look&&E.selectChildren("path").attr("style",g),r&&"handDrawn"!==e.look&&E.selectChildren("path").attr("style",r),E.attr("transform",`translate(${-a/2}, ${-s/2})`),d(e,E),e.intersect=function(t){return N.polygon(e,x,t)},o}(0,a.K2)(j,"anchor"),(0,a.K2)(q,"generateArcPoints"),(0,a.K2)(K,"bowTieRect"),(0,a.K2)(W,"insertPolygonShape"),(0,a.K2)(H,"card"),(0,a.K2)(U,"choice"),(0,a.K2)(Y,"circle"),(0,a.K2)(G,"createLine"),(0,a.K2)(V,"crossedCircle"),(0,a.K2)(X,"generateCirclePoints"),(0,a.K2)(Z,"curlyBraceLeft"),(0,a.K2)(Q,"generateCirclePoints"),(0,a.K2)(J,"curlyBraceRight"),(0,a.K2)(tt,"generateCirclePoints"),(0,a.K2)(et,"curlyBraces"),(0,a.K2)(nt,"curvedTrapezoid");var rt=(0,a.K2)(((t,e,n,r,i,o)=>[`M${t},${e+o}`,`a${i},${o} 0,0,0 ${n},0`,`a${i},${o} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${o} 0,0,0 ${n},0`,"l0,"+-r].join(" ")),"createCylinderPathD"),it=(0,a.K2)(((t,e,n,r,i,o)=>[`M${t},${e+o}`,`M${t+n},${e+o}`,`a${i},${o} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${o} 0,0,0 ${n},0`,"l0,"+-r].join(" ")),"createOuterCylinderPathD"),ot=(0,a.K2)(((t,e,n,r,i,o)=>[`M${t-n/2},${-r/2}`,`a${i},${o} 0,0,0 ${n},0`].join(" ")),"createInnerCylinderPathD");async function ut(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await c(t,e,f(e)),h=Math.max(a.width+e.padding,e.width??0),p=h/2,g=p/(2.5+h/50),m=Math.max(a.height+g+e.padding,e.height??0);let F;const{cssStyles:y}=e;if("handDrawn"===e.look){const t=l.A.svg(o),n=it(0,0,h,m,p,g),r=ot(0,g,h,m,p,g),u=t.path(n,(0,i.Fr)(e,{})),a=t.path(r,(0,i.Fr)(e,{fill:"none"}));F=o.insert((()=>a),":first-child"),F=o.insert((()=>u),":first-child"),F.attr("class","basic label-container"),y&&F.attr("style",y)}else{const t=rt(0,0,h,m,p,g);F=o.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,u.KL)(y)).attr("style",r)}return F.attr("label-offset-y",g),F.attr("transform",`translate(${-h/2}, ${-(m/2+g)})`),d(e,F),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-a.height/2+(e.padding??0)/1.5-(a.y-(a.top??0))})`),e.intersect=function(t){const n=N.rect(e,t),r=n.x-(e.x??0);if(0!=p&&(Math.abs(r)<(e.width??0)/2||Math.abs(r)==(e.width??0)/2&&Math.abs(n.y-(e.y??0))>(e.height??0)/2-g)){let i=g*g*(1-r*r/(p*p));i>0&&(i=Math.sqrt(i)),i=g-i,t.y-(e.y??0)>0&&(i=-i),n.y+=i}return n},o}async function at(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u,label:a}=await c(t,e,f(e)),s=u.width+e.padding,h=u.height+e.padding,p=.2*h,g=-s/2,m=-h/2-p/2,{cssStyles:F}=e,y=l.A.svg(o),A=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");const C=[{x:g,y:m+p},{x:-g,y:m+p},{x:-g,y:-m},{x:g,y:-m},{x:g,y:m},{x:-g,y:m},{x:-g,y:m+p}],x=y.polygon(C.map((t=>[t.x,t.y])),A),b=o.insert((()=>x),":first-child");return b.attr("class","basic label-container"),F&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",F),r&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",r),a.attr("transform",`translate(${g+(e.padding??0)/2-(u.x-(u.left??0))}, ${m+p+(e.padding??0)/2-(u.y-(u.top??0))})`),d(e,b),e.intersect=function(t){return N.rect(e,t)},o}async function st(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:s,halfPadding:h}=await c(t,e,f(e)),p=s.width/2+h+5,g=s.width/2+h;let m;const{cssStyles:F}=e;if("handDrawn"===e.look){const t=l.A.svg(o),n=(0,i.Fr)(e,{roughness:.2,strokeWidth:2.5}),r=(0,i.Fr)(e,{roughness:.2,strokeWidth:1.5}),a=t.circle(0,0,2*p,n),s=t.circle(0,0,2*g,r);m=o.insert("g",":first-child"),m.attr("class",(0,u.KL)(e.cssClasses)).attr("style",(0,u.KL)(F)),m.node()?.appendChild(a),m.node()?.appendChild(s)}else{m=o.insert("g",":first-child");const t=m.insert("circle",":first-child"),e=m.insert("circle");m.attr("class","basic label-container").attr("style",r),t.attr("class","outer-circle").attr("style",r).attr("r",p).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",r).attr("r",g).attr("cx",0).attr("cy",0)}return d(e,m),e.intersect=function(t){return a.Rm.info("DoubleCircle intersect",e,p,t),N.circle(e,p,t)},o}function lt(t,e,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.label="",e.labelStyle=r;const u=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,c=l.A.svg(u),{nodeBorder:h}=n,p=(0,i.Fr)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(p.roughness=0);const g=c.circle(0,0,14,p),m=u.insert((()=>g),":first-child");return m.selectAll("path").attr("style",`fill: ${h} !important;`),s&&s.length>0&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",s),o&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",o),d(e,m),e.intersect=function(t){return a.Rm.info("filledCircle intersect",e,{radius:7,point:t}),N.circle(e,7,t)},u}async function ct(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u,label:s}=await c(t,e,f(e)),h=u.width+(e.padding??0),g=h+u.height,m=h+u.height,F=[{x:0,y:-g},{x:m,y:-g},{x:m/2,y:0}],{cssStyles:y}=e,A=l.A.svg(o),C=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");const x=p(F),b=A.path(x,C),D=o.insert((()=>b),":first-child").attr("transform",`translate(${-g/2}, ${g/2})`);return y&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",y),r&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",r),e.width=h,e.height=g,d(e,D),s.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))}, ${-g/2+(e.padding??0)/2+(u.y-(u.top??0))})`),e.intersect=function(t){return a.Rm.info("Triangle intersect",e,F,t),N.polygon(e,F,t)},o}function ht(t,e,{dir:n,config:{state:r,themeVariables:o}}){const{nodeStyles:u}=(0,i.GX)(e);e.label="";const a=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id),{cssStyles:s}=e;let c=Math.max(70,e?.width??0),h=Math.max(10,e?.height??0);"LR"===n&&(c=Math.max(10,e?.width??0),h=Math.max(70,e?.height??0));const p=-1*c/2,g=-1*h/2,m=l.A.svg(a),F=(0,i.Fr)(e,{stroke:o.lineColor,fill:o.lineColor});"handDrawn"!==e.look&&(F.roughness=0,F.fillStyle="solid");const y=m.rectangle(p,g,c,h,F),A=a.insert((()=>y),":first-child");s&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",s),u&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",u),d(e,A);const C=r?.padding??0;return e.width&&e.height&&(e.width+=C/2||0,e.height+=C/2||0),e.intersect=function(t){return N.rect(e,t)},a}async function dt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u}=await c(t,e,f(e)),s=Math.max(80,u.width+2*(e.padding??0),e?.width??0),h=Math.max(50,u.height+2*(e.padding??0),e?.height??0),g=h/2,{cssStyles:F}=e,y=l.A.svg(o),A=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");const C=[{x:-s/2,y:-h/2},{x:s/2-g,y:-h/2},...m(-s/2+g,0,g,50,90,270),{x:s/2-g,y:h/2},{x:-s/2,y:h/2}],x=p(C),b=y.path(x,A),D=o.insert((()=>b),":first-child");return D.attr("class","basic label-container"),F&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",F),r&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",r),d(e,D),e.intersect=function(t){return a.Rm.info("Pill intersect",e,{radius:g,point:t}),N.polygon(e,C,t)},o}(0,a.K2)(ut,"cylinder"),(0,a.K2)(at,"dividedRectangle"),(0,a.K2)(st,"doublecircle"),(0,a.K2)(lt,"filledCircle"),(0,a.K2)(ct,"flippedTriangle"),(0,a.K2)(ht,"forkJoin"),(0,a.K2)(dt,"halfRoundedRectangle");var ft=(0,a.K2)(((t,e,n,r,i)=>[`M${t+i},${e}`,`L${t+n-i},${e}`,`L${t+n},${e-r/2}`,`L${t+n-i},${e-r}`,`L${t+i},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" ")),"createHexagonPathD");async function pt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u}=await c(t,e,f(e)),a=u.height+e.padding,s=a/4,h=u.width+2*s+e.padding,p=[{x:s,y:0},{x:h-s,y:0},{x:h,y:-a/2},{x:h-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}];let g;const{cssStyles:m}=e;if("handDrawn"===e.look){const t=l.A.svg(o),n=(0,i.Fr)(e,{}),r=ft(0,0,h,a,s),u=t.path(r,n);g=o.insert((()=>u),":first-child").attr("transform",`translate(${-h/2}, ${a/2})`),m&&g.attr("style",m)}else g=W(o,h,a,p);return r&&g.attr("style",r),e.width=h,e.height=a,d(e,g),e.intersect=function(t){return N.polygon(e,p,t)},o}async function gt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.label="",e.labelStyle=n;const{shapeSvg:o}=await c(t,e,f(e)),u=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:h}=e,g=l.A.svg(o),m=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");const F=[{x:0,y:0},{x:u,y:0},{x:0,y:s},{x:u,y:s}],y=p(F),A=g.path(y,m),C=o.insert((()=>A),":first-child");return C.attr("class","basic label-container"),h&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",h),r&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",r),C.attr("transform",`translate(${-u/2}, ${-s/2})`),d(e,C),e.intersect=function(t){return a.Rm.info("Pill intersect",e,{points:F}),N.polygon(e,F,t)},o}async function mt(t,e,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:u}=(0,i.GX)(e);e.labelStyle=u;const s=e.assetHeight??48,h=e.assetWidth??48,f=Math.max(s,h),p=r?.wrappingWidth;e.width=Math.max(f,p??0);const{shapeSvg:g,bbox:m,label:F}=await c(t,e,"icon-shape default"),y="t"===e.pos,A=f,C=f,{nodeBorder:x}=n,{stylesMap:b}=(0,i.WW)(e),D=-C/2,E=-A/2,k=e.label?8:0,B=l.A.svg(g),w=(0,i.Fr)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");const v=B.rectangle(D,E,C,A,w),_=Math.max(C,m.width),S=A+m.height+k,T=B.rectangle(-_/2,-S/2,_,S,{...w,fill:"transparent",stroke:"none"}),M=g.insert((()=>v),":first-child"),L=g.insert((()=>T));if(e.icon){const t=g.append("g");t.html(`<g>${await(0,o.WY)(e.icon,{height:f,width:f,fallbackPrefix:""})}</g>`);const n=t.node().getBBox(),r=n.width,i=n.height,u=n.x,a=n.y;t.attr("transform",`translate(${-r/2-u},${y?m.height/2+k/2-i/2-a:-m.height/2-k/2-i/2-a})`),t.attr("style",`color: ${b.get("stroke")??x};`)}return F.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${y?-S/2:S/2-m.height})`),M.attr("transform",`translate(0,${y?m.height/2+k/2:-m.height/2-k/2})`),d(e,L),e.intersect=function(t){if(a.Rm.info("iconSquare intersect",e,t),!e.label)return N.rect(e,t);const n=e.x??0,r=e.y??0,i=e.height??0;let o=[];return o=y?[{x:n-m.width/2,y:r-i/2},{x:n+m.width/2,y:r-i/2},{x:n+m.width/2,y:r-i/2+m.height+k},{x:n+C/2,y:r-i/2+m.height+k},{x:n+C/2,y:r+i/2},{x:n-C/2,y:r+i/2},{x:n-C/2,y:r-i/2+m.height+k},{x:n-m.width/2,y:r-i/2+m.height+k}]:[{x:n-C/2,y:r-i/2},{x:n+C/2,y:r-i/2},{x:n+C/2,y:r-i/2+A},{x:n+m.width/2,y:r-i/2+A},{x:n+m.width/2/2,y:r+i/2},{x:n-m.width/2,y:r+i/2},{x:n-m.width/2,y:r-i/2+A},{x:n-C/2,y:r-i/2+A}],N.polygon(e,o,t)},g}async function Ft(t,e,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:u}=(0,i.GX)(e);e.labelStyle=u;const s=e.assetHeight??48,h=e.assetWidth??48,f=Math.max(s,h),p=r?.wrappingWidth;e.width=Math.max(f,p??0);const{shapeSvg:g,bbox:m,label:F}=await c(t,e,"icon-shape default"),y=e.label?8:0,A="t"===e.pos,{nodeBorder:C,mainBkg:x}=n,{stylesMap:b}=(0,i.WW)(e),D=l.A.svg(g),E=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(E.roughness=0,E.fillStyle="solid");const k=b.get("fill");E.stroke=k??x;const B=g.append("g");e.icon&&B.html(`<g>${await(0,o.WY)(e.icon,{height:f,width:f,fallbackPrefix:""})}</g>`);const w=B.node().getBBox(),v=w.width,_=w.height,S=w.x,T=w.y,M=Math.max(v,_)*Math.SQRT2+40,L=D.circle(0,0,M,E),$=Math.max(M,m.width),O=M+m.height+y,I=D.rectangle(-$/2,-O/2,$,O,{...E,fill:"transparent",stroke:"none"}),R=g.insert((()=>L),":first-child"),P=g.insert((()=>I));return B.attr("transform",`translate(${-v/2-S},${A?m.height/2+y/2-_/2-T:-m.height/2-y/2-_/2-T})`),B.attr("style",`color: ${b.get("stroke")??C};`),F.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${A?-O/2:O/2-m.height})`),R.attr("transform",`translate(0,${A?m.height/2+y/2:-m.height/2-y/2})`),d(e,P),e.intersect=function(t){return a.Rm.info("iconSquare intersect",e,t),N.rect(e,t)},g}async function yt(t,e,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:u}=(0,i.GX)(e);e.labelStyle=u;const s=e.assetHeight??48,h=e.assetWidth??48,f=Math.max(s,h),p=r?.wrappingWidth;e.width=Math.max(f,p??0);const{shapeSvg:g,bbox:m,halfPadding:F,label:y}=await c(t,e,"icon-shape default"),A="t"===e.pos,C=f+2*F,b=f+2*F,{nodeBorder:D,mainBkg:E}=n,{stylesMap:k}=(0,i.WW)(e),B=-b/2,w=-C/2,v=e.label?8:0,_=l.A.svg(g),S=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");const T=k.get("fill");S.stroke=T??E;const M=_.path(x(B,w,b,C,5),S),L=Math.max(b,m.width),$=C+m.height+v,O=_.rectangle(-L/2,-$/2,L,$,{...S,fill:"transparent",stroke:"none"}),I=g.insert((()=>M),":first-child").attr("class","icon-shape2"),R=g.insert((()=>O));if(e.icon){const t=g.append("g");t.html(`<g>${await(0,o.WY)(e.icon,{height:f,width:f,fallbackPrefix:""})}</g>`);const n=t.node().getBBox(),r=n.width,i=n.height,u=n.x,a=n.y;t.attr("transform",`translate(${-r/2-u},${A?m.height/2+v/2-i/2-a:-m.height/2-v/2-i/2-a})`),t.attr("style",`color: ${k.get("stroke")??D};`)}return y.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${A?-$/2:$/2-m.height})`),I.attr("transform",`translate(0,${A?m.height/2+v/2:-m.height/2-v/2})`),d(e,R),e.intersect=function(t){if(a.Rm.info("iconSquare intersect",e,t),!e.label)return N.rect(e,t);const n=e.x??0,r=e.y??0,i=e.height??0;let o=[];return o=A?[{x:n-m.width/2,y:r-i/2},{x:n+m.width/2,y:r-i/2},{x:n+m.width/2,y:r-i/2+m.height+v},{x:n+b/2,y:r-i/2+m.height+v},{x:n+b/2,y:r+i/2},{x:n-b/2,y:r+i/2},{x:n-b/2,y:r-i/2+m.height+v},{x:n-m.width/2,y:r-i/2+m.height+v}]:[{x:n-b/2,y:r-i/2},{x:n+b/2,y:r-i/2},{x:n+b/2,y:r-i/2+C},{x:n+m.width/2,y:r-i/2+C},{x:n+m.width/2/2,y:r+i/2},{x:n-m.width/2,y:r+i/2},{x:n-m.width/2,y:r-i/2+C},{x:n-b/2,y:r-i/2+C}],N.polygon(e,o,t)},g}async function At(t,e,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:u}=(0,i.GX)(e);e.labelStyle=u;const s=e.assetHeight??48,h=e.assetWidth??48,f=Math.max(s,h),p=r?.wrappingWidth;e.width=Math.max(f,p??0);const{shapeSvg:g,bbox:m,halfPadding:F,label:y}=await c(t,e,"icon-shape default"),A="t"===e.pos,C=f+2*F,b=f+2*F,{nodeBorder:D,mainBkg:E}=n,{stylesMap:k}=(0,i.WW)(e),B=-b/2,w=-C/2,v=e.label?8:0,_=l.A.svg(g),S=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");const T=k.get("fill");S.stroke=T??E;const M=_.path(x(B,w,b,C,.1),S),L=Math.max(b,m.width),$=C+m.height+v,O=_.rectangle(-L/2,-$/2,L,$,{...S,fill:"transparent",stroke:"none"}),I=g.insert((()=>M),":first-child"),R=g.insert((()=>O));if(e.icon){const t=g.append("g");t.html(`<g>${await(0,o.WY)(e.icon,{height:f,width:f,fallbackPrefix:""})}</g>`);const n=t.node().getBBox(),r=n.width,i=n.height,u=n.x,a=n.y;t.attr("transform",`translate(${-r/2-u},${A?m.height/2+v/2-i/2-a:-m.height/2-v/2-i/2-a})`),t.attr("style",`color: ${k.get("stroke")??D};`)}return y.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${A?-$/2:$/2-m.height})`),I.attr("transform",`translate(0,${A?m.height/2+v/2:-m.height/2-v/2})`),d(e,R),e.intersect=function(t){if(a.Rm.info("iconSquare intersect",e,t),!e.label)return N.rect(e,t);const n=e.x??0,r=e.y??0,i=e.height??0;let o=[];return o=A?[{x:n-m.width/2,y:r-i/2},{x:n+m.width/2,y:r-i/2},{x:n+m.width/2,y:r-i/2+m.height+v},{x:n+b/2,y:r-i/2+m.height+v},{x:n+b/2,y:r+i/2},{x:n-b/2,y:r+i/2},{x:n-b/2,y:r-i/2+m.height+v},{x:n-m.width/2,y:r-i/2+m.height+v}]:[{x:n-b/2,y:r-i/2},{x:n+b/2,y:r-i/2},{x:n+b/2,y:r-i/2+C},{x:n+m.width/2,y:r-i/2+C},{x:n+m.width/2/2,y:r+i/2},{x:n-m.width/2,y:r+i/2},{x:n-m.width/2,y:r-i/2+C},{x:n-b/2,y:r-i/2+C}],N.polygon(e,o,t)},g}async function Ct(t,e,{config:{flowchart:n}}){const r=new Image;r.src=e?.img??"",await r.decode();const o=Number(r.naturalWidth.toString().replace("px","")),u=Number(r.naturalHeight.toString().replace("px",""));e.imageAspectRatio=o/u;const{labelStyles:s}=(0,i.GX)(e);e.labelStyle=s;const h=n?.wrappingWidth;e.defaultWidth=n?.wrappingWidth;const f=Math.max(e.label?h??0:0,e?.assetWidth??o),p="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:f,g="on"===e.constraint?p/e.imageAspectRatio:e?.assetHeight??u;e.width=Math.max(p,h??0);const{shapeSvg:m,bbox:F,label:y}=await c(t,e,"image-shape default"),A="t"===e.pos,C=-p/2,x=-g/2,b=e.label?8:0,D=l.A.svg(m),E=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(E.roughness=0,E.fillStyle="solid");const k=D.rectangle(C,x,p,g,E),B=Math.max(p,F.width),w=g+F.height+b,v=D.rectangle(-B/2,-w/2,B,w,{...E,fill:"none",stroke:"none"}),_=m.insert((()=>k),":first-child"),S=m.insert((()=>v));if(e.img){const t=m.append("image");t.attr("href",e.img),t.attr("width",p),t.attr("height",g),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-p/2},${A?w/2-g:-w/2})`)}return y.attr("transform",`translate(${-F.width/2-(F.x-(F.left??0))},${A?-g/2-F.height/2-b/2:g/2-F.height/2+b/2})`),_.attr("transform",`translate(0,${A?F.height/2+b/2:-F.height/2-b/2})`),d(e,S),e.intersect=function(t){if(a.Rm.info("iconSquare intersect",e,t),!e.label)return N.rect(e,t);const n=e.x??0,r=e.y??0,i=e.height??0;let o=[];return o=A?[{x:n-F.width/2,y:r-i/2},{x:n+F.width/2,y:r-i/2},{x:n+F.width/2,y:r-i/2+F.height+b},{x:n+p/2,y:r-i/2+F.height+b},{x:n+p/2,y:r+i/2},{x:n-p/2,y:r+i/2},{x:n-p/2,y:r-i/2+F.height+b},{x:n-F.width/2,y:r-i/2+F.height+b}]:[{x:n-p/2,y:r-i/2},{x:n+p/2,y:r-i/2},{x:n+p/2,y:r-i/2+g},{x:n+F.width/2,y:r-i/2+g},{x:n+F.width/2/2,y:r+i/2},{x:n-F.width/2,y:r+i/2},{x:n-F.width/2,y:r-i/2+g},{x:n-p/2,y:r-i/2+g}],N.polygon(e,o,t)},m}async function xt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u}=await c(t,e,f(e)),a=Math.max(u.width+2*(e.padding??0),e?.width??0),s=Math.max(u.height+2*(e.padding??0),e?.height??0),h=[{x:0,y:0},{x:a,y:0},{x:a+3*s/6,y:-s},{x:-3*s/6,y:-s}];let g;const{cssStyles:m}=e;if("handDrawn"===e.look){const t=l.A.svg(o),n=(0,i.Fr)(e,{}),r=p(h),u=t.path(r,n);g=o.insert((()=>u),":first-child").attr("transform",`translate(${-a/2}, ${s/2})`),m&&g.attr("style",m)}else g=W(o,a,s,h);return r&&g.attr("style",r),e.width=a,e.height=s,d(e,g),e.intersect=function(t){return N.polygon(e,h,t)},o}async function bt(t,e,n){const{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;const{shapeSvg:a,bbox:s}=await c(t,e,f(e)),h=Math.max(s.width+2*n.labelPaddingX,e?.width||0),p=Math.max(s.height+2*n.labelPaddingY,e?.height||0),g=-h/2,m=-p/2;let F,{rx:y,ry:A}=e;const{cssStyles:C}=e;if(n?.rx&&n.ry&&(y=n.rx,A=n.ry),"handDrawn"===e.look){const t=l.A.svg(a),n=(0,i.Fr)(e,{}),r=y||A?t.path(x(g,m,h,p,y||0),n):t.rectangle(g,m,h,p,n);F=a.insert((()=>r),":first-child"),F.attr("class","basic label-container").attr("style",(0,u.KL)(C))}else F=a.insert("rect",":first-child"),F.attr("class","basic label-container").attr("style",o).attr("rx",(0,u.KL)(y)).attr("ry",(0,u.KL)(A)).attr("x",g).attr("y",m).attr("width",h).attr("height",p);return d(e,F),e.intersect=function(t){return N.rect(e,t)},a}async function Dt(t,e){const{shapeSvg:n,bbox:r,label:i}=await c(t,e,"label"),o=n.insert("rect",":first-child");return o.attr("width",.1).attr("height",.1),n.attr("class","label edgeLabel"),i.attr("transform",`translate(${-r.width/2-(r.x-(r.left??0))}, ${-r.height/2-(r.y-(r.top??0))})`),d(e,o),e.intersect=function(t){return N.rect(e,t)},n}async function Et(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u}=await c(t,e,f(e)),a=Math.max(u.width+(e.padding??0),e?.width??0),s=Math.max(u.height+(e.padding??0),e?.height??0),h=[{x:0,y:0},{x:a+3*s/6,y:0},{x:a,y:-s},{x:-3*s/6,y:-s}];let g;const{cssStyles:m}=e;if("handDrawn"===e.look){const t=l.A.svg(o),n=(0,i.Fr)(e,{}),r=p(h),u=t.path(r,n);g=o.insert((()=>u),":first-child").attr("transform",`translate(${-a/2}, ${s/2})`),m&&g.attr("style",m)}else g=W(o,a,s,h);return r&&g.attr("style",r),e.width=a,e.height=s,d(e,g),e.intersect=function(t){return N.polygon(e,h,t)},o}async function kt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u}=await c(t,e,f(e)),a=Math.max(u.width+(e.padding??0),e?.width??0),s=Math.max(u.height+(e.padding??0),e?.height??0),h=[{x:-3*s/6,y:0},{x:a,y:0},{x:a+3*s/6,y:-s},{x:0,y:-s}];let g;const{cssStyles:m}=e;if("handDrawn"===e.look){const t=l.A.svg(o),n=(0,i.Fr)(e,{}),r=p(h),u=t.path(r,n);g=o.insert((()=>u),":first-child").attr("transform",`translate(${-a/2}, ${s/2})`),m&&g.attr("style",m)}else g=W(o,a,s,h);return r&&g.attr("style",r),e.width=a,e.height=s,d(e,g),e.intersect=function(t){return N.polygon(e,h,t)},o}function Bt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.label="",e.labelStyle=n;const o=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id),{cssStyles:u}=e,s=Math.max(35,e?.width??0),c=Math.max(35,e?.height??0),h=[{x:s,y:0},{x:0,y:c+3.5},{x:s-14,y:c+3.5},{x:0,y:2*c},{x:s,y:c-3.5},{x:14,y:c-3.5}],g=l.A.svg(o),m=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");const F=p(h),y=g.path(F,m),A=o.insert((()=>y),":first-child");return u&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",u),r&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",r),A.attr("transform",`translate(-${s/2},${-c})`),d(e,A),e.intersect=function(t){return a.Rm.info("lightningBolt intersect",e,t),N.polygon(e,h,t)},o}(0,a.K2)(pt,"hexagon"),(0,a.K2)(gt,"hourglass"),(0,a.K2)(mt,"icon"),(0,a.K2)(Ft,"iconCircle"),(0,a.K2)(yt,"iconRounded"),(0,a.K2)(At,"iconSquare"),(0,a.K2)(Ct,"imageSquare"),(0,a.K2)(xt,"inv_trapezoid"),(0,a.K2)(bt,"drawRect"),(0,a.K2)(Dt,"labelRect"),(0,a.K2)(Et,"lean_left"),(0,a.K2)(kt,"lean_right"),(0,a.K2)(Bt,"lightningBolt");var wt=(0,a.K2)(((t,e,n,r,i,o,u)=>[`M${t},${e+o}`,`a${i},${o} 0,0,0 ${n},0`,`a${i},${o} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${o} 0,0,0 ${n},0`,"l0,"+-r,`M${t},${e+o+u}`,`a${i},${o} 0,0,0 ${n},0`].join(" ")),"createCylinderPathD"),vt=(0,a.K2)(((t,e,n,r,i,o,u)=>[`M${t},${e+o}`,`M${t+n},${e+o}`,`a${i},${o} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${o} 0,0,0 ${n},0`,"l0,"+-r,`M${t},${e+o+u}`,`a${i},${o} 0,0,0 ${n},0`].join(" ")),"createOuterCylinderPathD"),_t=(0,a.K2)(((t,e,n,r,i,o)=>[`M${t-n/2},${-r/2}`,`a${i},${o} 0,0,0 ${n},0`].join(" ")),"createInnerCylinderPathD");async function St(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await c(t,e,f(e)),h=Math.max(a.width+(e.padding??0),e.width??0),p=h/2,g=p/(2.5+h/50),m=Math.max(a.height+g+(e.padding??0),e.height??0),F=.1*m;let y;const{cssStyles:A}=e;if("handDrawn"===e.look){const t=l.A.svg(o),n=vt(0,0,h,m,p,g,F),r=_t(0,g,h,m,p,g),u=(0,i.Fr)(e,{}),a=t.path(n,u),s=t.path(r,u);o.insert((()=>s),":first-child").attr("class","line"),y=o.insert((()=>a),":first-child"),y.attr("class","basic label-container"),A&&y.attr("style",A)}else{const t=wt(0,0,h,m,p,g,F);y=o.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,u.KL)(A)).attr("style",r)}return y.attr("label-offset-y",g),y.attr("transform",`translate(${-h/2}, ${-(m/2+g)})`),d(e,y),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-a.height/2+g-(a.y-(a.top??0))})`),e.intersect=function(t){const n=N.rect(e,t),r=n.x-(e.x??0);if(0!=p&&(Math.abs(r)<(e.width??0)/2||Math.abs(r)==(e.width??0)/2&&Math.abs(n.y-(e.y??0))>(e.height??0)/2-g)){let i=g*g*(1-r*r/(p*p));i>0&&(i=Math.sqrt(i)),i=g-i,t.y-(e.y??0)>0&&(i=-i),n.y+=i}return n},o}async function Tt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u,label:a}=await c(t,e,f(e)),s=Math.max(u.width+2*(e.padding??0),e?.width??0),h=Math.max(u.height+2*(e.padding??0),e?.height??0),p=h/4,m=h+p,{cssStyles:F}=e,y=l.A.svg(o),A=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");const C=[{x:-s/2-s/2*.1,y:-m/2},{x:-s/2-s/2*.1,y:m/2},...g(-s/2-s/2*.1,m/2,s/2+s/2*.1,m/2,p,.8),{x:s/2+s/2*.1,y:-m/2},{x:-s/2-s/2*.1,y:-m/2},{x:-s/2,y:-m/2},{x:-s/2,y:m/2*1.1},{x:-s/2,y:-m/2}],x=y.polygon(C.map((t=>[t.x,t.y])),A),b=o.insert((()=>x),":first-child");return b.attr("class","basic label-container"),F&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",F),r&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",r),b.attr("transform",`translate(0,${-p/2})`),a.attr("transform",`translate(${-s/2+(e.padding??0)+s/2*.1/2-(u.x-(u.left??0))},${-h/2+(e.padding??0)-p/2-(u.y-(u.top??0))})`),d(e,b),e.intersect=function(t){return N.polygon(e,C,t)},o}async function Mt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u,label:a}=await c(t,e,f(e)),s=Math.max(u.width+2*(e.padding??0),e?.width??0),h=Math.max(u.height+2*(e.padding??0),e?.height??0),g=-s/2,m=-h/2,{cssStyles:F}=e,y=l.A.svg(o),A=(0,i.Fr)(e,{}),C=[{x:g-5,y:m+5},{x:g-5,y:m+h+5},{x:g+s-5,y:m+h+5},{x:g+s-5,y:m+h},{x:g+s,y:m+h},{x:g+s,y:m+h-5},{x:g+s+5,y:m+h-5},{x:g+s+5,y:m-5},{x:g+5,y:m-5},{x:g+5,y:m},{x:g,y:m},{x:g,y:m+5}],x=[{x:g,y:m+5},{x:g+s-5,y:m+5},{x:g+s-5,y:m+h},{x:g+s,y:m+h},{x:g+s,y:m},{x:g,y:m}];"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");const b=p(C),D=y.path(b,A),E=p(x),k=y.path(E,{...A,fill:"none"}),B=o.insert((()=>k),":first-child");return B.insert((()=>D),":first-child"),B.attr("class","basic label-container"),F&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",F),r&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",r),a.attr("transform",`translate(${-u.width/2-5-(u.x-(u.left??0))}, ${-u.height/2+5-(u.y-(u.top??0))})`),d(e,B),e.intersect=function(t){return N.polygon(e,C,t)},o}async function Lt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u,label:a}=await c(t,e,f(e)),s=Math.max(u.width+2*(e.padding??0),e?.width??0),h=Math.max(u.height+2*(e.padding??0),e?.height??0),m=h/4,F=h+m,y=-s/2,A=-F/2,{cssStyles:C}=e,x=g(y-5,A+F+5,y+s-5,A+F+5,m,.8),b=x?.[x.length-1],D=[{x:y-5,y:A+5},{x:y-5,y:A+F+5},...x,{x:y+s-5,y:b.y-5},{x:y+s,y:b.y-5},{x:y+s,y:b.y-10},{x:y+s+5,y:b.y-10},{x:y+s+5,y:A-5},{x:y+5,y:A-5},{x:y+5,y:A},{x:y,y:A},{x:y,y:A+5}],E=[{x:y,y:A+5},{x:y+s-5,y:A+5},{x:y+s-5,y:b.y-5},{x:y+s,y:b.y-5},{x:y+s,y:A},{x:y,y:A}],k=l.A.svg(o),B=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");const w=p(D),v=k.path(w,B),_=p(E),S=k.path(_,B),T=o.insert((()=>v),":first-child");return T.insert((()=>S)),T.attr("class","basic label-container"),C&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",C),r&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",r),T.attr("transform",`translate(0,${-m/2})`),a.attr("transform",`translate(${-u.width/2-5-(u.x-(u.left??0))}, ${-u.height/2+5-m/2-(u.y-(u.top??0))})`),d(e,T),e.intersect=function(t){return N.polygon(e,D,t)},o}async function $t(t,e,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r,e.useHtmlLabels||!1!==(0,a.zj)().flowchart?.htmlLabels||(e.centerLabel=!0);const{shapeSvg:u,bbox:s,label:h}=await c(t,e,f(e)),p=Math.max(s.width+2*(e.padding??0),e?.width??0),g=Math.max(s.height+2*(e.padding??0),e?.height??0),m=-p/2,F=-g/2,{cssStyles:y}=e,A=l.A.svg(u),C=(0,i.Fr)(e,{fill:n.noteBkgColor,stroke:n.noteBorderColor});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");const x=A.rectangle(m,F,p,g,C),b=u.insert((()=>x),":first-child");return b.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",y),o&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",o),h.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-s.height/2-(s.y-(s.top??0))})`),d(e,b),e.intersect=function(t){return N.rect(e,t)},u}(0,a.K2)(St,"linedCylinder"),(0,a.K2)(Tt,"linedWaveEdgedRect"),(0,a.K2)(Mt,"multiRect"),(0,a.K2)(Lt,"multiWaveEdgedRectangle"),(0,a.K2)($t,"note");var Ot=(0,a.K2)(((t,e,n)=>[`M${t+n/2},${e}`,`L${t+n},${e-n/2}`,`L${t+n/2},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" ")),"createDecisionBoxPathD");async function It(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u}=await c(t,e,f(e)),s=u.width+e.padding+(u.height+e.padding),h=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];let p;const{cssStyles:g}=e;if("handDrawn"===e.look){const t=l.A.svg(o),n=(0,i.Fr)(e,{}),r=Ot(0,0,s),u=t.path(r,n);p=o.insert((()=>u),":first-child").attr("transform",`translate(${-s/2}, ${s/2})`),g&&p.attr("style",g)}else p=W(o,s,s,h);return r&&p.attr("style",r),d(e,p),e.intersect=function(t){return a.Rm.debug("APA12 Intersect called SPLIT\npoint:",t,"\nnode:\n",e,"\nres:",N.polygon(e,h,t)),N.polygon(e,h,t)},o}async function Rt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u,label:a}=await c(t,e,f(e)),s=-Math.max(u.width+(e.padding??0),e?.width??0)/2,h=-Math.max(u.height+(e.padding??0),e?.height??0)/2,g=h/2,m=[{x:s+g,y:h},{x:s,y:0},{x:s+g,y:-h},{x:-s,y:-h},{x:-s,y:h}],{cssStyles:F}=e,y=l.A.svg(o),A=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");const C=p(m),x=y.path(C,A),b=o.insert((()=>x),":first-child");return b.attr("class","basic label-container"),F&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",F),r&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",r),b.attr("transform",`translate(${-g/2},0)`),a.attr("transform",`translate(${-g/2-u.width/2-(u.x-(u.left??0))}, ${-u.height/2-(u.y-(u.top??0))})`),d(e,b),e.intersect=function(t){return N.polygon(e,m,t)},o}async function Pt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);let o;e.labelStyle=n,o=e.cssClasses?"node "+e.cssClasses:"node default";const u=t.insert("g").attr("class",o).attr("id",e.domId||e.id),c=u.insert("g"),h=u.insert("g").attr("class","label").attr("style",r),f=e.description,p=e.label,g=h.node().appendChild(await C(p,e.labelStyle,!0,!0));let m={width:0,height:0};if((0,a._3)((0,a.D7)()?.flowchart?.htmlLabels)){const t=g.children[0],e=(0,s.Ltv)(g);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}a.Rm.info("Text 2",f);const F=f||[],y=g.getBBox(),A=h.node().appendChild(await C(F.join?F.join("<br/>"):F,e.labelStyle,!0,!0)),b=A.children[0],D=(0,s.Ltv)(A);m=b.getBoundingClientRect(),D.attr("width",m.width),D.attr("height",m.height);const E=(e.padding||0)/2;(0,s.Ltv)(A).attr("transform","translate( "+(m.width>y.width?0:(y.width-m.width)/2)+", "+(y.height+E+5)+")"),(0,s.Ltv)(g).attr("transform","translate( "+(m.width<y.width?0:-(y.width-m.width)/2)+", 0)"),m=h.node().getBBox(),h.attr("transform","translate("+-m.width/2+", "+(-m.height/2-E+3)+")");const k=m.width+(e.padding||0),B=m.height+(e.padding||0),w=-m.width/2-E,v=-m.height/2-E;let _,S;if("handDrawn"===e.look){const t=l.A.svg(u),n=(0,i.Fr)(e,{}),r=t.path(x(w,v,k,B,e.rx||0),n),o=t.line(-m.width/2-E,-m.height/2-E+y.height+E,m.width/2+E,-m.height/2-E+y.height+E,n);S=u.insert((()=>(a.Rm.debug("Rough node insert CXC",r),o)),":first-child"),_=u.insert((()=>(a.Rm.debug("Rough node insert CXC",r),r)),":first-child")}else _=c.insert("rect",":first-child"),S=c.insert("line"),_.attr("class","outer title-state").attr("style",r).attr("x",-m.width/2-E).attr("y",-m.height/2-E).attr("width",m.width+(e.padding||0)).attr("height",m.height+(e.padding||0)),S.attr("class","divider").attr("x1",-m.width/2-E).attr("x2",m.width/2+E).attr("y1",-m.height/2-E+y.height+E).attr("y2",-m.height/2-E+y.height+E);return d(e,_),e.intersect=function(t){return N.rect(e,t)},u}async function zt(t,e){return bt(t,e,{rx:5,ry:5,classes:"",labelPaddingX:1*(e?.padding||0),labelPaddingY:1*(e?.padding||0)})}async function Nt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await c(t,e,f(e)),h=e?.padding??0,p=Math.max(a.width+2*(e.padding??0),e?.width??0),g=Math.max(a.height+2*(e.padding??0),e?.height??0),m=-a.width/2-h,F=-a.height/2-h,{cssStyles:y}=e,A=l.A.svg(o),C=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");const x=[{x:m,y:F},{x:m+p+8,y:F},{x:m+p+8,y:F+g},{x:m-8,y:F+g},{x:m-8,y:F},{x:m,y:F},{x:m,y:F+g}],b=A.polygon(x.map((t=>[t.x,t.y])),C),D=o.insert((()=>b),":first-child");return D.attr("class","basic label-container").attr("style",(0,u.KL)(y)),r&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",r),y&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",r),s.attr("transform",`translate(${-p/2+4+(e.padding??0)-(a.x-(a.left??0))},${-g/2+(e.padding??0)-(a.y-(a.top??0))})`),d(e,D),e.intersect=function(t){return N.rect(e,t)},o}async function jt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u,label:a}=await c(t,e,f(e)),s=Math.max(u.width+2*(e.padding??0),e?.width??0),h=Math.max(u.height+2*(e.padding??0),e?.height??0),g=-s/2,m=-h/2,{cssStyles:F}=e,y=l.A.svg(o),A=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");const C=[{x:g,y:m},{x:g,y:m+h},{x:g+s,y:m+h},{x:g+s,y:m-h/2}],x=p(C),b=y.path(x,A),D=o.insert((()=>b),":first-child");return D.attr("class","basic label-container"),F&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",F),r&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",r),D.attr("transform",`translate(0, ${h/4})`),a.attr("transform",`translate(${-s/2+(e.padding??0)-(u.x-(u.left??0))}, ${-h/4+(e.padding??0)-(u.y-(u.top??0))})`),d(e,D),e.intersect=function(t){return N.polygon(e,C,t)},o}async function qt(t,e){return bt(t,e,{rx:0,ry:0,classes:"",labelPaddingX:2*(e?.padding||0),labelPaddingY:1*(e?.padding||0)})}async function Kt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await c(t,e,f(e)),s=a.height+e.padding,h=a.width+s/4+e.padding;let p;const{cssStyles:g}=e;if("handDrawn"===e.look){const t=l.A.svg(o),n=(0,i.Fr)(e,{}),r=x(-h/2,-s/2,h,s,s/2),a=t.path(r,n);p=o.insert((()=>a),":first-child"),p.attr("class","basic label-container").attr("style",(0,u.KL)(g))}else p=o.insert("rect",":first-child"),p.attr("class","basic label-container").attr("style",r).attr("rx",s/2).attr("ry",s/2).attr("x",-h/2).attr("y",-s/2).attr("width",h).attr("height",s);return d(e,p),e.intersect=function(t){return N.rect(e,t)},o}async function Wt(t,e){return bt(t,e,{rx:5,ry:5,classes:"flowchart-node"})}function Ht(t,e,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;const{cssStyles:u}=e,{lineColor:a,stateBorder:s,nodeBorder:c}=n,h=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),f=l.A.svg(h),p=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const g=f.circle(0,0,14,{...p,stroke:a,strokeWidth:2}),m=s??c,F=f.circle(0,0,5,{...p,fill:m,stroke:m,strokeWidth:2,fillStyle:"solid"}),y=h.insert((()=>g),":first-child");return y.insert((()=>F)),u&&y.selectAll("path").attr("style",u),o&&y.selectAll("path").attr("style",o),d(e,y),e.intersect=function(t){return N.circle(e,7,t)},h}function Ut(t,e,{config:{themeVariables:n}}){const{lineColor:r}=n,o=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let u;if("handDrawn"===e.look){const t=l.A.svg(o).circle(0,0,14,(0,i.ue)(r));u=o.insert((()=>t)),u.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else u=o.insert("circle",":first-child"),u.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return d(e,u),e.intersect=function(t){return N.circle(e,7,t)},o}async function Yt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await c(t,e,f(e)),s=(e?.padding||0)/2,h=a.width+e.padding,p=a.height+e.padding,g=-a.width/2-s,m=-a.height/2-s,F=[{x:0,y:0},{x:h,y:0},{x:h,y:-p},{x:0,y:-p},{x:0,y:0},{x:-8,y:0},{x:h+8,y:0},{x:h+8,y:-p},{x:-8,y:-p},{x:-8,y:0}];if("handDrawn"===e.look){const t=l.A.svg(o),n=(0,i.Fr)(e,{}),r=t.rectangle(g-8,m,h+16,p,n),a=t.line(g,m,g,m+p,n),s=t.line(g+h,m,g+h,m+p,n);o.insert((()=>a),":first-child"),o.insert((()=>s),":first-child");const c=o.insert((()=>r),":first-child"),{cssStyles:f}=e;c.attr("class","basic label-container").attr("style",(0,u.KL)(f)),d(e,c)}else{const t=W(o,h,p,F);r&&t.attr("style",r),d(e,t)}return e.intersect=function(t){return N.polygon(e,F,t)},o}async function Gt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u}=await c(t,e,f(e)),a=Math.max(u.width+2*(e.padding??0),e?.width??0),s=Math.max(u.height+2*(e.padding??0),e?.height??0),h=-a/2,g=-s/2,m=.2*s,F=.2*s,{cssStyles:y}=e,A=l.A.svg(o),C=(0,i.Fr)(e,{}),x=[{x:h-m/2,y:g},{x:h+a+m/2,y:g},{x:h+a+m/2,y:g+s},{x:h-m/2,y:g+s}],b=[{x:h+a-m/2,y:g+s},{x:h+a+m/2,y:g+s},{x:h+a+m/2,y:g+s-F}];"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");const D=p(x),E=A.path(D,C),k=p(b),B=A.path(k,{...C,fillStyle:"solid"}),w=o.insert((()=>B),":first-child");return w.insert((()=>E),":first-child"),w.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",y),r&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",r),d(e,w),e.intersect=function(t){return N.polygon(e,x,t)},o}async function Vt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u,label:a}=await c(t,e,f(e)),s=Math.max(u.width+2*(e.padding??0),e?.width??0),h=Math.max(u.height+2*(e.padding??0),e?.height??0),m=h/4,F=.2*s,y=.2*h,A=h+m,{cssStyles:C}=e,x=l.A.svg(o),b=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const D=[{x:-s/2-s/2*.1,y:A/2},...g(-s/2-s/2*.1,A/2,s/2+s/2*.1,A/2,m,.8),{x:s/2+s/2*.1,y:-A/2},{x:-s/2-s/2*.1,y:-A/2}],E=-s/2+s/2*.1,k=-A/2-.4*y,B=[{x:E+s-F,y:1.4*(k+h)},{x:E+s,y:k+h-y},{x:E+s,y:.9*(k+h)},...g(E+s,1.3*(k+h),E+s-F,1.5*(k+h),.03*-h,.5)],w=p(D),v=x.path(w,b),_=p(B),S=x.path(_,{...b,fillStyle:"solid"}),T=o.insert((()=>S),":first-child");return T.insert((()=>v),":first-child"),T.attr("class","basic label-container"),C&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",C),r&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",r),T.attr("transform",`translate(0,${-m/2})`),a.attr("transform",`translate(${-s/2+(e.padding??0)-(u.x-(u.left??0))},${-h/2+(e.padding??0)-m/2-(u.y-(u.top??0))})`),d(e,T),e.intersect=function(t){return N.polygon(e,D,t)},o}async function Xt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u}=await c(t,e,f(e)),a=Math.max(u.width+e.padding,e?.width||0),s=Math.max(u.height+e.padding,e?.height||0),l=-a/2,h=-s/2,p=o.insert("rect",":first-child");return p.attr("class","text").attr("style",r).attr("rx",0).attr("ry",0).attr("x",l).attr("y",h).attr("width",a).attr("height",s),d(e,p),e.intersect=function(t){return N.rect(e,t)},o}(0,a.K2)(It,"question"),(0,a.K2)(Rt,"rect_left_inv_arrow"),(0,a.K2)(Pt,"rectWithTitle"),(0,a.K2)(zt,"roundedRect"),(0,a.K2)(Nt,"shadedProcess"),(0,a.K2)(jt,"slopedRect"),(0,a.K2)(qt,"squareRect"),(0,a.K2)(Kt,"stadium"),(0,a.K2)(Wt,"state"),(0,a.K2)(Ht,"stateEnd"),(0,a.K2)(Ut,"stateStart"),(0,a.K2)(Yt,"subroutine"),(0,a.K2)(Gt,"taggedRect"),(0,a.K2)(Vt,"taggedWaveEdgedRectangle"),(0,a.K2)(Xt,"text");var Zt=(0,a.K2)(((t,e,n,r,i,o)=>`M${t},${e}\n a${i},${o} 0,0,1 0,${-r}\n l${n},0\n a${i},${o} 0,0,1 0,${r}\n M${n},${-r}\n a${i},${o} 0,0,0 0,${r}\n l${-n},0`),"createCylinderPathD"),Qt=(0,a.K2)(((t,e,n,r,i,o)=>[`M${t},${e}`,`M${t+n},${e}`,`a${i},${o} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${o} 0,0,0 0,${r}`,`l${n},0`].join(" ")),"createOuterCylinderPathD"),Jt=(0,a.K2)(((t,e,n,r,i,o)=>[`M${t+n/2},${-r/2}`,`a${i},${o} 0,0,0 0,${r}`].join(" ")),"createInnerCylinderPathD");async function te(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s,halfPadding:h}=await c(t,e,f(e)),p="neo"===e.look?2*h:h,g=a.height+p,m=g/2,F=m/(2.5+g/50),y=a.width+F+p,{cssStyles:A}=e;let C;if("handDrawn"===e.look){const t=l.A.svg(o),n=Qt(0,0,y,g,F,m),r=Jt(0,0,y,g,F,m),u=t.path(n,(0,i.Fr)(e,{})),a=t.path(r,(0,i.Fr)(e,{fill:"none"}));C=o.insert((()=>a),":first-child"),C=o.insert((()=>u),":first-child"),C.attr("class","basic label-container"),A&&C.attr("style",A)}else{const t=Zt(0,0,y,g,F,m);C=o.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,u.KL)(A)).attr("style",r),C.attr("class","basic label-container"),A&&C.selectAll("path").attr("style",A),r&&C.selectAll("path").attr("style",r)}return C.attr("label-offset-x",F),C.attr("transform",`translate(${-y/2}, ${g/2} )`),s.attr("transform",`translate(${-a.width/2-F-(a.x-(a.left??0))}, ${-a.height/2-(a.y-(a.top??0))})`),d(e,C),e.intersect=function(t){const n=N.rect(e,t),r=n.y-(e.y??0);if(0!=m&&(Math.abs(r)<(e.height??0)/2||Math.abs(r)==(e.height??0)/2&&Math.abs(n.x-(e.x??0))>(e.width??0)/2-F)){let i=F*F*(1-r*r/(m*m));0!=i&&(i=Math.sqrt(Math.abs(i))),i=F-i,t.x-(e.x??0)>0&&(i=-i),n.x+=i}return n},o}async function ee(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u}=await c(t,e,f(e)),a=u.width+e.padding,s=u.height+e.padding,h=[{x:-3*s/6,y:0},{x:a+3*s/6,y:0},{x:a,y:-s},{x:0,y:-s}];let g;const{cssStyles:m}=e;if("handDrawn"===e.look){const t=l.A.svg(o),n=(0,i.Fr)(e,{}),r=p(h),u=t.path(r,n);g=o.insert((()=>u),":first-child").attr("transform",`translate(${-a/2}, ${s/2})`),m&&g.attr("style",m)}else g=W(o,a,s,h);return r&&g.attr("style",r),e.width=a,e.height=s,d(e,g),e.intersect=function(t){return N.polygon(e,h,t)},o}async function ne(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u}=await c(t,e,f(e)),a=Math.max(60,u.width+2*(e.padding??0),e?.width??0),s=Math.max(20,u.height+2*(e.padding??0),e?.height??0),{cssStyles:h}=e,g=l.A.svg(o),m=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");const F=[{x:-a/2*.8,y:-s/2},{x:a/2*.8,y:-s/2},{x:a/2,y:-s/2*.6},{x:a/2,y:s/2},{x:-a/2,y:s/2},{x:-a/2,y:-s/2*.6}],y=p(F),A=g.path(y,m),C=o.insert((()=>A),":first-child");return C.attr("class","basic label-container"),h&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",h),r&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",r),d(e,C),e.intersect=function(t){return N.polygon(e,F,t)},o}async function re(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u,label:s}=await c(t,e,f(e)),h=(0,a._3)((0,a.D7)().flowchart?.htmlLabels),g=u.width+(e.padding??0),m=g+u.height,F=g+u.height,y=[{x:0,y:0},{x:F,y:0},{x:F/2,y:-m}],{cssStyles:A}=e,C=l.A.svg(o),x=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=p(y),D=C.path(b,x),E=o.insert((()=>D),":first-child").attr("transform",`translate(${-m/2}, ${m/2})`);return A&&"handDrawn"!==e.look&&E.selectChildren("path").attr("style",A),r&&"handDrawn"!==e.look&&E.selectChildren("path").attr("style",r),e.width=g,e.height=m,d(e,E),s.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))}, ${m/2-(u.height+(e.padding??0)/(h?2:1)-(u.y-(u.top??0)))})`),e.intersect=function(t){return a.Rm.info("Triangle intersect",e,y,t),N.polygon(e,y,t)},o}async function ie(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u,label:a}=await c(t,e,f(e)),s=Math.max(u.width+2*(e.padding??0),e?.width??0),h=Math.max(u.height+2*(e.padding??0),e?.height??0),m=h/8,F=h+m,{cssStyles:y}=e,A=70-s,C=A>0?A/2:0,x=l.A.svg(o),b=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const D=[{x:-s/2-C,y:F/2},...g(-s/2-C,F/2,s/2+C,F/2,m,.8),{x:s/2+C,y:-F/2},{x:-s/2-C,y:-F/2}],E=p(D),k=x.path(E,b),B=o.insert((()=>k),":first-child");return B.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",y),r&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",r),B.attr("transform",`translate(0,${-m/2})`),a.attr("transform",`translate(${-s/2+(e.padding??0)-(u.x-(u.left??0))},${-h/2+(e.padding??0)-m-(u.y-(u.top??0))})`),d(e,B),e.intersect=function(t){return N.polygon(e,D,t)},o}async function oe(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u}=await c(t,e,f(e)),a=Math.max(u.width+2*(e.padding??0),e?.width??0),s=Math.max(u.height+2*(e.padding??0),e?.height??0),h=a/s;let m=a,F=s;m>F*h?F=m/h:m=F*h,m=Math.max(m,100),F=Math.max(F,50);const y=Math.min(.2*F,F/4),A=F+2*y,{cssStyles:C}=e,x=l.A.svg(o),b=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const D=[{x:-m/2,y:A/2},...g(-m/2,A/2,m/2,A/2,y,1),{x:m/2,y:-A/2},...g(m/2,-A/2,-m/2,-A/2,y,-1)],E=p(D),k=x.path(E,b),B=o.insert((()=>k),":first-child");return B.attr("class","basic label-container"),C&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",C),r&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",r),d(e,B),e.intersect=function(t){return N.polygon(e,D,t)},o}async function ue(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:u,label:a}=await c(t,e,f(e)),s=Math.max(u.width+2*(e.padding??0),e?.width??0),h=Math.max(u.height+2*(e.padding??0),e?.height??0),p=-s/2,g=-h/2,{cssStyles:m}=e,F=l.A.svg(o),y=(0,i.Fr)(e,{}),A=[{x:p-5,y:g-5},{x:p-5,y:g+h},{x:p+s,y:g+h},{x:p+s,y:g-5}],C=`M${p-5},${g-5} L${p+s},${g-5} L${p+s},${g+h} L${p-5},${g+h} L${p-5},${g-5}\n M${p-5},${g} L${p+s},${g}\n M${p},${g-5} L${p},${g+h}`;"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");const x=F.path(C,y),b=o.insert((()=>x),":first-child");return b.attr("transform","translate(2.5, 2.5)"),b.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",r),a.attr("transform",`translate(${-u.width/2+2.5-(u.x-(u.left??0))}, ${-u.height/2+2.5-(u.y-(u.top??0))})`),d(e,b),e.intersect=function(t){return N.polygon(e,A,t)},o}async function ae(t,e){const n=e;if(n.alias&&(e.label=n.alias),"handDrawn"===e.look){const{themeVariables:n}=(0,a.zj)(),{background:r}=n,i={...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${r}`]};await ae(t,i)}const r=(0,a.zj)();e.useHtmlLabels=r.htmlLabels;let o=r.er?.diagramPadding??10,c=r.er?.entityPadding??6;const{cssStyles:h}=e,{labelStyles:p,nodeStyles:g}=(0,i.GX)(e);if(0===n.attributes.length&&e.label){const n={rx:0,ry:0,labelPaddingX:o,labelPaddingY:1.5*o,classes:""};(0,u.Un)(e.label,r)+2*n.labelPaddingX<r.er.minEntityWidth&&(e.width=r.er.minEntityWidth);const i=await bt(t,e,n);if(!(0,a._3)(r.htmlLabels)){const t=i.select("text"),e=t.node()?.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return i}r.htmlLabels||(o*=1.25,c*=1.25);let m=f(e);m||(m="node default");const F=t.insert("g").attr("class",m).attr("id",e.domId||e.id),y=await se(F,e.label??"",r,0,0,["name"],p);y.height+=c;let A=0;const C=[],x=[];let b=0,D=0,E=0,k=0,B=!0,w=!0;for(const t of n.attributes){const e=await se(F,t.type,r,0,A,["attribute-type"],p);b=Math.max(b,e.width+o);const n=await se(F,t.name,r,0,A,["attribute-name"],p);D=Math.max(D,n.width+o);const i=await se(F,t.keys.join(),r,0,A,["attribute-keys"],p);E=Math.max(E,i.width+o);const u=await se(F,t.comment,r,0,A,["attribute-comment"],p);k=Math.max(k,u.width+o);const a=Math.max(e.height,n.height,i.height,u.height)+c;x.push({yOffset:A,rowHeight:a}),A+=a}let v=4;E<=o&&(B=!1,E=0,v--),k<=o&&(w=!1,k=0,v--);const _=F.node().getBBox();if(y.width+2*o-(b+D+E+k)>0){const t=y.width+2*o-(b+D+E+k);b+=t/v,D+=t/v,E>0&&(E+=t/v),k>0&&(k+=t/v)}const S=b+D+E+k,T=l.A.svg(F),M=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let L=0;x.length>0&&(L=x.reduce(((t,e)=>t+(e?.rowHeight??0)),0));const $=Math.max(_.width+2*o,e?.width||0,S),O=Math.max((L??0)+y.height,e?.height||0),I=-$/2,R=-O/2;F.selectAll("g:not(:first-child)").each(((t,e,n)=>{const r=(0,s.Ltv)(n[e]),i=r.attr("transform");let u=0,a=0;if(i){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);t&&(u=parseFloat(t[1]),a=parseFloat(t[2]),r.attr("class").includes("attribute-name")?u+=b:r.attr("class").includes("attribute-keys")?u+=b+D:r.attr("class").includes("attribute-comment")&&(u+=b+D+E))}r.attr("transform",`translate(${I+o/2+u}, ${a+R+y.height+c/2})`)})),F.select(".name").attr("transform","translate("+-y.width/2+", "+(R+c/2)+")");const P=T.rectangle(I,R,$,O,M),z=F.insert((()=>P),":first-child").attr("style",h.join("")),{themeVariables:j}=(0,a.zj)(),{rowEven:q,rowOdd:K,nodeBorder:W}=j;C.push(0);for(const[t,e]of x.entries()){const n=(t+1)%2==0&&0!==e.yOffset,r=T.rectangle(I,y.height+R+e?.yOffset,$,e?.rowHeight,{...M,fill:n?q:K,stroke:W});F.insert((()=>r),"g.label").attr("style",h.join("")).attr("class","row-rect-"+(n?"even":"odd"))}let H=T.line(I,y.height+R,$+I,y.height+R,M);F.insert((()=>H)).attr("class","divider"),H=T.line(b+I,y.height+R,b+I,O+R,M),F.insert((()=>H)).attr("class","divider"),B&&(H=T.line(b+D+I,y.height+R,b+D+I,O+R,M),F.insert((()=>H)).attr("class","divider")),w&&(H=T.line(b+D+E+I,y.height+R,b+D+E+I,O+R,M),F.insert((()=>H)).attr("class","divider"));for(const t of C)H=T.line(I,y.height+R+t,$+I,y.height+R+t,M),F.insert((()=>H)).attr("class","divider");if(d(e,z),g&&"handDrawn"!==e.look){const t=g.split(";"),e=t?.filter((t=>t.includes("stroke")))?.map((t=>`${t}`)).join("; ");F.selectAll("path").attr("style",e??""),F.selectAll(".row-rect-even path").attr("style",g)}return e.intersect=function(t){return N.rect(e,t)},F}async function se(t,e,n,r=0,i=0,l=[],c=""){const h=t.insert("g").attr("class",`label ${l.join(" ")}`).attr("transform",`translate(${r}, ${i})`).attr("style",c);e!==(0,a.QO)(e)&&(e=(e=(0,a.QO)(e)).replaceAll("<","&lt;").replaceAll(">","&gt;"));const d=h.node().appendChild(await(0,o.GZ)(h,e,{width:(0,u.Un)(e,n)+100,style:c,useHtmlLabels:n.htmlLabels},n));if(e.includes("&lt;")||e.includes("&gt;")){let t=d.children[0];for(t.textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");t.childNodes[0];)t=t.childNodes[0],t.textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let f=d.getBBox();if((0,a._3)(n.htmlLabels)){const t=d.children[0];t.style.textAlign="start";const e=(0,s.Ltv)(d);f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}return f}async function le(t,e,n,r,i=n.class.padding??12){const o=r?0:3,u=t.insert("g").attr("class",f(e)).attr("id",e.domId||e.id);let a=null,s=null,l=null,c=null,h=0,d=0,p=0;if(a=u.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const t=e.annotations[0];await ce(a,{text:`«${t}»`},0),h=a.node().getBBox().height}s=u.insert("g").attr("class","label-group text"),await ce(s,e,0,["font-weight: bolder"]);const g=s.node().getBBox();d=g.height,l=u.insert("g").attr("class","members-group text");let m=0;for(const t of e.members)m+=await ce(l,t,m,[t.parseClassifier()])+o;p=l.node().getBBox().height,p<=0&&(p=i/2),c=u.insert("g").attr("class","methods-group text");let F=0;for(const t of e.methods)F+=await ce(c,t,F,[t.parseClassifier()])+o;let y=u.node().getBBox();if(null!==a){const t=a.node().getBBox();a.attr("transform",`translate(${-t.width/2})`)}return s.attr("transform",`translate(${-g.width/2}, ${h})`),y=u.node().getBBox(),l.attr("transform",`translate(0, ${h+d+2*i})`),y=u.node().getBBox(),c.attr("transform",`translate(0, ${h+d+(p?p+4*i:2*i)})`),y=u.node().getBBox(),{shapeSvg:u,bbox:y}}async function ce(t,e,n,r=[]){const i=t.insert("g").attr("class","label").attr("style",r.join("; ")),l=(0,a.zj)();let c="useHtmlLabels"in e?e.useHtmlLabels:(0,a._3)(l.htmlLabels)??!0,h="";h="text"in e?e.text:e.label,!c&&h.startsWith("\\")&&(h=h.substring(1)),(0,a.Wi)(h)&&(c=!0);const d=await(0,o.GZ)(i,(0,a.oB)((0,u.Sm)(h)),{width:(0,u.Un)(h,l)+50,classes:"markdown-node-label",useHtmlLabels:c},l);let f,p=1;if(c){const t=d.children[0],e=(0,s.Ltv)(d);p=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(p+=t.innerHTML.split("<mrow>").length-1);const n=t.getElementsByTagName("img");if(n){const t=""===h.replace(/<img[^>]*>/g,"").trim();await Promise.all([...n].map((e=>new Promise((n=>{function r(){if(e.style.display="flex",e.style.flexDirection="column",t){const t=l.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,n=5,r=parseInt(t,10)*n+"px";e.style.minWidth=r,e.style.maxWidth=r}else e.style.width="100%";n(e)}(0,a.K2)(r,"setupImage"),setTimeout((()=>{e.complete&&r()})),e.addEventListener("error",r),e.addEventListener("load",r)})))))}f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}else{r.includes("font-weight: bolder")&&(0,s.Ltv)(d).selectAll("tspan").attr("font-weight",""),p=d.children.length;const t=d.children[0];(""===d.textContent||d.textContent.includes("&gt"))&&(t.textContent=h[0]+h.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim()," "===h[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),f=d.getBBox()}return i.attr("transform","translate(0,"+(-f.height/(2*p)+n)+")"),f.height}async function he(t,e){const n=(0,a.D7)(),r=n.class.padding??12,o=r,u=e.useHtmlLabels??(0,a._3)(n.htmlLabels)??!0,c=e;c.annotations=c.annotations??[],c.members=c.members??[],c.methods=c.methods??[];const{shapeSvg:h,bbox:f}=await le(t,e,n,u,o),{labelStyles:p,nodeStyles:g}=(0,i.GX)(e);e.labelStyle=p,e.cssStyles=c.styles||"";const m=c.styles?.join(";")||g||"";e.cssStyles||(e.cssStyles=m.replaceAll("!important","").split(";"));const F=0===c.members.length&&0===c.methods.length&&!n.class?.hideEmptyMembersBox,y=l.A.svg(h),A=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");const C=f.width;let x=f.height;0===c.members.length&&0===c.methods.length?x+=o:c.members.length>0&&0===c.methods.length&&(x+=2*o);const b=-C/2,D=-x/2,E=y.rectangle(b-r,D-r-(F?r:0===c.members.length&&0===c.methods.length?-r/2:0),C+2*r,x+2*r+(F?2*r:0===c.members.length&&0===c.methods.length?-r:0),A),k=h.insert((()=>E),":first-child");k.attr("class","basic label-container");const B=k.node().getBBox();h.selectAll(".text").each(((t,e,n)=>{const i=(0,s.Ltv)(n[e]),o=i.attr("transform");let a=0;if(o){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);t&&(a=parseFloat(t[2]))}let l=a+D+r-(F?r:0===c.members.length&&0===c.methods.length?-r/2:0);u||(l-=4);let d=b;(i.attr("class").includes("label-group")||i.attr("class").includes("annotation-group"))&&(d=-i.node()?.getBBox().width/2||0,h.selectAll("text").each((function(t,e,n){"middle"===window.getComputedStyle(n[e]).textAnchor&&(d=0)}))),i.attr("transform",`translate(${d}, ${l})`)}));const w=h.select(".annotation-group").node().getBBox().height-(F?r/2:0)||0,v=h.select(".label-group").node().getBBox().height-(F?r/2:0)||0,_=h.select(".members-group").node().getBBox().height-(F?r/2:0)||0;if(c.members.length>0||c.methods.length>0||F){const t=y.line(B.x,w+v+D+r,B.x+B.width,w+v+D+r,A);h.insert((()=>t)).attr("class","divider").attr("style",m)}if(F||c.members.length>0||c.methods.length>0){const t=y.line(B.x,w+v+_+D+2*o+r,B.x+B.width,w+v+_+D+r+2*o,A);h.insert((()=>t)).attr("class","divider").attr("style",m)}if("handDrawn"!==c.look&&h.selectAll("path").attr("style",m),k.select(":nth-child(2)").attr("style",m),h.selectAll(".divider").select("path").attr("style",m),e.labelStyle?h.selectAll("span").attr("style",e.labelStyle):h.selectAll("span").attr("style",m),!u){const t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(m);if(e){const t=e[0].replace("color","fill");h.selectAll("tspan").attr("style",t)}else if(p){const e=t.exec(p);if(e){const t=e[0].replace("color","fill");h.selectAll("tspan").attr("style",t)}}}return d(e,k),e.intersect=function(t){return N.rect(e,t)},h}async function de(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const o=e,u=e,a="verifyMethod"in e,c=f(e),h=t.insert("g").attr("class",c).attr("id",e.domId??e.id);let p;p=a?await fe(h,`&lt;&lt;${o.type}&gt;&gt;`,0,e.labelStyle):await fe(h,"&lt;&lt;Element&gt;&gt;",0,e.labelStyle);let g=p;const m=await fe(h,o.name,g,e.labelStyle+"; font-weight: bold;");g+=m+20,a?(g+=await fe(h,o.requirementId?`id: ${o.requirementId}`:"",g,e.labelStyle),g+=await fe(h,o.text?`Text: ${o.text}`:"",g,e.labelStyle),g+=await fe(h,o.risk?`Risk: ${o.risk}`:"",g,e.labelStyle),await fe(h,o.verifyMethod?`Verification: ${o.verifyMethod}`:"",g,e.labelStyle)):(g+=await fe(h,u.type?`Type: ${u.type}`:"",g,e.labelStyle),await fe(h,u.docRef?`Doc Ref: ${u.docRef}`:"",g,e.labelStyle));const F=(h.node()?.getBBox().width??200)+20,y=(h.node()?.getBBox().height??200)+20,A=-F/2,C=-y/2,x=l.A.svg(h),b=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const D=x.rectangle(A,C,F,y,b),E=h.insert((()=>D),":first-child");if(E.attr("class","basic label-container").attr("style",r),h.selectAll(".label").each(((t,e,n)=>{const r=(0,s.Ltv)(n[e]),i=r.attr("transform");let o=0,u=0;if(i){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);t&&(o=parseFloat(t[1]),u=parseFloat(t[2]))}const a=u-y/2;let l=A+10;0!==e&&1!==e||(l=o),r.attr("transform",`translate(${l}, ${a+20})`)})),g>p+m+20){const t=x.line(A,C+p+m+20,A+F,C+p+m+20,b);h.insert((()=>t)).attr("style",r)}return d(e,E),e.intersect=function(t){return N.rect(e,t)},h}async function fe(t,e,n,r=""){if(""===e)return 0;const i=t.insert("g").attr("class","label").attr("style",r),l=(0,a.D7)(),c=l.htmlLabels??!0,h=await(0,o.GZ)(i,(0,a.oB)((0,u.Sm)(e)),{width:(0,u.Un)(e,l)+50,classes:"markdown-node-label",useHtmlLabels:c,style:r},l);let d;if(c){const t=h.children[0],e=(0,s.Ltv)(h);d=t.getBoundingClientRect(),e.attr("width",d.width),e.attr("height",d.height)}else{const t=h.children[0];for(const e of t.children)e.textContent=e.textContent.replaceAll("&gt;",">").replaceAll("&lt;","<"),r&&e.setAttribute("style",r);d=h.getBBox(),d.height+=6}return i.attr("transform",`translate(${-d.width/2},${-d.height/2+n})`),d.height}(0,a.K2)(te,"tiltedCylinder"),(0,a.K2)(ee,"trapezoid"),(0,a.K2)(ne,"trapezoidalPentagon"),(0,a.K2)(re,"triangle"),(0,a.K2)(ie,"waveEdgedRectangle"),(0,a.K2)(oe,"waveRectangle"),(0,a.K2)(ue,"windowPane"),(0,a.K2)(ae,"erBox"),(0,a.K2)(se,"addText"),(0,a.K2)(le,"textHelper"),(0,a.K2)(ce,"addText"),(0,a.K2)(he,"classBox"),(0,a.K2)(de,"requirementBox"),(0,a.K2)(fe,"addText");var pe=(0,a.K2)((t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}}),"colorFromPriority");async function ge(t,e,{config:n}){const{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r||"";const u=e.width;e.width=(e.width??200)-10;const{shapeSvg:a,bbox:s,label:p}=await c(t,e,f(e)),g=e.padding||10;let m,F="";"ticket"in e&&e.ticket&&n?.kanban?.ticketBaseUrl&&(F=n?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),m=a.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",F).attr("target","_blank"));const y={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let A,C;({label:A,bbox:C}=m?await h(m,"ticket"in e&&e.ticket||"",y):await h(a,"ticket"in e&&e.ticket||"",y));const{label:b,bbox:D}=await h(a,"assigned"in e&&e.assigned||"",y);e.width=u;const E=e?.width||0,k=Math.max(C.height,D.height)/2,B=Math.max(s.height+20,e?.height||0)+k,w=-E/2,v=-B/2;let _;p.attr("transform","translate("+(g-E/2)+", "+(-k-s.height/2)+")"),A.attr("transform","translate("+(g-E/2)+", "+(-k+s.height/2)+")"),b.attr("transform","translate("+(g+E/2-D.width-20)+", "+(-k+s.height/2)+")");const{rx:S,ry:T}=e,{cssStyles:M}=e;if("handDrawn"===e.look){const t=l.A.svg(a),n=(0,i.Fr)(e,{}),r=S||T?t.path(x(w,v,E,B,S||0),n):t.rectangle(w,v,E,B,n);_=a.insert((()=>r),":first-child"),_.attr("class","basic label-container").attr("style",M||null)}else{_=a.insert("rect",":first-child"),_.attr("class","basic label-container __APA__").attr("style",o).attr("rx",S??5).attr("ry",T??5).attr("x",w).attr("y",v).attr("width",E).attr("height",B);const t="priority"in e&&e.priority;if(t){const e=a.append("line"),n=w+2,r=v+Math.floor((S??0)/2),i=v+B-Math.floor((S??0)/2);e.attr("x1",n).attr("y1",r).attr("x2",n).attr("y2",i).attr("stroke-width","4").attr("stroke",pe(t))}}return d(e,_),e.height=B,e.intersect=function(t){return N.rect(e,t)},a}(0,a.K2)(ge,"kanbanItem");var me=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:qt},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:zt},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Kt},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Yt},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:ut},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Y},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:It},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:pt},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:kt},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Et},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:ee},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:xt},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:st},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Xt},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:H},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Nt},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Ut},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Ht},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:ht},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:gt},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Z},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:J},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:et},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Bt},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:ie},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:dt},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:te},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:St},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:nt},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:at},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:re},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:ue},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:lt},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:ne},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:ct},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:jt},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Lt},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Mt},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:K},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:V},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Vt},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Gt},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:oe},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Rt},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Tt}],Fe=(0,a.K2)((()=>{const t={state:Wt,choice:U,note:$t,rectWithTitle:Pt,labelRect:Dt,iconSquare:At,iconCircle:Ft,icon:mt,iconRounded:yt,imageSquare:Ct,anchor:j,kanbanItem:ge,classBox:he,erBox:ae,requirementBox:de},e=[...Object.entries(t),...me.flatMap((t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map((e=>[e,t.handler]))))];return Object.fromEntries(e)}),"generateShapeMap")();function ye(t){return t in Fe}(0,a.K2)(ye,"isValidShape");var Ae=new Map;async function Ce(t,e,n){let r,i;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const o=e.shape?Fe[e.shape]:void 0;if(!o)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let u;"sandbox"===n.config.securityLevel?u="_top":e.linkTarget&&(u=e.linkTarget||"_blank"),r=t.insert("svg:a").attr("xlink:href",e.link).attr("target",u??null),i=await o(r,e,n)}else i=await o(t,e,n),r=i;return e.tooltip&&i.attr("title",e.tooltip),Ae.set(e.id,r),e.haveCallback&&r.attr("class",r.attr("class")+" clickable"),r}(0,a.K2)(Ce,"insertNode");var xe=(0,a.K2)(((t,e)=>{Ae.set(e.id,t)}),"setNodeElem"),be=(0,a.K2)((()=>{Ae.clear()}),"clear"),De=(0,a.K2)((t=>{const e=Ae.get(t.id);a.Rm.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n}),"positionNode")},4878:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=(0,n(7244).A)(Object.getPrototypeOf,Object)},5095:(t,e,n)=>{"use strict";n.d(e,{n:()=>r});var r={name:"mermaid",version:"11.9.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.0.0",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.0",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}},5162:(t,e,n)=>{"use strict";n.d(e,{D:()=>o});var r=n(8084),i=n(3213),o=(0,r.K2)((t=>{const{securityLevel:e}=(0,r.D7)();let n=(0,i.Ltv)("body");if("sandbox"===e){const e=(0,i.Ltv)(`#i${t}`),r=e.node()?.contentDocument??document;n=(0,i.Ltv)(r.body)}return n.select(`#${t}`)}),"selectSvgElement")},5246:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(8724);const i=function(t,e){var n=e?(0,r.A)(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},5301:(t,e,n)=>{"use strict";n.d(e,{A:()=>Xt});var r={};n.r(r),n.d(r,{attentionMarkers:()=>It,contentInitial:()=>St,disable:()=>Rt,document:()=>_t,flow:()=>Mt,flowInitial:()=>Tt,insideSpan:()=>Ot,string:()=>Lt,text:()=>$t});const i={};function o(t,e,n){if(function(t){return Boolean(t&&"object"==typeof t)}(t)){if("value"in t)return"html"!==t.type||n?t.value:"";if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return u(t.children,e,n)}return Array.isArray(t)?u(t,e,n):""}function u(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=o(t[i],e,n);return r.join("")}function a(t,e,n,r){const i=t.length;let o,u=0;if(e=e<0?-e>i?0:i+e:e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);u<r.length;)o=r.slice(u,u+1e4),o.unshift(e,0),t.splice(...o),u+=1e4,e+=1e4}function s(t,e){return t.length>0?(a(t,t.length,0,e),t):e}function l(t){const e={};let n,r,i,o,u,s,l,h=-1;for(;++h<t.length;){for(;h in e;)h=e[h];if(n=t[h],h&&"chunkFlow"===n[1].type&&"listItemPrefix"===t[h-1][1].type&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(e,c(t,h)),h=e[h],l=!0);else if(n[1]._container){for(i=h,r=void 0;i--&&(o=t[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(t[r][1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},t[r][1].start),u=t.slice(r,h),u.unshift(n),a(t,r,h-r+1,u))}}return!l}function c(t,e){const n=t[e][1],r=t[e][2];let i=e-1;const o=[],u=n._tokenizer||r.parser[n.contentType](n.start),s=u.events,l=[],c={};let h,d,f=-1,p=n,g=0,m=0;const F=[m];for(;p;){for(;t[++i][1]!==p;);o.push(i),p._tokenizer||(h=r.sliceStream(p),p.next||h.push(null),d&&u.defineSkip(p.start),p._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(h),p._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)"exit"===s[f][0]&&"enter"===s[f-1][0]&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(m=f+1,F.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(u.events=[],p?(p._tokenizer=void 0,p.previous=void 0):F.pop(),f=F.length;f--;){const e=s.slice(F[f],F[f+1]),n=o.pop();l.unshift([n,n+e.length-1]),a(t,n,2,e)}for(f=-1;++f<l.length;)c[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return c}const h={}.hasOwnProperty;function d(t,e){let n;for(n in e){const r=(h.call(t,n)?t[n]:void 0)||(t[n]={}),i=e[n];let o;if(i)for(o in i){h.call(r,o)||(r[o]=[]);const t=i[o];f(r[o],Array.isArray(t)?t:t?[t]:[])}}}function f(t,e){let n=-1;const r=[];for(;++n<e.length;)("after"===e[n].add?t:r).push(e[n]);a(t,0,0,r)}const p=B(/[A-Za-z]/),g=B(/[\dA-Za-z]/),m=B(/[#-'*+\--9=?A-Z^-~]/);function F(t){return null!==t&&(t<32||127===t)}const y=B(/\d/),A=B(/[\dA-Fa-f]/),C=B(/[!-/:-@[-`{-~]/);function x(t){return null!==t&&t<-2}function b(t){return null!==t&&(t<0||32===t)}function D(t){return-2===t||-1===t||32===t}const E=B(/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65\u{10100}-\u{10102}\u{1039F}\u{103D0}\u{1056F}\u{10857}\u{1091F}\u{1093F}\u{10A50}-\u{10A58}\u{10A7F}\u{10AF0}-\u{10AF6}\u{10B39}-\u{10B3F}\u{10B99}-\u{10B9C}\u{10D6E}\u{10EAD}\u{10F55}-\u{10F59}\u{10F86}-\u{10F89}\u{11047}-\u{1104D}\u{110BB}\u{110BC}\u{110BE}-\u{110C1}\u{11140}-\u{11143}\u{11174}\u{11175}\u{111C5}-\u{111C8}\u{111CD}\u{111DB}\u{111DD}-\u{111DF}\u{11238}-\u{1123D}\u{112A9}\u{113D4}\u{113D5}\u{113D7}\u{113D8}\u{1144B}-\u{1144F}\u{1145A}\u{1145B}\u{1145D}\u{114C6}\u{115C1}-\u{115D7}\u{11641}-\u{11643}\u{11660}-\u{1166C}\u{116B9}\u{1173C}-\u{1173E}\u{1183B}\u{11944}-\u{11946}\u{119E2}\u{11A3F}-\u{11A46}\u{11A9A}-\u{11A9C}\u{11A9E}-\u{11AA2}\u{11B00}-\u{11B09}\u{11BE1}\u{11C41}-\u{11C45}\u{11C70}\u{11C71}\u{11EF7}\u{11EF8}\u{11F43}-\u{11F4F}\u{11FFF}\u{12470}-\u{12474}\u{12FF1}\u{12FF2}\u{16A6E}\u{16A6F}\u{16AF5}\u{16B37}-\u{16B3B}\u{16B44}\u{16D6D}-\u{16D6F}\u{16E97}-\u{16E9A}\u{16FE2}\u{1BC9F}\u{1DA87}-\u{1DA8B}\u{1E5FF}\u{1E95E}\u{1E95F}]|[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD\u{10137}-\u{1013F}\u{10179}-\u{10189}\u{1018C}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FC}\u{10877}\u{10878}\u{10AC8}\u{10D8E}\u{10D8F}\u{1173F}\u{11FD5}-\u{11FF1}\u{16B3C}-\u{16B3F}\u{16B45}\u{1BC9C}\u{1CC00}-\u{1CCEF}\u{1CD00}-\u{1CEB3}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D164}\u{1D16A}-\u{1D16C}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1EA}\u{1D200}-\u{1D241}\u{1D245}\u{1D300}-\u{1D356}\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}\u{1DA86}\u{1E14F}\u{1E2FF}\u{1ECAC}\u{1ECB0}\u{1ED2E}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F10D}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBEF}]/u),k=B(/\s/);function B(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}function w(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return D(r)?(t.enter(n),u(r)):e(r)};function u(r){return D(r)&&o++<i?(t.consume(r),u):(t.exit(n),e(r))}}const v={tokenize:function(t){const e=t.attempt(this.parser.constructs.contentInitial,(function(n){if(null!==n)return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),w(t,e,"linePrefix");t.consume(n)}),(function(e){return t.enter("paragraph"),r(e)}));let n;return e;function r(e){const r=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(e)}function i(e){return null===e?(t.exit("chunkText"),t.exit("paragraph"),void t.consume(e)):x(e)?(t.consume(e),t.exit("chunkText"),r):(t.consume(e),i)}}},_={tokenize:function(t){const e=this,n=[];let r,i,o,u=0;return s;function s(r){if(u<n.length){const i=n[u];return e.containerState=i[1],t.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(t){if(u++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,r&&A();const n=e.events.length;let i,o=n;for(;o--;)if("exit"===e.events[o][0]&&"chunkFlow"===e.events[o][1].type){i=e.events[o][1].end;break}y(u);let s=n;for(;s<e.events.length;)e.events[s][1].end=Object.assign({},i),s++;return a(e.events,o+1,0,e.events.slice(n)),e.events.length=s,c(t)}return s(t)}function c(i){if(u===n.length){if(!r)return f(i);if(r.currentConstruct&&r.currentConstruct.concrete)return g(i);e.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(S,h,d)(i)}function h(t){return r&&A(),y(u),f(t)}function d(t){return e.parser.lazy[e.now().line]=u!==n.length,o=e.now().offset,g(t)}function f(n){return e.containerState={},t.attempt(S,p,g)(n)}function p(t){return u++,n.push([e.currentConstruct,e.containerState]),f(t)}function g(n){return null===n?(r&&A(),y(0),void t.consume(n)):(r=r||e.parser.flow(e.now()),t.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),m(n))}function m(n){return null===n?(F(t.exit("chunkFlow"),!0),y(0),void t.consume(n)):x(n)?(t.consume(n),F(t.exit("chunkFlow")),u=0,e.interrupt=void 0,s):(t.consume(n),m)}function F(t,n){const s=e.sliceStream(t);if(n&&s.push(null),t.previous=i,i&&(i.next=t),i=t,r.defineSkip(t.start),r.write(s),e.parser.lazy[t.start.line]){let t=r.events.length;for(;t--;)if(r.events[t][1].start.offset<o&&(!r.events[t][1].end||r.events[t][1].end.offset>o))return;const n=e.events.length;let i,s,l=n;for(;l--;)if("exit"===e.events[l][0]&&"chunkFlow"===e.events[l][1].type){if(i){s=e.events[l][1].end;break}i=!0}for(y(u),t=n;t<e.events.length;)e.events[t][1].end=Object.assign({},s),t++;a(e.events,l+1,0,e.events.slice(n)),e.events.length=t}}function y(r){let i=n.length;for(;i-- >r;){const r=n[i];e.containerState=r[1],r[0].exit.call(e,t)}n.length=r}function A(){r.write([null]),i=void 0,r=void 0,e.containerState._closeFlow=void 0}}},S={tokenize:function(t,e,n){return w(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},T={tokenize:function(t,e,n){return function(e){return D(e)?w(t,r,"linePrefix")(e):r(e)};function r(t){return null===t||x(t)?e(t):n(t)}},partial:!0},M={tokenize:function(t,e){let n;return function(e){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),r(e)};function r(e){return null===e?i(e):x(e)?t.check(L,o,i)(e):(t.consume(e),r)}function i(n){return t.exit("chunkContent"),t.exit("content"),e(n)}function o(e){return t.consume(e),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(t){return l(t),t}},L={tokenize:function(t,e,n){const r=this;return function(e){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),w(t,i,"linePrefix")};function i(i){if(null===i||x(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?e(i):t.interrupt(r.parser.constructs.flow,n,e)(i)}},partial:!0},$={tokenize:function(t){const e=this,n=t.attempt(T,(function(r){if(null!==r)return t.enter("lineEndingBlank"),t.consume(r),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n;t.consume(r)}),t.attempt(this.parser.constructs.flowInitial,r,w(t,t.attempt(this.parser.constructs.flow,r,t.attempt(M,r)),"linePrefix")));return n;function r(r){if(null!==r)return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),e.currentConstruct=void 0,n;t.consume(r)}}},O={resolveAll:z()},I=P("string"),R=P("text");function P(t){return{tokenize:function(e){const n=this,r=this.parser.constructs[t],i=e.attempt(r,o,u);return o;function o(t){return s(t)?i(t):u(t)}function u(t){if(null!==t)return e.enter("data"),e.consume(t),a;e.consume(t)}function a(t){return s(t)?(e.exit("data"),i(t)):(e.consume(t),a)}function s(t){if(null===t)return!0;const e=r[t];let i=-1;if(e)for(;++i<e.length;){const t=e[i];if(!t.previous||t.previous.call(n,n.previous))return!0}return!1}},resolveAll:z("text"===t?N:void 0)}}function z(t){return function(e,n){let r,i=-1;for(;++i<=e.length;)void 0===r?e[i]&&"data"===e[i][1].type&&(r=i,i++):e[i]&&"data"===e[i][1].type||(i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),i=r+2),r=void 0);return t?t(e,n):e}}function N(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||"lineEnding"===t[n][1].type)&&"data"===t[n-1][1].type){const r=t[n-1][1],i=e.sliceStream(r);let o,u=i.length,a=-1,s=0;for(;u--;){const t=i[u];if("string"==typeof t){for(a=t.length;32===t.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===t)o=!0,s++;else if(-1!==t){u++;break}}if(s){const i={type:n===t.length||o||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+u,_bufferIndex:u?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(t.splice(n,0,["enter",i,e],["exit",i,e]),n+=2)}n++}return t}function j(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const o=t[i].resolveAll;o&&!r.includes(o)&&(e=o(e,n),r.push(o))}return e}function q(t,e,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let u=[],l=[],c=!0;const h={consume:function(t){x(t)?(r.line++,r.column=1,r.offset+=-3===t?2:1,b()):-1!==t&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=t,c=!0},enter:function(t,e){const n=e||{};return n.type=t,n.start=m(),d.events.push(["enter",n,d]),l.push(n),n},exit:function(t){const e=l.pop();return e.end=m(),d.events.push(["exit",e,d]),e},attempt:A((function(t,e){C(t,e.from)})),check:A(y),interrupt:A(y,{interrupt:!0})},d={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:g,sliceSerialize:function(t,e){return function(t,e){let n=-1;const r=[];let i;for(;++n<t.length;){const o=t[n];let u;if("string"==typeof o)u=o;else switch(o){case-5:u="\r";break;case-4:u="\n";break;case-3:u="\r\n";break;case-2:u=e?" ":"\t";break;case-1:if(!e&&i)continue;u=" ";break;default:u=String.fromCharCode(o)}i=-2===o,r.push(u)}return r.join("")}(g(t),e)},now:m,defineSkip:function(t){i[t.line]=t.column,b()},write:function(t){return u=s(u,t),function(){let t;for(;r._index<u.length;){const e=u[r._index];if("string"==typeof e)for(t=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)F(e.charCodeAt(r._bufferIndex));else F(e)}}(),null!==u[u.length-1]?[]:(C(e,0),d.events=j(o,d.events,d),d.events)}};let f,p=e.tokenize.call(d,h);return e.resolveAll&&o.push(e),d;function g(t){return function(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,o=e.end._bufferIndex;let u;if(n===i)u=[t[n].slice(r,o)];else{if(u=t.slice(n,i),r>-1){const t=u[0];"string"==typeof t?u[0]=t.slice(r):u.shift()}o>0&&u.push(t[i].slice(0,o))}return u}(u,t)}function m(){const{line:t,column:e,offset:n,_index:i,_bufferIndex:o}=r;return{line:t,column:e,offset:n,_index:i,_bufferIndex:o}}function F(t){c=void 0,f=t,p=p(t)}function y(t,e){e.restore()}function A(t,e){return function(n,i,o){let u,a,s,f;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):(p=n,function(t){const e=null!==t&&p[t],n=null!==t&&p.null;return g([...Array.isArray(e)?e:e?[e]:[],...Array.isArray(n)?n:n?[n]:[]])(t)});var p;function g(t){return u=t,a=0,0===t.length?o:F(t[a])}function F(t){return function(n){return f=function(){const t=m(),e=d.previous,n=d.currentConstruct,i=d.events.length,o=Array.from(l);return{restore:function(){r=t,d.previous=e,d.currentConstruct=n,d.events.length=i,l=o,b()},from:i}}(),s=t,t.partial||(d.currentConstruct=t),t.name&&d.parser.constructs.disable.null.includes(t.name)?A():t.tokenize.call(e?Object.assign(Object.create(d),e):d,h,y,A)(n)}}function y(e){return c=!0,t(s,f),i}function A(t){return c=!0,f.restore(),++a<u.length?F(u[a]):o}}}function C(t,e){t.resolveAll&&!o.includes(t)&&o.push(t),t.resolve&&a(d.events,e,d.events.length-e,t.resolve(d.events.slice(e),d)),t.resolveTo&&(d.events=t.resolveTo(d.events,d))}function b(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const K={name:"thematicBreak",tokenize:function(t,e,n){let r,i=0;return function(e){return t.enter("thematicBreak"),function(t){return r=t,o(t)}(e)};function o(o){return o===r?(t.enter("thematicBreakSequence"),u(o)):i>=3&&(null===o||x(o))?(t.exit("thematicBreak"),e(o)):n(o)}function u(e){return e===r?(t.consume(e),i++,u):(t.exit("thematicBreakSequence"),D(e)?w(t,o,"whitespace")(e):o(e))}}},W={name:"list",tokenize:function(t,e,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,u=0;return function(e){const i=r.containerState.type||(42===e||43===e||45===e?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||e===r.containerState.marker:y(e)){if(r.containerState.type||(r.containerState.type=i,t.enter(i,{_container:!0})),"listUnordered"===i)return t.enter("listItemPrefix"),42===e||45===e?t.check(K,n,s)(e):s(e);if(!r.interrupt||49===e)return t.enter("listItemPrefix"),t.enter("listItemValue"),a(e)}return n(e)};function a(e){return y(e)&&++u<10?(t.consume(e),a):(!r.interrupt||u<2)&&(r.containerState.marker?e===r.containerState.marker:41===e||46===e)?(t.exit("listItemValue"),s(e)):n(e)}function s(e){return t.enter("listItemMarker"),t.consume(e),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||e,t.check(T,r.interrupt?n:l,t.attempt(H,h,c))}function l(t){return r.containerState.initialBlankLine=!0,o++,h(t)}function c(e){return D(e)?(t.enter("listItemPrefixWhitespace"),t.consume(e),t.exit("listItemPrefixWhitespace"),h):n(e)}function h(n){return r.containerState.size=o+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(n)}},continuation:{tokenize:function(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(T,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,w(t,e,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!D(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(U,e,i)(n))}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,w(t,t.attempt(W,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(t){t.exit(this.containerState.type)}},H={tokenize:function(t,e,n){const r=this;return w(t,(function(t){const i=r.events[r.events.length-1];return!D(t)&&i&&"listItemPrefixWhitespace"===i[1].type?e(t):n(t)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},U={tokenize:function(t,e,n){const r=this;return w(t,(function(t){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?e(t):n(t)}),"listItemIndent",r.containerState.size+1)},partial:!0},Y={name:"blockQuote",tokenize:function(t,e,n){const r=this;return function(e){if(62===e){const n=r.containerState;return n.open||(t.enter("blockQuote",{_container:!0}),n.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(e),t.exit("blockQuoteMarker"),i}return n(e)};function i(n){return D(n)?(t.enter("blockQuotePrefixWhitespace"),t.consume(n),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(n))}},continuation:{tokenize:function(t,e,n){const r=this;return function(e){return D(e)?w(t,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):i(e)};function i(r){return t.attempt(Y,e,n)(r)}}},exit:function(t){t.exit("blockQuote")}};function G(t,e,n,r,i,o,u,a,s){const l=s||Number.POSITIVE_INFINITY;let c=0;return function(e){return 60===e?(t.enter(r),t.enter(i),t.enter(o),t.consume(e),t.exit(o),h):null===e||32===e||41===e||F(e)?n(e):(t.enter(r),t.enter(u),t.enter(a),t.enter("chunkString",{contentType:"string"}),p(e))};function h(n){return 62===n?(t.enter(o),t.consume(n),t.exit(o),t.exit(i),t.exit(r),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),d(n))}function d(e){return 62===e?(t.exit("chunkString"),t.exit(a),h(e)):null===e||60===e||x(e)?n(e):(t.consume(e),92===e?f:d)}function f(e){return 60===e||62===e||92===e?(t.consume(e),d):d(e)}function p(i){return c||null!==i&&41!==i&&!b(i)?c<l&&40===i?(t.consume(i),c++,p):41===i?(t.consume(i),c--,p):null===i||32===i||40===i||F(i)?n(i):(t.consume(i),92===i?g:p):(t.exit("chunkString"),t.exit(a),t.exit(u),t.exit(r),e(i))}function g(e){return 40===e||41===e||92===e?(t.consume(e),p):p(e)}}function V(t,e,n,r,i,o){const u=this;let a,s=0;return function(e){return t.enter(r),t.enter(i),t.consume(e),t.exit(i),t.enter(o),l};function l(h){return s>999||null===h||91===h||93===h&&!a||94===h&&!s&&"_hiddenFootnoteSupport"in u.parser.constructs?n(h):93===h?(t.exit(o),t.enter(i),t.consume(h),t.exit(i),t.exit(r),e):x(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),l):(t.enter("chunkString",{contentType:"string"}),c(h))}function c(e){return null===e||91===e||93===e||x(e)||s++>999?(t.exit("chunkString"),l(e)):(t.consume(e),a||(a=!D(e)),92===e?h:c)}function h(e){return 91===e||92===e||93===e?(t.consume(e),s++,c):c(e)}}function X(t,e,n,r,i,o){let u;return function(e){return 34===e||39===e||40===e?(t.enter(r),t.enter(i),t.consume(e),t.exit(i),u=40===e?41:e,a):n(e)};function a(n){return n===u?(t.enter(i),t.consume(n),t.exit(i),t.exit(r),e):(t.enter(o),s(n))}function s(e){return e===u?(t.exit(o),a(u)):null===e?n(e):x(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),w(t,s,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),l(e))}function l(e){return e===u||null===e||x(e)?(t.exit("chunkString"),s(e)):(t.consume(e),92===e?c:l)}function c(e){return e===u||92===e?(t.consume(e),l):l(e)}}function Z(t,e){let n;return function r(i){return x(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):D(i)?w(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}function Q(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const J={name:"definition",tokenize:function(t,e,n){const r=this;let i;return function(e){return t.enter("definition"),function(e){return V.call(r,t,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(e)}(e)};function o(e){return i=Q(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===e?(t.enter("definitionMarker"),t.consume(e),t.exit("definitionMarker"),u):n(e)}function u(e){return b(e)?Z(t,a)(e):a(e)}function a(e){return G(t,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(e)}function s(e){return t.attempt(tt,l,l)(e)}function l(e){return D(e)?w(t,c,"whitespace")(e):c(e)}function c(o){return null===o||x(o)?(t.exit("definition"),r.parser.defined.push(i),e(o)):n(o)}}},tt={tokenize:function(t,e,n){return function(e){return b(e)?Z(t,r)(e):n(e)};function r(e){return X(t,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(e)}function i(e){return D(e)?w(t,o,"whitespace")(e):o(e)}function o(t){return null===t||x(t)?e(t):n(t)}},partial:!0},et={name:"codeIndented",tokenize:function(t,e,n){const r=this;return function(e){return t.enter("codeIndented"),w(t,i,"linePrefix",5)(e)};function i(t){const e=r.events[r.events.length-1];return e&&"linePrefix"===e[1].type&&e[2].sliceSerialize(e[1],!0).length>=4?o(t):n(t)}function o(e){return null===e?a(e):x(e)?t.attempt(nt,o,a)(e):(t.enter("codeFlowValue"),u(e))}function u(e){return null===e||x(e)?(t.exit("codeFlowValue"),o(e)):(t.consume(e),u)}function a(n){return t.exit("codeIndented"),e(n)}}},nt={tokenize:function(t,e,n){const r=this;return i;function i(e){return r.parser.lazy[r.now().line]?n(e):x(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),i):w(t,o,"linePrefix",5)(e)}function o(t){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?e(t):x(t)?i(t):n(t)}},partial:!0},rt={name:"headingAtx",tokenize:function(t,e,n){let r=0;return function(e){return t.enter("atxHeading"),function(e){return t.enter("atxHeadingSequence"),i(e)}(e)};function i(e){return 35===e&&r++<6?(t.consume(e),i):null===e||b(e)?(t.exit("atxHeadingSequence"),o(e)):n(e)}function o(n){return 35===n?(t.enter("atxHeadingSequence"),u(n)):null===n||x(n)?(t.exit("atxHeading"),e(n)):D(n)?w(t,o,"whitespace")(n):(t.enter("atxHeadingText"),a(n))}function u(e){return 35===e?(t.consume(e),u):(t.exit("atxHeadingSequence"),o(e))}function a(e){return null===e||35===e||b(e)?(t.exit("atxHeadingText"),o(e)):(t.consume(e),a)}},resolve:function(t,e){let n,r,i=t.length-2,o=3;return"whitespace"===t[o][1].type&&(o+=2),i-2>o&&"whitespace"===t[i][1].type&&(i-=2),"atxHeadingSequence"===t[i][1].type&&(o===i-1||i-4>o&&"whitespace"===t[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:t[o][1].start,end:t[i][1].end},r={type:"chunkText",start:t[o][1].start,end:t[i][1].end,contentType:"text"},a(t,o,i-o+1,[["enter",n,e],["enter",r,e],["exit",r,e],["exit",n,e]])),t}},it={name:"setextUnderline",tokenize:function(t,e,n){const r=this;let i;return function(e){let u,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){u="paragraph"===r.events[a][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!u?n(e):(t.enter("setextHeadingLine"),i=e,function(e){return t.enter("setextHeadingLineSequence"),o(e)}(e))};function o(e){return e===i?(t.consume(e),o):(t.exit("setextHeadingLineSequence"),D(e)?w(t,u,"lineSuffix")(e):u(e))}function u(r){return null===r||x(r)?(t.exit("setextHeadingLine"),e(r)):n(r)}},resolveTo:function(t,e){let n,r,i,o=t.length;for(;o--;)if("enter"===t[o][0]){if("content"===t[o][1].type){n=o;break}"paragraph"===t[o][1].type&&(r=o)}else"content"===t[o][1].type&&t.splice(o,1),i||"definition"!==t[o][1].type||(i=o);const u={type:"setextHeading",start:Object.assign({},t[r][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[r][1].type="setextHeadingText",i?(t.splice(r,0,["enter",u,e]),t.splice(i+1,0,["exit",t[n][1],e]),t[n][1].end=Object.assign({},t[i][1].end)):t[n][1]=u,t.push(["exit",u,e]),t}},ot=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ut=["pre","script","style","textarea"],at={name:"htmlFlow",tokenize:function(t,e,n){const r=this;let i,o,u,a,s;return function(e){return function(e){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(e),l}(e)};function l(a){return 33===a?(t.consume(a),c):47===a?(t.consume(a),o=!0,f):63===a?(t.consume(a),i=3,r.interrupt?e:z):p(a)?(t.consume(a),u=String.fromCharCode(a),m):n(a)}function c(o){return 45===o?(t.consume(o),i=2,h):91===o?(t.consume(o),i=5,a=0,d):p(o)?(t.consume(o),i=4,r.interrupt?e:z):n(o)}function h(i){return 45===i?(t.consume(i),r.interrupt?e:z):n(i)}function d(i){return i==="CDATA[".charCodeAt(a++)?(t.consume(i),6===a?r.interrupt?e:T:d):n(i)}function f(e){return p(e)?(t.consume(e),u=String.fromCharCode(e),m):n(e)}function m(a){if(null===a||47===a||62===a||b(a)){const s=47===a,l=u.toLowerCase();return s||o||!ut.includes(l)?ot.includes(u.toLowerCase())?(i=6,s?(t.consume(a),F):r.interrupt?e(a):T(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?y(a):A(a)):(i=1,r.interrupt?e(a):T(a))}return 45===a||g(a)?(t.consume(a),u+=String.fromCharCode(a),m):n(a)}function F(i){return 62===i?(t.consume(i),r.interrupt?e:T):n(i)}function y(e){return D(e)?(t.consume(e),y):_(e)}function A(e){return 47===e?(t.consume(e),_):58===e||95===e||p(e)?(t.consume(e),C):D(e)?(t.consume(e),A):_(e)}function C(e){return 45===e||46===e||58===e||95===e||g(e)?(t.consume(e),C):E(e)}function E(e){return 61===e?(t.consume(e),k):D(e)?(t.consume(e),E):A(e)}function k(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),s=e,B):D(e)?(t.consume(e),k):w(e)}function B(e){return e===s?(t.consume(e),s=null,v):null===e||x(e)?n(e):(t.consume(e),B)}function w(e){return null===e||34===e||39===e||47===e||60===e||61===e||62===e||96===e||b(e)?E(e):(t.consume(e),w)}function v(t){return 47===t||62===t||D(t)?A(t):n(t)}function _(e){return 62===e?(t.consume(e),S):n(e)}function S(e){return null===e||x(e)?T(e):D(e)?(t.consume(e),S):n(e)}function T(e){return 45===e&&2===i?(t.consume(e),O):60===e&&1===i?(t.consume(e),I):62===e&&4===i?(t.consume(e),N):63===e&&3===i?(t.consume(e),z):93===e&&5===i?(t.consume(e),P):!x(e)||6!==i&&7!==i?null===e||x(e)?(t.exit("htmlFlowData"),M(e)):(t.consume(e),T):(t.exit("htmlFlowData"),t.check(st,j,M)(e))}function M(e){return t.check(lt,L,j)(e)}function L(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),$}function $(e){return null===e||x(e)?M(e):(t.enter("htmlFlowData"),T(e))}function O(e){return 45===e?(t.consume(e),z):T(e)}function I(e){return 47===e?(t.consume(e),u="",R):T(e)}function R(e){if(62===e){const n=u.toLowerCase();return ut.includes(n)?(t.consume(e),N):T(e)}return p(e)&&u.length<8?(t.consume(e),u+=String.fromCharCode(e),R):T(e)}function P(e){return 93===e?(t.consume(e),z):T(e)}function z(e){return 62===e?(t.consume(e),N):45===e&&2===i?(t.consume(e),z):T(e)}function N(e){return null===e||x(e)?(t.exit("htmlFlowData"),j(e)):(t.consume(e),N)}function j(n){return t.exit("htmlFlow"),e(n)}},resolveTo:function(t){let e=t.length;for(;e--&&("enter"!==t[e][0]||"htmlFlow"!==t[e][1].type););return e>1&&"linePrefix"===t[e-2][1].type&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t},concrete:!0},st={tokenize:function(t,e,n){return function(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),t.attempt(T,e,n)}},partial:!0},lt={tokenize:function(t,e,n){const r=this;return function(e){return x(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),i):n(e)};function i(t){return r.parser.lazy[r.now().line]?n(t):e(t)}},partial:!0},ct={tokenize:function(t,e,n){const r=this;return function(e){return null===e?n(e):(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),i)};function i(t){return r.parser.lazy[r.now().line]?n(t):e(t)}},partial:!0},ht={name:"codeFenced",tokenize:function(t,e,n){const r=this,i={tokenize:function(t,e,n){let i=0;return function(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),u};function u(e){return t.enter("codeFencedFence"),D(e)?w(t,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):s(e)}function s(e){return e===o?(t.enter("codeFencedFenceSequence"),l(e)):n(e)}function l(e){return e===o?(i++,t.consume(e),l):i>=a?(t.exit("codeFencedFenceSequence"),D(e)?w(t,c,"whitespace")(e):c(e)):n(e)}function c(r){return null===r||x(r)?(t.exit("codeFencedFence"),e(r)):n(r)}},partial:!0};let o,u=0,a=0;return function(e){return function(e){const n=r.events[r.events.length-1];return u=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=e,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),s(e)}(e)};function s(e){return e===o?(a++,t.consume(e),s):a<3?n(e):(t.exit("codeFencedFenceSequence"),D(e)?w(t,l,"whitespace")(e):l(e))}function l(n){return null===n||x(n)?(t.exit("codeFencedFence"),r.interrupt?e(n):t.check(ct,f,y)(n)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),c(n))}function c(e){return null===e||x(e)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),l(e)):D(e)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),w(t,h,"whitespace")(e)):96===e&&e===o?n(e):(t.consume(e),c)}function h(e){return null===e||x(e)?l(e):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),d(e))}function d(e){return null===e||x(e)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),l(e)):96===e&&e===o?n(e):(t.consume(e),d)}function f(e){return t.attempt(i,y,p)(e)}function p(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),g}function g(e){return u>0&&D(e)?w(t,m,"linePrefix",u+1)(e):m(e)}function m(e){return null===e||x(e)?t.check(ct,f,y)(e):(t.enter("codeFlowValue"),F(e))}function F(e){return null===e||x(e)?(t.exit("codeFlowValue"),m(e)):(t.consume(e),F)}function y(n){return t.exit("codeFenced"),e(n)}},concrete:!0};var dt=n(1157);const ft={name:"characterReference",tokenize:function(t,e,n){const r=this;let i,o,u=0;return function(e){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(e),t.exit("characterReferenceMarker"),a};function a(e){return 35===e?(t.enter("characterReferenceMarkerNumeric"),t.consume(e),t.exit("characterReferenceMarkerNumeric"),s):(t.enter("characterReferenceValue"),i=31,o=g,l(e))}function s(e){return 88===e||120===e?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(e),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),i=6,o=A,l):(t.enter("characterReferenceValue"),i=7,o=y,l(e))}function l(a){if(59===a&&u){const i=t.exit("characterReferenceValue");return o!==g||(0,dt.s)(r.sliceSerialize(i))?(t.enter("characterReferenceMarker"),t.consume(a),t.exit("characterReferenceMarker"),t.exit("characterReference"),e):n(a)}return o(a)&&u++<i?(t.consume(a),l):n(a)}}},pt={name:"characterEscape",tokenize:function(t,e,n){return function(e){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(e),t.exit("escapeMarker"),r};function r(r){return C(r)?(t.enter("characterEscapeValue"),t.consume(r),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(r)}}},gt={name:"lineEnding",tokenize:function(t,e){return function(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),w(t,e,"linePrefix")}}},mt={name:"labelEnd",tokenize:function(t,e,n){const r=this;let i,o,u=r.events.length;for(;u--;)if(("labelImage"===r.events[u][1].type||"labelLink"===r.events[u][1].type)&&!r.events[u][1]._balanced){i=r.events[u][1];break}return function(e){return i?i._inactive?c(e):(o=r.parser.defined.includes(Q(r.sliceSerialize({start:i.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelEnd"),a):n(e)};function a(e){return 40===e?t.attempt(Ft,l,o?l:c)(e):91===e?t.attempt(yt,l,o?s:c)(e):o?l(e):c(e)}function s(e){return t.attempt(At,l,c)(e)}function l(t){return e(t)}function c(t){return i._balanced=!0,n(t)}},resolveTo:function(t,e){let n,r,i,o,u=t.length,l=0;for(;u--;)if(n=t[u][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===t[u][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===t[u][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=u,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(i=u);const c={type:"labelLink"===t[r][1].type?"link":"image",start:Object.assign({},t[r][1].start),end:Object.assign({},t[t.length-1][1].end)},h={type:"label",start:Object.assign({},t[r][1].start),end:Object.assign({},t[i][1].end)},d={type:"labelText",start:Object.assign({},t[r+l+2][1].end),end:Object.assign({},t[i-2][1].start)};return o=[["enter",c,e],["enter",h,e]],o=s(o,t.slice(r+1,r+l+3)),o=s(o,[["enter",d,e]]),o=s(o,j(e.parser.constructs.insideSpan.null,t.slice(r+l+4,i-3),e)),o=s(o,[["exit",d,e],t[i-2],t[i-1],["exit",h,e]]),o=s(o,t.slice(i+1)),o=s(o,[["exit",c,e]]),a(t,r,t.length,o),t},resolveAll:function(t){let e=-1;for(;++e<t.length;){const n=t[e][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(t.splice(e+1,"labelImage"===n.type?4:2),n.type="data",e++)}return t}},Ft={tokenize:function(t,e,n){return function(e){return t.enter("resource"),t.enter("resourceMarker"),t.consume(e),t.exit("resourceMarker"),r};function r(e){return b(e)?Z(t,i)(e):i(e)}function i(e){return 41===e?l(e):G(t,o,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(e)}function o(e){return b(e)?Z(t,a)(e):l(e)}function u(t){return n(t)}function a(e){return 34===e||39===e||40===e?X(t,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(e):l(e)}function s(e){return b(e)?Z(t,l)(e):l(e)}function l(r){return 41===r?(t.enter("resourceMarker"),t.consume(r),t.exit("resourceMarker"),t.exit("resource"),e):n(r)}}},yt={tokenize:function(t,e,n){const r=this;return function(e){return V.call(r,t,i,o,"reference","referenceMarker","referenceString")(e)};function i(t){return r.parser.defined.includes(Q(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(t):n(t)}function o(t){return n(t)}}},At={tokenize:function(t,e,n){return function(e){return t.enter("reference"),t.enter("referenceMarker"),t.consume(e),t.exit("referenceMarker"),r};function r(r){return 93===r?(t.enter("referenceMarker"),t.consume(r),t.exit("referenceMarker"),t.exit("reference"),e):n(r)}}},Ct={name:"labelStartImage",tokenize:function(t,e,n){const r=this;return function(e){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(e),t.exit("labelImageMarker"),i};function i(e){return 91===e?(t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelImage"),o):n(e)}function o(t){return 94===t&&"_hiddenFootnoteSupport"in r.parser.constructs?n(t):e(t)}},resolveAll:mt.resolveAll};function xt(t){return null===t||b(t)||k(t)?1:E(t)?2:void 0}const bt={name:"attention",tokenize:function(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=xt(r);let o;return function(e){return o=e,t.enter("attentionSequence"),u(e)};function u(a){if(a===o)return t.consume(a),u;const s=t.exit("attentionSequence"),l=xt(a),c=!l||2===l&&i||n.includes(a),h=!i||2===i&&l||n.includes(r);return s._open=Boolean(42===o?c:c&&(i||!h)),s._close=Boolean(42===o?h:h&&(l||!c)),e(a)}},resolveAll:function(t,e){let n,r,i,o,u,l,c,h,d=-1;for(;++d<t.length;)if("enter"===t[d][0]&&"attentionSequence"===t[d][1].type&&t[d][1]._close)for(n=d;n--;)if("exit"===t[n][0]&&"attentionSequence"===t[n][1].type&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[d][1]).charCodeAt(0)){if((t[n][1]._close||t[d][1]._open)&&(t[d][1].end.offset-t[d][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[d][1].end.offset-t[d][1].start.offset)%3))continue;l=t[n][1].end.offset-t[n][1].start.offset>1&&t[d][1].end.offset-t[d][1].start.offset>1?2:1;const f=Object.assign({},t[n][1].end),p=Object.assign({},t[d][1].start);Dt(f,-l),Dt(p,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},t[n][1].end)},u={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[d][1].start),end:p},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[d][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},u.end)},t[n][1].end=Object.assign({},o.start),t[d][1].start=Object.assign({},u.end),c=[],t[n][1].end.offset-t[n][1].start.offset&&(c=s(c,[["enter",t[n][1],e],["exit",t[n][1],e]])),c=s(c,[["enter",r,e],["enter",o,e],["exit",o,e],["enter",i,e]]),c=s(c,j(e.parser.constructs.insideSpan.null,t.slice(n+1,d),e)),c=s(c,[["exit",i,e],["enter",u,e],["exit",u,e],["exit",r,e]]),t[d][1].end.offset-t[d][1].start.offset?(h=2,c=s(c,[["enter",t[d][1],e],["exit",t[d][1],e]])):h=0,a(t,n-1,d-n+3,c),d=n+c.length-h-2;break}for(d=-1;++d<t.length;)"attentionSequence"===t[d][1].type&&(t[d][1].type="data");return t}};function Dt(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const Et={name:"autolink",tokenize:function(t,e,n){let r=0;return function(e){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(e),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),i};function i(e){return p(e)?(t.consume(e),o):s(e)}function o(t){return 43===t||45===t||46===t||g(t)?(r=1,u(t)):s(t)}function u(e){return 58===e?(t.consume(e),r=0,a):(43===e||45===e||46===e||g(e))&&r++<32?(t.consume(e),u):(r=0,s(e))}function a(r){return 62===r?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(r),t.exit("autolinkMarker"),t.exit("autolink"),e):null===r||32===r||60===r||F(r)?n(r):(t.consume(r),a)}function s(e){return 64===e?(t.consume(e),l):m(e)?(t.consume(e),s):n(e)}function l(t){return g(t)?c(t):n(t)}function c(n){return 46===n?(t.consume(n),r=0,l):62===n?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(n),t.exit("autolinkMarker"),t.exit("autolink"),e):h(n)}function h(e){if((45===e||g(e))&&r++<63){const n=45===e?h:c;return t.consume(e),n}return n(e)}}},kt={name:"htmlText",tokenize:function(t,e,n){const r=this;let i,o,u;return function(e){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(e),a};function a(e){return 33===e?(t.consume(e),s):47===e?(t.consume(e),k):63===e?(t.consume(e),C):p(e)?(t.consume(e),_):n(e)}function s(e){return 45===e?(t.consume(e),l):91===e?(t.consume(e),o=0,f):p(e)?(t.consume(e),A):n(e)}function l(e){return 45===e?(t.consume(e),d):n(e)}function c(e){return null===e?n(e):45===e?(t.consume(e),h):x(e)?(u=c,P(e)):(t.consume(e),c)}function h(e){return 45===e?(t.consume(e),d):c(e)}function d(t){return 62===t?R(t):45===t?h(t):c(t)}function f(e){return e==="CDATA[".charCodeAt(o++)?(t.consume(e),6===o?m:f):n(e)}function m(e){return null===e?n(e):93===e?(t.consume(e),F):x(e)?(u=m,P(e)):(t.consume(e),m)}function F(e){return 93===e?(t.consume(e),y):m(e)}function y(e){return 62===e?R(e):93===e?(t.consume(e),y):m(e)}function A(e){return null===e||62===e?R(e):x(e)?(u=A,P(e)):(t.consume(e),A)}function C(e){return null===e?n(e):63===e?(t.consume(e),E):x(e)?(u=C,P(e)):(t.consume(e),C)}function E(t){return 62===t?R(t):C(t)}function k(e){return p(e)?(t.consume(e),B):n(e)}function B(e){return 45===e||g(e)?(t.consume(e),B):v(e)}function v(e){return x(e)?(u=v,P(e)):D(e)?(t.consume(e),v):R(e)}function _(e){return 45===e||g(e)?(t.consume(e),_):47===e||62===e||b(e)?S(e):n(e)}function S(e){return 47===e?(t.consume(e),R):58===e||95===e||p(e)?(t.consume(e),T):x(e)?(u=S,P(e)):D(e)?(t.consume(e),S):R(e)}function T(e){return 45===e||46===e||58===e||95===e||g(e)?(t.consume(e),T):M(e)}function M(e){return 61===e?(t.consume(e),L):x(e)?(u=M,P(e)):D(e)?(t.consume(e),M):S(e)}function L(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),i=e,$):x(e)?(u=L,P(e)):D(e)?(t.consume(e),L):(t.consume(e),O)}function $(e){return e===i?(t.consume(e),i=void 0,I):null===e?n(e):x(e)?(u=$,P(e)):(t.consume(e),$)}function O(e){return null===e||34===e||39===e||60===e||61===e||96===e?n(e):47===e||62===e||b(e)?S(e):(t.consume(e),O)}function I(t){return 47===t||62===t||b(t)?S(t):n(t)}function R(r){return 62===r?(t.consume(r),t.exit("htmlTextData"),t.exit("htmlText"),e):n(r)}function P(e){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),z}function z(e){return D(e)?w(t,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):N(e)}function N(e){return t.enter("htmlTextData"),u(e)}}},Bt={name:"labelStartLink",tokenize:function(t,e,n){const r=this;return function(e){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelLink"),i};function i(t){return 94===t&&"_hiddenFootnoteSupport"in r.parser.constructs?n(t):e(t)}},resolveAll:mt.resolveAll},wt={name:"hardBreakEscape",tokenize:function(t,e,n){return function(e){return t.enter("hardBreakEscape"),t.consume(e),r};function r(r){return x(r)?(t.exit("hardBreakEscape"),e(r)):n(r)}}},vt={name:"codeText",tokenize:function(t,e,n){let r,i,o=0;return function(e){return t.enter("codeText"),t.enter("codeTextSequence"),u(e)};function u(e){return 96===e?(t.consume(e),o++,u):(t.exit("codeTextSequence"),a(e))}function a(e){return null===e?n(e):32===e?(t.enter("space"),t.consume(e),t.exit("space"),a):96===e?(i=t.enter("codeTextSequence"),r=0,l(e)):x(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),a):(t.enter("codeTextData"),s(e))}function s(e){return null===e||32===e||96===e||x(e)?(t.exit("codeTextData"),a(e)):(t.consume(e),s)}function l(n){return 96===n?(t.consume(n),r++,l):r===o?(t.exit("codeTextSequence"),t.exit("codeText"),e(n)):(i.type="codeTextData",s(n))}},resolve:function(t){let e,n,r=t.length-4,i=3;if(!("lineEnding"!==t[i][1].type&&"space"!==t[i][1].type||"lineEnding"!==t[r][1].type&&"space"!==t[r][1].type))for(e=i;++e<r;)if("codeTextData"===t[e][1].type){t[i][1].type="codeTextPadding",t[r][1].type="codeTextPadding",i+=2,r-=2;break}for(e=i-1,r++;++e<=r;)void 0===n?e!==r&&"lineEnding"!==t[e][1].type&&(n=e):e!==r&&"lineEnding"!==t[e][1].type||(t[n][1].type="codeTextData",e!==n+2&&(t[n][1].end=t[e-1][1].end,t.splice(n+2,e-n-2),r-=e-n-2,e=n+2),n=void 0);return t},previous:function(t){return 96!==t||"characterEscape"===this.events[this.events.length-1][1].type}},_t={42:W,43:W,45:W,48:W,49:W,50:W,51:W,52:W,53:W,54:W,55:W,56:W,57:W,62:Y},St={91:J},Tt={[-2]:et,[-1]:et,32:et},Mt={35:rt,42:K,45:[it,K],60:at,61:it,95:K,96:ht,126:ht},Lt={38:ft,92:pt},$t={[-5]:gt,[-4]:gt,[-3]:gt,33:Ct,38:ft,42:bt,60:[Et,kt],91:Bt,92:[wt,pt],93:mt,95:bt,96:vt},Ot={null:[bt,O]},It={null:[42,95]},Rt={null:[]};const Pt=/[\0\t\n\r]/g;function zt(t,e){const n=Number.parseInt(t,e);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const Nt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jt(t,e,n){if(e)return e;if(35===n.charCodeAt(0)){const t=n.charCodeAt(1),e=120===t||88===t;return zt(n.slice(e?2:1),e?16:10)}return(0,dt.s)(n)||t}function qt(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Kt=n(9993);const Wt={}.hasOwnProperty;function Ht(t,e,n){return"string"!=typeof e&&(n=e,e=void 0),function(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(C),autolinkProtocol:d,autolinkEmail:d,atxHeading:u(F),blockQuote:u((function(){return{type:"blockquote",children:[]}})),characterEscape:d,characterReference:d,codeFenced:u(m),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:u(m,a),codeText:u((function(){return{type:"inlineCode",value:""}}),a),codeTextData:d,data:d,codeFlowValue:d,definition:u((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:u((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:u(y),hardBreakTrailing:u(y),htmlFlow:u(A,a),htmlFlowData:d,htmlText:u(A,a),htmlTextData:d,image:u((function(){return{type:"image",title:null,url:"",alt:null}})),label:a,link:u(C),listItem:u((function(t){return{type:"listItem",spread:t._spread,checked:null,children:[]}})),listItemValue:function(t){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(t),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:u(x,(function(){this.data.expectingFirstListItemValue=!0})),listUnordered:u(x),paragraph:u((function(){return{type:"paragraph",children:[]}})),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:u(F),strong:u((function(){return{type:"strong",children:[]}})),thematicBreak:u((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:l(),atxHeadingSequence:function(t){const e=this.stack[this.stack.length-1];if(!e.depth){const n=this.sliceSerialize(t).length;e.depth=n}},autolink:l(),autolinkEmail:function(t){f.call(this,t),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(t)},autolinkProtocol:function(t){f.call(this,t),this.stack[this.stack.length-1].url=this.sliceSerialize(t)},blockQuote:l(),characterEscapeValue:f,characterReferenceMarkerHexadecimal:g,characterReferenceMarkerNumeric:g,characterReferenceValue:function(t){const e=this.sliceSerialize(t),n=this.data.characterReferenceType;let r;n?(r=zt(e,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=(0,dt.s)(e);const i=this.stack.pop();i.value+=r,i.position.end=Ut(t.end)},codeFenced:l((function(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0})),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const t=this.resume();this.stack[this.stack.length-1].lang=t},codeFencedFenceMeta:function(){const t=this.resume();this.stack[this.stack.length-1].meta=t},codeFlowValue:f,codeIndented:l((function(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/(\r?\n|\r)$/g,"")})),codeText:l((function(){const t=this.resume();this.stack[this.stack.length-1].value=t})),codeTextData:f,data:f,definition:l(),definitionDestinationString:function(){const t=this.resume();this.stack[this.stack.length-1].url=t},definitionLabelString:function(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=qt(this.sliceSerialize(t)).toLowerCase()},definitionTitleString:function(){const t=this.resume();this.stack[this.stack.length-1].title=t},emphasis:l(),hardBreakEscape:l(p),hardBreakTrailing:l(p),htmlFlow:l((function(){const t=this.resume();this.stack[this.stack.length-1].value=t})),htmlFlowData:f,htmlText:l((function(){const t=this.resume();this.stack[this.stack.length-1].value=t})),htmlTextData:f,image:l((function(){const t=this.stack[this.stack.length-1];if(this.data.inReference){const e=this.data.referenceType||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;this.data.referenceType=void 0})),label:function(){const t=this.stack[this.stack.length-1],e=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const e=t.children;n.children=e}else n.alt=e},labelText:function(t){const e=this.sliceSerialize(t),n=this.stack[this.stack.length-2];n.label=function(t){return t.replace(Nt,jt)}(e),n.identifier=qt(e).toLowerCase()},lineEnding:function(t){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=Ut(t.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(n.type)&&(d.call(this,t),f.call(this,t))},link:l((function(){const t=this.stack[this.stack.length-1];if(this.data.inReference){const e=this.data.referenceType||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;this.data.referenceType=void 0})),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=qt(this.sliceSerialize(t)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const t=this.resume();this.stack[this.stack.length-1].url=t},resourceTitleString:function(){const t=this.resume();this.stack[this.stack.length-1].title=t},resource:function(){this.data.inReference=void 0},setextHeading:l((function(){this.data.setextHeadingSlurpLineEnding=void 0})),setextHeadingLineSequence:function(t){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(t).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};Yt(e,(t||{}).mdastExtensions||[]);const n={};return function(t){let i={type:"root",children:[]};const o={stack:[i],tokenStack:[],config:e,enter:s,exit:c,buffer:a,resume:h,data:n},u=[];let l=-1;for(;++l<t.length;)"listOrdered"!==t[l][1].type&&"listUnordered"!==t[l][1].type||("enter"===t[l][0]?u.push(l):l=r(t,u.pop(),l));for(l=-1;++l<t.length;){const n=e[t[l][0]];Wt.call(n,t[l][1].type)&&n[t[l][1].type].call(Object.assign({sliceSerialize:t[l][2].sliceSerialize},o),t[l][1])}if(o.tokenStack.length>0){const t=o.tokenStack[o.tokenStack.length-1];(t[1]||Vt).call(o,void 0,t[0])}for(i.position={start:Ut(t.length>0?t[0][1].start:{line:1,column:1,offset:0}),end:Ut(t.length>0?t[t.length-2][1].end:{line:1,column:1,offset:0})},l=-1;++l<e.transforms.length;)i=e.transforms[l](i)||i;return i};function r(t,e,n){let r,i,o,u,a=e-1,s=-1,l=!1;for(;++a<=n;){const e=t[a];switch(e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===e[0]?s++:s--,u=void 0;break;case"lineEndingBlank":"enter"===e[0]&&(!r||u||s||o||(o=a),u=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:u=void 0}if(!s&&"enter"===e[0]&&"listItemPrefix"===e[1].type||-1===s&&"exit"===e[0]&&("listUnordered"===e[1].type||"listOrdered"===e[1].type)){if(r){let u=a;for(i=void 0;u--;){const e=t[u];if("lineEnding"===e[1].type||"lineEndingBlank"===e[1].type){if("exit"===e[0])continue;i&&(t[i][1].type="lineEndingBlank",l=!0),e[1].type="lineEnding",i=u}else if("linePrefix"!==e[1].type&&"blockQuotePrefix"!==e[1].type&&"blockQuotePrefixWhitespace"!==e[1].type&&"blockQuoteMarker"!==e[1].type&&"listItemIndent"!==e[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?t[i][1].start:e[1].end),t.splice(i||a,0,["exit",r,e[2]]),a++,n++}if("listItemPrefix"===e[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},e[1].start),end:void 0};r=i,t.splice(a,0,["enter",i,e[2]]),a++,n++,o=void 0,u=!0}}}return t[e][1]._spread=l,n}function u(t,e){return function(n){s.call(this,t(n),n),e&&e.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(t,e,n){this.stack[this.stack.length-1].children.push(t),this.stack.push(t),this.tokenStack.push([e,n]),t.position={start:Ut(e.start),end:void 0}}function l(t){return function(e){t&&t.call(this,e),c.call(this,e)}}function c(t,e){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+t.type+"` ("+(0,Kt.L)({start:t.start,end:t.end})+"): it’s not open");r[0].type!==t.type&&(e?e.call(this,t,r[0]):(r[1]||Vt).call(this,t,r[0])),n.position.end=Ut(t.end)}function h(){return function(t){const e=i;return o(t,"boolean"!=typeof e.includeImageAlt||e.includeImageAlt,"boolean"!=typeof e.includeHtml||e.includeHtml)}(this.stack.pop())}function d(t){const e=this.stack[this.stack.length-1].children;let n=e[e.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:Ut(t.start),end:void 0},e.push(n)),this.stack.push(n)}function f(t){const e=this.stack.pop();e.value+=this.sliceSerialize(t),e.position.end=Ut(t.end)}function p(){this.data.atHardBreak=!0}function g(t){this.data.characterReferenceType=t.type}function m(){return{type:"code",lang:null,meta:null,value:""}}function F(){return{type:"heading",depth:0,children:[]}}function y(){return{type:"break"}}function A(){return{type:"html",value:""}}function C(){return{type:"link",title:null,url:"",children:[]}}function x(t){return{type:"list",ordered:"listOrdered"===t.type,start:null,spread:t._spread,children:[]}}}(n)(function(t){for(;!l(t););return t}(function(t){const e={defined:[],lazy:{},constructs:function(t){const e={};let n=-1;for(;++n<t.length;)d(e,t[n]);return e}([r,...(t||{}).extensions||[]]),content:n(v),document:n(_),flow:n($),string:n(I),text:n(R)};return e;function n(t){return function(n){return q(e,t,n)}}}(n).document().write(function(){let t,e=1,n="",r=!0;return function(i,o,u){const a=[];let s,l,c,h,d;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),c=0,n="",r&&(65279===i.charCodeAt(0)&&c++,r=void 0);c<i.length;){if(Pt.lastIndex=c,s=Pt.exec(i),h=s&&void 0!==s.index?s.index:i.length,d=i.charCodeAt(h),!s){n=i.slice(c);break}if(10===d&&c===h&&t)a.push(-3),t=void 0;else switch(t&&(a.push(-5),t=void 0),c<h&&(a.push(i.slice(c,h)),e+=h-c),d){case 0:a.push(65533),e++;break;case 9:for(l=4*Math.ceil(e/4),a.push(-2);e++<l;)a.push(-1);break;case 10:a.push(-4),e=1;break;default:t=!0,e=1}c=h+1}return u&&(t&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(t,e,!0))))}function Ut(t){return{line:t.line,column:t.column,offset:t.offset}}function Yt(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?Yt(t,r):Gt(t,r)}}function Gt(t,e){let n;for(n in e)if(Wt.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function Vt(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+(0,Kt.L)({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+(0,Kt.L)({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+(0,Kt.L)({start:e.start,end:e.end})+") is still open")}function Xt(t){const e=this;e.parser=function(n){return Ht(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}},5323:(t,e,n)=>{"use strict";n.d(e,{$C:()=>w,$t:()=>K,C4:()=>H,I5:()=>q,Ib:()=>g,KL:()=>G,Sm:()=>U,Un:()=>O,_K:()=>W,bH:()=>M,dq:()=>N,pe:()=>s,rY:()=>Y,ru:()=>$,sM:()=>k,vU:()=>f,yT:()=>_});var r=n(8084),i=n(8041),o=n(3213),u=n(9645),a=n(2937),s="​",l={curveBasis:o.qrM,curveBasisClosed:o.Yu4,curveBasisOpen:o.IA3,curveBumpX:o.Wi0,curveBumpY:o.PGM,curveBundle:o.OEq,curveCardinalClosed:o.olC,curveCardinalOpen:o.IrU,curveCardinal:o.y8u,curveCatmullRomClosed:o.Q7f,curveCatmullRomOpen:o.cVp,curveCatmullRom:o.oDi,curveLinear:o.lUB,curveLinearClosed:o.Lx9,curveMonotoneX:o.nVG,curveMonotoneY:o.uxU,curveNatural:o.Xf2,curveStep:o.GZz,curveStepAfter:o.UPb,curveStepBefore:o.dyv},c=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,h=(0,r.K2)((function(t,e){const n=d(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(n)){const t=n.map((t=>t.args));(0,r.$i)(t),i=(0,r.hH)(i,[...t])}else i=n.args;if(!i)return;let o=(0,r.Ch)(t,e);const u="config";return void 0!==i[u]&&("flowchart-v2"===o&&(o="flowchart"),i[o]=i[u],delete i[u]),i}),"detectInit"),d=(0,r.K2)((function(t,e=null){try{const n=new RegExp(`[%]{2}(?![{]${c.source})(?=[}][%]{2}).*\n`,"ig");let i;t=t.trim().replace(n,"").replace(/'/gm,'"'),r.Rm.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);const o=[];for(;null!==(i=r.DB.exec(t));)if(i.index===r.DB.lastIndex&&r.DB.lastIndex++,i&&!e||e&&i[1]?.match(e)||e&&i[2]?.match(e)){const t=i[1]?i[1]:i[2],e=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;o.push({type:t,args:e})}return 0===o.length?{type:t,args:null}:1===o.length?o[0]:o}catch(n){return r.Rm.error(`ERROR: ${n.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}}),"detectDirective"),f=(0,r.K2)((function(t){return t.replace(r.DB,"")}),"removeDirectives"),p=(0,r.K2)((function(t,e){for(const[n,r]of e.entries())if(r.match(t))return n;return-1}),"isSubstringInArray");function g(t,e){if(!t)return e;const n=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return l[n]??e}function m(t,e){const n=t.trim();if(n)return"loose"!==e.securityLevel?(0,i.J)(n):n}(0,r.K2)(g,"interpolateToCurve"),(0,r.K2)(m,"formatUrl");var F=(0,r.K2)(((t,...e)=>{const n=t.split("."),i=n.length-1,o=n[i];let u=window;for(let e=0;e<i;e++)if(u=u[n[e]],!u)return void r.Rm.error(`Function name: ${t} not found in window`);u[o](...e)}),"runFunc");function y(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function A(t){let e,n=0;return t.forEach((t=>{n+=y(t,e),e=t})),b(t,n/2)}function C(t){return 1===t.length?t[0]:A(t)}(0,r.K2)(y,"distance"),(0,r.K2)(A,"traverseEdge"),(0,r.K2)(C,"calcLabelPosition");var x=(0,r.K2)(((t,e=2)=>{const n=Math.pow(10,e);return Math.round(t*n)/n}),"roundNumber"),b=(0,r.K2)(((t,e)=>{let n,r=e;for(const e of t){if(n){const t=y(e,n);if(0===t)return n;if(t<r)r-=t;else{const i=r/t;if(i<=0)return n;if(i>=1)return{x:e.x,y:e.y};if(i>0&&i<1)return{x:x((1-i)*n.x+i*e.x,5),y:x((1-i)*n.y+i*e.y,5)}}}n=e}throw new Error("Could not find a suitable point for the given distance")}),"calculatePoint"),D=(0,r.K2)(((t,e,n)=>{r.Rm.info(`our points ${JSON.stringify(e)}`),e[0]!==n&&(e=e.reverse());const i=b(e,25),o=t?10:5,u=Math.atan2(e[0].y-i.y,e[0].x-i.x),a={x:0,y:0};return a.x=Math.sin(u)*o+(e[0].x+i.x)/2,a.y=-Math.cos(u)*o+(e[0].y+i.y)/2,a}),"calcCardinalityPosition");function E(t,e,n){const i=structuredClone(n);r.Rm.info("our points",i),"start_left"!==e&&"start_right"!==e&&i.reverse();const o=b(i,25+t),u=10+.5*t,a=Math.atan2(i[0].y-o.y,i[0].x-o.x),s={x:0,y:0};return"start_left"===e?(s.x=Math.sin(a+Math.PI)*u+(i[0].x+o.x)/2,s.y=-Math.cos(a+Math.PI)*u+(i[0].y+o.y)/2):"end_right"===e?(s.x=Math.sin(a-Math.PI)*u+(i[0].x+o.x)/2-5,s.y=-Math.cos(a-Math.PI)*u+(i[0].y+o.y)/2-5):"end_left"===e?(s.x=Math.sin(a)*u+(i[0].x+o.x)/2-5,s.y=-Math.cos(a)*u+(i[0].y+o.y)/2-5):(s.x=Math.sin(a)*u+(i[0].x+o.x)/2,s.y=-Math.cos(a)*u+(i[0].y+o.y)/2),s}function k(t){let e="",n="";for(const r of t)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":e=e+r+";");return{style:e,labelStyle:n}}(0,r.K2)(E,"calcTerminalLabelPosition"),(0,r.K2)(k,"getStylesFromArray");var B=0,w=(0,r.K2)((()=>(B++,"id-"+Math.random().toString(36).substr(2,12)+"-"+B)),"generateId");function v(t){let e="";for(let n=0;n<t;n++)e+="0123456789abcdef".charAt(Math.floor(16*Math.random()));return e}(0,r.K2)(v,"makeRandomHex");var _=(0,r.K2)((t=>v(t.length)),"random"),S=(0,r.K2)((function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}}),"getTextObj"),T=(0,r.K2)((function(t,e){const n=e.text.replace(r.Y2.lineBreakRegex," "),[,i]=q(e.fontSize),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",i),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),void 0!==e.class&&o.attr("class",e.class);const u=o.append("tspan");return u.attr("x",e.x+2*e.textMargin),u.attr("fill",e.fill),u.text(n),o}),"drawSimpleText"),M=(0,u.A)(((t,e,n)=>{if(!t)return t;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),r.Y2.lineBreakRegex.test(t))return t;const i=t.split(" ").filter(Boolean),o=[];let u="";return i.forEach(((t,r)=>{const a=O(`${t} `,n),s=O(u,n);if(a>e){const{hyphenatedStrings:r,remainingWord:i}=L(t,e,"-",n);o.push(u,...r),u=i}else s+a>=e?(o.push(u),u=t):u=[u,t].filter(Boolean).join(" ");r+1===i.length&&o.push(u)})),o.filter((t=>""!==t)).join(n.joinWith)}),((t,e,n)=>`${t}${e}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`)),L=(0,u.A)(((t,e,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const i=[...t],o=[];let u="";return i.forEach(((t,a)=>{const s=`${u}${t}`;if(O(s,r)>=e){const t=a+1,e=i.length===t,r=`${s}${n}`;o.push(e?s:r),u=""}else u=s})),{hyphenatedStrings:o,remainingWord:u}}),((t,e,n="-",r)=>`${t}${e}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`));function $(t,e){return R(t,e).height}function O(t,e){return R(t,e).width}(0,r.K2)($,"calculateTextHeight"),(0,r.K2)(O,"calculateTextWidth");var I,R=(0,u.A)(((t,e)=>{const{fontSize:n=12,fontFamily:i="Arial",fontWeight:u=400}=e;if(!t)return{width:0,height:0};const[,a]=q(n),l=["sans-serif",i],c=t.split(r.Y2.lineBreakRegex),h=[],d=(0,o.Ltv)("body");if(!d.remove)return{width:0,height:0,lineHeight:0};const f=d.append("svg");for(const t of l){let e=0;const n={width:0,height:0,lineHeight:0};for(const r of c){const i=S();i.text=r||s;const o=T(f,i).style("font-size",a).style("font-weight",u).style("font-family",t),l=(o._groups||o)[0][0].getBBox();if(0===l.width&&0===l.height)throw new Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,l.width)),e=Math.round(l.height),n.height+=e,n.lineHeight=Math.round(Math.max(n.lineHeight,e))}h.push(n)}return f.remove(),h[isNaN(h[1].height)||isNaN(h[1].width)||isNaN(h[1].lineHeight)||h[0].height>h[1].height&&h[0].width>h[1].width&&h[0].lineHeight>h[1].lineHeight?0:1]}),((t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`)),P=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,r.K2)(this,"InitIDGenerator")}},z=(0,r.K2)((function(t){return I=I||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),I.innerHTML=t,unescape(I.textContent)}),"entityDecode");function N(t){return"str"in t}(0,r.K2)(N,"isDetailedError");var j=(0,r.K2)(((t,e,n,r)=>{if(!r)return;const i=t.node()?.getBBox();i&&t.append("text").text(r).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-n).attr("class",e)}),"insertTitle"),q=(0,r.K2)((t=>{if("number"==typeof t)return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]}),"parseFontSize");function K(t,e){return(0,a.A)({},t,e)}(0,r.K2)(K,"cleanAndMerge");var W={assignWithDepth:r.hH,wrapLabel:M,calculateTextHeight:$,calculateTextWidth:O,calculateTextDimensions:R,cleanAndMerge:K,detectInit:h,detectDirective:d,isSubstringInArray:p,interpolateToCurve:g,calcLabelPosition:C,calcCardinalityPosition:D,calcTerminalLabelPosition:E,formatUrl:m,getStylesFromArray:k,generateId:w,random:_,runFunc:F,entityDecode:z,insertTitle:j,parseFontSize:q,InitIDGenerator:P},H=(0,r.K2)((function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/#\w+;/g,(function(t){const e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})),e}),"encodeEntities"),U=(0,r.K2)((function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")}),"decodeEntities"),Y=(0,r.K2)(((t,e,{counter:n=0,prefix:r,suffix:i},o)=>o||`${r?`${r}_`:""}${t}_${e}_${n}${i?`_${i}`:""}`),"getEdgeId");function G(t){return t??null}(0,r.K2)(G,"handleUndefinedAttr")},5378:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=/^(?:0|[1-9]\d*)$/;const i=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},5436:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(123),i=n(9600);const o=(0,r.A)(i.A,"Map")},5487:(t,e,n)=>{"use strict";n.d(e,{A:()=>I});var r=n(6469),i=n(9820);const o=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\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\u0AF9\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-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\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\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10140}-\u{10174}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{1031F}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D23}\u{10D4A}-\u{10D65}\u{10D6F}-\u{10D85}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F45}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{11103}-\u{11126}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}\u{113D1}\u{113D3}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11680}-\u{116AA}\u{116B8}\u{11700}-\u{1171A}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118DF}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11BC0}-\u{11BE0}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11FB0}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A70}-\u{16ABE}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D6C}\u{16E40}-\u{16E7F}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E4D0}-\u{1E4EB}\u{1E5D0}-\u{1E5ED}\u{1E5F0}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E900}-\u{1E943}\u{1E94B}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}][\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10140}-\u{10174}\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}\u{10300}-\u{1031F}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D27}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D69}-\u{10D6D}\u{10D6F}-\u{10D85}\u{10E80}-\u{10EA9}\u{10EAB}\u{10EAC}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10EFC}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F50}\u{10F70}-\u{10F85}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11000}-\u{11046}\u{11066}-\u{11075}\u{1107F}-\u{110BA}\u{110C2}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{1113F}\u{11144}-\u{11147}\u{11150}-\u{11173}\u{11176}\u{11180}-\u{111C4}\u{111C9}-\u{111CC}\u{111CE}-\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{11237}\u{1123E}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D3}\u{113E1}\u{113E2}\u{11400}-\u{1144A}\u{11450}-\u{11459}\u{1145E}-\u{11461}\u{11480}-\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115C0}\u{115D8}-\u{115DD}\u{11600}-\u{11640}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116B8}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11739}\u{11740}-\u{11746}\u{11800}-\u{1183A}\u{118A0}-\u{118E9}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11943}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E1}\u{119E3}\u{119E4}\u{11A00}-\u{11A3E}\u{11A47}\u{11A50}-\u{11A99}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11BC0}-\u{11BE0}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C40}\u{11C50}-\u{11C59}\u{11C72}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF6}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F42}\u{11F50}-\u{11F5A}\u{11FB0}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13440}-\u{13455}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF4}\u{16B00}-\u{16B36}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D6C}\u{16D70}-\u{16D79}\u{16E40}-\u{16E7F}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9D}\u{1BC9E}\u{1CCF0}-\u{1CCF9}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E030}-\u{1E06D}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E4D0}-\u{1E4F9}\u{1E5D0}-\u{1E5FA}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8D0}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{E0100}-\u{E01EF}]*$/u,u=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\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\u0AF9\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-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\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\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10140}-\u{10174}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{1031F}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D23}\u{10D4A}-\u{10D65}\u{10D6F}-\u{10D85}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F45}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{11103}-\u{11126}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}\u{113D1}\u{113D3}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11680}-\u{116AA}\u{116B8}\u{11700}-\u{1171A}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118DF}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11BC0}-\u{11BE0}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11FB0}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A70}-\u{16ABE}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D6C}\u{16E40}-\u{16E7F}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E4D0}-\u{1E4EB}\u{1E5D0}-\u{1E5ED}\u{1E5F0}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E900}-\u{1E943}\u{1E94B}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}][\$\x2D0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10140}-\u{10174}\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}\u{10300}-\u{1031F}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D27}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D69}-\u{10D6D}\u{10D6F}-\u{10D85}\u{10E80}-\u{10EA9}\u{10EAB}\u{10EAC}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10EFC}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F50}\u{10F70}-\u{10F85}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11000}-\u{11046}\u{11066}-\u{11075}\u{1107F}-\u{110BA}\u{110C2}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{1113F}\u{11144}-\u{11147}\u{11150}-\u{11173}\u{11176}\u{11180}-\u{111C4}\u{111C9}-\u{111CC}\u{111CE}-\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{11237}\u{1123E}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D3}\u{113E1}\u{113E2}\u{11400}-\u{1144A}\u{11450}-\u{11459}\u{1145E}-\u{11461}\u{11480}-\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115C0}\u{115D8}-\u{115DD}\u{11600}-\u{11640}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116B8}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11739}\u{11740}-\u{11746}\u{11800}-\u{1183A}\u{118A0}-\u{118E9}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11943}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E1}\u{119E3}\u{119E4}\u{11A00}-\u{11A3E}\u{11A47}\u{11A50}-\u{11A99}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11BC0}-\u{11BE0}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C40}\u{11C50}-\u{11C59}\u{11C72}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF6}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F42}\u{11F50}-\u{11F5A}\u{11FB0}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13440}-\u{13455}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF4}\u{16B00}-\u{16B36}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D6C}\u{16D70}-\u{16D79}\u{16E40}-\u{16E7F}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9D}\u{1BC9E}\u{1CCF0}-\u{1CCF9}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E030}-\u{1E06D}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E4D0}-\u{1E4F9}\u{1E5D0}-\u{1E5FA}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8D0}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{E0100}-\u{E01EF}]*$/u,a={};function s(t,e){return((e||a).jsx?u:o).test(t)}const l=/[ \t\n\f\r]/g;function c(t){return""===t.replace(l,"")}var h=n(9835),d=n(1182);const f={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var p=n(10),g=n(8052);const m=g.default||g;var F=n(4585),y=n(4435);const A={}.hasOwnProperty,C=new Map,x=/[A-Z]/g,b=/-([a-z])/g,D=new Set(["table","tbody","thead","tfoot","tr"]),E=new Set(["td","th"]),k="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function B(t,e,n){return"element"===e.type?function(t,e,n){const r=t.schema;let i=r;"svg"===e.tagName.toLowerCase()&&"html"===r.space&&(i=h.JW,t.schema=i),t.ancestors.push(e);const o=T(t,e.tagName,!1),u=function(t,e){const n={};let r,i;for(i in e.properties)if("children"!==i&&A.call(e.properties,i)){const o=S(t,i,e.properties[i]);if(o){const[i,u]=o;t.tableCellAlignToStyle&&"align"===i&&"string"==typeof u&&E.has(e.tagName)?r=u:n[i]=u}}return r&&((n.style||(n.style={}))["css"===t.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(t,e);let a=_(t,e);return D.has(e.tagName)&&(a=a.filter((function(t){return"string"!=typeof t||!("object"==typeof(e=t)?"text"===e.type&&c(e.value):c(e));var e}))),w(t,u,o,e),v(u,a),t.ancestors.pop(),t.schema=r,t.create(e,o,u,n)}(t,e,n):"mdxFlowExpression"===e.type||"mdxTextExpression"===e.type?function(t,e){if(e.data&&e.data.estree&&t.evaluater){const n=e.data.estree.body[0];return(0,i.ok)("ExpressionStatement"===n.type),t.evaluater.evaluateExpression(n.expression)}M(t,e.position)}(t,e):"mdxJsxFlowElement"===e.type||"mdxJsxTextElement"===e.type?function(t,e,n){const r=t.schema;let o=r;"svg"===e.name&&"html"===r.space&&(o=h.JW,t.schema=o),t.ancestors.push(e);const u=null===e.name?t.Fragment:T(t,e.name,!0),a=function(t,e){const n={};for(const r of e.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&t.evaluater){const e=r.data.estree.body[0];(0,i.ok)("ExpressionStatement"===e.type);const o=e.expression;(0,i.ok)("ObjectExpression"===o.type);const u=o.properties[0];(0,i.ok)("SpreadElement"===u.type),Object.assign(n,t.evaluater.evaluateExpression(u.argument))}else M(t,e.position);else{const o=r.name;let u;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&t.evaluater){const e=r.value.data.estree.body[0];(0,i.ok)("ExpressionStatement"===e.type),u=t.evaluater.evaluateExpression(e.expression)}else M(t,e.position);else u=null===r.value||r.value;n[o]=u}return n}(t,e),s=_(t,e);return w(t,a,u,e),v(a,s),t.ancestors.pop(),t.schema=r,t.create(e,u,a,n)}(t,e,n):"mdxjsEsm"===e.type?function(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);M(t,e.position)}(t,e):"root"===e.type?function(t,e,n){const r={};return v(r,_(t,e)),t.create(e,t.Fragment,r,n)}(t,e,n):"text"===e.type?function(t,e){return e.value}(0,e):void 0}function w(t,e,n,r){"string"!=typeof n&&n!==t.Fragment&&t.passNode&&(e.node=r)}function v(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function _(t,e){const n=[];let r=-1;const i=t.passKeys?new Map:C;for(;++r<e.children.length;){const o=e.children[r];let u;if(t.passKeys){const t="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(t){const e=i.get(t)||0;u=t+"-"+e,i.set(t,e+1)}}const a=B(t,o,u);void 0!==a&&n.push(a)}return n}function S(t,e,n){const i=(0,d.I)(t.schema,e);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?(0,r.A)(n):(0,p.A)(n)),"style"===i.property){let e="object"==typeof n?n:function(t,e){const n={};try{m(e,(function(t,e){let r=t;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(b,$)),n[r]=e}))}catch(e){if(!t.ignoreInvalidStyle){const n=e,r=new y.o("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=k+"#cannot-parse-style-attribute",r}}return n}(t,String(n));return"css"===t.stylePropertyNameCase&&(e=function(t){const e={};let n;for(n in t)A.call(t,n)&&(e[L(n)]=t[n]);return e}(e)),["style",e]}return["react"===t.elementAttributeNameCase&&i.space?f[i.property]||i.property:i.attribute,n]}}function T(t,e,n){let r;if(n)if(e.includes(".")){const t=e.split(".");let n,o=-1;for(;++o<t.length;){const e=s(t[o])?{type:"Identifier",name:t[o]}:{type:"Literal",value:t[o]};n=n?{type:"MemberExpression",object:n,property:e,computed:Boolean(o&&"Literal"===e.type),optional:!1}:e}(0,i.ok)(n,"always a result"),r=n}else r=s(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};else r={type:"Literal",value:e};if("Literal"===r.type){const e=r.value;return A.call(t.components,e)?t.components[e]:e}if(t.evaluater)return t.evaluater.evaluateExpression(r);M(t)}function M(t,e){const n=new y.o("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=k+"#cannot-handle-mdx-estrees-without-createevaluater",n}function L(t){let e=t.replace(x,O);return"ms-"===e.slice(0,3)&&(e="-"+e),e}function $(t,e){return e.toUpperCase()}function O(t){return"-"+t.toLowerCase()}function I(t){this.compiler=function(e,n){return function(t,e){if(!e||void 0===e.Fragment)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if("function"!=typeof e.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(t,e){return function(n,r,i,o){const u=Array.isArray(i.children),a=(0,F.PW)(n);return e(r,i,o,u,{columnNumber:a?a.column-1:void 0,fileName:t,lineNumber:a?a.line:void 0},void 0)}}(n,e.jsxDEV)}else{if("function"!=typeof e.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof e.jsxs)throw new TypeError("Expected `jsxs` in production options");i=e.jsx,o=e.jsxs,r=function(t,e,n,r){const u=Array.isArray(n.children)?o:i;return r?u(e,n,r):u(e,n)}}var i,o;const u={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:!1!==e.passKeys,passNode:e.passNode||!1,schema:"svg"===e.space?h.JW:h.qy,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==e.tableCellAlignToStyle},a=B(u,t,void 0);return a&&"string"!=typeof a?a:u.create(t,u.Fragment,{children:a||void 0},void 0)}(e,{filePath:n.path,...t})}}},5552:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|&colon;)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},5718:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const r={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},i)=>{if(!e)return 2.55*n;t/=360,e/=100;const o=(n/=100)<.5?n*(1+e):n+e-n*e,u=2*n-o;switch(i){case"r":return 255*r.hue2rgb(u,o,t+1/3);case"g":return 255*r.hue2rgb(u,o,t);case"b":return 255*r.hue2rgb(u,o,t-1/3)}},rgb2hsl:({r:t,g:e,b:n},r)=>{t/=255,e/=255,n/=255;const i=Math.max(t,e,n),o=Math.min(t,e,n),u=(i+o)/2;if("l"===r)return 100*u;if(i===o)return 0;const a=i-o;if("s"===r)return 100*(u>.5?a/(2-i-o):a/(i+o));switch(i){case t:return 60*((e-n)/a+(e<n?6:0));case e:return 60*((n-t)/a+2);case n:return 60*((t-e)/a+4);default:return-1}}},i={channel:r,lang:{clamp:(t,e,n)=>e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},5937:t=>{var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l="";function c(t){return t?t.replace(s,l):l}t.exports=function(t,s){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];s=s||{};var h=1,d=1;function f(t){var e=t.match(n);e&&(h+=e.length);var r=t.lastIndexOf("\n");d=~r?t.length-r:d+t.length}function p(){var t={line:h,column:d};return function(e){return e.position=new g(t),A(),e}}function g(t){this.start=t,this.end={line:h,column:d},this.source=s.source}g.prototype.content=t;var m=[];function F(e){var n=new Error(s.source+":"+h+":"+d+": "+e);if(n.reason=e,n.filename=s.source,n.line=h,n.column=d,n.source=t,!s.silent)throw n;m.push(n)}function y(e){var n=e.exec(t);if(n){var r=n[0];return f(r),t=t.slice(r.length),n}}function A(){y(r)}function C(t){var e;for(t=t||[];e=x();)!1!==e&&t.push(e);return t}function x(){var e=p();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;l!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,l===t.charAt(n-1))return F("End of comment missing");var r=t.slice(2,n-2);return d+=2,f(r),t=t.slice(n),d+=2,e({type:"comment",comment:r})}}function b(){var t=p(),n=y(i);if(n){if(x(),!y(o))return F("property missing ':'");var r=y(u),s=t({type:"declaration",property:c(n[0].replace(e,l)),value:r?c(r[0].replace(e,l)):l});return y(a),s}}return A(),function(){var t,e=[];for(C(e);t=b();)!1!==t&&(e.push(t),C(e));return e}()}},5944:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(5718),i=n(1028);const o=(t,e,n)=>{const o=i.A.parse(t),u=o[e],a=r.A.channel.clamp[e](u+n);return u!==a&&(o[e]=a),i.A.stringify(o)}},5992:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var r=n(8282),i=n(7342),o=n(8748),u=n(6956),a=n(1475),s=n(4517),l=n(1140),c=n(2888),h=Object.prototype.hasOwnProperty;const d=function(t){if(null==t)return!0;if((0,a.A)(t)&&((0,u.A)(t)||"string"==typeof t||"function"==typeof t.splice||(0,s.A)(t)||(0,c.A)(t)||(0,o.A)(t)))return!t.length;var e=(0,i.A)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,l.A)(t))return!(0,r.A)(t).length;for(var n in t)if(h.call(t,n))return!1;return!0}},6096:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(6979);const i=function(t,e){for(var n=t.length;n--;)if((0,r.A)(t[n][0],e))return n;return-1};var o=Array.prototype.splice;function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=function(){this.__data__=[],this.size=0},u.prototype.delete=function(t){var e=this.__data__,n=i(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))},u.prototype.get=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]},u.prototype.has=function(t){return i(this.__data__,t)>-1},u.prototype.set=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};const a=u},6124:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(9271),i=n(6979),o=Object.prototype.hasOwnProperty;const u=function(t,e,n){var u=t[e];o.call(t,e)&&(0,i.A)(u,n)&&(void 0!==n||e in t)||(0,r.A)(t,e,n)}},6135:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(5718),i=n(1028);const o=(t,e)=>{const n=i.A.parse(t);for(const t in e)n[t]=r.A.channel.clamp[t](e[t]);return i.A.stringify(n)}},6197:(t,e,n)=>{"use strict";n.d(e,{dc:()=>s,VG:()=>c});const r=function(t){if(null==t)return o;if("function"==typeof t)return i(t);if("object"==typeof t)return Array.isArray(t)?function(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=r(t[n]);return i((function(...t){let n=-1;for(;++n<e.length;)if(e[n].apply(this,t))return!0;return!1}))}(t):function(t){const e=t;return i((function(n){const r=n;let i;for(i in t)if(r[i]!==e[i])return!1;return!0}))}(t);if("string"==typeof t)return e=t,i((function(t){return t&&t.type===e}));var e;throw new Error("Expected function, string, or object as test")};function i(t){return function(e,n,r){return Boolean(function(t){return null!==t&&"object"==typeof t&&"type"in t}(e)&&t.call(this,e,"number"==typeof n?n:void 0,r||void 0))}}function o(){return!0}const u=[],a=!0,s=!1,l="skip";function c(t,e,n,i){let o;"function"==typeof e&&"function"!=typeof n?(i=n,n=e):o=e;const c=r(o),h=i?-1:1;!function t(r,o,d){const f=r&&"object"==typeof r?r:{};if("string"==typeof f.type){const t="string"==typeof f.tagName?f.tagName:"string"==typeof f.name?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+r.type+(t?"<"+t+">":"")+")"})}return p;function p(){let f,p,g,m=u;if((!e||c(r,o,d[d.length-1]||void 0))&&(m=function(t){return Array.isArray(t)?t:"number"==typeof t?[a,t]:null==t?u:[t]}(n(r,d)),m[0]===s))return m;if("children"in r&&r.children){const e=r;if(e.children&&m[0]!==l)for(p=(i?e.children.length:-1)+h,g=d.concat(e);p>-1&&p<e.children.length;){const n=e.children[p];if(f=t(n,p,g)(),f[0]===s)return f;p="number"==typeof f[1]?f[1]:p+h}}return m}}(t,void 0,[])()}},6264:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=Math.max;const i=function(t,e,n){return e=r(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,u=r(i.length-e,0),a=Array(u);++o<u;)a[o]=i[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=i[o];return s[e]=n(a),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,s)}}},6473:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(6979),i=n(1475),o=n(5378),u=n(7942);const a=function(t,e,n){if(!(0,u.A)(n))return!1;var a=typeof e;return!!("number"==a?(0,i.A)(n)&&(0,o.A)(e,n.length):"string"==a&&e in n)&&(0,r.A)(n[e],t)}},6713:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},6781:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(6096);var i=n(5436),o=n(3269);function u(t){var e=this.__data__=new r.A(t);this.size=e.size}u.prototype.clear=function(){this.__data__=new r.A,this.size=0},u.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},u.prototype.get=function(t){return this.__data__.get(t)},u.prototype.has=function(t){return this.__data__.has(t)},u.prototype.set=function(t,e){var n=this.__data__;if(n instanceof r.A){var u=n.__data__;if(!i.A||u.length<199)return u.push([t,e]),this.size=++n.size,this;n=this.__data__=new o.A(u)}return n.set(t,e),this.size=n.size,this};const a=u},6956:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=Array.isArray},6979:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){return t===e||t!=t&&e!=e}},7057:(t,e,n)=>{"use strict";n.d(e,{R:()=>a});var r=n(8084),i={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function o(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=u(t),e=u(e);const[n,r]=[t.x,t.y],[i,o]=[e.x,e.y],a=i-n,s=o-r;return{angle:Math.atan(s/a),deltaX:a,deltaY:s}}(0,r.K2)(o,"calculateDeltaAndAngle");var u=(0,r.K2)((t=>Array.isArray(t)?{x:t[0],y:t[1]}:t),"pointTransformer"),a=(0,r.K2)((t=>({x:(0,r.K2)((function(e,n,r){let a=0;const s=u(r[0]).x<u(r[r.length-1]).x?"left":"right";if(0===n&&Object.hasOwn(i,t.arrowTypeStart)){const{angle:e,deltaX:n}=o(r[0],r[1]);a=i[t.arrowTypeStart]*Math.cos(e)*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(i,t.arrowTypeEnd)){const{angle:e,deltaX:n}=o(r[r.length-1],r[r.length-2]);a=i[t.arrowTypeEnd]*Math.cos(e)*(n>=0?1:-1)}const l=Math.abs(u(e).x-u(r[r.length-1]).x),c=Math.abs(u(e).y-u(r[r.length-1]).y),h=Math.abs(u(e).x-u(r[0]).x),d=Math.abs(u(e).y-u(r[0]).y),f=i[t.arrowTypeStart],p=i[t.arrowTypeEnd];if(l<p&&l>0&&c<p){let t=p+1-l;t*="right"===s?-1:1,a-=t}if(h<f&&h>0&&d<f){let t=f+1-h;t*="right"===s?-1:1,a+=t}return u(e).x+a}),"x"),y:(0,r.K2)((function(e,n,r){let a=0;const s=u(r[0]).y<u(r[r.length-1]).y?"down":"up";if(0===n&&Object.hasOwn(i,t.arrowTypeStart)){const{angle:e,deltaY:n}=o(r[0],r[1]);a=i[t.arrowTypeStart]*Math.abs(Math.sin(e))*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(i,t.arrowTypeEnd)){const{angle:e,deltaY:n}=o(r[r.length-1],r[r.length-2]);a=i[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(n>=0?1:-1)}const l=Math.abs(u(e).y-u(r[r.length-1]).y),c=Math.abs(u(e).x-u(r[r.length-1]).x),h=Math.abs(u(e).y-u(r[0]).y),d=Math.abs(u(e).x-u(r[0]).x),f=i[t.arrowTypeStart],p=i[t.arrowTypeEnd];if(l<p&&l>0&&c<p){let t=p+1-l;t*="up"===s?-1:1,a-=t}if(h<f&&h>0&&d<f){let t=f+1-h;t*="up"===s?-1:1,a+=t}return u(e).y+a}),"y")})),"getLineFunctionsWithOffset")},7083:(t,e,n)=>{"use strict";function r(t,e,n){if(t&&t.length){const[r,i]=e,o=Math.PI/180*n,u=Math.cos(o),a=Math.sin(o);for(const e of t){const[t,n]=e;e[0]=(t-r)*u-(n-i)*a+r,e[1]=(t-r)*a+(n-i)*u+i}}}function i(t,e){return t[0]===e[0]&&t[1]===e[1]}function o(t,e,n,o=1){const u=n,a=Math.max(e,.1),s=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,l=[0,0];if(u)for(const t of s)r(t,l,u);const c=function(t,e,n){const r=[];for(const e of t){const t=[...e];i(t[0],t[t.length-1])||t.push([t[0][0],t[0][1]]),t.length>2&&r.push(t)}const o=[];e=Math.max(e,.1);const u=[];for(const t of r)for(let e=0;e<t.length-1;e++){const n=t[e],r=t[e+1];if(n[1]!==r[1]){const t=Math.min(n[1],r[1]);u.push({ymin:t,ymax:Math.max(n[1],r[1]),x:t===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(u.sort(((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax))),!u.length)return o;let a=[],s=u[0].ymin,l=0;for(;a.length||u.length;){if(u.length){let t=-1;for(let e=0;e<u.length&&!(u[e].ymin>s);e++)t=e;u.splice(0,t+1).forEach((t=>{a.push({s,edge:t})}))}if(a=a.filter((t=>!(t.edge.ymax<=s))),a.sort(((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x))),(1!==n||l%e==0)&&a.length>1)for(let t=0;t<a.length;t+=2){const e=t+1;if(e>=a.length)break;const n=a[t].edge,r=a[e].edge;o.push([[Math.round(n.x),s],[Math.round(r.x),s]])}s+=n,a.forEach((t=>{t.edge.x=t.edge.x+n*t.edge.islope})),l++}return o}(s,a,o);if(u){for(const t of s)r(t,l,-u);!function(t,e,n){const i=[];t.forEach((t=>i.push(...t))),r(i,e,n)}(c,l,-u)}return c}function u(t,e){var n;const r=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let u=1;return e.roughness>=1&&((null===(n=e.randomizer)||void 0===n?void 0:n.next())||Math.random())>.7&&(u=i),o(t,i,r,u||1)}n.d(e,{A:()=>it});class a{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){const n=u(t,e);return{type:"fillSketch",ops:this.renderLines(n,e)}}renderLines(t,e){const n=[];for(const r of t)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],e));return n}}function s(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class l extends a{fillPolygons(t,e){let n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);const r=u(t,Object.assign({},e,{hachureGap:n})),i=Math.PI/180*e.hachureAngle,o=[],a=.5*n*Math.cos(i),l=.5*n*Math.sin(i);for(const[t,e]of r)s([t,e])&&o.push([[t[0]-a,t[1]+l],[...e]],[[t[0]+a,t[1]-l],[...e]]);return{type:"fillSketch",ops:this.renderLines(o,e)}}}class c extends a{fillPolygons(t,e){const n=this._fillPolygons(t,e),r=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),i=this._fillPolygons(t,r);return n.ops=n.ops.concat(i.ops),n}}class h{constructor(t){this.helper=t}fillPolygons(t,e){const n=u(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(n,e)}dotsOnLines(t,e){const n=[];let r=e.hachureGap;r<0&&(r=4*e.strokeWidth),r=Math.max(r,.1);let i=e.fillWeight;i<0&&(i=e.strokeWidth/2);const o=r/4;for(const u of t){const t=s(u),a=t/r,l=Math.ceil(a)-1,c=t-l*r,h=(u[0][0]+u[1][0])/2-r/4,d=Math.min(u[0][1],u[1][1]);for(let t=0;t<l;t++){const u=d+c+t*r,a=h-o+2*Math.random()*o,s=u-o+2*Math.random()*o,l=this.helper.ellipse(a,s,i,i,e);n.push(...l.ops)}}return{type:"fillSketch",ops:n}}}class d{constructor(t){this.helper=t}fillPolygons(t,e){const n=u(t,e);return{type:"fillSketch",ops:this.dashedLine(n,e)}}dashedLine(t,e){const n=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,r=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,i=[];return t.forEach((t=>{const o=s(t),u=Math.floor(o/(n+r)),a=(o+r-u*(n+r))/2;let l=t[0],c=t[1];l[0]>c[0]&&(l=t[1],c=t[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let t=0;t<u;t++){const o=t*(n+r),u=o+n,s=[l[0]+o*Math.cos(h)+a*Math.cos(h),l[1]+o*Math.sin(h)+a*Math.sin(h)],c=[l[0]+u*Math.cos(h)+a*Math.cos(h),l[1]+u*Math.sin(h)+a*Math.sin(h)];i.push(...this.helper.doubleLineOps(s[0],s[1],c[0],c[1],e))}})),i}}class f{constructor(t){this.helper=t}fillPolygons(t,e){const n=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,r=e.zigzagOffset<0?n:e.zigzagOffset,i=u(t,e=Object.assign({},e,{hachureGap:n+r}));return{type:"fillSketch",ops:this.zigzagLines(i,r,e)}}zigzagLines(t,e,n){const r=[];return t.forEach((t=>{const i=s(t),o=Math.round(i/(2*e));let u=t[0],a=t[1];u[0]>a[0]&&(u=t[1],a=t[0]);const l=Math.atan((a[1]-u[1])/(a[0]-u[0]));for(let t=0;t<o;t++){const i=2*t*e,o=2*(t+1)*e,a=Math.sqrt(2*Math.pow(e,2)),s=[u[0]+i*Math.cos(l),u[1]+i*Math.sin(l)],c=[u[0]+o*Math.cos(l),u[1]+o*Math.sin(l)],h=[s[0]+a*Math.cos(l+Math.PI/4),s[1]+a*Math.sin(l+Math.PI/4)];r.push(...this.helper.doubleLineOps(s[0],s[1],h[0],h[1],n),...this.helper.doubleLineOps(h[0],h[1],c[0],c[1],n))}})),r}}const p={};class g{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const m={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function F(t,e){return t.type===e}function y(t){const e=[],n=function(t){const e=new Array;for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t);let r="BOD",i=0,o=n[i];for(;!F(o,2);){let u=0;const a=[];if("BOD"===r){if("M"!==o.text&&"m"!==o.text)return y("M0,0"+t);i++,u=m[o.text],r=o.text}else F(o,1)?u=m[r]:(i++,u=m[o.text],r=o.text);if(!(i+u<n.length))throw new Error("Path data ended short");for(let t=i;t<i+u;t++){const e=n[t];if(!F(e,1))throw new Error("Param not a number: "+r+","+e.text);a[a.length]=+e.text}if("number"!=typeof m[r])throw new Error("Bad segment: "+r);{const t={key:r,data:a};e.push(t),i+=u,o=n[i],"M"===r&&(r="L"),"m"===r&&(r="l")}}return e}function A(t){let e=0,n=0,r=0,i=0;const o=[];for(const{key:u,data:a}of t)switch(u){case"M":o.push({key:"M",data:[...a]}),[e,n]=a,[r,i]=a;break;case"m":e+=a[0],n+=a[1],o.push({key:"M",data:[e,n]}),r=e,i=n;break;case"L":o.push({key:"L",data:[...a]}),[e,n]=a;break;case"l":e+=a[0],n+=a[1],o.push({key:"L",data:[e,n]});break;case"C":o.push({key:"C",data:[...a]}),e=a[4],n=a[5];break;case"c":{const t=a.map(((t,r)=>r%2?t+n:t+e));o.push({key:"C",data:t}),e=t[4],n=t[5];break}case"Q":o.push({key:"Q",data:[...a]}),e=a[2],n=a[3];break;case"q":{const t=a.map(((t,r)=>r%2?t+n:t+e));o.push({key:"Q",data:t}),e=t[2],n=t[3];break}case"A":o.push({key:"A",data:[...a]}),e=a[5],n=a[6];break;case"a":e+=a[5],n+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,n]});break;case"H":o.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...a]}),e=a[2],n=a[3];break;case"s":{const t=a.map(((t,r)=>r%2?t+n:t+e));o.push({key:"S",data:t}),e=t[2],n=t[3];break}case"T":o.push({key:"T",data:[...a]}),e=a[0],n=a[1];break;case"t":e+=a[0],n+=a[1],o.push({key:"T",data:[e,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=r,n=i}return o}function C(t){const e=[];let n="",r=0,i=0,o=0,u=0,a=0,s=0;for(const{key:l,data:c}of t){switch(l){case"M":e.push({key:"M",data:[...c]}),[r,i]=c,[o,u]=c;break;case"C":e.push({key:"C",data:[...c]}),r=c[4],i=c[5],a=c[2],s=c[3];break;case"L":e.push({key:"L",data:[...c]}),[r,i]=c;break;case"H":r=c[0],e.push({key:"L",data:[r,i]});break;case"V":i=c[0],e.push({key:"L",data:[r,i]});break;case"S":{let t=0,o=0;"C"===n||"S"===n?(t=r+(r-a),o=i+(i-s)):(t=r,o=i),e.push({key:"C",data:[t,o,...c]}),a=c[0],s=c[1],r=c[2],i=c[3];break}case"T":{const[t,o]=c;let u=0,l=0;"Q"===n||"T"===n?(u=r+(r-a),l=i+(i-s)):(u=r,l=i);const h=r+2*(u-r)/3,d=i+2*(l-i)/3,f=t+2*(u-t)/3,p=o+2*(l-o)/3;e.push({key:"C",data:[h,d,f,p,t,o]}),a=u,s=l,r=t,i=o;break}case"Q":{const[t,n,o,u]=c,l=r+2*(t-r)/3,h=i+2*(n-i)/3,d=o+2*(t-o)/3,f=u+2*(n-u)/3;e.push({key:"C",data:[l,h,d,f,o,u]}),a=t,s=n,r=o,i=u;break}case"A":{const t=Math.abs(c[0]),n=Math.abs(c[1]),o=c[2],u=c[3],a=c[4],s=c[5],l=c[6];0===t||0===n?(e.push({key:"C",data:[r,i,s,l,s,l]}),r=s,i=l):r===s&&i===l||(b(r,i,s,l,t,n,o,u,a).forEach((function(t){e.push({key:"C",data:t})})),r=s,i=l);break}case"Z":e.push({key:"Z",data:[]}),r=o,i=u}n=l}return e}function x(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function b(t,e,n,r,i,o,u,a,s,l){const c=(h=u,Math.PI*h/180);var h;let d=[],f=0,p=0,g=0,m=0;if(l)[f,p,g,m]=l;else{[t,e]=x(t,e,-c),[n,r]=x(n,r,-c);const u=(t-n)/2,l=(e-r)/2;let h=u*u/(i*i)+l*l/(o*o);h>1&&(h=Math.sqrt(h),i*=h,o*=h);const d=i*i,F=o*o,y=d*F-d*l*l-F*u*u,A=d*l*l+F*u*u,C=(a===s?-1:1)*Math.sqrt(Math.abs(y/A));g=C*i*l/o+(t+n)/2,m=C*-o*u/i+(e+r)/2,f=Math.asin(parseFloat(((e-m)/o).toFixed(9))),p=Math.asin(parseFloat(((r-m)/o).toFixed(9))),t<g&&(f=Math.PI-f),n<g&&(p=Math.PI-p),f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),s&&f>p&&(f-=2*Math.PI),!s&&p>f&&(p-=2*Math.PI)}let F=p-f;if(Math.abs(F)>120*Math.PI/180){const t=p,e=n,a=r;p=s&&p>f?f+120*Math.PI/180*1:f+120*Math.PI/180*-1,d=b(n=g+i*Math.cos(p),r=m+o*Math.sin(p),e,a,i,o,u,0,s,[p,t,g,m])}F=p-f;const y=Math.cos(f),A=Math.sin(f),C=Math.cos(p),D=Math.sin(p),E=Math.tan(F/4),k=4/3*i*E,B=4/3*o*E,w=[t,e],v=[t+k*A,e-B*y],_=[n+k*D,r-B*C],S=[n,r];if(v[0]=2*w[0]-v[0],v[1]=2*w[1]-v[1],l)return[v,_,S].concat(d);{d=[v,_,S].concat(d);const t=[];for(let e=0;e<d.length;e+=3){const n=x(d[e][0],d[e][1],c),r=x(d[e+1][0],d[e+1][1],c),i=x(d[e+2][0],d[e+2][1],c);t.push([n[0],n[1],r[0],r[1],i[0],i[1]])}return t}}const D={randOffset:function(t,e){return I(t,e)},randOffsetWithRange:function(t,e,n){return O(t,e,n)},ellipse:function(t,e,n,r,i){return v(t,e,i,w(n,r,i)).opset},doubleLineOps:function(t,e,n,r,i){return R(t,e,n,r,i,!0)}};function E(t,e,n,r,i){return{type:"path",ops:R(t,e,n,r,i)}}function k(t,e,n){const r=(t||[]).length;if(r>2){const i=[];for(let e=0;e<r-1;e++)i.push(...R(t[e][0],t[e][1],t[e+1][0],t[e+1][1],n));return e&&i.push(...R(t[r-1][0],t[r-1][1],t[0][0],t[0][1],n)),{type:"path",ops:i}}return 2===r?E(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function B(t,e){if(t.length){const n="number"==typeof t[0][0]?[t]:t,r=z(n[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:z(n[0],1.5*(1+.22*e.roughness),L(e));for(let t=1;t<n.length;t++){const o=n[t];if(o.length){const t=z(o,1*(1+.2*e.roughness),e),n=e.disableMultiStroke?[]:z(o,1.5*(1+.22*e.roughness),L(e));for(const e of t)"move"!==e.op&&r.push(e);for(const t of n)"move"!==t.op&&i.push(t)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function w(t,e,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),o=2*Math.PI/i;let u=Math.abs(t/2),a=Math.abs(e/2);const s=1-n.curveFitting;return u+=I(u*s,n),a+=I(a*s,n),{increment:o,rx:u,ry:a}}function v(t,e,n,r){const[i,o]=j(r.increment,t,e,r.rx,r.ry,1,r.increment*O(.1,O(.4,1,n),n),n);let u=N(i,null,n);if(!n.disableMultiStroke&&0!==n.roughness){const[i]=j(r.increment,t,e,r.rx,r.ry,1.5,0,n),o=N(i,null,n);u=u.concat(o)}return{estimatedPoints:o,opset:{type:"path",ops:u}}}function _(t,e,n,r,i,o,u,a,s){const l=t,c=e;let h=Math.abs(n/2),d=Math.abs(r/2);h+=I(.01*h,s),d+=I(.01*d,s);let f=i,p=o;for(;f<0;)f+=2*Math.PI,p+=2*Math.PI;p-f>2*Math.PI&&(f=0,p=2*Math.PI);const g=2*Math.PI/s.curveStepCount,m=Math.min(g/2,(p-f)/2),F=q(m,l,c,h,d,f,p,1,s);if(!s.disableMultiStroke){const t=q(m,l,c,h,d,f,p,1.5,s);F.push(...t)}return u&&(a?F.push(...R(l,c,l+h*Math.cos(f),c+d*Math.sin(f),s),...R(l,c,l+h*Math.cos(p),c+d*Math.sin(p),s)):F.push({op:"lineTo",data:[l,c]},{op:"lineTo",data:[l+h*Math.cos(f),c+d*Math.sin(f)]})),{type:"path",ops:F}}function S(t,e){const n=C(A(y(t))),r=[];let i=[0,0],o=[0,0];for(const{key:t,data:u}of n)switch(t){case"M":o=[u[0],u[1]],i=[u[0],u[1]];break;case"L":r.push(...R(o[0],o[1],u[0],u[1],e)),o=[u[0],u[1]];break;case"C":{const[t,n,i,a,s,l]=u;r.push(...K(t,n,i,a,s,l,o,e)),o=[s,l];break}case"Z":r.push(...R(o[0],o[1],i[0],i[1],e)),o=[i[0],i[1]]}return{type:"path",ops:r}}function T(t,e){const n=[];for(const r of t)if(r.length){const t=e.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:"move",data:[r[0][0]+I(t,e),r[0][1]+I(t,e)]});for(let o=1;o<i;o++)n.push({op:"lineTo",data:[r[o][0]+I(t,e),r[o][1]+I(t,e)]})}}return{type:"fillPath",ops:n}}function M(t,e){return function(t,e){let n=t.fillStyle||"hachure";if(!p[n])switch(n){case"zigzag":p[n]||(p[n]=new l(e));break;case"cross-hatch":p[n]||(p[n]=new c(e));break;case"dots":p[n]||(p[n]=new h(e));break;case"dashed":p[n]||(p[n]=new d(e));break;case"zigzag-line":p[n]||(p[n]=new f(e));break;default:n="hachure",p[n]||(p[n]=new a(e))}return p[n]}(e,D).fillPolygons(t,e)}function L(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function $(t){return t.randomizer||(t.randomizer=new g(t.seed||0)),t.randomizer.next()}function O(t,e,n,r=1){return n.roughness*r*($(n)*(e-t)+t)}function I(t,e,n=1){return O(-t,t,e,n)}function R(t,e,n,r,i,o=!1){const u=o?i.disableMultiStrokeFill:i.disableMultiStroke,a=P(t,e,n,r,i,!0,!1);if(u)return a;const s=P(t,e,n,r,i,!0,!0);return a.concat(s)}function P(t,e,n,r,i,o,u){const a=Math.pow(t-n,2)+Math.pow(e-r,2),s=Math.sqrt(a);let l=1;l=s<200?1:s>500?.4:-.0016668*s+1.233334;let c=i.maxRandomnessOffset||0;c*c*100>a&&(c=s/10);const h=c/2,d=.2+.2*$(i);let f=i.bowing*i.maxRandomnessOffset*(r-e)/200,p=i.bowing*i.maxRandomnessOffset*(t-n)/200;f=I(f,i,l),p=I(p,i,l);const g=[],m=()=>I(h,i,l),F=()=>I(c,i,l),y=i.preserveVertices;return o&&(u?g.push({op:"move",data:[t+(y?0:m()),e+(y?0:m())]}):g.push({op:"move",data:[t+(y?0:I(c,i,l)),e+(y?0:I(c,i,l))]})),u?g.push({op:"bcurveTo",data:[f+t+(n-t)*d+m(),p+e+(r-e)*d+m(),f+t+2*(n-t)*d+m(),p+e+2*(r-e)*d+m(),n+(y?0:m()),r+(y?0:m())]}):g.push({op:"bcurveTo",data:[f+t+(n-t)*d+F(),p+e+(r-e)*d+F(),f+t+2*(n-t)*d+F(),p+e+2*(r-e)*d+F(),n+(y?0:F()),r+(y?0:F())]}),g}function z(t,e,n){if(!t.length)return[];const r=[];r.push([t[0][0]+I(e,n),t[0][1]+I(e,n)]),r.push([t[0][0]+I(e,n),t[0][1]+I(e,n)]);for(let i=1;i<t.length;i++)r.push([t[i][0]+I(e,n),t[i][1]+I(e,n)]),i===t.length-1&&r.push([t[i][0]+I(e,n),t[i][1]+I(e,n)]);return N(r,null,n)}function N(t,e,n){const r=t.length,i=[];if(r>3){const o=[],u=1-n.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<r;e++){const n=t[e];o[0]=[n[0],n[1]],o[1]=[n[0]+(u*t[e+1][0]-u*t[e-1][0])/6,n[1]+(u*t[e+1][1]-u*t[e-1][1])/6],o[2]=[t[e+1][0]+(u*t[e][0]-u*t[e+2][0])/6,t[e+1][1]+(u*t[e][1]-u*t[e+2][1])/6],o[3]=[t[e+1][0],t[e+1][1]],i.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(e&&2===e.length){const t=n.maxRandomnessOffset;i.push({op:"lineTo",data:[e[0]+I(t,n),e[1]+I(t,n)]})}}else 3===r?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===r&&i.push(...P(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return i}function j(t,e,n,r,i,o,u,a){const s=[],l=[];if(0===a.roughness){t/=4,l.push([e+r*Math.cos(-t),n+i*Math.sin(-t)]);for(let o=0;o<=2*Math.PI;o+=t){const t=[e+r*Math.cos(o),n+i*Math.sin(o)];s.push(t),l.push(t)}l.push([e+r*Math.cos(0),n+i*Math.sin(0)]),l.push([e+r*Math.cos(t),n+i*Math.sin(t)])}else{const c=I(.5,a)-Math.PI/2;l.push([I(o,a)+e+.9*r*Math.cos(c-t),I(o,a)+n+.9*i*Math.sin(c-t)]);const h=2*Math.PI+c-.01;for(let u=c;u<h;u+=t){const t=[I(o,a)+e+r*Math.cos(u),I(o,a)+n+i*Math.sin(u)];s.push(t),l.push(t)}l.push([I(o,a)+e+r*Math.cos(c+2*Math.PI+.5*u),I(o,a)+n+i*Math.sin(c+2*Math.PI+.5*u)]),l.push([I(o,a)+e+.98*r*Math.cos(c+u),I(o,a)+n+.98*i*Math.sin(c+u)]),l.push([I(o,a)+e+.9*r*Math.cos(c+.5*u),I(o,a)+n+.9*i*Math.sin(c+.5*u)])}return[l,s]}function q(t,e,n,r,i,o,u,a,s){const l=o+I(.1,s),c=[];c.push([I(a,s)+e+.9*r*Math.cos(l-t),I(a,s)+n+.9*i*Math.sin(l-t)]);for(let o=l;o<=u;o+=t)c.push([I(a,s)+e+r*Math.cos(o),I(a,s)+n+i*Math.sin(o)]);return c.push([e+r*Math.cos(u),n+i*Math.sin(u)]),c.push([e+r*Math.cos(u),n+i*Math.sin(u)]),N(c,null,s)}function K(t,e,n,r,i,o,u,a){const s=[],l=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let c=[0,0];const h=a.disableMultiStroke?1:2,d=a.preserveVertices;for(let f=0;f<h;f++)0===f?s.push({op:"move",data:[u[0],u[1]]}):s.push({op:"move",data:[u[0]+(d?0:I(l[0],a)),u[1]+(d?0:I(l[0],a))]}),c=d?[i,o]:[i+I(l[f],a),o+I(l[f],a)],s.push({op:"bcurveTo",data:[t+I(l[f],a),e+I(l[f],a),n+I(l[f],a),r+I(l[f],a),c[0],c[1]]});return s}function W(t){return[...t]}function H(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(3===n)r.push(W(t[0]),W(t[1]),W(t[2]),W(t[2]));else{const n=[];n.push(t[0],t[0]);for(let e=1;e<t.length;e++)n.push(t[e]),e===t.length-1&&n.push(t[e]);const i=[],o=1-e;r.push(W(n[0]));for(let t=1;t+2<n.length;t++){const e=n[t];i[0]=[e[0],e[1]],i[1]=[e[0]+(o*n[t+1][0]-o*n[t-1][0])/6,e[1]+(o*n[t+1][1]-o*n[t-1][1])/6],i[2]=[n[t+1][0]+(o*n[t][0]-o*n[t+2][0])/6,n[t+1][1]+(o*n[t][1]-o*n[t+2][1])/6],i[3]=[n[t+1][0],n[t+1][1]],r.push(i[1],i[2],i[3])}}return r}function U(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function Y(t,e,n){const r=U(e,n);if(0===r)return U(t,e);let i=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/r;return i=Math.max(0,Math.min(1,i)),U(t,G(e,n,i))}function G(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function V(t,e,n,r){const i=r||[];if(function(t,e){const n=t[e+0],r=t[e+1],i=t[e+2],o=t[e+3];let u=3*r[0]-2*n[0]-o[0];u*=u;let a=3*r[1]-2*n[1]-o[1];a*=a;let s=3*i[0]-2*o[0]-n[0];s*=s;let l=3*i[1]-2*o[1]-n[1];return l*=l,u<s&&(u=s),a<l&&(a=l),u+a}(t,e)<n){const n=t[e+0];i.length?(o=i[i.length-1],u=n,Math.sqrt(U(o,u))>1&&i.push(n)):i.push(n),i.push(t[e+3])}else{const r=.5,o=t[e+0],u=t[e+1],a=t[e+2],s=t[e+3],l=G(o,u,r),c=G(u,a,r),h=G(a,s,r),d=G(l,c,r),f=G(c,h,r),p=G(d,f,r);V([o,l,d,p],0,n,i),V([p,f,h,s],0,n,i)}var o,u;return i}function X(t,e){return Z(t,0,t.length,e)}function Z(t,e,n,r,i){const o=i||[],u=t[e],a=t[n-1];let s=0,l=1;for(let r=e+1;r<n-1;++r){const e=Y(t[r],u,a);e>s&&(s=e,l=r)}return Math.sqrt(s)>r?(Z(t,e,l+1,r,o),Z(t,l,n,r,o)):(o.length||o.push(u),o.push(a)),o}function Q(t,e=.15,n){const r=[],i=(t.length-1)/3;for(let n=0;n<i;n++)V(t,3*n,e,r);return n&&n>0?Z(r,0,r.length,n):r}const J="none";class tt{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,n){return{shape:t,sets:e||[],options:n||this.defaultOptions}}line(t,e,n,r,i){const o=this._o(i);return this._d("line",[E(t,e,n,r,o)],o)}rectangle(t,e,n,r,i){const o=this._o(i),u=[],a=function(t,e,n,r,i){return function(t,e){return k(t,!0,e)}([[t,e],[t+n,e],[t+n,e+r],[t,e+r]],i)}(t,e,n,r,o);if(o.fill){const i=[[t,e],[t+n,e],[t+n,e+r],[t,e+r]];"solid"===o.fillStyle?u.push(T([i],o)):u.push(M([i],o))}return o.stroke!==J&&u.push(a),this._d("rectangle",u,o)}ellipse(t,e,n,r,i){const o=this._o(i),u=[],a=w(n,r,o),s=v(t,e,o,a);if(o.fill)if("solid"===o.fillStyle){const n=v(t,e,o,a).opset;n.type="fillPath",u.push(n)}else u.push(M([s.estimatedPoints],o));return o.stroke!==J&&u.push(s.opset),this._d("ellipse",u,o)}circle(t,e,n,r){const i=this.ellipse(t,e,n,n,r);return i.shape="circle",i}linearPath(t,e){const n=this._o(e);return this._d("linearPath",[k(t,!1,n)],n)}arc(t,e,n,r,i,o,u=!1,a){const s=this._o(a),l=[],c=_(t,e,n,r,i,o,u,!0,s);if(u&&s.fill)if("solid"===s.fillStyle){const u=Object.assign({},s);u.disableMultiStroke=!0;const a=_(t,e,n,r,i,o,!0,!1,u);a.type="fillPath",l.push(a)}else l.push(function(t,e,n,r,i,o,u){const a=t,s=e;let l=Math.abs(n/2),c=Math.abs(r/2);l+=I(.01*l,u),c+=I(.01*c,u);let h=i,d=o;for(;h<0;)h+=2*Math.PI,d+=2*Math.PI;d-h>2*Math.PI&&(h=0,d=2*Math.PI);const f=(d-h)/u.curveStepCount,p=[];for(let t=h;t<=d;t+=f)p.push([a+l*Math.cos(t),s+c*Math.sin(t)]);return p.push([a+l*Math.cos(d),s+c*Math.sin(d)]),p.push([a,s]),M([p],u)}(t,e,n,r,i,o,s));return s.stroke!==J&&l.push(c),this._d("arc",l,s)}curve(t,e){const n=this._o(e),r=[],i=B(t,n);if(n.fill&&n.fill!==J)if("solid"===n.fillStyle){const e=B(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{const e=[],i=t;if(i.length){const t="number"==typeof i[0][0]?[i]:i;for(const r of t)r.length<3?e.push(...r):3===r.length?e.push(...Q(H([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):e.push(...Q(H(r),10,(1+n.roughness)/2))}e.length&&r.push(M([e],n))}return n.stroke!==J&&r.push(i),this._d("curve",r,n)}polygon(t,e){const n=this._o(e),r=[],i=k(t,!0,n);return n.fill&&("solid"===n.fillStyle?r.push(T([t],n)):r.push(M([t],n))),n.stroke!==J&&r.push(i),this._d("polygon",r,n)}path(t,e){const n=this._o(e),r=[];if(!t)return this._d("path",r,n);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&"transparent"!==n.fill&&n.fill!==J,o=n.stroke!==J,u=!!(n.simplification&&n.simplification<1),a=function(t,e,n){const r=C(A(y(t))),i=[];let o=[],u=[0,0],a=[];const s=()=>{a.length>=4&&o.push(...Q(a,1)),a=[]},l=()=>{s(),o.length&&(i.push(o),o=[])};for(const{key:t,data:e}of r)switch(t){case"M":l(),u=[e[0],e[1]],o.push(u);break;case"L":s(),o.push([e[0],e[1]]);break;case"C":if(!a.length){const t=o.length?o[o.length-1]:u;a.push([t[0],t[1]])}a.push([e[0],e[1]]),a.push([e[2],e[3]]),a.push([e[4],e[5]]);break;case"Z":s(),o.push([u[0],u[1]])}if(l(),!n)return i;const c=[];for(const t of i){const e=X(t,n);e.length&&c.push(e)}return c}(t,0,u?4-4*(n.simplification||1):(1+n.roughness)/2),s=S(t,n);if(i)if("solid"===n.fillStyle)if(1===a.length){const e=S(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else r.push(T(a,n));else r.push(M(a,n));return o&&(u?a.forEach((t=>{r.push(k(t,!1,n))})):r.push(s)),this._d("path",r,n)}opsToPath(t,e){let n="";for(const r of t.ops){const t="number"==typeof e&&e>=0?r.data.map((t=>+t.toFixed(e))):r.data;switch(r.op){case"move":n+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":n+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":n+=`L${t[0]} ${t[1]} `}}return n.trim()}toPaths(t){const e=t.sets||[],n=t.options||this.defaultOptions,r=[];for(const t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:J};break;case"fillPath":e={d:this.opsToPath(t),stroke:J,strokeWidth:0,fill:n.fill||J};break;case"fillSketch":e=this.fillSketch(t,n)}e&&r.push(e)}return r}fillSketch(t,e){let n=e.fillWeight;return n<0&&(n=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||J,strokeWidth:n,fill:J}}_mergedShape(t){return t.filter(((t,e)=>0===e||"move"!==t.op))}}class et{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new tt(e)}draw(t){const e=t.sets||[],n=t.options||this.getDefaultOptions(),r=this.ctx,i=t.options.fixedDecimalPlaceDigits;for(const o of e)switch(o.type){case"path":r.save(),r.strokeStyle="none"===n.stroke?"transparent":n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,o,i),r.restore();break;case"fillPath":{r.save(),r.fillStyle=n.fill||"";const e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(r,o,i,e),r.restore();break}case"fillSketch":this.fillSketch(r,o,n)}}fillSketch(t,e,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),t.save(),n.fillLineDash&&t.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(t.lineDashOffset=n.fillLineDashOffset),t.strokeStyle=n.fill||"",t.lineWidth=r,this._drawToContext(t,e,n.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,n,r="nonzero"){t.beginPath();for(const r of e.ops){const e="number"==typeof n&&n>=0?r.data.map((t=>+t.toFixed(n))):r.data;switch(r.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(r):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,n,r,i){const o=this.gen.line(t,e,n,r,i);return this.draw(o),o}rectangle(t,e,n,r,i){const o=this.gen.rectangle(t,e,n,r,i);return this.draw(o),o}ellipse(t,e,n,r,i){const o=this.gen.ellipse(t,e,n,r,i);return this.draw(o),o}circle(t,e,n,r){const i=this.gen.circle(t,e,n,r);return this.draw(i),i}linearPath(t,e){const n=this.gen.linearPath(t,e);return this.draw(n),n}polygon(t,e){const n=this.gen.polygon(t,e);return this.draw(n),n}arc(t,e,n,r,i,o,u=!1,a){const s=this.gen.arc(t,e,n,r,i,o,u,a);return this.draw(s),s}curve(t,e){const n=this.gen.curve(t,e);return this.draw(n),n}path(t,e){const n=this.gen.path(t,e);return this.draw(n),n}}const nt="http://www.w3.org/2000/svg";class rt{constructor(t,e){this.svg=t,this.gen=new tt(e)}draw(t){const e=t.sets||[],n=t.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(nt,"g"),o=t.options.fixedDecimalPlaceDigits;for(const u of e){let e=null;switch(u.type){case"path":e=r.createElementNS(nt,"path"),e.setAttribute("d",this.opsToPath(u,o)),e.setAttribute("stroke",n.stroke),e.setAttribute("stroke-width",n.strokeWidth+""),e.setAttribute("fill","none"),n.strokeLineDash&&e.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":e=r.createElementNS(nt,"path"),e.setAttribute("d",this.opsToPath(u,o)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",n.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(r,u,n)}e&&i.appendChild(e)}return i}fillSketch(t,e,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);const i=t.createElementNS(nt,"path");return i.setAttribute("d",this.opsToPath(e,n.fixedDecimalPlaceDigits)),i.setAttribute("stroke",n.fill||""),i.setAttribute("stroke-width",r+""),i.setAttribute("fill","none"),n.fillLineDash&&i.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,n,r,i){const o=this.gen.line(t,e,n,r,i);return this.draw(o)}rectangle(t,e,n,r,i){const o=this.gen.rectangle(t,e,n,r,i);return this.draw(o)}ellipse(t,e,n,r,i){const o=this.gen.ellipse(t,e,n,r,i);return this.draw(o)}circle(t,e,n,r){const i=this.gen.circle(t,e,n,r);return this.draw(i)}linearPath(t,e){const n=this.gen.linearPath(t,e);return this.draw(n)}polygon(t,e){const n=this.gen.polygon(t,e);return this.draw(n)}arc(t,e,n,r,i,o,u=!1,a){const s=this.gen.arc(t,e,n,r,i,o,u,a);return this.draw(s)}curve(t,e){const n=this.gen.curve(t,e);return this.draw(n)}path(t,e){const n=this.gen.path(t,e);return this.draw(n)}}var it={canvas:(t,e)=>new et(t,e),svg:(t,e)=>new rt(t,e),generator:t=>new tt(t),newSeed:()=>tt.newSeed()}},7244:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){return function(n){return t(e(n))}}},7252:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(8748),i=n(6956),o=n(4517),u=n(5378),a=n(2888),s=Object.prototype.hasOwnProperty;const l=function(t,e){var n=(0,i.A)(t),l=!n&&(0,r.A)(t),c=!n&&!l&&(0,o.A)(t),h=!n&&!l&&!c&&(0,a.A)(t),d=n||l||c||h,f=d?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],p=f.length;for(var g in t)!e&&!s.call(t,g)||d&&("length"==g||c&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,u.A)(g,p))||f.push(g);return f}},7313:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return null!=t&&"object"==typeof t}},7342:(t,e,n)=>{"use strict";n.d(e,{A:()=>D});var r=n(123),i=n(9600);const o=(0,r.A)(i.A,"DataView");var u=n(5436);const a=(0,r.A)(i.A,"Promise");var s=n(8574);const l=(0,r.A)(i.A,"WeakMap");var c=n(4044),h=n(1548),d="[object Map]",f="[object Promise]",p="[object Set]",g="[object WeakMap]",m="[object DataView]",F=(0,h.A)(o),y=(0,h.A)(u.A),A=(0,h.A)(a),C=(0,h.A)(s.A),x=(0,h.A)(l),b=c.A;(o&&b(new o(new ArrayBuffer(1)))!=m||u.A&&b(new u.A)!=d||a&&b(a.resolve())!=f||s.A&&b(new s.A)!=p||l&&b(new l)!=g)&&(b=function(t){var e=(0,c.A)(t),n="[object Object]"==e?t.constructor:void 0,r=n?(0,h.A)(n):"";if(r)switch(r){case F:return m;case y:return d;case A:return f;case C:return p;case x:return g}return e});const D=b},7367:(t,e,n)=>{"use strict";n.d(e,{A:()=>He});var r=n(2553),i=n(1535),o=(n(4386),n(7057),n(4857),n(2880),n(7996),n(347)),u=n(5323),a=n(5095),s=n(5162),l=n(8084),c=n(8968),h=n(3213),d="comm",f="rule",p="decl",g=Math.abs,m=String.fromCharCode;function F(t){return t.trim()}function y(t,e,n){return t.replace(e,n)}function A(t,e,n){return t.indexOf(e,n)}function C(t,e){return 0|t.charCodeAt(e)}function x(t,e,n){return t.slice(e,n)}function b(t){return t.length}function D(t,e){return e.push(t),t}function E(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function k(t,e,n,r){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case"@namespace":case p:return t.return=t.return||t.value;case d:return"";case"@keyframes":return t.return=t.value+"{"+E(t.children,r)+"}";case f:if(!b(t.value=t.props.join(",")))return""}return b(n=E(t.children,r))?t.return=t.value+"{"+n+"}":""}Object.assign;var B=1,w=1,v=0,_=0,S=0,T="";function M(t,e,n,r,i,o,u,a){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:B,column:w,length:u,return:"",siblings:a}}function L(){return S=_>0?C(T,--_):0,w--,10===S&&(w=1,B--),S}function $(){return S=_<v?C(T,_++):0,w++,10===S&&(w=1,B++),S}function O(){return C(T,_)}function I(){return _}function R(t,e){return x(T,t,e)}function P(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function z(t){return F(R(_-1,q(91===t?t+2:40===t?t+1:t)))}function N(t){for(;(S=O())&&S<33;)$();return P(t)>2||P(S)>3?"":" "}function j(t,e){for(;--e&&$()&&!(S<48||S>102||S>57&&S<65||S>70&&S<97););return R(t,I()+(e<6&&32==O()&&32==$()))}function q(t){for(;$();)switch(S){case t:return _;case 34:case 39:34!==t&&39!==t&&q(S);break;case 40:41===t&&q(t);break;case 92:$()}return _}function K(t,e){for(;$()&&t+S!==57&&(t+S!==84||47!==O()););return"/*"+R(e,_-1)+"*"+m(47===t?t:$())}function W(t){for(;!P(O());)$();return R(t,_)}function H(t){return function(t){return T="",t}(U("",null,null,null,[""],t=function(t){return B=w=1,v=b(T=t),_=0,[]}(t),0,[0],t))}function U(t,e,n,r,i,o,u,a,s){for(var l=0,c=0,h=u,d=0,f=0,p=0,F=1,E=1,k=1,B=0,w="",v=i,_=o,S=r,T=w;E;)switch(p=B,B=$()){case 40:if(108!=p&&58==C(T,h-1)){-1!=A(T+=y(z(B),"&","&\f"),"&\f",g(l?a[l-1]:0))&&(k=-1);break}case 34:case 39:case 91:T+=z(B);break;case 9:case 10:case 13:case 32:T+=N(p);break;case 92:T+=j(I()-1,7);continue;case 47:switch(O()){case 42:case 47:D(G(K($(),I()),e,n,s),s),5!=P(p||1)&&5!=P(O()||1)||!b(T)||" "===x(T,-1,void 0)||(T+=" ");break;default:T+="/"}break;case 123*F:a[l++]=b(T)*k;case 125*F:case 59:case 0:switch(B){case 0:case 125:E=0;case 59+c:-1==k&&(T=y(T,/\f/g,"")),f>0&&(b(T)-h||0===F&&47===p)&&D(f>32?V(T+";",r,n,h-1,s):V(y(T," ","")+";",r,n,h-2,s),s);break;case 59:T+=";";default:if(D(S=Y(T,e,n,l,c,i,a,w,v=[],_=[],h,o),o),123===B)if(0===c)U(T,e,S,S,v,o,h,a,_);else{switch(d){case 99:if(110===C(T,3))break;case 108:if(97===C(T,2))break;default:c=0;case 100:case 109:case 115:}c?U(t,S,S,r&&D(Y(t,S,S,0,0,i,a,w,i,v=[],h,_),_),i,_,h,a,r?v:_):U(T,S,S,S,[""],_,0,a,_)}}l=c=f=0,F=k=1,w=T="",h=u;break;case 58:h=1+b(T),f=p;default:if(F<1)if(123==B)--F;else if(125==B&&0==F++&&125==L())continue;switch(T+=m(B),B*F){case 38:k=c>0?1:(T+="\f",-1);break;case 44:a[l++]=(b(T)-1)*k,k=1;break;case 64:45===O()&&(T+=z($())),d=O(),c=h=b(w=T+=W(I())),B++;break;case 45:45===p&&2==b(T)&&(F=0)}}return o}function Y(t,e,n,r,i,o,u,a,s,l,c,h){for(var d=i-1,p=0===i?o:[""],m=function(t){return t.length}(p),A=0,C=0,b=0;A<r;++A)for(var D=0,E=x(t,d+1,d=g(C=u[A])),k=t;D<m;++D)(k=F(C>0?p[D]+" "+E:y(E,/&\f/g,p[D])))&&(s[b++]=k);return M(t,e,n,0===i?f:a,s,l,c,h)}function G(t,e,n,r){return M(t,e,n,d,m(S),x(t,2,-2),0,r)}function V(t,e,n,r,i){return M(t,e,n,p,x(t,0,r),x(t,r+1,-1),r,i)}var X=n(2636),Z=n(5992),Q={id:"c4",detector:(0,l.K2)((t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await n.e(3816).then(n.bind(n,3816));return{id:"c4",diagram:t}}),"loader")},J="flowchart",tt={id:J,detector:(0,l.K2)(((t,e)=>"dagre-wrapper"!==e?.flowchart?.defaultRenderer&&"elk"!==e?.flowchart?.defaultRenderer&&/^\s*graph/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await n.e(8633).then(n.bind(n,8633));return{id:J,diagram:t}}),"loader")},et="flowchart-v2",nt={id:et,detector:(0,l.K2)(((t,e)=>"dagre-d3"!==e?.flowchart?.defaultRenderer&&("elk"===e?.flowchart?.defaultRenderer&&(e.layout="elk"),!(!/^\s*graph/.test(t)||"dagre-wrapper"!==e?.flowchart?.defaultRenderer)||/^\s*flowchart/.test(t))),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await n.e(8633).then(n.bind(n,8633));return{id:et,diagram:t}}),"loader")},rt={id:"er",detector:(0,l.K2)((t=>/^\s*erDiagram/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await n.e(2260).then(n.bind(n,2260));return{id:"er",diagram:t}}),"loader")},it="gitGraph",ot={id:it,detector:(0,l.K2)((t=>/^\s*gitGraph/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(3744),n.e(879)]).then(n.bind(n,879));return{id:it,diagram:t}}),"loader")},ut="gantt",at={id:ut,detector:(0,l.K2)((t=>/^\s*gantt/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await n.e(4281).then(n.bind(n,4281));return{id:ut,diagram:t}}),"loader")},st="info",lt={id:st,detector:(0,l.K2)((t=>/^\s*info/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(3744),n.e(2508)]).then(n.bind(n,2508));return{id:st,diagram:t}}),"loader")},ct={id:"pie",detector:(0,l.K2)((t=>/^\s*pie/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(3744),n.e(8231)]).then(n.bind(n,8231));return{id:"pie",diagram:t}}),"loader")},ht="quadrantChart",dt={id:ht,detector:(0,l.K2)((t=>/^\s*quadrantChart/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await n.e(3935).then(n.bind(n,3935));return{id:ht,diagram:t}}),"loader")},ft="xychart",pt={id:ft,detector:(0,l.K2)((t=>/^\s*xychart-beta/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await n.e(9634).then(n.bind(n,9634));return{id:ft,diagram:t}}),"loader")},gt="requirement",mt={id:gt,detector:(0,l.K2)((t=>/^\s*requirement(Diagram)?/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await n.e(9034).then(n.bind(n,9034));return{id:gt,diagram:t}}),"loader")},Ft="sequence",yt={id:Ft,detector:(0,l.K2)((t=>/^\s*sequenceDiagram/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await n.e(4474).then(n.bind(n,4474));return{id:Ft,diagram:t}}),"loader")},At="class",Ct={id:At,detector:(0,l.K2)(((t,e)=>"dagre-wrapper"!==e?.class?.defaultRenderer&&/^\s*classDiagram/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(3208),n.e(3419)]).then(n.bind(n,3419));return{id:At,diagram:t}}),"loader")},xt="classDiagram",bt={id:xt,detector:(0,l.K2)(((t,e)=>!(!/^\s*classDiagram/.test(t)||"dagre-wrapper"!==e?.class?.defaultRenderer)||/^\s*classDiagram-v2/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(3208),n.e(5727)]).then(n.bind(n,5727));return{id:xt,diagram:t}}),"loader")},Dt="state",Et={id:Dt,detector:(0,l.K2)(((t,e)=>"dagre-wrapper"!==e?.state?.defaultRenderer&&/^\s*stateDiagram/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(4228),n.e(8348),n.e(7842)]).then(n.bind(n,7842));return{id:Dt,diagram:t}}),"loader")},kt="stateDiagram",Bt={id:kt,detector:(0,l.K2)(((t,e)=>!!/^\s*stateDiagram-v2/.test(t)||!(!/^\s*stateDiagram/.test(t)||"dagre-wrapper"!==e?.state?.defaultRenderer)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(8348),n.e(5548)]).then(n.bind(n,5548));return{id:kt,diagram:t}}),"loader")},wt="journey",vt={id:wt,detector:(0,l.K2)((t=>/^\s*journey/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await n.e(6023).then(n.bind(n,6023));return{id:wt,diagram:t}}),"loader")},_t={draw:(0,l.K2)(((t,e,n)=>{l.Rm.debug("rendering svg for syntax error\n");const r=(0,s.D)(e),i=r.append("g");r.attr("viewBox","0 0 2412 512"),(0,l.a$)(r,100,512,!0),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)}),"draw")},St=_t,Tt={db:{},renderer:_t,parser:{parse:(0,l.K2)((()=>{}),"parse")}},Mt="flowchart-elk",Lt={id:Mt,detector:(0,l.K2)(((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&"elk"===e?.flowchart?.defaultRenderer)&&(e.layout="elk",!0)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await n.e(8633).then(n.bind(n,8633));return{id:Mt,diagram:t}}),"loader")},$t="timeline",Ot={id:$t,detector:(0,l.K2)((t=>/^\s*timeline/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await n.e(5807).then(n.bind(n,8188));return{id:$t,diagram:t}}),"loader")},It="mindmap",Rt={id:It,detector:(0,l.K2)((t=>/^\s*mindmap/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(8936),n.e(2432)]).then(n.bind(n,2432));return{id:It,diagram:t}}),"loader")},Pt="kanban",zt={id:Pt,detector:(0,l.K2)((t=>/^\s*kanban/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await n.e(9831).then(n.bind(n,9831));return{id:Pt,diagram:t}}),"loader")},Nt="sankey",jt={id:Nt,detector:(0,l.K2)((t=>/^\s*sankey-beta/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await n.e(5936).then(n.bind(n,5936));return{id:Nt,diagram:t}}),"loader")},qt="packet",Kt={id:qt,detector:(0,l.K2)((t=>/^\s*packet(-beta)?/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(3744),n.e(5384)]).then(n.bind(n,5384));return{id:qt,diagram:t}}),"loader")},Wt="radar",Ht={id:Wt,detector:(0,l.K2)((t=>/^\s*radar-beta/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(3744),n.e(1931)]).then(n.bind(n,1931));return{id:Wt,diagram:t}}),"loader")},Ut="block",Yt={id:Ut,detector:(0,l.K2)((t=>/^\s*block-beta/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(5307)]).then(n.bind(n,5307));return{id:Ut,diagram:t}}),"loader")},Gt="architecture",Vt={id:Gt,detector:(0,l.K2)((t=>/^\s*architecture/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(3744),n.e(8936),n.e(7302)]).then(n.bind(n,7302));return{id:Gt,diagram:t}}),"loader")},Xt="treemap",Zt={id:Xt,detector:(0,l.K2)((t=>/^\s*treemap/.test(t)),"detector"),loader:(0,l.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(3744),n.e(8588)]).then(n.bind(n,8588));return{id:Xt,diagram:t}}),"loader")},Qt=!1,Jt=(0,l.K2)((()=>{Qt||(Qt=!0,(0,l.Js)("error",Tt,(t=>"error"===t.toLowerCase().trim())),(0,l.Js)("---",{db:{clear:(0,l.K2)((()=>{}),"clear")},styles:{},renderer:{draw:(0,l.K2)((()=>{}),"draw")},parser:{parse:(0,l.K2)((()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}),"parse")},init:(0,l.K2)((()=>null),"init")},(t=>t.toLowerCase().trimStart().startsWith("---"))),(0,l.Xd)(Lt,Rt,Vt),(0,l.Xd)(Q,zt,bt,Ct,rt,at,lt,ct,mt,yt,nt,tt,Ot,ot,Bt,Et,vt,dt,jt,Kt,pt,Yt,Ht,Zt))}),"addDiagrams"),te=(0,l.K2)((async()=>{l.Rm.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(l.mW).map((async([t,{detector:e,loader:n}])=>{if(n)try{(0,l.Gs)(t)}catch{try{const{diagram:t,id:r}=await n();(0,l.Js)(r,t,e)}catch(e){throw l.Rm.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete l.mW[t],e}}})))).filter((t=>"rejected"===t.status));if(t.length>0){l.Rm.error(`Failed to load ${t.length} external diagrams`);for(const e of t)l.Rm.error(e);throw new Error(`Failed to load ${t.length} external diagrams`)}}),"loadRegisteredDiagrams");function ee(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function ne(t,e,n,r){if(void 0!==t.insert){if(n){const e=`chart-desc-${r}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(n)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}(0,l.K2)(ee,"setA11yDiagramInfo"),(0,l.K2)(ne,"addSVGa11yTitleDescription");var re=class t{constructor(t,e,n,r,i){this.type=t,this.text=e,this.db=n,this.parser=r,this.renderer=i}static{(0,l.K2)(this,"Diagram")}static async fromText(e,n={}){const r=(0,l.zj)(),i=(0,l.Ch)(e,r);e=(0,u.C4)(e)+"\n";try{(0,l.Gs)(i)}catch{const t=(0,l.J$)(i);if(!t)throw new l.C0(`Diagram ${i} not found.`);const{id:e,diagram:n}=await t();(0,l.Js)(e,n)}const{db:o,parser:a,renderer:s,init:c}=(0,l.Gs)(i);return a.parser&&(a.parser.yy=o),o.clear?.(),c?.(r),n.title&&o.setDiagramTitle?.(n.title),await a.parse(e),new t(i,e,o,a,s)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},ie=[],oe=(0,l.K2)((()=>{ie.forEach((t=>{t()})),ie=[]}),"attachFunctions"),ue=(0,l.K2)((t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart()),"cleanupComments");function ae(t){const e=t.match(l.EJ);if(!e)return{text:t,metadata:{}};let n=(0,r.H)(e[1],{schema:r.r})??{};n="object"!=typeof n||Array.isArray(n)?{}:n;const i={};return n.displayMode&&(i.displayMode=n.displayMode.toString()),n.title&&(i.title=n.title.toString()),n.config&&(i.config=n.config),{text:t.slice(e[0].length),metadata:i}}(0,l.K2)(ae,"extractFrontMatter");var se=(0,l.K2)((t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,((t,e,n)=>"<"+e+n.replace(/="([^"]*)"/g,"='$1'")+">"))),"cleanupText"),le=(0,l.K2)((t=>{const{text:e,metadata:n}=ae(t),{displayMode:r,title:i,config:o={}}=n;return r&&(o.gantt||(o.gantt={}),o.gantt.displayMode=r),{title:i,config:o,text:e}}),"processFrontmatter"),ce=(0,l.K2)((t=>{const e=u._K.detectInit(t)??{},n=u._K.detectDirective(t,"wrap");return Array.isArray(n)?e.wrap=n.some((({type:t})=>"wrap"===t)):"wrap"===n?.type&&(e.wrap=!0),{text:(0,u.vU)(t),directive:e}}),"processDirectives");function he(t){const e=se(t),n=le(e),r=ce(n.text),i=(0,u.$t)(n.config,r.directive);return{code:t=ue(r.text),title:n.title,config:i}}function de(t){const e=(new TextEncoder).encode(t),n=Array.from(e,(t=>String.fromCodePoint(t))).join("");return btoa(n)}(0,l.K2)(he,"preprocessDiagram"),(0,l.K2)(de,"toBase64");var fe=["foreignobject"],pe=["dominant-baseline"];function ge(t){const e=he(t);return(0,l.cL)(),(0,l.xA)(e.config??{}),e}async function me(t,e){Jt();try{const{code:e,config:n}=ge(t);return{diagramType:(await we(e)).type,config:n}}catch(t){if(e?.suppressErrors)return!1;throw t}}(0,l.K2)(ge,"processAndSetConfigs"),(0,l.K2)(me,"parse");var Fe=(0,l.K2)(((t,e,n=[])=>`\n.${t} ${e} { ${n.join(" !important; ")} !important; }`),"cssImportantStyles"),ye=(0,l.K2)(((t,e=new Map)=>{let n="";if(void 0!==t.themeCSS&&(n+=`\n${t.themeCSS}`),void 0!==t.fontFamily&&(n+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(n+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){const r=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach((t=>{(0,Z.A)(t.styles)||r.forEach((e=>{n+=Fe(t.id,e,t.styles)})),(0,Z.A)(t.textStyles)||(n+=Fe(t.id,"tspan",(t?.textStyles||[]).map((t=>t.replace("color","fill")))))}))}return n}),"createCssStyles"),Ae=(0,l.K2)(((t,e,n,r)=>{const i=ye(t,n);return E(H(`${r}{${(0,l.tM)(e,i,t.themeVariables)}}`),k)}),"createUserStyles"),Ce=(0,l.K2)(((t="",e,n)=>{let r=t;return n||e||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(0,u.Sm)(r),r=r.replace(/<br>/g,"<br/>"),r}),"cleanUpSvgCode"),xe=(0,l.K2)(((t="",e)=>`<iframe style="width:100%;height:${e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${de(`<body style="margin:0">${t}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n The "iframe" tag is not supported by your browser.\n</iframe>`),"putIntoIFrame"),be=(0,l.K2)(((t,e,n,r,i)=>{const o=t.append("div");o.attr("id",n),r&&o.attr("style",r);const u=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&u.attr("xmlns:xlink",i),u.append("g"),t}),"appendDivSvgG");function De(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,l.K2)(De,"sandboxedIframe");var Ee=(0,l.K2)(((t,e,n,r)=>{t.getElementById(e)?.remove(),t.getElementById(n)?.remove(),t.getElementById(r)?.remove()}),"removeExistingElements"),ke=(0,l.K2)((async function(t,e,n){Jt();const r=ge(e);e=r.code;const i=(0,l.zj)();l.Rm.debug(i),e.length>(i?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const o="#"+t,u="i"+t,s="#"+u,c="d"+t,d="#"+c,f=(0,l.K2)((()=>{const t=g?s:d,e=(0,h.Ltv)(t).node();e&&"remove"in e&&e.remove()}),"removeTempElements");let p=(0,h.Ltv)("body");const g="sandbox"===i.securityLevel,m="loose"===i.securityLevel,F=i.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),g){const t=De((0,h.Ltv)(n),u);p=(0,h.Ltv)(t.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=(0,h.Ltv)(n);be(p,t,c,`font-family: ${F}`,"http://www.w3.org/1999/xlink")}else{if(Ee(document,t,c,u),g){const t=De((0,h.Ltv)("body"),u);p=(0,h.Ltv)(t.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=(0,h.Ltv)("body");be(p,t,c)}let y,A;try{y=await re.fromText(e,{title:r.title})}catch(t){if(i.suppressErrorRendering)throw f(),t;y=await re.fromText("error"),A=t}const C=p.select(d).node(),x=y.type,b=C.firstChild,D=b.firstChild,E=y.renderer.getClasses?.(e,y),k=Ae(i,x,E,o),B=document.createElement("style");B.innerHTML=k,b.insertBefore(B,D);try{await y.renderer.draw(e,t,a.n.version,y)}catch(n){throw i.suppressErrorRendering?f():St.draw(e,t,a.n.version),n}const w=p.select(`${d} svg`),v=y.db.getAccTitle?.(),_=y.db.getAccDescription?.();ve(x,w,v,_),p.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let S=p.select(d).node().innerHTML;if(l.Rm.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),S=Ce(S,g,(0,l._3)(i.arrowMarkerAbsolute)),g){const t=p.select(d+" svg").node();S=xe(S,t)}else m||(S=X.A.sanitize(S,{ADD_TAGS:fe,ADD_ATTR:pe,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(oe(),A)throw A;return f(),{diagramType:x,svg:S,bindFunctions:y.db.bindFunctions}}),"render");function Be(t={}){const e=(0,l.hH)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,l.wZ)(e),e?.theme&&e.theme in l.H$?e.themeVariables=l.H$[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=l.H$.default.getThemeVariables(e.themeVariables));const n="object"==typeof e?(0,l.UU)(e):(0,l.Q2)();(0,l.He)(n.logLevel),Jt()}(0,l.K2)(Be,"initialize");var we=(0,l.K2)(((t,e={})=>{const{code:n}=he(t);return re.fromText(n,e)}),"getDiagramFromText");function ve(t,e,n,r){ee(e,t),ne(e,n,r,e.attr("id"))}(0,l.K2)(ve,"addA11yInfo");var _e=Object.freeze({render:ke,parse:me,getDiagramFromText:we,initialize:Be,getConfig:l.zj,setConfig:l.Nk,getSiteConfig:l.Q2,updateSiteConfig:l.B6,reset:(0,l.K2)((()=>{(0,l.cL)()}),"reset"),globalReset:(0,l.K2)((()=>{(0,l.cL)(l.sb)}),"globalReset"),defaultConfig:l.sb});(0,l.He)((0,l.zj)().logLevel),(0,l.cL)((0,l.zj)());var Se=(0,l.K2)(((t,e,n)=>{l.Rm.warn(t),(0,u.dq)(t)?(n&&n(t.str,t.hash),e.push({...t,message:t.str,error:t})):(n&&n(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))}),"handleError"),Te=(0,l.K2)((async function(t={querySelector:".mermaid"}){try{await Me(t)}catch(e){if((0,u.dq)(e)&&l.Rm.error(e.str),We.parseError&&We.parseError(e),!t.suppressErrors)throw l.Rm.error("Use the suppressErrors option to suppress these errors"),e}}),"run"),Me=(0,l.K2)((async function({postRenderCallback:t,querySelector:e,nodes:n}={querySelector:".mermaid"}){const r=_e.getConfig();let i;if(l.Rm.debug((t?"":"No ")+"Callback function found"),n)i=n;else{if(!e)throw new Error("Nodes and querySelector are both undefined");i=document.querySelectorAll(e)}l.Rm.debug(`Found ${i.length} diagrams`),void 0!==r?.startOnLoad&&(l.Rm.debug("Start On Load: "+r?.startOnLoad),_e.updateSiteConfig({startOnLoad:r?.startOnLoad}));const o=new u._K.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let a;const s=[];for(const e of Array.from(i)){if(l.Rm.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");const n=`mermaid-${o.next()}`;a=e.innerHTML,a=(0,c.T)(u._K.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");const r=u._K.detectInit(a);r&&l.Rm.debug("Detected early reinit: ",r);try{const{svg:r,bindFunctions:i}=await qe(n,a,e);e.innerHTML=r,t&&await t(n),i&&i(e)}catch(t){Se(t,s,We.parseError)}}if(s.length>0)throw s[0]}),"runThrowsErrors"),Le=(0,l.K2)((function(t){_e.initialize(t)}),"initialize"),$e=(0,l.K2)((async function(t,e,n){l.Rm.warn("mermaid.init is deprecated. Please use run instead."),t&&Le(t);const r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof e?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await Te(r)}),"init"),Oe=(0,l.K2)((async(t,{lazyLoad:e=!0}={})=>{Jt(),(0,l.Xd)(...t),!1===e&&await te()}),"registerExternalDiagrams"),Ie=(0,l.K2)((function(){if(We.startOnLoad){const{startOnLoad:t}=_e.getConfig();t&&We.run().catch((t=>l.Rm.error("Mermaid failed to initialize",t)))}}),"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",Ie,!1);var Re=(0,l.K2)((function(t){We.parseError=t}),"setParseErrorHandler"),Pe=[],ze=!1,Ne=(0,l.K2)((async()=>{if(!ze){for(ze=!0;Pe.length>0;){const t=Pe.shift();if(t)try{await t()}catch(t){l.Rm.error("Error executing queue",t)}}ze=!1}}),"executeQueue"),je=(0,l.K2)((async(t,e)=>new Promise(((n,r)=>{const i=(0,l.K2)((()=>new Promise(((i,o)=>{_e.parse(t,e).then((t=>{i(t),n(t)}),(t=>{l.Rm.error("Error parsing",t),We.parseError?.(t),o(t),r(t)}))}))),"performCall");Pe.push(i),Ne().catch(r)}))),"parse"),qe=(0,l.K2)(((t,e,n)=>new Promise(((r,i)=>{const o=(0,l.K2)((()=>new Promise(((o,u)=>{_e.render(t,e,n).then((t=>{o(t),r(t)}),(t=>{l.Rm.error("Error parsing",t),We.parseError?.(t),u(t),i(t)}))}))),"performCall");Pe.push(o),Ne().catch(i)}))),"render"),Ke=(0,l.K2)((()=>Object.keys(l.mW).map((t=>({id:t})))),"getRegisteredDiagramsMetadata"),We={startOnLoad:!0,mermaidAPI:_e,parse:je,render:qe,init:$e,run:Te,registerExternalDiagrams:Oe,registerLayoutLoaders:i.sO,initialize:Le,parseError:void 0,contentLoaded:Ie,setParseErrorHandler:Re,detectType:l.Ch,registerIconPacks:o.pC,getRegisteredDiagramsMetadata:Ke},He=We},7649:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(7845),i=n(1758),o=n(4151);const u=i.A?function(t,e){return(0,i.A)(t,"toString",{configurable:!0,enumerable:!1,value:(0,r.A)(e),writable:!0})}:o.A;var a=Date.now;const s=(l=u,c=0,h=0,function(){var t=a(),e=16-(t-h);if(h=t,e>0){if(++c>=800)return arguments[0]}else c=0;return l.apply(void 0,arguments)});var l,c,h},7708:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(5944);const i=(t,e)=>(0,r.A)(t,"l",-e)},7745:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(6758),i=n.n(r),o=n(935),u=n.n(o)()(i());u.push([t.id,'code[class*="language-"],\npre[class*="language-"]{color:#ccc;background:none;font-family:Consolas,Monaco,\'Andale Mono\',\'Ubuntu Mono\',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto}:not(pre) > code[class*="language-"],\npre[class*="language-"]{background:#2d2d2d}:not(pre) > code[class*="language-"]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,\n.token.block-comment,\n.token.prolog,\n.token.doctype,\n.token.cdata{color:#999}.token.punctuation{color:#ccc}.token.tag,\n.token.attr-name,\n.token.namespace,\n.token.deleted{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,\n.token.number,\n.token.function{color:#f08d49}.token.property,\n.token.class-name,\n.token.constant,\n.token.symbol{color:#f8c555}.token.selector,\n.token.important,\n.token.atrule,\n.token.keyword,\n.token.builtin{color:#cc99cd}.token.string,\n.token.char,\n.token.attr-value,\n.token.regex,\n.token.variable{color:#7ec699}.token.operator,\n.token.entity,\n.token.url{color:#67cdcc}.token.important,\n.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}',""]);const a=u.toString()},7845:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return function(){return t}}},7893:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7913:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=n(9600).A.Uint8Array},7942:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7964:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(5944);const i=(t,e)=>(0,r.A)(t,"l",e)},7996:(t,e,n)=>{"use strict";n.d(e,{Fr:()=>l,GX:()=>s,KX:()=>a,WW:()=>o,ue:()=>i});var r=n(8084),i=(0,r.K2)((t=>{const{handDrawnSeed:e}=(0,r.D7)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}}),"solidStateFill"),o=(0,r.K2)((t=>{const e=u([...t.cssCompiledStyles||[],...t.cssStyles||[]]);return{stylesMap:e,stylesArray:[...e]}}),"compileStyles"),u=(0,r.K2)((t=>{const e=new Map;return t.forEach((t=>{const[n,r]=t.split(":");e.set(n.trim(),r?.trim())})),e}),"styles2Map"),a=(0,r.K2)((t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t),"isLabelStyle"),s=(0,r.K2)((t=>{const{stylesArray:e}=o(t),n=[],r=[],i=[],u=[];return e.forEach((t=>{const e=t[0];a(e)?n.push(t.join(":")+" !important"):(r.push(t.join(":")+" !important"),e.includes("stroke")&&i.push(t.join(":")+" !important"),"fill"===e&&u.push(t.join(":")+" !important"))})),{labelStyles:n.join(";"),nodeStyles:r.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:u}}),"styles2String"),l=(0,r.K2)(((t,e)=>{const{themeVariables:n,handDrawnSeed:i}=(0,r.D7)(),{nodeBorder:u,mainBkg:a}=n,{stylesMap:s}=o(t);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||u,seed:i,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0]},e)}),"userNodeOverrides")},8041:(t,e,n)=>{"use strict";e.J=void 0;var r=n(5552);function i(t){try{return decodeURIComponent(t)}catch(e){return t}}e.J=function(t){if(!t)return r.BLANK_URL;var e,n,o=i(t.trim());do{e=(o=i(o=(n=o,n.replace(r.ctrlCharactersRegex,"").replace(r.htmlEntitiesRegex,(function(t,e){return String.fromCharCode(e)}))).replace(r.htmlCtrlEntityRegex,"").replace(r.ctrlCharactersRegex,"").replace(r.whitespaceEscapeCharsRegex,"").trim())).match(r.ctrlCharactersRegex)||o.match(r.htmlEntitiesRegex)||o.match(r.htmlCtrlEntityRegex)||o.match(r.whitespaceEscapeCharsRegex)}while(e&&e.length>0);var u=o;if(!u)return r.BLANK_URL;if(function(t){return r.relativeFirstCharacters.indexOf(t[0])>-1}(u))return u;var a=u.trimStart(),s=a.match(r.urlSchemeRegex);if(!s)return u;var l=s[0].toLowerCase().trim();if(r.invalidProtocolRegex.test(l))return r.BLANK_URL;var c=a.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return c;if("http:"===l||"https:"===l){if(!function(t){return URL.canParse(t)}(c))return r.BLANK_URL;var h=new URL(c);return h.protocol=h.protocol.toLowerCase(),h.hostname=h.hostname.toLowerCase(),h.toString()}return c}},8050:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(695),i=n(6473);const o=function(t){return(0,r.A)((function(e,n){var r=-1,o=n.length,u=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(u=t.length>3&&"function"==typeof u?(o--,u):void 0,a&&(0,i.A)(n[0],n[1],a)&&(u=o<3?void 0:u,o=1),e=Object(e);++r<o;){var s=n[r];s&&t(e,s,r,u)}return e}))}},8052:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(5937));e.default=function(t,e){var n=null;if(!t||"string"!=typeof t)return n;var r=(0,i.default)(t),o="function"==typeof e;return r.forEach((function(t){if("declaration"===t.type){var r=t.property,i=t.value;o?e(r,i,t):i&&((n=n||{})[r]=i)}})),n}},8078:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(6124),i=n(9271);const o=function(t,e,n,o){var u=!n;n||(n={});for(var a=-1,s=e.length;++a<s;){var l=e[a],c=o?o(n[l],t[l],l,n,t):void 0;void 0===c&&(c=t[l]),u?(0,i.A)(n,l,c):(0,r.A)(n,l,c)}return n}},8084:(t,e,n)=>{"use strict";n.d(e,{C0:()=>E,VA:()=>m,K2:()=>g,xA:()=>ct,hH:()=>T,Dl:()=>zt,IU:()=>ee,Wt:()=>Xt,Y2:()=>jt,a$:()=>Wt,sb:()=>Q,ME:()=>de,UI:()=>V,Ch:()=>B,mW:()=>k,DB:()=>b,_3:()=>_t,EJ:()=>x,m7:()=>oe,iN:()=>re,zj:()=>st,D7:()=>ce,Gs:()=>ye,J$:()=>_,ab:()=>ae,Q2:()=>ut,P$:()=>N,ID:()=>vt,Wi:()=>Pt,H1:()=>mt,Rm:()=>y,QO:()=>Mt,Js:()=>Fe,Xd:()=>w,VJ:()=>Nt,cL:()=>ht,$i:()=>X,jZ:()=>bt,oB:()=>fe,wZ:()=>it,EI:()=>ie,SV:()=>ne,Nk:()=>at,XV:()=>he,ke:()=>ue,He:()=>A,UU:()=>rt,ot:()=>Ht,mj:()=>pe,tM:()=>Vt,H$:()=>W,B6:()=>ot});var r=n(3464),i=n(1028),o=n(6135);const u=(t,e)=>{const n=i.A.parse(t),r={};for(const t in e)e[t]&&(r[t]=n[t]+e[t]);return(0,o.A)(t,r)};var a=n(2209);const s=(t,e=100)=>{const n=i.A.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,((t,e,n=50)=>{const{r,g:o,b:u,a:s}=i.A.parse(t),{r:l,g:c,b:h,a:d}=i.A.parse(e),f=n/100,p=2*f-1,g=s-d,m=((p*g==-1?p:(p+g)/(1+p*g))+1)/2,F=1-m,y=r*m+l*F,A=o*m+c*F,C=u*m+h*F,x=s*f+d*(1-f);return(0,a.A)(y,A,C,x)})(n,t,e)};var l,c=n(7708),h=n(7964),d=n(1942),f=n(2636),p=Object.defineProperty,g=(t,e)=>p(t,"name",{value:e,configurable:!0}),m=(t,e)=>{for(var n in e)p(t,n,{get:e[n],enumerable:!0})},F={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},y={trace:g(((...t)=>{}),"trace"),debug:g(((...t)=>{}),"debug"),info:g(((...t)=>{}),"info"),warn:g(((...t)=>{}),"warn"),error:g(((...t)=>{}),"error"),fatal:g(((...t)=>{}),"fatal")},A=g((function(t="fatal"){let e=F.fatal;"string"==typeof t?t.toLowerCase()in F&&(e=F[t]):"number"==typeof t&&(e=t),y.trace=()=>{},y.debug=()=>{},y.info=()=>{},y.warn=()=>{},y.error=()=>{},y.fatal=()=>{},e<=F.fatal&&(y.fatal=console.error?console.error.bind(console,C("FATAL"),"color: orange"):console.log.bind(console,"",C("FATAL"))),e<=F.error&&(y.error=console.error?console.error.bind(console,C("ERROR"),"color: orange"):console.log.bind(console,"",C("ERROR"))),e<=F.warn&&(y.warn=console.warn?console.warn.bind(console,C("WARN"),"color: orange"):console.log.bind(console,"",C("WARN"))),e<=F.info&&(y.info=console.info?console.info.bind(console,C("INFO"),"color: lightblue"):console.log.bind(console,"",C("INFO"))),e<=F.debug&&(y.debug=console.debug?console.debug.bind(console,C("DEBUG"),"color: lightgreen"):console.log.bind(console,"",C("DEBUG"))),e<=F.trace&&(y.trace=console.debug?console.debug.bind(console,C("TRACE"),"color: lightgreen"):console.log.bind(console,"",C("TRACE")))}),"setLogLevel"),C=g((t=>`%c${r().format("ss.SSS")} : ${t} : `),"format"),x=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,b=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,D=/\s*%%.*\n/gm,E=class extends Error{static{g(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},k={},B=g((function(t,e){t=t.replace(x,"").replace(b,"").replace(D,"\n");for(const[n,{detector:r}]of Object.entries(k))if(r(t,e))return n;throw new E(`No diagram type detected matching given configuration for text: ${t}`)}),"detectType"),w=g(((...t)=>{for(const{id:e,detector:n,loader:r}of t)v(e,n,r)}),"registerLazyLoadedDiagrams"),v=g(((t,e,n)=>{k[t]&&y.warn(`Detector with key ${t} already exists. Overwriting.`),k[t]={detector:e,loader:n},y.debug(`Detector with key ${t} added${n?" with loader":""}`)}),"addDetector"),_=g((t=>k[t].loader),"getDiagramLoader"),S=g(((t,e,{depth:n=2,clobber:r=!1}={})=>{const i={depth:n,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach((e=>S(t,e,i))),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach((e=>{t.includes(e)||t.push(e)})),t):void 0===t||n<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach((i=>{"object"!=typeof e[i]||void 0!==t[i]&&"object"!=typeof t[i]?(r||"object"!=typeof t[i]&&"object"!=typeof e[i])&&(t[i]=e[i]):(void 0===t[i]&&(t[i]=Array.isArray(e[i])?[]:{}),t[i]=S(t[i],e[i],{depth:n-1,clobber:r}))})),t)}),"assignWithDepth"),T=S,M="#ffffff",L="#f2f2f2",$=g(((t,e)=>u(t,e?{s:-40,l:10}:{s:-40,l:-10})),"mkBorder"),O=class{static{g(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||u(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||u(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||s(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||s(this.tertiaryColor),this.lineColor=this.lineColor||s(this.background),this.arrowheadColor=this.arrowheadColor||s(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,c.A)(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||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,c.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||s(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,h.A)(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.vertLineColor=this.vertLineColor||"navy",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.darkMode?(this.rowOdd=this.rowOdd||(0,c.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,c.A)(this.mainBkg,10)):(this.rowOdd=this.rowOdd||(0,h.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,h.A)(this.mainBkg,5)),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.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||u(this.primaryColor,{h:30}),this.cScale4=this.cScale4||u(this.primaryColor,{h:60}),this.cScale5=this.cScale5||u(this.primaryColor,{h:90}),this.cScale6=this.cScale6||u(this.primaryColor,{h:120}),this.cScale7=this.cScale7||u(this.primaryColor,{h:150}),this.cScale8=this.cScale8||u(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||u(this.primaryColor,{h:270}),this.cScale10=this.cScale10||u(this.primaryColor,{h:300}),this.cScale11=this.cScale11||u(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,c.A)(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,c.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||s(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,h.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,c.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||u(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||u(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||u(this.primaryColor,{h:64}),this.fillType3=this.fillType3||u(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||u(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||u(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||u(this.primaryColor,{h:128}),this.fillType7=this.fillType7||u(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||u(this.primaryColor,{l:-10}),this.pie5=this.pie5||u(this.secondaryColor,{l:-10}),this.pie6=this.pie6||u(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||u(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||u(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||u(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||u(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||u(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||u(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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||u(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||u(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||u(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||u(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||u(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||u(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,h.A)(this.quadrant1Fill):(0,c.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,c.A)(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||u(this.primaryColor,{h:-30}),this.git4=this.git4||u(this.primaryColor,{h:-60}),this.git5=this.git5||u(this.primaryColor,{h:-90}),this.git6=this.git6||u(this.primaryColor,{h:60}),this.git7=this.git7||u(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,h.A)(this.git0,25),this.git1=(0,h.A)(this.git1,25),this.git2=(0,h.A)(this.git2,25),this.git3=(0,h.A)(this.git3,25),this.git4=(0,h.A)(this.git4,25),this.git5=(0,h.A)(this.git5,25),this.git6=(0,h.A)(this.git6,25),this.git7=(0,h.A)(this.git7,25)):(this.git0=(0,c.A)(this.git0,25),this.git1=(0,c.A)(this.git1,25),this.git2=(0,c.A)(this.git2,25),this.git3=(0,c.A)(this.git3,25),this.git4=(0,c.A)(this.git4,25),this.git5=(0,c.A)(this.git5,25),this.git6=(0,c.A)(this.git6,25),this.git7=(0,c.A)(this.git7,25)),this.gitInv0=this.gitInv0||s(this.git0),this.gitInv1=this.gitInv1||s(this.git1),this.gitInv2=this.gitInv2||s(this.git2),this.gitInv3=this.gitInv3||s(this.git3),this.gitInv4=this.gitInv4||s(this.git4),this.gitInv5=this.gitInv5||s(this.git5),this.gitInv6=this.gitInv6||s(this.git6),this.gitInv7=this.gitInv7||s(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",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||M,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},I=g((t=>{const e=new O;return e.calculate(t),e}),"getThemeVariables"),R=class{static{g(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,h.A)(this.primaryColor,16),this.tertiaryColor=u(this.primaryColor,{h:-160}),this.primaryBorderColor=s(this.background),this.secondaryBorderColor=$(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$(this.tertiaryColor,this.darkMode),this.primaryTextColor=s(this.primaryColor),this.secondaryTextColor=s(this.secondaryColor),this.tertiaryTextColor=s(this.tertiaryColor),this.lineColor=s(this.background),this.textColor=s(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,h.A)(s("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=(0,a.A)(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.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,c.A)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,c.A)(this.sectionBkgColor,10),this.taskBorderColor=(0,a.A)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,a.A)(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.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||(0,h.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,c.A)(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,h.A)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,h.A)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,h.A)(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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=u(this.primaryColor,{h:64}),this.fillType3=u(this.secondaryColor,{h:64}),this.fillType4=u(this.primaryColor,{h:-64}),this.fillType5=u(this.secondaryColor,{h:-64}),this.fillType6=u(this.primaryColor,{h:128}),this.fillType7=u(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||u(this.primaryColor,{h:30}),this.cScale4=this.cScale4||u(this.primaryColor,{h:60}),this.cScale5=this.cScale5||u(this.primaryColor,{h:90}),this.cScale6=this.cScale6||u(this.primaryColor,{h:120}),this.cScale7=this.cScale7||u(this.primaryColor,{h:150}),this.cScale8=this.cScale8||u(this.primaryColor,{h:210}),this.cScale9=this.cScale9||u(this.primaryColor,{h:270}),this.cScale10=this.cScale10||u(this.primaryColor,{h:300}),this.cScale11=this.cScale11||u(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||s(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||(0,h.A)(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||u(this.mainBkg,{h:30,s:-30,l:-(4*t-10)}),this["surfacePeer"+t]=this["surfacePeer"+t]||u(this.mainBkg,{h:30,s:-30,l:-(4*t-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||u(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||u(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||u(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||u(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||u(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||u(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,h.A)(this.quadrant1Fill):(0,c.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,c.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,h.A)(this.secondaryColor,20),this.git1=(0,h.A)(this.pie2||this.secondaryColor,20),this.git2=(0,h.A)(this.pie3||this.tertiaryColor,20),this.git3=(0,h.A)(this.pie4||u(this.primaryColor,{h:-30}),20),this.git4=(0,h.A)(this.pie5||u(this.primaryColor,{h:-60}),20),this.git5=(0,h.A)(this.pie6||u(this.primaryColor,{h:-90}),10),this.git6=(0,h.A)(this.pie7||u(this.primaryColor,{h:60}),10),this.git7=(0,h.A)(this.pie8||u(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||s(this.git0),this.gitInv1=this.gitInv1||s(this.git1),this.gitInv2=this.gitInv2||s(this.git2),this.gitInv3=this.gitInv3||s(this.git3),this.gitInv4=this.gitInv4||s(this.git4),this.gitInv5=this.gitInv5||s(this.git5),this.gitInv6=this.gitInv6||s(this.git6),this.gitInv7=this.gitInv7||s(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||s(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||s(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",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||(0,h.A)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,h.A)(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},P=g((t=>{const e=new R;return e.calculate(t),e}),"getThemeVariables"),z=class{static{g(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=u(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=u(this.primaryColor,{h:-160}),this.primaryBorderColor=$(this.primaryColor,this.darkMode),this.secondaryBorderColor=$(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$(this.tertiaryColor,this.darkMode),this.primaryTextColor=s(this.primaryColor),this.secondaryTextColor=s(this.secondaryColor),this.tertiaryTextColor=s(this.tertiaryColor),this.lineColor=s(this.background),this.textColor=s(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="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,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="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="#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.vertLineColor="calculated",this.sectionBkgColor=(0,a.A)(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.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||u(this.primaryColor,{h:30}),this.cScale4=this.cScale4||u(this.primaryColor,{h:60}),this.cScale5=this.cScale5||u(this.primaryColor,{h:90}),this.cScale6=this.cScale6||u(this.primaryColor,{h:120}),this.cScale7=this.cScale7||u(this.primaryColor,{h:150}),this.cScale8=this.cScale8||u(this.primaryColor,{h:210}),this.cScale9=this.cScale9||u(this.primaryColor,{h:270}),this.cScale10=this.cScale10||u(this.primaryColor,{h:300}),this.cScale11=this.cScale11||u(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,c.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,c.A)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,c.A)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,c.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||u(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||u(this.mainBkg,{h:30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||u(this.mainBkg,{h:30,l:-(7+5*t)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||s(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||s(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=(0,h.A)(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.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,h.A)(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||(0,h.A)(this.primaryColor,1),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=u(this.primaryColor,{h:64}),this.fillType3=u(this.secondaryColor,{h:64}),this.fillType4=u(this.primaryColor,{h:-64}),this.fillType5=u(this.secondaryColor,{h:-64}),this.fillType6=u(this.primaryColor,{h:128}),this.fillType7=u(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||u(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||u(this.primaryColor,{l:-10}),this.pie5=this.pie5||u(this.secondaryColor,{l:-30}),this.pie6=this.pie6||u(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||u(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||u(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||u(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||u(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||u(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||u(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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||u(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||u(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||u(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||u(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||u(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||u(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,h.A)(this.quadrant1Fill):(0,c.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",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||u(this.primaryColor,{h:-30}),this.git4=this.git4||u(this.primaryColor,{h:-60}),this.git5=this.git5||u(this.primaryColor,{h:-90}),this.git6=this.git6||u(this.primaryColor,{h:60}),this.git7=this.git7||u(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,h.A)(this.git0,25),this.git1=(0,h.A)(this.git1,25),this.git2=(0,h.A)(this.git2,25),this.git3=(0,h.A)(this.git3,25),this.git4=(0,h.A)(this.git4,25),this.git5=(0,h.A)(this.git5,25),this.git6=(0,h.A)(this.git6,25),this.git7=(0,h.A)(this.git7,25)):(this.git0=(0,c.A)(this.git0,25),this.git1=(0,c.A)(this.git1,25),this.git2=(0,c.A)(this.git2,25),this.git3=(0,c.A)(this.git3,25),this.git4=(0,c.A)(this.git4,25),this.git5=(0,c.A)(this.git5,25),this.git6=(0,c.A)(this.git6,25),this.git7=(0,c.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,c.A)(s(this.git0),25),this.gitInv1=this.gitInv1||s(this.git1),this.gitInv2=this.gitInv2||s(this.git2),this.gitInv3=this.gitInv3||s(this.git3),this.gitInv4=this.gitInv4||s(this.git4),this.gitInv5=this.gitInv5||s(this.git5),this.gitInv6=this.gitInv6||s(this.git6),this.gitInv7=this.gitInv7||s(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||s(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||s(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",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||M,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L}calculate(t){if(Object.keys(this).forEach((t=>{"calculated"===this[t]&&(this[t]=void 0)})),"object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},N=g((t=>{const e=new z;return e.calculate(t),e}),"getThemeVariables"),j=class{static{g(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,h.A)("#cde498",10),this.primaryBorderColor=$(this.primaryColor,this.darkMode),this.secondaryBorderColor=$(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$(this.tertiaryColor,this.darkMode),this.primaryTextColor=s(this.primaryColor),this.secondaryTextColor=s(this.secondaryColor),this.tertiaryTextColor=s(this.primaryColor),this.lineColor=s(this.background),this.textColor=s(this.background),this.THEME_COLOR_LIMIT=12,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="calculated",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.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=(0,c.A)(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.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||u(this.primaryColor,{h:30}),this.cScale4=this.cScale4||u(this.primaryColor,{h:60}),this.cScale5=this.cScale5||u(this.primaryColor,{h:90}),this.cScale6=this.cScale6||u(this.primaryColor,{h:120}),this.cScale7=this.cScale7||u(this.primaryColor,{h:150}),this.cScale8=this.cScale8||u(this.primaryColor,{h:210}),this.cScale9=this.cScale9||u(this.primaryColor,{h:270}),this.cScale10=this.cScale10||u(this.primaryColor,{h:300}),this.cScale11=this.cScale11||u(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,c.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,c.A)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,c.A)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,c.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||u(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||u(this.mainBkg,{h:30,s:-30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||u(this.mainBkg,{h:30,s:-30,l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,h.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,h.A)(this.mainBkg,20),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=u(this.primaryColor,{h:64}),this.fillType3=u(this.secondaryColor,{h:64}),this.fillType4=u(this.primaryColor,{h:-64}),this.fillType5=u(this.secondaryColor,{h:-64}),this.fillType6=u(this.primaryColor,{h:128}),this.fillType7=u(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||u(this.primaryColor,{l:-30}),this.pie5=this.pie5||u(this.secondaryColor,{l:-30}),this.pie6=this.pie6||u(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||u(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||u(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||u(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||u(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||u(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||u(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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||u(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||u(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||u(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||u(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||u(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||u(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,h.A)(this.quadrant1Fill):(0,c.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",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||u(this.primaryColor,{h:-30}),this.git4=this.git4||u(this.primaryColor,{h:-60}),this.git5=this.git5||u(this.primaryColor,{h:-90}),this.git6=this.git6||u(this.primaryColor,{h:60}),this.git7=this.git7||u(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,h.A)(this.git0,25),this.git1=(0,h.A)(this.git1,25),this.git2=(0,h.A)(this.git2,25),this.git3=(0,h.A)(this.git3,25),this.git4=(0,h.A)(this.git4,25),this.git5=(0,h.A)(this.git5,25),this.git6=(0,h.A)(this.git6,25),this.git7=(0,h.A)(this.git7,25)):(this.git0=(0,c.A)(this.git0,25),this.git1=(0,c.A)(this.git1,25),this.git2=(0,c.A)(this.git2,25),this.git3=(0,c.A)(this.git3,25),this.git4=(0,c.A)(this.git4,25),this.git5=(0,c.A)(this.git5,25),this.git6=(0,c.A)(this.git6,25),this.git7=(0,c.A)(this.git7,25)),this.gitInv0=this.gitInv0||s(this.git0),this.gitInv1=this.gitInv1||s(this.git1),this.gitInv2=this.gitInv2||s(this.git2),this.gitInv3=this.gitInv3||s(this.git3),this.gitInv4=this.gitInv4||s(this.git4),this.gitInv5=this.gitInv5||s(this.git5),this.gitInv6=this.gitInv6||s(this.git6),this.gitInv7=this.gitInv7||s(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||s(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||s(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",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||M,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},q=g((t=>{const e=new j;return e.calculate(t),e}),"getThemeVariables"),K=class{static{g(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,h.A)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=u(this.primaryColor,{h:-160}),this.primaryBorderColor=$(this.primaryColor,this.darkMode),this.secondaryBorderColor=$(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$(this.tertiaryColor,this.darkMode),this.primaryTextColor=s(this.primaryColor),this.secondaryTextColor=s(this.secondaryColor),this.tertiaryTextColor=s(this.tertiaryColor),this.lineColor=s(this.background),this.textColor=s(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.THEME_COLOR_LIMIT=12,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=this.actorBorder,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.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||(0,h.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,h.A)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,h.A)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,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.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||s(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,h.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,c.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||u(this.mainBkg,{l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||u(this.mainBkg,{l:-(8+5*t)});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.sectionBkgColor=(0,h.A)(this.contrast,30),this.sectionBkgColor2=(0,h.A)(this.contrast,30),this.taskBorderColor=(0,c.A)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,h.A)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,c.A)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=u(this.primaryColor,{h:64}),this.fillType3=u(this.secondaryColor,{h:64}),this.fillType4=u(this.primaryColor,{h:-64}),this.fillType5=u(this.secondaryColor,{h:-64}),this.fillType6=u(this.primaryColor,{h:128}),this.fillType7=u(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,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.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||u(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||u(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||u(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||u(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||u(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||u(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,h.A)(this.quadrant1Fill):(0,c.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",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=(0,c.A)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||u(this.primaryColor,{h:-30}),this.git4=this.pie5||u(this.primaryColor,{h:-60}),this.git5=this.pie6||u(this.primaryColor,{h:-90}),this.git6=this.pie7||u(this.primaryColor,{h:60}),this.git7=this.pie8||u(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||s(this.git0),this.gitInv1=this.gitInv1||s(this.git1),this.gitInv2=this.gitInv2||s(this.git2),this.gitInv3=this.gitInv3||s(this.git3),this.gitInv4=this.gitInv4||s(this.git4),this.gitInv5=this.gitInv5||s(this.git5),this.gitInv6=this.gitInv6||s(this.git6),this.gitInv7=this.gitInv7||s(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",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||M,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},W={base:{getThemeVariables:I},dark:{getThemeVariables:P},default:{getThemeVariables:N},forest:{getThemeVariables:q},neutral:{getThemeVariables:g((t=>{const e=new K;return e.calculate(t),e}),"getThemeVariables")}},H={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,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,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},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,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"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,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,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{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},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,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"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,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,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"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},U={...H,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:W.default.getThemeVariables(),sequence:{...H.sequence,messageFont:g((function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}),"messageFont"),noteFont:g((function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}}),"noteFont"),actorFont:g((function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}),"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...H.gantt,tickInterval:void 0,useWidth:void 0},c4:{...H.c4,useWidth:void 0,personFont:g((function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}}),"personFont"),flowchart:{...H.flowchart,inheritDir:!1},external_personFont:g((function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}}),"external_personFont"),systemFont:g((function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}}),"systemFont"),external_systemFont:g((function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}}),"external_systemFont"),system_dbFont:g((function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}}),"system_dbFont"),external_system_dbFont:g((function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}}),"external_system_dbFont"),system_queueFont:g((function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}}),"system_queueFont"),external_system_queueFont:g((function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}}),"external_system_queueFont"),containerFont:g((function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}}),"containerFont"),external_containerFont:g((function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}}),"external_containerFont"),container_dbFont:g((function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}}),"container_dbFont"),external_container_dbFont:g((function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}}),"external_container_dbFont"),container_queueFont:g((function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}}),"container_queueFont"),external_container_queueFont:g((function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}}),"external_container_queueFont"),componentFont:g((function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}}),"componentFont"),external_componentFont:g((function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}}),"external_componentFont"),component_dbFont:g((function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}}),"component_dbFont"),external_component_dbFont:g((function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}}),"external_component_dbFont"),component_queueFont:g((function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}}),"component_queueFont"),external_component_queueFont:g((function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}}),"external_component_queueFont"),boundaryFont:g((function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}}),"boundaryFont"),messageFont:g((function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}),"messageFont")},pie:{...H.pie,useWidth:984},xyChart:{...H.xyChart,useWidth:void 0},requirement:{...H.requirement,useWidth:void 0},packet:{...H.packet},radar:{...H.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},Y=g(((t,e="")=>Object.keys(t).reduce(((n,r)=>Array.isArray(t[r])?n:"object"==typeof t[r]&&null!==t[r]?[...n,e+r,...Y(t[r],"")]:[...n,e+r]),[])),"keyify"),G=new Set(Y(U,"")),V=U,X=g((t=>{if(y.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t)if(Array.isArray(t))t.forEach((t=>X(t)));else{for(const e of Object.keys(t)){if(y.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!G.has(e)||null==t[e]){y.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){y.debug("sanitizing object",e),X(t[e]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const r of n)e.includes(r)&&(y.debug("sanitizing css option",e),t[e]=Z(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const n=t.themeVariables[e];n?.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}y.debug("After sanitization",t)}}),"sanitizeDirective"),Z=g((t=>{let e=0,n=0;for(const r of t){if(e<n)return"{ /* ERROR: Unbalanced CSS */ }";"{"===r?e++:"}"===r&&n++}return e!==n?"{ /* ERROR: Unbalanced CSS */ }":t}),"sanitizeCss"),Q=Object.freeze(V),J=T({},Q),tt=[],et=T({},Q),nt=g(((t,e)=>{let n=T({},t),r={};for(const t of e)lt(t),r=T(r,t);if(n=T(n,r),r.theme&&r.theme in W){const t=T({},l),e=T(t.themeVariables||{},r.themeVariables);n.theme&&n.theme in W&&(n.themeVariables=W[n.theme].getThemeVariables(e))}return gt(et=n),et}),"updateCurrentConfig"),rt=g((t=>(J=T({},Q),J=T(J,t),t.theme&&W[t.theme]&&(J.themeVariables=W[t.theme].getThemeVariables(t.themeVariables)),nt(J,tt),J)),"setSiteConfig"),it=g((t=>{l=T({},t)}),"saveConfigFromInitialize"),ot=g((t=>(J=T(J,t),nt(J,tt),J)),"updateSiteConfig"),ut=g((()=>T({},J)),"getSiteConfig"),at=g((t=>(gt(t),T(et,t),st())),"setConfig"),st=g((()=>T({},et)),"getConfig"),lt=g((t=>{t&&(["secure",...J.secure??[]].forEach((e=>{Object.hasOwn(t,e)&&(y.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])})),Object.keys(t).forEach((e=>{e.startsWith("__")&&delete t[e]})),Object.keys(t).forEach((e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&lt(t[e])})))}),"sanitize"),ct=g((t=>{X(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),tt.push(t),nt(J,tt)}),"addDirective"),ht=g(((t=J)=>{nt(t,tt=[])}),"reset"),dt={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},ft={},pt=g((t=>{ft[t]||(y.warn(dt[t]),ft[t]=!0)}),"issueWarning"),gt=g((t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&pt("LAZY_LOAD_DEPRECATED")}),"checkConfig"),mt=/<br\s*\/?>/gi,Ft=g((t=>t?wt(t).replace(/\\n/g,"#br#").split("#br#"):[""]),"getRows"),yt=(()=>{let t=!1;return()=>{t||(At(),t=!0)}})();function At(){const t="data-temp-href-target";f.A.addHook("beforeSanitizeAttributes",(e=>{e instanceof Element&&"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")})),f.A.addHook("afterSanitizeAttributes",(e=>{e instanceof Element&&"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))}))}g(At,"setupDompurifyHooks");var Ct=g((t=>(yt(),f.A.sanitize(t))),"removeScript"),xt=g(((t,e)=>{if(!1!==e.flowchart?.htmlLabels){const n=e.securityLevel;"antiscript"===n||"strict"===n?t=Ct(t):"loose"!==n&&(t=(t=(t=wt(t)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),t=Bt(t))}return t}),"sanitizeMore"),bt=g(((t,e)=>t?t=e.dompurifyConfig?f.A.sanitize(xt(t,e),e.dompurifyConfig).toString():f.A.sanitize(xt(t,e),{FORBID_TAGS:["style"]}).toString():t),"sanitizeText"),Dt=g(((t,e)=>"string"==typeof t?bt(t,e):t.flat().map((t=>bt(t,e)))),"sanitizeTextOrArray"),Et=g((t=>mt.test(t)),"hasBreaks"),kt=g((t=>t.split(mt)),"splitBreaks"),Bt=g((t=>t.replace(/#br#/g,"<br/>")),"placeholderToBreak"),wt=g((t=>t.replace(mt,"#br#")),"breakToPlaceholder"),vt=g((t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e}),"getUrl"),_t=g((t=>!1!==t&&!["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),St=g((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.max(...e)}),"getMax"),Tt=g((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.min(...e)}),"getMin"),Mt=g((function(t){const e=t.split(/(,)/),n=[];for(let t=0;t<e.length;t++){let r=e[t];if(","===r&&t>0&&t+1<e.length){const i=e[t-1],o=e[t+1];$t(i,o)&&(r=i+","+o,t++,n.pop())}n.push(Ot(r))}return n.join("")}),"parseGenericTypes"),Lt=g(((t,e)=>Math.max(0,t.split(e).length-1)),"countOccurrence"),$t=g(((t,e)=>{const n=Lt(t,"~"),r=Lt(e,"~");return 1===n&&1===r}),"shouldCombineSets"),Ot=g((t=>{const e=Lt(t,"~");let n=!1;if(e<=1)return t;e%2!=0&&t.startsWith("~")&&(t=t.substring(1),n=!0);const r=[...t];let i=r.indexOf("~"),o=r.lastIndexOf("~");for(;-1!==i&&-1!==o&&i!==o;)r[i]="<",r[o]=">",i=r.indexOf("~"),o=r.lastIndexOf("~");return n&&r.unshift("~"),r.join("")}),"processSet"),It=g((()=>void 0!==window.MathMLElement),"isMathMLSupported"),Rt=/\$\$(.*)\$\$/g,Pt=g((t=>(t.match(Rt)?.length??0)>0),"hasKatex"),zt=g((async(t,e)=>{t=await Nt(t,e);const n=document.createElement("div");n.innerHTML=t,n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0";const r=document.querySelector("body");r?.insertAdjacentElement("beforeend",n);const i={width:n.clientWidth,height:n.clientHeight};return n.remove(),i}),"calculateMathMLDimensions"),Nt=g((async(t,e)=>{if(!Pt(t))return t;if(!(It()||e.legacyMathML||e.forceLegacyMathML))return t.replace(Rt,"MathML is unsupported in this environment.");{const{default:r}=await n.e(9263).then(n.bind(n,9263)),i=e.forceLegacyMathML||!It()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(mt).map((t=>Pt(t)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${t}</div>`:`<div>${t}</div>`)).join("").replace(Rt,((t,e)=>r.renderToString(e,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,"")))}}),"renderKatex"),jt={getRows:Ft,sanitizeText:bt,sanitizeTextOrArray:Dt,hasBreaks:Et,splitBreaks:kt,lineBreakRegex:mt,removeScript:Ct,getUrl:vt,evaluate:_t,getMax:St,getMin:Tt},qt=g((function(t,e){for(let n of e)t.attr(n[0],n[1])}),"d3Attrs"),Kt=g((function(t,e,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r}),"calculateSvgSizeAttrs"),Wt=g((function(t,e,n,r){const i=Kt(e,n,r);qt(t,i)}),"configureSvgSize"),Ht=g((function(t,e,n,r){const i=e.node().getBBox(),o=i.width,u=i.height;y.info(`SVG bounds: ${o}x${u}`,i);let a=0,s=0;y.info(`Graph bounds: ${a}x${s}`,t),a=o+2*n,s=u+2*n,y.info(`Calculated bounds: ${a}x${s}`),Wt(e,s,a,r);const l=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;e.attr("viewBox",l)}),"setupGraphViewbox"),Ut={},Yt=g(((t,e,n)=>{let r="";return t in Ut&&Ut[t]?r=Ut[t](n):y.warn(`No theme found for ${t}`),` & {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n fill: ${n.textColor}\n }\n @keyframes edge-animation-frame {\n from {\n stroke-dashoffset: 0;\n }\n }\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n & .edge-animation-slow {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 50s linear infinite;\n stroke-linecap: round;\n }\n & .edge-animation-fast {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 20s linear infinite;\n stroke-linecap: round;\n }\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${n.errorBkgColor};\n }\n & .error-text {\n fill: ${n.errorTextColor};\n stroke: ${n.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 1px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n & .edge-thickness-invisible {\n stroke-width: 0;\n fill: none;\n }\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${n.lineColor};\n stroke: ${n.lineColor};\n }\n & .marker.cross {\n stroke: ${n.lineColor};\n }\n\n & svg {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n }\n & p {\n margin: 0\n }\n\n ${r}\n\n ${e}\n`}),"getStyles"),Gt=g(((t,e)=>{void 0!==e&&(Ut[t]=e)}),"addStylesForDiagram"),Vt=Yt,Xt={};m(Xt,{clear:()=>ee,getAccDescription:()=>oe,getAccTitle:()=>re,getDiagramTitle:()=>ae,setAccDescription:()=>ie,setAccTitle:()=>ne,setDiagramTitle:()=>ue});var Zt="",Qt="",Jt="",te=g((t=>bt(t,st())),"sanitizeText"),ee=g((()=>{Zt="",Jt="",Qt=""}),"clear"),ne=g((t=>{Zt=te(t).replace(/^\s+/g,"")}),"setAccTitle"),re=g((()=>Zt),"getAccTitle"),ie=g((t=>{Jt=te(t).replace(/\n\s+/g,"\n")}),"setAccDescription"),oe=g((()=>Jt),"getAccDescription"),ue=g((t=>{Qt=te(t)}),"setDiagramTitle"),ae=g((()=>Qt),"getDiagramTitle"),se=y,le=A,ce=st,he=at,de=Q,fe=g((t=>bt(t,ce())),"sanitizeText"),pe=Ht,ge=g((()=>Xt),"getCommonDb"),me={},Fe=g(((t,e,n)=>{me[t]&&se.warn(`Diagram with id ${t} already registered. Overwriting.`),me[t]=e,n&&v(t,n),Gt(t,e.styles),e.injectUtils?.(se,le,ce,fe,pe,ge(),(()=>{}))}),"registerDiagram"),ye=g((t=>{if(t in me)return me[t];throw new Ae(t)}),"getDiagram"),Ae=class extends Error{static{g(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}},8126:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return function(e){return t(e)}}},8128:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},8250:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(7942),i=Object.create;const o=function(){function t(){}return function(e){if(!(0,r.A)(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var u=n(4878),a=n(1140);const s=function(t){return"function"!=typeof t.constructor||(0,a.A)(t)?{}:o((0,u.A)(t))}},8282:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(1140);const i=(0,n(7244).A)(Object.keys,Object);var o=Object.prototype.hasOwnProperty;const u=function(t){if(!(0,r.A)(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},8574:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(123),i=n(9600);const o=(0,r.A)(i.A,"Set")},8724:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(7913);const i=function(t){var e=new t.constructor(t.byteLength);return new r.A(e).set(new r.A(t)),e}},8748:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(4044),i=n(7313);const o=function(t){return(0,i.A)(t)&&"[object Arguments]"==(0,r.A)(t)};var u=Object.prototype,a=u.hasOwnProperty,s=u.propertyIsEnumerable;const l=o(function(){return arguments}())?o:function(t){return(0,i.A)(t)&&a.call(t,"callee")&&!s.call(t,"callee")}},8968:(t,e,n)=>{"use strict";function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Array.from("string"==typeof t?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce((function(t,e){var n=e.match(/\n([\t ]+|(?!\s).)/g);return n?t.concat(n.map((function(t){var e,n;return null!==(n=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==n?n:0}))):t}),[]);if(i.length){var o=new RegExp("\n[\t ]{"+Math.min.apply(Math,i)+"}","g");r=r.map((function(t){return t.replace(o,"\n")}))}r[0]=r[0].replace(/^\r?\n/,"");var u=r[0];return e.forEach((function(t,e){var n=u.match(/(?:^|\n)( *)$/),i=n?n[1]:"",o=t;"string"==typeof t&&t.includes("\n")&&(o=String(t).split("\n").map((function(t,e){return 0===e?t:""+i+t})).join("\n")),u+=o+r[e+1]})),u}n.d(e,{T:()=>r})},9271:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(1758);const i=function(t,e,n){"__proto__"==e&&r.A?(0,r.A)(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},9600:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(6713),i="object"==typeof self&&self&&self.Object===Object&&self;const o=r.A||i||Function("return this")()},9645:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(3269);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return n.cache=o.set(i,u)||o,u};return n.cache=new(i.Cache||r.A),n}i.Cache=r.A;const o=i},9820:(t,e,n)=>{"use strict";function r(){}n.d(e,{ok:()=>r})},9993:(t,e,n)=>{"use strict";function r(t){return t&&"object"==typeof t?"position"in t||"type"in t?o(t.position):"start"in t||"end"in t?o(t):"line"in t||"column"in t?i(t):"":""}function i(t){return u(t&&t.line)+":"+u(t&&t.column)}function o(t){return i(t&&t.start)+"-"+i(t&&t.end)}function u(t){return t&&"number"==typeof t?t:1}n.d(e,{L:()=>r})}}]);
3
- //# sourceMappingURL=5522.bbd6f76c.js.map