@seqyuan/annovibe 0.8.39 → 0.8.40
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.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +2 -2
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/react-loadable-manifest.json +315 -2197
- package/.next/required-server-files.js +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/agent/runtime/route.js +1 -1
- package/.next/server/app/api/internal/runtime/route.js +1 -1
- package/.next/server/app/api/version/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +2 -2
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +1 -1
- package/.next/server/app/login.segments/_full.segment.rsc +1 -1
- package/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/server/app/login.segments/_index.segment.rsc +1 -1
- package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/.next/server/app/page.js +4 -4
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/smoke/page.js +2 -2
- package/.next/server/app/smoke/page_client-reference-manifest.js +1 -1
- package/.next/server/app/smoke.html +2 -2
- package/.next/server/app/smoke.rsc +2 -2
- package/.next/server/app/smoke.segments/_full.segment.rsc +2 -2
- package/.next/server/app/smoke.segments/_head.segment.rsc +1 -1
- package/.next/server/app/smoke.segments/_index.segment.rsc +1 -1
- package/.next/server/app/smoke.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/smoke.segments/smoke/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/smoke.segments/smoke.segment.rsc +1 -1
- package/.next/server/app-paths-manifest.json +2 -2
- package/.next/server/chunks/1210.js +246 -0
- package/.next/server/chunks/2242.js +1 -0
- package/.next/server/chunks/3386.js +1 -0
- package/.next/server/chunks/3460.js +1 -0
- package/.next/server/chunks/5715.js +1 -0
- package/.next/server/chunks/6121.js +1 -0
- package/.next/server/chunks/6465.js +1 -0
- package/.next/server/chunks/7426.js +1 -0
- package/.next/server/chunks/8251.js +1 -0
- package/.next/server/chunks/8915.js +1 -0
- package/.next/server/chunks/8973.js +1 -0
- package/.next/server/chunks/9093.js +349 -0
- package/.next/server/chunks/9868.js +1 -0
- package/.next/server/chunks/9906.js +1 -0
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/1209.6d037cb2674eafa2.js +1 -0
- package/.next/static/chunks/144.26e4646d1b55baa3.js +1 -0
- package/.next/static/chunks/2320.fd867786b7cc6d5f.js +1 -0
- package/.next/static/chunks/2733.8bc8208edd9edde5.js +1 -0
- package/.next/static/chunks/2774.0811cda036dfeb94.js +1 -0
- package/.next/static/chunks/3307.e638f7fa43f28bac.js +1 -0
- package/.next/static/chunks/{5690.332f301b9df6f2dd.js → 3309.d0c34b5ef504a551.js} +1 -1
- package/.next/static/chunks/3689.0336d97dde6c9084.js +1 -0
- package/.next/static/chunks/4097.7f5a996cb7ab16e2.js +1 -0
- package/.next/static/chunks/5135.db90392e58298a66.js +1 -0
- package/.next/static/chunks/5460.6384269ca3add9f0.js +1 -0
- package/.next/static/chunks/5690.64d843d3db8e1b4b.js +1 -0
- package/.next/static/chunks/{2766.99a29d6b0cd152ac.js → 6586.395c3c72e985da50.js} +3 -3
- package/.next/static/chunks/7482.485c6cc8694747d0.js +1 -0
- package/.next/static/chunks/8194-4a4c6b44dcfc55b3.js +173 -0
- package/.next/static/chunks/8198.42369073fedf8a54.js +1 -0
- package/.next/static/chunks/{8863.4b2faadd47deb00c.js → 8863.8b769013468d83d4.js} +1 -1
- package/.next/static/chunks/9595-64b81f0fd7a50dc4.js +246 -0
- package/.next/static/chunks/app/{page-443865609e7e67a7.js → page-3291f6a1f268c41d.js} +3 -3
- package/.next/static/chunks/app/smoke/{page-57d2b282f9b2d200.js → page-431310549b820f3b.js} +2 -2
- package/.next/static/chunks/webpack-b7b531a4a8559f64.js +1 -0
- package/package.json +1 -3
- package/.next/server/chunks/4831.js +0 -349
- package/.next/server/chunks/7358.js +0 -246
- package/.next/static/chunks/3041-2a1bf2ba5b31db24.js +0 -246
- package/.next/static/chunks/3309.581b04bacfeed701.js +0 -1
- package/.next/static/chunks/6236-1f7433425e0ceda5.js +0 -173
- package/.next/static/chunks/webpack-19a6d5696c9d0290.js +0 -1
- /package/.next/static/{tzG34HSOTS30YvTSTz81W → _cg-NeIs7evKmS6N4eYHl}/_buildManifest.js +0 -0
- /package/.next/static/{tzG34HSOTS30YvTSTz81W → _cg-NeIs7evKmS6N4eYHl}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8194],{177:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return a(t,e),t}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{className:t,useClasses:n,children:r,linkify:i}=e;return h.createElement("code",{className:t},(function(e,t=!1){return e=(0,c.escapeCarriageReturn)(function(e){let t=e;do t=(e=t).replace(/[^\n]\x08/gm,"");while(t.length<e.length);return e}(e)),l.default.ansiToJson(e,{json:!0,remove_empty:!0,use_classes:t})})(null!=r?r:"",null!=n&&n).map(p.bind(null,null!=i&&i,null!=n&&n)))};let l=o(n(89315)),c=n(36088),u=o(n(60598)),h=s(n(12115));function p(e,t,n,r){let i,a=t?null:function(e){let t={};switch(e.bg&&(t.backgroundColor=`rgb(${e.bg})`),e.fg&&(t.color=`rgb(${e.fg})`),e.decoration){case"bold":t.fontWeight="bold";break;case"dim":t.opacity="0.5";break;case"italic":t.fontStyle="italic";break;case"hidden":t.visibility="hidden";break;case"strikethrough":t.textDecoration="line-through";break;case"underline":t.textDecoration="underline";break;case"blink":t.textDecoration="blink"}return t}(n),s=t?(i="",(n.bg&&(i+=`${n.bg}-bg `),n.fg&&(i+=`${n.fg}-fg `),n.decoration&&(i+=`ansi-${n.decoration} `),""===i)?null:i=i.substring(0,i.length-1)):null;return e?"fuzzy"===e?function(e,t,n,r){var i;let a=(0,u.default)({fuzzyEmail:!1}).tlds(["io"],!0);if(!a.pretest(e.content))return h.createElement("span",{style:n,key:t,className:r},e.content);let s=a.match(e.content);if(!s)return h.createElement("span",{style:n,key:t,className:r},e.content);let o=[e.content.substring(0,null==(i=s[0])?void 0:i.index)];return s.forEach((t,n)=>{var r;o.push(h.createElement("a",{href:t.url,target:"_blank",key:n},e.content.substring(t.index,t.lastIndex))),s[n+1]&&o.push(e.content.substring(s[n].lastIndex,null==(r=s[n+1])?void 0:r.index))}),s[s.length-1].lastIndex!==e.content.length&&o.push(e.content.substring(s[s.length-1].lastIndex,e.content.length)),h.createElement("span",{style:n,key:t,className:r},o)}(n,r,a,s):function(e,t,n,r){let i,a=[],s=/(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g,o=0;for(;null!==(i=s.exec(e.content));){let[,t,n]=i,r=i.index+t.length;r>o&&a.push(e.content.substring(o,r));let l=n.startsWith("www.")?`http://${n}`:n;a.push(h.createElement("a",{key:o,href:l,target:"_blank"},`${n}`)),o=s.lastIndex}return o<e.content.length&&a.push(e.content.substring(o)),h.createElement("span",{style:n,key:t,className:r},a)}(n,r,a,s):h.createElement("span",{style:a,key:r,className:s},n.content)}},2991:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(52326),i=n(68420);let a=(e,t)=>{let n=r.A.parse(e),a={};for(let e in t)t[e]&&(a[e]=n[e]+t[e]);return(0,i.A)(e,a)}},3628:(e,t,n)=>{"use strict";n.d(t,{XX:()=>h,q7:()=>p,sO:()=>u});var r=n(72475),i=n(63886),a=n(32563),s=n(97096),o=n(32165),l={common:s.Y2,getConfig:s.zj,insertCluster:i.U,insertEdge:r.Jo,insertEdgeLabel:r.jP,insertMarkers:r.g0,insertNode:i.on,interpolateToCurve:a.Ib,labelHelper:i.Zk,log:o.Rm,positionEdgeLabel:r.T_},c={},u=(0,o.K2)(e=>{for(let t of e)c[t.name]=t},"registerLayoutLoaders");(0,o.K2)(()=>{u([{name:"dagre",loader:(0,o.K2)(async()=>await Promise.all([n.e(2821),n.e(6121),n.e(1852)]).then(n.bind(n,91852)),"loader")},{name:"cose-bilkent",loader:(0,o.K2)(async()=>await Promise.all([n.e(8747),n.e(7874)]).then(n.bind(n,67874)),"loader")}])},"registerDefaultLayoutLoaders")();var h=(0,o.K2)(async(e,t)=>{if(!(e.layoutAlgorithm in c))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let n=c[e.layoutAlgorithm],r=await n.loader(),{theme:i,themeVariables:a}=e.config,{useGradient:s,gradientStart:o,gradientStop:u}=a,h=t.attr("id");if(t.append("defs").append("filter").attr("id",`${h}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${h}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),s){let e=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("svg:stop").attr("offset","0%").attr("stop-color",o).attr("stop-opacity",1),e.append("svg:stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}return r.render(e,t,l,{algorithm:n.algorithm})},"render"),p=(0,o.K2)((e="",{fallback:t="dagre"}={})=>{if(e in c)return e;if(t in c)return o.Rm.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm")},4238:(e,t,n)=>{"use strict";n.d(t,{Eo:()=>z});var r=n(89561),i=n(27071),a=n(40550);let s="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class o{constructor(e,t,n=0,r=e.length,i,a){this.test=a,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(s(e)):s,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return -1;this.bufferPos=0,this.buffer=this.iter.value}return(0,i.vS)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,i.MK)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,i.Fh)(e);let r=this.normalize(t);if(r.length)for(let e=0,i=n,a=!0;;e++){let n=r.charCodeAt(e),s=this.match(n,i,a,this.bufferPos+this.bufferStart,e==r.length-1);if(s)return this.value=s,this;if(e==r.length-1)break;a&&e<t.length&&t.charCodeAt(e)==n?i++:a=!1}}}match(e,t,n,r,i){let a=null;for(let t=0;t<this.matches.length;){let n=this.matches[t],s=!1;this.query.charCodeAt(n.index)==e&&(n.index==this.query.length-1?a={from:n.from,to:r,precise:i&&n.precise}:(n.index++,s=!0)),s?t++:this.matches.splice(t,1)}return this.query.charCodeAt(0)==e&&(1==this.query.length?a={from:t,to:r,precise:n&&i}:this.matches.push({from:t,index:1,precise:n})),a&&this.test&&!this.test(a.from,a.to,this.buffer,this.bufferStart)&&(a=null),a}}"u">typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this});let l={from:-1,to:-1,match:/.*/.exec(""),precise:!0},c="gm"+(null==/x/.unicode?"":"u");class u{constructor(e,t,n,r=0,i=e.length){if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=l,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new d(e,t,n,r,i);this.re=new RegExp(t,c+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.iter=e.iter();let a=e.lineAt(r);this.curLineStart=a.from,this.matchPos=f(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=f(this.text,r+ +(n==r)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,precise:!0,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}let h=new WeakMap;class p{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let r=h.get(e);if(!r||r.from>=n||r.to<=t){let r=new p(t,e.sliceString(t,n));return h.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:a}=r;return a>t&&(i=e.sliceString(t,a)+i,a=t),r.to<n&&(i+=e.sliceString(r.to,n)),h.set(e,new p(a,i)),new p(t,i.slice(t-a,n-a))}}class d{constructor(e,t,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=l,this.matchPos=f(e,r),this.re=new RegExp(t,c+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.flat=p.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,precise:!0,match:t},this.matchPos=f(this.text,n+ +(e==n)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=p.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function f(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t<n.to&&(r=n.text.charCodeAt(t-n.from))>=56320&&r<57344;)t++;return t}"u">typeof Symbol&&(u.prototype[Symbol.iterator]=d.prototype[Symbol.iterator]=function(){return this});let m=i.sj.define({combine:e=>(0,i.QR)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new G(e),scrollToMatch:e=>r.Lz.scrollIntoView(e)})});class g{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,c),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new T(this):new k(this)}getCursor(e,t=0,n){let r=e.doc?e:i.$t.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?_(this,r,t,n):b(this,r,t,n)}}class y{constructor(e){this.spec=e}}function b(e,t,n,r){var a,s,l,c;let u;return e.wholeWord&&(l=t.doc,c=t.charCategorizer(t.selection.main.head),u=(e,t,n,r)=>((r>e||r+n.length<t)&&(r=Math.max(0,e-2),n=l.sliceString(r,Math.min(l.length,t+2))),(c(x(n,e-r))!=i.Je.Word||c(E(n,e-r))!=i.Je.Word)&&(c(E(n,t-r))!=i.Je.Word||c(x(n,t-r))!=i.Je.Word))),e.test&&(a=e.test,s=u,u=(e,n,r,i)=>(!s||!!s(e,n,r,i))&&a(e>=i&&n<=i+r.length?r.slice(e-i,n-i):t.doc.sliceString(e,n),t,e,n)),new o(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),u)}class k extends y{constructor(e){super(e)}nextMatch(e,t,n){let r=b(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=b(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=b(this.spec,e,n,r),a=null;for(;!i.nextOverlapping().done;)a=i.value;if(a)return a;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=b(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=b(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function _(e,t,n,r){var a,s,o;let l;return e.wholeWord&&(o=t.charCategorizer(t.selection.main.head),l=(e,t,n)=>!n[0].length||(o(x(n.input,n.index))!=i.Je.Word||o(E(n.input,n.index))!=i.Je.Word)&&(o(E(n.input,n.index+n[0].length))!=i.Je.Word||o(x(n.input,n.index+n[0].length))!=i.Je.Word)),e.test&&(a=e.test,s=l,l=(e,n,r)=>(!s||s(e,n,r))&&a(r[0],t,e,n)),new u(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:l},n,r)}function x(e,t){return e.slice((0,i.zK)(e,t,!1),t)}function E(e,t){return e.slice(t,(0,i.zK)(e,t))}class T extends y{nextMatch(e,t,n){let r=_(this.spec,e,n,e.doc.length).next();return r.done&&(r=_(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),a=_(this.spec,e,i,n),s=null;for(;!a.next().done;)s=a.value;if(s&&(i==t||s.from>i+10))return s;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if("&"==n)return e.match[0];if("$"==n)return"$";for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r<e.match.length)return e.match[r]+n.slice(t)}return t})}matchAll(e,t){let n=_(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=_(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}let A=i.Pe.define(),v=i.Pe.define(),w=i.sU.define({create:e=>new S(B(e).create(),null),update(e,t){for(let n of t.effects)n.is(A)?e=new S(n.value.create(),e.panel):n.is(v)&&(e=new S(e.query,n.value?F:null));return e},provide:e=>r.S7.from(e,e=>e.panel)});class S{constructor(e,t){this.query=e,this.panel=t}}let C=r.NZ.mark({class:"cm-searchMatch"}),N=r.NZ.mark({class:"cm-searchMatch cm-searchMatch-selected"}),I=r.Z9.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(w))}update(e){let t=e.state.field(w);(t!=e.startState.field(w)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return r.NZ.none;let{view:n}=this,a=new i.vB;for(let t=0,r=n.visibleRanges,i=r.length;t<i;t++){let{from:s,to:o}=r[t];for(;t<i-1&&o>r[t+1].from-500;)o=r[++t].to;e.highlight(n.state,s,o,(e,t)=>{let r=n.state.selection.ranges.some(n=>n.from==e&&n.to==t);a.add(e,t,r?N:C)})}return a.finish()}},{decorations:e=>e.decorations});function D(e){return t=>{let n=t.state.field(w,!1);return n&&n.query.spec.valid?e(t,n):j(t)}}let O=D((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let a=i.OF.single(r.from,r.to),s=e.state.facet(m);return e.dispatch({selection:a,effects:[Y(e,r),s.scrollToMatch(a.main,e)],userEvent:"select.search"}),U(e),!0}),M=D((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,a=t.prevMatch(n,r,r);if(!a)return!1;let s=i.OF.single(a.from,a.to),o=e.state.facet(m);return e.dispatch({selection:s,effects:[Y(e,a),o.scrollToMatch(s.main,e)],userEvent:"select.search"}),U(e),!0}),L=D((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!!n&&!!n.length&&(e.dispatch({selection:i.OF.create(n.map(e=>i.OF.range(e.from,e.to))),userEvent:"select.search.matches"}),!0)}),R=D((e,{query:t})=>{let{state:n}=e,{from:a,to:s}=n.selection.main;if(n.readOnly)return!1;let o=t.nextMatch(n,a,a);if(!o)return!1;let l=o,c=[],u,h,p=[];l.precise?l.from==a&&l.to==s&&(h=n.toText(t.getReplacement(l)),c.push({from:l.from,to:l.to,insert:h}),p.push(r.Lz.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(a).number)+"."))):l=t.nextMatch(n,l.from,l.to);let d=e.state.changes(c);return l&&(u=i.OF.single(l.from,l.to).map(d),p.push(Y(e,l)),p.push(n.facet(m).scrollToMatch(u.main,e))),e.dispatch({changes:d,selection:u,effects:p,userEvent:"input.replace"}),!0}),P=D((e,{query:t})=>{if(e.state.readOnly)return!1;let n=[];for(let r of t.matchAll(e.state,1e9)){let{from:e,to:i,precise:a}=r;a&&n.push({from:e,to:i,insert:t.getReplacement(r)})}if(!n.length)return!1;let i=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:r.Lz.announce.of(i),userEvent:"input.replace.all"}),!0});function F(e){return e.state.facet(m).createPanel(e)}function B(e,t){var n,r,i,a,s;let o=e.selection.main,l=o.empty||o.to>o.from+100?"":e.sliceDoc(o.from,o.to);if(t&&!l)return t;let c=e.facet(m);return new g({search:(null!=(n=null==t?void 0:t.literal)?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!=(r=null==t?void 0:t.caseSensitive)?r:c.caseSensitive,literal:null!=(i=null==t?void 0:t.literal)?i:c.literal,regexp:null!=(a=null==t?void 0:t.regexp)?a:c.regexp,wholeWord:null!=(s=null==t?void 0:t.wholeWord)?s:c.wholeWord})}function H(e){let t=(0,r.ld)(e,F);return t&&t.dom.querySelector("[main-field]")}function U(e){let t=H(e);t&&t==e.root.activeElement&&t.select()}let j=e=>{let t=e.state.field(w,!1);if(t&&t.panel){let n=H(e);if(n&&n!=e.root.activeElement){let r=B(e.state,t.query.spec);r.valid&&e.dispatch({effects:A.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[v.of(!0),t?A.of(B(e.state,t.query.spec)):i.Pe.appendConfig.of(V)]});return!0},$=e=>{let t=e.state.field(w,!1);if(!t||!t.panel)return!1;let n=(0,r.ld)(e,F);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:v.of(!1)}),!0},z=[{key:"Mod-f",run:j,scope:"editor search-panel"},{key:"F3",run:O,shift:M,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:O,shift:M,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:$,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:a}=n.main,s=[],l=0;for(let t=new o(e.doc,e.sliceDoc(r,a));!t.next().done;){if(s.length>1e3)return!1;t.value.from==r&&(l=s.length),s.push(i.OF.range(t.value.from,t.value.to))}return t(e.update({selection:i.OF.create(s,l),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let{state:t}=e,n=String(t.doc.lineAt(e.state.selection.main.head).number),{close:a,result:s}=(0,r.ui)(e,{label:t.phrase("Go to line"),input:{type:"text",name:"line",value:n},focus:!0,submitLabel:t.phrase("go")});return s.then(n=>{let s=n&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.elements.line.value);if(!s)return void e.dispatch({effects:a});let o=t.doc.lineAt(t.selection.main.head),[,l,c,u,h]=s,p=u?+u.slice(1):0,d=c?+c:o.number;if(c&&h){let e=d/100;l&&(e=e*("-"==l?-1:1)+o.number/t.doc.lines),d=Math.round(t.doc.lines*e)}else c&&l&&(d=d*("-"==l?-1:1)+o.number);let f=t.doc.line(Math.max(1,Math.min(t.doc.lines,d))),m=i.OF.cursor(f.from+Math.max(0,Math.min(p,f.length)));e.dispatch({effects:[a,r.Lz.scrollIntoView(m.from,{y:"center"})],selection:m})}),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return(({state:e,dispatch:t})=>{let{selection:n}=e,r=i.OF.create(n.ranges.map(t=>e.wordAt(t.head)||i.OF.cursor(t.head)),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)})({state:e,dispatch:t});let a=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=a))return!1;let s=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new o(e.doc,t,r[r.length-1].to);;)if(i.next(),i.done){if(n)return null;i=new o(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}else{if(n&&r.some(e=>e.from==i.value.from))continue;if(a){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}}(e,a);return!!s&&(t(e.update({selection:e.selection.addRange(i.OF.range(s.from,s.to),!1),effects:r.Lz.scrollIntoView(s.to)})),!0)},preventDefault:!0}];class G{constructor(e){this.view=e;let t=this.query=e.state.field(w).query.spec;function n(e,t,n){return(0,a.A)("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=(0,a.A)("input",{value:t.search,placeholder:K(e,"Find"),"aria-label":K(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=(0,a.A)("input",{value:t.replace,placeholder:K(e,"Replace"),"aria-label":K(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=(0,a.A)("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=(0,a.A)("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=(0,a.A)("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=(0,a.A)("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",()=>O(e),[K(e,"next")]),n("prev",()=>M(e),[K(e,"previous")]),n("select",()=>L(e),[K(e,"all")]),(0,a.A)("label",null,[this.caseField,K(e,"match case")]),(0,a.A)("label",null,[this.reField,K(e,"regexp")]),(0,a.A)("label",null,[this.wordField,K(e,"by word")]),...e.state.readOnly?[]:[(0,a.A)("br"),this.replaceField,n("replace",()=>R(e),[K(e,"replace")]),n("replaceAll",()=>P(e),[K(e,"replace all")])],(0,a.A)("button",{name:"close",onclick:()=>$(e),"aria-label":K(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new g({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:A.of(e)}))}keydown(e){(0,r.TS)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?M:O)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),R(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(A)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(m).top}}function K(e,t){return e.state.phrase(t)}let q=/[\s\.,:;?!]/;function Y(e,{from:t,to:n}){let i=e.state.doc.lineAt(t),a=e.state.doc.lineAt(n).to,s=Math.max(i.from,t-30),o=Math.min(a,n+30),l=e.state.sliceDoc(s,o);if(s!=i.from){for(let e=0;e<30;e++)if(!q.test(l[e+1])&&q.test(l[e])){l=l.slice(e);break}}if(o!=a){for(let e=l.length-1;e>l.length-30;e--)if(!q.test(l[e-1])&&q.test(l[e])){l=l.slice(0,e);break}}return r.Lz.announce.of(`${e.state.phrase("current match")}. ${l} ${e.state.phrase("on line")} ${i.number}.`)}let W=r.Lz.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),V=[w,i.Nb.low(I),W]},4294:(e,t,n)=>{"use strict";n.d(t,{BM:()=>o,CW:()=>r,Ee:()=>h,HP:()=>u,JQ:()=>s,Ny:()=>f,On:()=>p,cx:()=>a,es:()=>d,lV:()=>i,ok:()=>l,ol:()=>c});let r=m(/[A-Za-z]/),i=m(/[\dA-Za-z]/),a=m(/[#-'*+\--9=?A-Z^-~]/);function s(e){return null!==e&&(e<32||127===e)}let o=m(/\d/),l=m(/[\dA-Fa-f]/),c=m(/[!-/:-@[-`{-~]/);function u(e){return null!==e&&e<-2}function h(e){return null!==e&&(e<0||32===e)}function p(e){return -2===e||-1===e||32===e}let d=m(/\p{P}|\p{S}/u),f=m(/\s/);function m(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},4800:(e,t,n)=>{"use strict";n.r(t),n.d(t,{boolean:()=>i,booleanish:()=>a,commaOrSpaceSeparated:()=>u,commaSeparated:()=>c,number:()=>o,overloadedBoolean:()=>s,spaceSeparated:()=>l});let r=0,i=h(),a=h(),s=h(),o=h(),l=h(),c=h(),u=h();function h(){return 2**++r}},4918:(e,t,n)=>{"use strict";n.d(t,{qy:()=>y,JW:()=>b});class r{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function i(e,t){let n={},i={};for(let t of e)Object.assign(n,t.property),Object.assign(i,t.normal);return new r(n,i,t)}r.prototype.normal={},r.prototype.property={},r.prototype.space=void 0;var a=n(68289),s=n(49339);function o(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new s.E(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[(0,a.S)(r)]=r,n[(0,a.S)(o.attribute)]=r}return new r(t,n,e.space)}var l=n(4800);let c=o({properties:{ariaActiveDescendant:null,ariaAtomic:l.booleanish,ariaAutoComplete:null,ariaBusy:l.booleanish,ariaChecked:l.booleanish,ariaColCount:l.number,ariaColIndex:l.number,ariaColSpan:l.number,ariaControls:l.spaceSeparated,ariaCurrent:null,ariaDescribedBy:l.spaceSeparated,ariaDetails:null,ariaDisabled:l.booleanish,ariaDropEffect:l.spaceSeparated,ariaErrorMessage:null,ariaExpanded:l.booleanish,ariaFlowTo:l.spaceSeparated,ariaGrabbed:l.booleanish,ariaHasPopup:null,ariaHidden:l.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l.spaceSeparated,ariaLevel:l.number,ariaLive:null,ariaModal:l.booleanish,ariaMultiLine:l.booleanish,ariaMultiSelectable:l.booleanish,ariaOrientation:null,ariaOwns:l.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:l.number,ariaPressed:l.booleanish,ariaReadOnly:l.booleanish,ariaRelevant:null,ariaRequired:l.booleanish,ariaRoleDescription:l.spaceSeparated,ariaRowCount:l.number,ariaRowIndex:l.number,ariaRowSpan:l.number,ariaSelected:l.booleanish,ariaSetSize:l.number,ariaSort:null,ariaValueMax:l.number,ariaValueMin:l.number,ariaValueNow:l.number,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function u(e,t){return t in e?e[t]:t}function h(e,t){return u(e,t.toLowerCase())}let p=o({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l.commaSeparated,acceptCharset:l.spaceSeparated,accessKey:l.spaceSeparated,action:null,allow:null,allowFullScreen:l.boolean,allowPaymentRequest:l.boolean,allowUserMedia:l.boolean,alt:null,as:null,async:l.boolean,autoCapitalize:null,autoComplete:l.spaceSeparated,autoFocus:l.boolean,autoPlay:l.boolean,blocking:l.spaceSeparated,capture:null,charSet:null,checked:l.boolean,cite:null,className:l.spaceSeparated,cols:l.number,colSpan:null,content:null,contentEditable:l.booleanish,controls:l.boolean,controlsList:l.spaceSeparated,coords:l.number|l.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l.boolean,defer:l.boolean,dir:null,dirName:null,disabled:l.boolean,download:l.overloadedBoolean,draggable:l.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l.boolean,formTarget:null,headers:l.spaceSeparated,height:l.number,hidden:l.overloadedBoolean,high:l.number,href:null,hrefLang:null,htmlFor:l.spaceSeparated,httpEquiv:l.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:l.boolean,inputMode:null,integrity:null,is:null,isMap:l.boolean,itemId:null,itemProp:l.spaceSeparated,itemRef:l.spaceSeparated,itemScope:l.boolean,itemType:l.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l.boolean,low:l.number,manifest:null,max:null,maxLength:l.number,media:null,method:null,min:null,minLength:l.number,multiple:l.boolean,muted:l.boolean,name:null,nonce:null,noModule:l.boolean,noValidate:l.boolean,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.boolean,optimum:l.number,pattern:null,ping:l.spaceSeparated,placeholder:null,playsInline:l.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:l.boolean,referrerPolicy:null,rel:l.spaceSeparated,required:l.boolean,reversed:l.boolean,rows:l.number,rowSpan:l.number,sandbox:l.spaceSeparated,scope:null,scoped:l.boolean,seamless:l.boolean,selected:l.boolean,shadowRootClonable:l.boolean,shadowRootDelegatesFocus:l.boolean,shadowRootMode:null,shape:null,size:l.number,sizes:null,slot:null,span:l.number,spellCheck:l.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:l.number,step:null,style:null,tabIndex:l.number,target:null,title:null,translate:null,type:null,typeMustMatch:l.boolean,useMap:null,value:l.booleanish,width:l.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:l.spaceSeparated,axis:null,background:null,bgColor:null,border:l.number,borderColor:null,bottomMargin:l.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l.boolean,declare:l.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:l.number,leftMargin:l.number,link:null,longDesc:null,lowSrc:null,marginHeight:l.number,marginWidth:l.number,noResize:l.boolean,noHref:l.boolean,noShade:l.boolean,noWrap:l.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:l.number,rules:null,scheme:null,scrolling:l.booleanish,standby:null,summary:null,text:null,topMargin:l.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:l.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:l.boolean,disableRemotePlayback:l.boolean,prefix:null,property:null,results:l.number,security:null,unselectable:null},space:"html",transform:h}),d=o({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:l.commaOrSpaceSeparated,accentHeight:l.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:l.number,amplitude:l.number,arabicForm:null,ascent:l.number,attributeName:null,attributeType:null,azimuth:l.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:l.number,by:null,calcMode:null,capHeight:l.number,className:l.spaceSeparated,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:l.number,diffuseConstant:l.number,direction:null,display:null,dur:null,divisor:l.number,dominantBaseline:null,download:l.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:l.number,enableBackground:null,end:null,event:null,exponent:l.number,externalResourcesRequired:null,fill:null,fillOpacity:l.number,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:l.commaSeparated,g2:l.commaSeparated,glyphName:l.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:l.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:l.number,horizOriginX:l.number,horizOriginY:l.number,id:null,ideographic:l.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:l.number,k:l.number,k1:l.number,k2:l.number,k3:l.number,k4:l.number,kernelMatrix:l.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:l.number,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:l.number,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:l.number,overlineThickness:l.number,paintOrder:null,panose1:null,path:null,pathLength:l.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:l.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:l.number,pointsAtY:l.number,pointsAtZ:l.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:l.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:l.commaOrSpaceSeparated,rev:l.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:l.commaOrSpaceSeparated,requiredFeatures:l.commaOrSpaceSeparated,requiredFonts:l.commaOrSpaceSeparated,requiredFormats:l.commaOrSpaceSeparated,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:l.number,specularExponent:l.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:l.number,strikethroughThickness:l.number,string:null,stroke:null,strokeDashArray:l.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:l.number,strokeOpacity:l.number,strokeWidth:null,style:null,surfaceScale:l.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:l.commaOrSpaceSeparated,tabIndex:l.number,tableValues:null,target:null,targetX:l.number,targetY:l.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:l.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:l.number,underlineThickness:l.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:l.number,values:null,vAlphabetic:l.number,vMathematical:l.number,vectorEffect:null,vHanging:l.number,vIdeographic:l.number,version:null,vertAdvY:l.number,vertOriginX:l.number,vertOriginY:l.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:l.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:u}),f=o({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),m=o({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:h}),g=o({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),y=i([c,p,f,m,g],"html"),b=i([c,d,f,m,g],"svg")},6424:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(42112),i=n(52326);let a=e=>!((e=>{let{r:t,g:n,b:a}=i.A.parse(e),s=.2126*r.A.channel.toLinear(t)+.7152*r.A.channel.toLinear(n)+.0722*r.A.channel.toLinear(a);return r.A.lang.round(s)})(e)>=.5)},7370:(e,t,n)=>{"use strict";n.d(t,{G1:()=>s,PW:()=>i,Y:()=>r});let r=a("end"),i=a("start");function a(e){return function(t){let n=t&&t.position&&t.position[e]||{};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 s(e){let t=i(e),n=r(e);if(t&&n)return{start:t,end:n}}},7659:(e,t,n)=>{"use strict";function r(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,s=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}n.d(t,{D:()=>r})},8047:(e,t,n)=>{"use strict";e.exports=function(e){var t={};t.src_Any=n(13404).source,t.src_Cc=n(64463).source,t.src_Z=n(44673).source,t.src_P=n(23999).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},9101:(e,t,n)=>{"use strict";function r(e){var t;return null!=e&&"function"!=typeof e&&Number.isSafeInteger(t=e.length)&&t>=0}n.d(t,{X:()=>r})},12503:(e,t,n)=>{"use strict";n.d(t,{A:()=>og,C:()=>ob,c:()=>i9,f:()=>ax,l:()=>o_});var r=n(12115),i=n(48250),a=n(20768);let s="indicator",o="text-only",l="remove";function c(e,t){if("string"!=typeof e)return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{}return null}}let u=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),h=new Set(["javascript:","data:","file:","vbscript:"]);function p(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if("string"==typeof e&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if("string"==typeof e&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if("string"==typeof e&&e.startsWith("blob:")){try{let t=new URL(e);if("blob:"===t.protocol&&e.length>5){let t=e.substring(5);if(t&&t.length>0&&"invalid"!==t)return e}}catch{}return null}let s=c(e,n);if(!s||h.has(s.protocol)||!(u.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if("mailto:"===s.protocol||!s.protocol.match(/^https?:$/))return s.href;let o="string"==typeof e&&(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"));return s&&t.some(e=>{let t=c(e,n);return!!t&&t.origin===s.origin&&s.href.startsWith(t.href)})?o?s.pathname+s.search+s.hash:s.href:t.includes("*")?"https:"!==s.protocol&&"http:"!==s.protocol?null:o?s.pathname+s.search+s.hash:s.href:null}let d=Symbol("node-seen");var f=n(78750),m=n(23091),g=n(78115),y=n(4918),b=n(38609);function k(e,t){let n=e.indexOf("\r",t),r=e.indexOf("\n",t);return -1===r?n:-1===n||n+1===r?r:n<r?n:r}var _=n(84709);let x={}.hasOwnProperty,E=Object.prototype;function T(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data},v(e,t,n),n;case"#document":case"#document-fragment":{let r="mode"in t&&("quirks"===t.mode||"limited-quirks"===t.mode);if(n={type:"root",children:A(e,t.childNodes),data:{quirksMode:r}},e.file&&e.location){let t,r,i=String(e.file),a=(t=String(i),r=[],{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;r.length<e.line;){let e=r[r.length-1],n=k(t,e),i=-1===n?t.length+1:n+1;if(e===i)break;r.push(i)}let n=(e.line>1?r[e.line-2]:0)+e.column-1;if(n<r[e.line-1])return n}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let n=0;for(;;){let i=r[n];if(void 0===i){let e=k(t,r[n-1]);i=-1===e?t.length+1:e+1,r[n]=i}if(i>e)return{line:n+1,column:e-(n>0?r[n-1]:0)+1,offset:e};n++}}}}),s=a.toPoint(0),o=a.toPoint(i.length);(0,m.ok)(s,"expected `start`"),(0,m.ok)(o,"expected `end`"),n.position={start:s,end:o}}return n}case"#documentType":return v(e,t,n={type:"doctype"}),n;case"#text":return n={type:"text",value:t.value},v(e,t,n),n;default:return function(e,t){let n=e.schema;e.schema=t.namespaceURI===_.t.svg?y.JW:y.qy;let r=-1,i={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;x.call(E,n)||(i[n]=e.value)}let a=("svg"===e.schema.space?g.s:g.h)(t.tagName,i,A(e,t.childNodes));if(v(e,t,a),"template"===a.tagName){let n=t.sourceCodeLocation,r=n&&n.startTag&&w(n.startTag),i=n&&n.endTag&&w(n.endTag),s=T(e,t.content);r&&i&&e.file&&(s.position={start:r.end,end:i.start}),a.content=s}return e.schema=n,a}(e,t)}}function A(e,t){let n=-1,r=[];for(;++n<t.length;){let i=T(e,t[n]);r.push(i)}return r}function v(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let r=function(e,t,n){let r=w(n);if("element"===t.type){let i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){let r,i={};if(n.attrs)for(r in n.attrs)x.call(n.attrs,r)&&(i[(0,b.I)(e.schema,r).property]=w(n.attrs[r]));(0,m.ok)(n.startTag,"a start tag should exist");let a=w(n.startTag),s=n.endTag?w(n.endTag):void 0,o={opening:a};s&&(o.closing=s),o.properties=i,t.data={position:o}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function w(e){let t=S({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=S({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function S(e){return e.line&&e.column?e:void 0}var C=n(86994),N=n(51705),I=n(27629);let D={}.hasOwnProperty,O=(0,I.A)("type",{handlers:{root:function(e,t){let n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=M(e.children,n,t),L(e,n),n},element:function(e,t){var n,r;let i,a,s=t;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===t.space&&(s=y.JW);let o=[];if(e.properties){for(i in e.properties)if("children"!==i&&D.call(e.properties,i)){let t=function(e,t,n){let r=(0,b.I)(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?(0,C.A)(n):(0,N.A)(n));let i={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){let e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=_.t[r.space]}return i}(s,i,e.properties[i]);t&&o.push(t)}}let l=s.space;(0,m.ok)(l);let c={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:_.t[l],childNodes:[],parentNode:null};return c.childNodes=M(e.children,c,s),L(e,c),"template"===e.tagName&&e.content&&(n=e.content,r=s,(a={nodeName:"#document-fragment",childNodes:[]}).childNodes=M(n.children,a,r),L(n,a),c.content=a),c},text:function(e){let t={nodeName:"#text",value:e.value,parentNode:null};return L(e,t),t},comment:function(e){let t={nodeName:"#comment",data:e.value,parentNode:null};return L(e,t),t},doctype:function(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return L(e,t),t}}});function M(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let a=O(e[r],n);a.parentNode=t,i.push(a)}return i}function L(e,t){let n=e.position;n&&n.start&&n.end&&((0,m.ok)("number"==typeof n.start.offset),(0,m.ok)("number"==typeof n.end.offset),t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}var R=n(51640);let P=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);(sc=sA||(sA={}))[sc.EOF=-1]="EOF",sc[sc.NULL=0]="NULL",sc[sc.TABULATION=9]="TABULATION",sc[sc.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",sc[sc.LINE_FEED=10]="LINE_FEED",sc[sc.FORM_FEED=12]="FORM_FEED",sc[sc.SPACE=32]="SPACE",sc[sc.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",sc[sc.QUOTATION_MARK=34]="QUOTATION_MARK",sc[sc.AMPERSAND=38]="AMPERSAND",sc[sc.APOSTROPHE=39]="APOSTROPHE",sc[sc.HYPHEN_MINUS=45]="HYPHEN_MINUS",sc[sc.SOLIDUS=47]="SOLIDUS",sc[sc.DIGIT_0=48]="DIGIT_0",sc[sc.DIGIT_9=57]="DIGIT_9",sc[sc.SEMICOLON=59]="SEMICOLON",sc[sc.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",sc[sc.EQUALS_SIGN=61]="EQUALS_SIGN",sc[sc.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",sc[sc.QUESTION_MARK=63]="QUESTION_MARK",sc[sc.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",sc[sc.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",sc[sc.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",sc[sc.GRAVE_ACCENT=96]="GRAVE_ACCENT",sc[sc.LATIN_SMALL_A=97]="LATIN_SMALL_A",sc[sc.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";let F="[CDATA[",B="doctype",H="script";function U(e){return e>=55296&&e<=57343}function j(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function $(e){return e>=64976&&e<=65007||P.has(e)}(su=sv||(sv={})).controlCharacterInInputStream="control-character-in-input-stream",su.noncharacterInInputStream="noncharacter-in-input-stream",su.surrogateInInputStream="surrogate-in-input-stream",su.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",su.endTagWithAttributes="end-tag-with-attributes",su.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",su.unexpectedSolidusInTag="unexpected-solidus-in-tag",su.unexpectedNullCharacter="unexpected-null-character",su.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",su.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",su.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",su.missingEndTagName="missing-end-tag-name",su.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",su.unknownNamedCharacterReference="unknown-named-character-reference",su.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",su.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",su.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",su.eofBeforeTagName="eof-before-tag-name",su.eofInTag="eof-in-tag",su.missingAttributeValue="missing-attribute-value",su.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",su.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",su.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",su.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",su.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",su.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",su.missingDoctypePublicIdentifier="missing-doctype-public-identifier",su.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",su.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",su.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",su.cdataInHtmlContent="cdata-in-html-content",su.incorrectlyOpenedComment="incorrectly-opened-comment",su.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",su.eofInDoctype="eof-in-doctype",su.nestedComment="nested-comment",su.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",su.eofInComment="eof-in-comment",su.incorrectlyClosedComment="incorrectly-closed-comment",su.eofInCdata="eof-in-cdata",su.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",su.nullCharacterReference="null-character-reference",su.surrogateCharacterReference="surrogate-character-reference",su.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",su.controlCharacterReference="control-character-reference",su.noncharacterCharacterReference="noncharacter-character-reference",su.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",su.missingDoctypeName="missing-doctype-name",su.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",su.duplicateAttribute="duplicate-attribute",su.nonConformingDoctype="non-conforming-doctype",su.missingDoctype="missing-doctype",su.misplacedDoctype="misplaced-doctype",su.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",su.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",su.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",su.openElementsLeftAfterEof="open-elements-left-after-eof",su.abandonedHeadElementChild="abandoned-head-element-child",su.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",su.nestedNoscriptInHead="nested-noscript-in-head",su.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class z{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:i}=this,a=r+t,s=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:s,endOffset:s}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,sA.EOF;return this._err(sv.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,sA.EOF;let n=this.html.charCodeAt(t);return n===sA.CARRIAGE_RETURN?sA.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,sA.EOF;let e=this.html.charCodeAt(this.pos);return e===sA.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,sA.LINE_FEED):e===sA.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,U(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===sA.LINE_FEED||e===sA.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){j(e)?this._err(sv.controlCharacterInInputStream):$(e)&&this._err(sv.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function G(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(sh=sw||(sw={}))[sh.CHARACTER=0]="CHARACTER",sh[sh.NULL_CHARACTER=1]="NULL_CHARACTER",sh[sh.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",sh[sh.START_TAG=3]="START_TAG",sh[sh.END_TAG=4]="END_TAG",sh[sh.COMMENT=5]="COMMENT",sh[sh.DOCTYPE=6]="DOCTYPE",sh[sh.EOF=7]="EOF",sh[sh.HIBERNATION=8]="HIBERNATION";let K=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\uD835\uDD04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\uD835\uDD38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\uD835\uDC9Cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\uD835\uDD05pf;쀀\uD835\uDD39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\uD835\uDC9EpĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\uD835\uDD07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\uD835\uDD3Bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegra\xecȹoɴ\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\uD835\uDC9Frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\uD835\uDD08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\uD835\uDD3Csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀\uD835\uDD09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\uD835\uDD3DAll;戀riertrf;愱c\xf2JTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\uD835\uDD0A;拙pf;쀀\uD835\uDD3Eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\uD835\uDCA2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\uD835\uDD40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀\uD835\uDD0Dpf;쀀\uD835\uDD41ǣ߇\0ߌr;쀀\uD835\uDCA5rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀\uD835\uDD0Epf;쀀\uD835\uDD42cr;쀀\uD835\uDCA6րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\uD835\uDD0FĀ;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\uD835\uDD43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀\uD835\uDD10nusPlus;戓pf;쀀\uD835\uDD44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦\xeberyThi\xeetedĀGLଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\uD835\uDCA9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻\xd3䃓Āiyීrc耻\xd4䃔;䐞blac;䅐r;쀀\uD835\uDD12rave耻\xd2䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀\uD835\uDD46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\uD835\uDCAAash耻\xd8䃘iŬืde耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀\uD835\uDD13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCACBEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\uD835\uDD16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbbpArrow;憑gma;䎣allCircle;战pf;쀀\uD835\uDD4Aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\uD835\uDCAEar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\uD835\uDD17ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\uD835\uDD4BipleDot;惛Āctዖዛr;쀀\uD835\uDCAFrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\uD835\uDD18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀\uD835\uDD4CЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\uD835\uDCB0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\uD835\uDD19pf;쀀\uD835\uDD4Dcr;쀀\uD835\uDCB1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\uD835\uDD1Apf;쀀\uD835\uDD4Ecr;쀀\uD835\uDCB2Ȁfiosᓋᓐᓒᓘr;쀀\uD835\uDD1B;䎞pf;쀀\uD835\uDD4Fcr;쀀\uD835\uDCB3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\uD835\uDD1Cpf;쀀\uD835\uDD50cr;쀀\uD835\uDCB4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8a;䎖r;愨pf;愤cr;쀀\uD835\uDCB5ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\uD835\uDD1Erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\uD835\uDD52;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\uD835\uDCB6;䀪mpĀ;eᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fgcostuvwឍឝឳេ៕៛ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\uD835\uDD53Ā;tᏋᡣom\xbbᏌtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\uD835\uDCB7mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t\xbbpƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\uD835\uDD20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ\0\0aĀ;t䀬;䁀ƀ;fl戁\xeeᅠeĀmxent\xbbe\xf3ɍǧ\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\uD835\uDD54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\uD835\uDCB8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍r\xf2ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\uD835\uDD21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\uD835\uDD55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\uD835\uDCB9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴo\xf4ĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\uD835\uDD22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\uD835\uDD56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\uD835\uDD23lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\uD835\uDD57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\uD835\uDCBBࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\uD835\uDD24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\uD835\uDD58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0pro\xf8r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\uD835\uDD25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\uD835\uDD59bar;怕ƀclt≯≴≸r;쀀\uD835\uDCBDas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\uD835\uDD26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\uD835\uDD5Aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\uD835\uDCBEnʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\uD835\uDD27ath;䈷pf;쀀\uD835\uDD5Bǣ⏬\0⏱r;쀀\uD835\uDCBFrcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\uD835\uDD28reen;䄸cy;䑅cy;䑜pf;쀀\uD835\uDD5Ccr;쀀\uD835\uDCC0ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\uD835\uDD29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\uD835\uDD5Dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\uD835\uDCC1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\uD835\uDD2Ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\uD835\uDD5EĀct⣸⣽r;쀀\uD835\uDCC2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xedistĀ;sடr;쀀\uD835\uDD2BȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lan\xf4i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\uD835\uDD5F膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lle\xecl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5;쀀\uD835\uDCC3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;cⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀\uD835\uDD2Cͯ\0\0\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨr\xf2᪀Āirⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\uD835\uDD60ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀\xb6;l䂶le\xecЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\uD835\uDD2Dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\uD835\uDD61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴\xefrel;抰Āci⿀⿅r;쀀\uD835\uDCC5;䏈ncsp;怈̀fiopsu⋢⿱r;쀀\uD835\uDD2Epf;쀀\uD835\uDD62rime;恗cr;쀀\uD835\uDCC6ƀaeo⿸〉〓tĀei々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\uD835\uDD2FĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2a\xf2Ց;怏oustĀ;a㈞掱che\xbbmid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\uD835\uDD63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\uD835\uDCC7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\uD835\uDD30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\uD835\uDD64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\uD835\uDCC8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫwar;椪lig耻\xdf䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xebƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\uD835\uDD31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8im\xbbኬs\xf0ኞĀas㚺㚮\xf0rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\uD835\uDD65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\uD835\uDCC9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\uD835\uDD32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\uD835\uDD66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\uD835\uDCCAƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\uD835\uDD33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\uD835\uDD67ro\xf0tr\xe9㦴Ācu㨆㨋r;쀀\uD835\uDCCBĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\uD835\uDD34pf;쀀\uD835\uDD68Ā;eᑹ㩦at\xe8ᑹcr;쀀\uD835\uDCCCૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtr\xe9៑r;쀀\uD835\uDD35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\uD835\uDD69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\uD835\uDCCDĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\uD835\uDD36cy;䑗pf;쀀\uD835\uDD6Acr;쀀\uD835\uDCCEĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\uD835\uDD37cy;䐶grarr;懝pf;쀀\uD835\uDD6Bcr;쀀\uD835\uDCCFĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),q=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Y(e){return e>=sS.ZERO&&e<=sS.NINE}(sp=sS||(sS={}))[sp.NUM=35]="NUM",sp[sp.SEMI=59]="SEMI",sp[sp.EQUALS=61]="EQUALS",sp[sp.ZERO=48]="ZERO",sp[sp.NINE=57]="NINE",sp[sp.LOWER_A=97]="LOWER_A",sp[sp.LOWER_F=102]="LOWER_F",sp[sp.LOWER_X=120]="LOWER_X",sp[sp.LOWER_Z=122]="LOWER_Z",sp[sp.UPPER_A=65]="UPPER_A",sp[sp.UPPER_F=70]="UPPER_F",sp[sp.UPPER_Z=90]="UPPER_Z",(sd=sC||(sC={}))[sd.VALUE_LENGTH=49152]="VALUE_LENGTH",sd[sd.BRANCH_LENGTH=16256]="BRANCH_LENGTH",sd[sd.JUMP_TABLE=127]="JUMP_TABLE",(sf=sN||(sN={}))[sf.EntityStart=0]="EntityStart",sf[sf.NumericStart=1]="NumericStart",sf[sf.NumericDecimal=2]="NumericDecimal",sf[sf.NumericHex=3]="NumericHex",sf[sf.NamedEntity=4]="NamedEntity",(sm=sI||(sI={}))[sm.Legacy=0]="Legacy",sm[sm.Strict=1]="Strict",sm[sm.Attribute=2]="Attribute";class W{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=sN.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=sI.Strict}startEntity(e){this.decodeMode=e,this.state=sN.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case sN.EntityStart:if(e.charCodeAt(t)===sS.NUM)return this.state=sN.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=sN.NamedEntity,this.stateNamedEntity(e,t);case sN.NumericStart:return this.stateNumericStart(e,t);case sN.NumericDecimal:return this.stateNumericDecimal(e,t);case sN.NumericHex:return this.stateNumericHex(e,t);case sN.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===sS.LOWER_X?(this.state=sN.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=sN.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*Math.pow(r,i)+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){var r;let i=e.charCodeAt(t);if(!Y(i)&&(!((r=i)>=sS.UPPER_A)||!(r<=sS.UPPER_F))&&(!(r>=sS.LOWER_A)||!(r<=sS.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(!Y(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n,r,i;if(this.consumed<=t)return null==(n=this.errors)||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===sS.SEMI)this.consumed+=1;else if(this.decodeMode===sI.Strict)return 0;return this.emitCodePoint((r=this.result)>=55296&&r<=57343||r>1114111?65533:null!=(i=q.get(r))?i:r,this.consumed),this.errors&&(e!==sS.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&sC.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=function(e,t,n,r){let i=(t&sC.BRANCH_LENGTH)>>7,a=t&sC.JUMP_TABLE;if(0===i)return 0!==a&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let s=n,o=s+i-1;for(;s<=o;){let t=s+o>>>1,n=e[t];if(n<r)s=t+1;else{if(!(n>r))return e[t+i];o=t-1}}return -1}(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===sI.Attribute&&(0===i||function(e){var t;return e===sS.EQUALS||(t=e)>=sS.UPPER_A&&t<=sS.UPPER_Z||t>=sS.LOWER_A&&t<=sS.LOWER_Z||Y(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((r=n[this.treeIndex])&sC.VALUE_LENGTH)>>14)){if(a===sS.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==sI.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&sC.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~sC.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case sN.NamedEntity:return 0!==this.result&&(this.decodeMode!==sI.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case sN.NumericDecimal:return this.emitNumericEntity(0,2);case sN.NumericHex:return this.emitNumericEntity(0,3);case sN.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case sN.EntityStart:return 0}}}(sg=sD||(sD={})).HTML="http://www.w3.org/1999/xhtml",sg.MATHML="http://www.w3.org/1998/Math/MathML",sg.SVG="http://www.w3.org/2000/svg",sg.XLINK="http://www.w3.org/1999/xlink",sg.XML="http://www.w3.org/XML/1998/namespace",sg.XMLNS="http://www.w3.org/2000/xmlns/",(sy=sO||(sO={})).TYPE="type",sy.ACTION="action",sy.ENCODING="encoding",sy.PROMPT="prompt",sy.NAME="name",sy.COLOR="color",sy.FACE="face",sy.SIZE="size",(sb=sM||(sM={})).NO_QUIRKS="no-quirks",sb.QUIRKS="quirks",sb.LIMITED_QUIRKS="limited-quirks",(sk=sL||(sL={})).A="a",sk.ADDRESS="address",sk.ANNOTATION_XML="annotation-xml",sk.APPLET="applet",sk.AREA="area",sk.ARTICLE="article",sk.ASIDE="aside",sk.B="b",sk.BASE="base",sk.BASEFONT="basefont",sk.BGSOUND="bgsound",sk.BIG="big",sk.BLOCKQUOTE="blockquote",sk.BODY="body",sk.BR="br",sk.BUTTON="button",sk.CAPTION="caption",sk.CENTER="center",sk.CODE="code",sk.COL="col",sk.COLGROUP="colgroup",sk.DD="dd",sk.DESC="desc",sk.DETAILS="details",sk.DIALOG="dialog",sk.DIR="dir",sk.DIV="div",sk.DL="dl",sk.DT="dt",sk.EM="em",sk.EMBED="embed",sk.FIELDSET="fieldset",sk.FIGCAPTION="figcaption",sk.FIGURE="figure",sk.FONT="font",sk.FOOTER="footer",sk.FOREIGN_OBJECT="foreignObject",sk.FORM="form",sk.FRAME="frame",sk.FRAMESET="frameset",sk.H1="h1",sk.H2="h2",sk.H3="h3",sk.H4="h4",sk.H5="h5",sk.H6="h6",sk.HEAD="head",sk.HEADER="header",sk.HGROUP="hgroup",sk.HR="hr",sk.HTML="html",sk.I="i",sk.IMG="img",sk.IMAGE="image",sk.INPUT="input",sk.IFRAME="iframe",sk.KEYGEN="keygen",sk.LABEL="label",sk.LI="li",sk.LINK="link",sk.LISTING="listing",sk.MAIN="main",sk.MALIGNMARK="malignmark",sk.MARQUEE="marquee",sk.MATH="math",sk.MENU="menu",sk.META="meta",sk.MGLYPH="mglyph",sk.MI="mi",sk.MO="mo",sk.MN="mn",sk.MS="ms",sk.MTEXT="mtext",sk.NAV="nav",sk.NOBR="nobr",sk.NOFRAMES="noframes",sk.NOEMBED="noembed",sk.NOSCRIPT="noscript",sk.OBJECT="object",sk.OL="ol",sk.OPTGROUP="optgroup",sk.OPTION="option",sk.P="p",sk.PARAM="param",sk.PLAINTEXT="plaintext",sk.PRE="pre",sk.RB="rb",sk.RP="rp",sk.RT="rt",sk.RTC="rtc",sk.RUBY="ruby",sk.S="s",sk.SCRIPT="script",sk.SEARCH="search",sk.SECTION="section",sk.SELECT="select",sk.SOURCE="source",sk.SMALL="small",sk.SPAN="span",sk.STRIKE="strike",sk.STRONG="strong",sk.STYLE="style",sk.SUB="sub",sk.SUMMARY="summary",sk.SUP="sup",sk.TABLE="table",sk.TBODY="tbody",sk.TEMPLATE="template",sk.TEXTAREA="textarea",sk.TFOOT="tfoot",sk.TD="td",sk.TH="th",sk.THEAD="thead",sk.TITLE="title",sk.TR="tr",sk.TRACK="track",sk.TT="tt",sk.U="u",sk.UL="ul",sk.SVG="svg",sk.VAR="var",sk.WBR="wbr",sk.XMP="xmp",(s_=sR||(sR={}))[s_.UNKNOWN=0]="UNKNOWN",s_[s_.A=1]="A",s_[s_.ADDRESS=2]="ADDRESS",s_[s_.ANNOTATION_XML=3]="ANNOTATION_XML",s_[s_.APPLET=4]="APPLET",s_[s_.AREA=5]="AREA",s_[s_.ARTICLE=6]="ARTICLE",s_[s_.ASIDE=7]="ASIDE",s_[s_.B=8]="B",s_[s_.BASE=9]="BASE",s_[s_.BASEFONT=10]="BASEFONT",s_[s_.BGSOUND=11]="BGSOUND",s_[s_.BIG=12]="BIG",s_[s_.BLOCKQUOTE=13]="BLOCKQUOTE",s_[s_.BODY=14]="BODY",s_[s_.BR=15]="BR",s_[s_.BUTTON=16]="BUTTON",s_[s_.CAPTION=17]="CAPTION",s_[s_.CENTER=18]="CENTER",s_[s_.CODE=19]="CODE",s_[s_.COL=20]="COL",s_[s_.COLGROUP=21]="COLGROUP",s_[s_.DD=22]="DD",s_[s_.DESC=23]="DESC",s_[s_.DETAILS=24]="DETAILS",s_[s_.DIALOG=25]="DIALOG",s_[s_.DIR=26]="DIR",s_[s_.DIV=27]="DIV",s_[s_.DL=28]="DL",s_[s_.DT=29]="DT",s_[s_.EM=30]="EM",s_[s_.EMBED=31]="EMBED",s_[s_.FIELDSET=32]="FIELDSET",s_[s_.FIGCAPTION=33]="FIGCAPTION",s_[s_.FIGURE=34]="FIGURE",s_[s_.FONT=35]="FONT",s_[s_.FOOTER=36]="FOOTER",s_[s_.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",s_[s_.FORM=38]="FORM",s_[s_.FRAME=39]="FRAME",s_[s_.FRAMESET=40]="FRAMESET",s_[s_.H1=41]="H1",s_[s_.H2=42]="H2",s_[s_.H3=43]="H3",s_[s_.H4=44]="H4",s_[s_.H5=45]="H5",s_[s_.H6=46]="H6",s_[s_.HEAD=47]="HEAD",s_[s_.HEADER=48]="HEADER",s_[s_.HGROUP=49]="HGROUP",s_[s_.HR=50]="HR",s_[s_.HTML=51]="HTML",s_[s_.I=52]="I",s_[s_.IMG=53]="IMG",s_[s_.IMAGE=54]="IMAGE",s_[s_.INPUT=55]="INPUT",s_[s_.IFRAME=56]="IFRAME",s_[s_.KEYGEN=57]="KEYGEN",s_[s_.LABEL=58]="LABEL",s_[s_.LI=59]="LI",s_[s_.LINK=60]="LINK",s_[s_.LISTING=61]="LISTING",s_[s_.MAIN=62]="MAIN",s_[s_.MALIGNMARK=63]="MALIGNMARK",s_[s_.MARQUEE=64]="MARQUEE",s_[s_.MATH=65]="MATH",s_[s_.MENU=66]="MENU",s_[s_.META=67]="META",s_[s_.MGLYPH=68]="MGLYPH",s_[s_.MI=69]="MI",s_[s_.MO=70]="MO",s_[s_.MN=71]="MN",s_[s_.MS=72]="MS",s_[s_.MTEXT=73]="MTEXT",s_[s_.NAV=74]="NAV",s_[s_.NOBR=75]="NOBR",s_[s_.NOFRAMES=76]="NOFRAMES",s_[s_.NOEMBED=77]="NOEMBED",s_[s_.NOSCRIPT=78]="NOSCRIPT",s_[s_.OBJECT=79]="OBJECT",s_[s_.OL=80]="OL",s_[s_.OPTGROUP=81]="OPTGROUP",s_[s_.OPTION=82]="OPTION",s_[s_.P=83]="P",s_[s_.PARAM=84]="PARAM",s_[s_.PLAINTEXT=85]="PLAINTEXT",s_[s_.PRE=86]="PRE",s_[s_.RB=87]="RB",s_[s_.RP=88]="RP",s_[s_.RT=89]="RT",s_[s_.RTC=90]="RTC",s_[s_.RUBY=91]="RUBY",s_[s_.S=92]="S",s_[s_.SCRIPT=93]="SCRIPT",s_[s_.SEARCH=94]="SEARCH",s_[s_.SECTION=95]="SECTION",s_[s_.SELECT=96]="SELECT",s_[s_.SOURCE=97]="SOURCE",s_[s_.SMALL=98]="SMALL",s_[s_.SPAN=99]="SPAN",s_[s_.STRIKE=100]="STRIKE",s_[s_.STRONG=101]="STRONG",s_[s_.STYLE=102]="STYLE",s_[s_.SUB=103]="SUB",s_[s_.SUMMARY=104]="SUMMARY",s_[s_.SUP=105]="SUP",s_[s_.TABLE=106]="TABLE",s_[s_.TBODY=107]="TBODY",s_[s_.TEMPLATE=108]="TEMPLATE",s_[s_.TEXTAREA=109]="TEXTAREA",s_[s_.TFOOT=110]="TFOOT",s_[s_.TD=111]="TD",s_[s_.TH=112]="TH",s_[s_.THEAD=113]="THEAD",s_[s_.TITLE=114]="TITLE",s_[s_.TR=115]="TR",s_[s_.TRACK=116]="TRACK",s_[s_.TT=117]="TT",s_[s_.U=118]="U",s_[s_.UL=119]="UL",s_[s_.SVG=120]="SVG",s_[s_.VAR=121]="VAR",s_[s_.WBR=122]="WBR",s_[s_.XMP=123]="XMP";let V=new Map([[sL.A,sR.A],[sL.ADDRESS,sR.ADDRESS],[sL.ANNOTATION_XML,sR.ANNOTATION_XML],[sL.APPLET,sR.APPLET],[sL.AREA,sR.AREA],[sL.ARTICLE,sR.ARTICLE],[sL.ASIDE,sR.ASIDE],[sL.B,sR.B],[sL.BASE,sR.BASE],[sL.BASEFONT,sR.BASEFONT],[sL.BGSOUND,sR.BGSOUND],[sL.BIG,sR.BIG],[sL.BLOCKQUOTE,sR.BLOCKQUOTE],[sL.BODY,sR.BODY],[sL.BR,sR.BR],[sL.BUTTON,sR.BUTTON],[sL.CAPTION,sR.CAPTION],[sL.CENTER,sR.CENTER],[sL.CODE,sR.CODE],[sL.COL,sR.COL],[sL.COLGROUP,sR.COLGROUP],[sL.DD,sR.DD],[sL.DESC,sR.DESC],[sL.DETAILS,sR.DETAILS],[sL.DIALOG,sR.DIALOG],[sL.DIR,sR.DIR],[sL.DIV,sR.DIV],[sL.DL,sR.DL],[sL.DT,sR.DT],[sL.EM,sR.EM],[sL.EMBED,sR.EMBED],[sL.FIELDSET,sR.FIELDSET],[sL.FIGCAPTION,sR.FIGCAPTION],[sL.FIGURE,sR.FIGURE],[sL.FONT,sR.FONT],[sL.FOOTER,sR.FOOTER],[sL.FOREIGN_OBJECT,sR.FOREIGN_OBJECT],[sL.FORM,sR.FORM],[sL.FRAME,sR.FRAME],[sL.FRAMESET,sR.FRAMESET],[sL.H1,sR.H1],[sL.H2,sR.H2],[sL.H3,sR.H3],[sL.H4,sR.H4],[sL.H5,sR.H5],[sL.H6,sR.H6],[sL.HEAD,sR.HEAD],[sL.HEADER,sR.HEADER],[sL.HGROUP,sR.HGROUP],[sL.HR,sR.HR],[sL.HTML,sR.HTML],[sL.I,sR.I],[sL.IMG,sR.IMG],[sL.IMAGE,sR.IMAGE],[sL.INPUT,sR.INPUT],[sL.IFRAME,sR.IFRAME],[sL.KEYGEN,sR.KEYGEN],[sL.LABEL,sR.LABEL],[sL.LI,sR.LI],[sL.LINK,sR.LINK],[sL.LISTING,sR.LISTING],[sL.MAIN,sR.MAIN],[sL.MALIGNMARK,sR.MALIGNMARK],[sL.MARQUEE,sR.MARQUEE],[sL.MATH,sR.MATH],[sL.MENU,sR.MENU],[sL.META,sR.META],[sL.MGLYPH,sR.MGLYPH],[sL.MI,sR.MI],[sL.MO,sR.MO],[sL.MN,sR.MN],[sL.MS,sR.MS],[sL.MTEXT,sR.MTEXT],[sL.NAV,sR.NAV],[sL.NOBR,sR.NOBR],[sL.NOFRAMES,sR.NOFRAMES],[sL.NOEMBED,sR.NOEMBED],[sL.NOSCRIPT,sR.NOSCRIPT],[sL.OBJECT,sR.OBJECT],[sL.OL,sR.OL],[sL.OPTGROUP,sR.OPTGROUP],[sL.OPTION,sR.OPTION],[sL.P,sR.P],[sL.PARAM,sR.PARAM],[sL.PLAINTEXT,sR.PLAINTEXT],[sL.PRE,sR.PRE],[sL.RB,sR.RB],[sL.RP,sR.RP],[sL.RT,sR.RT],[sL.RTC,sR.RTC],[sL.RUBY,sR.RUBY],[sL.S,sR.S],[sL.SCRIPT,sR.SCRIPT],[sL.SEARCH,sR.SEARCH],[sL.SECTION,sR.SECTION],[sL.SELECT,sR.SELECT],[sL.SOURCE,sR.SOURCE],[sL.SMALL,sR.SMALL],[sL.SPAN,sR.SPAN],[sL.STRIKE,sR.STRIKE],[sL.STRONG,sR.STRONG],[sL.STYLE,sR.STYLE],[sL.SUB,sR.SUB],[sL.SUMMARY,sR.SUMMARY],[sL.SUP,sR.SUP],[sL.TABLE,sR.TABLE],[sL.TBODY,sR.TBODY],[sL.TEMPLATE,sR.TEMPLATE],[sL.TEXTAREA,sR.TEXTAREA],[sL.TFOOT,sR.TFOOT],[sL.TD,sR.TD],[sL.TH,sR.TH],[sL.THEAD,sR.THEAD],[sL.TITLE,sR.TITLE],[sL.TR,sR.TR],[sL.TRACK,sR.TRACK],[sL.TT,sR.TT],[sL.U,sR.U],[sL.UL,sR.UL],[sL.SVG,sR.SVG],[sL.VAR,sR.VAR],[sL.WBR,sR.WBR],[sL.XMP,sR.XMP]]);function X(e){var t;return null!=(t=V.get(e))?t:sR.UNKNOWN}let Q=sR,Z={[sD.HTML]:new Set([Q.ADDRESS,Q.APPLET,Q.AREA,Q.ARTICLE,Q.ASIDE,Q.BASE,Q.BASEFONT,Q.BGSOUND,Q.BLOCKQUOTE,Q.BODY,Q.BR,Q.BUTTON,Q.CAPTION,Q.CENTER,Q.COL,Q.COLGROUP,Q.DD,Q.DETAILS,Q.DIR,Q.DIV,Q.DL,Q.DT,Q.EMBED,Q.FIELDSET,Q.FIGCAPTION,Q.FIGURE,Q.FOOTER,Q.FORM,Q.FRAME,Q.FRAMESET,Q.H1,Q.H2,Q.H3,Q.H4,Q.H5,Q.H6,Q.HEAD,Q.HEADER,Q.HGROUP,Q.HR,Q.HTML,Q.IFRAME,Q.IMG,Q.INPUT,Q.LI,Q.LINK,Q.LISTING,Q.MAIN,Q.MARQUEE,Q.MENU,Q.META,Q.NAV,Q.NOEMBED,Q.NOFRAMES,Q.NOSCRIPT,Q.OBJECT,Q.OL,Q.P,Q.PARAM,Q.PLAINTEXT,Q.PRE,Q.SCRIPT,Q.SECTION,Q.SELECT,Q.SOURCE,Q.STYLE,Q.SUMMARY,Q.TABLE,Q.TBODY,Q.TD,Q.TEMPLATE,Q.TEXTAREA,Q.TFOOT,Q.TH,Q.THEAD,Q.TITLE,Q.TR,Q.TRACK,Q.UL,Q.WBR,Q.XMP]),[sD.MATHML]:new Set([Q.MI,Q.MO,Q.MN,Q.MS,Q.MTEXT,Q.ANNOTATION_XML]),[sD.SVG]:new Set([Q.TITLE,Q.FOREIGN_OBJECT,Q.DESC]),[sD.XLINK]:new Set,[sD.XML]:new Set,[sD.XMLNS]:new Set},J=new Set([Q.H1,Q.H2,Q.H3,Q.H4,Q.H5,Q.H6]);sL.STYLE,sL.SCRIPT,sL.XMP,sL.IFRAME,sL.NOEMBED,sL.NOFRAMES,sL.PLAINTEXT,(sx=sP||(sP={}))[sx.DATA=0]="DATA",sx[sx.RCDATA=1]="RCDATA",sx[sx.RAWTEXT=2]="RAWTEXT",sx[sx.SCRIPT_DATA=3]="SCRIPT_DATA",sx[sx.PLAINTEXT=4]="PLAINTEXT",sx[sx.TAG_OPEN=5]="TAG_OPEN",sx[sx.END_TAG_OPEN=6]="END_TAG_OPEN",sx[sx.TAG_NAME=7]="TAG_NAME",sx[sx.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",sx[sx.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",sx[sx.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",sx[sx.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",sx[sx.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",sx[sx.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",sx[sx.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",sx[sx.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",sx[sx.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",sx[sx.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",sx[sx.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",sx[sx.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",sx[sx.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",sx[sx.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",sx[sx.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",sx[sx.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",sx[sx.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",sx[sx.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",sx[sx.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",sx[sx.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",sx[sx.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",sx[sx.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",sx[sx.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",sx[sx.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",sx[sx.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",sx[sx.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",sx[sx.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",sx[sx.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",sx[sx.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",sx[sx.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",sx[sx.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",sx[sx.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",sx[sx.BOGUS_COMMENT=40]="BOGUS_COMMENT",sx[sx.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",sx[sx.COMMENT_START=42]="COMMENT_START",sx[sx.COMMENT_START_DASH=43]="COMMENT_START_DASH",sx[sx.COMMENT=44]="COMMENT",sx[sx.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",sx[sx.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",sx[sx.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",sx[sx.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",sx[sx.COMMENT_END_DASH=49]="COMMENT_END_DASH",sx[sx.COMMENT_END=50]="COMMENT_END",sx[sx.COMMENT_END_BANG=51]="COMMENT_END_BANG",sx[sx.DOCTYPE=52]="DOCTYPE",sx[sx.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",sx[sx.DOCTYPE_NAME=54]="DOCTYPE_NAME",sx[sx.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",sx[sx.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",sx[sx.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",sx[sx.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",sx[sx.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",sx[sx.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",sx[sx.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",sx[sx.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",sx[sx.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",sx[sx.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",sx[sx.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",sx[sx.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",sx[sx.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",sx[sx.CDATA_SECTION=68]="CDATA_SECTION",sx[sx.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",sx[sx.CDATA_SECTION_END=70]="CDATA_SECTION_END",sx[sx.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",sx[sx.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";let ee={DATA:sP.DATA,RCDATA:sP.RCDATA,RAWTEXT:sP.RAWTEXT,SCRIPT_DATA:sP.SCRIPT_DATA,PLAINTEXT:sP.PLAINTEXT,CDATA_SECTION:sP.CDATA_SECTION};function et(e){return e>=sA.LATIN_CAPITAL_A&&e<=sA.LATIN_CAPITAL_Z}function en(e){return e>=sA.LATIN_SMALL_A&&e<=sA.LATIN_SMALL_Z||et(e)}function er(e){return en(e)||e>=sA.DIGIT_0&&e<=sA.DIGIT_9}function ei(e){return e===sA.SPACE||e===sA.LINE_FEED||e===sA.TABULATION||e===sA.FORM_FEED}function ea(e){return ei(e)||e===sA.SOLIDUS||e===sA.GREATER_THAN_SIGN}class es{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=sP.DATA,this.returnState=sP.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new z(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new W(K,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(sv.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(sv.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=function(e){if(e===sA.NULL)return sv.nullCharacterReference;if(e>1114111)return sv.characterReferenceOutsideUnicodeRange;if(U(e))return sv.surrogateCharacterReference;if($(e))return sv.noncharacterCharacterReference;if(j(e)||e===sA.CARRIAGE_RETURN)return sv.controlCharacterReference;return null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null==(r=(n=this.handler).onParseError)||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:sw.START_TAG,tagName:"",tagID:sR.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:sw.END_TAG,tagName:"",tagID:sR.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:sw.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:sw.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let n=this.currentToken;null===G(n,this.currentAttr.name)?(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!=(e=(t=n.location).attrs)?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(sv.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=X(e.tagName),e.type===sw.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(sv.endTagWithAttributes),e.selfClosing&&this._err(sv.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case sw.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case sw.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case sw.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:sw.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=ei(e)?sw.WHITESPACE_CHARACTER:e===sA.NULL?sw.NULL_CHARACTER:sw.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(sw.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=sP.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?sI.Attribute:sI.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===sP.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===sP.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===sP.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case sP.DATA:this._stateData(e);break;case sP.RCDATA:this._stateRcdata(e);break;case sP.RAWTEXT:this._stateRawtext(e);break;case sP.SCRIPT_DATA:this._stateScriptData(e);break;case sP.PLAINTEXT:this._statePlaintext(e);break;case sP.TAG_OPEN:this._stateTagOpen(e);break;case sP.END_TAG_OPEN:this._stateEndTagOpen(e);break;case sP.TAG_NAME:this._stateTagName(e);break;case sP.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case sP.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case sP.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case sP.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case sP.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case sP.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case sP.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case sP.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case sP.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case sP.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case sP.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case sP.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case sP.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case sP.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case sP.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case sP.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case sP.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case sP.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case sP.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case sP.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case sP.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case sP.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case sP.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case sP.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case sP.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case sP.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case sP.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case sP.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case sP.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case sP.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case sP.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case sP.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case sP.BOGUS_COMMENT:this._stateBogusComment(e);break;case sP.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case sP.COMMENT_START:this._stateCommentStart(e);break;case sP.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case sP.COMMENT:this._stateComment(e);break;case sP.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case sP.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case sP.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case sP.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case sP.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case sP.COMMENT_END:this._stateCommentEnd(e);break;case sP.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case sP.DOCTYPE:this._stateDoctype(e);break;case sP.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case sP.DOCTYPE_NAME:this._stateDoctypeName(e);break;case sP.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case sP.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case sP.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case sP.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case sP.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case sP.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case sP.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case sP.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case sP.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case sP.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case sP.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case sP.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case sP.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case sP.CDATA_SECTION:this._stateCdataSection(e);break;case sP.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case sP.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case sP.CHARACTER_REFERENCE:this._stateCharacterReference();break;case sP.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case sA.LESS_THAN_SIGN:this.state=sP.TAG_OPEN;break;case sA.AMPERSAND:this._startCharacterReference();break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this._emitCodePoint(e);break;case sA.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case sA.AMPERSAND:this._startCharacterReference();break;case sA.LESS_THAN_SIGN:this.state=sP.RCDATA_LESS_THAN_SIGN;break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this._emitChars("�");break;case sA.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case sA.LESS_THAN_SIGN:this.state=sP.RAWTEXT_LESS_THAN_SIGN;break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this._emitChars("�");break;case sA.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case sA.LESS_THAN_SIGN:this.state=sP.SCRIPT_DATA_LESS_THAN_SIGN;break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this._emitChars("�");break;case sA.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case sA.NULL:this._err(sv.unexpectedNullCharacter),this._emitChars("�");break;case sA.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(en(e))this._createStartTagToken(),this.state=sP.TAG_NAME,this._stateTagName(e);else switch(e){case sA.EXCLAMATION_MARK:this.state=sP.MARKUP_DECLARATION_OPEN;break;case sA.SOLIDUS:this.state=sP.END_TAG_OPEN;break;case sA.QUESTION_MARK:this._err(sv.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=sP.BOGUS_COMMENT,this._stateBogusComment(e);break;case sA.EOF:this._err(sv.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(sv.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=sP.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(en(e))this._createEndTagToken(),this.state=sP.TAG_NAME,this._stateTagName(e);else switch(e){case sA.GREATER_THAN_SIGN:this._err(sv.missingEndTagName),this.state=sP.DATA;break;case sA.EOF:this._err(sv.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(sv.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=sP.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:this.state=sP.BEFORE_ATTRIBUTE_NAME;break;case sA.SOLIDUS:this.state=sP.SELF_CLOSING_START_TAG;break;case sA.GREATER_THAN_SIGN:this.state=sP.DATA,this.emitCurrentTagToken();break;case sA.NULL:this._err(sv.unexpectedNullCharacter),t.tagName+="�";break;case sA.EOF:this._err(sv.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(et(e)?e+32:e)}}_stateRcdataLessThanSign(e){e===sA.SOLIDUS?this.state=sP.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=sP.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){en(e)?(this.state=sP.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=sP.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=sP.BEFORE_ATTRIBUTE_NAME,!1;case sA.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=sP.SELF_CLOSING_START_TAG,!1;case sA.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=sP.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=sP.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===sA.SOLIDUS?this.state=sP.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=sP.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){en(e)?(this.state=sP.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=sP.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=sP.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case sA.SOLIDUS:this.state=sP.SCRIPT_DATA_END_TAG_OPEN;break;case sA.EXCLAMATION_MARK:this.state=sP.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=sP.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){en(e)?(this.state=sP.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=sP.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=sP.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===sA.HYPHEN_MINUS?(this.state=sP.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=sP.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===sA.HYPHEN_MINUS?(this.state=sP.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=sP.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case sA.HYPHEN_MINUS:this.state=sP.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case sA.LESS_THAN_SIGN:this.state=sP.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this._emitChars("�");break;case sA.EOF:this._err(sv.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case sA.HYPHEN_MINUS:this.state=sP.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case sA.LESS_THAN_SIGN:this.state=sP.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this.state=sP.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case sA.EOF:this._err(sv.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=sP.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case sA.HYPHEN_MINUS:this._emitChars("-");break;case sA.LESS_THAN_SIGN:this.state=sP.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case sA.GREATER_THAN_SIGN:this.state=sP.SCRIPT_DATA,this._emitChars(">");break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this.state=sP.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case sA.EOF:this._err(sv.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=sP.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===sA.SOLIDUS?this.state=sP.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:en(e)?(this._emitChars("<"),this.state=sP.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=sP.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){en(e)?(this.state=sP.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=sP.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=sP.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(H,!1)&&ea(this.preprocessor.peek(H.length))){this._emitCodePoint(e);for(let e=0;e<H.length;e++)this._emitCodePoint(this._consume());this.state=sP.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=sP.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case sA.HYPHEN_MINUS:this.state=sP.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case sA.LESS_THAN_SIGN:this.state=sP.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this._emitChars("�");break;case sA.EOF:this._err(sv.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case sA.HYPHEN_MINUS:this.state=sP.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case sA.LESS_THAN_SIGN:this.state=sP.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this.state=sP.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case sA.EOF:this._err(sv.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=sP.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case sA.HYPHEN_MINUS:this._emitChars("-");break;case sA.LESS_THAN_SIGN:this.state=sP.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case sA.GREATER_THAN_SIGN:this.state=sP.SCRIPT_DATA,this._emitChars(">");break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this.state=sP.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case sA.EOF:this._err(sv.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=sP.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===sA.SOLIDUS?(this.state=sP.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=sP.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(H,!1)&&ea(this.preprocessor.peek(H.length))){this._emitCodePoint(e);for(let e=0;e<H.length;e++)this._emitCodePoint(this._consume());this.state=sP.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=sP.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:break;case sA.SOLIDUS:case sA.GREATER_THAN_SIGN:case sA.EOF:this.state=sP.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case sA.EQUALS_SIGN:this._err(sv.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=sP.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=sP.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:case sA.SOLIDUS:case sA.GREATER_THAN_SIGN:case sA.EOF:this._leaveAttrName(),this.state=sP.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case sA.EQUALS_SIGN:this._leaveAttrName(),this.state=sP.BEFORE_ATTRIBUTE_VALUE;break;case sA.QUOTATION_MARK:case sA.APOSTROPHE:case sA.LESS_THAN_SIGN:this._err(sv.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(et(e)?e+32:e)}}_stateAfterAttributeName(e){switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:break;case sA.SOLIDUS:this.state=sP.SELF_CLOSING_START_TAG;break;case sA.EQUALS_SIGN:this.state=sP.BEFORE_ATTRIBUTE_VALUE;break;case sA.GREATER_THAN_SIGN:this.state=sP.DATA,this.emitCurrentTagToken();break;case sA.EOF:this._err(sv.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=sP.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:break;case sA.QUOTATION_MARK:this.state=sP.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case sA.APOSTROPHE:this.state=sP.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case sA.GREATER_THAN_SIGN:this._err(sv.missingAttributeValue),this.state=sP.DATA,this.emitCurrentTagToken();break;default:this.state=sP.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case sA.QUOTATION_MARK:this.state=sP.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case sA.AMPERSAND:this._startCharacterReference();break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this.currentAttr.value+="�";break;case sA.EOF:this._err(sv.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case sA.APOSTROPHE:this.state=sP.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case sA.AMPERSAND:this._startCharacterReference();break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this.currentAttr.value+="�";break;case sA.EOF:this._err(sv.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:this._leaveAttrValue(),this.state=sP.BEFORE_ATTRIBUTE_NAME;break;case sA.AMPERSAND:this._startCharacterReference();break;case sA.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=sP.DATA,this.emitCurrentTagToken();break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this.currentAttr.value+="�";break;case sA.QUOTATION_MARK:case sA.APOSTROPHE:case sA.LESS_THAN_SIGN:case sA.EQUALS_SIGN:case sA.GRAVE_ACCENT:this._err(sv.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case sA.EOF:this._err(sv.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:this._leaveAttrValue(),this.state=sP.BEFORE_ATTRIBUTE_NAME;break;case sA.SOLIDUS:this._leaveAttrValue(),this.state=sP.SELF_CLOSING_START_TAG;break;case sA.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=sP.DATA,this.emitCurrentTagToken();break;case sA.EOF:this._err(sv.eofInTag),this._emitEOFToken();break;default:this._err(sv.missingWhitespaceBetweenAttributes),this.state=sP.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case sA.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=sP.DATA,this.emitCurrentTagToken();break;case sA.EOF:this._err(sv.eofInTag),this._emitEOFToken();break;default:this._err(sv.unexpectedSolidusInTag),this.state=sP.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case sA.GREATER_THAN_SIGN:this.state=sP.DATA,this.emitCurrentComment(t);break;case sA.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case sA.NULL:this._err(sv.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=sP.COMMENT_START):this._consumeSequenceIfMatch(B,!1)?(this.currentLocation=this.getCurrentLocation(B.length+1),this.state=sP.DOCTYPE):this._consumeSequenceIfMatch(F,!0)?this.inForeignNode?this.state=sP.CDATA_SECTION:(this._err(sv.cdataInHtmlContent),this._createCommentToken(F.length+1),this.currentToken.data="[CDATA[",this.state=sP.BOGUS_COMMENT):this._ensureHibernation()||(this._err(sv.incorrectlyOpenedComment),this._createCommentToken(2),this.state=sP.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case sA.HYPHEN_MINUS:this.state=sP.COMMENT_START_DASH;break;case sA.GREATER_THAN_SIGN:{this._err(sv.abruptClosingOfEmptyComment),this.state=sP.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=sP.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case sA.HYPHEN_MINUS:this.state=sP.COMMENT_END;break;case sA.GREATER_THAN_SIGN:this._err(sv.abruptClosingOfEmptyComment),this.state=sP.DATA,this.emitCurrentComment(t);break;case sA.EOF:this._err(sv.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=sP.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case sA.HYPHEN_MINUS:this.state=sP.COMMENT_END_DASH;break;case sA.LESS_THAN_SIGN:t.data+="<",this.state=sP.COMMENT_LESS_THAN_SIGN;break;case sA.NULL:this._err(sv.unexpectedNullCharacter),t.data+="�";break;case sA.EOF:this._err(sv.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case sA.EXCLAMATION_MARK:t.data+="!",this.state=sP.COMMENT_LESS_THAN_SIGN_BANG;break;case sA.LESS_THAN_SIGN:t.data+="<";break;default:this.state=sP.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===sA.HYPHEN_MINUS?this.state=sP.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=sP.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===sA.HYPHEN_MINUS?this.state=sP.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=sP.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==sA.GREATER_THAN_SIGN&&e!==sA.EOF&&this._err(sv.nestedComment),this.state=sP.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case sA.HYPHEN_MINUS:this.state=sP.COMMENT_END;break;case sA.EOF:this._err(sv.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=sP.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case sA.GREATER_THAN_SIGN:this.state=sP.DATA,this.emitCurrentComment(t);break;case sA.EXCLAMATION_MARK:this.state=sP.COMMENT_END_BANG;break;case sA.HYPHEN_MINUS:t.data+="-";break;case sA.EOF:this._err(sv.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=sP.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case sA.HYPHEN_MINUS:t.data+="--!",this.state=sP.COMMENT_END_DASH;break;case sA.GREATER_THAN_SIGN:this._err(sv.incorrectlyClosedComment),this.state=sP.DATA,this.emitCurrentComment(t);break;case sA.EOF:this._err(sv.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=sP.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:this.state=sP.BEFORE_DOCTYPE_NAME;break;case sA.GREATER_THAN_SIGN:this.state=sP.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case sA.EOF:{this._err(sv.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(sv.missingWhitespaceBeforeDoctypeName),this.state=sP.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(et(e))this._createDoctypeToken(String.fromCharCode(e+32)),this.state=sP.DOCTYPE_NAME;else switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:break;case sA.NULL:this._err(sv.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=sP.DOCTYPE_NAME;break;case sA.GREATER_THAN_SIGN:{this._err(sv.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=sP.DATA;break}case sA.EOF:{this._err(sv.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=sP.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:this.state=sP.AFTER_DOCTYPE_NAME;break;case sA.GREATER_THAN_SIGN:this.state=sP.DATA,this.emitCurrentDoctype(t);break;case sA.NULL:this._err(sv.unexpectedNullCharacter),t.name+="�";break;case sA.EOF:this._err(sv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(et(e)?e+32:e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:break;case sA.GREATER_THAN_SIGN:this.state=sP.DATA,this.emitCurrentDoctype(t);break;case sA.EOF:this._err(sv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=sP.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=sP.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(sv.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=sP.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:this.state=sP.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case sA.QUOTATION_MARK:this._err(sv.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=sP.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case sA.APOSTROPHE:this._err(sv.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=sP.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case sA.GREATER_THAN_SIGN:this._err(sv.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=sP.DATA,this.emitCurrentDoctype(t);break;case sA.EOF:this._err(sv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(sv.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=sP.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:break;case sA.QUOTATION_MARK:t.publicId="",this.state=sP.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case sA.APOSTROPHE:t.publicId="",this.state=sP.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case sA.GREATER_THAN_SIGN:this._err(sv.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=sP.DATA,this.emitCurrentDoctype(t);break;case sA.EOF:this._err(sv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(sv.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=sP.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case sA.QUOTATION_MARK:this.state=sP.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case sA.NULL:this._err(sv.unexpectedNullCharacter),t.publicId+="�";break;case sA.GREATER_THAN_SIGN:this._err(sv.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=sP.DATA;break;case sA.EOF:this._err(sv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case sA.APOSTROPHE:this.state=sP.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case sA.NULL:this._err(sv.unexpectedNullCharacter),t.publicId+="�";break;case sA.GREATER_THAN_SIGN:this._err(sv.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=sP.DATA;break;case sA.EOF:this._err(sv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:this.state=sP.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case sA.GREATER_THAN_SIGN:this.state=sP.DATA,this.emitCurrentDoctype(t);break;case sA.QUOTATION_MARK:this._err(sv.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=sP.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case sA.APOSTROPHE:this._err(sv.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=sP.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case sA.EOF:this._err(sv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(sv.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=sP.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:break;case sA.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=sP.DATA;break;case sA.QUOTATION_MARK:t.systemId="",this.state=sP.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case sA.APOSTROPHE:t.systemId="",this.state=sP.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case sA.EOF:this._err(sv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(sv.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=sP.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:this.state=sP.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case sA.QUOTATION_MARK:this._err(sv.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=sP.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case sA.APOSTROPHE:this._err(sv.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=sP.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case sA.GREATER_THAN_SIGN:this._err(sv.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=sP.DATA,this.emitCurrentDoctype(t);break;case sA.EOF:this._err(sv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(sv.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=sP.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:break;case sA.QUOTATION_MARK:t.systemId="",this.state=sP.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case sA.APOSTROPHE:t.systemId="",this.state=sP.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case sA.GREATER_THAN_SIGN:this._err(sv.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=sP.DATA,this.emitCurrentDoctype(t);break;case sA.EOF:this._err(sv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(sv.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=sP.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case sA.QUOTATION_MARK:this.state=sP.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case sA.NULL:this._err(sv.unexpectedNullCharacter),t.systemId+="�";break;case sA.GREATER_THAN_SIGN:this._err(sv.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=sP.DATA;break;case sA.EOF:this._err(sv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case sA.APOSTROPHE:this.state=sP.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case sA.NULL:this._err(sv.unexpectedNullCharacter),t.systemId+="�";break;case sA.GREATER_THAN_SIGN:this._err(sv.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=sP.DATA;break;case sA.EOF:this._err(sv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case sA.SPACE:case sA.LINE_FEED:case sA.TABULATION:case sA.FORM_FEED:break;case sA.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=sP.DATA;break;case sA.EOF:this._err(sv.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(sv.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=sP.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case sA.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=sP.DATA;break;case sA.NULL:this._err(sv.unexpectedNullCharacter);break;case sA.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case sA.RIGHT_SQUARE_BRACKET:this.state=sP.CDATA_SECTION_BRACKET;break;case sA.EOF:this._err(sv.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===sA.RIGHT_SQUARE_BRACKET?this.state=sP.CDATA_SECTION_END:(this._emitChars("]"),this.state=sP.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case sA.GREATER_THAN_SIGN:this.state=sP.DATA;break;case sA.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=sP.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(sA.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&er(this.preprocessor.peek(1))?sP.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){er(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===sA.SEMICOLON&&this._err(sv.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}let eo=new Set([sR.DD,sR.DT,sR.LI,sR.OPTGROUP,sR.OPTION,sR.P,sR.RB,sR.RP,sR.RT,sR.RTC]),el=new Set([...eo,sR.CAPTION,sR.COLGROUP,sR.TBODY,sR.TD,sR.TFOOT,sR.TH,sR.THEAD,sR.TR]),ec=new Set([sR.APPLET,sR.CAPTION,sR.HTML,sR.MARQUEE,sR.OBJECT,sR.TABLE,sR.TD,sR.TEMPLATE,sR.TH]),eu=new Set([...ec,sR.OL,sR.UL]),eh=new Set([...ec,sR.BUTTON]),ep=new Set([sR.ANNOTATION_XML,sR.MI,sR.MN,sR.MO,sR.MS,sR.MTEXT]),ed=new Set([sR.DESC,sR.FOREIGN_OBJECT,sR.TITLE]),ef=new Set([sR.TR,sR.TEMPLATE,sR.HTML]),em=new Set([sR.TBODY,sR.TFOOT,sR.THEAD,sR.TEMPLATE,sR.HTML]),eg=new Set([sR.TABLE,sR.TEMPLATE,sR.HTML]),ey=new Set([sR.TD,sR.TH]);class eb{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=sR.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===sR.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===sD.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==sD.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(J,sD.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ey,sD.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return -1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(eg,sD.HTML)}clearBackToTableBodyContext(){this.clearBackTo(em,sD.HTML)}clearBackToTableRowContext(){this.clearBackTo(ef,sD.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===sR.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===sR.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case sD.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case sD.SVG:if(ed.has(r))return!1;break;case sD.MATHML:if(ep.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,ec)}hasInListItemScope(e){return this.hasInDynamicScope(e,eu)}hasInButtonScope(e){return this.hasInDynamicScope(e,eh)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case sD.HTML:if(J.has(t))return!0;if(ec.has(t))return!1;break;case sD.SVG:if(ed.has(t))return!1;break;case sD.MATHML:if(ep.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===sD.HTML)switch(this.tagIDs[t]){case e:return!0;case sR.TABLE:case sR.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===sD.HTML)switch(this.tagIDs[e]){case sR.TBODY:case sR.THEAD:case sR.TFOOT:return!0;case sR.TABLE:case sR.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===sD.HTML)switch(this.tagIDs[t]){case e:return!0;case sR.OPTION:case sR.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&eo.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&el.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&el.has(this.currentTagId);)this.pop()}}(sE=sF||(sF={}))[sE.Marker=0]="Marker",sE[sE.Element=1]="Element";let ek={type:sF.Marker};class e_{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===sF.Marker)break;let{element:s}=t;if(this.treeAdapter.getTagName(s)===i&&this.treeAdapter.getNamespaceURI(s)===a){let t=this.treeAdapter.getAttrList(s);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;let r=new Map(t.map(e=>[e.name,e.value])),i=0;for(let e=0;e<n.length;e++){let t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(i+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(ek)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:sF.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:sF.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(ek);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===sF.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===sF.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===sF.Element&&t.element===e)}}let ex={createDocument:()=>({nodeName:"#document",mode:sM.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>"#documentType"===e.nodeName);i?(i.name=t,i.publicId=n,i.systemId=r):ex.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(ex.isTextNode(n)){n.value+=t;return}}ex.appendChild(e,ex.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ex.isTextNode(r)?r.value+=t:ex.insertBefore(e,ex.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},eE="html",eT=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],eA=[...eT,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],ev=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),ew=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],eS=[...ew,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function eC(e,t){return t.some(t=>e.startsWith(t))}let eN=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),eI=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:sD.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:sD.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:sD.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:sD.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:sD.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:sD.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:sD.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:sD.XML}],["xml:space",{prefix:"xml",name:"space",namespace:sD.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:sD.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:sD.XMLNS}]]),eD=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),eO=new Set([sR.B,sR.BIG,sR.BLOCKQUOTE,sR.BODY,sR.BR,sR.CENTER,sR.CODE,sR.DD,sR.DIV,sR.DL,sR.DT,sR.EM,sR.EMBED,sR.H1,sR.H2,sR.H3,sR.H4,sR.H5,sR.H6,sR.HEAD,sR.HR,sR.I,sR.IMG,sR.LI,sR.LISTING,sR.MENU,sR.META,sR.NOBR,sR.OL,sR.P,sR.PRE,sR.RUBY,sR.S,sR.SMALL,sR.SPAN,sR.STRONG,sR.STRIKE,sR.SUB,sR.SUP,sR.TABLE,sR.TT,sR.U,sR.UL,sR.VAR]);function eM(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function eL(e){for(let t=0;t<e.attrs.length;t++){let n=eN.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function eR(e){for(let t=0;t<e.attrs.length;t++){let n=eI.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}(sT=sB||(sB={}))[sT.INITIAL=0]="INITIAL",sT[sT.BEFORE_HTML=1]="BEFORE_HTML",sT[sT.BEFORE_HEAD=2]="BEFORE_HEAD",sT[sT.IN_HEAD=3]="IN_HEAD",sT[sT.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",sT[sT.AFTER_HEAD=5]="AFTER_HEAD",sT[sT.IN_BODY=6]="IN_BODY",sT[sT.TEXT=7]="TEXT",sT[sT.IN_TABLE=8]="IN_TABLE",sT[sT.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",sT[sT.IN_CAPTION=10]="IN_CAPTION",sT[sT.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",sT[sT.IN_TABLE_BODY=12]="IN_TABLE_BODY",sT[sT.IN_ROW=13]="IN_ROW",sT[sT.IN_CELL=14]="IN_CELL",sT[sT.IN_SELECT=15]="IN_SELECT",sT[sT.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",sT[sT.IN_TEMPLATE=17]="IN_TEMPLATE",sT[sT.AFTER_BODY=18]="AFTER_BODY",sT[sT.IN_FRAMESET=19]="IN_FRAMESET",sT[sT.AFTER_FRAMESET=20]="AFTER_FRAMESET",sT[sT.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",sT[sT.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";let eP={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},eF=new Set([sR.TABLE,sR.TBODY,sR.TFOOT,sR.THEAD,sR.TR]),eB={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ex,onParseError:null};class eH{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=sB.INITIAL,this.originalInsertionMode=sB.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...eB,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new es(this.options,this),this.activeFormattingElements=new e_(this.treeAdapter),this.fragmentContextID=n?X(this.treeAdapter.getTagName(n)):sR.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new eb(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...eB,...t};null!=e||(e=n.treeAdapter.createElement(sL.TEMPLATE,sD.HTML,[]));let r=n.treeAdapter.createElement("documentmock",sD.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===sR.TEMPLATE&&i.tmplInsertionModeStack.unshift(sB.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;let i=null!=(r=e.location)?r:eP,a={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(e,t,n){var r,i;null==(i=(r=this.treeAdapter).onItemPush)||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null==(r=(n=this.treeAdapter).onItemPop)||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===sD.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,sD.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=sB.TEXT}switchToPlaintextParsing(){this.insertionMode=sB.TEXT,this.originalInsertionMode=sB.IN_BODY,this.tokenizer.state=ee.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===sL.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===sD.HTML)switch(this.fragmentContextID){case sR.TITLE:case sR.TEXTAREA:this.tokenizer.state=ee.RCDATA;break;case sR.STYLE:case sR.XMP:case sR.IFRAME:case sR.NOEMBED:case sR.NOFRAMES:case sR.NOSCRIPT:this.tokenizer.state=ee.RAWTEXT;break;case sR.SCRIPT:this.tokenizer.state=ee.SCRIPT_DATA;break;case sR.PLAINTEXT:this.tokenizer.state=ee.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,sD.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,sD.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(sL.HTML,sD.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,sR.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,a=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===sw.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){let t,n;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,(e.tagID!==sR.SVG||this.treeAdapter.getTagName(t)!==sL.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==sD.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===sR.MGLYPH||e.tagID===sR.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,sD.HTML)))}_processToken(e){switch(e.type){case sw.CHARACTER:this.onCharacter(e);break;case sw.NULL_CHARACTER:this.onNullCharacter(e);break;case sw.COMMENT:this.onComment(e);break;case sw.DOCTYPE:this.onDoctype(e);break;case sw.START_TAG:this._processStartTag(e);break;case sw.END_TAG:this.onEndTag(e);break;case sw.EOF:this.onEof(e);break;case sw.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){let r=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return(!n||n===sD.HTML)&&function(e,t,n){if(t===sD.MATHML&&e===sR.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===sO.ENCODING){let t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}}return t===sD.SVG&&(e===sR.FOREIGN_OBJECT||e===sR.DESC||e===sR.TITLE)}(e,r,i)||(!n||n===sD.MATHML)&&r===sD.MATHML&&(e===sR.MI||e===sR.MO||e===sR.MN||e===sR.MS||e===sR.MTEXT)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===sF.Marker||this.openElements.contains(e.element)),n=-1===t?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=sB.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(sR.P),this.openElements.popUntilTagNamePopped(sR.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case sR.TR:this.insertionMode=sB.IN_ROW;return;case sR.TBODY:case sR.THEAD:case sR.TFOOT:this.insertionMode=sB.IN_TABLE_BODY;return;case sR.CAPTION:this.insertionMode=sB.IN_CAPTION;return;case sR.COLGROUP:this.insertionMode=sB.IN_COLUMN_GROUP;return;case sR.TABLE:this.insertionMode=sB.IN_TABLE;return;case sR.BODY:this.insertionMode=sB.IN_BODY;return;case sR.FRAMESET:this.insertionMode=sB.IN_FRAMESET;return;case sR.SELECT:return void this._resetInsertionModeForSelect(e);case sR.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case sR.HTML:this.insertionMode=this.headElement?sB.AFTER_HEAD:sB.BEFORE_HEAD;return;case sR.TD:case sR.TH:if(e>0){this.insertionMode=sB.IN_CELL;return}break;case sR.HEAD:if(e>0){this.insertionMode=sB.IN_HEAD;return}}this.insertionMode=sB.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===sR.TEMPLATE)break;if(e===sR.TABLE){this.insertionMode=sB.IN_SELECT_IN_TABLE;return}}this.insertionMode=sB.IN_SELECT}_isElementCausesFosterParenting(e){return eF.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case sR.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===sD.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case sR.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return Z[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,n=e,t._insertCharacters(n),t.framesetOk=!1)}switch(this.insertionMode){case sB.INITIAL:ez(this,e);break;case sB.BEFORE_HTML:eG(this,e);break;case sB.BEFORE_HEAD:eK(this,e);break;case sB.IN_HEAD:eW(this,e);break;case sB.IN_HEAD_NO_SCRIPT:eV(this,e);break;case sB.AFTER_HEAD:eX(this,e);break;case sB.IN_BODY:case sB.IN_CAPTION:case sB.IN_CELL:case sB.IN_TEMPLATE:eJ(this,e);break;case sB.TEXT:case sB.IN_SELECT:case sB.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case sB.IN_TABLE:case sB.IN_TABLE_BODY:case sB.IN_ROW:e8(this,e);break;case sB.IN_TABLE_TEXT:tr(this,e);break;case sB.IN_COLUMN_GROUP:to(this,e);break;case sB.AFTER_BODY:tg(this,e);break;case sB.AFTER_AFTER_BODY:ty(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,(n=e).chars="�",t._insertCharacters(n))}switch(this.insertionMode){case sB.INITIAL:ez(this,e);break;case sB.BEFORE_HTML:eG(this,e);break;case sB.BEFORE_HEAD:eK(this,e);break;case sB.IN_HEAD:eW(this,e);break;case sB.IN_HEAD_NO_SCRIPT:eV(this,e);break;case sB.AFTER_HEAD:eX(this,e);break;case sB.TEXT:this._insertCharacters(e);break;case sB.IN_TABLE:case sB.IN_TABLE_BODY:case sB.IN_ROW:e8(this,e);break;case sB.IN_COLUMN_GROUP:to(this,e);break;case sB.AFTER_BODY:tg(this,e);break;case sB.AFTER_AFTER_BODY:ty(this,e)}}onComment(e){var t,n,r,i;if(this.skipNextNewLine=!1,this.currentNotInHTML)return void ej(this,e);switch(this.insertionMode){case sB.INITIAL:case sB.BEFORE_HTML:case sB.BEFORE_HEAD:case sB.IN_HEAD:case sB.IN_HEAD_NO_SCRIPT:case sB.AFTER_HEAD:case sB.IN_BODY:case sB.IN_TABLE:case sB.IN_CAPTION:case sB.IN_COLUMN_GROUP:case sB.IN_TABLE_BODY:case sB.IN_ROW:case sB.IN_CELL:case sB.IN_SELECT:case sB.IN_SELECT_IN_TABLE:case sB.IN_TEMPLATE:case sB.IN_FRAMESET:case sB.AFTER_FRAMESET:ej(this,e);break;case sB.IN_TABLE_TEXT:ti(this,e);break;case sB.AFTER_BODY:t=this,n=e,t._appendCommentNode(n,t.openElements.items[0]);break;case sB.AFTER_AFTER_BODY:case sB.AFTER_AFTER_FRAMESET:r=this,i=e,r._appendCommentNode(i,r.document)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case sB.INITIAL:!function(e,t){e._setDocumentType(t);let n=t.forceQuirks?sM.QUIRKS:function(e){if(e.name!==eE)return sM.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return sM.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),ev.has(n))return sM.QUIRKS;let e=null===t?eA:eT;if(eC(n,e))return sM.QUIRKS;if(eC(n,e=null===t?ew:eS))return sM.LIMITED_QUIRKS}return sM.NO_QUIRKS}(t);(t.name!==eE||null!==t.publicId||null!==t.systemId&&"about:legacy-compat"!==t.systemId)&&e._err(t,sv.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=sB.BEFORE_HTML}(this,e);break;case sB.BEFORE_HEAD:case sB.IN_HEAD:case sB.IN_HEAD_NO_SCRIPT:case sB.AFTER_HEAD:this._err(e,sv.misplacedDoctype);break;case sB.IN_TABLE_TEXT:ti(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,sv.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){let n;if((n=t.tagID)===sR.FONT&&t.attrs.some(({name:e})=>e===sO.COLOR||e===sO.SIZE||e===sO.FACE)||eO.has(n))tb(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);if(r===sD.MATHML)eM(t);else if(r===sD.SVG){let e;null!=(e=eD.get(t.tagName))&&(t.tagName=e,t.tagID=X(t.tagName)),eL(t)}eR(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case sB.INITIAL:ez(this,e);break;case sB.BEFORE_HTML:t=this,(n=e).tagID===sR.HTML?(t._insertElement(n,sD.HTML),t.insertionMode=sB.BEFORE_HEAD):eG(t,n);break;case sB.BEFORE_HEAD:var t,n,r,i,a,s,o,l,c,u,h,p,d=this,f=e;switch(f.tagID){case sR.HTML:e5(d,f);break;case sR.HEAD:d._insertElement(f,sD.HTML),d.headElement=d.openElements.current,d.insertionMode=sB.IN_HEAD;break;default:eK(d,f)}break;case sB.IN_HEAD:eq(this,e);break;case sB.IN_HEAD_NO_SCRIPT:var m=this,g=e;switch(g.tagID){case sR.HTML:e5(m,g);break;case sR.BASEFONT:case sR.BGSOUND:case sR.HEAD:case sR.LINK:case sR.META:case sR.NOFRAMES:case sR.STYLE:eq(m,g);break;case sR.NOSCRIPT:m._err(g,sv.nestedNoscriptInHead);break;default:eV(m,g)}break;case sB.AFTER_HEAD:var y=this,b=e;switch(b.tagID){case sR.HTML:e5(y,b);break;case sR.BODY:y._insertElement(b,sD.HTML),y.framesetOk=!1,y.insertionMode=sB.IN_BODY;break;case sR.FRAMESET:y._insertElement(b,sD.HTML),y.insertionMode=sB.IN_FRAMESET;break;case sR.BASE:case sR.BASEFONT:case sR.BGSOUND:case sR.LINK:case sR.META:case sR.NOFRAMES:case sR.SCRIPT:case sR.STYLE:case sR.TEMPLATE:case sR.TITLE:y._err(b,sv.abandonedHeadElementChild),y.openElements.push(y.headElement,sR.HEAD),eq(y,b),y.openElements.remove(y.headElement);break;case sR.HEAD:y._err(b,sv.misplacedStartTagForHeadElement);break;default:eX(y,b)}break;case sB.IN_BODY:e5(this,e);break;case sB.IN_TABLE:e7(this,e);break;case sB.IN_TABLE_TEXT:ti(this,e);break;case sB.IN_CAPTION:let k;r=this,k=(i=e).tagID,ta.has(k)?r.openElements.hasInTableScope(sR.CAPTION)&&(r.openElements.generateImpliedEndTags(),r.openElements.popUntilTagNamePopped(sR.CAPTION),r.activeFormattingElements.clearToLastMarker(),r.insertionMode=sB.IN_TABLE,e7(r,i)):e5(r,i);break;case sB.IN_COLUMN_GROUP:ts(this,e);break;case sB.IN_TABLE_BODY:tl(this,e);break;case sB.IN_ROW:tu(this,e);break;case sB.IN_CELL:let _;a=this,_=(s=e).tagID,ta.has(_)?(a.openElements.hasInTableScope(sR.TD)||a.openElements.hasInTableScope(sR.TH))&&(a._closeTableCell(),tu(a,s)):e5(a,s);break;case sB.IN_SELECT:tp(this,e);break;case sB.IN_SELECT_IN_TABLE:let x;o=this,(x=(l=e).tagID)===sR.CAPTION||x===sR.TABLE||x===sR.TBODY||x===sR.TFOOT||x===sR.THEAD||x===sR.TR||x===sR.TD||x===sR.TH?(o.openElements.popUntilTagNamePopped(sR.SELECT),o._resetInsertionMode(),o._processStartTag(l)):tp(o,l);break;case sB.IN_TEMPLATE:var E=this,T=e;switch(T.tagID){case sR.BASE:case sR.BASEFONT:case sR.BGSOUND:case sR.LINK:case sR.META:case sR.NOFRAMES:case sR.SCRIPT:case sR.STYLE:case sR.TEMPLATE:case sR.TITLE:eq(E,T);break;case sR.CAPTION:case sR.COLGROUP:case sR.TBODY:case sR.TFOOT:case sR.THEAD:E.tmplInsertionModeStack[0]=sB.IN_TABLE,E.insertionMode=sB.IN_TABLE,e7(E,T);break;case sR.COL:E.tmplInsertionModeStack[0]=sB.IN_COLUMN_GROUP,E.insertionMode=sB.IN_COLUMN_GROUP,ts(E,T);break;case sR.TR:E.tmplInsertionModeStack[0]=sB.IN_TABLE_BODY,E.insertionMode=sB.IN_TABLE_BODY,tl(E,T);break;case sR.TD:case sR.TH:E.tmplInsertionModeStack[0]=sB.IN_ROW,E.insertionMode=sB.IN_ROW,tu(E,T);break;default:E.tmplInsertionModeStack[0]=sB.IN_BODY,E.insertionMode=sB.IN_BODY,e5(E,T)}break;case sB.AFTER_BODY:c=this,(u=e).tagID===sR.HTML?e5(c,u):tg(c,u);break;case sB.IN_FRAMESET:var A=this,v=e;switch(v.tagID){case sR.HTML:e5(A,v);break;case sR.FRAMESET:A._insertElement(v,sD.HTML);break;case sR.FRAME:A._appendElement(v,sD.HTML),v.ackSelfClosing=!0;break;case sR.NOFRAMES:eq(A,v)}break;case sB.AFTER_FRAMESET:var w=this,S=e;switch(S.tagID){case sR.HTML:e5(w,S);break;case sR.NOFRAMES:eq(w,S)}break;case sB.AFTER_AFTER_BODY:h=this,(p=e).tagID===sR.HTML?e5(h,p):ty(h,p);break;case sB.AFTER_AFTER_FRAMESET:var C=this,N=e;switch(N.tagID){case sR.HTML:e5(C,N);break;case sR.NOFRAMES:eq(C,N)}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===sR.P||t.tagID===sR.BR){tb(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===sD.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case sB.INITIAL:ez(this,e);break;case sB.BEFORE_HTML:let t;r=this,((t=(i=e).tagID)===sR.HTML||t===sR.HEAD||t===sR.BODY||t===sR.BR)&&eG(r,i);break;case sB.BEFORE_HEAD:let n;a=this,(n=(s=e).tagID)===sR.HEAD||n===sR.BODY||n===sR.HTML||n===sR.BR?eK(a,s):a._err(s,sv.endTagWithoutMatchingOpenElement);break;case sB.IN_HEAD:var r,i,a,s,o,l,c,u,h,p,d,f,m=this,g=e;switch(g.tagID){case sR.HEAD:m.openElements.pop(),m.insertionMode=sB.AFTER_HEAD;break;case sR.BODY:case sR.BR:case sR.HTML:eW(m,g);break;case sR.TEMPLATE:eY(m,g);break;default:m._err(g,sv.endTagWithoutMatchingOpenElement)}break;case sB.IN_HEAD_NO_SCRIPT:var y=this,b=e;switch(b.tagID){case sR.NOSCRIPT:y.openElements.pop(),y.insertionMode=sB.IN_HEAD;break;case sR.BR:eV(y,b);break;default:y._err(b,sv.endTagWithoutMatchingOpenElement)}break;case sB.AFTER_HEAD:var k=this,_=e;switch(_.tagID){case sR.BODY:case sR.HTML:case sR.BR:eX(k,_);break;case sR.TEMPLATE:eY(k,_);break;default:k._err(_,sv.endTagWithoutMatchingOpenElement)}break;case sB.IN_BODY:e9(this,e);break;case sB.TEXT:o=this,e.tagID===sR.SCRIPT&&(null==(l=o.scriptHandler)||l.call(o,o.openElements.current)),o.openElements.pop(),o.insertionMode=o.originalInsertionMode;break;case sB.IN_TABLE:te(this,e);break;case sB.IN_TABLE_TEXT:ti(this,e);break;case sB.IN_CAPTION:var x=this,E=e;let T=E.tagID;switch(T){case sR.CAPTION:case sR.TABLE:x.openElements.hasInTableScope(sR.CAPTION)&&(x.openElements.generateImpliedEndTags(),x.openElements.popUntilTagNamePopped(sR.CAPTION),x.activeFormattingElements.clearToLastMarker(),x.insertionMode=sB.IN_TABLE,T===sR.TABLE&&te(x,E));break;case sR.BODY:case sR.COL:case sR.COLGROUP:case sR.HTML:case sR.TBODY:case sR.TD:case sR.TFOOT:case sR.TH:case sR.THEAD:case sR.TR:break;default:e9(x,E)}break;case sB.IN_COLUMN_GROUP:var A=this,v=e;switch(v.tagID){case sR.COLGROUP:A.openElements.currentTagId===sR.COLGROUP&&(A.openElements.pop(),A.insertionMode=sB.IN_TABLE);break;case sR.TEMPLATE:eY(A,v);break;case sR.COL:break;default:to(A,v)}break;case sB.IN_TABLE_BODY:tc(this,e);break;case sB.IN_ROW:th(this,e);break;case sB.IN_CELL:var w=this,S=e;let C=S.tagID;switch(C){case sR.TD:case sR.TH:w.openElements.hasInTableScope(C)&&(w.openElements.generateImpliedEndTags(),w.openElements.popUntilTagNamePopped(C),w.activeFormattingElements.clearToLastMarker(),w.insertionMode=sB.IN_ROW);break;case sR.TABLE:case sR.TBODY:case sR.TFOOT:case sR.THEAD:case sR.TR:w.openElements.hasInTableScope(C)&&(w._closeTableCell(),th(w,S));break;case sR.BODY:case sR.CAPTION:case sR.COL:case sR.COLGROUP:case sR.HTML:break;default:e9(w,S)}break;case sB.IN_SELECT:td(this,e);break;case sB.IN_SELECT_IN_TABLE:let N;c=this,(N=(u=e).tagID)===sR.CAPTION||N===sR.TABLE||N===sR.TBODY||N===sR.TFOOT||N===sR.THEAD||N===sR.TR||N===sR.TD||N===sR.TH?c.openElements.hasInTableScope(N)&&(c.openElements.popUntilTagNamePopped(sR.SELECT),c._resetInsertionMode(),c.onEndTag(u)):td(c,u);break;case sB.IN_TEMPLATE:h=this,(p=e).tagID===sR.TEMPLATE&&eY(h,p);break;case sB.AFTER_BODY:tm(this,e);break;case sB.IN_FRAMESET:d=this,e.tagID===sR.FRAMESET&&!d.openElements.isRootHtmlElementCurrent()&&(d.openElements.pop(),d.fragmentContext||d.openElements.currentTagId===sR.FRAMESET||(d.insertionMode=sB.AFTER_FRAMESET));break;case sB.AFTER_FRAMESET:f=this,e.tagID===sR.HTML&&(f.insertionMode=sB.AFTER_AFTER_FRAMESET);break;case sB.AFTER_AFTER_BODY:ty(this,e)}}onEof(e){switch(this.insertionMode){case sB.INITIAL:ez(this,e);break;case sB.BEFORE_HTML:eG(this,e);break;case sB.BEFORE_HEAD:eK(this,e);break;case sB.IN_HEAD:eW(this,e);break;case sB.IN_HEAD_NO_SCRIPT:eV(this,e);break;case sB.AFTER_HEAD:eX(this,e);break;case sB.IN_BODY:case sB.IN_TABLE:case sB.IN_CAPTION:case sB.IN_COLUMN_GROUP:case sB.IN_TABLE_BODY:case sB.IN_ROW:case sB.IN_CELL:case sB.IN_SELECT:case sB.IN_SELECT_IN_TABLE:e6(this,e);break;case sB.TEXT:var t,n;t=this,n=e,t._err(n,sv.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(n);break;case sB.IN_TABLE_TEXT:ti(this,e);break;case sB.IN_TEMPLATE:tf(this,e);break;case sB.AFTER_BODY:case sB.IN_FRAMESET:case sB.AFTER_FRAMESET:case sB.AFTER_AFTER_BODY:case sB.AFTER_AFTER_FRAMESET:e$(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===sA.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)return void this._insertCharacters(e);switch(this.insertionMode){case sB.IN_HEAD:case sB.IN_HEAD_NO_SCRIPT:case sB.AFTER_HEAD:case sB.TEXT:case sB.IN_COLUMN_GROUP:case sB.IN_SELECT:case sB.IN_SELECT_IN_TABLE:case sB.IN_FRAMESET:case sB.AFTER_FRAMESET:this._insertCharacters(e);break;case sB.IN_BODY:case sB.IN_CAPTION:case sB.IN_CELL:case sB.IN_TEMPLATE:case sB.AFTER_BODY:case sB.AFTER_AFTER_BODY:case sB.AFTER_AFTER_FRAMESET:eZ(this,e);break;case sB.IN_TABLE:case sB.IN_TABLE_BODY:case sB.IN_ROW:e8(this,e);break;case sB.IN_TABLE_TEXT:tn(this,e)}}}function eU(e,t){for(let n=0;n<8;n++){let n=function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):e4(e,t),n}(e,t);if(!n)break;let r=function(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=function(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);let n=e.activeFormattingElements.getElementEntry(s),o=n&&a>=3;!n||o?(o&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(s)):(s=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&function(e,t,n){let r=X(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===sR.TEMPLATE&&i===sD.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,a,i),function(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}(e,r,n)}}function ej(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function e$(e,t){if(e.stopped=!0,t.location){let n=2*!e.fragmentContext;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function ez(e,t){e._err(t,sv.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,sM.QUIRKS),e.insertionMode=sB.BEFORE_HTML,e._processToken(t)}function eG(e,t){e._insertFakeRootElement(),e.insertionMode=sB.BEFORE_HEAD,e._processToken(t)}function eK(e,t){e._insertFakeElement(sL.HEAD,sR.HEAD),e.headElement=e.openElements.current,e.insertionMode=sB.IN_HEAD,e._processToken(t)}function eq(e,t){switch(t.tagID){case sR.HTML:e5(e,t);break;case sR.BASE:case sR.BASEFONT:case sR.BGSOUND:case sR.LINK:case sR.META:e._appendElement(t,sD.HTML),t.ackSelfClosing=!0;break;case sR.TITLE:e._switchToTextParsing(t,ee.RCDATA);break;case sR.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,ee.RAWTEXT):(e._insertElement(t,sD.HTML),e.insertionMode=sB.IN_HEAD_NO_SCRIPT);break;case sR.NOFRAMES:case sR.STYLE:e._switchToTextParsing(t,ee.RAWTEXT);break;case sR.SCRIPT:e._switchToTextParsing(t,ee.SCRIPT_DATA);break;case sR.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=sB.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(sB.IN_TEMPLATE);break;case sR.HEAD:e._err(t,sv.misplacedStartTagForHeadElement);break;default:eW(e,t)}}function eY(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==sR.TEMPLATE&&e._err(t,sv.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(sR.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,sv.endTagWithoutMatchingOpenElement)}function eW(e,t){e.openElements.pop(),e.insertionMode=sB.AFTER_HEAD,e._processToken(t)}function eV(e,t){let n=t.type===sw.EOF?sv.openElementsLeftAfterEof:sv.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=sB.IN_HEAD,e._processToken(t)}function eX(e,t){e._insertFakeElement(sL.BODY,sR.BODY),e.insertionMode=sB.IN_BODY,eQ(e,t)}function eQ(e,t){switch(t.type){case sw.CHARACTER:eJ(e,t);break;case sw.WHITESPACE_CHARACTER:eZ(e,t);break;case sw.COMMENT:ej(e,t);break;case sw.START_TAG:e5(e,t);break;case sw.END_TAG:e9(e,t);break;case sw.EOF:e6(e,t)}}function eZ(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function eJ(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function e0(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,sD.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function e1(e){let t=G(e,sO.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function e2(e,t){e._switchToTextParsing(t,ee.RAWTEXT)}function e3(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,sD.HTML)}function e5(e,t){switch(t.tagID){case sR.I:case sR.S:case sR.B:case sR.U:case sR.EM:case sR.TT:case sR.BIG:case sR.CODE:case sR.FONT:case sR.SMALL:case sR.STRIKE:case sR.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,sD.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case sR.A:let n;(n=e.activeFormattingElements.getElementEntryInScopeWithTagName(sL.A))&&(eU(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,sD.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case sR.H1:case sR.H2:case sR.H3:case sR.H4:case sR.H5:case sR.H6:e.openElements.hasInButtonScope(sR.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&J.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,sD.HTML);break;case sR.P:case sR.DL:case sR.OL:case sR.UL:case sR.DIV:case sR.DIR:case sR.NAV:case sR.MAIN:case sR.MENU:case sR.ASIDE:case sR.CENTER:case sR.FIGURE:case sR.FOOTER:case sR.HEADER:case sR.HGROUP:case sR.DIALOG:case sR.DETAILS:case sR.ADDRESS:case sR.ARTICLE:case sR.SEARCH:case sR.SECTION:case sR.SUMMARY:case sR.FIELDSET:case sR.BLOCKQUOTE:case sR.FIGCAPTION:e.openElements.hasInButtonScope(sR.P)&&e._closePElement(),e._insertElement(t,sD.HTML);break;case sR.LI:case sR.DD:case sR.DT:e.framesetOk=!1;let r=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let n=e.openElements.tagIDs[t];if(r===sR.LI&&n===sR.LI||(r===sR.DD||r===sR.DT)&&(n===sR.DD||n===sR.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==sR.ADDRESS&&n!==sR.DIV&&n!==sR.P&&e._isSpecialElement(e.openElements.items[t],n))break}e.openElements.hasInButtonScope(sR.P)&&e._closePElement(),e._insertElement(t,sD.HTML);break;case sR.BR:case sR.IMG:case sR.WBR:case sR.AREA:case sR.EMBED:case sR.KEYGEN:e0(e,t);break;case sR.HR:e.openElements.hasInButtonScope(sR.P)&&e._closePElement(),e._appendElement(t,sD.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case sR.RB:case sR.RTC:e.openElements.hasInScope(sR.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,sD.HTML);break;case sR.RT:case sR.RP:e.openElements.hasInScope(sR.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(sR.RTC),e._insertElement(t,sD.HTML);break;case sR.PRE:case sR.LISTING:e.openElements.hasInButtonScope(sR.P)&&e._closePElement(),e._insertElement(t,sD.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case sR.XMP:e.openElements.hasInButtonScope(sR.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ee.RAWTEXT);break;case sR.SVG:e._reconstructActiveFormattingElements(),eL(t),eR(t),t.selfClosing?e._appendElement(t,sD.SVG):e._insertElement(t,sD.SVG),t.ackSelfClosing=!0;break;case sR.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case sR.BASE:case sR.LINK:case sR.META:case sR.STYLE:case sR.TITLE:case sR.SCRIPT:case sR.BGSOUND:case sR.BASEFONT:case sR.TEMPLATE:eq(e,t);break;case sR.BODY:let i;(i=e.openElements.tryPeekProperlyNestedBodyElement())&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(i,t.attrs));break;case sR.FORM:let a;a=e.openElements.tmplCount>0,(!e.formElement||a)&&(e.openElements.hasInButtonScope(sR.P)&&e._closePElement(),e._insertElement(t,sD.HTML),a||(e.formElement=e.openElements.current));break;case sR.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(sR.NOBR)&&(eU(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,sD.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case sR.MATH:e._reconstructActiveFormattingElements(),eM(t),eR(t),t.selfClosing?e._appendElement(t,sD.MATHML):e._insertElement(t,sD.MATHML),t.ackSelfClosing=!0;break;case sR.TABLE:e.treeAdapter.getDocumentMode(e.document)!==sM.QUIRKS&&e.openElements.hasInButtonScope(sR.P)&&e._closePElement(),e._insertElement(t,sD.HTML),e.framesetOk=!1,e.insertionMode=sB.IN_TABLE;break;case sR.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,sD.HTML),e1(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case sR.PARAM:case sR.TRACK:case sR.SOURCE:e._appendElement(t,sD.HTML),t.ackSelfClosing=!0;break;case sR.IMAGE:t.tagName=sL.IMG,t.tagID=sR.IMG,e0(e,t);break;case sR.BUTTON:e.openElements.hasInScope(sR.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(sR.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,sD.HTML),e.framesetOk=!1;break;case sR.APPLET:case sR.OBJECT:case sR.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,sD.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case sR.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,ee.RAWTEXT);break;case sR.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,sD.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===sB.IN_TABLE||e.insertionMode===sB.IN_CAPTION||e.insertionMode===sB.IN_TABLE_BODY||e.insertionMode===sB.IN_ROW||e.insertionMode===sB.IN_CELL?sB.IN_SELECT_IN_TABLE:sB.IN_SELECT;break;case sR.OPTION:case sR.OPTGROUP:e.openElements.currentTagId===sR.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,sD.HTML);break;case sR.NOEMBED:case sR.NOFRAMES:e2(e,t);break;case sR.FRAMESET:let s;s=e.openElements.tryPeekProperlyNestedBodyElement(),e.framesetOk&&s&&(e.treeAdapter.detachNode(s),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,sD.HTML),e.insertionMode=sB.IN_FRAMESET);break;case sR.TEXTAREA:e._insertElement(t,sD.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ee.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=sB.TEXT;break;case sR.NOSCRIPT:e.options.scriptingEnabled?e2(e,t):e3(e,t);break;case sR.PLAINTEXT:e.openElements.hasInButtonScope(sR.P)&&e._closePElement(),e._insertElement(t,sD.HTML),e.tokenizer.state=ee.PLAINTEXT;break;case sR.COL:case sR.TH:case sR.TD:case sR.TR:case sR.HEAD:case sR.FRAME:case sR.TBODY:case sR.TFOOT:case sR.THEAD:case sR.CAPTION:case sR.COLGROUP:break;default:e3(e,t)}}function e4(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==sR.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function e9(e,t){switch(t.tagID){case sR.A:case sR.B:case sR.I:case sR.S:case sR.U:case sR.EM:case sR.TT:case sR.BIG:case sR.CODE:case sR.FONT:case sR.NOBR:case sR.SMALL:case sR.STRIKE:case sR.STRONG:eU(e,t);break;case sR.P:e.openElements.hasInButtonScope(sR.P)||e._insertFakeElement(sL.P,sR.P),e._closePElement();break;case sR.DL:case sR.UL:case sR.OL:case sR.DIR:case sR.DIV:case sR.NAV:case sR.PRE:case sR.MAIN:case sR.MENU:case sR.ASIDE:case sR.BUTTON:case sR.CENTER:case sR.FIGURE:case sR.FOOTER:case sR.HEADER:case sR.HGROUP:case sR.DIALOG:case sR.ADDRESS:case sR.ARTICLE:case sR.DETAILS:case sR.SEARCH:case sR.SECTION:case sR.SUMMARY:case sR.LISTING:case sR.FIELDSET:case sR.BLOCKQUOTE:case sR.FIGCAPTION:let n;n=t.tagID,e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n));break;case sR.LI:e.openElements.hasInListItemScope(sR.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(sR.LI),e.openElements.popUntilTagNamePopped(sR.LI));break;case sR.DD:case sR.DT:let r;r=t.tagID,e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r));break;case sR.H1:case sR.H2:case sR.H3:case sR.H4:case sR.H5:case sR.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case sR.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(sL.BR,sR.BR),e.openElements.pop(),e.framesetOk=!1;break;case sR.BODY:if(e.openElements.hasInScope(sR.BODY)&&(e.insertionMode=sB.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}break;case sR.HTML:e.openElements.hasInScope(sR.BODY)&&(e.insertionMode=sB.AFTER_BODY,tm(e,t));break;case sR.FORM:!function(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(sR.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(sR.FORM):n&&e.openElements.remove(n))}(e);break;case sR.APPLET:case sR.OBJECT:case sR.MARQUEE:let i;i=t.tagID,e.openElements.hasInScope(i)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i),e.activeFormattingElements.clearToLastMarker());break;case sR.TEMPLATE:eY(e,t);break;default:e4(e,t)}}function e6(e,t){e.tmplInsertionModeStack.length>0?tf(e,t):e$(e,t)}function e8(e,t){if(void 0!==e.openElements.currentTagId&&eF.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=sB.IN_TABLE_TEXT,t.type){case sw.CHARACTER:tr(e,t);break;case sw.WHITESPACE_CHARACTER:tn(e,t)}else tt(e,t)}function e7(e,t){switch(t.tagID){case sR.TD:case sR.TH:case sR.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(sL.TBODY,sR.TBODY),e.insertionMode=sB.IN_TABLE_BODY,tl(e,t);break;case sR.STYLE:case sR.SCRIPT:case sR.TEMPLATE:eq(e,t);break;case sR.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(sL.COLGROUP,sR.COLGROUP),e.insertionMode=sB.IN_COLUMN_GROUP,ts(e,t);break;case sR.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,sD.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case sR.TABLE:e.openElements.hasInTableScope(sR.TABLE)&&(e.openElements.popUntilTagNamePopped(sR.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case sR.TBODY:case sR.TFOOT:case sR.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,sD.HTML),e.insertionMode=sB.IN_TABLE_BODY;break;case sR.INPUT:e1(t)?e._appendElement(t,sD.HTML):tt(e,t),t.ackSelfClosing=!0;break;case sR.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,sD.HTML),e.insertionMode=sB.IN_CAPTION;break;case sR.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,sD.HTML),e.insertionMode=sB.IN_COLUMN_GROUP;break;default:tt(e,t)}}function te(e,t){switch(t.tagID){case sR.TABLE:e.openElements.hasInTableScope(sR.TABLE)&&(e.openElements.popUntilTagNamePopped(sR.TABLE),e._resetInsertionMode());break;case sR.TEMPLATE:eY(e,t);break;case sR.BODY:case sR.CAPTION:case sR.COL:case sR.COLGROUP:case sR.HTML:case sR.TBODY:case sR.TD:case sR.TFOOT:case sR.TH:case sR.THEAD:case sR.TR:break;default:tt(e,t)}}function tt(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,eQ(e,t),e.fosterParentingEnabled=n}function tn(e,t){e.pendingCharacterTokens.push(t)}function tr(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ti(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)tt(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}let ta=new Set([sR.CAPTION,sR.COL,sR.COLGROUP,sR.TBODY,sR.TD,sR.TFOOT,sR.TH,sR.THEAD,sR.TR]);function ts(e,t){switch(t.tagID){case sR.HTML:e5(e,t);break;case sR.COL:e._appendElement(t,sD.HTML),t.ackSelfClosing=!0;break;case sR.TEMPLATE:eq(e,t);break;default:to(e,t)}}function to(e,t){e.openElements.currentTagId===sR.COLGROUP&&(e.openElements.pop(),e.insertionMode=sB.IN_TABLE,e._processToken(t))}function tl(e,t){switch(t.tagID){case sR.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,sD.HTML),e.insertionMode=sB.IN_ROW;break;case sR.TH:case sR.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(sL.TR,sR.TR),e.insertionMode=sB.IN_ROW,tu(e,t);break;case sR.CAPTION:case sR.COL:case sR.COLGROUP:case sR.TBODY:case sR.TFOOT:case sR.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=sB.IN_TABLE,e7(e,t));break;default:e7(e,t)}}function tc(e,t){let n=t.tagID;switch(t.tagID){case sR.TBODY:case sR.TFOOT:case sR.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=sB.IN_TABLE);break;case sR.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=sB.IN_TABLE,te(e,t));break;case sR.BODY:case sR.CAPTION:case sR.COL:case sR.COLGROUP:case sR.HTML:case sR.TD:case sR.TH:case sR.TR:break;default:te(e,t)}}function tu(e,t){switch(t.tagID){case sR.TH:case sR.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,sD.HTML),e.insertionMode=sB.IN_CELL,e.activeFormattingElements.insertMarker();break;case sR.CAPTION:case sR.COL:case sR.COLGROUP:case sR.TBODY:case sR.TFOOT:case sR.THEAD:case sR.TR:e.openElements.hasInTableScope(sR.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=sB.IN_TABLE_BODY,tl(e,t));break;default:e7(e,t)}}function th(e,t){switch(t.tagID){case sR.TR:e.openElements.hasInTableScope(sR.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=sB.IN_TABLE_BODY);break;case sR.TABLE:e.openElements.hasInTableScope(sR.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=sB.IN_TABLE_BODY,tc(e,t));break;case sR.TBODY:case sR.TFOOT:case sR.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(sR.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=sB.IN_TABLE_BODY,tc(e,t));break;case sR.BODY:case sR.CAPTION:case sR.COL:case sR.COLGROUP:case sR.HTML:case sR.TD:case sR.TH:break;default:te(e,t)}}function tp(e,t){switch(t.tagID){case sR.HTML:e5(e,t);break;case sR.OPTION:e.openElements.currentTagId===sR.OPTION&&e.openElements.pop(),e._insertElement(t,sD.HTML);break;case sR.OPTGROUP:e.openElements.currentTagId===sR.OPTION&&e.openElements.pop(),e.openElements.currentTagId===sR.OPTGROUP&&e.openElements.pop(),e._insertElement(t,sD.HTML);break;case sR.HR:e.openElements.currentTagId===sR.OPTION&&e.openElements.pop(),e.openElements.currentTagId===sR.OPTGROUP&&e.openElements.pop(),e._appendElement(t,sD.HTML),t.ackSelfClosing=!0;break;case sR.INPUT:case sR.KEYGEN:case sR.TEXTAREA:case sR.SELECT:e.openElements.hasInSelectScope(sR.SELECT)&&(e.openElements.popUntilTagNamePopped(sR.SELECT),e._resetInsertionMode(),t.tagID!==sR.SELECT&&e._processStartTag(t));break;case sR.SCRIPT:case sR.TEMPLATE:eq(e,t)}}function td(e,t){switch(t.tagID){case sR.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===sR.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===sR.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===sR.OPTGROUP&&e.openElements.pop();break;case sR.OPTION:e.openElements.currentTagId===sR.OPTION&&e.openElements.pop();break;case sR.SELECT:e.openElements.hasInSelectScope(sR.SELECT)&&(e.openElements.popUntilTagNamePopped(sR.SELECT),e._resetInsertionMode());break;case sR.TEMPLATE:eY(e,t)}}function tf(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(sR.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):e$(e,t)}function tm(e,t){var n;if(t.tagID===sR.HTML){if(e.fragmentContext||(e.insertionMode=sB.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===sR.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];!r||(null==(n=e.treeAdapter.getNodeSourceCodeLocation(r))?void 0:n.endTag)||e._setEndLocation(r,t)}}else tg(e,t)}function tg(e,t){e.insertionMode=sB.IN_BODY,eQ(e,t)}function ty(e,t){e.insertionMode=sB.IN_BODY,eQ(e,t)}function tb(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==sD.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}String.prototype.codePointAt,sL.AREA,sL.BASE,sL.BASEFONT,sL.BGSOUND,sL.BR,sL.COL,sL.EMBED,sL.FRAME,sL.HR,sL.IMG,sL.INPUT,sL.KEYGEN,sL.LINK,sL.META,sL.PARAM,sL.SOURCE,sL.TRACK,sL.WBR;var tk=n(7370);let t_=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,tx=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),tE={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function tT(e,t){var n,r;let a,s,o=!!((a="root"===(r=e).type?r.children[0]:r)&&("doctype"===a.type||"element"===a.type&&"html"===a.tagName.toLowerCase())),l=(0,I.A)("type",{handlers:{root:tv,element:tw,text:tS,comment:tN,doctype:tC,raw:tI},unknown:tD}),c={parser:o?new eH(tE):eH.getFragmentParser(void 0,tE),handle(e){l(e,c)},stitches:!1,options:t||{}};l(e,c),tO(c,(0,tk.PW)());let u=(n=o?c.parser.document:c.parser.getFragment(),T({file:(s={file:c.options.file}).file||void 0,location:!1,schema:"svg"===s.space?y.JW:y.qy,verbose:s.verbose||!1},n));return(c.stitches&&(0,i.YR)(u,"comment",function(e,t,n){if(e.value.stitch&&n&&void 0!==t)return n.children[t]=e.value.stitch,t}),"root"===u.type&&1===u.children.length&&u.children[0].type===e.type)?u.children[0]:u}function tA(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function tv(e,t){tA(e.children,t)}function tw(e,t){(function(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ee.PLAINTEXT)return;tO(t,(0,tk.PW)(e));let r=t.parser.openElements.current,i="namespaceURI"in r?r.namespaceURI:_.t.html;i===_.t.html&&"svg"===n&&(i=_.t.svg);let a=O({...e,children:[]},"svg"===({space:i===_.t.svg?"svg":"html"}).space?y.JW:y.qy),s={type:sw.START_TAG,tagName:n,tagID:X(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:tL(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n})(e,t),tA(e.children,t),function(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&R.b.includes(n)||t.parser.tokenizer.state===ee.PLAINTEXT)return;tO(t,(0,tk.Y)(e));let r={type:sw.END_TAG,tagName:n,tagID:X(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:tL(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===ee.RCDATA||t.parser.tokenizer.state===ee.RAWTEXT||t.parser.tokenizer.state===ee.SCRIPT_DATA)&&(t.parser.tokenizer.state=ee.DATA)}(e,t)}function tS(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:sw.CHARACTER,chars:e.value,location:tL(e)};tO(t,(0,tk.PW)(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function tC(e,t){let n={type:sw.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:tL(e)};tO(t,(0,tk.PW)(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function tN(e,t){let n=e.value,r={type:sw.COMMENT,data:n,location:tL(e)};tO(t,(0,tk.PW)(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function tI(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,tM(t,(0,tk.PW)(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(t_,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function tD(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type)){var n;let r;t.stitches=!0,r="children"in(n=e)?(0,f.Ay)({...n,children:[]}):(0,f.Ay)(n),"children"in e&&"children"in r&&(r.children=tT({type:"root",children:e.children},t.options).children),tN({type:"comment",value:{stitch:r}},t)}else{let t="";throw tx.has(e.type)&&(t=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+e.type+"` node"+t)}}function tO(e,t){tM(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=ee.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function tM(e,t){if(t&&void 0!==t.offset){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function tL(e){let t=(0,tk.PW)(e)||{line:void 0,column:void 0,offset:void 0},n=(0,tk.Y)(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function tR(e){return function(t,n){return tT(t,{...e,file:n})}}let tP=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],tF={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...tP,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...tP],h2:[["className","sr-only"]],img:[...tP,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...tP,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...tP],table:[...tP],ul:[...tP,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},tB={}.hasOwnProperty;function tH(e,t){if(t&&"object"==typeof t)switch("string"==typeof t.type?t.type:""){case"comment":var n,r,i=e,a=t;if(i.schema.allowComments){let e="string"==typeof a.value?a.value:"",t=e.indexOf("--\x3e"),n={type:"comment",value:t<0?e:e.slice(0,t)};return tz(n,a),n}return;case"doctype":var s=e,o=t;if(s.schema.allowDoctypes){let e={type:"doctype"};return tz(e,o),e}return;case"element":return function(e,t){let n="string"==typeof t.tagName?t.tagName:"";e.stack.push(n);let r=tU(e,t.children),i=function(e,t){let n,r=e.stack[e.stack.length-1],i=e.schema.attributes,a=e.schema.required,s=i&&tB.call(i,r)?i[r]:void 0,o=i&&tB.call(i,"*")?i["*"]:void 0,l=t&&"object"==typeof t?t:{},c={};for(n in l)if(tB.call(l,n)){let t=l[n],r=tj(e,tG(s,n),n,t);null==r&&(r=tj(e,tG(o,n),n,t)),null!=r&&(c[n]=r)}if(a&&tB.call(a,r)){let e=a[r];for(n in e)tB.call(e,n)&&!tB.call(c,n)&&(c[n]=e[n])}return c}(e,t.properties);e.stack.pop();let a=!1;if(n&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&tB.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r<t.length;)e.stack.includes(t[r])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let s={type:"element",tagName:n,properties:i,children:r};return tz(s,t),s}(e,t);case"root":let l;return tz(l={type:"root",children:tU(e,(n=t).children)},n),l;case"text":let c;return tz(c={type:"text",value:"string"==typeof(r=t).value?r.value:""},r),c}}function tU(e,t){let n=[];if(Array.isArray(t)){let r=-1;for(;++r<t.length;){let i=tH(e,t[r]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function tj(e,t,n,r){return t?Array.isArray(r)?function(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let s=t$(e,t,n,r[i]);("number"==typeof s||"string"==typeof s)&&a.push(s)}return a}(e,t,n,r):t$(e,t,n,r):void 0}function t$(e,t,n,r){if(("boolean"==typeof r||"number"==typeof r||"string"==typeof r)&&function(e,t,n){let r=e.schema.protocols&&tB.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||0===r.length)return!0;let i=String(n),a=i.indexOf(":"),s=i.indexOf("?"),o=i.indexOf("#"),l=i.indexOf("/");if(a<0||l>-1&&a>l||s>-1&&a>s||o>-1&&a>o)return!0;let c=-1;for(;++c<r.length;){let e=r[c];if(a===e.length&&i.slice(0,e.length)===e)return!0}return!1}(e,n,r)){if("object"==typeof t&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let i=t[n];if(i&&"object"==typeof i&&"flags"in i){if(i.test(String(r))){e=!0;break}}else if(i===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function tz(e,t){let n=(0,tk.G1)(t);t.data&&(e.data=(0,f.Ay)(t.data)),n&&(e.position=n)}function tG(e,t){let n,r=-1;if(e)for(;++r<e.length;){let i=e[r],a="string"==typeof i?i:i[0];if(a===t)return i;"data*"===a&&(n=i)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return n}function tK(e){return function(t){let n,r;return n={type:"root",children:[]},(r=tH({schema:e?{...tF,...e}:tF,stack:[]},t))&&(Array.isArray(r)?1===r.length?n=r[0]:n.children=r:n=r),n}}var tq=n(79204),tY=Object.defineProperty,tW=Object.defineProperties,tV=Object.getOwnPropertyDescriptors,tX=Object.getOwnPropertySymbols,tQ=Object.prototype.hasOwnProperty,tZ=Object.prototype.propertyIsEnumerable,tJ=(e,t,n)=>t in e?tY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,t0=(e,t)=>{for(var n in t||(t={}))tQ.call(t,n)&&tJ(e,n,t[n]);if(tX)for(var n of tX(t))tZ.call(t,n)&&tJ(e,n,t[n]);return e},t1=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if("\\"===e[i]&&i+1<e.length&&"`"===e[i+1]){i+=1;continue}if("```"===e.substring(i,i+3)){r=!r,i+=2;continue}r||"`"!==e[i]||(n=!n)}return n||r},t2=(e,t)=>{let n="```"===e.substring(t,t+3),r=t>0&&"```"===e.substring(t-1,t+2),i=t>1&&"```"===e.substring(t-2,t+1);return n||r||i},t3=(e,t)=>{let n=!1,r=!1,i=-1;for(let a=0;a<e.length;a+=1){if("\\"===e[a]&&a+1<e.length&&"`"===e[a+1]){a+=1;continue}if("```"===e.substring(a,a+3)){r=!r,a+=2;continue}if(!r&&"`"===e[a])if(n){if(i<t&&t<a)return!0;n=!1,i=-1}else n=!0,i=a}return!1},t5=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,t4=/(\*\*)([^*]*\*?)$/,t9=/(__)([^_]*?)$/,t6=/(\*\*\*)([^*]*?)$/,t8=/(\*)([^*]*?)$/,t7=/(_)([^_]*?)$/,ne=/(`)([^`]*?)$/,nt=/(~~)([^~]*?)$/,nn=/^[\s_~*`]*$/,nr=/^[\s]*[-*+][\s]+$/,ni=/[\p{L}\p{N}_]/u,na=/^```[^`\n]*```?$/,ns=/^\*{4,}$/,no=/(__)([^_]+)_$/,nl=/(~~)([^~]+)~$/,nc=/~~/g,nu=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t||ni.test(e)},nh=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if("["===e[r])n+=1;else if("]"===e[r]&&0==(n-=1))return r;return -1},np=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if("\\"===e[i]&&"$"===e[i+1]){i+=1;continue}"$"===e[i]&&("$"===e[i+1]?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},nd=(e,t)=>{for(let n=t;n<e.length;n+=1){if(")"===e[n])return!0;if(e[n]===`
|
|
2
|
+
`)break}return!1},nf=(e,t)=>{for(let n=t-1;n>=0&&")"!==e[n];n-=1){if("("===e[n])return n>0&&"]"===e[n-1]&&nd(e,t);if(e[n]===`
|
|
3
|
+
`)break}return!1},nm=(e,t,n)=>{let r=0;for(let n=t-1;n>=0;n-=1)if(e[n]===`
|
|
4
|
+
`){r=n+1;break}let i=e.length;for(let n=t;n<e.length;n+=1)if(e[n]===`
|
|
5
|
+
`){i=n;break}let a=e.substring(r,i),s=0,o=!1;for(let e of a)if(e===n)s+=1;else if(" "!==e&&" "!==e){o=!0;break}return s>=3&&!o},ng=(e,t,n,r)=>!!("\\"===n||e.includes("$")&&np(e,t))||("*"!==n&&"*"===r?(t<e.length-2?e[t+2]:"")!=="*":!!("*"===n||n&&r&&nu(n)&&nu(r)||(!n||" "===n||" "===n||n===`
|
|
6
|
+
`)&&(!r||" "===r||" "===r||r===`
|
|
7
|
+
`))),ny=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if("`"===e[i]&&i+2<r&&"`"===e[i+1]&&"`"===e[i+2]){n=!n,i+=2;continue}if(n||"*"!==e[i])continue;let a=i>0?e[i-1]:"",s=i<r-1?e[i+1]:"";ng(e,i,a,s)||(t+=1)}return t},nb=(e,t,n,r)=>!!("\\"===n||e.includes("$")&&np(e,t)||nf(e,t)||((e,t)=>{for(let n=t-1;n>=0&&">"!==e[n];n-=1){if("<"===e[n]){let t=n+1<e.length?e[n+1]:"";return t>="a"&&t<="z"||t>="A"&&t<="Z"||"/"===t}if(e[n]===`
|
|
8
|
+
`)break}return!1})(e,t)||"_"===n||"_"===r||n&&r&&nu(n)&&nu(r)),nk=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if("`"===e[r]&&r+2<e.length&&"`"===e[r+1]&&"`"===e[r+2]){n=!n,r+=2;continue}n||"*"===e[r]&&r+1<e.length&&"*"===e[r+1]&&(t+=1,r+=1)}return t},n_=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if("`"===e[r]&&r+2<e.length&&"`"===e[r+1]&&"`"===e[r+2]){n=!n,r+=2;continue}n||"_"===e[r]&&r+1<e.length&&"_"===e[r+1]&&(t+=1,r+=1)}return t},nx=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if("`"===e[n]&&n+2<e.length&&"`"===e[n+1]&&"`"===e[n+2]){t=!t,n+=2;continue}if(!t&&"_"===e[n]&&"_"!==e[n-1]&&"_"!==e[n+1]&&"\\"!==e[n-1]&&!np(e,n)&&!nf(e,n)){let t=n>0?e[n-1]:"",r=n<e.length-1?e[n+1]:"";if(t&&r&&nu(t)&&nu(r))continue;return n}}return -1},nE=/<[a-zA-Z/][^>]*$/,nT=(e,t)=>t>=2&&"```"===e.substring(t-2,t+1)||t>=1&&"```"===e.substring(t-1,t+2)||t<=e.length-3&&"```"===e.substring(t,t+3),nA=(e,t,n)=>{let r=t>0&&"!"===e[t-1],i=r?t-1:t;if(!e.substring(t+1).includes("]")||-1===nh(e,t)){let a=e.substring(0,i);if(r)return a;if("text-only"===n){let n=((e,t)=>{for(let n=0;n<t;n++)if("["===e[n]&&!t1(e,n)){if(n>0&&"!"===e[n-1])continue;let t=nh(e,n);if(-1===t)return n;if(t+1<e.length&&"("===e[t+1]){let r=e.indexOf(")",t+2);-1!==r&&(n=r)}}return t})(e,t);return e.substring(0,n)+e.substring(n+1)}return`${e}](streamdown:incomplete-link)`}return null},nv=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(-1!==n&&!t1(e,n)){let r=((e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let r=((e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if("]"===e[r])n+=1;else if("["===e[r]&&0==(n-=1))return r;return -1})(e,t);if(-1===r||t1(e,r))return null;let i=r>0&&"!"===e[r-1],a=e.substring(0,i?r-1:r);if(i)return a;let s=e.substring(r+1,t);return"text-only"===n?`${a}${s}`:`${a}[${s}](streamdown:incomplete-link)`})(e,n,t);if(null!==r)return r}for(let n=e.length-1;n>=0;n-=1)if("["===e[n]&&!t1(e,n)){let r=nA(e,n,t);if(null!==r)return r}return e},nw=/^-{1,2}$/,nS=/^[\s]*-{1,2}[\s]+$/,nC=/^={1,2}$/,nN=/^[\s]*={1,2}[\s]+$/,nI=RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),nD=[{handler:{name:"singleTilde",handle:e=>e&&"string"==typeof e&&e.includes("~")?e.replace(nI,(t,n)=>t1(e,n)?t:"\\~"):e,priority:0},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:e=>e&&"string"==typeof e&&e.includes(">")?e.replace(t5,(t,n,r,i)=>t1(e,i)?t:`${n}\\>${r}`):e,priority:5},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:e=>{let t=e.match(nE);return!t||void 0===t.index||t1(e,t.index)?e:e.substring(0,t.index).trimEnd()},priority:10},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:e=>{if(!e||"string"!=typeof e)return e;let t=e.lastIndexOf(`
|
|
9
|
+
`);if(-1===t)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(nw.test(i)&&!n.match(nS)){let t=r.split(`
|
|
10
|
+
`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}if(nC.test(i)&&!n.match(nN)){let t=r.split(`
|
|
11
|
+
`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}return e},priority:15},optionKey:"setextHeadings"},{handler:{name:"links",handle:nv,priority:20},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:e=>{let t,n;if(ns.test(e))return e;let r=e.match(t6);if(!r)return e;let i=r[2],a=e.lastIndexOf(r[1]);return!i||nn.test(i)||t1(e,a)||t3(e,a)||nm(e,a,"*")?e:(e=>{let t=0,n=0,r=!1;for(let i=0;i<e.length;i+=1){if("`"===e[i]&&i+2<e.length&&"`"===e[i+1]&&"`"===e[i+2]){n>=3&&(t+=Math.floor(n/3)),n=0,r=!r,i+=2;continue}r||("*"===e[i]?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t})(e)%2==1?(t=nk(e),n=ny(e),t%2==0&&n%2==0)?e:`${e}***`:e},priority:30},optionKey:"boldItalic"},{handler:{name:"bold",handle:e=>{let t=e.match(t4);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return t1(e,r)||t3(e,r)||((e,t,n)=>{if(!t||nn.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
|
|
12
|
+
`),i=e.substring(-1===r?0:r+1,n);return!!(nr.test(i)&&t.includes(`
|
|
13
|
+
`))||nm(e,n,"*")})(e,n,r)?e:nk(e)%2==1?n.endsWith("*")?`${e}*`:`${e}**`:e},priority:35},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:e=>{let t=e.match(t9);if(!t){let t=e.match(no);if(t){let n=e.lastIndexOf(t[1]);if(!(t1(e,n)||t3(e,n))&&n_(e)%2==1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return t1(e,r)||t3(e,r)||((e,t,n)=>{if(!t||nn.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
|
|
14
|
+
`),i=e.substring(-1===r?0:r+1,n);return!!(nr.test(i)&&t.includes(`
|
|
15
|
+
`))||nm(e,n,"_")})(e,n,r)?e:n_(e)%2==1?`${e}__`:e},priority:40},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:e=>{if(!e.match(t8))return e;let t=(e=>{let t=!1;for(let n=0;n<e.length;n+=1){if("`"===e[n]&&n+2<e.length&&"`"===e[n+1]&&"`"===e[n+2]){t=!t,n+=2;continue}if(!t&&"*"===e[n]&&"*"!==e[n-1]&&"*"!==e[n+1]&&"\\"!==e[n-1]&&!np(e,n)){let t=n>0?e[n-1]:"",r=n<e.length-1?e[n+1]:"";if((!t||" "===t||" "===t||t===`
|
|
16
|
+
`)&&(!r||" "===r||" "===r||r===`
|
|
17
|
+
`)||t&&r&&nu(t)&&nu(r))continue;return n}}return -1})(e);if(-1===t||t1(e,t)||t3(e,t))return e;let n=e.substring(t+1);return!n||nn.test(n)?e:ny(e)%2==1?`${e}*`:e},priority:41},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:e=>{if(!e.match(t7))return e;let t=nx(e);if(-1===t)return e;let n=e.substring(t+1);if(!n||nn.test(n)||t1(e,t)||t3(e,t))return e;if((e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if("`"===e[i]&&i+2<r&&"`"===e[i+1]&&"`"===e[i+2]){n=!n,i+=2;continue}if(n||"_"!==e[i])continue;let a=i>0?e[i-1]:"",s=i<r-1?e[i+1]:"";nb(e,i,a,s)||(t+=1)}return t})(e)%2==1){let t=(e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(nk(t)%2!=1)return null;let n=t.indexOf("**"),r=nx(t);return -1!==n&&-1!==r&&n<r?`${t}_**`:null})(e);return null!==t?t:(e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
18
|
+
`;)t-=1;if(t<e.length){let n=e.slice(0,t),r=e.slice(t);return`${n}_${r}`}return`${e}_`})(e)}return e},priority:42},optionKey:"italic"},{handler:{name:"inlineCode",handle:e=>{let t=!e.match(na)||e.includes(`
|
|
19
|
+
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e;if(null!==t)return t;let n=e.match(ne);if(n&&(e.match(/```/g)||[]).length%2!=1){let t=n[2];if(!t||nn.test(t))return e;if((e=>{let t=0;for(let n=0;n<e.length;n+=1){if("\\"===e[n]&&n+1<e.length&&"`"===e[n+1]){n+=1;continue}"`"!==e[n]||t2(e,n)||(t+=1)}return t})(e)%2==1)return`${e}\``}return e},priority:50},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:e=>{var t,n;let r=e.match(nt);if(r){let n=r[2];if(!n||nn.test(n))return e;let i=e.lastIndexOf(r[1]);if(t1(e,i)||t3(e,i))return e;if((null==(t=e.match(nc))?void 0:t.length)%2==1)return`${e}~~`}else{let t=e.match(nl);if(t){let r=e.lastIndexOf(t[0].slice(0,2));if(t1(e,r)||t3(e,r))return e;if((null==(n=e.match(nc))?void 0:n.length)%2==1)return`${e}~`}}return e},priority:60},optionKey:"strikethrough"},{handler:{name:"katex",handle:e=>(e=>{let t=0,n=!1;for(let r=0;r<e.length-1;r+=1)"`"!==e[r]||nT(e,r)||(n=!n),n||"$"!==e[r]||"$"!==e[r+1]||(t+=1,r+=1);return t})(e)%2==0?e:(e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return -1===t||-1===e.indexOf(`
|
|
20
|
+
`,t)||e.endsWith(`
|
|
21
|
+
`)?`${e}$$`:`${e}
|
|
22
|
+
$$`})(e),priority:70},optionKey:"katex"},{handler:{name:"inlineKatex",handle:e=>(e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if("\\"===e[r]){r+=1;continue}if("`"===e[r]&&!nT(e,r)){n=!n;continue}n||"$"!==e[r]||(r+1<e.length&&"$"===e[r+1]?r+=1:t+=1)}return t})(e)%2==1?`${e}$`:e,priority:75},optionKey:"inlineKatex"}];function nO(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}let nM=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),nL=[],nR=(e,t,n)=>{if(0==e.length-t)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=nR(e,t+1,i);if(n)return n}let a=n.validators;if(null===a)return;let s=0===t?e.join("-"):e.slice(t).join("-"),o=a.length;for(let e=0;e<o;e++){let t=a[e];if(t.validator(s))return t.classGroupId}},nP=(e,t)=>{let n=nM();for(let r in e)nF(e[r],n,r,t);return n},nF=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++)nB(e[a],t,n,r)},nB=(e,t,n,r)=>{"string"==typeof e?nH(e,t,n):"function"==typeof e?nU(e,t,n,r):nj(e,t,n,r)},nH=(e,t,n)=>{(""===e?t:n$(t,e)).classGroupId=n},nU=(e,t,n,r)=>{nz(e)?nF(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:n,validator:e}))},nj=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,s]=i[e];nF(s,n$(t,a),n,r)}},n$=(e,t)=>{let n=e,r=t.split("-"),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=nM(),n.nextPart.set(t,i)),n=i}return n},nz=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,nG=[],nK=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),nq=/\s+/,nY=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=nY(e[r]))&&(n&&(n+=" "),n+=t);return n},nW=[],nV=e=>{let t=t=>t[e]||nW;return t.isThemeGetter=!0,t},nX=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,nQ=/^\((?:(\w[\w-]*):)?(.+)\)$/i,nZ=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,nJ=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,n0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,n1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,n2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,n3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,n5=e=>nZ.test(e),n4=e=>!!e&&!Number.isNaN(Number(e)),n9=e=>!!e&&Number.isInteger(Number(e)),n6=e=>e.endsWith("%")&&n4(e.slice(0,-1)),n8=e=>nJ.test(e),n7=()=>!0,re=e=>n0.test(e)&&!n1.test(e),rt=()=>!1,rn=e=>n2.test(e),rr=e=>n3.test(e),ri=e=>!ro(e)&&!rm(e),ra=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),rs=e=>rT(e,rS,rt),ro=e=>nX.test(e),rl=e=>rT(e,rC,re),rc=e=>rT(e,rN,n4),ru=e=>rT(e,rD,n7),rh=e=>rT(e,rI,rt),rp=e=>rT(e,rv,rt),rd=e=>rT(e,rw,rr),rf=e=>rT(e,rO,rn),rm=e=>nQ.test(e),rg=e=>rA(e,rC),ry=e=>rA(e,rI),rb=e=>rA(e,rv),rk=e=>rA(e,rS),r_=e=>rA(e,rw),rx=e=>rA(e,rO,!0),rE=e=>rA(e,rD,!0),rT=(e,t,n)=>{let r=nX.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},rA=(e,t,n=!1)=>{let r=nQ.exec(e);return!!r&&(r[1]?t(r[1]):n)},rv=e=>"position"===e||"percentage"===e,rw=e=>"image"===e||"url"===e,rS=e=>"length"===e||"size"===e||"bg-size"===e,rC=e=>"length"===e,rN=e=>"number"===e,rI=e=>"family-name"===e,rD=e=>"number"===e||"weight"===e,rO=e=>"shadow"===e,rM=((e,...t)=>{let n,r,i,a,s=e=>{let t=r(e);if(t)return t;let a=((e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:s}=t,o=[],l=e.trim().split(nq),c="";for(let e=l.length-1;e>=0;e-=1){let t,u=l[e],{isExternal:h,modifiers:p,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:m}=n(u);if(h){c=u+(c.length>0?" "+c:c);continue}let g=!!m;if(g){let e=(t=r(f.substring(0,m)))&&s[t]?r(f):void 0;e&&e!==t&&(t=e,g=!1)}else t=r(f);if(!t){if(!g||!(t=r(f))){c=u+(c.length>0?" "+c:c);continue}g=!1}let y=0===p.length?"":1===p.length?p[0]:a(p).join(":"),b=d?y+"!":y,k=b+t;if(o.indexOf(k)>-1)continue;o.push(k);let _=i(t,g);for(let e=0;e<_.length;++e){let t=_[e];o.push(b+t)}c=u+(c.length>0?" "+c:c)}return c})(e,n);return i(e,a),a};return a=o=>{var l;let c;return r=(n={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,++t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(i(e,t),t):void 0},set(e,t){e in n?n[e]=t:i(e,t)}}})((l=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t,n=[],r=0,i=0,a=0,s=e.length;for(let o=0;o<s;o++){let s=e[o];if(0===r&&0===i){if(":"===s){n.push(e.slice(a,o)),a=o+1;continue}if("/"===s){t=o;continue}}"["===s?r++:"]"===s?r--:"("===s?i++:")"===s&&i--}let o=0===n.length?e:e.slice(a),l=o,c=!1;return o.endsWith("!")?(l=o.slice(0,-1),c=!0):o.startsWith("!")&&(l=o.slice(1),c=!0),nK(n,c,l,t&&t>a?t-a:void 0)};if(t){let e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):nK(nG,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r})(l),sortModifiers:(c=new Map,l.orderSensitiveModifiers.forEach((e,t)=>{c.set(e,1e6+t)}),e=>{let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r],a="["===i[0],s=c.has(i);a||s?(n.length>0&&(n.sort(),t.push(...n),n=[]),t.push(i)):n.push(i)}return n.length>0&&(n.sort(),t.push(...n)),t}),postfixLookupClassGroupIds:(e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t})(l),...(e=>{let t=(e=>{let{theme:t,classGroups:n}=e;return nP(n,t)})(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var n;let t,r,i;return -1===(n=e).slice(1,-1).indexOf(":")?void 0:(r=(t=n.slice(1,-1)).indexOf(":"),(i=t.slice(0,r))?"arbitrary.."+i:void 0)}let r=e.split("-"),i=+(""===r[0]&&r.length>1);return nR(r,i,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];if(t){if(i){let e=Array(i.length+t.length);for(let t=0;t<i.length;t++)e[t]=i[t];for(let n=0;n<t.length;n++)e[i.length+n]=t[n];return e}return t}return i||nL}return n[e]||nL}}})(l)}).cache.get,i=n.cache.set,a=s,s(o)},(...e)=>a(((...e)=>{let t,n,r=0,i="";for(;r<e.length;)(t=e[r++])&&(n=nY(t))&&(i&&(i+=" "),i+=n);return i})(...e))})(()=>{let e=nV("color"),t=nV("font"),n=nV("text"),r=nV("font-weight"),i=nV("tracking"),a=nV("leading"),s=nV("breakpoint"),o=nV("container"),l=nV("spacing"),c=nV("radius"),u=nV("shadow"),h=nV("inset-shadow"),p=nV("text-shadow"),d=nV("drop-shadow"),f=nV("blur"),m=nV("perspective"),g=nV("aspect"),y=nV("ease"),b=nV("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[..._(),rm,ro],E=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],A=()=>[rm,ro,l],v=()=>[n5,"full","auto",...A()],w=()=>[n9,"none","subgrid",rm,ro],S=()=>["auto",{span:["full",n9,rm,ro]},n9,rm,ro],C=()=>[n9,"auto",rm,ro],N=()=>["auto","min","max","fr",rm,ro],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...A()],M=()=>[n5,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],L=()=>[n5,"screen","full","dvw","lvw","svw","min","max","fit",...A()],R=()=>[n5,"screen","full","lh","dvh","lvh","svh","min","max","fit",...A()],P=()=>[e,rm,ro],F=()=>[..._(),rb,rp,{position:[rm,ro]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",rk,rs,{size:[rm,ro]}],U=()=>[n6,rg,rl],j=()=>["","none","full",c,rm,ro],$=()=>["",n4,rg,rl],z=()=>["solid","dashed","dotted","double"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[n4,n6,rb,rp],q=()=>["","none",f,rm,ro],Y=()=>["none",n4,rm,ro],W=()=>["none",n4,rm,ro],V=()=>[n4,rm,ro],X=()=>[n5,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[n8],breakpoint:[n8],color:[n7],container:[n8],"drop-shadow":[n8],ease:["in","out","in-out"],font:[ri],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[n8],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[n8],shadow:[n8],spacing:["px",n4],text:[n8],"text-shadow":[n8],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",n5,ro,rm,g]}],container:["container"],"container-type":[{"@container":["","normal","size",rm,ro]}],"container-named":[ra],columns:[{columns:[n4,ro,rm,o]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:v()}],"inset-x":[{"inset-x":v()}],"inset-y":[{"inset-y":v()}],start:[{"inset-s":v(),start:v()}],end:[{"inset-e":v(),end:v()}],"inset-bs":[{"inset-bs":v()}],"inset-be":[{"inset-be":v()}],top:[{top:v()}],right:[{right:v()}],bottom:[{bottom:v()}],left:[{left:v()}],visibility:["visible","invisible","collapse"],z:[{z:[n9,"auto",rm,ro]}],basis:[{basis:[n5,"full","auto",o,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[n4,n5,"auto","initial","none",ro]}],grow:[{grow:["",n4,rm,ro]}],shrink:[{shrink:["",n4,rm,ro]}],order:[{order:[n9,"first","last","none",rm,ro]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pbs:[{pbs:A()}],pbe:[{pbe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],"inline-size":[{inline:["auto",...L()]}],"min-inline-size":[{"min-inline":["auto",...L()]}],"max-inline-size":[{"max-inline":["none",...L()]}],"block-size":[{block:["auto",...R()]}],"min-block-size":[{"min-block":["auto",...R()]}],"max-block-size":[{"max-block":["none",...R()]}],w:[{w:[o,"screen",...M()]}],"min-w":[{"min-w":[o,"screen","none",...M()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",n,rg,rl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,rE,ru]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",n6,ro]}],"font-family":[{font:[ry,rh,t]}],"font-features":[{"font-features":[ro]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,rm,ro]}],"line-clamp":[{"line-clamp":[n4,"none",rm,rc]}],leading:[{leading:[a,...A()]}],"list-image":[{"list-image":["none",rm,ro]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",rm,ro]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:[n4,"from-font","auto",rm,rl]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[n4,"auto",rm,ro]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"tab-size":[{tab:[n9,rm,ro]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",rm,ro]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",rm,ro]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},n9,rm,ro],radial:["",rm,ro],conic:[n9,rm,ro]},r_,rd]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-bs":[{"border-bs":$()}],"border-w-be":[{"border-be":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...z(),"hidden","none"]}],"divide-style":[{divide:[...z(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[n4,rm,ro]}],"outline-w":[{outline:["",n4,rg,rl]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",u,rx,rf]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",h,rx,rf]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[n4,rl]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",p,rx,rf]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[n4,rm,ro]}],"mix-blend":[{"mix-blend":[...G(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":G()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[n4]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[rm,ro]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[n4]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",rm,ro]}],filter:[{filter:["","none",rm,ro]}],blur:[{blur:q()}],brightness:[{brightness:[n4,rm,ro]}],contrast:[{contrast:[n4,rm,ro]}],"drop-shadow":[{"drop-shadow":["","none",d,rx,rf]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",n4,rm,ro]}],"hue-rotate":[{"hue-rotate":[n4,rm,ro]}],invert:[{invert:["",n4,rm,ro]}],saturate:[{saturate:[n4,rm,ro]}],sepia:[{sepia:["",n4,rm,ro]}],"backdrop-filter":[{"backdrop-filter":["","none",rm,ro]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[n4,rm,ro]}],"backdrop-contrast":[{"backdrop-contrast":[n4,rm,ro]}],"backdrop-grayscale":[{"backdrop-grayscale":["",n4,rm,ro]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[n4,rm,ro]}],"backdrop-invert":[{"backdrop-invert":["",n4,rm,ro]}],"backdrop-opacity":[{"backdrop-opacity":[n4,rm,ro]}],"backdrop-saturate":[{"backdrop-saturate":[n4,rm,ro]}],"backdrop-sepia":[{"backdrop-sepia":["",n4,rm,ro]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",rm,ro]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[n4,"initial",rm,ro]}],ease:[{ease:["linear","initial",y,rm,ro]}],delay:[{delay:[n4,rm,ro]}],animate:[{animate:["none",b,rm,ro]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,rm,ro]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:Y()}],"rotate-x":[{"rotate-x":Y()}],"rotate-y":[{"rotate-y":Y()}],"rotate-z":[{"rotate-z":Y()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[rm,ro,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:X()}],"translate-x":[{"translate-x":X()}],"translate-y":[{"translate-y":X()}],"translate-z":[{"translate-z":X()}],"translate-none":["translate-none"],zoom:[{zoom:[n9,rm,ro]}],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",rm,ro]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mbs":[{"scroll-mbs":A()}],"scroll-mbe":[{"scroll-mbe":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pbs":[{"scroll-pbs":A()}],"scroll-pbe":[{"scroll-pbe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",rm,ro]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[n4,rg,rl,rc]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});var rL=n(95155),rR=n(47650),rP=n(78140),rF=n(99007),rB=n(82948),rH=n(54615),rU=n(96674);function rj(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var r$=rj(),rz={exec:()=>null};function rG(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(rq.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var rK=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),rq={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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},rY=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,rW=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,rV=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,rX=rG(rV).replace(/bull/g,rW).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(),rQ=rG(rV).replace(/bull/g,rW).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(),rZ=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,rJ=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,r0=rG(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",rJ).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),r1=rG(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,rW).getRegex(),r2="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",r3=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,r5=rG("^ {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[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",r3).replace("tag",r2).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),r4=rG(rZ).replace("hr",rY).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",r2).getRegex(),r9={blockquote:rG(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",r4).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:r0,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:rY,html:r5,lheading:rX,list:r1,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:r4,table:rz,text:/^[^\n]+/},r6=rG("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",rY).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",r2).getRegex(),r8={...r9,lheading:rQ,table:r6,paragraph:rG(rZ).replace("hr",rY).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",r6).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",r2).getRegex()},r7={...r9,html:rG("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",r3).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:rz,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:rG(rZ).replace("hr",rY).replace("heading",` *#{1,6} *[^
|
|
23
|
+
]`).replace("lheading",rX).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ie=/^( {2,}|\\)\n(?!\s*$)/,it=/[\p{P}\p{S}]/u,ir=/[\s\p{P}\p{S}]/u,ii=/[^\s\p{P}\p{S}]/u,ia=rG(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ir).getRegex(),is=/(?!~)[\p{P}\p{S}]/u,io=rG(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",rK?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),il=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,ic=rG(il,"u").replace(/punct/g,it).getRegex(),iu=rG(il,"u").replace(/punct/g,is).getRegex(),ih="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ip=rG(ih,"gu").replace(/notPunctSpace/g,ii).replace(/punctSpace/g,ir).replace(/punct/g,it).getRegex(),id=rG(ih,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,is).getRegex(),im=rG("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ii).replace(/punctSpace/g,ir).replace(/punct/g,it).getRegex(),ig=rG(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,it).getRegex(),iy=rG("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,ii).replace(/punctSpace/g,ir).replace(/punct/g,it).getRegex(),ib=rG(/\\(punct)/,"gu").replace(/punct/g,it).getRegex(),ik=rG(/^<(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(),i_=rG(r3).replace("(?:--\x3e|$)","--\x3e").getRegex(),ix=rG("^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",i_).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),iE=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,iT=rG(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",iE).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),iA=rG(/^!?\[(label)\]\[(ref)\]/).replace("label",iE).replace("ref",rJ).getRegex(),iv=rG(/^!?\[(ref)\](?:\[\])?/).replace("ref",rJ).getRegex(),iw=rG("reflink|nolink(?!\\()","g").replace("reflink",iA).replace("nolink",iv).getRegex(),iS=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,iC={_backpedal:rz,anyPunctuation:ib,autolink:ik,blockSkip:io,br:ie,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:rz,delLDelim:rz,delRDelim:rz,emStrongLDelim:ic,emStrongRDelimAst:ip,emStrongRDelimUnd:im,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:iT,nolink:iv,punctuation:ia,reflink:iA,reflinkSearch:iw,tag:ix,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:rz},iN={...iC,link:rG(/^!?\[(label)\]\((.*?)\)/).replace("label",iE).getRegex(),reflink:rG(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",iE).getRegex()},iI={...iC,emStrongRDelimAst:id,emStrongLDelim:iu,delLDelim:ig,delRDelim:iy,url:rG(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",iS).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\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:rG(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",iS).getRegex()},iD={...iI,br:rG(ie).replace("{2,}","*").getRegex(),text:rG(iI.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},iO={normal:r9,gfm:r8,pedantic:r7},iM={normal:iC,gfm:iI,breaks:iD,pedantic:iN},iL={"&":"&","<":"<",">":">",'"':""","'":"'"},iR=e=>iL[e];function iP(e,t){if(t){if(rq.escapeTest.test(e))return e.replace(rq.escapeReplace,iR)}else if(rq.escapeTestNoEncode.test(e))return e.replace(rq.escapeReplaceNoEncode,iR);return e}function iF(e){try{e=encodeURI(e).replace(rq.percentDecode,"%")}catch{return null}return e}function iB(e,t){let n=e.replace(rq.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(rq.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(rq.slashPipe,"|");return n}function iH(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n)if(a!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function iU(e,t,n,r,i){let a=t.href,s=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}var ij=class{options;rules;lexer;constructor(e){this.options=e||r$}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:iH(e,`
|
|
24
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(`
|
|
25
|
+
`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
26
|
+
`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=iH(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:iH(t[0],`
|
|
27
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=iH(t[0],`
|
|
28
|
+
`).split(`
|
|
29
|
+
`),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],s;for(s=0;s<e.length;s++)if(this.rules.other.blockquoteStart.test(e[s]))a.push(e[s]),t=!0;else if(t)break;else a.push(e[s]);e=e.slice(s);let o=a.join(`
|
|
30
|
+
`),l=o.replace(this.rules.other.blockquoteSetextReplace,`
|
|
31
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
32
|
+
${o}`:o,r=r?`${r}
|
|
33
|
+
${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let t=u.raw+`
|
|
34
|
+
`+e.join(`
|
|
35
|
+
`),a=this.blockquote(t);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-u.text.length)+a.text;break}if(u?.type==="list"){let t=u.raw+`
|
|
36
|
+
`+e.join(`
|
|
37
|
+
`),a=this.list(t);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-u.raw.length)+a.raw,e=t.substring(i.at(-1).raw.length).split(`
|
|
38
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[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 a=this.rules.other.listItemRegex(n),s=!1;for(;e;){let n=!1,r="",o="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=function(e,t=0){let n=t,r="";for(let t of e)if(" "===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}(t[2].split(`
|
|
39
|
+
`,1)[0],t[1].length),c=e.split(`
|
|
40
|
+
`,1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,o=l.trimStart()):u?h=t[1].length+1:(h=(h=l.search(this.rules.other.nonSpaceChar))>4?1:h,o=l.slice(h),h+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+`
|
|
41
|
+
`,e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),a=this.rules.other.headingBeginRegex(h),s=this.rules.other.htmlBeginRegex(h),p=this.rules.other.blockquoteBeginRegex(h);for(;e;){let d=e.split(`
|
|
42
|
+
`,1)[0],f;if(c=d,f=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||s.test(c)||p.test(c)||t.test(c)||n.test(c))break;if(f.search(this.rules.other.nonSpaceChar)>=h||!c.trim())o+=`
|
|
43
|
+
`+f.slice(h);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||n.test(l))break;o+=`
|
|
44
|
+
`+c}u=!c.trim(),r+=d+`
|
|
45
|
+
`,e=e.substring(d.length+1),l=f.slice(h)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0)),i.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(o),loose:!1,text:o,tokens:[]}),i.raw+=r}let o=i.items.at(-1);if(!o)return;for(let e of(o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),i.raw=i.raw.trimEnd(),i.items)){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),e.tokens[0]?.type==="text"||e.tokens[0]?.type==="paragraph"){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>"space"===e.type);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=iB(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
46
|
+
`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(iB(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
47
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=iH(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if("("===e[n])t++;else if(")"===e[n]&&--t<0)return n;return t>0?-2:-1}(t[2]);if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),iU(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return iU(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,s=n,o=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(a=[...i].length,r[3]||r[4]){s+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){o+=a;continue}if((s-=a)>0)continue;a=Math.min(a,a+s+o);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,s=n,o=this.rules.inline.delRDelim;for(o.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=o.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])||(a=[...i].length)!==n)continue;if(r[3]||r[4]){s+=a;continue}if((s-=a)>0)continue;a=Math.min(a,a+s);let t=[...r[0]][0].length,o=e.slice(0,n+r.index+t+a),l=o.slice(n,-n);return{type:"del",raw:o,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},i$=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||r$,this.options.tokenizer=this.options.tokenizer||new ij,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 t={other:rq,block:iO.normal,inline:iM.normal};this.options.pedantic?(t.block=iO.pedantic,t.inline=iM.pedantic):this.options.gfm&&(t.block=iO.gfm,this.options.breaks?t.inline=iM.breaks:t.inline=iM.gfm),this.tokenizer.rules=t}static get rules(){return{block:iO,inline:iM}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(rq.carriageReturn,`
|
|
48
|
+
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(rq.tabCharGlobal," ").replace(rq.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=`
|
|
49
|
+
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
|
|
50
|
+
`)?"":`
|
|
51
|
+
`)+r.raw,n.text+=`
|
|
52
|
+
`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
|
|
53
|
+
`)?"":`
|
|
54
|
+
`)+r.raw,n.text+=`
|
|
55
|
+
`+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},t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
|
|
56
|
+
`)?"":`
|
|
57
|
+
`)+r.raw,a.text+=`
|
|
58
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`
|
|
59
|
+
`)?"":`
|
|
60
|
+
`)+r.raw,n.text+=`
|
|
61
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n;this.tokenizer.lexer=this;let r=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!==(i=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!==(i=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!==(i=this.tokenizer.rules.inline.blockSkip.exec(r));)n=i[2]?i[2].length:0,r=r.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,s="";for(;e;){let n;if(a||(s=""),a=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,r,s))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e,r,s))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0;let r=t.at(-1);r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},iz=class{options;parser;constructor(e){this.options=e||r$}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(rq.notSpaceStart)?.[0],i=e.replace(rq.endingNewline,"")+`
|
|
62
|
+
`;return r?'<pre><code class="language-'+iP(r)+'">'+(n?i:iP(i,!0))+`</code></pre>
|
|
63
|
+
`:"<pre><code>"+(n?i:iP(i,!0))+`</code></pre>
|
|
64
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
65
|
+
${this.parser.parse(e)}</blockquote>
|
|
66
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
67
|
+
`}hr(e){return`<hr>
|
|
68
|
+
`}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+`>
|
|
69
|
+
`+r+"</"+i+`>
|
|
70
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
71
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
72
|
+
`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
73
|
+
<thead>
|
|
74
|
+
`+t+`</thead>
|
|
75
|
+
`+r+`</table>
|
|
76
|
+
`}tablerow({text:e}){return`<tr>
|
|
77
|
+
${e}</tr>
|
|
78
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
79
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${iP(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=iF(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+iP(t)+'"'),a+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=iF(e);if(null===i)return iP(n);e=i;let a=`<img src="${e}" alt="${iP(n)}"`;return t&&(a+=` title="${iP(t)}"`),a+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:iP(e.text)}},iG=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},iK=class e{options;renderer;textRenderer;constructor(e){this.options=e||r$,this.options.renderer=this.options.renderer||new iz,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new iG}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(r.type)){t+=e||"";continue}}switch(r.type){case"space":t+=this.renderer.space(r);break;case"hr":t+=this.renderer.hr(r);break;case"heading":t+=this.renderer.heading(r);break;case"code":t+=this.renderer.code(r);break;case"table":t+=this.renderer.table(r);break;case"blockquote":t+=this.renderer.blockquote(r);break;case"list":t+=this.renderer.list(r);break;case"checkbox":t+=this.renderer.checkbox(r);break;case"html":t+=this.renderer.html(r);break;case"def":t+=this.renderer.def(r);break;case"paragraph":t+=this.renderer.paragraph(r);break;case"text":t+=this.renderer.text(r);break;default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"checkbox":n+=t.checkbox(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},iq=class{options;block;constructor(e){this.options=e||r$}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?i$.lex:i$.lexInline}provideParser(e=this.block){return e?iK.parse:iK.parseInline}},iY=new class{defaults=rj();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=iK;Renderer=iz;TextRenderer=iG;Lexer=i$;Tokenizer=ij;Hooks=iq;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new iz(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ij(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new iq;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];iq.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&iq.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return i.call(t,n)})();let a=r.call(t,e);return i.call(t,a)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return i$.lex(e,t??this.defaults)}parser(e,t){return iK.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(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 t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await (i.hooks?await i.hooks.provideLexer(e):e?i$.lex:i$.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let s=await (i.hooks?await i.hooks.provideParser(e):e?iK.parse:iK.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(s):s})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?i$.lex:i$.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?iK.parse:iK.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
80
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+iP(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function iW(e,t){return iY.parse(e,t)}iW.options=iW.setOptions=function(e){return iY.setOptions(e),iW.defaults=iY.defaults,r$=iW.defaults,iW},iW.getDefaults=rj,iW.defaults=r$,iW.use=function(...e){return iY.use(...e),iW.defaults=iY.defaults,r$=iW.defaults,iW},iW.walkTokens=function(e,t){return iY.walkTokens(e,t)},iW.parseInline=iY.parseInline,iW.Parser=iK,iW.parser=iK.parse,iW.Renderer=iz,iW.TextRenderer=iG,iW.Lexer=i$,iW.lexer=i$.lex,iW.Tokenizer=ij,iW.Hooks=iq,iW.parse=iW,iW.options,iW.setOptions,iW.use,iW.walkTokens,iW.parseInline,iK.parse,i$.lex;var iV=/\s/,iX=/^\s+$/,iQ=new Set(["code","pre","svg","math","annotation"]),iZ=0;function iJ(e){var t,n,r,i,s;let o={animation:null!=(t=null==e?void 0:e.animation)?t:"fadeIn",duration:null!=(n=null==e?void 0:e.duration)?n:150,easing:null!=(r=null==e?void 0:e.easing)?r:"ease",sep:null!=(i=null==e?void 0:e.sep)?i:"word",stagger:null!=(s=null==e?void 0:e.stagger)?s:40},l={prevContentLength:0,lastRenderCharCount:0},c=iZ++,u=()=>e=>{let t={count:0,newIndex:0};(0,a.VG)(e,"text",(e,n)=>((e,t,n,r,i)=>{let s=t.at(-1);if(!(s&&"children"in s))return;if(t.some(e=>"object"==typeof e&&null!==e&&"type"in e&&"element"===e.type&&iQ.has(e.tagName)))return a._Z;let o=s.children.indexOf(e);if(-1===o)return;let l=e.value;if(!l.trim()){i.count+=l.length;return}let c="char"===n.sep?(e=>{let t=[],n="";for(let r of e)iV.test(r)?n+=r:(n&&(t.push(n),n=""),t.push(r));return n&&t.push(n),t})(l):(e=>{let t=[],n="",r=!1;for(let i of e){let e=iV.test(i);e!==r&&n&&(t.push(n),n=""),n+=i,r=e}return n&&t.push(n),t})(l),u=r.prevContentLength,h=c.map(e=>{var t,r,a;let s,o=i.count;if(i.count+=e.length,iX.test(e))return{type:"text",value:e};let l=u>0&&o<u,c=l?0:i.newIndex++*n.stagger;return t=n.animation,r=n.duration,a=n.easing,s=`--sd-animation:sd-${t};--sd-duration:${l?0:r}ms;--sd-easing:${a}`,c&&(s+=`;--sd-delay:${c}ms`),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:s},children:[{type:"text",value:e}]}});return s.children.splice(o,1,...h),o+h.length})(e,n,o,l,t)),l.lastRenderCharCount=t.count,l.prevContentLength=0};return Object.defineProperty(u,"name",{value:`rehypeAnimate$${c}`}),{name:"animate",type:"animate",rehypePlugin:u,setPrevContentLength(e){l.prevContentLength=e},getLastRenderCharCount(){let e=l.lastRenderCharCount;return l.lastRenderCharCount=0,e}}}iJ();var i0=(0,r.createContext)(!1),i1=(...e)=>rM(nO(e)),i2=(e,t,n)=>{let r="string"==typeof t&&n.startsWith("text/csv")?"\uFEFF":"",i="string"==typeof t?new Blob([r+t],{type:n}):t,a=URL.createObjectURL(i),s=document.createElement("a");s.href=a,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(a)},i3=(0,r.createContext)(i1),i5=()=>(0,r.useContext)(i3),i4=i1("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),i9=(0,r.memo)(({children:e,result:t,language:n,className:i,startLine:a,lineNumbers:s=!0,...o})=>{let l=i5(),c=(0,r.useMemo)(()=>l(i4),[l]),u=(0,r.useMemo)(()=>{let e={};return t.bg&&(e["--sdm-bg"]=t.bg),t.fg&&(e["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(e,(e=>{let t={};for(let n of e.split(";")){let e=n.indexOf(":");if(e>0){let r=n.slice(0,e).trim(),i=n.slice(e+1).trim();r&&i&&(t[r]=i)}}return t})(t.rootStyle)),e},[t.bg,t.fg,t.rootStyle]);return(0,rL.jsx)("div",{className:l(i,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":n,"data-streamdown":"code-block-body",...o,children:(0,rL.jsx)("pre",{className:l(i,"bg-[var(--sdm-bg,inherit]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),style:u,children:(0,rL.jsx)("code",{className:s?l("[counter-increment:line_0] [counter-reset:line]"):void 0,style:s&&a&&a>1?{counterReset:`line ${a-1}`}:void 0,children:t.tokens.map((e,t)=>(0,rL.jsx)("span",{className:s?c:void 0,children:0===e.length||1===e.length&&""===e[0].content?`
|
|
81
|
+
`:e.map((e,t)=>{let n={},r=!!e.bgColor;if(e.color&&(n["--sdm-c"]=e.color),e.bgColor&&(n["--sdm-tbg"]=e.bgColor),e.htmlStyle)for(let[t,i]of Object.entries(e.htmlStyle))"color"===t?n["--sdm-c"]=i:"background-color"===t?(n["--sdm-tbg"]=i,r=!0):n[t]=i;return(0,rL.jsx)("span",{className:l("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",r&&"bg-[var(--sdm-tbg)]",r&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:n,...e.htmlAttrs,children:e.content},t)})},t))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className&&e.startLine===t.startLine&&e.lineNumbers===t.lineNumbers),i6=({className:e,language:t,style:n,isIncomplete:r,...i})=>{let a=i5();return(0,rL.jsx)("div",{className:a("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":r||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...i})},i8=(0,r.createContext)({code:""}),i7=()=>(0,r.useContext)(i8),ae=({language:e})=>{let t=i5();return(0,rL.jsx)("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:(0,rL.jsx)("span",{className:t("ml-1 font-mono lowercase"),children:e})})},at=(0,r.lazy)(()=>n.e(1319).then(n.bind(n,1319)).then(e=>({default:e.HighlightedCodeBlockBody}))),an=({code:e,language:t,className:n,children:i,isIncomplete:a=!1,startLine:s,lineNumbers:o,...l})=>{let c=i5(),u=(0,r.useMemo)(()=>(e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
82
|
+
`;)t--;return e.slice(0,t)})(e),[e]),h=(0,r.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:u.split(`
|
|
83
|
+
`).map(e=>[{content:e,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[u]);return(0,rL.jsx)(i8.Provider,{value:{code:e},children:(0,rL.jsxs)(i6,{isIncomplete:a,language:t,children:[(0,rL.jsx)(ae,{language:t}),i?(0,rL.jsx)("div",{className:c("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,rL.jsx)("div",{className:c("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:i})}):null,(0,rL.jsx)(r.Suspense,{fallback:(0,rL.jsx)(i9,{className:n,language:t,lineNumbers:o,result:h,startLine:s,...l}),children:(0,rL.jsx)(at,{className:n,code:u,language:t,lineNumbers:o,raw:h,startLine:s,...l})})]})})},ar={CheckIcon:e=>(0,rL.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rL.jsx)("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),CopyIcon:e=>(0,rL.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rL.jsx)("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),DownloadIcon:e=>(0,rL.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rL.jsx)("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),ExternalLinkIcon:e=>(0,rL.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rL.jsx)("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),Loader2Icon:e=>(0,rL.jsxs)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[(0,rL.jsx)("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),(0,rL.jsx)("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,rL.jsx)("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),(0,rL.jsx)("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),(0,rL.jsx)("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),(0,rL.jsx)("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),(0,rL.jsx)("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),(0,rL.jsx)("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),(0,rL.jsx)("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),(0,rL.jsx)("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),Maximize2Icon:e=>(0,rL.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rL.jsx)("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),RotateCcwIcon:e=>(0,rL.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rL.jsx)("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),XIcon:e=>(0,rL.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rL.jsx)("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),ZoomInIcon:e=>(0,rL.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rL.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),ZoomOutIcon:e=>(0,rL.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rL.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})})},ai=(0,r.createContext)(ar),aa=({icons:e,children:t})=>{let n=(0,r.useRef)(e),i=(0,r.useRef)(e?{...ar,...e}:ar);((e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>e[n]===t[n])})(n.current,e)||(n.current=e,i.current=e?{...ar,...e}:ar);let a=i.current;return(0,rL.jsx)(ai.Provider,{value:a,children:t})},as=()=>(0,r.useContext)(ai),ao={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},al=(0,r.createContext)(ao),ac=()=>(0,r.useContext)(al),au=({onCopy:e,onError:t,timeout:n=2e3,children:i,className:a,code:s,...o})=>{let l=i5(),[c,u]=(0,r.useState)(!1),h=(0,r.useRef)(0),{code:p}=i7(),{isAnimating:d}=(0,r.useContext)(og),f=ac(),m=null!=s?s:p,g=async()=>{var r;if("u"<typeof window||!(null!=(r=null==navigator?void 0:navigator.clipboard)&&r.writeText)){null==t||t(Error("Clipboard API not available"));return}try{c||(await navigator.clipboard.writeText(m),u(!0),null==e||e(),h.current=window.setTimeout(()=>u(!1),n))}catch(e){null==t||t(e)}};(0,r.useEffect)(()=>()=>{window.clearTimeout(h.current)},[]);let y=as(),b=c?y.CheckIcon:y.CopyIcon;return(0,rL.jsx)("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-copy-button",disabled:d,onClick:g,title:f.copyCode,type:"button",...o,children:null!=i?i:(0,rL.jsx)(b,{size:14})})},ah={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},ap=({onDownload:e,onError:t,language:n,children:i,className:a,code:s,...o})=>{let l=i5(),{code:c}=i7(),{isAnimating:u}=(0,r.useContext)(og),h=ac(),p=as(),d=null!=s?s:c,f=`file.${n&&n in ah?ah[n]:"txt"}`;return(0,rL.jsx)("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-download-button",disabled:u,onClick:()=>{try{i2(f,d,"text/plain"),null==e||e()}catch(e){null==t||t(e)}},title:h.downloadFile,type:"button",...o,children:null!=i?i:(0,rL.jsx)(p.DownloadIcon,{size:14})})},ad=()=>{let{Loader2Icon:e}=as(),t=i5();return(0,rL.jsxs)("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[(0,rL.jsx)("div",{className:t("h-[46px] w-full bg-muted/80")}),(0,rL.jsx)("div",{className:t("flex w-full items-center justify-center p-4"),children:(0,rL.jsx)(e,{className:t("size-4 animate-spin")})})]})},af=/\.[^/.]+$/,am=0,ag=()=>{1===(am+=1)&&(document.body.style.overflow="hidden")},ay=()=>{0===(am=Math.max(0,am-1))&&(document.body.style.overflow="")},ab=({url:e,isOpen:t,onClose:n,onConfirm:i})=>{let{CheckIcon:a,CopyIcon:s,ExternalLinkIcon:o,XIcon:l}=as(),c=i5(),[u,h]=(0,r.useState)(!1),p=ac(),d=(0,r.useCallback)(async()=>{try{await navigator.clipboard.writeText(e),h(!0),setTimeout(()=>h(!1),2e3)}catch(e){}},[e]),f=(0,r.useCallback)(()=>{i(),n()},[i,n]);return(0,r.useEffect)(()=>{if(t){ag();let e=e=>{"Escape"===e.key&&n()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),ay()}}},[t,n]),t?(0,rL.jsx)("div",{className:c("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:n,onKeyDown:e=>{"Escape"===e.key&&n()},role:"button",tabIndex:0,children:(0,rL.jsxs)("div",{className:c("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:[(0,rL.jsx)("button",{className:c("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:n,title:p.close,type:"button",children:(0,rL.jsx)(l,{size:16})}),(0,rL.jsxs)("div",{className:c("flex flex-col gap-2"),children:[(0,rL.jsxs)("div",{className:c("flex items-center gap-2 font-semibold text-lg"),children:[(0,rL.jsx)(o,{size:20}),(0,rL.jsx)("span",{children:p.openExternalLink})]}),(0,rL.jsx)("p",{className:c("text-muted-foreground text-sm"),children:p.externalLinkWarning})]}),(0,rL.jsx)("div",{className:c("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),(0,rL.jsxs)("div",{className:c("flex gap-2"),children:[(0,rL.jsx)("button",{className:c("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:d,type:"button",children:u?(0,rL.jsxs)(rL.Fragment,{children:[(0,rL.jsx)(a,{size:14}),(0,rL.jsx)("span",{children:p.copied})]}):(0,rL.jsxs)(rL.Fragment,{children:[(0,rL.jsx)(s,{size:14}),(0,rL.jsx)("span",{children:p.copyLink})]})}),(0,rL.jsxs)("button",{className:c("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:f,type:"button",children:[(0,rL.jsx)(o,{size:14}),(0,rL.jsx)("span",{children:p.openLink})]})]})]})}):null},ak=(0,r.createContext)(null),a_=()=>(0,r.useContext)(ak),ax=()=>{var e;let t=a_();return null!=(e=null==t?void 0:t.code)?e:null},aE=()=>{var e;let t=a_();return null!=(e=null==t?void 0:t.mermaid)?e:null},aT=({chart:e,children:t,className:n,onDownload:i,config:a,onError:s})=>{let o=i5(),[l,c]=(0,r.useState)(!1),u=(0,r.useRef)(null),{isAnimating:h}=(0,r.useContext)(og),p=as(),d=aE(),f=ac(),m=async t=>{try{if("mmd"===t){i2("diagram.mmd",e,"text/plain"),c(!1),null==i||i(t);return}if(!d){null==s||s(Error("Mermaid plugin not available"));return}let r=d.getMermaid(a),o=e.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),l=`mermaid-${Math.abs(o)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:u}=await r.render(l,e);if(!u){null==s||s(Error("SVG not found. Please wait for the diagram to render."));return}if("svg"===t){i2("diagram.svg",u,"image/svg+xml"),c(!1),null==i||i(t);return}if("png"===t){var n;let e=await (n=u,new Promise((e,t)=>{let r="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n))),i=new Image;i.crossOrigin="anonymous",i.onload=()=>{let n=document.createElement("canvas"),r=5*i.width,a=5*i.height;n.width=r,n.height=a;let s=n.getContext("2d");s?(s.drawImage(i,0,0,r,a),n.toBlob(n=>{n?e(n):t(Error("Failed to create PNG blob"))},"image/png")):t(Error("Failed to create 2D canvas context for PNG export"))},i.onerror=()=>t(Error("Failed to load SVG image")),i.src=r}));i2("diagram.png",e,"image/png"),null==i||i(t),c(!1);return}}catch(e){null==s||s(e)}};return(0,r.useEffect)(()=>{let e=e=>{let t=e.composedPath();u.current&&!t.includes(u.current)&&c(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,rL.jsxs)("div",{className:o("relative"),ref:u,children:[(0,rL.jsx)("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:h,onClick:()=>c(!l),title:f.downloadDiagram,type:"button",children:null!=t?t:(0,rL.jsx)(p.DownloadIcon,{size:14})}),l?(0,rL.jsxs)("div",{className:o("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,rL.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("svg"),title:f.downloadDiagramAsSvg,type:"button",children:f.mermaidFormatSvg}),(0,rL.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("png"),title:f.downloadDiagramAsPng,type:"button",children:f.mermaidFormatPng}),(0,rL.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("mmd"),title:f.downloadDiagramAsMmd,type:"button",children:f.mermaidFormatMmd})]}):null]})},aA=({chart:e,config:t,onFullscreen:n,onExit:i,className:a,...s})=>{let{Maximize2Icon:o,XIcon:l}=as(),c=i5(),[u,h]=(0,r.useState)(!1),{isAnimating:p,controls:d}=(0,r.useContext)(og),f=ac(),m=(()=>{if("boolean"==typeof d)return d;let e=d.mermaid;return!1!==e&&(!0===e||void 0===e||!1!==e.panZoom)})(),g=()=>{h(!u)};return(0,r.useEffect)(()=>{if(u){ag();let e=e=>{"Escape"===e.key&&h(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),ay()}}},[u]),(0,r.useEffect)(()=>{u?null==n||n():i&&i()},[u,n,i]),(0,rL.jsxs)(rL.Fragment,{children:[(0,rL.jsx)("button",{className:c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:p,onClick:g,title:f.viewFullscreen,type:"button",...s,children:(0,rL.jsx)(o,{size:14})}),u?(0,rR.createPortal)((0,rL.jsxs)("div",{className:c("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),onClick:g,onKeyDown:e=>{"Escape"===e.key&&g()},role:"button",tabIndex:0,children:[(0,rL.jsx)("button",{className:c("absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:g,title:f.exitFullscreen,type:"button",children:(0,rL.jsx)(l,{size:20})}),(0,rL.jsx)("div",{className:c("flex size-full items-center justify-center p-4"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:(0,rL.jsx)(o_,{chart:e,className:c("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:m})})]}),document.body):null]})},av=e=>{var t,n;let r=[],i=[];for(let n of e.querySelectorAll("thead th"))r.push((null==(t=n.textContent)?void 0:t.trim())||"");for(let t of e.querySelectorAll("tbody tr")){let e=[];for(let r of t.querySelectorAll("td"))e.push((null==(n=r.textContent)?void 0:n.trim())||"");i.push(e)}return{headers:r,rows:i}},aw=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1,n=!1;for(let r of e){if('"'===r){t=!0,n=!0;break}(","===r||r===`
|
|
84
|
+
`)&&(t=!0)}return t?n?`"${e.replace(/"/g,'""')}"`:`"${e}"`:e},i=Array(t.length>0?n.length+1:n.length),a=0;for(let e of(t.length>0&&(i[a]=t.map(r).join(","),a+=1),n))i[a]=e.map(r).join(","),a+=1;return i.join(`
|
|
85
|
+
`)},aS=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1;for(let n of e)if(" "===n||n===`
|
|
86
|
+
`||"\r"===n){t=!0;break}if(!t)return e;let n=[];for(let t of e)" "===t?n.push("\\t"):t===`
|
|
87
|
+
`?n.push("\\n"):"\r"===t?n.push("\\r"):n.push(t);return n.join("")},i=Array(t.length>0?n.length+1:n.length),a=0;for(let e of(t.length>0&&(i[a]=t.map(r).join(" "),a+=1),n))i[a]=e.map(r).join(" "),a+=1;return i.join(`
|
|
88
|
+
`)},aC=e=>{let t=!1;for(let n of e)if("\\"===n||"|"===n){t=!0;break}if(!t)return e;let n=[];for(let t of e)"\\"===t?n.push("\\\\"):"|"===t?n.push("\\|"):n.push(t);return n.join("")},aN=e=>{let{headers:t,rows:n}=e;if(0===t.length)return"";let r=Array(n.length+2),i=0,a=t.map(e=>aC(e));r[i]=`| ${a.join(" | ")} |`,i+=1;let s=Array(t.length);for(let e=0;e<t.length;e+=1)s[e]="---";for(let e of(r[i]=`| ${s.join(" | ")} |`,i+=1,n))if(e.length<t.length){let n=Array(t.length);for(let r=0;r<t.length;r+=1)n[r]=r<e.length?aC(e[r]):"";r[i]=`| ${n.join(" | ")} |`,i+=1}else{let t=e.map(e=>aC(e));r[i]=`| ${t.join(" | ")} |`,i+=1}return r.join(`
|
|
89
|
+
`)},aI=({children:e,className:t,onCopy:n,onError:i,timeout:a=2e3})=>{let s=i5(),[o,l]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),h=(0,r.useRef)(null),p=(0,r.useRef)(0),{isAnimating:d}=(0,r.useContext)(og),f=ac(),m=async e=>{var t,r;if("u"<typeof window||!(null!=(t=null==navigator?void 0:navigator.clipboard)&&t.write)){null==i||i(Error("Clipboard API not available"));return}try{let t=null==(r=h.current)?void 0:r.closest('[data-streamdown="table-wrapper"]'),s=null==t?void 0:t.querySelector("table");if(!s){null==i||i(Error("Table not found"));return}let o=av(s),c=(({csv:aw,tsv:aS,md:aN})[e]||aN)(o),d=new ClipboardItem({"text/plain":new Blob([c],{type:"text/plain"}),"text/html":new Blob([s.outerHTML],{type:"text/html"})});await navigator.clipboard.write([d]),u(!0),l(!1),null==n||n(e),p.current=window.setTimeout(()=>u(!1),a)}catch(e){null==i||i(e)}};(0,r.useEffect)(()=>{let e=e=>{let t=e.composedPath();h.current&&!t.includes(h.current)&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e),window.clearTimeout(p.current)}},[]);let g=as(),y=c?g.CheckIcon:g.CopyIcon;return(0,rL.jsxs)("div",{className:s("relative"),ref:h,children:[(0,rL.jsx)("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:()=>l(!o),title:f.copyTable,type:"button",children:null!=e?e:(0,rL.jsx)(y,{height:14,width:14})}),o?(0,rL.jsxs)("div",{className:s("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,rL.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("md"),title:f.copyTableAsMarkdown,type:"button",children:f.tableFormatMarkdown}),(0,rL.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("csv"),title:f.copyTableAsCsv,type:"button",children:f.tableFormatCsv}),(0,rL.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("tsv"),title:f.copyTableAsTsv,type:"button",children:f.tableFormatTsv})]}):null]})},aD=({children:e,className:t,onDownload:n,onError:i})=>{let a=i5(),[s,o]=(0,r.useState)(!1),l=(0,r.useRef)(null),{isAnimating:c}=(0,r.useContext)(og),u=ac(),h=as(),p=e=>{var t;try{let r=null==(t=l.current)?void 0:t.closest('[data-streamdown="table-wrapper"]'),a=null==r?void 0:r.querySelector("table");if(!a){null==i||i(Error("Table not found"));return}let s=av(a),c="csv"===e?aw(s):aN(s);i2(`table.${"csv"===e?"csv":"md"}`,c,"csv"===e?"text/csv":"text/markdown"),o(!1),null==n||n(e)}catch(e){null==i||i(e)}};return(0,r.useEffect)(()=>{let e=e=>{let t=e.composedPath();l.current&&!t.includes(l.current)&&o(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,rL.jsxs)("div",{className:a("relative"),ref:l,children:[(0,rL.jsx)("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:c,onClick:()=>o(!s),title:u.downloadTable,type:"button",children:null!=e?e:(0,rL.jsx)(h.DownloadIcon,{size:14})}),s?(0,rL.jsxs)("div",{className:a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,rL.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("csv"),title:u.downloadTableAsCsv,type:"button",children:u.tableFormatCsv}),(0,rL.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("markdown"),title:u.downloadTableAsMarkdown,type:"button",children:u.tableFormatMarkdown})]}):null]})},aO=({children:e,className:t,showCopy:n=!0,showDownload:i=!0})=>{let{Maximize2Icon:a,XIcon:s}=as(),o=i5(),[l,c]=(0,r.useState)(!1),{isAnimating:u}=(0,r.useContext)(og),h=ac(),p=()=>{c(!1)};return(0,r.useEffect)(()=>{if(l){ag();let e=e=>{"Escape"===e.key&&c(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),ay()}}},[l]),(0,rL.jsxs)(rL.Fragment,{children:[(0,rL.jsx)("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:()=>{c(!0)},title:h.viewFullscreen,type:"button",children:(0,rL.jsx)(a,{size:14})}),l?(0,rR.createPortal)((0,rL.jsx)("div",{"aria-label":h.viewFullscreen,"aria-modal":"true",className:o("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:p,onKeyDown:e=>{"Escape"===e.key&&p()},role:"dialog",children:(0,rL.jsxs)("div",{className:o("flex h-full flex-col"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:[(0,rL.jsxs)("div",{className:o("flex items-center justify-end gap-1 p-4"),children:[n?(0,rL.jsx)(aI,{}):null,i?(0,rL.jsx)(aD,{}):null,(0,rL.jsx)("button",{className:o("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:p,title:h.exitFullscreen,type:"button",children:(0,rL.jsx)(s,{size:20})})]}),(0,rL.jsx)("div",{className:o("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:(0,rL.jsx)("table",{className:o("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},aM=({children:e,className:t,showControls:n,showCopy:r=!0,showDownload:i=!0,showFullscreen:a=!0,...s})=>{let o=i5(),l=n&&r,c=n&&i,u=n&&a,h=l||c||u;return(0,rL.jsxs)("div",{className:o("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[h?(0,rL.jsxs)("div",{className:o("flex items-center justify-end gap-1"),children:[l?(0,rL.jsx)(aI,{}):null,c?(0,rL.jsx)(aD,{}):null,u?(0,rL.jsx)(aO,{showCopy:l,showDownload:c,children:e}):null]}):null,(0,rL.jsx)("div",{className:o("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),children:(0,rL.jsx)("table",{className:o("w-full divide-y divide-border",t),"data-streamdown":"table",...s,children:e})})]})},aL=/startLine=(\d+)/,aR=/\bnoLineNumbers\b/,aP=(0,r.lazy)(()=>n.e(7656).then(n.bind(n,57656)).then(e=>({default:e.Mermaid}))),aF=/language-([^\s]+)/;function aB(e,t){if(!(null!=e&&e.position||null!=t&&t.position))return!0;if(!(null!=e&&e.position&&null!=t&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return(null==n?void 0:n.line)===(null==r?void 0:r.line)&&(null==n?void 0:n.column)===(null==r?void 0:r.column)&&(null==i?void 0:i.line)===(null==a?void 0:a.line)&&(null==i?void 0:i.column)===(null==a?void 0:a.column)}function aH(e,t){return e.className===t.className&&aB(e.node,t.node)}var aU=(e,t)=>"boolean"==typeof e?e:!1!==e[t],aj=(e,t)=>{if("boolean"==typeof e)return e;let n=e.table;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},a$=(e,t)=>{if("boolean"==typeof e)return e;let n=e.code;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},az=(e,t)=>{if("boolean"==typeof e)return e;let n=e.mermaid;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},aG=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("ol",{className:i("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e})},(e,t)=>aH(e,t));aG.displayName="MarkdownOl";var aK=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("li",{className:i("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e})},(e,t)=>e.className===t.className&&aB(e.node,t.node));aK.displayName="MarkdownLi";var aq=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("ul",{className:i("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e})},(e,t)=>aH(e,t));aq.displayName="MarkdownUl";var aY=(0,r.memo)(({className:e,node:t,...n})=>{let r=i5();return(0,rL.jsx)("hr",{className:r("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>aH(e,t));aY.displayName="MarkdownHr";var aW=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("span",{className:i("font-semibold",t),"data-streamdown":"strong",...r,children:e})},(e,t)=>aH(e,t));aW.displayName="MarkdownStrong";var aV=(0,r.memo)(({children:e,className:t,href:n,node:i,...a})=>{let s=i5(),{linkSafety:o}=(0,r.useContext)(og),[l,c]=(0,r.useState)(!1),u="streamdown:incomplete-link"===n,h=(0,r.useCallback)(async e=>{if(!(!(null!=o&&o.enabled&&n)||u)){if(e.preventDefault(),o.onLinkCheck&&await o.onLinkCheck(n))return void window.open(n,"_blank","noreferrer");c(!0)}},[o,n,u]),p=(0,r.useCallback)(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),d={url:null!=n?n:"",isOpen:l,onClose:(0,r.useCallback)(()=>{c(!1)},[]),onConfirm:p};return null!=o&&o.enabled&&n?(0,rL.jsxs)(rL.Fragment,{children:[(0,rL.jsx)("button",{className:s("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",onClick:h,type:"button",children:e}),o.renderModal?o.renderModal(d):(0,rL.jsx)(ab,{...d})]}):(0,rL.jsx)("a",{className:s("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...a,children:e})},(e,t)=>aH(e,t)&&e.href===t.href);aV.displayName="MarkdownA";var aX=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("h1",{className:i("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e})},(e,t)=>aH(e,t));aX.displayName="MarkdownH1";var aQ=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("h2",{className:i("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e})},(e,t)=>aH(e,t));aQ.displayName="MarkdownH2";var aZ=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("h3",{className:i("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e})},(e,t)=>aH(e,t));aZ.displayName="MarkdownH3";var aJ=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("h4",{className:i("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e})},(e,t)=>aH(e,t));aJ.displayName="MarkdownH4";var a0=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("h5",{className:i("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e})},(e,t)=>aH(e,t));a0.displayName="MarkdownH5";var a1=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("h6",{className:i("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e})},(e,t)=>aH(e,t));a1.displayName="MarkdownH6";var a2=(0,r.memo)(({children:e,className:t,node:n,...i})=>{let{controls:a}=(0,r.useContext)(og),s=aU(a,"table"),o=aj(a,"copy"),l=aj(a,"download"),c=aj(a,"fullscreen");return(0,rL.jsx)(aM,{className:t,showControls:s,showCopy:o,showDownload:l,showFullscreen:c,...i,children:e})},(e,t)=>aH(e,t));a2.displayName="MarkdownTable";var a3=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("thead",{className:i("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e})},(e,t)=>aH(e,t));a3.displayName="MarkdownThead";var a5=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("tbody",{className:i("divide-y divide-border",t),"data-streamdown":"table-body",...r,children:e})},(e,t)=>aH(e,t));a5.displayName="MarkdownTbody";var a4=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("tr",{className:i("border-border",t),"data-streamdown":"table-row",...r,children:e})},(e,t)=>aH(e,t));a4.displayName="MarkdownTr";var a9=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("th",{className:i("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e})},(e,t)=>aH(e,t));a9.displayName="MarkdownTh";var a6=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("td",{className:i("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e})},(e,t)=>aH(e,t));a6.displayName="MarkdownTd";var a8=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("blockquote",{className:i("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e})},(e,t)=>aH(e,t));a8.displayName="MarkdownBlockquote";var a7=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("sup",{className:i("text-sm",t),"data-streamdown":"superscript",...r,children:e})},(e,t)=>aH(e,t));a7.displayName="MarkdownSup";var se=(0,r.memo)(({children:e,className:t,node:n,...r})=>{let i=i5();return(0,rL.jsx)("sub",{className:i("text-sm",t),"data-streamdown":"subscript",...r,children:e})},(e,t)=>aH(e,t));se.displayName="MarkdownSub";var st=(0,r.memo)(({children:e,className:t,node:n,...i})=>{if("data-footnotes"in i){let n=Array.isArray(e)?e.map(e=>{if(!(0,r.isValidElement)(e))return e;if(e.type===aG){let t=(Array.isArray(e.props.children)?e.props.children:[e.props.children]).filter(e=>!(e=>{var t,n;if(!(0,r.isValidElement)(e))return!1;let i=Array.isArray(e.props.children)?e.props.children:[e.props.children],a=!1,s=!1;for(let e of i)if(e){if("string"==typeof e)""!==e.trim()&&(a=!0);else if((0,r.isValidElement)(e)){if((null==(t=e.props)?void 0:t["data-footnote-backref"])!==void 0)s=!0;else for(let t of Array.isArray(e.props.children)?e.props.children:[e.props.children])if("string"==typeof t&&""!==t.trim()||(0,r.isValidElement)(t)&&(null==(n=t.props)?void 0:n["data-footnote-backref"])===void 0){a=!0;break}}}return s&&!a})(e));return 0===t.length?null:{...e,props:{...e.props,children:t}}}return e}):e;return(Array.isArray(n)?n.some(e=>null!==e):null!==n)?(0,rL.jsx)("section",{className:t,...i,children:n}):null}return(0,rL.jsx)("section",{className:t,...i,children:e})},(e,t)=>aH(e,t));st.displayName="MarkdownSection";var sn=(0,r.memo)(({node:e,className:t,children:n,...i})=>{var a,s,o;let l,c=i5(),u=!("data-block"in i),{mermaid:h,controls:p,lineNumbers:d}=(0,r.useContext)(og),f=aE(),m=(0,r.useContext)(i0),g=null==t?void 0:t.match(aF),y=null!=(a=null==g?void 0:g.at(1))?a:"",b=null!=(l=a_())&&l.renderers&&y&&null!=(o=l.renderers.find(e=>Array.isArray(e.language)?e.language.includes(y):e.language===y))?o:null;if(u)return(0,rL.jsx)("code",{className:c("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...i,children:n});let k=null==(s=null==e?void 0:e.properties)?void 0:s.metastring,_=null==k?void 0:k.match(aL),x=_?Number.parseInt(_[1],10):void 0,E=!(k&&aR.test(k))&&!1!==d,T="";if((0,r.isValidElement)(n)&&n.props&&"object"==typeof n.props&&"children"in n.props&&"string"==typeof n.props.children?T=n.props.children:"string"==typeof n&&(T=n),b){let e=b.component;return(0,rL.jsx)(r.Suspense,{fallback:(0,rL.jsx)(ad,{}),children:(0,rL.jsx)(e,{code:T,isIncomplete:m,language:y,meta:k})})}if("mermaid"===y&&f){let e=aU(p,"mermaid"),n=az(p,"download"),i=az(p,"copy"),a=az(p,"fullscreen"),s=az(p,"panZoom");return(0,rL.jsx)(r.Suspense,{fallback:(0,rL.jsx)(ad,{}),children:(0,rL.jsxs)("div",{className:c("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[(0,rL.jsx)("div",{className:c("flex h-8 items-center text-muted-foreground text-xs"),children:(0,rL.jsx)("span",{className:c("ml-1 font-mono lowercase"),children:"mermaid"})}),e&&(n||i||a)?(0,rL.jsx)("div",{className:c("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,rL.jsxs)("div",{className:c("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[n?(0,rL.jsx)(aT,{chart:T,config:null==h?void 0:h.config}):null,i?(0,rL.jsx)(au,{code:T}):null,a?(0,rL.jsx)(aA,{chart:T,config:null==h?void 0:h.config}):null]})}):null,(0,rL.jsx)("div",{className:c("rounded-md border border-border bg-background"),children:(0,rL.jsx)(aP,{chart:T,config:null==h?void 0:h.config,showControls:s})})]})})}let A=aU(p,"code"),v=a$(p,"download"),w=a$(p,"copy");return(0,rL.jsx)(an,{className:t,code:T,isIncomplete:m,language:y,lineNumbers:E,startLine:void 0!==x&&x>=1?x:void 0,children:A?(0,rL.jsxs)(rL.Fragment,{children:[v?(0,rL.jsx)(ap,{code:T,language:y}):null,w?(0,rL.jsx)(au,{}):null]}):null})},(e,t)=>e.className===t.className&&aB(e.node,t.node));sn.displayName="MarkdownCode";var sr=(0,r.memo)(({node:e,className:t,src:n,alt:i,onLoad:a,onError:s,...o})=>{let{DownloadIcon:l}=as(),c=i5(),u=(0,r.useRef)(null),[h,p]=(0,r.useState)(!1),[d,f]=(0,r.useState)(!1),m=ac(),g=null!=o.width||null!=o.height,y=(h||g)&&!d,b=d&&!g;(0,r.useEffect)(()=>{let e=u.current;if(null!=e&&e.complete){let t=e.naturalWidth>0;p(t),f(!t)}},[]);let k=(0,r.useCallback)(e=>{p(!0),f(!1),null==a||a(e)},[a]),_=(0,r.useCallback)(e=>{p(!1),f(!0),null==s||s(e)},[s]),x=async()=>{if(n)try{let e=await (await fetch(n)).blob(),t=new URL(n,window.location.origin).pathname.split("/").pop()||"",r=t.split(".").pop(),a=t.includes(".")&&void 0!==r&&r.length<=4,s="";if(a)s=t;else{let n=e.type,r="png";n.includes("jpeg")||n.includes("jpg")?r="jpg":n.includes("png")?r="png":n.includes("svg")?r="svg":n.includes("gif")?r="gif":n.includes("webp")&&(r="webp"),s=`${(i||t||"image").replace(af,"")}.${r}`}i2(s,e,e.type)}catch(e){window.open(n,"_blank")}};return n?(0,rL.jsxs)("div",{className:c("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[(0,rL.jsx)("img",{alt:i,className:c("max-w-full rounded-lg",b&&"hidden",t),"data-streamdown":"image",onError:_,onLoad:k,ref:u,src:n,...o}),b&&(0,rL.jsx)("span",{className:c("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:m.imageNotAvailable}),(0,rL.jsx)("div",{className:c("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block")}),y&&(0,rL.jsx)("button",{className:c("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:x,title:m.downloadImage,type:"button",children:(0,rL.jsx)(l,{size:14})})]}):null},(e,t)=>e.className===t.className&&aB(e.node,t.node));sr.displayName="MarkdownImg";var si=(0,r.memo)(({children:e,node:t,...n})=>{let i=(Array.isArray(e)?e:[e]).filter(e=>null!=e&&""!==e);if(1===i.length&&(0,r.isValidElement)(i[0])){let t=i[0].props.node,n=null==t?void 0:t.tagName;if("img"===n||"code"===n&&"data-block"in i[0].props)return(0,rL.jsx)(rL.Fragment,{children:e})}return(0,rL.jsx)("p",{...n,children:e})},(e,t)=>aH(e,t));si.displayName="MarkdownParagraph";var sa={ol:aG,li:aK,ul:aq,hr:aY,strong:aW,a:aV,h1:aX,h2:aQ,h3:aZ,h4:aJ,h5:a0,h6:a1,table:a2,thead:a3,tbody:a5,tr:a4,th:a9,td:a6,blockquote:a8,code:sn,img:sr,pre:({children:e})=>(0,r.isValidElement)(e)?(0,r.cloneElement)(e,{"data-block":"true"}):e,sup:a7,sub:se,p:si,section:st},ss=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,so=/\p{L}/u;function sl(e){for(let t of e.replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,"")){if(ss.test(t))return"rtl";if(so.test(t))break}return"ltr"}var sc,su,sh,sp,sd,sf,sm,sg,sy,sb,sk,s_,sx,sE,sT,sA,sv,sw,sS,sC,sN,sI,sD,sO,sM,sL,sR,sP,sF,sB,sH,sU,sj,s$,sz=/^[ \t]{0,3}(`{3,}|~{3,})/,sG=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,sK=e=>{let t=e.split(`
|
|
90
|
+
`),n=null,r=0;for(let e of t){let t=sz.exec(e);if(null===n){if(t){let e=t[1];n=e[0],r=e.length}}else if(t){let e=t[1],i=e[0],a=e.length;i===n&&a>=r&&(n=null,r=0)}}return null!==n},sq=()=>e=>{(0,i.YR)(e,"html",(e,t,n)=>{n&&"number"==typeof t&&(n.children[t]={type:"text",value:e.value})})},sY=[],sW={allowDangerousHtml:!0},sV=new WeakMap,sX=new class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let t="default";return this.keyCache.set(e,t),t}let a=e=>{if(!e||0===e.length)return"";let t="";for(let n=0;n<e.length;n+=1){let r=e[n];if(n>0&&(t+=","),Array.isArray(r)){let[e,n]=r;if("function"==typeof e){let n=sV.get(e);n||(n=e.name,sV.set(e,n)),t+=n}else t+=String(e);t+=":",t+=JSON.stringify(n)}else if("function"==typeof r){let e=sV.get(r);e||(e=r.name,sV.set(r,e)),t+=e}else t+=String(r)}return t},s=a(n),o=a(r),l=i?JSON.stringify(i):"",c=`${o}::${s}::${l}`;return this.keyCache.set(e,c),c}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(n,t)}clear(){this.cache.clear()}},sQ=e=>{let t=sZ(e),n=e.children||"";return s1(t.runSync(t.parse(n),n),e)},sZ=e=>{let t=sX.get(e);if(t)return t;let n=sJ(e);return sX.set(e,n),n},sJ=e=>{let t=e.rehypePlugins||sY,n=e.remarkPlugins||sY,r=t.some(e=>Array.isArray(e)?e[0]===tR:e===tR)?n:[...n,sq],i=e.remarkRehypeOptions?{...sW,...e.remarkRehypeOptions}:sW;return(0,rU.l)().use(rB.A).use(r).use(rH.A,i).use(t)},s0=e=>e,s1=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:a,skipHtml:s,unwrapDisallowed:o,urlTransform:l}=t;if(n||r||a||s||l){let t=l||s0;(0,i.YR)(e,(e,i,l)=>{var c;let u;return"raw"===e.type&&l&&"number"==typeof i?(c=e.value,s?l.children.splice(i,1):l.children[i]={type:"text",value:c},i):"element"===e.type&&(((e,t)=>{var n;for(let r in rF.$)if(Object.hasOwn(rF.$,r)&&Object.hasOwn(e.properties,r)){let i=e.properties[r],a=rF.$[r];(null===a||a.includes(e.tagName))&&(e.properties[r]=null!=(n=t(String(i||""),r,e))?n:void 0)}})(e,t),u=!1,r?u=!r.includes(e.tagName):a&&(u=a.includes(e.tagName)),!u&&n&&"number"==typeof i&&(u=!n(e,i,l)),u&&l&&"number"==typeof i)?(o&&e.children?l.children.splice(i,1,...e.children):l.children.splice(i,1),i):void 0})}return(0,rP.H)(e,{Fragment:rL.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:rL.jsx,jsxs:rL.jsxs,passKeys:!0,passNode:!0})},s2=/\[\^[\w-]{1,200}\](?!:)/,s3=/\[\^[\w-]{1,200}\]:/,s5=/<(\w+)[\s>]/,s4=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),s9=new Map,s6=new Map,s8=(e,t)=>{if(s4.has(t.toLowerCase()))return 0;let n=e.match((e=>{let t=e.toLowerCase(),n=s9.get(t);if(n)return n;let r=RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return s9.set(t,r),r})(t));if(!n)return 0;let r=0;for(let e of n)e.trimEnd().endsWith("/>")||(r+=1);return r},s7=(e,t)=>{let n=e.match((e=>{let t=e.toLowerCase(),n=s6.get(t);if(n)return n;let r=RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return s6.set(t,r),r})(t));return n?n.length:0},oe=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)"$"===e[n]&&"$"===e[n+1]&&(t+=1,n+=1);return t},ot=e=>{let t=s2.test(e),n=s3.test(e);if(t||n)return[e];let r=i$.lex(e,{gfm:!0}),i=[],a=[],s=!1;for(let e of r){let t=e.raw,n=i.length;if(a.length>0){i[n-1]+=t;let e=a.at(-1),r=s8(t,e),s=s7(t,e);for(let t=0;t<r;t+=1)a.push(e);for(let t=0;t<s;t+=1)a.length>0&&a.at(-1)===e&&a.pop();continue}if("html"===e.type&&e.block){let e=t.match(s5);if(e){let n=e[1];s8(t,n)>s7(t,n)&&a.push(n)}}if(n>0&&!s){let e=i[n-1];if(oe(e)%2==1){i[n-1]=e+t;continue}}i.push(t),"space"!==e.type&&(s="code"===e.type)}return i},on=/([\\`*_~[\]|])/g,or=e=>e.replace(on,"\\$1"),oi=e=>"text"===e.type?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(oi).join(""):"",oa=e=>t=>{if(!e||0===e.length)return;let n=new Set(e.map(e=>e.toLowerCase()));(0,i.YR)(t,"element",e=>{if(n.has(e.tagName.toLowerCase())){let t=oi(e);e.children=t?[{type:"text",value:t}]:[]}})},os=/^[ \t]*<[\w!/?-]/,oo=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,ol={...tF,protocols:{...tF.protocols,href:[...null!=(sU=null==(sH=tF.protocols)?void 0:sH.href)?sU:[],"tel"]},attributes:{...tF.attributes,code:[...null!=(s$=null==(sj=tF.attributes)?void 0:sj.code)?s$:[],"metastring"]}},oc={raw:tR,sanitize:[tK,ol],harden:[function({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:c=[],blockedImageClass:u="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:h="text-gray-500",linkBlockPolicy:f=s,imageBlockPolicy:m=s}){let g=t.length&&!t.every(e=>"*"===e),y=n.length&&!n.every(e=>"*"===e);if(!e&&(g||y))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return s=>{var g,y,b,k,_,x,E,T,A;let v,w=(g=e,y=t,b=n,k=r,_=c,x=u,E=h,T=f,A=m,v=(e,t,n)=>{if("element"!==e.type||e[d])return a.IN;if("a"===e.tagName){let r=p(e.properties.href,y,g,!1,!1,_);if(null!==r)return e.properties.href=r,e.properties.target="_blank",e.properties.rel="noopener noreferrer",a.IN;if(e[d]=!0,(0,i.YR)(e,v),n&&"number"==typeof t){let r=T===l?{type:"remove"}:T===o?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:E},children:[...e.children,{type:"text",value:" [blocked]"}]}};if("remove"===r.type)return n.children.splice(t,1),[a._Z,t];n.children[t]=r.element}return a._Z}if("img"===e.tagName){let r=p(e.properties.src,b,g,k,!0,_);if(null===r){if(e[d]=!0,(0,i.YR)(e,v),n&&"number"==typeof t){let r=function(e,t,n){if(t===l)return{type:"remove"};if(t===o){let t=String(e.properties.alt||"");return t?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:t}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}(e,A,x);if("remove"===r.type)return n.children.splice(t,1),[a._Z,t];n.children[t]=r.element}return a._Z}e.properties.src=r}return a.IN});(function e(t){if("children"in t&&Array.isArray(t.children))for(let n of(t.children=t.children.filter(e=>null!=e),t.children))e(n)})(s),(0,i.YR)(s,w)}},{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},ou={gfm:[tq.A,{}],codeMeta:()=>e=>{(0,i.YR)(e,"code",e=>{var t,n;e.meta&&(e.data=null!=(t=e.data)?t:{},e.data.hProperties={...null!=(n=e.data.hProperties)?n:{},metastring:e.meta})})}},oh=Object.values(oc),op=Object.values(ou),od={block:" ▋",circle:" ●"},of=["github-light","github-dark"],om={enabled:!0},og=(0,r.createContext)({shikiTheme:of,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:om}),oy=(0,r.memo)(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:r,isIncomplete:i,dir:a,animatePlugin:s,...o})=>{if(s){let e=s.getLastRenderCharCount();s.setPrevContentLength(e)}let l="string"==typeof e&&n&&"string"==typeof e&&0!==e.length&&os.test(e)?e.replace(oo,"$1"):e,c=(0,rL.jsx)(sQ,{...o,children:l});return(0,rL.jsx)(i0.Provider,{value:i,children:a?(0,rL.jsx)("div",{dir:a,style:{display:"contents"},children:c}):c})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(n=>{var r,i;return(null==(r=e.components)?void 0:r[n])!==(null==(i=t.components)?void 0:i[n])}))return!1}return e.rehypePlugins===t.rehypePlugins&&e.remarkPlugins===t.remarkPlugins});oy.displayName="Block";var ob=(0,r.memo)(({children:e,mode:t="streaming",dir:n,parseIncompleteMarkdown:i=!0,normalizeHtmlIndentation:a=!1,components:s,rehypePlugins:o=oh,remarkPlugins:l=op,className:c,shikiTheme:u=of,mermaid:h,controls:p=!0,isAnimating:d=!1,animated:f,BlockComponent:m=oy,parseMarkdownIntoBlocksFn:g=ot,caret:y,plugins:b,remend:k,linkSafety:_=om,lineNumbers:x=!0,allowedTags:E,literalTagContent:T,translations:A,icons:v,prefix:w,onAnimationStart:S,onAnimationEnd:C,...N})=>{let I=(0,r.useId)(),[D,O]=(0,r.useTransition)(),M=(0,r.useMemo)(()=>w?(...e)=>((e,t)=>{if(!e||!t)return t;let n=`${e}:`;return t.split(/\s+/).filter(Boolean).map(t=>t.startsWith(n)?t:`${e}:${t}`).join(" ")})(w,rM(nO(e))):i1,[w]),L=(0,r.useRef)(null),R=(0,r.useRef)(S),P=(0,r.useRef)(C);R.current=S,P.current=C,(0,r.useEffect)(()=>{var e,n,r;if("static"===t)return;let i=L.current;if(L.current=d,null===i){d&&(null==(e=R.current)||e.call(R));return}d&&!i?null==(n=R.current)||n.call(R):!d&&i&&(null==(r=P.current)||r.call(P))},[d,t]);let F=(0,r.useMemo)(()=>E?Object.keys(E):[],[E]),B=(0,r.useMemo)(()=>{if("string"!=typeof e)return"";let n="streaming"===t&&i?((e,t)=>{var n,r;let i;if(!e||"string"!=typeof e)return e;let a=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e;for(let{handler:e,earlyReturn:s}of[...(i=null!=(r=null==t?void 0:t.linkMode)?r:"protocol",nD.filter(({handler:e,optionKey:n})=>"links"===e.name?!1!==(null==t?void 0:t.links)||!1!==(null==t?void 0:t.images):"inlineKatex"===e.name?!0===(null==t?void 0:t.inlineKatex):!1!==(null==t?void 0:t[n])).map(({handler:e,earlyReturn:t})=>"links"===e.name?{handler:tW(t0({},e),tV({handle:e=>nv(e,i)})),earlyReturn:"protocol"===i?t:void 0}:{handler:e,earlyReturn:t})),...(null!=(n=null==t?void 0:t.handlers)?n:[]).map(e=>{var t;return{handler:tW(t0({},e),tV({priority:null!=(t=e.priority)?t:100})),earlyReturn:void 0}})].sort((e,t)=>{var n,r;return(null!=(n=e.handler.priority)?n:0)-(null!=(r=t.handler.priority)?r:0)}))if(a=e.handle(a),null!=s&&s(a))break;return a})(e,k):e;return T&&T.length>0&&(n=((e,t)=>{if(!t.length)return e;let n=e;for(let e of t){let t=RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`,"gi");n=n.replace(t,(e,t,n,r)=>t+or(n).replace(/\n\n/g," ")+r)}return n})(n,T)),F.length>0&&(n=((e,t)=>{if(!t.length)return e;let n=e;for(let e of t){let t=RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`,"gi");n=n.replace(t,(e,t,n,r)=>{if(!n.includes(`
|
|
91
|
+
|
|
92
|
+
`))return t+n+r;let i=n.replace(/\n\n/g,`
|
|
93
|
+
<!---->
|
|
94
|
+
`),a=(i.startsWith(`
|
|
95
|
+
`)?"":`
|
|
96
|
+
`)+i+(i.endsWith(`
|
|
97
|
+
`)?"":`
|
|
98
|
+
`);return`${t}${a}${r}
|
|
99
|
+
|
|
100
|
+
`})}return n})(n,F)),n},[e,t,i,k,F,T]),H=(0,r.useMemo)(()=>g(B),[B,g]),[U,j]=(0,r.useState)(H);(0,r.useEffect)(()=>{"streaming"!==t||q?j(H):O(()=>{j(H)})},[H,t]);let $="streaming"===t?U:H,z=(0,r.useMemo)(()=>"auto"===n?$.map(sl):void 0,[$,n]),G=(0,r.useMemo)(()=>$.map((e,t)=>`${I}-${t}`),[$.length,I]),K=(0,r.useMemo)(()=>!0===f?"true":f?JSON.stringify(f):"",[f]),q=(0,r.useMemo)(()=>K?"true"===K?iJ():iJ(f):null,[K]),Y=(0,r.useMemo)(()=>{var e,n;return{shikiTheme:null!=(n=null==(e=null==b?void 0:b.code)?void 0:e.getThemes())?n:u,controls:p,isAnimating:d,lineNumbers:x,mode:t,mermaid:h,linkSafety:_}},[u,p,d,x,t,h,_,null==b?void 0:b.code]),W=(0,r.useMemo)(()=>A?JSON.stringify(A):"",[A]),V=(0,r.useMemo)(()=>({...ao,...A}),[W]),X=(0,r.useMemo)(()=>{let{inlineCode:e,...t}=null!=s?s:{},n={...sa,...t};if(e){let t=n.code;n.code=n=>"data-block"in n?t?(0,r.createElement)(t,n):null:(0,r.createElement)(e,n)}return n},[s]),Q=(0,r.useMemo)(()=>{let e=[];return null!=b&&b.cjk&&(e=[...e,...b.cjk.remarkPluginsBefore]),e=[...e,...l],null!=b&&b.cjk&&(e=[...e,...b.cjk.remarkPluginsAfter]),null!=b&&b.math&&(e=[...e,b.math.remarkPlugin]),e},[l,null==b?void 0:b.math,null==b?void 0:b.cjk]),Z=(0,r.useMemo)(()=>{var e;let t=o;if(E&&Object.keys(E).length>0&&o===oh){let n={...ol,tagNames:[...null!=(e=ol.tagNames)?e:[],...Object.keys(E)],attributes:{...ol.attributes,...E}};t=[oc.raw,[tK,n],oc.harden]}return T&&T.length>0&&(t=[...t,[oa,T]]),null!=b&&b.math&&(t=[...t,b.math.rehypePlugin]),q&&d&&(t=[...t,q.rehypePlugin]),t},[o,null==b?void 0:b.math,q,d,E,T]),J=(0,r.useMemo)(()=>{if(!d||0===$.length)return!1;let e=$.at(-1);return sK(e)||(e=>{for(let t of e.split(`
|
|
101
|
+
`)){let e=t.trim();if(e.length>0&&e.includes("|")&&sG.test(e))return!0}return!1})(e)},[d,$]),ee=(0,r.useMemo)(()=>y&&d&&!J?{"--streamdown-caret":`"${od[y]}"`}:void 0,[y,d,J]);return"static"===t?(0,rL.jsx)(al.Provider,{value:V,children:(0,rL.jsx)(ak.Provider,{value:null!=b?b:null,children:(0,rL.jsx)(og.Provider,{value:Y,children:(0,rL.jsx)(aa,{icons:v,children:(0,rL.jsx)(i3.Provider,{value:M,children:(0,rL.jsx)("div",{className:M("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",c),dir:"auto"===n?sl(B):n,children:(0,rL.jsx)(sQ,{components:X,rehypePlugins:Z,remarkPlugins:Q,...N,children:B})})})})})})}):(0,rL.jsx)(al.Provider,{value:V,children:(0,rL.jsx)(ak.Provider,{value:null!=b?b:null,children:(0,rL.jsx)(og.Provider,{value:Y,children:(0,rL.jsx)(aa,{icons:v,children:(0,rL.jsx)(i3.Provider,{value:M,children:(0,rL.jsxs)("div",{className:M("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",y&&!J?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,c),style:ee,children:[0===$.length&&y&&d&&(0,rL.jsx)("span",{}),$.map((e,t)=>{var r;let s=t===$.length-1,o=d&&s&&sK(e);return(0,rL.jsx)(m,{animatePlugin:q,components:X,content:e,dir:null!=(r=null==z?void 0:z[t])?r:"auto"!==n?n:void 0,index:t,isIncomplete:o,rehypePlugins:Z,remarkPlugins:Q,shouldNormalizeHtmlIndentation:a,shouldParseIncompleteMarkdown:i,...N},G[t])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);ob.displayName="Streamdown";var ok=({children:e,className:t,minZoom:n=.5,maxZoom:i=3,zoomStep:a=.1,showControls:s=!0,initialZoom:o=1,fullscreen:l=!1})=>{let{RotateCcwIcon:c,ZoomInIcon:u,ZoomOutIcon:h}=as(),p=i5(),d=(0,r.useRef)(null),f=(0,r.useRef)(null),[m,g]=(0,r.useState)(o),[y,b]=(0,r.useState)({x:0,y:0}),[k,_]=(0,r.useState)(!1),[x,E]=(0,r.useState)({x:0,y:0}),[T,A]=(0,r.useState)({x:0,y:0}),v=(0,r.useCallback)(e=>{g(t=>Math.max(n,Math.min(i,t+e)))},[n,i]),w=(0,r.useCallback)(()=>{v(a)},[v,a]),S=(0,r.useCallback)(()=>{v(-a)},[v,a]),C=(0,r.useCallback)(()=>{g(o),b({x:0,y:0})},[o]),N=(0,r.useCallback)(e=>{e.preventDefault(),v(e.deltaY>0?-a:a)},[v,a]),I=(0,r.useCallback)(e=>{if(0!==e.button||!1===e.isPrimary)return;_(!0),E({x:e.clientX,y:e.clientY}),A(y);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[y]),D=(0,r.useCallback)(e=>{if(!k)return;e.preventDefault();let t=e.clientX-x.x,n=e.clientY-x.y;b({x:T.x+t,y:T.y+n})},[k,x,T]),O=(0,r.useCallback)(e=>{_(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);return(0,r.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener("wheel",N,{passive:!1}),()=>{e.removeEventListener("wheel",N)}},[N]),(0,r.useEffect)(()=>{let e=f.current;if(e&&k)return document.body.style.userSelect="none",e.addEventListener("pointermove",D,{passive:!1}),e.addEventListener("pointerup",O),e.addEventListener("pointercancel",O),()=>{document.body.style.userSelect="",e.removeEventListener("pointermove",D),e.removeEventListener("pointerup",O),e.removeEventListener("pointercancel",O)}},[k,D,O]),(0,rL.jsxs)("div",{className:p("relative flex flex-col",l?"h-full w-full":"min-h-28 w-full",t),ref:d,style:{cursor:k?"grabbing":"grab"},children:[s?(0,rL.jsxs)("div",{className:p("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",l?"bottom-4 left-4":"bottom-2 left-2"),children:[(0,rL.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:m>=i,onClick:w,title:"Zoom in",type:"button",children:(0,rL.jsx)(u,{size:16})}),(0,rL.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:m<=n,onClick:S,title:"Zoom out",type:"button",children:(0,rL.jsx)(h,{size:16})}),(0,rL.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:C,title:"Reset zoom and pan",type:"button",children:(0,rL.jsx)(c,{size:16})})]}):null,(0,rL.jsx)("div",{className:p("flex-1 origin-center transition-transform duration-150 ease-out",l?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:I,ref:f,role:"application",style:{transform:`translate(${y.x}px, ${y.y}px) scale(${m})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},o_=({chart:e,className:t,config:n,fullscreen:i=!1,showControls:a=!0})=>{let s=i5(),[o,l]=(0,r.useState)(null),[c,u]=(0,r.useState)(!1),[h,p]=(0,r.useState)(""),[d,f]=(0,r.useState)(""),[m,g]=(0,r.useState)(0),{mermaid:y}=(0,r.useContext)(og),b=aE(),k=null==y?void 0:y.errorComponent,{shouldRender:_,containerRef:x}=function(e={}){let{immediate:t=!1,debounceDelay:n=300,rootMargin:i="300px",idleTimeout:a=500}=e,[s,o]=(0,r.useState)(!1),l=(0,r.useRef)(null),c=(0,r.useRef)(null),u=(0,r.useRef)(null),h=(0,r.useMemo)(()=>e=>{let t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},[]),p=(0,r.useMemo)(()=>"u">typeof window&&window.requestIdleCallback?(e,t)=>window.requestIdleCallback(e,t):h,[h]),d=(0,r.useMemo)(()=>"u">typeof window&&window.cancelIdleCallback?e=>window.cancelIdleCallback(e):e=>{clearTimeout(e)},[]);return(0,r.useEffect)(()=>{if(t)return void o(!0);let e=l.current;if(!e)return;c.current&&(clearTimeout(c.current),c.current=null),u.current&&(d(u.current),u.current=null);let r=()=>{c.current&&(clearTimeout(c.current),c.current=null),u.current&&(d(u.current),u.current=null)},s=(e,t)=>{e.isIntersecting?(r(),c.current=window.setTimeout(()=>{var e,n;let r=t.takeRecords();(0===r.length||null!=(n=null==(e=r.at(-1))?void 0:e.isIntersecting)&&n)&&(u.current=p(e=>{e.timeRemaining()>0||e.didTimeout?(o(!0),t.disconnect()):u.current=p(()=>{o(!0),t.disconnect()},{timeout:a/2})},{timeout:a}))},n)):r()},h=new IntersectionObserver(e=>{for(let t of e)s(t,h)},{rootMargin:i,threshold:0});return h.observe(e),()=>{c.current&&clearTimeout(c.current),u.current&&d(u.current),h.disconnect()}},[t,n,i,a,d,p]),{shouldRender:s,containerRef:l}}({immediate:i});return((0,r.useEffect)(()=>{if(_){if(!b)return void l("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");(async()=>{try{l(null),u(!0);let t=b.getMermaid(n),r=e.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),i=`mermaid-${Math.abs(r)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:a}=await t.render(i,e);p(a),f(a)}catch(e){d||h||l(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{u(!1)}})()}},[e,n,m,_,b]),_||h||d)?!c||h||d?!o||h||d?(0,rL.jsx)("div",{className:s("size-full",t),"data-streamdown":"mermaid",ref:x,children:(0,rL.jsx)(ok,{className:s(i?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:i,maxZoom:3,minZoom:.5,showControls:a,zoomStep:.1,children:(0,rL.jsx)("div",{"aria-label":"Mermaid chart",className:s("flex justify-center",i?"size-full items-center":null),dangerouslySetInnerHTML:{__html:h||d},role:"img"})})}):k?(0,rL.jsx)("div",{ref:x,children:(0,rL.jsx)(k,{chart:e,error:o,retry:()=>g(e=>e+1)})}):(0,rL.jsxs)("div",{className:s("rounded-md bg-red-50 p-4",t),ref:x,children:[(0,rL.jsxs)("p",{className:s("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",o]}),(0,rL.jsxs)("details",{className:s("mt-2"),children:[(0,rL.jsx)("summary",{className:s("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),(0,rL.jsx)("pre",{className:s("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]}):(0,rL.jsx)("div",{className:s("my-4 flex justify-center p-4",t),ref:x,children:(0,rL.jsxs)("div",{className:s("flex items-center space-x-2 text-muted-foreground"),children:[(0,rL.jsx)("div",{className:s("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),(0,rL.jsx)("span",{className:s("text-sm"),children:"Loading diagram..."})]})}):(0,rL.jsx)("div",{className:s("my-4 min-h-[200px]",t),ref:x})}},13222:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(42112),i=n(68448),a=n(52326),s=n(68420);let o=(e,t,n=0,o=1)=>{if("number"!=typeof e)return(0,s.A)(e,{a:t});let l=i.A.set({r:r.A.channel.clamp.r(e),g:r.A.channel.clamp.g(t),b:r.A.channel.clamp.b(n),a:r.A.channel.clamp.a(o)});return a.A.stringify(l)}},13404:e=>{e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},14759:(e,t,n)=>{"use strict";n.d(t,{H:()=>tF,r:()=>tP});var r,i=n(32165);function a(e){return null==e}function s(e){return"object"==typeof e&&null!==e}function o(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r}function l(e){return 0===e&&-1/0==1/e}(0,i.K2)(a,"isNothing"),(0,i.K2)(s,"isObject"),(0,i.K2)(function(e){return Array.isArray(e)?e:a(e)?[]:[e]},"toArray"),(0,i.K2)(function(e,t){var n,r,i,a;if(t)for(n=0,r=(a=Object.keys(t)).length;n<r;n+=1)e[i=a[n]]=t[i];return e},"extend"),(0,i.K2)(o,"repeat"),(0,i.K2)(l,"isNegativeZero");function c(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function u(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=c(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function h(e,t,n,r,i){var a="",s="",o=Math.floor(i/2)-1;return r-t>o&&(t=r-o+(a=" ... ").length),n-r>o&&(n=r+o-(s=" ...").length),{str:a+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+a.length}}function p(e,t){return o(" ",t-e.length)+e}function d(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a=-1;s=n.exec(e.buffer);)i.push(s.index),r.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var s,l,c,u="",d=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+d+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)c=h(e.buffer,r[a-l],i[a-l],e.position-(r[a]-r[a-l]),f),u=o(" ",t.indent)+p((e.line-l+1).toString(),d)+" | "+c.str+"\n"+u;for(c=h(e.buffer,r[a],i[a],e.position,f),u+=o(" ",t.indent)+p((e.line+1).toString(),d)+" | "+c.str+"\n"+o("-",t.indent+d+3+c.pos)+"^\n",l=1;l<=t.linesAfter&&!(a+l>=i.length);l++)c=h(e.buffer,r[a+l],i[a+l],e.position-(r[a]-r[a+l]),f),u+=o(" ",t.indent)+p((e.line+l+1).toString(),d)+" | "+c.str+"\n";return u.replace(/\n$/,"")}(0,i.K2)(c,"formatError"),(0,i.K2)(u,"YAMLException$1"),u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u.prototype.toString=(0,i.K2)(function(e){return this.name+": "+c(this,e)},"toString"),(0,i.K2)(h,"getLine"),(0,i.K2)(p,"padStart"),(0,i.K2)(d,"makeSnippet");var f=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],m=["scalar","sequence","mapping"];function g(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function y(e,t){if(Object.keys(t=t||{}).forEach(function(t){if(-1===f.indexOf(t))throw new u('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=g(t.styleAliases||null),-1===m.indexOf(this.kind))throw new u('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}function b(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function k(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for((0,i.K2)(r,"collectType"),e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}function _(e){return this.extend(e)}(0,i.K2)(g,"compileStyleAliases"),(0,i.K2)(y,"Type$1"),(0,i.K2)(b,"compileList"),(0,i.K2)(k,"compileMap"),(0,i.K2)(_,"Schema$1"),_.prototype.extend=(0,i.K2)(function(e){var t=[],n=[];if(e instanceof y)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new u("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof y))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new u("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new u("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof y))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(_.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=b(r,"implicit"),r.compiledExplicit=b(r,"explicit"),r.compiledTypeMap=k(r.compiledImplicit,r.compiledExplicit),r},"extend");var x=new _({explicit:[new y("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,i.K2)(function(e){return null!==e?e:""},"construct")}),new y("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,i.K2)(function(e){return null!==e?e:[]},"construct")}),new y("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,i.K2)(function(e){return null!==e?e:{}},"construct")})]});function E(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function T(){return null}function A(e){return null===e}(0,i.K2)(E,"resolveYamlNull"),(0,i.K2)(T,"constructYamlNull"),(0,i.K2)(A,"isNull");var v=new y("tag:yaml.org,2002:null",{kind:"scalar",resolve:E,construct:T,predicate:A,represent:{canonical:(0,i.K2)(function(){return"~"},"canonical"),lowercase:(0,i.K2)(function(){return"null"},"lowercase"),uppercase:(0,i.K2)(function(){return"NULL"},"uppercase"),camelcase:(0,i.K2)(function(){return"Null"},"camelcase"),empty:(0,i.K2)(function(){return""},"empty")},defaultStyle:"lowercase"});function w(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function S(e){return"true"===e||"True"===e||"TRUE"===e}function C(e){return"[object Boolean]"===Object.prototype.toString.call(e)}(0,i.K2)(w,"resolveYamlBoolean"),(0,i.K2)(S,"constructYamlBoolean"),(0,i.K2)(C,"isBoolean");var N=new y("tag:yaml.org,2002:bool",{kind:"scalar",resolve:w,construct:S,predicate:C,represent:{lowercase:(0,i.K2)(function(e){return e?"true":"false"},"lowercase"),uppercase:(0,i.K2)(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:(0,i.K2)(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function I(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function D(e){return 48<=e&&e<=55}function O(e){return 48<=e&&e<=57}function M(e){if(null===e)return!1;var t,n=e.length,r=0,i=!1;if(!n)return!1;if(("-"===(t=e[r])||"+"===t)&&(t=e[++r]),"0"===t){if(r+1===n)return!0;if("b"===(t=e[++r])){for(r++;r<n;r++)if("_"!==(t=e[r])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!I(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!D(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;r<n;r++)if("_"!==(t=e[r])){if(!O(e.charCodeAt(r)))return!1;i=!0}return!!i&&"_"!==t}function L(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),("-"===(t=n[0])||"+"===t)&&("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){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 R(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!l(e)}(0,i.K2)(I,"isHexCode"),(0,i.K2)(D,"isOctCode"),(0,i.K2)(O,"isDecCode"),(0,i.K2)(M,"resolveYamlInteger"),(0,i.K2)(L,"constructYamlInteger"),(0,i.K2)(R,"isInteger");var P=new y("tag:yaml.org,2002:int",{kind:"scalar",resolve:M,construct:L,predicate:R,represent:{binary:(0,i.K2)(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:(0,i.K2)(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:(0,i.K2)(function(e){return e.toString(10)},"decimal"),hexadecimal:(0,i.K2)(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),F=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function B(e){return null!==e&&!!F.test(e)&&"_"!==e[e.length-1]}function H(e){var t,n;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?1/0:-1/0:".nan"===t?NaN:n*parseFloat(t,10)}(0,i.K2)(B,"resolveYamlFloat"),(0,i.K2)(H,"constructYamlFloat");var U=/^[-+]?[0-9]+e/;function j(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(l(e))return"-0.0";return n=e.toString(10),U.test(n)?n.replace("e",".e"):n}function $(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||l(e))}(0,i.K2)(j,"representYamlFloat"),(0,i.K2)($,"isFloat");var z=new y("tag:yaml.org,2002:float",{kind:"scalar",resolve:B,construct:H,predicate:$,represent:j,defaultStyle:"lowercase"}),G=x.extend({implicit:[v,N,P,z]}),K=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),q=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 Y(e){return null!==e&&(null!==K.exec(e)||null!==q.exec(e))}function W(e){var t,n,r,i,a,s,o,l,c=0,u=null;if(null===(t=K.exec(e))&&(t=q.exec(e)),null===t)throw Error("Date resolve error");if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],s=+t[5],o=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c*=1}return t[9]&&(u=(60*t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(u=-u)),l=new Date(Date.UTC(n,r,i,a,s,o,c)),u&&l.setTime(l.getTime()-u),l}function V(e){return e.toISOString()}(0,i.K2)(Y,"resolveYamlTimestamp"),(0,i.K2)(W,"constructYamlTimestamp"),(0,i.K2)(V,"representYamlTimestamp");var X=new y("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Y,construct:W,instanceOf:Date,represent:V});function Q(e){return"<<"===e||null===e}(0,i.K2)(Q,"resolveYamlMerge");var Z=new y("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Q}),J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function ee(e){if(null===e)return!1;var t,n,r=0,i=e.length;for(n=0;n<i;n++)if(!((t=J.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0}function et(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|J.indexOf(r.charAt(t));return 0==(n=i%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)}function en(e){var t,n,r="",i=0,a=e.length;for(t=0;t<a;t++)t%3==0&&t&&(r+=J[i>>18&63],r+=J[i>>12&63],r+=J[i>>6&63],r+=J[63&i]),i=(i<<8)+e[t];return 0==(n=a%3)?(r+=J[i>>18&63],r+=J[i>>12&63],r+=J[i>>6&63],r+=J[63&i]):2===n?(r+=J[i>>10&63],r+=J[i>>4&63],r+=J[i<<2&63],r+=J[64]):1===n&&(r+=J[i>>2&63],r+=J[i<<4&63],r+=J[64],r+=J[64]),r}function er(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}(0,i.K2)(ee,"resolveYamlBinary"),(0,i.K2)(et,"constructYamlBinary"),(0,i.K2)(en,"representYamlBinary"),(0,i.K2)(er,"isBinary");var ei=new y("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ee,construct:et,predicate:er,represent:en}),ea=Object.prototype.hasOwnProperty,es=Object.prototype.toString;function eo(e){if(null===e)return!0;var t,n,r,i,a,s=[];for(t=0,n=e.length;t<n;t+=1){if(r=e[t],a=!1,"[object Object]"!==es.call(r))return!1;for(i in r)if(ea.call(r,i))if(a)return!1;else a=!0;if(!a||-1!==s.indexOf(i))return!1;s.push(i)}return!0}function el(e){return null!==e?e:[]}(0,i.K2)(eo,"resolveYamlOmap"),(0,i.K2)(el,"constructYamlOmap");var ec=new y("tag:yaml.org,2002:omap",{kind:"sequence",resolve:eo,construct:el}),eu=Object.prototype.toString;function eh(e){var t,n,r,i,a;if(null===e)return!0;for(t=0,a=Array(e.length),n=e.length;t<n;t+=1){if(r=e[t],"[object Object]"!==eu.call(r)||1!==(i=Object.keys(r)).length)return!1;a[t]=[i[0],r[i[0]]]}return!0}function ep(e){var t,n,r,i,a;if(null===e)return[];for(t=0,a=Array(e.length),n=e.length;t<n;t+=1)i=Object.keys(r=e[t]),a[t]=[i[0],r[i[0]]];return a}(0,i.K2)(eh,"resolveYamlPairs"),(0,i.K2)(ep,"constructYamlPairs");var ed=new y("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:eh,construct:ep}),ef=Object.prototype.hasOwnProperty;function em(e){var t;if(null===e)return!0;for(t in e)if(ef.call(e,t)&&null!==e[t])return!1;return!0}function eg(e){return null!==e?e:{}}(0,i.K2)(em,"resolveYamlSet"),(0,i.K2)(eg,"constructYamlSet");var ey=new y("tag:yaml.org,2002:set",{kind:"mapping",resolve:em,construct:eg}),eb=G.extend({implicit:[X,Z],explicit:[ei,ec,ed,ey]}),ek=Object.prototype.hasOwnProperty,e_=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ex=/[\x85\u2028\u2029]/,eE=/[,\[\]\{\}]/,eT=/^(?:!|!!|![a-z\-]+!)$/i,eA=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ev(e){return Object.prototype.toString.call(e)}function ew(e){return 10===e||13===e}function eS(e){return 9===e||32===e}function eC(e){return 9===e||32===e||10===e||13===e}function eN(e){return 44===e||91===e||93===e||123===e||125===e}function eI(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function eD(e){return 120===e?2:117===e?4:8*(85===e)}function eO(e){return 48<=e&&e<=57?e-48:-1}function eM(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"\x85":95===e?"\xa0":76===e?"\u2028":80===e?"\u2029":""}function eL(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function eR(e,t,n){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}(0,i.K2)(ev,"_class"),(0,i.K2)(ew,"is_EOL"),(0,i.K2)(eS,"is_WHITE_SPACE"),(0,i.K2)(eC,"is_WS_OR_EOL"),(0,i.K2)(eN,"is_FLOW_INDICATOR"),(0,i.K2)(eI,"fromHexCode"),(0,i.K2)(eD,"escapedHexLen"),(0,i.K2)(eO,"fromDecimalCode"),(0,i.K2)(eM,"simpleEscapeSequence"),(0,i.K2)(eL,"charFromCodepoint"),(0,i.K2)(eR,"setProperty");var eP=Array(256),eF=Array(256);for(r=0;r<256;r++)eP[r]=+!!eM(r),eF[r]=eM(r);function eB(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||eb,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function eH(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=d(n),new u(t,n)}function eU(e,t){throw eH(e,t)}function ej(e,t){e.onWarning&&e.onWarning.call(null,eH(e,t))}(0,i.K2)(eB,"State$1"),(0,i.K2)(eH,"generateError"),(0,i.K2)(eU,"throwError"),(0,i.K2)(ej,"throwWarning");var e$={YAML:(0,i.K2)(function(e,t,n){var r,i,a;null!==e.version&&eU(e,"duplication of %YAML directive"),1!==n.length&&eU(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&eU(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),a=parseInt(r[2],10),1!==i&&eU(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,1!==a&&2!==a&&ej(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,i.K2)(function(e,t,n){var r,i;2!==n.length&&eU(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],eT.test(r)||eU(e,"ill-formed tag handle (first argument) of the TAG directive"),ek.call(e.tagMap,r)&&eU(e,'there is a previously declared suffix for "'+r+'" tag handle'),eA.test(i)||eU(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){eU(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i},"handleTagDirective")};function ez(e,t,n,r){var i,a,s,o;if(t<n){if(o=e.input.slice(t,n),r)for(i=0,a=o.length;i<a;i+=1)9===(s=o.charCodeAt(i))||32<=s&&s<=1114111||eU(e,"expected valid JSON character");else e_.test(o)&&eU(e,"the stream contains non-printable characters");e.result+=o}}function eG(e,t,n,r){var i,a,o,l;for(s(n)||eU(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,l=(i=Object.keys(n)).length;o<l;o+=1)a=i[o],ek.call(t,a)||(eR(t,a,n[a]),r[a]=!0)}function eK(e,t,n,r,i,a,s,o,l){var c,u;if(Array.isArray(i))for(c=0,u=(i=Array.prototype.slice.call(i)).length;c<u;c+=1)Array.isArray(i[c])&&eU(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===ev(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===ev(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(a))for(c=0,u=a.length;c<u;c+=1)eG(e,t,a[c],n);else eG(e,t,a,n);else!e.json&&!ek.call(n,i)&&ek.call(t,i)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,eU(e,"duplicated mapping key")),eR(t,i,a),delete n[i];return t}function eq(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):eU(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function eY(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;eS(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do i=e.input.charCodeAt(++e.position);while(10!==i&&13!==i&&0!==i);if(ew(i))for(eq(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return -1!==n&&0!==r&&e.lineIndent<n&&ej(e,"deficient indentation"),r}function eW(e){var t,n=e.position;return!!((45===(t=e.input.charCodeAt(n))||46===t)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,0===(t=e.input.charCodeAt(n))||eC(t)))||!1}function eV(e,t){1===t?e.result+=" ":t>1&&(e.result+=o("\n",t-1))}function eX(e,t,n){var r,i,a,s,o,l,c,u,h=e.kind,p=e.result;if(eC(u=e.input.charCodeAt(e.position))||eN(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u||(63===u||45===u)&&(eC(r=e.input.charCodeAt(e.position+1))||n&&eN(r)))return!1;for(e.kind="scalar",e.result="",i=a=e.position,s=!1;0!==u;){if(58===u){if(eC(r=e.input.charCodeAt(e.position+1))||n&&eN(r))break}else if(35===u){if(eC(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&eW(e)||n&&eN(u))break;else if(ew(u)){if(o=e.line,l=e.lineStart,c=e.lineIndent,eY(e,!1,-1),e.lineIndent>=t){s=!0,u=e.input.charCodeAt(e.position);continue}e.position=a,e.line=o,e.lineStart=l,e.lineIndent=c;break}s&&(ez(e,i,a,!1),eV(e,e.line-o),i=a=e.position,s=!1),eS(u)||(a=e.position+1),u=e.input.charCodeAt(++e.position)}return ez(e,i,a,!1),!!e.result||(e.kind=h,e.result=p,!1)}function eQ(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(ez(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else ew(n)?(ez(e,r,i,!0),eV(e,eY(e,!1,t)),r=i=e.position):e.position===e.lineStart&&eW(e)?eU(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);eU(e,"unexpected end of the stream within a single quoted scalar")}function eZ(e,t){var n,r,i,a,s,o;if(34!==(o=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(o=e.input.charCodeAt(e.position));)if(34===o)return ez(e,n,e.position,!0),e.position++,!0;else if(92===o){if(ez(e,n,e.position,!0),ew(o=e.input.charCodeAt(++e.position)))eY(e,!1,t);else if(o<256&&eP[o])e.result+=eF[o],e.position++;else if((s=eD(o))>0){for(i=s,a=0;i>0;i--)(s=eI(o=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+s:eU(e,"expected hexadecimal character");e.result+=eL(a),e.position++}else eU(e,"unknown escape sequence");n=r=e.position}else ew(o)?(ez(e,n,r,!0),eV(e,eY(e,!1,t)),n=r=e.position):e.position===e.lineStart&&eW(e)?eU(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position);eU(e,"unexpected end of the stream within a double quoted scalar")}function eJ(e,t){var n,r,i,a,s,o,l,c,u,h,p,d,f=!0,m=e.tag,g=e.anchor,y=Object.create(null);if(91===(d=e.input.charCodeAt(e.position)))s=93,c=!1,a=[];else{if(123!==d)return!1;s=125,c=!0,a={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),d=e.input.charCodeAt(++e.position);0!==d;){if(eY(e,!0,t),(d=e.input.charCodeAt(e.position))===s)return e.position++,e.tag=m,e.anchor=g,e.kind=c?"mapping":"sequence",e.result=a,!0;f?44===d&&eU(e,"expected the node content, but found ','"):eU(e,"missed comma between flow collection entries"),h=u=p=null,o=l=!1,63===d&&eC(e.input.charCodeAt(e.position+1))&&(o=l=!0,e.position++,eY(e,!0,t)),n=e.line,r=e.lineStart,i=e.position,e9(e,t,1,!1,!0),h=e.tag,u=e.result,eY(e,!0,t),d=e.input.charCodeAt(e.position),(l||e.line===n)&&58===d&&(o=!0,d=e.input.charCodeAt(++e.position),eY(e,!0,t),e9(e,t,1,!1,!0),p=e.result),c?eK(e,a,y,h,u,p,n,r,i):o?a.push(eK(e,null,y,h,u,p,n,r,i)):a.push(u),eY(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(f=!0,d=e.input.charCodeAt(++e.position)):f=!1}eU(e,"unexpected end of the stream within a flow collection")}function e0(e,t){var n,r,i,a,s=1,l=!1,c=!1,u=t,h=0,p=!1;if(124===(a=e.input.charCodeAt(e.position)))r=!1;else{if(62!==a)return!1;r=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===s?s=43===a?3:2:eU(e,"repeat of a chomping mode identifier");else if((i=eO(a))>=0)0===i?eU(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?eU(e,"repeat of an indentation width identifier"):(u=t+i-1,c=!0);else break;if(eS(a)){do a=e.input.charCodeAt(++e.position);while(eS(a));if(35===a)do a=e.input.charCodeAt(++e.position);while(!ew(a)&&0!==a)}for(;0!==a;){for(eq(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!c||e.lineIndent<u)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>u&&(u=e.lineIndent),ew(a)){h++;continue}if(e.lineIndent<u){3===s?e.result+=o("\n",l?1+h:h):1===s&&l&&(e.result+="\n");break}for(r?eS(a)?(p=!0,e.result+=o("\n",l?1+h:h)):p?(p=!1,e.result+=o("\n",h+1)):0===h?l&&(e.result+=" "):e.result+=o("\n",h):e.result+=o("\n",l?1+h:h),l=!0,c=!0,h=0,n=e.position;!ew(a)&&0!==a;)a=e.input.charCodeAt(++e.position);ez(e,n,e.position,!1)}return!0}function e1(e,t){var n,r,i=e.tag,a=e.anchor,s=[],o=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,eU(e,"tab characters must not be used in indentation")),45===r&&eC(e.input.charCodeAt(e.position+1)));){if(o=!0,e.position++,eY(e,!0,-1)&&e.lineIndent<=t){s.push(null),r=e.input.charCodeAt(e.position);continue}if(n=e.line,e9(e,t,3,!1,!0),s.push(e.result),eY(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)eU(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!o&&(e.tag=i,e.anchor=a,e.kind="sequence",e.result=s,!0)}function e2(e,t,n){var r,i,a,s,o,l,c,u=e.tag,h=e.anchor,p={},d=Object.create(null),f=null,m=null,g=null,y=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=p),c=e.input.charCodeAt(e.position);0!==c;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,eU(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,(63===c||58===c)&&eC(r))63===c?(y&&(eK(e,p,d,f,m,null,s,o,l),f=m=g=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):eU(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=r;else{if(s=e.line,o=e.lineStart,l=e.position,!e9(e,n,2,!1,!0))break;if(e.line===a){for(c=e.input.charCodeAt(e.position);eS(c);)c=e.input.charCodeAt(++e.position);if(58===c)eC(c=e.input.charCodeAt(++e.position))||eU(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(eK(e,p,d,f,m,null,s,o,l),f=m=g=null),b=!0,y=!1,i=!1,f=e.tag,m=e.result;else{if(!b)return e.tag=u,e.anchor=h,!0;eU(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=u,e.anchor=h,!0;eU(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===a||e.lineIndent>t)&&(y&&(s=e.line,o=e.lineStart,l=e.position),e9(e,t,4,!0,i)&&(y?m=e.result:g=e.result),y||(eK(e,p,d,f,m,g,s,o,l),f=m=g=null),eY(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==c)eU(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&eK(e,p,d,f,m,null,s,o,l),b&&(e.tag=u,e.anchor=h,e.kind="mapping",e.result=p),b}function e3(e){var t,n,r,i,a=!1,s=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&eU(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(a=!0,i=e.input.charCodeAt(++e.position)):33===i?(s=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,a){do i=e.input.charCodeAt(++e.position);while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):eU(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!eC(i);)33===i&&(s?eU(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),eT.test(n)||eU(e,"named tag handle cannot contain such characters"),s=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),eE.test(r)&&eU(e,"tag suffix cannot contain flow indicator characters")}r&&!eA.test(r)&&eU(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){eU(e,"tag name is malformed: "+r)}return a?e.tag=r:ek.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:eU(e,'undeclared tag handle "'+n+'"'),!0}function e5(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&eU(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!eC(n)&&!eN(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&eU(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function e4(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!eC(r)&&!eN(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&eU(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),ek.call(e.anchorMap,n)||eU(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],eY(e,!0,-1),!0}function e9(e,t,n,r,i){var a,s,o,l,c,u,h,p,d,f=1,m=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=o=4===n||3===n,r&&eY(e,!0,-1)&&(m=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)for(;e3(e)||e5(e);)eY(e,!0,-1)?(m=!0,o=a,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):o=!1;if(o&&(o=m||i),(1===f||4===n)&&(p=1===n||2===n?t:t+1,d=e.position-e.lineStart,1===f?o&&(e1(e,d)||e2(e,d,p))||eJ(e,p)?g=!0:(s&&e0(e,p)||eQ(e,p)||eZ(e,p)?g=!0:e4(e)?(g=!0,(null!==e.tag||null!==e.anchor)&&eU(e,"alias node should not have any properties")):eX(e,p,1===n)&&(g=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(g=o&&e1(e,d))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&eU(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((h=e.implicitTypes[l]).resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(ek.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(l=0,h=null,c=(u=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,u[l].tag.length)===u[l].tag){h=u[l];break}h||eU(e,"unknown tag !<"+e.tag+">"),null!==e.result&&h.kind!==e.kind&&eU(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):eU(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function e6(e){var t,n,r,i,a=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(eY(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===i);){for(s=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!eC(i);)i=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),r=[],n.length<1&&eU(e,"directive name must not be less than one character in length");0!==i;){for(;eS(i);)i=e.input.charCodeAt(++e.position);if(35===i){do i=e.input.charCodeAt(++e.position);while(0!==i&&!ew(i));break}if(ew(i))break;for(t=e.position;0!==i&&!eC(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&eq(e),ek.call(e$,n)?e$[n](e,n,r):ej(e,'unknown document directive "'+n+'"')}if(eY(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,eY(e,!0,-1)):s&&eU(e,"directives end mark is expected"),e9(e,e.lineIndent-1,4,!1,!0),eY(e,!0,-1),e.checkLineBreaks&&ex.test(e.input.slice(a,e.position))&&ej(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&eW(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,eY(e,!0,-1));return}e.position<e.length-1&&eU(e,"end of the stream or a document separator is expected")}function e8(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new eB(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,eU(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;)e6(n);return n.documents}function e7(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=e8(e,n);if("function"!=typeof t)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function te(e,t){var n=e8(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new u("expected a single document in the stream, but found more")}}(0,i.K2)(ez,"captureSegment"),(0,i.K2)(eG,"mergeMappings"),(0,i.K2)(eK,"storeMappingPair"),(0,i.K2)(eq,"readLineBreak"),(0,i.K2)(eY,"skipSeparationSpace"),(0,i.K2)(eW,"testDocumentSeparator"),(0,i.K2)(eV,"writeFoldedLines"),(0,i.K2)(eX,"readPlainScalar"),(0,i.K2)(eQ,"readSingleQuotedScalar"),(0,i.K2)(eZ,"readDoubleQuotedScalar"),(0,i.K2)(eJ,"readFlowCollection"),(0,i.K2)(e0,"readBlockScalar"),(0,i.K2)(e1,"readBlockSequence"),(0,i.K2)(e2,"readBlockMapping"),(0,i.K2)(e3,"readTagProperty"),(0,i.K2)(e5,"readAnchorProperty"),(0,i.K2)(e4,"readAlias"),(0,i.K2)(e9,"composeNode"),(0,i.K2)(e6,"readDocument"),(0,i.K2)(e8,"loadDocuments"),(0,i.K2)(e7,"loadAll$1"),(0,i.K2)(te,"load$1");var tt=Object.prototype.toString,tn=Object.prototype.hasOwnProperty,tr={};tr[0]="\\0",tr[7]="\\a",tr[8]="\\b",tr[9]="\\t",tr[10]="\\n",tr[11]="\\v",tr[12]="\\f",tr[13]="\\r",tr[27]="\\e",tr[34]='\\"',tr[92]="\\\\",tr[133]="\\N",tr[160]="\\_",tr[8232]="\\L",tr[8233]="\\P";var ti=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ta=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ts(e,t){var n,r,i,a,s,o,l;if(null===t)return{};for(i=0,n={},a=(r=Object.keys(t)).length;i<a;i+=1)o=String(t[s=r[i]]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=e.compiledTypeMap.fallback[s])&&tn.call(l.styleAliases,o)&&(o=l.styleAliases[o]),n[s]=o;return n}function to(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=0xffffffff)n="U",r=8;else throw new u("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+o("0",r-t.length)+t}function tl(e){this.schema=e.schema||eb,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=a(e.flowLevel)?-1:e.flowLevel,this.styleMap=ts(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function tc(e,t){for(var n,r=o(" ",t),i=0,a=-1,s="",l=e.length;i<l;)-1===(a=e.indexOf("\n",i))?(n=e.slice(i),i=l):(n=e.slice(i,a+1),i=a+1),n.length&&"\n"!==n&&(s+=r),s+=n;return s}function tu(e,t){return"\n"+o(" ",e.indent*t)}function th(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function tp(e){return 32===e||9===e}function td(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function tf(e){return td(e)&&65279!==e&&13!==e&&10!==e}function tm(e,t,n){var r=tf(e),i=r&&!tp(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!i)||tf(t)&&!tp(t)&&35===e||58===t&&i}function tg(e){return td(e)&&65279!==e&&!tp(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}function ty(e){return!tp(e)&&58!==e}function tb(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?(r-55296)*1024+n-56320+65536:r}function tk(e){return/^\n* /.test(e)}function t_(e,t,n,r,i,a,s,o){var l,c=0,u=null,h=!1,p=!1,d=-1!==r,f=-1,m=tg(tb(e,0))&&ty(tb(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(!td(c=tb(e,l)))return 5;m=m&&tm(c,u,o),u=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(10===(c=tb(e,l)))h=!0,d&&(p=p||l-f-1>r&&" "!==e[f+1],f=l);else if(!td(c))return 5;m=m&&tm(c,u,o),u=c}p=p||d&&l-f-1>r&&" "!==e[f+1]}return h||p?n>9&&tk(e)?5:s?2===a?5:2:p?4:3:!m||s||i(e)?2===a?5:2:1}function tx(e,t,n,r,a){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==ti.indexOf(t)||ta.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,n),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),l=r||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return th(e,t)}switch((0,i.K2)(c,"testAmbiguity"),t_(t,l,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,a)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+tE(t,e.indent)+tT(tc(t,s));case 4:return">"+tE(t,e.indent)+tT(tc(tA(t,o),s));case 5:return'"'+tw(t)+'"';default:throw new u("impossible error: invalid scalar style")}}()}function tE(e,t){var n=tk(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function tT(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function tA(e,t){for(var n,r,i,a=/(\n+)([^\n]*)/g,s=(a.lastIndex=n=-1!==(n=e.indexOf("\n"))?n:e.length,tv(e.slice(0,n),t)),o="\n"===e[0]||" "===e[0];i=a.exec(e);){var l=i[1],c=i[2];r=" "===c[0],s+=l+(o||r||""===c?"":"\n")+tv(c,t),o=r}return s}function tv(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,a=0,s=0,o=0,l="";n=i.exec(e);)(o=n.index)-a>t&&(r=s>a?s:o,l+="\n"+e.slice(a,r),a=r+1),s=o;return l+="\n",e.length-a>t&&s>a?l+=e.slice(a,s)+"\n"+e.slice(s+1):l+=e.slice(a),l.slice(1)}function tw(e){for(var t,n="",r=0,i=0;i<e.length;r>=65536?i+=2:i++)!(t=tr[r=tb(e,i)])&&td(r)?(n+=e[i],r>=65536&&(n+=e[i+1])):n+=t||to(r);return n}function tS(e,t,n){var r,i,a,s="",o=e.tag;for(r=0,i=n.length;r<i;r+=1)a=n[r],e.replacer&&(a=e.replacer.call(n,String(r),a)),(tO(e,t,a,!1,!1)||void 0===a&&tO(e,t,null,!1,!1))&&(""!==s&&(s+=","+(e.condenseFlow?"":" ")),s+=e.dump);e.tag=o,e.dump="["+s+"]"}function tC(e,t,n,r){var i,a,s,o="",l=e.tag;for(i=0,a=n.length;i<a;i+=1)s=n[i],e.replacer&&(s=e.replacer.call(n,String(i),s)),(tO(e,t+1,s,!0,!0,!1,!0)||void 0===s&&tO(e,t+1,null,!0,!0,!1,!0))&&(r&&""===o||(o+=tu(e,t)),e.dump&&10===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=l,e.dump=o||"[]"}function tN(e,t,n){var r,i,a,s,o,l="",c=e.tag,u=Object.keys(n);for(r=0,i=u.length;r<i;r+=1)o="",""!==l&&(o+=", "),e.condenseFlow&&(o+='"'),s=n[a=u[r]],e.replacer&&(s=e.replacer.call(n,a,s)),tO(e,t,a,!1,!1)&&(e.dump.length>1024&&(o+="? "),o+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),tO(e,t,s,!1,!1)&&(o+=e.dump,l+=o));e.tag=c,e.dump="{"+l+"}"}function tI(e,t,n,r){var i,a,s,o,l,c,h="",p=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new u("sortKeys must be a boolean or a function");for(i=0,a=d.length;i<a;i+=1)c="",r&&""===h||(c+=tu(e,t)),o=n[s=d[i]],e.replacer&&(o=e.replacer.call(n,s,o)),tO(e,t+1,s,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=tu(e,t)),tO(e,t+1,o,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",c+=e.dump,h+=c));e.tag=p,e.dump=h||"{}"}function tD(e,t,n){var r,i,a,s,o,l;for(a=0,s=(i=n?e.explicitTypes:e.implicitTypes).length;a<s;a+=1)if(((o=i[a]).instanceOf||o.predicate)&&(!o.instanceOf||"object"==typeof t&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(n?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(l=e.styleMap[o.tag]||o.defaultStyle,"[object Function]"===tt.call(o.represent))r=o.represent(t,l);else if(tn.call(o.represent,l))r=o.represent[l](t,l);else throw new u("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function tO(e,t,n,r,i,a,s){e.tag=null,e.dump=n,tD(e,n,!1)||tD(e,n,!0);var o=tt.call(e.dump),l=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var c,h,p,d="[object Object]"===o||"[object Array]"===o;if(d&&(p=-1!==(h=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(i=!1),p&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(d&&p&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),"[object Object]"===o)r&&0!==Object.keys(e.dump).length?(tI(e,t,e.dump,i),p&&(e.dump="&ref_"+h+e.dump)):(tN(e,t,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===o)r&&0!==e.dump.length?(e.noArrayIndent&&!s&&t>0?tC(e,t-1,e.dump,i):tC(e,t,e.dump,i),p&&(e.dump="&ref_"+h+e.dump)):(tS(e,t,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if("[object String]"===o)"?"!==e.tag&&tx(e,e.dump,t,a,l);else{if("[object Undefined]"===o||e.skipInvalid)return!1;throw new u("unacceptable kind of an object to dump "+o)}null!==e.tag&&"?"!==e.tag&&(c=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),c="!"===e.tag[0]?"!"+c:"tag:yaml.org,2002:"===c.slice(0,18)?"!!"+c.slice(18):"!<"+c+">",e.dump=c+" "+e.dump)}return!0}function tM(e,t){var n,r,i=[],a=[];for(tL(e,i,a),n=0,r=a.length;n<r;n+=1)t.duplicates.push(i[a[n]]);t.usedDuplicates=Array(r)}function tL(e,t,n){var r,i,a;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===n.indexOf(i)&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)tL(e[i],t,n);else for(i=0,a=(r=Object.keys(e)).length;i<a;i+=1)tL(e[r[i]],t,n)}(0,i.K2)(ts,"compileStyleMap"),(0,i.K2)(to,"encodeHex"),(0,i.K2)(tl,"State"),(0,i.K2)(tc,"indentString"),(0,i.K2)(tu,"generateNextLine"),(0,i.K2)(th,"testImplicitResolving"),(0,i.K2)(tp,"isWhitespace"),(0,i.K2)(td,"isPrintable"),(0,i.K2)(tf,"isNsCharOrWhitespace"),(0,i.K2)(tm,"isPlainSafe"),(0,i.K2)(tg,"isPlainSafeFirst"),(0,i.K2)(ty,"isPlainSafeLast"),(0,i.K2)(tb,"codePointAt"),(0,i.K2)(tk,"needIndentIndicator");function tR(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}(0,i.K2)(t_,"chooseScalarStyle"),(0,i.K2)(tx,"writeScalar"),(0,i.K2)(tE,"blockHeader"),(0,i.K2)(tT,"dropEndingNewline"),(0,i.K2)(tA,"foldString"),(0,i.K2)(tv,"foldLine"),(0,i.K2)(tw,"escapeString"),(0,i.K2)(tS,"writeFlowSequence"),(0,i.K2)(tC,"writeBlockSequence"),(0,i.K2)(tN,"writeFlowMapping"),(0,i.K2)(tI,"writeBlockMapping"),(0,i.K2)(tD,"detectType"),(0,i.K2)(tO,"writeNode"),(0,i.K2)(tM,"getDuplicateReferences"),(0,i.K2)(tL,"inspectNode"),(0,i.K2)(function(e,t){var n=new tl(t=t||{});n.noRefs||tM(e,n);var r=e;return(n.replacer&&(r=n.replacer.call({"":r},"",r)),tO(n,0,r,!0,!0))?n.dump+"\n":""},"dump$1"),(0,i.K2)(tR,"renamed");var tP=G,tF=te;tR("safeLoad","load"),tR("safeLoadAll","loadAll"),tR("safeDump","dump")},17541:(e,t,n)=>{"use strict";n.d(t,{Fr:()=>u,GX:()=>c,KX:()=>l,WW:()=>s,ue:()=>a});var r=n(97096),i=n(32165),a=(0,i.K2)(e=>{let{handDrawnSeed:t}=(0,r.D7)();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),s=(0,i.K2)(e=>{let t=o([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),o=(0,i.K2)(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(":");t.set(n.trim(),r?.trim())}),t},"styles2Map"),l=(0,i.K2)(e=>"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e,"isLabelStyle"),c=(0,i.K2)(e=>{let{stylesArray:t}=s(e),n=[],r=[],i=[],a=[];return t.forEach(e=>{let t=e[0];l(t)?n.push(e.join(":")+" !important"):(r.push(e.join(":")+" !important"),t.includes("stroke")&&i.push(e.join(":")+" !important"),"fill"===t&&a.push(e.join(":")+" !important"))}),{labelStyles:n.join(";"),nodeStyles:r.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:a}},"styles2String"),u=(0,i.K2)((e,t)=>{let{themeVariables:n,handDrawnSeed:i}=(0,r.D7)(),{nodeBorder:a,mainBkg:o}=n,{stylesMap:l}=s(e);return Object.assign({roughness:.7,fill:l.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||a,seed:i,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:h(l.get("stroke-dasharray"))},t)},"userNodeOverrides"),h=(0,i.K2)(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(1===t.length){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},"getStrokeDashArray")},18931:(e,t,n)=>{"use strict";n.d(t,{oz:()=>g});var r=n(23091),i=n(78140),a=n(99007),s=n(95155);n(12115);var o=n(82948),l=n(54615),c=n(96674),u=n(48250),h=n(72148);let p=[],d={allowDangerousHtml:!0},f=/^(https?|ircs?|mailto|xmpp)$/i,m=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function g(e){var t;let n,f,g,b,k,_=(n=(t=e).rehypePlugins||p,f=t.remarkPlugins||p,g=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...d}:d,(0,c.l)().use(o.A).use(f).use(l.A,g).use(n)),x=(b=e.children||"",k=new h.T,"string"==typeof b?k.value=b:(0,r.HB)("Unexpected value `"+b+"` for `children` prop, expected `string`"),k);return function(e,t){let n=t.allowedElements,o=t.allowElement,l=t.components,c=t.disallowedElements,h=t.skipHtml,p=t.unwrapDisallowed,d=t.urlTransform||y;for(let e of m)Object.hasOwn(t,e.from)&&(0,r.HB)("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&c&&(0,r.HB)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,u.YR)(e,function(e,t,r){if("raw"===e.type&&r&&"number"==typeof t)return h?r.children.splice(t,1):r.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in a.$)if(Object.hasOwn(a.$,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=a.$[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let i=n?!n.includes(e.tagName):!!c&&c.includes(e.tagName);if(!i&&o&&"number"==typeof t&&(i=!o(e,t,r)),i&&r&&"number"==typeof t)return p&&e.children?r.children.splice(t,1,...e.children):r.children.splice(t,1),t}}),(0,i.H)(e,{Fragment:s.Fragment,components:l,ignoreInvalidStyle:!0,jsx:s.jsx,jsxs:s.jsxs,passKeys:!0,passNode:!0})}(_.runSync(_.parse(x),x),e)}function y(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||f.test(e.slice(0,t))?e:""}},20768:(e,t,n)=>{"use strict";n.d(t,{IN:()=>a,dc:()=>s,_Z:()=>o,VG:()=>l});var r=n(73129);let i=[],a=!0,s=!1,o="skip";function l(e,t,n,l){let c;"function"==typeof t&&"function"!=typeof n?(l=n,n=t):c=t;let u=(0,r.C)(c),h=l?-1:1;(function e(r,c,p){let d=r&&"object"==typeof r?r:{};if("string"==typeof d.type){let e="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return f;function f(){var d;let f,m,g,y=i;if((!t||u(r,c,p[p.length-1]||void 0))&&(y=Array.isArray(d=n(r,p))?d:"number"==typeof d?[a,d]:null==d?i:[d])[0]===s)return y;if("children"in r&&r.children&&r.children&&y[0]!==o)for(m=(l?r.children.length:-1)+h,g=p.concat(r);m>-1&&m<r.children.length;){if((f=e(r.children[m],m,g)())[0]===s)return f;m="number"==typeof f[1]?f[1]:m+h}return y}})(e,void 0,[])()}},21090:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g;function c(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var u=1,h=1;function p(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function d(){var e={line:u,column:h};return function(t){return t.position=new f(e),g(r),t}}function f(e){this.start=e,this.end={line:u,column:h},this.source=l.source}function m(t){var n=Error(l.source+":"+u+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=u,n.column=h,n.source=e,l.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return h+=2,p(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}f.prototype.content=e,g(r);var k,_=[];for(y(_);k=function(){var e=d(),n=g(i);if(n){if(b(),!g(a))return m("property missing ':'");var r=g(s),l=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return g(o),l}}();)!1!==k&&(_.push(k),y(_));return _}},21354:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=n(97096),i=n(32165),a=n(33948),s=(0,i.K2)(e=>{let{securityLevel:t}=(0,r.D7)(),n=(0,a.Ltv)("body");if("sandbox"===t){let t=(0,a.Ltv)(`#i${e}`),r=t.node()?.contentDocument??document;n=(0,a.Ltv)(r.body)}return n.select(`#${e}`)},"selectSvgElement")},23091:(e,t,n)=>{"use strict";function r(){}function i(){}n.d(t,{HB:()=>i,ok:()=>r})},23638:(e,t,n)=>{"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from("string"==typeof e?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){var t,n;return null!=(n=null==(t=e.match(/[\t ]/g))?void 0:t.length)?n:0})):e},[]);if(i.length){var a=RegExp("\n[ ]{"+Math.min.apply(Math,i)+"}","g");r=r.map(function(e){return e.replace(a,"\n")})}r[0]=r[0].replace(/^\r?\n/,"");var s=r[0];return t.forEach(function(e,t){var n=s.match(/(?:^|\n)( *)$/),i=n?n[1]:"",a=e;"string"==typeof e&&e.includes("\n")&&(a=String(e).split("\n").map(function(e,t){return 0===t?e:""+i+e}).join("\n")),s+=a+r[t+1]}),s}n.d(t,{T:()=>r})},23999:e=>{e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\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-\u2E4E\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]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},24662:(e,t,n)=>{"use strict";n.d(t,{$V:()=>s,Av:()=>r,GX:()=>f,ML:()=>A,NA:()=>h,OG:()=>i,Qb:()=>g,R_:()=>o,Uw:()=>p,VP:()=>l,XZ:()=>_,ZR:()=>k,_u:()=>E,cT:()=>d,i1:()=>x,iq:()=>m,kj:()=>a,pj:()=>u,q:()=>y,ri:()=>T,vC:()=>c,x6:()=>b});let r="[object RegExp]",i="[object String]",a="[object Number]",s="[object Boolean]",o="[object Arguments]",l="[object Symbol]",c="[object Date]",u="[object Map]",h="[object Set]",p="[object Array]",d="[object ArrayBuffer]",f="[object Object]",m="[object DataView]",g="[object Uint8Array]",y="[object Uint8ClampedArray]",b="[object Uint16Array]",k="[object Uint32Array]",_="[object Int8Array]",x="[object Int16Array]",E="[object Int32Array]",T="[object Float32Array]",A="[object Float64Array]"},25208:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BLANK_URL=t.relativeFirstCharacters=t.whitespaceEscapeCharsRegex=t.urlSchemeRegex=t.ctrlCharactersRegex=t.htmlCtrlEntityRegex=t.htmlEntitiesRegex=t.invalidProtocolRegex=void 0,t.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,t.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,t.htmlCtrlEntityRegex=/&(newline|tab);/gi,t.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,t.urlSchemeRegex=/^.+(:|:)/gim,t.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,t.relativeFirstCharacters=[".","/"],t.BLANK_URL="about:blank"},27071:(e,t,n)=>{"use strict";let r;n.d(t,{YH:()=>eu,Gu:()=>I,VR:()=>D,Je:()=>ek,OF:()=>H,$t:()=>ex,sj:()=>$,iR:()=>N,Nb:()=>X,om:()=>eC,vB:()=>eN,FB:()=>eT,Pe:()=>ed,sU:()=>W,EY:()=>d,ZX:()=>ef,vS:()=>T,Fh:()=>v,QR:()=>eE,y$:()=>eU,zK:()=>E,kn:()=>ej,MK:()=>A});let i=[],a=[],s="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<s.length;e++)(e%2?a:i).push(t+=s[e]);function o(e){return e>=127462&&e<=127487}function l(e,t,n){if(t==e.length)return t;t&&u(e.charCodeAt(t))&&h(e.charCodeAt(t-1))&&t--;let r=c(e,t);for(t+=p(r);t<e.length;){let s=c(e,t);if(8205==r||8205==s||n&&function(e){if(e<768)return!1;for(let t=0,n=i.length;;){let r=t+n>>1;if(e<i[r])n=r;else{if(!(e>=a[r]))return!0;t=r+1}if(t==n)return!1}}(s))t+=p(s),r=s;else if(o(s)){let n=0,r=t-2;for(;r>=0&&o(c(e,r));)n++,r-=2;if(n%2==0)break;t+=2}else break}return t}function c(e,t){let n=e.charCodeAt(t);if(!h(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return u(r)?(n-55296<<10)+(r-56320)+65536:n}function u(e){return e>=56320&&e<57344}function h(e){return e>=55296&&e<56320}function p(e){return e<65536?1:2}class d{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=x(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),m.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=x(this,e,t);let n=[];return this.decompose(e,t,n,0),m.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new y(this),i=new y(e);for(let e=t,a=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(e=1){return new y(this,e)}iterRange(e,t=this.length){return new b(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new k(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new f(e):m.from(f.split(e,[])):d.empty}}class f extends d{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.text[i],s=r+a.length;if((t?n:s)>=e)return new _(r,s,n,a);r=s+1,n++}}decompose(e,t,n,r){var i;let a=e<=0&&t>=this.length?this:new f((i=this.text,g(i,[""],e,t)),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=g(a.text,e.text.slice(),0,a.length);if(t.length<=32)n.push(new f(t,e.length+a.length));else{let e=t.length>>1;n.push(new f(t.slice(0,e)),new f(t.slice(e)))}}else n.push(a)}replace(e,t,n){var r;if(!(n instanceof f))return super.replace(e,t,n);[e,t]=x(this,e,t);let i=g(this.text,g(n.text,(r=this.text,g(r,[""],0,e))),t),a=this.length+n.length-(t-e);return i.length<=32?new f(i,a):m.from(f.split(i,[]),a)}sliceString(e,t=this.length,n="\n"){[e,t]=x(this,e,t);let r="";for(let i=0,a=0;i<=t&&a<this.text.length;a++){let s=this.text[a],o=i+s.length;i>e&&a&&(r+=n),e<o&&t>i&&(r+=s.slice(Math.max(0,e-i),t-i)),i=o+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,32==n.length&&(t.push(new f(n,r)),n=[],r=-1);return r>-1&&t.push(new f(n,r)),t}}class m extends d{constructor(e,t){for(let n of(super(),this.children=e,this.length=t,this.lines=0,e))this.lines+=n.lines}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.children[i],s=r+a.length,o=n+a.lines-1;if((t?o:s)>=e)return a.lineInner(e,t,n,r);r=s+1,n=o+1}}decompose(e,t,n,r){for(let i=0,a=0;a<=t&&i<this.children.length;i++){let s=this.children[i],o=a+s.length;if(e<=o&&t>=a){let i=r&(a<=e|2*(o>=t));a>=e&&o<=t&&!i?n.push(s):s.decompose(e-a,t-a,n,i)}a=o+1}}replace(e,t,n){if([e,t]=x(this,e,t),n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let a=this.children[r],s=i+a.length;if(e>=i&&t<=s){let o=a.replace(e-i,t-i,n),l=this.lines-a.lines+o.lines;if(o.lines<l>>4&&o.lines>l>>6){let i=this.children.slice();return i[r]=o,new m(i,this.length-(t-e)+n.length)}return super.replace(i,s,o)}i=s+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=x(this,e,t);let r="";for(let i=0,a=0;i<this.children.length&&a<=t;i++){let s=this.children[i],o=a+s.length;a>e&&i&&(r+=n),e<o&&t>a&&(r+=s.sliceString(e-a,t-a,n)),a=o+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof m))return 0;let n=0,[r,i,a,s]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==a||i==s)return n;let o=this.children[r],l=e.children[i];if(o!=l)return n+o.scanIdentical(l,t);n+=o.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new f(n,t)}let r=Math.max(32,n>>5),i=r<<1,a=r>>1,s=[],o=0,l=-1,c=[];function u(){0!=o&&(s.push(1==c.length?c[0]:m.from(c,l)),l=-1,o=c.length=0)}for(let t of e)!function e(t){let n;if(t.lines>i&&t instanceof m)for(let n of t.children)e(n);else t.lines>a&&(o>a||!o)?(u(),s.push(t)):t instanceof f&&o&&(n=c[c.length-1])instanceof f&&t.lines+n.lines<=32?(o+=t.lines,l+=t.length+1,c[c.length-1]=new f(n.text.concat(t.text),n.length+1+t.length)):(o+t.lines>r&&u(),o+=t.lines,l+=t.length+1,c.push(t))}(t);return u(),1==s.length?s[0]:new m(s,t)}}function g(e,t,n=0,r=1e9){for(let i=0,a=0,s=!0;a<e.length&&i<=r;a++){let o=e[a],l=i+o.length;l>=n&&(l>r&&(o=o.slice(0,r-i)),i<n&&(o=o.slice(n-i)),s?(t[t.length-1]+=o,s=!1):t.push(o)),i=l+1}return t}d.empty=new f([""],0);class y{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof f?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],a=i>>1,s=r instanceof f?r.text.length:r.children.length;if(a==(t>0?s:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof f){let i=r.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[a+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof f?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class b{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new y(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class k{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"u">typeof Symbol&&(d.prototype[Symbol.iterator]=function(){return this.iter()},y.prototype[Symbol.iterator]=b.prototype[Symbol.iterator]=k.prototype[Symbol.iterator]=function(){return this});class _{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}function x(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}function E(e,t,n=!0,r=!0){return function(e,t,n=!0,r=!0){return(n?l:function(e,t,n){for(;t>0;){let r=l(e,t-2,n);if(r<t)return r;t--}return 0})(e,t,r)}(e,t,n,r)}function T(e,t){let n=e.charCodeAt(t);if(!(n>=55296&&n<56320)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return r>=56320&&r<57344?(n-55296<<10)+(r-56320)+65536:n}function A(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}function v(e){return e<65536?1:2}let w=/\r\n?|\n/;var S,C,N=((S=N||(N={}))[S.Simple=0]="Simple",S[S.TrackDel=1]="TrackDel",S[S.TrackBefore=2]="TrackBefore",S[S.TrackAfter=3]="TrackAfter",S);class I{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],a=this.sections[t++];a<0?(e(n,r,i),r+=i):r+=a,n+=i}}iterChangedRanges(e,t=!1){L(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];r<0?e.push(n,r):e.push(r,n)}return new I(e)}composeDesc(e){return this.empty?e:e.empty?this:P(this,e)}mapDesc(e,t=!1){return e.empty?this:R(this,e,t)}mapPos(e,t=-1,n=N.Simple){let r=0,i=0;for(let a=0;a<this.sections.length;){let s=this.sections[a++],o=this.sections[a++],l=r+s;if(o<0){if(l>e)return i+(e-r);i+=s}else{if(n!=N.Simple&&l>=e&&(n==N.TrackDel&&r<e&&l>e||n==N.TrackBefore&&r<e||n==N.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!s)return e==r||t<0?i:i+o;i+=o}r=l}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=this.sections[n++],a=this.sections[n++],s=r+i;if(a>=0&&r<=t&&s>=e)return!(r<e)||!(s>t)||"cover";r=s}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw RangeError("Invalid JSON representation of ChangeDesc");return new I(e)}static create(e){return new I(e)}}class D extends I{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError("Applying change set to a document with the wrong length");return L(this,(t,n,r,i,a)=>e=e.replace(r,r+(n-t),a),!1),e}mapDesc(e,t=!1){return R(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,i=0;r<t.length;r+=2){let a=t[r],s=t[r+1];if(s>=0){t[r]=s,t[r+1]=a;let o=r>>1;for(;n.length<o;)n.push(d.empty);n.push(a?e.slice(i,i+a):d.empty)}i+=a}return new D(t,n)}compose(e){return this.empty?e:e.empty?this:P(this,e,!0)}map(e,t=!1){return e.empty?this:R(this,e,t,!0)}iterChanges(e,t=!1){L(this,e,t)}get desc(){return I.create(this.sections)}filter(e){let t=[],n=[],r=[],i=new F(this);e:for(let a=0,s=0;;){let o=a==e.length?1e9:e[a++];for(;s<o||s==o&&0==i.len;){if(i.done)break e;let e=Math.min(i.len,o-s);O(r,e,-1);let a=-1==i.ins?-1:0==i.off?i.ins:0;O(t,e,a),a>0&&M(n,t,i.text),i.forward(e),s+=e}let l=e[a++];for(;s<l;){if(i.done)break e;let e=Math.min(i.len,l-s);O(t,e,-1),O(r,e,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(e),s+=e}}return{changes:new D(t,n),filtered:I.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):0==r?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let r=[],i=[],a=0,s=null;function o(e=!1){if(!e&&!r.length)return;a<t&&O(r,t-a,-1);let n=new D(r,i);s=s?s.compose(n.map(s)):n,r=[],i=[],a=0}return!function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof D){if(l.length!=t)throw RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);o(),s=s?s.compose(l.map(s)):l}else{let{from:e,to:s=e,insert:c}=l;if(e>s||e<0||s>t)throw RangeError(`Invalid change range ${e} to ${s} (in doc of length ${t})`);let u=c?"string"==typeof c?d.of(c.split(n||w)):c:d.empty,h=u.length;if(e==s&&0==h)return;e<a&&o(),e>a&&O(r,e-a,-1),O(r,s-e,h),M(i,r,u),a=s}}(e),o(!s),s}static empty(e){return new D(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];if("number"==typeof i)t.push(i,-1);else if(!Array.isArray(i)||"number"!=typeof i[0]||i.some((e,t)=>t&&"string"!=typeof e))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==i.length)t.push(i[0],0);else{for(;n.length<r;)n.push(d.empty);n[r]=d.of(i.slice(1)),t.push(i[0],n[r].length)}}return new D(t,n)}static createSet(e,t){return new D(e,t)}}function O(e,t,n,r=!1){if(0==t&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function M(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(d.empty);e.push(n)}}function L(e,t,n){let r=e.inserted;for(let i=0,a=0,s=0;s<e.sections.length;){let o=e.sections[s++],l=e.sections[s++];if(l<0)i+=o,a+=o;else{let c=i,u=a,h=d.empty;for(;c+=o,u+=l,l&&r&&(h=h.append(r[s-2>>1])),!n&&s!=e.sections.length&&!(e.sections[s+1]<0);)o=e.sections[s++],l=e.sections[s++];t(i,c,a,u,h),i=c,a=u}}}function R(e,t,n,r=!1){let i=[],a=r?[]:null,s=new F(e),o=new F(t);for(let e=-1;;)if(s.done&&o.len||o.done&&s.len)throw Error("Mismatched change set lengths");else if(-1==s.ins&&-1==o.ins){let e=Math.min(s.len,o.len);O(i,e,-1),s.forward(e),o.forward(e)}else if(o.ins>=0&&(s.ins<0||e==s.i||0==s.off&&(o.len<s.len||o.len==s.len&&!n))){let t=o.len;for(O(i,o.ins,-1);t;){let n=Math.min(s.len,t);s.ins>=0&&e<s.i&&s.len<=n&&(O(i,0,s.ins),a&&M(a,i,s.text),e=s.i),s.forward(n),t-=n}o.next()}else if(s.ins>=0){let t=0,n=s.len;for(;n;)if(-1==o.ins){let e=Math.min(n,o.len);t+=e,n-=e,o.forward(e)}else if(0==o.ins&&o.len<n)n-=o.len,o.next();else break;O(i,t,e<s.i?s.ins:0),a&&e<s.i&&M(a,i,s.text),e=s.i,s.forward(s.len-n)}else if(s.done&&o.done)return a?D.createSet(i,a):I.create(i);else throw Error("Mismatched change set lengths")}function P(e,t,n=!1){let r=[],i=n?[]:null,a=new F(e),s=new F(t);for(let e=!1;;)if(a.done&&s.done)return i?D.createSet(r,i):I.create(r);else if(0==a.ins)O(r,a.len,0,e),a.next();else if(0!=s.len||s.done)if(a.done||s.done)throw Error("Mismatched change set lengths");else{let t=Math.min(a.len2,s.len),n=r.length;if(-1==a.ins){let n=-1==s.ins?-1:s.off?0:s.ins;O(r,t,n,e),i&&n&&M(i,r,s.text)}else -1==s.ins?(O(r,a.off?0:a.len,t,e),i&&M(i,r,a.textBit(t))):(O(r,a.off?0:a.len,s.off?0:s.ins,e),i&&!s.off&&M(i,r,s.text));e=(a.ins>t||s.ins>=0&&s.len>t)&&(e||r.length>n),a.forward2(t),s.forward(t)}else O(r,0,s.ins,e),i&&M(i,r,s.text),s.next()}class F{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return -2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?d.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?d.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class B{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 0xffffff==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new B(n,r,this.flags)}extend(e,t=e,n=0){if(e<=this.anchor&&t>=this.anchor)return H.range(e,t,void 0,void 0,n);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return H.range(this.anchor,r,void 0,void 0,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid JSON representation for SelectionRange");return H.range(e.anchor,e.head)}static create(e,t,n){return new B(e,t,n)}}class H{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:H.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new H([this.main],0)}addRange(e,t=!0){return H.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,H.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new H(e.ranges.map(e=>B.fromJSON(e)),e.main)}static single(e,t=e){return new H([H.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let i=e[r];if(i.empty?i.from<=n:i.from<n)return H.normalized(e.slice(),t);n=i.to}return new H(e,t)}static cursor(e,t=0,n,r){return B.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n))|(null!=r?r:0xffffff)<<6)}static range(e,t,n,r,i){let a=(null!=n?n:0xffffff)<<6|(null==r?7:Math.min(6,r));return i||e==t||(i=t<e?1:-1),t<e?B.create(t,e,48|a):B.create(e,t,(i?i<0?8:16:0)|a)}static normalized(e,t=0){let n=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(n);for(let n=1;n<e.length;n++){let r=e[n],i=e[n-1];if(r.empty?r.from<=i.to:r.from<i.to){let a=i.from,s=Math.max(r.to,i.to);n<=t&&t--,e.splice(--n,2,r.anchor>r.head?H.range(s,a):H.range(a,s))}}return new H(e,t)}}function U(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError("Selection points outside of document")}let j=0;class ${constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=j++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(e={}){return new $(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(!e.combine?z:(e,t)=>e===t),!!e.static,e.enables)}of(e){return new G([],this,0,e)}compute(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new G(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new G(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}}function z(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}class G{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=j++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,a=e[i]>>1,s=2==this.type,o=!1,l=!1,c=[];for(let n of this.dependencies)"doc"==n?o=!0:"selection"==n?l=!0:((null!=(t=e[n.id])?t:1)&1)==0&&c.push(e[n.id]);return{create:e=>(e.values[a]=n(e),1),update(e,t){if(o&&t.docChanged||l&&(t.docChanged||t.selection)||q(e,c)){let t=n(e);if(s?!K(t,e.values[a],r):!r(t,e.values[a]))return e.values[a]=t,1}return 0},reconfigure:(e,t)=>{let o,l=t.config.address[i];if(null!=l){let i=en(t,l);if(this.dependencies.every(n=>n instanceof $?t.facet(n)===e.facet(n):!(n instanceof W)||t.field(n,!1)==e.field(n,!1))||(s?K(o=n(e),i,r):r(o=n(e),i)))return e.values[a]=i,0}else o=n(e);return e.values[a]=o,1}}}}function K(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function q(e,t){let n=!1;for(let r of t)1&et(e,r)&&(n=!0);return n}let Y=$.define({static:!0});class W{constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(e){let t=new W(j++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Y).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>{let r=e.facet(Y),i=n.facet(Y),a;return(a=r.find(e=>e.field==this))&&a!=i.find(e=>e.field==this)?(e.values[t]=a.create(e),1):null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,Y.of({field:this,create:e})]}get extension(){return this}}function V(e){return t=>new Q(t,e)}let X={highest:V(0),high:V(1),default:V(2),low:V(3),lowest:V(4)};class Q{constructor(e,t){this.inner=e,this.prec=t}}class Z{of(e){return new J(this,e)}reconfigure(e){return Z.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class J{constructor(e,t){this.compartment=e,this.inner=t}}class ee{constructor(e,t,n,r,i,a){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){var r,i,a;let s,o,l=[],c=Object.create(null),u=new Map;for(let n of(r=e,i=t,a=u,s=[[],[],[],[],[]],o=new Map,!function e(t,n){let r=o.get(t);if(null!=r){if(r<=n)return;let e=s[r].indexOf(t);e>-1&&s[r].splice(e,1),t instanceof J&&a.delete(t.compartment)}if(o.set(t,n),Array.isArray(t))for(let r of t)e(r,n);else if(t instanceof J){if(a.has(t.compartment))throw RangeError("Duplicate use of compartment in extensions");let r=i.get(t.compartment)||t.inner;a.set(t.compartment,r),e(r,n)}else if(t instanceof Q)e(t.inner,t.prec);else if(t instanceof W)s[n].push(t),t.provides&&e(t.provides,n);else if(t instanceof G)s[n].push(t),t.facet.extensions&&e(t.facet.extensions,2);else{let r=t.extension;if(!r)throw Error(`Unrecognized extension value in extension set (${t}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(r,n)}}(r,2),s.reduce((e,t)=>e.concat(t))))n instanceof W?l.push(n):(c[n.facet.id]||(c[n.facet.id]=[])).push(n);let h=Object.create(null),p=[],d=[];for(let e of l)h[e.id]=d.length<<1,d.push(t=>e.slot(t));let f=null==n?void 0:n.config.facets;for(let e in c){let t=c[e],r=t[0].facet,i=f&&f[e]||[];if(t.every(e=>0==e.type))if(h[r.id]=p.length<<1|1,z(i,t))p.push(n.facet(r));else{let e=r.combine(t.map(e=>e.value));p.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}else{for(let e of t)0==e.type?(h[e.id]=p.length<<1|1,p.push(e.value)):(h[e.id]=d.length<<1,d.push(t=>e.dynamicSlot(t)));h[r.id]=d.length<<1,d.push(e=>(function(e,t,n){let r=n.map(t=>e[t.id]),i=n.map(e=>e.type),a=r.filter(e=>!(1&e)),s=e[t.id]>>1;function o(e){let n=[];for(let t=0;t<r.length;t++){let a=en(e,r[t]);if(2==i[t])for(let e of a)n.push(e);else n.push(a)}return t.combine(n)}return{create(e){for(let t of r)et(e,t);return e.values[s]=o(e),1},update(e,n){if(!q(e,a))return 0;let r=o(e);return t.compare(r,e.values[s])?0:(e.values[s]=r,1)},reconfigure(e,i){let a=q(e,r),l=i.config.facets[t.id],c=i.facet(t);if(l&&!a&&z(n,l))return e.values[s]=c,0;let u=o(e);return t.compare(u,c)?(e.values[s]=c,0):(e.values[s]=u,1)}}})(e,r,t))}}return new ee(e,u,d.map(e=>e(h)),h,p,c)}}function et(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function en(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}let er=$.define(),ei=$.define({combine:e=>e.some(e=>e),static:!0}),ea=$.define({combine:e=>e.length?e[0]:void 0,static:!0}),es=$.define(),eo=$.define(),el=$.define(),ec=$.define({combine:e=>!!e.length&&e[0]});class eu{constructor(e,t){this.type=e,this.value=t}static define(){return new eh}}class eh{of(e){return new eu(this,e)}}class ep{constructor(e){this.map=e}of(e){return new ed(this,e)}}class ed{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new ed(this.type,t)}is(e){return this.type==e}static define(e={}){return new ep(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}ed.reconfigure=ed.define(),ed.appendConfig=ed.define();class ef{constructor(e,t,n,r,i,a){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=a,this._doc=null,this._state=null,n&&U(n,t.newLength),i.some(e=>e.type==ef.time)||(this.annotations=i.concat(ef.time.of(Date.now())))}static create(e,t,n,r,i,a){return new ef(e,t,n,r,i,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ef.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function em(e,t,n){var r;let i,a,s;return n?(i=t.changes,a=D.empty(t.changes.length),s=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),a=e.changes.mapDesc(t.changes,!0),s=e.changes.compose(i)),{changes:s,selection:t.selection?t.selection.map(a):null==(r=e.selection)?void 0:r.map(i),effects:ed.mapEffects(e.effects,i).concat(ed.mapEffects(t.effects,a)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function eg(e,t,n){let r=t.selection,i=eb(t.annotations);return t.userEvent&&(i=i.concat(ef.userEvent.of(t.userEvent))),{changes:t.changes instanceof D?t.changes:D.of(t.changes||[],n,e.facet(ea)),selection:r&&(r instanceof H?r:H.single(r.anchor,r.head)),effects:eb(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}ef.time=eu.define(),ef.userEvent=eu.define(),ef.addToHistory=eu.define(),ef.remote=eu.define();let ey=[];function eb(e){return null==e?ey:Array.isArray(e)?e:[e]}var ek=((C=ek||(ek={}))[C.Word=0]="Word",C[C.Space=1]="Space",C[C.Other=2]="Other",C);let e_=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{r=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class ex{constructor(e,t,n,r,i,a){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)et(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null==n){if(t)throw RangeError("Field is not present in this state");return}return et(this,n),en(this,n)}update(...e){return function e(t,n,r){let i=eg(t,n.length?n[0]:{},t.doc.length);n.length&&!1===n[0].filter&&(r=!1);for(let e=1;e<n.length;e++){!1===n[e].filter&&(r=!1);let a=!!n[e].sequential;i=em(i,eg(t,n[e],a?i.changes.newLength:t.doc.length),a)}let a=ef.create(t,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return function(e){let t=e.startState,n=t.facet(el),r=e;for(let i=n.length-1;i>=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=em(r,eg(t,a,e.changes.newLength),!0))}return r==e?e:ef.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(r?function(t){let n=t.startState,r=!0;for(let e of n.facet(es)){let n=e(t);if(!1===n){r=!1;break}Array.isArray(n)&&(r=!0===r?n:function(e,t){let n=[];for(let r=0,i=0;;){let a,s;if(r<e.length&&(i==t.length||t[i]>=e[r]))a=e[r++],s=e[r++];else{if(!(i<t.length))return n;a=t[i++],s=t[i++]}!n.length||n[n.length-1]<a?n.push(a,s):n[n.length-1]<s&&(n[n.length-1]=s)}}(r,n))}if(!0!==r){let e,i;if(!1===r)i=t.changes.invertedDesc,e=D.empty(n.doc.length);else{let n=t.changes.filter(r);e=n.changes,i=n.filtered.mapDesc(n.changes).invertedDesc}t=ef.create(n,e,t.selection&&t.selection.map(i),ed.mapEffects(t.effects,i),t.annotations,t.scrollIntoView)}let i=n.facet(eo);for(let r=i.length-1;r>=0;r--){let a=i[r](t);t=a instanceof ef?a:Array.isArray(a)&&1==a.length&&a[0]instanceof ef?a[0]:e(n,eb(a),!1)}return t}(a):a)}(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:r,compartments:i}=n;for(let t of e.effects)t.is(Z.reconfigure)?(n&&(i=new Map,n.compartments.forEach((e,t)=>i.set(t,e)),n=null),i.set(t.value.compartment,t.value.extension)):t.is(ed.reconfigure)?(n=null,r=t.value):t.is(ed.appendConfig)&&(n=null,r=eb(r).concat(t.value));t=n?e.startState.values.slice():new ex(n=ee.resolve(r,i,this),this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values;let a=e.startState.facet(ei)?e.newSelection:e.newSelection.asSingle();new ex(n,e.newDoc,a,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:H.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],a=eb(n.effects);for(let n=1;n<t.ranges.length;n++){let s=e(t.ranges[n]),o=this.changes(s.changes),l=o.map(r);for(let e=0;e<n;e++)i[e]=i[e].map(l);let c=r.mapDesc(o,!0);i.push(s.range.map(c)),r=r.compose(l),a=ed.mapEffects(a,l).concat(ed.mapEffects(eb(s.effects),c))}return{changes:r,selection:H.create(i,t.mainIndex),effects:a}}changes(e=[]){return e instanceof D?e:D.of(e,this.doc.length,this.facet(ex.lineSeparator))}toText(e){return d.of(e.split(this.facet(ex.lineSeparator)||w))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(et(this,t),en(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof W&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||"string"!=typeof e.doc)throw RangeError("Invalid JSON representation for EditorState");let r=[];if(n){for(let t in n)if(Object.prototype.hasOwnProperty.call(e,t)){let i=n[t],a=e[t];r.push(i.init(e=>i.spec.fromJSON(a,e)))}}return ex.create({doc:e.doc,selection:H.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=ee.resolve(e.extensions||[],new Map),n=e.doc instanceof d?e.doc:d.of((e.doc||"").split(t.staticFacet(ex.lineSeparator)||w)),r=e.selection?e.selection instanceof H?e.selection:H.single(e.selection.anchor,e.selection.head):H.single(0);return U(r,n.length),t.staticFacet(ei)||(r=r.asSingle()),new ex(t,n,r,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(ex.tabSize)}get lineBreak(){return this.facet(ex.lineSeparator)||"\n"}get readOnly(){return this.facet(ec)}phrase(e,...t){for(let t of this.facet(ex.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]})),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(er))for(let a of i(this,t,n))Object.prototype.hasOwnProperty.call(a,e)&&r.push(a[e]);return r}charCategorizer(e){var t;let n=this.languageDataAt("wordChars",e);return t=n.length?n[0]:"",e=>{if(!/\S/.test(e))return ek.Space;if(function(e){if(r)return r.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||e_.test(n)))return!0}return!1}(e))return ek.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return ek.Word;return ek.Other}}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),a=e-n,s=e-n;for(;a>0;){let e=E(t,a,!1);if(i(t.slice(e,a))!=ek.Word)break;a=e}for(;s<r;){let e=E(t,s);if(i(t.slice(s,e))!=ek.Word)break;s=e}return a==s?null:H.range(a+n,s+n)}}function eE(e,t,n={}){let r={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],a=r[e];if(void 0===a)r[e]=i;else if(a===i||void 0===i);else if(Object.hasOwnProperty.call(n,e))r[e]=n[e](a,i);else throw Error("Config merge conflict for field "+e)}for(let e in t)void 0===r[e]&&(r[e]=t[e]);return r}ex.allowMultipleSelections=ei,ex.tabSize=$.define({combine:e=>e.length?e[0]:4}),ex.lineSeparator=ea,ex.readOnly=ec,ex.phrases=$.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),ex.languageData=er,ex.changeFilter=es,ex.transactionFilter=eo,ex.transactionExtender=el,Z.reconfigure=ed.define();class eT{eq(e){return this==e}range(e,t=e){return ev.create(e,t,this)}}function eA(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}eT.prototype.startSide=eT.prototype.endSide=0,eT.prototype.point=!1,eT.prototype.mapMode=N.TrackDel;class ev{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new ev(e,t,n)}}function ew(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class eS{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let a=r,s=i.length;;){if(a==s)return a;let r=a+s>>1,o=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==a)return o>=0?a:s;o>=0?s=r:a=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),a=this.findIndex(n,1e9,!1,i);i<a;i++)if(!1===r(this.from[i]+e,this.to[i]+e,this.value[i]))return!1}map(e,t){let n=[],r=[],i=[],a=-1,s=-1;for(let o=0;o<this.value.length;o++){let l=this.value[o],c=this.from[o]+e,u=this.to[o]+e,h,p;if(c==u){let e=t.mapPos(c,l.startSide,l.mapMode);if(null==e||(h=p=e,l.startSide!=l.endSide&&(p=t.mapPos(c,l.endSide))<h))continue}else if((h=t.mapPos(c,l.startSide))>(p=t.mapPos(u,l.endSide))||h==p&&l.startSide>0&&l.endSide<=0)continue;0>(p-h||l.endSide-l.startSide)||(a<0&&(a=h),l.point&&(s=Math.max(s,p-h)),n.push(l),r.push(h-a),i.push(p-a))}return{mapped:n.length?new eS(r,i,n,s):null,pos:a}}}class eC{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new eC(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,a=e.filter;if(0==t.length&&!a)return this;if(n&&(t=t.slice().sort(ew)),this.isEmpty)return t.length?eC.of(t):this;let s=new eD(this,null,-1).goto(0),o=0,l=[],c=new eN;for(;s.value||o<t.length;)if(o<t.length&&(s.from-t[o].from||s.startSide-t[o].value.startSide)>=0){let e=t[o++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==s.rangeIndex&&s.chunkIndex<this.chunk.length&&(o==t.length||this.chunkEnd(s.chunkIndex)<t[o].from)&&(!a||r>this.chunkEnd(s.chunkIndex)||i<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!a||r>s.to||i<s.from||a(s.from,s.to,s.value))&&!c.addInner(s.from,s.to,s.value)&&l.push(ev.create(s.from,s.to,s.value)),s.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?eC.empty:this.nextLayer.update({add:l,filter:a,filterFrom:r,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],r=-1;for(let i=0;i<this.chunk.length;i++){let a=this.chunkPos[i],s=this.chunk[i],o=e.touchesRange(a,a+s.length);if(!1===o)r=Math.max(r,s.maxPoint),t.push(s),n.push(e.mapPos(a));else if(!0===o){let{mapped:i,pos:o}=s.map(a,e);i&&(r=Math.max(r,i.maxPoint),t.push(i),n.push(o))}}let i=this.nextLayer.map(e);return 0==t.length?i:new eC(n,t,i||eC.empty,r)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],a=this.chunk[r];if(t>=i&&e<=i+a.length&&!1===a.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return eO.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return eO.from(e).goto(t)}static compare(e,t,n,r,i=-1){let a=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),s=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),o=eI(a,s,n),l=new eL(a,o,i),c=new eL(s,o,i);n.iterGaps((e,t,n)=>eR(l,e,c,t,n,r)),n.empty&&0==n.length&&eR(l,0,c,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=0x3b9ac9ff);let i=e.filter(e=>!e.isEmpty&&0>t.indexOf(e)),a=t.filter(t=>!t.isEmpty&&0>e.indexOf(t));if(i.length!=a.length)return!1;if(!i.length)return!0;let s=eI(i,a),o=new eL(i,s,0).goto(n),l=new eL(a,s,0).goto(n);for(;;){if(o.to!=l.to||!eP(o.active,l.active)||o.point&&(!l.point||!eA(o.point,l.point)))return!1;if(o.to>r)return!0;o.next(),l.next()}}static spans(e,t,n,r,i=-1){let a=new eL(e,null,i).goto(t),s=t,o=a.openStart;for(;;){let e=Math.min(a.to,n);if(a.point){let n=a.activeForPoint(a.to),i=a.pointFrom<t?n.length+1:a.point.startSide<0?n.length:Math.min(n.length,o);r.point(s,e,a.point,n,i,a.pointRank),o=Math.min(a.openEnd(e),n.length)}else e>s&&(r.span(s,e,a.active,o),o=a.openEnd(e));if(a.to>n)return o+(a.point&&a.to>n?1:0);s=a.to,a.next()}}static of(e,t=!1){let n=new eN;for(let r of e instanceof ev?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(ew(t,r)>0)return e.slice().sort(ew);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return eC.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=eC.empty;r=r.nextLayer)t=new eC(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}eC.empty=new eC([],[],null,-1),eC.empty.nextLayer=eC.empty;class eN{finishChunk(e){this.chunks.push(new eS(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new eN)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&0>(e-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if(0>(e-this.lastTo||t.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(eC.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=eC.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function eI(e,t,n){let r=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&r.set(t.chunk[e],t.chunkPos[e]);let i=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let a=r.get(e.chunk[t]);null==a||(n?n.mapPos(a):a)!=e.chunkPos[t]||(null==n?void 0:n.touchesRange(a,a+e.chunk[t].length))||i.add(e.chunk[t])}return i}class eD{constructor(e,t,n,r=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){0>(this.to-e||this.endSide-t)&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class eO{constructor(e){this.heap=e}static from(e,t=null,n=-1){let r=[];for(let i=0;i<e.length;i++)for(let a=e[i];!a.isEmpty;a=a.nextLayer)a.maxPoint>=n&&r.push(new eD(a,t,n,i));return 1==r.length?r[0]:new eO(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)eM(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)eM(this.heap,e);0>(this.to-e||this.value.endSide-t)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),eM(this.heap,0)}}}function eM(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let i=e[r];if(r+1<e.length&&i.compare(e[r+1])>=0&&(i=e[r+1],r++),0>n.compare(i))break;e[r]=n,e[t]=i,t=r}}class eL{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=eO.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t);)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){eF(this.active,e),eF(this.activeTo,e),eF(this.activeRank,e),this.minActive=eH(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t<this.activeRank.length&&(i-this.activeRank[t]||r-this.activeTo[t])>0;)t++;eB(this.active,t,n),eB(this.activeTo,t,r),eB(this.activeRank,t,i),e&&eB(e,t,this.cursor.from),this.minActive=eH(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&0>(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&eF(n,r)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let e=this.cursor.value;if(e.point)if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}else this.addActive(n),this.cursor.next()}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function eR(e,t,n,r,i,a){e.goto(t),n.goto(r);let s=r+i,o=r,l=r-t,c=!!a.boundChange;for(let t=!1;;){let r=e.to+l-n.to,i=r||e.endSide-n.endSide,u=i<0?e.to+l:n.to,h=Math.min(u,s);if(e.point||n.point?(e.point&&n.point&&eA(e.point,n.point)&&eP(e.activeForPoint(e.to),n.activeForPoint(n.to))||a.comparePoint(o,h,e.point,n.point),t=!1):(t&&a.boundChange(o),h>o&&!eP(e.active,n.active)&&a.compareRange(o,h,e.active,n.active),c&&h<s&&(r||e.openEnd(u)!=n.openEnd(u))&&(t=!0)),u>s)break;o=u,i<=0&&e.next(),i>=0&&n.next()}}function eP(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!eA(e[n],t[n]))return!1;return!0}function eF(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function eB(e,t,n){for(let n=e.length-1;n>=t;n--)e[n+1]=e[n];e[t]=n}function eH(e,t){let n=-1,r=1e9;for(let i=0;i<t.length;i++)0>(t[i]-r||e[i].endSide-e[n].endSide)&&(n=i,r=t[i]);return n}function eU(e,t,n=e.length){let r=0;for(let i=0;i<n&&i<e.length;)9==e.charCodeAt(i)?(r+=t-r%t,i++):(r++,i=E(e,i));return r}function ej(e,t,n,r){for(let r=0,i=0;;){if(i>=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=E(e,r)}return!0===r?-1:e.length}},27629:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let r={}.hasOwnProperty;function i(e,t){let n=t||{};function i(t,...n){let a=i.invalid,s=i.handlers;if(t&&r.call(t,e)){let n=String(t[e]);a=r.call(s,n)?s[n]:i.unknown}if(a)return a.call(this,t,...n)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}},27866:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="week",a="month",s="quarter",o="year",l="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|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,p=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},d="en",f={};f[d]={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(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}};var m="$isDayjsObject",g=function(e){return e instanceof _||!(!e||!e[m])},y=function e(t,n,r){var i;if(!t)return d;if("string"==typeof t){var a=t.toLowerCase();f[a]&&(i=a),n&&(f[a]=n,i=a);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var o=t.name;f[o]=t,i=o}return!r&&i&&(d=i),i||!r&&d},b=function(e,t){if(g(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},k={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+p(Math.floor(n/60),2,"0")+":"+p(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,a),s=n-i<0,o=t.clone().add(r+(s?-1:1),a);return+(-(r+(n-i)/(s?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:a,y:o,w:i,d:"day",D:l,h:r,m:n,s:t,ms:e,Q:s})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};k.l=y,k.i=g,k.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function p(e){this.$L=y(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var d=p.prototype;return d.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(u);if(r){var i=r[2]-1||0,a=(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,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},d.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},d.$utils=function(){return k},d.isValid=function(){return this.$d.toString()!==c},d.isSame=function(e,t){var n=b(e);return this.startOf(t)<=n&&n<=this.endOf(t)},d.isAfter=function(e,t){return b(e)<this.startOf(t)},d.isBefore=function(e,t){return this.endOf(t)<b(e)},d.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(e,s){var c=this,u=!!k.u(s)||s,h=k.p(e),p=function(e,t){var n=k.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?n:n.endOf("day")},d=function(e,t){return k.w(c.toDate()[e].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},f=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case o:return u?p(1,0):p(31,11);case a:return u?p(1,m):p(0,m+1);case i:var b=this.$locale().weekStart||0,_=(f<b?f+7:f)-b;return p(u?g-_:g+(6-_),m);case"day":case l:return d(y+"Hours",0);case r:return d(y+"Minutes",1);case n:return d(y+"Seconds",2);case t:return d(y+"Milliseconds",3);default:return this.clone()}},d.endOf=function(e){return this.startOf(e,!1)},d.$set=function(i,s){var c,u=k.p(i),h="set"+(this.$u?"UTC":""),p=((c={}).day=h+"Date",c[l]=h+"Date",c[a]=h+"Month",c[o]=h+"FullYear",c[r]=h+"Hours",c[n]=h+"Minutes",c[t]=h+"Seconds",c[e]=h+"Milliseconds",c)[u],d="day"===u?this.$D+(s-this.$W):s;if(u===a||u===o){var f=this.clone().set(l,1);f.$d[p](d),f.init(),this.$d=f.set(l,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},d.set=function(e,t){return this.clone().$set(e,t)},d.get=function(e){return this[k.p(e)]()},d.add=function(e,s){var l,c=this;e=Number(e);var u=k.p(s),h=function(t){var n=b(c);return k.w(n.date(n.date()+Math.round(t*e)),c)};if(u===a)return this.set(a,this.$M+e);if(u===o)return this.set(o,this.$y+e);if("day"===u)return h(1);if(u===i)return h(7);var p=((l={})[n]=6e4,l[r]=36e5,l[t]=1e3,l)[u]||1,d=this.$d.getTime()+e*p;return k.w(d,this)},d.subtract=function(e,t){return this.add(-1*e,t)},d.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),a=this.$H,s=this.$m,o=this.$M,l=n.weekdays,u=n.months,p=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return k.s(a%12||12,e,"0")},m=p||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return o+1;case"MM":return k.s(o+1,2,"0");case"MMM":return d(n.monthsShort,o,u,3);case"MMMM":return d(u,o);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return k.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(a,s,!0);case"A":return m(a,s,!1);case"m":return String(s);case"mm":return k.s(s,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},d.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},d.diff=function(e,l,c){var u,h=this,p=k.p(l),d=b(e),f=(d.utcOffset()-this.utcOffset())*6e4,m=this-d,g=function(){return k.m(h,d)};switch(p){case o:u=g()/12;break;case a:u=g();break;case s:u=g()/3;break;case i:u=(m-f)/6048e5;break;case"day":u=(m-f)/864e5;break;case r:u=m/36e5;break;case n:u=m/6e4;break;case t:u=m/1e3;break;default:u=m}return c?u:k.a(u)},d.daysInMonth=function(){return this.endOf(a).$D},d.$locale=function(){return f[this.$L]},d.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=y(e,t,!0);return r&&(n.$L=r),n},d.clone=function(){return k.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},p}(),x=_.prototype;return b.prototype=x,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W","day"],["$M",a],["$y",o],["$D",l]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),b.extend=function(e,t){return e.$i||(e(t,_,b),e.$i=!0),b},b.locale=y,b.isDayjs=g,b.unix=function(e){return b(1e3*e)},b.en=f[d],b.Ls=f,b.p={},b}()},28830:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e?"position"in e||"type"in e?a(e.position):"start"in e||"end"in e?a(e):"line"in e||"column"in e?i(e):"":""}function i(e){return s(e&&e.line)+":"+s(e&&e.column)}function a(e){return i(e&&e.start)+"-"+i(e&&e.end)}function s(e){return e&&"number"==typeof e?e:1}n.d(t,{L:()=>r})},32165:(e,t,n)=>{"use strict";n.d(t,{He:()=>c,K2:()=>a,Rm:()=>l,VA:()=>s});var r=n(27866),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0}),s=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},o={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},l={trace:a((...e)=>{},"trace"),debug:a((...e)=>{},"debug"),info:a((...e)=>{},"info"),warn:a((...e)=>{},"warn"),error:a((...e)=>{},"error"),fatal:a((...e)=>{},"fatal")},c=a(function(e="fatal"){let t=o.fatal;"string"==typeof e?e.toLowerCase()in o&&(t=o[e]):"number"==typeof e&&(t=e),l.trace=()=>{},l.debug=()=>{},l.info=()=>{},l.warn=()=>{},l.error=()=>{},l.fatal=()=>{},t<=o.fatal&&(l.fatal=console.error?console.error.bind(console,u("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",u("FATAL"))),t<=o.error&&(l.error=console.error?console.error.bind(console,u("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",u("ERROR"))),t<=o.warn&&(l.warn=console.warn?console.warn.bind(console,u("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",u("WARN"))),t<=o.info&&(l.info=console.info?console.info.bind(console,u("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",u("INFO"))),t<=o.debug&&(l.debug=console.debug?console.debug.bind(console,u("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",u("DEBUG"))),t<=o.trace&&(l.trace=console.debug?console.debug.bind(console,u("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",u("TRACE")))},"setLogLevel"),u=a(e=>{let t=r().format("ss.SSS");return`%c${t} : ${e} : `},"format")},32174:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(78437);function i(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===(0,r.b)(e)}},32563:(e,t,n)=>{"use strict";n.d(t,{pe:()=>A,PX:()=>Z,ru:()=>X,Un:()=>Q,$t:()=>ei,Sm:()=>eo,C4:()=>es,$C:()=>z,rY:()=>el,sM:()=>j,KL:()=>ec,Ib:()=>D,dq:()=>et,I5:()=>er,yT:()=>K,vU:()=>N,_K:()=>ea,bH:()=>W});var r,i=n(97096),a=n(32165),s=n(84485),o=n(33948);function l(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(l.Cache||Map),n}function c(){}l.Cache=Map;var u=n(83438),h=n(52618);function p(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var d=n(87789);function f(e){if("object"!=typeof e||null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){let t=e[Symbol.toStringTag];return null!=t&&!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var m=n(78437),g=n(24662);function y(e,t,n,r=new Map,i){let a=i?.(e,t,n,r);if(void 0!==a)return a;if((0,u.s)(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=y(e[a],a,n,r,i);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;for(let[a,s]of(r.set(e,t),e))t.set(a,y(s,a,n,r,i));return t}if(e instanceof Set){let t=new Set;for(let a of(r.set(e,t),e))t.add(y(a,void 0,n,r,i));return t}if((0,d.P)(e))return e.subarray();if((0,h.i)(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=y(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),b(t,e,n,r,i),t}if("u">typeof File&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),b(t,e,n,r,i),t}if("u">typeof Blob&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),b(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,b(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),b(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),b(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),b(t,e,n,r,i),t}if("object"==typeof e&&function(e){switch((0,m.b)(e)){case g.R_:case g.Uw:case g.cT:case g.iq:case g.$V:case g.vC:case g.ri:case g.ML:case g.XZ:case g.i1:case g._u:case g.pj:case g.kj:case g.GX:case g.Av:case g.NA:case g.OG:case g.VP:case g.Qb:case g.q:case g.x6:case g.ZR:return!0;default:return!1}}(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),b(t,e,n,r,i),t}return e}function b(e,t,n=e,r,i){let a=[...Object.keys(t),...p(t)];for(let s=0;s<a.length;s++){let o=a[s],l=Object.getOwnPropertyDescriptor(e,o);(null==l||l.writable)&&(e[o]=y(t[o],o,n,r,i))}}function k(e){var t;return t=(t,n,r,i)=>{let a;if(void 0!==a)return a;if("object"==typeof e){if("[object Object]"===(0,m.b)(e)&&"function"!=typeof e.constructor){let t={};return i.set(e,t),b(t,e,r,i),t}switch(Object.prototype.toString.call(e)){case g.kj:case g.OG:case g.$V:{let t=new e.constructor(e?.valueOf());return b(t,e),t}case g.R_:{let t={};return b(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}},y(e,void 0,e,new Map,t)}var _=n(32174);function x(e){return"object"==typeof e&&null!==e}var E=n(9101),T=n(95683),A="",v={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},w=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,S=(0,a.K2)(function(e,t){let n=C(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);(0,i.$i)(e),r=(0,i.hH)(r,[...e])}else r=n.args;if(!r)return;let a=(0,i.Ch)(e,t),s="config";return void 0!==r[s]&&("flowchart-v2"===a&&(a="flowchart"),r[a]=r[s],delete r[s]),r},"detectInit"),C=(0,a.K2)(function(e,t=null){try{let n,r=RegExp(`[%]{2}(?![{]${w.source})(?=[}][%]{2}).*
|
|
102
|
+
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),a.Rm.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:${e}`);let s=[];for(;null!==(n=i.DB.exec(e));)if(n.index===i.DB.lastIndex&&i.DB.lastIndex++,n&&!t||t&&n[1]?.match(t)||t&&n[2]?.match(t)){let e=n[1]?n[1]:n[2],t=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;s.push({type:e,args:t})}if(0===s.length)return{type:e,args:null};return 1===s.length?s[0]:s}catch(n){return a.Rm.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),N=(0,a.K2)(function(e){return e.replace(i.DB,"")},"removeDirectives"),I=(0,a.K2)(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return -1},"isSubstringInArray");function D(e,t){return e?v[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}function O(e,t){let n=e.trim();if(n)return"loose"!==t.securityLevel?(0,s.J)(n):n}(0,a.K2)(D,"interpolateToCurve"),(0,a.K2)(O,"formatUrl");var M=(0,a.K2)((e,...t)=>{let n=e.split("."),r=n.length-1,i=n[r],s=window;for(let t=0;t<r;t++)if(!(s=s[n[t]]))return void a.Rm.error(`Function name: ${e} not found in window`);s[i](...t)},"runFunc");function L(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function R(e){let t,n=0;return e.forEach(e=>{n+=L(e,t),t=e}),B(e,n/2)}function P(e){return 1===e.length?e[0]:R(e)}(0,a.K2)(L,"distance"),(0,a.K2)(R,"traverseEdge"),(0,a.K2)(P,"calcLabelPosition");var F=(0,a.K2)((e,t=2)=>{let n=Math.pow(10,t);return Math.round(e*n)/n},"roundNumber"),B=(0,a.K2)((e,t)=>{let n,r=t;for(let t of e){if(n){let e=L(t,n);if(0===e)return n;if(e<r)r-=e;else{let i=r/e;if(i<=0)return n;if(i>=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:F((1-i)*n.x+i*t.x,5),y:F((1-i)*n.y+i*t.y,5)}}}n=t}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),H=(0,a.K2)((e,t,n)=>{a.Rm.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=B(t,25),i=e?10:5,s=Math.atan2(t[0].y-r.y,t[0].x-r.x),o={x:0,y:0};return o.x=Math.sin(s)*i+(t[0].x+r.x)/2,o.y=-Math.cos(s)*i+(t[0].y+r.y)/2,o},"calcCardinalityPosition");function U(e,t,n){let r=structuredClone(n);a.Rm.info("our points",r),"start_left"!==t&&"start_right"!==t&&r.reverse();let i=B(r,25+e),s=10+.5*e,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),l={x:0,y:0};return"start_left"===t?(l.x=Math.sin(o+Math.PI)*s+(r[0].x+i.x)/2,l.y=-Math.cos(o+Math.PI)*s+(r[0].y+i.y)/2):"end_right"===t?(l.x=Math.sin(o-Math.PI)*s+(r[0].x+i.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(r[0].y+i.y)/2-5):"end_left"===t?(l.x=Math.sin(o)*s+(r[0].x+i.x)/2-5,l.y=-Math.cos(o)*s+(r[0].y+i.y)/2-5):(l.x=Math.sin(o)*s+(r[0].x+i.x)/2,l.y=-Math.cos(o)*s+(r[0].y+i.y)/2),l}function j(e){let t="",n="";for(let r of e)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}(0,a.K2)(U,"calcTerminalLabelPosition"),(0,a.K2)(j,"getStylesFromArray");var $=0,z=(0,a.K2)(()=>($++,"id-"+Math.random().toString(36).substr(2,12)+"-"+$),"generateId");function G(e){let t="",n="0123456789abcdef",r=n.length;for(let i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*r));return t}(0,a.K2)(G,"makeRandomHex");var K=(0,a.K2)(e=>G(e.length),"random"),q=(0,a.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"),Y=(0,a.K2)(function(e,t){let n=t.text.replace(i.Y2.lineBreakRegex," "),[,r]=er(t.fontSize),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.style("text-anchor",t.anchor),a.style("font-family",t.fontFamily),a.style("font-size",r),a.style("font-weight",t.fontWeight),a.attr("fill",t.fill),void 0!==t.class&&a.attr("class",t.class);let s=a.append("tspan");return s.attr("x",t.x+2*t.textMargin),s.attr("fill",t.fill),s.text(n),a},"drawSimpleText"),W=l((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),i.Y2.lineBreakRegex.test(e)))return e;let r=e.split(" ").filter(Boolean),a=[],s="";return r.forEach((e,i)=>{let o=Q(`${e} `,n),l=Q(s,n);if(o>t){let{hyphenatedStrings:r,remainingWord:i}=V(e,t,"-",n);a.push(s,...r),s=i}else l+o>=t?(a.push(s),s=e):s=[s,e].filter(Boolean).join(" ");i+1===r.length&&a.push(s)}),a.filter(e=>""!==e).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),V=l((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);let i=[...e],a=[],s="";return i.forEach((e,o)=>{let l=`${s}${e}`;if(Q(l,r)>=t){let e=i.length===o+1,t=`${l}${n}`;a.push(e?l:t),s=""}else s=l}),{hyphenatedStrings:a,remainingWord:s}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function X(e,t){return Z(e,t).height}function Q(e,t){return Z(e,t).width}(0,a.K2)(X,"calculateTextHeight"),(0,a.K2)(Q,"calculateTextWidth");var Z=l((e,t)=>{let{fontSize:n=12,fontFamily:r="Arial",fontWeight:a=400}=t;if(!e)return{width:0,height:0};let[,s]=er(n),l=e.split(i.Y2.lineBreakRegex),c=[],u=(0,o.Ltv)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let h=u.append("svg");for(let e of["sans-serif",r]){let t=0,n={width:0,height:0,lineHeight:0};for(let r of l){let i=q();i.text=r||A;let o=Y(h,i).style("font-size",s).style("font-weight",a).style("font-family",e),l=(o._groups||o)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,l.width)),t=Math.round(l.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}c.push(n)}h.remove();let p=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[p]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),J=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{(0,a.K2)(this,"InitIDGenerator")}},ee=(0,a.K2)(function(e){return r=r||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),r.innerHTML=e,unescape(r.textContent)},"entityDecode");function et(e){return"str"in e}(0,a.K2)(et,"isDetailedError");var en=(0,a.K2)((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append("text").text(r).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-n).attr("class",t)},"insertTitle"),er=(0,a.K2)(e=>{if("number"==typeof e)return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function ei(e,t){return function(e,...t){return function(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++)i=function e(t,n,r,i){if((0,u.s)(t)&&(t=Object(t)),null==n||"object"!=typeof n)return t;if(i.has(n))return function(e){if((0,u.s)(e))return e;if(Array.isArray(e)||(0,h.i)(e)||e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(null==t)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return(t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause})).stack=e.stack,Object.assign(t,e),t}return"u">typeof File&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):"object"==typeof e?Object.assign(Object.create(t),e):e}(i.get(n));if(i.set(n,t),Array.isArray(n)){n=n.slice();for(let e=0;e<n.length;e++)n[e]=n[e]??void 0}let a=[...Object.keys(n),...p(n)];for(let o=0;o<a.length;o++){let l=a[o];if("__proto__"===l)continue;let c=n[l],u=t[l];if((0,_.N)(c)&&(c={...c}),(0,_.N)(u)&&(u={...u}),(0,d.P)(c)&&(c=k(c)),Array.isArray(c))if(Array.isArray(u)){let e=[],t=Reflect.ownKeys(u);for(let n=0;n<t.length;n++){let r=t[n];e[r]=u[r]}u=e}else{var s;if(x(s=u)&&(0,E.X)(s)){let e=[];for(let t=0;t<u.length;t++)e[t]=u[t];u=e}else u=[]}let h=r(u,c,l,t,n,i);void 0!==h?t[l]=h:Array.isArray(c)||x(u)&&x(c)&&(f(u)||f(c)||(0,T.i)(u)||(0,T.i)(c))?t[l]=e(u,c,r,i):null==u&&f(c)?t[l]=e({},c,r,i):null==u&&(0,T.i)(c)?t[l]=k(c):(void 0===u||void 0!==c)&&(t[l]=c)}return t}(i,n[e],r,new Map);return i}(e,...t,c)}({},e,t)}(0,a.K2)(ei,"cleanAndMerge");var ea={assignWithDepth:i.hH,wrapLabel:W,calculateTextHeight:X,calculateTextWidth:Q,calculateTextDimensions:Z,cleanAndMerge:ei,detectInit:S,detectDirective:C,isSubstringInArray:I,interpolateToCurve:D,calcLabelPosition:P,calcCardinalityPosition:H,calcTerminalLabelPosition:U,formatUrl:O,getStylesFromArray:j,generateId:z,random:K,runFunc:M,entityDecode:ee,insertTitle:en,isLabelCoordinateInPath:eu,parseFontSize:er,InitIDGenerator:J},es=(0,a.K2)(function(e){let t=e;return(t=(t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"fl\xb0\xb0"+t+"\xb6\xdf":"fl\xb0"+t+"\xb6\xdf"})},"encodeEntities"),eo=(0,a.K2)(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),el=(0,a.K2)((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:""}${e}_${t}_${n}${i?`_${i}`:""}`,"getEdgeId");function ec(e){return e??null}function eu(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}(0,a.K2)(ec,"handleUndefinedAttr"),(0,a.K2)(eu,"isLabelCoordinateInPath")},32638:(e,t,n)=>{"use strict";n.d(t,{DM:()=>p,_A:()=>N,az:()=>h,pn:()=>l,vw:()=>a});var r=n(36829);let i=0;class a{constructor(e,t,n,r){this.name=e,this.set=t,this.base=n,this.modified=r,this.id=i++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){if(e instanceof a&&(t=e),null==t?void 0:t.base)throw Error("Can not derive from a modified tag");let n=new a("string"==typeof e?e:"?",[],null,[]);if(n.set.push(n),t)for(let e of t.set)n.set.push(e);return n}static defineModifier(e){let t=new o(e);return e=>e.modified.indexOf(t)>-1?e:o.get(e.base||e,e.modified.concat(t).sort((e,t)=>e.id-t.id))}}let s=0;class o{constructor(e){this.name=e,this.instances=[],this.id=s++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>{var r,i;return n.base==e&&(r=t,i=n.modified,r.length==i.length&&r.every((e,t)=>e==i[t]))});if(n)return n;let r=[],i=new a(e.name,r,e,t);for(let e of t)e.instances.push(i);let s=function(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((e,t)=>t.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of s)r.push(o.get(t,e));return i}}function l(e){let t=Object.create(null);for(let n in e){let r=e[n];for(let e of(Array.isArray(r)||(r=[r]),n.split(" ")))if(e){let n=[],i=2,a=e;for(let t=0;;){if("..."==a&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!r)throw RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),(t+=r[0].length)==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){i=0;break}if("/"!=s)throw RangeError("Invalid path: "+e);a=e.slice(t)}let s=n.length-1,o=n[s];if(!o)throw RangeError("Invalid path: "+e);let l=new u(r,i,s>0?n.slice(0,s):null);t[o]=l.sort(t[o])}}return c.add(t)}let c=new r.uY({combine(e,t){let n,r,i;for(;e||t;){if(!e||t&&e.depth>=t.depth?(i=t,t=t.next):(i=e,e=e.next),n&&n.mode==i.mode&&!i.context&&!n.context)continue;let a=new u(i.tags,i.mode,i.context);n?n.next=a:r=a,n=a}return r}});class u{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function h(e,t){let n=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)n[e.id]=t.class;else n[t.tag.id]=t.class;let{scope:r,all:i=null}=t||{};return{style:e=>{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function p(e,t,n,r=0,i=e.length){let a=new d(r,Array.isArray(t)?t:[t],n);a.highlightRange(e.cursor(),r,i,"",a.highlighters),a.flush(i)}u.empty=new u([],2,null);class d{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,a){let{type:s,from:o,to:l}=e;if(o>=n||l<=t)return;s.isTop&&(a=this.highlighters.filter(e=>!e.scope||e.scope(s)));let h=i,p=function(e){let t=e.type.prop(c);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||u.empty,d=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(a,p.tags);if(d&&(h&&(h+=" "),h+=d,1==p.mode&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(t,o),h),p.opaque)return;let f=e.tree&&e.tree.prop(r.uY.mounted);if(f&&f.overlay){let r=e.node.enter(f.overlay[0].from+o,1),s=this.highlighters.filter(e=>!e.scope||e.scope(f.tree.type)),c=e.firstChild();for(let u=0,p=o;;u++){let d=u<f.overlay.length?f.overlay[u]:null,m=d?d.from+o:l,g=Math.max(t,p),y=Math.min(n,m);if(g<y&&c)for(;e.from<y&&(this.highlightRange(e,g,y,i,a),this.startSpan(Math.min(y,e.to),h),!(e.to>=m)&&e.nextSibling()););if(!d||m>n)break;(p=d.to+o)>t&&(this.highlightRange(r.cursor(),Math.max(t,d.from+o),Math.min(n,p),"",s),this.startSpan(Math.min(n,p),h))}c&&e.parent()}else if(e.firstChild()){f&&(i="");do{if(e.to<=t)continue;if(e.from>=n)break;this.highlightRange(e,t,n,i,a),this.startSpan(Math.min(n,e.to),h)}while(e.nextSibling());e.parent()}}}let f=a.define,m=f(),g=f(),y=f(g),b=f(g),k=f(),_=f(k),x=f(k),E=f(),T=f(E),A=f(),v=f(),w=f(),S=f(w),C=f(),N={comment:m,lineComment:f(m),blockComment:f(m),docComment:f(m),name:g,variableName:f(g),typeName:y,tagName:f(y),propertyName:b,attributeName:f(b),className:f(g),labelName:f(g),namespace:f(g),macroName:f(g),literal:k,string:_,docString:f(_),character:f(_),attributeValue:f(_),number:x,integer:f(x),float:f(x),bool:f(k),regexp:f(k),escape:f(k),color:f(k),url:f(k),keyword:A,self:f(A),null:f(A),atom:f(A),unit:f(A),modifier:f(A),operatorKeyword:f(A),controlKeyword:f(A),definitionKeyword:f(A),moduleKeyword:f(A),operator:v,derefOperator:f(v),arithmeticOperator:f(v),logicOperator:f(v),bitwiseOperator:f(v),compareOperator:f(v),updateOperator:f(v),definitionOperator:f(v),typeOperator:f(v),controlOperator:f(v),punctuation:w,separator:f(w),bracket:S,angleBracket:f(S),squareBracket:f(S),paren:f(S),brace:f(S),content:E,heading:T,heading1:f(T),heading2:f(T),heading3:f(T),heading4:f(T),heading5:f(T),heading6:f(T),contentSeparator:f(E),list:f(E),quote:f(E),emphasis:f(E),strong:f(E),link:f(E),monospace:f(E),strikethrough:f(E),inserted:f(),deleted:f(),changed:f(),invalid:f(),meta:C,documentMeta:f(C),annotation:f(C),processingInstruction:f(C),definition:a.defineModifier("definition"),constant:a.defineModifier("constant"),function:a.defineModifier("function"),standard:a.defineModifier("standard"),local:a.defineModifier("local"),special:a.defineModifier("special")};for(let e in N){let t=N[e];t instanceof a&&(t.name=e)}h([{tag:N.link,class:"tok-link"},{tag:N.heading,class:"tok-heading"},{tag:N.emphasis,class:"tok-emphasis"},{tag:N.strong,class:"tok-strong"},{tag:N.keyword,class:"tok-keyword"},{tag:N.atom,class:"tok-atom"},{tag:N.bool,class:"tok-bool"},{tag:N.url,class:"tok-url"},{tag:N.labelName,class:"tok-labelName"},{tag:N.inserted,class:"tok-inserted"},{tag:N.deleted,class:"tok-deleted"},{tag:N.literal,class:"tok-literal"},{tag:N.string,class:"tok-string"},{tag:N.number,class:"tok-number"},{tag:[N.regexp,N.escape,N.special(N.string)],class:"tok-string2"},{tag:N.variableName,class:"tok-variableName"},{tag:N.local(N.variableName),class:"tok-variableName tok-local"},{tag:N.definition(N.variableName),class:"tok-variableName tok-definition"},{tag:N.special(N.variableName),class:"tok-variableName2"},{tag:N.definition(N.propertyName),class:"tok-propertyName tok-definition"},{tag:N.typeName,class:"tok-typeName"},{tag:N.namespace,class:"tok-namespace"},{tag:N.className,class:"tok-className"},{tag:N.macroName,class:"tok-macroName"},{tag:N.propertyName,class:"tok-propertyName"},{tag:N.operator,class:"tok-operator"},{tag:N.comment,class:"tok-comment"},{tag:N.meta,class:"tok-meta"},{tag:N.invalid,class:"tok-invalid"},{tag:N.punctuation,class:"tok-punctuation"}])},32682:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(99634)),i=n(52634);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,e.exports=a},33948:(e,t,n)=>{"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function a(e){return e}function s(e){return"translate("+e+",0)"}function o(e){return"translate(0,"+e+")"}function l(){return!this.__axis}function c(e,t){var n=[],r=null,i=null,c=6,u=6,h=3,p="u">typeof window&&window.devicePixelRatio>1?0:.5,d=1===e||4===e?-1:1,f=4===e||2===e?"x":"y",m=1===e||3===e?s:o;function g(s){var o=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,g=null==i?t.tickFormat?t.tickFormat.apply(t,n):a:i,y=Math.max(c,0)+h,b=t.range(),k=+b[0]+p,_=+b[b.length-1]+p,x=(t.bandwidth?function(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}:function(e){return t=>+e(t)})(t.copy(),p),E=s.selection?s.selection():s,T=E.selectAll(".domain").data([null]),A=E.selectAll(".tick").data(o,t).order(),v=A.exit(),w=A.enter().append("g").attr("class","tick"),S=A.select("line"),C=A.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(w),S=S.merge(w.append("line").attr("stroke","currentColor").attr(f+"2",d*c)),C=C.merge(w.append("text").attr("fill","currentColor").attr(f,d*y).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),s!==E&&(T=T.transition(s),A=A.transition(s),S=S.transition(s),C=C.transition(s),v=v.transition(s).attr("opacity",1e-6).attr("transform",function(e){return isFinite(e=x(e))?m(e+p):this.getAttribute("transform")}),w.attr("opacity",1e-6).attr("transform",function(e){var t=this.parentNode.__axis;return m((t&&isFinite(t=t(e))?t:x(e))+p)})),v.remove(),T.attr("d",4===e||2===e?u?"M"+d*u+","+k+"H"+p+"V"+_+"H"+d*u:"M"+p+","+k+"V"+_:u?"M"+k+","+d*u+"V"+p+"H"+_+"V"+d*u:"M"+k+","+p+"H"+_),A.attr("opacity",1).attr("transform",function(e){return m(x(e)+p)}),S.attr(f+"2",d*c),C.attr(f,d*y).text(g),E.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),E.each(function(){this.__axis=x})}return g.scale=function(e){return arguments.length?(t=e,g):t},g.ticks=function(){return n=Array.from(arguments),g},g.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),g):n.slice()},g.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),g):r&&r.slice()},g.tickFormat=function(e){return arguments.length?(i=e,g):i},g.tickSize=function(e){return arguments.length?(c=u=+e,g):c},g.tickSizeInner=function(e){return arguments.length?(c=+e,g):c},g.tickSizeOuter=function(e){return arguments.length?(u=+e,g):u},g.tickPadding=function(e){return arguments.length?(h=+e,g):h},g.offset=function(e){return arguments.length?(p=+e,g):p},g}function u(e){return c(1,e)}function h(e){return c(3,e)}function p(){}function d(e){return null==e?p:function(){return this.querySelector(e)}}function f(){return[]}function m(e){return null==e?f:function(){return this.querySelectorAll(e)}}function g(e){return function(){return this.matches(e)}}function y(e){return function(t){return t.matches(e)}}n.d(t,{JLW:()=>iY,l78:()=>h,tlR:()=>u,qrM:()=>i9,Yu4:()=>i8,IA3:()=>ae,Wi0:()=>an,PGM:()=>ar,OEq:()=>aa,y8u:()=>al,olC:()=>au,IrU:()=>ap,oDi:()=>am,Q7f:()=>ay,cVp:()=>ak,lUB:()=>iX,Lx9:()=>ax,nVG:()=>aC,uxU:()=>aN,Xf2:()=>aO,GZz:()=>aL,UPb:()=>aP,dyv:()=>aR,GPZ:()=>es,Sk5:()=>t$,bEH:()=>na,n8j:()=>iJ,T9B:()=>r,jkA:()=>i,rLf:()=>i2,WH:()=>function e(){var t,n,r=nh().unknown(void 0),i=r.domain,a=r.range,s=0,o=1,l=!1,c=0,u=0,h=.5;function p(){var e=i().length,r=o<s,p=r?o:s,d=r?s:o;t=(d-p)/Math.max(1,e-c+2*u),l&&(t=Math.floor(t)),p+=(d-p-t*(e-c))*h,n=t*(1-c),l&&(p=Math.round(p),n=Math.round(n));var f=(function(e,t,n){e*=1,t*=1,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),a=Array(i);++r<i;)a[r]=e+r*n;return a})(e).map(function(e){return p+t*e});return a(r?f.reverse():f)}return delete r.unknown,r.domain=function(e){return arguments.length?(i(e),p()):i()},r.range=function(e){return arguments.length?([s,o]=e,s*=1,o*=1,p()):[s,o]},r.rangeRound=function(e){return[s,o]=e,s*=1,o*=1,l=!0,p()},r.bandwidth=function(){return n},r.step=function(){return t},r.round=function(e){return arguments.length?(l=!!e,p()):l},r.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),p()):c},r.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),p()):c},r.paddingOuter=function(e){return arguments.length?(u=+e,p()):u},r.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),p()):h},r.copy=function(){return e(i(),[s,o]).round(l).paddingInner(c).paddingOuter(u).align(h)},ns.apply(p(),arguments)},m4Y:()=>function e(){var t,n=nO();return n.copy=function(){return nD(n,e())},ns.apply(n,arguments),t=n.domain,n.ticks=function(e){var n=t();return function(e,t,n){if(t*=1,e*=1,!((n*=1)>0))return[];if(e===t)return[e];let r=t<e,[i,a,s]=r?nm(t,e,n):nm(e,t,n);if(!(a>=i))return[];let o=a-i+1,l=Array(o);if(r)if(s<0)for(let e=0;e<o;++e)l[e]=-((a-e)/s);else for(let e=0;e<o;++e)l[e]=(a-e)*s;else if(s<0)for(let e=0;e<o;++e)l[e]=-((i+e)/s);else for(let e=0;e<o;++e)l[e]=(i+e)*s;return l}(n[0],n[n.length-1],null==e?10:e)},n.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var i,a,s=ny(e,t,n);switch((r=tL(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(a=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tO(o)/3)))-tO(Math.abs(s))))||(r.precision=a),eo(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=Math.max(0,tO(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(i=Math.abs(i=s)))-tO(i))+1)||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=Math.max(0,-tO(Math.abs(s))))||(r.precision=a-("%"===r.type)*2)}return es(r)}(r[0],r[r.length-1],null==e?10:e,n)},n.nice=function(e){null==e&&(e=10);var r,i,a=t(),s=0,o=a.length-1,l=a[s],c=a[o],u=10;for(c<l&&(i=l,l=c,c=i,i=s,s=o,o=i);u-- >0;){if((i=ng(l,c,e))===r)return a[s]=l,a[o]=c,t(a);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else if(i<0)l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i;else break;r=i}return n},n},UMr:()=>nh,w7C:()=>i_,zt:()=>ix,Ltv:()=>iE,UAC:()=>n$,DCK:()=>ec,TUC:()=>nQ,Agd:()=>nU,t6C:()=>nP,wXd:()=>nB,ABi:()=>nY,Ui6:()=>n6,rGn:()=>nZ,ucG:()=>nF,YPH:()=>nq,Mol:()=>nX,PGu:()=>nW,GuW:()=>nV,hkb:()=>tZ});var b=Array.prototype.find;function k(){return this.firstElementChild}var _=Array.prototype.filter;function x(){return Array.from(this.children)}function E(e){return Array(e.length)}function T(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function A(e,t,n,r,i,a){for(var s,o=0,l=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new T(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function v(e,t,n,r,i,a,s){var o,l,c,u=new Map,h=t.length,p=a.length,d=Array(h);for(o=0;o<h;++o)(l=t[o])&&(d[o]=c=s.call(l,l.__data__,o,t)+"",u.has(c)?i[o]=l:u.set(c,l));for(o=0;o<p;++o)c=s.call(e,a[o],o,a)+"",(l=u.get(c))?(r[o]=l,l.__data__=a[o],u.delete(c)):n[o]=new T(e,a[o]);for(o=0;o<h;++o)(l=t[o])&&u.get(d[o])===l&&(i[o]=l)}function w(e){return e.__data__}function S(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}T.prototype={constructor:T,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var C="http://www.w3.org/1999/xhtml";let N={svg:"http://www.w3.org/2000/svg",xhtml:C,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function I(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),N.hasOwnProperty(t)?{space:N[t],local:e}:e}function D(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function O(e,t){return e.style.getPropertyValue(t)||D(e).getComputedStyle(e,null).getPropertyValue(t)}function M(e){return e.trim().split(/^|\s+/)}function L(e){return e.classList||new R(e)}function R(e){this._node=e,this._names=M(e.getAttribute("class")||"")}function P(e,t){for(var n=L(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function F(e,t){for(var n=L(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function B(){this.textContent=""}function H(){this.innerHTML=""}function U(){this.nextSibling&&this.parentNode.appendChild(this)}function j(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function $(e){var t=I(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===C&&t.documentElement.namespaceURI===C?t.createElement(e):t.createElementNS(n,e)}})(t)}function z(){return null}function G(){var e=this.parentNode;e&&e.removeChild(this)}function K(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function q(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Y(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,a=t.length;r<a;++r)(n=t[r],e.type&&n.type!==e.type||n.name!==e.name)?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function W(e,t,n){return function(){var r,i=this.__on,a=function(e){t.call(this,e,this.__data__)};if(i){for(var s=0,o=i.length;s<o;++s)if((r=i[s]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),r.value=t;return}}this.addEventListener(e.type,a,n),r={type:e.type,name:e.name,value:t,listener:a,options:n},i?i.push(r):this.__on=[r]}}function V(e,t,n){var r=D(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}R.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var X=[null];function Q(e,t){this._groups=e,this._parents=t}function Z(){return new Q([[document.documentElement]],X)}Q.prototype=Z.prototype={constructor:Q,select:function(e){"function"!=typeof e&&(e=d(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s,o=t[i],l=o.length,c=r[i]=Array(l),u=0;u<l;++u)(a=o[u])&&(s=e.call(a,a.__data__,u,o))&&("__data__"in a&&(s.__data__=a.__data__),c[u]=s);return new Q(r,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=m(e);for(var n=this._groups,r=n.length,i=[],a=[],s=0;s<r;++s)for(var o,l=n[s],c=l.length,u=0;u<c;++u)(o=l[u])&&(i.push(e.call(o,o.__data__,u,l)),a.push(o));return new Q(i,a)},selectChild:function(e){var t;return this.select(null==e?k:(t="function"==typeof e?e:y(e),function(){return b.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?x:(t="function"==typeof e?e:y(e),function(){return _.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=g(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s=t[i],o=s.length,l=r[i]=[],c=0;c<o;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&l.push(a);return new Q(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,w);var n=t?v:A,r=this._parents,i=this._groups;"function"!=typeof e&&(b=e,e=function(){return b});for(var a=i.length,s=Array(a),o=Array(a),l=Array(a),c=0;c<a;++c){var u=r[c],h=i[c],p=h.length,d="object"==typeof(y=e.call(u,u&&u.__data__,c,r))&&"length"in y?y:Array.from(y),f=d.length,m=o[c]=Array(f),g=s[c]=Array(f);n(u,h,m,g,l[c]=Array(p),d,t);for(var y,b,k,_,x=0,E=0;x<f;++x)if(k=m[x]){for(x>=E&&(E=x+1);!(_=g[E])&&++E<f;);k._next=_||null}}return(s=new Q(s,r))._enter=o,s._exit=l,s},enter:function(){return new Q(this._enter||this._groups.map(E),this._parents)},exit:function(){return new Q(this._exit||this._groups.map(E),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,s=Math.min(i,a),o=Array(i),l=0;l<s;++l)for(var c,u=n[l],h=r[l],p=u.length,d=o[l]=Array(p),f=0;f<p;++f)(c=u[f]||h[f])&&(d[f]=c);for(;l<i;++l)o[l]=n[l];return new Q(o,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],a=i.length-1,s=i[a];--a>=0;)(r=i[a])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=S);for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var s,o=n[a],l=o.length,c=i[a]=Array(l),u=0;u<l;++u)(s=o[u])&&(c[u]=s);c.sort(t)}return new Q(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var s=r[i];if(s)return s}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,a=t[n],s=0,o=a.length;s<o;++s)(i=a[s])&&e.call(i,i.__data__,s,a);return this},attr:function(e,t){var n=I(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):O(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=M(e+"");if(arguments.length<2){for(var r=L(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?P:F)(this,e)}}:t?function(e){return function(){P(this,e)}}:function(e){return function(){F(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?B:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?H:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(U)},lower:function(){return this.each(j)},append:function(e){var t="function"==typeof e?e:$(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:$(e),r=null==t?z:"function"==typeof t?t:d(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(G)},clone:function(e){return this.select(e?q:K)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,a=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),s=a.length;if(arguments.length<2){var o=this.node().__on;if(o){for(var l,c=0,u=o.length;c<u;++c)for(r=0,l=o[c];r<s;++r)if((i=a[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,o=t?W:Y;r<s;++r)this.each(o(a[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return V(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return V(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],a=0,s=i.length;a<s;++a)(r=i[a])&&(yield r)}};var J={value:()=>{}};function ee(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new et(r)}function et(e){this._=e}function en(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=J,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}et.prototype=ee.prototype={constructor:et,on:function(e,t){var n,r=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((n=(e=i[a]).type)&&(n=function(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}(r[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++a<s;)if(n=(e=i[a]).type)r[n]=en(r[n],e.name,t);else if(null==t)for(n in r)r[n]=en(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new et(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],a=0,n=r.length;a<n;++a)r[a].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};var er,ei,ea,es,eo,el,ec,eu,eh,ep=0,ed=0,ef=0,em=0,eg=0,ey=0,eb="object"==typeof performance&&performance.now?performance:Date,ek="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function e_(){return eg||(ek(ex),eg=eb.now()+ey)}function ex(){eg=0}function eE(){this._call=this._time=this._next=null}function eT(e,t,n){var r=new eE;return r.restart(e,t,n),r}function eA(){eg=(em=eb.now())+ey,ep=ed=0;try{e_(),++ep;for(var e,t=eu;t;)(e=eg-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ep}finally{ep=0,function(){for(var e,t,n=eu,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:eu=t);eh=e,ew(r)}(),eg=0}}function ev(){var e=eb.now(),t=e-em;t>1e3&&(ey-=t,em=e)}function ew(e){!ep&&(ed&&(ed=clearTimeout(ed)),e-eg>24?(e<1/0&&(ed=setTimeout(eA,e-eb.now()-ey)),ef&&(ef=clearInterval(ef))):(ef||(em=eb.now(),ef=setInterval(ev,1e3)),ep=1,ek(eA)))}function eS(e,t,n){var r=new eE;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}eE.prototype=eT.prototype={constructor:eE,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?e_():+n)+(null==t?0:+t),this._next||eh===this||(eh?eh._next=this:eu=this,eh=this),this._call=e,this._time=n,ew()},stop:function(){this._call&&(this._call=null,this._time=1/0,ew())}};var eC=ee("start","end","cancel","interrupt"),eN=[];function eI(e,t,n,r,i,a){var s=e.__transition;if(s){if(n in s)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function a(l){var c,u,h,p;if(1!==n.state)return o();for(c in i)if((p=i[c]).name===n.name){if(3===p.state)return eS(a);4===p.state?(p.state=6,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete i[c]):+c<t&&(p.state=6,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete i[c])}if(eS(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(c=0,n.state=3,r=Array(h=n.tween.length),u=-1;c<h;++c)(p=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=p);r.length=u+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(o),n.state=5,1),a=-1,s=r.length;++a<s;)r[a].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),o())}function o(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=eT(function(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:eC,tween:eN,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function eD(e,t){var n=eM(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function eO(e,t){var n=eM(e,t);if(n.state>3)throw Error("too late; already running");return n}function eM(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function eL(e,t){return e*=1,t*=1,function(n){return e*(1-n)+t*n}}var eR=180/Math.PI,eP={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function eF(e,t,n,r,i,a){var s,o,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,l/=o),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*eR,skewX:Math.atan(l)*eR,scaleX:s,scaleY:o}}function eB(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(a,s){var o,l,c,u,h=[],p=[];return a=e(a),s=e(s),!function(e,r,i,a,s,o){if(e!==i||r!==a){var l=s.push("translate(",null,t,null,n);o.push({i:l-4,x:eL(e,i)},{i:l-2,x:eL(r,a)})}else(i||a)&&s.push("translate("+i+t+a+n)}(a.translateX,a.translateY,s.translateX,s.translateY,h,p),o=a.rotate,l=s.rotate,o!==l?(o-l>180?l+=360:l-o>180&&(o+=360),p.push({i:h.push(i(h)+"rotate(",null,r)-2,x:eL(o,l)})):l&&h.push(i(h)+"rotate("+l+r),c=a.skewX,u=s.skewX,c!==u?p.push({i:h.push(i(h)+"skewX(",null,r)-2,x:eL(c,u)}):u&&h.push(i(h)+"skewX("+u+r),!function(e,t,n,r,a,s){if(e!==n||t!==r){var o=a.push(i(a)+"scale(",null,",",null,")");s.push({i:o-4,x:eL(e,n)},{i:o-2,x:eL(t,r)})}else(1!==n||1!==r)&&a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,s.scaleX,s.scaleY,h,p),a=s=null,function(e){for(var t,n=-1,r=p.length;++n<r;)h[(t=p[n]).i]=t.x(e);return h.join("")}}}var eH=eB(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?eP:eF(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),eU=eB(function(e){return null==e?eP:(er||(er=document.createElementNS("http://www.w3.org/2000/svg","g")),er.setAttribute("transform",e),e=er.transform.baseVal.consolidate())?eF((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):eP},", ",")",")");function ej(e,t,n){var r=e._id;return e.each(function(){var e=eO(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return eM(e,r).value[t]}}function e$(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ez(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function eG(){}var eK="\\s*([+-]?\\d+)\\s*",eq="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",eY="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eW=/^#([0-9a-f]{3,8})$/,eV=RegExp(`^rgb\\(${eK},${eK},${eK}\\)$`),eX=RegExp(`^rgb\\(${eY},${eY},${eY}\\)$`),eQ=RegExp(`^rgba\\(${eK},${eK},${eK},${eq}\\)$`),eZ=RegExp(`^rgba\\(${eY},${eY},${eY},${eq}\\)$`),eJ=RegExp(`^hsl\\(${eq},${eY},${eY}\\)$`),e0=RegExp(`^hsla\\(${eq},${eY},${eY},${eq}\\)$`),e1={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function e2(){return this.rgb().formatHex()}function e3(){return this.rgb().formatRgb()}function e5(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=eW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?e4(t):3===n?new e7(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?e9(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?e9(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=eV.exec(e))?new e7(t[1],t[2],t[3],1):(t=eX.exec(e))?new e7(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=eQ.exec(e))?e9(t[1],t[2],t[3],t[4]):(t=eZ.exec(e))?e9(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=eJ.exec(e))?ta(t[1],t[2]/100,t[3]/100,1):(t=e0.exec(e))?ta(t[1],t[2]/100,t[3]/100,t[4]):e1.hasOwnProperty(e)?e4(e1[e]):"transparent"===e?new e7(NaN,NaN,NaN,0):null}function e4(e){return new e7(e>>16&255,e>>8&255,255&e,1)}function e9(e,t,n,r){return r<=0&&(e=t=n=NaN),new e7(e,t,n,r)}function e6(e){return(e instanceof eG||(e=e5(e)),e)?new e7((e=e.rgb()).r,e.g,e.b,e.opacity):new e7}function e8(e,t,n,r){return 1==arguments.length?e6(e):new e7(e,t,n,null==r?1:r)}function e7(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function te(){return`#${ti(this.r)}${ti(this.g)}${ti(this.b)}`}function tt(){let e=tn(this.opacity);return`${1===e?"rgb(":"rgba("}${tr(this.r)}, ${tr(this.g)}, ${tr(this.b)}${1===e?")":`, ${e})`}`}function tn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ti(e){return((e=tr(e))<16?"0":"")+e.toString(16)}function ta(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new to(e,t,n,r)}function ts(e){if(e instanceof to)return new to(e.h,e.s,e.l,e.opacity);if(e instanceof eG||(e=e5(e)),!e)return new to;if(e instanceof to)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,o=a-i,l=(a+i)/2;return o?(s=t===a?(n-r)/o+(n<r)*6:n===a?(r-t)/o+2:(t-n)/o+4,o/=l<.5?a+i:2-a-i,s*=60):o=l>0&&l<1?0:s,new to(s,o,l,e.opacity)}function to(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function tl(e){return(e=(e||0)%360)<0?e+360:e}function tc(e){return Math.max(0,Math.min(1,e||0))}function tu(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function th(e,t,n,r,i){var a=e*e,s=a*e;return((1-3*e+3*a-s)*t+(4-6*a+3*s)*n+(1+3*e+3*a-3*s)*r+s*i)/6}e$(eG,e5,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:e2,formatHex:e2,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ts(this).formatHsl()},formatRgb:e3,toString:e3}),e$(e7,e8,ez(eG,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new e7(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new e7(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new e7(tr(this.r),tr(this.g),tr(this.b),tn(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:te,formatHex:te,formatHex8:function(){return`#${ti(this.r)}${ti(this.g)}${ti(this.b)}${ti((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:tt,toString:tt})),e$(to,function(e,t,n,r){return 1==arguments.length?ts(e):new to(e,t,n,null==r?1:r)},ez(eG,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new to(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new to(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new e7(tu(e>=240?e-240:e+120,i,r),tu(e,i,r),tu(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new to(tl(this.h),tc(this.s),tc(this.l),tn(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(){let e=tn(this.opacity);return`${1===e?"hsl(":"hsla("}${tl(this.h)}, ${100*tc(this.s)}%, ${100*tc(this.l)}%${1===e?")":`, ${e})`}`}}));let tp=e=>()=>e;function td(e,t){return function(n){return e+n*t}}function tf(e,t){var n=t-e;return n?td(e,n):tp(isNaN(e)?t:e)}let tm=function e(t){var n,r=1==(n=+t)?tf:function(e,t){var r,i,a;return t-e?(r=e,i=t,r=Math.pow(r,a=n),i=Math.pow(i,a)-r,a=1/a,function(e){return Math.pow(r+e*i,a)}):tp(isNaN(e)?t:e)};function i(e,t){var n=r((e=e8(e)).r,(t=e8(t)).r),i=r(e.g,t.g),a=r(e.b,t.b),s=tf(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=a(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1);function tg(e){return function(t){var n,r,i=t.length,a=Array(i),s=Array(i),o=Array(i);for(n=0;n<i;++n)r=e8(t[n]),a[n]=r.r||0,s[n]=r.g||0,o[n]=r.b||0;return a=e(a),s=e(s),o=e(o),r.opacity=1,function(e){return r.r=a(e),r.g=s(e),r.b=o(e),r+""}}}tg(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],s=r>0?e[r-1]:2*i-a,o=r<t-1?e[r+2]:2*a-i;return th((n-r/t)*t,s,i,a,o)}}),tg(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],a=e[r%t],s=e[(r+1)%t],o=e[(r+2)%t];return th((n-r/t)*t,i,a,s,o)}});var ty=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tb=RegExp(ty.source,"g");function tk(e,t){var n,r,i,a,s,o=ty.lastIndex=tb.lastIndex=0,l=-1,c=[],u=[];for(e+="",t+="";(i=ty.exec(e))&&(a=tb.exec(t));)(s=a.index)>o&&(s=t.slice(o,s),c[l]?c[l]+=s:c[++l]=s),(i=i[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,u.push({i:l,x:eL(i,a)})),o=tb.lastIndex;return o<t.length&&(s=t.slice(o),c[l]?c[l]+=s:c[++l]=s),c.length<2?u[0]?(n=u[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=u.length,function(e){for(var n,r=0;r<t;++r)c[(n=u[r]).i]=n.x(e);return c.join("")})}function t_(e,t){var n;return("number"==typeof t?eL:t instanceof e5?tm:(n=e5(t))?(t=n,tm):tk)(e,t)}var tx=Z.prototype.constructor;function tE(e){return function(){this.style.removeProperty(e)}}var tT=0;function tA(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var tv=Z.prototype;tA.prototype=(function(e){return Z().transition(e)}).prototype={constructor:tA,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=d(e));for(var r=this._groups,i=r.length,a=Array(i),s=0;s<i;++s)for(var o,l,c=r[s],u=c.length,h=a[s]=Array(u),p=0;p<u;++p)(o=c[p])&&(l=e.call(o,o.__data__,p,c))&&("__data__"in o&&(l.__data__=o.__data__),h[p]=l,eI(h[p],t,n,p,h,eM(o,n)));return new tA(a,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=m(e));for(var r=this._groups,i=r.length,a=[],s=[],o=0;o<i;++o)for(var l,c=r[o],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var p,d=e.call(l,l.__data__,h,c),f=eM(l,n),g=0,y=d.length;g<y;++g)(p=d[g])&&eI(p,t,n,g,d,f);a.push(d),s.push(l)}return new tA(a,s,t,n)},selectChild:tv.selectChild,selectChildren:tv.selectChildren,filter:function(e){"function"!=typeof e&&(e=g(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s=t[i],o=s.length,l=r[i]=[],c=0;c<o;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&l.push(a);return new tA(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),s=Array(r),o=0;o<a;++o)for(var l,c=t[o],u=n[o],h=c.length,p=s[o]=Array(h),d=0;d<h;++d)(l=c[d]||u[d])&&(p[d]=l);for(;o<r;++o)s[o]=t[o];return new tA(s,this._parents,this._name,this._id)},selection:function(){return new tx(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++tT,r=this._groups,i=r.length,a=0;a<i;++a)for(var s,o=r[a],l=o.length,c=0;c<l;++c)if(s=o[c]){var u=eM(s,t);eI(s,e,n,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new tA(r,this._parents,e,n)},call:tv.call,nodes:tv.nodes,node:tv.node,size:tv.size,empty:tv.empty,each:tv.each,on:function(e,t){var n,r,i,a,s,o,l=this._id;return arguments.length<2?eM(this.node(),l).on.on(e):this.each((n=l,r=e,i=t,o=(r+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?eD:eO,function(){var e=o(this,n),t=e.on;t!==a&&(s=(a=t).copy()).on(r,i),e.on=s}))},attr:function(e,t){var n=I(e),r="transform"===n?eU:t_;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,a;return function(){var s,o,l=n(this);return null==l?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local))===(o=l+"")?null:s===r&&o===i?a:(i=o,a=t(r=s,l))}}:function(e,t,n){var r,i,a;return function(){var s,o,l=n(this);return null==l?void this.removeAttribute(e):(s=this.getAttribute(e))===(o=l+"")?null:s===r&&o===i?a:(i=o,a=t(r=s,l))}})(n,r,ej(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,a=n+"";return function(){var s=this.getAttributeNS(e.space,e.local);return s===a?null:s===r?i:i=t(r=s,n)}}:function(e,t,n){var r,i,a=n+"";return function(){var s=this.getAttribute(e);return s===a?null:s===r?i:i=t(r=s,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=I(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttribute(e,i.call(this,t))}),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r,i,a,s,o,l,c,u,h,p,d,f,m,g,y,b,k,_,x,E,T,A="transform"==(e+="")?eH:t_;return null==t?this.styleTween(e,(r=e,function(){var e=O(this,r),t=(this.style.removeProperty(r),O(this,r));return e===t?null:e===i&&t===a?s:s=A(i=e,a=t)})).on("end.style."+e,tE(e)):"function"==typeof t?this.styleTween(e,(o=e,l=ej(this,"style."+e,t),function(){var e=O(this,o),t=l(this),n=t+"";return null==t&&(this.style.removeProperty(o),n=t=O(this,o)),e===n?null:e===c&&n===u?h:(u=n,h=A(c=e,t))})).each((p=this._id,k="end."+(b="style."+(d=e)),function(){var e=eO(this,p),t=e.on,n=null==e.value[b]?y||(y=tE(d)):void 0;(t!==f||g!==n)&&(m=(f=t).copy()).on(k,g=n),e.on=m})):this.styleTween(e,(_=e,T=t+"",function(){var e=O(this,_);return e===T?null:e===x?E:E=A(x=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t){this.style.setProperty(e,a.call(this,t),n)}),r}return a._value=t,a}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=ej(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=eM(this.node(),n).tween,a=0,s=i.length;a<s;++a)if((r=i[a]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=eO(this,e),a=i.tween;if(a!==n){r=n=a;for(var s=0,o=r.length;s<o;++s)if(r[s].name===t){(r=r.slice()).splice(s,1);break}}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw Error();return function(){var a=eO(this,e),s=a.tween;if(s!==r){i=(r=s).slice();for(var o={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=o;break}l===c&&i.push(o)}a.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eD(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){eD(this,e).delay=t}})(t,e)):eM(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eO(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){eO(this,e).duration=t}})(t,e)):eM(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){eO(this,e).ease=t}}(t,e)):eM(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();eO(this,t).ease=n}))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,s){var o={value:s},l={value:function(){0==--i&&a()}};n.each(function(){var n=eO(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),n.on=t}),0===i&&a()})},[Symbol.iterator]:tv[Symbol.iterator]};var tw={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};Z.prototype.interrupt=function(e){return this.each(function(){!function(e,t){var n,r,i,a=e.__transition,s=!0;if(a){for(i in t=null==t?null:t+"",a){if((n=a[i]).name!==t){s=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[i]}s&&delete e.__transition}}(this,e)})},Z.prototype.transition=function(e){var t,n;e instanceof tA?(t=e._id,e=e._name):(t=++tT,(n=tw).time=e_(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var s,o=r[a],l=o.length,c=0;c<l;++c)(s=o[c])&&eI(s,e,t,c,o,n||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(s,t));return new tA(r,this._parents,e,t)};let{abs:tS,max:tC,min:tN}=Math;function tI(e){return{type:e}}function tD(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function tO(e){return(e=tD(Math.abs(e)))?e[1]:NaN}["w","e"].map(tI),["n","s"].map(tI),["n","w","e","s","nw","ne","sw","se"].map(tI);var tM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tL(e){var t;if(!(t=tM.exec(e)))throw Error("invalid format: "+e);return new tR({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function tR(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function tP(e,t){var n=tD(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}tL.prototype=tR.prototype,tR.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};let tF={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>tP(100*e,t),r:tP,s:function(e,t){var n=tD(e,t);if(!n)return ei=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(ei=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return a===s?r:a>s?r+Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+tD(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function tB(e){return e}var tH=Array.prototype.map,tU=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tj(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function t$(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=tG)):void 0===t&&(t=tz);for(var n,r,i,a,s,o=new tY(e),l=[o];n=l.pop();)if((i=t(n.data))&&(s=(i=Array.from(i)).length))for(n.children=i,a=s-1;a>=0;--a)l.push(r=i[a]=new tY(i[a])),r.parent=n,r.depth=n.depth+1;return o.eachBefore(tq)}function tz(e){return e.children}function tG(e){return Array.isArray(e)?e[1]:null}function tK(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function tq(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function tY(e){this.data=e,this.depth=this.height=0,this.parent=null}function tW(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}es=(ea=function(e){var t,n,r,i=void 0===e.grouping||void 0===e.thousands?tB:(t=tH.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],s=0,o=t[0],l=0;i>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),a.push(e.substring(i-=o,i+o)),!((l+=o+1)>r));)o=t[s=(s+1)%t.length];return a.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?tB:(r=tH.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function p(e,t){var n=(e=tL(e)).fill,r=e.align,p=e.sign,d=e.symbol,f=e.zero,m=e.width,g=e.comma,y=e.precision,b=e.trim,k=e.type;"n"===k?(g=!0,k="g"):tF[k]||(void 0===y&&(y=12),b=!0,k="g"),(f||"0"===n&&"="===r)&&(f=!0,n="0",r="=");var _=(t&&void 0!==t.prefix?t.prefix:"")+("$"===d?a:"#"===d&&/[boxX]/.test(k)?"0"+k.toLowerCase():""),x=("$"===d?s:/[%p]/.test(k)?c:"")+(t&&void 0!==t.suffix?t.suffix:""),E=tF[k],T=/[defgprs%]/.test(k);function A(e){var t,a,s,c=_,d=x;if("c"===k)d=E(e)+d,e="";else{var A=(e*=1)<0||1/e<0;if(e=isNaN(e)?h:E(Math.abs(e),y),b&&(e=function(e){t:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break t;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),A&&0==+e&&"+"!==p&&(A=!1),c=(A?"("===p?p:u:"-"===p||"("===p?"":p)+c,d=("s"!==k||isNaN(e)||void 0===ei?"":tU[8+ei/3])+d+(A&&"("===p?")":""),T){for(t=-1,a=e.length;++t<a;)if(48>(s=e.charCodeAt(t))||s>57){d=(46===s?o+e.slice(t+1):e.slice(t))+d,e=e.slice(0,t);break}}}g&&!f&&(e=i(e,1/0));var v=c.length+e.length+d.length,w=v<m?Array(m-v+1).join(n):"";switch(g&&f&&(e=i(w+e,w.length?m-d.length:1/0),w=""),r){case"<":e=c+e+d+w;break;case"=":e=c+w+e+d;break;case"^":e=w.slice(0,v=w.length>>1)+c+e+d+w.slice(v);break;default:e=w+c+e+d}return l(e)}return y=void 0===y?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),A.toString=function(){return e+""},A}return{format:p,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(tO(t)/3))),r=Math.pow(10,-n),i=p(((e=tL(e)).type="f",e),{suffix:tU[8+n/3]});return function(e){return i(r*e)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,eo=ea.formatPrefix,tY.prototype=t$.prototype={constructor:tY,count:function(){return this.eachAfter(tj)},each:function(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,a=this,s=[a],o=[],l=-1;a=s.pop();)if(o.push(a),n=a.children)for(r=0,i=n.length;r<i;++r)s.push(n[r]);for(;a=o.pop();)e.call(t,a,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,a=[i],s=-1;i=a.pop();)if(e.call(t,i,++s,this),n=i.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)r.push(t=t.parent);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return t$(this).eachBefore(tK)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,a=[i];do for(e=a.reverse(),a=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)a.push(t[n]);while(a.length)}};let tV=function e(t){function n(e,n,r,i,a){!function(e,t,n,r,i,a){for(var s,o,l,c,u,h,p,d,f,m,g,y=[],b=t.children,k=0,_=0,x=b.length,E=t.value;k<x;){l=i-n,c=a-r;do u=b[_++].value;while(!u&&_<x);for(h=p=u,f=Math.max(p/(g=u*u*(m=Math.max(c/l,l/c)/(E*e))),g/h);_<x;++_){if(u+=o=b[_].value,o<h&&(h=o),o>p&&(p=o),(d=Math.max(p/(g=u*u*m),g/h))>f){u-=o;break}f=d}y.push(s={value:u,dice:l<c,children:b.slice(k,_)}),s.dice?function(e,t,n,r,i){for(var a,s=e.children,o=-1,l=s.length,c=e.value&&(r-t)/e.value;++o<l;)(a=s[o]).y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*c}(s,n,r,i,E?r+=c*u/E:a):function(e,t,n,r,i){for(var a,s=e.children,o=-1,l=s.length,c=e.value&&(i-n)/e.value;++o<l;)(a=s[o]).x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*c}(s,n,r,E?n+=l*u/E:i,a),E-=u,k=_}}(t,e,n,r,i,a)}return n.ratio=function(t){return e((t*=1)>1?t:1)},n}((1+Math.sqrt(5))/2);function tX(){return 0}function tQ(e){return function(){return e}}function tZ(){var e=tV,t=!1,n=1,r=1,i=[0],a=tX,s=tX,o=tX,l=tX,c=tX;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(h),i=[0],t&&e.eachBefore(tW),e}function h(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,h=t.x1-n,p=t.y1-n;h<r&&(r=h=(r+h)/2),p<u&&(u=p=(u+p)/2),t.x0=r,t.y0=u,t.x1=h,t.y1=p,t.children&&(n=i[t.depth+1]=a(t)/2,r+=c(t)-n,u+=s(t)-n,h-=o(t)-n,p-=l(t)-n,h<r&&(r=h=(r+h)/2),p<u&&(u=p=(u+p)/2),e(t,r,u,h,p))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=function(e){if("function"!=typeof e)throw Error();return e}(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a="function"==typeof e?e:tQ(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(s="function"==typeof e?e:tQ(+e),u):s},u.paddingRight=function(e){return arguments.length?(o="function"==typeof e?e:tQ(+e),u):o},u.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:tQ(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:tQ(+e),u):c},u}let tJ=Math.PI/180,t0=180/Math.PI,t1=4/29,t2=6/29,t3=6/29*3*(6/29),t5=6/29*(6/29)*(6/29);function t4(e){if(e instanceof t9)return new t9(e.l,e.a,e.b,e.opacity);if(e instanceof nn)return nr(e);e instanceof e7||(e=e6(e));var t,n,r=ne(e.r),i=ne(e.g),a=ne(e.b),s=t6((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?t=n=s:(t=t6((.4360747*r+.3850649*i+.1430804*a)/.96422),n=t6((.0139322*r+.0971045*i+.7141733*a)/.82521)),new t9(116*s-16,500*(t-s),200*(s-n),e.opacity)}function t9(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function t6(e){return e>t5?Math.pow(e,1/3):e/t3+t1}function t8(e){return e>t2?e*e*e:t3*(e-t1)}function t7(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ne(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function nt(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof nn)return new nn(e.h,e.c,e.l,e.opacity);if(e instanceof t9||(e=t4(e)),0===e.a&&0===e.b)return new nn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*t0;return new nn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new nn(e,t,n,null==r?1:r)}function nn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function nr(e){if(isNaN(e.h))return new t9(e.l,0,0,e.opacity);var t=e.h*tJ;return new t9(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function ni(e){return function(t,n){var r=e((t=nt(t)).h,(n=nt(n)).h),i=tf(t.c,n.c),a=tf(t.l,n.l),s=tf(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=s(e),t+""}}}e$(t9,function(e,t,n,r){return 1==arguments.length?t4(e):new t9(e,t,n,null==r?1:r)},ez(eG,{brighter(e){return new t9(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new t9(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=.96422*t8(t),new e7(t7(3.1338561*t-1.6168667*(e=+t8(e))-.4906146*(n=.82521*t8(n))),t7(-.9787684*t+1.9161415*e+.033454*n),t7(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),e$(nn,nt,ez(eG,{brighter(e){return new nn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new nn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return nr(this).rgb()}}));let na=ni(function(e,t){var n=t-e;return n?td(e,n>180||n<-180?n-360*Math.round(n/360):n):tp(isNaN(e)?t:e)});function ns(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}ni(tf);class no extends Map{constructor(e,t=nc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(nl(this,e))}has(e){return super.has(nl(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function nl({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function nc(e){return null!==e&&"object"==typeof e?e.valueOf():e}let nu=Symbol("implicit");function nh(){var e=new no,t=[],n=[],r=nu;function i(i){let a=e.get(i);if(void 0===a){if(r!==nu)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();for(let r of(t=[],e=new no,n))e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return nh(t,n).unknown(r)},ns.apply(i,arguments),i}let np=Math.sqrt(50),nd=Math.sqrt(10),nf=Math.sqrt(2);function nm(e,t,n){let r,i,a,s=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(s)),l=s/Math.pow(10,o),c=l>=np?10:l>=nd?5:l>=nf?2:1;return(o<0?(r=Math.round(e*(a=Math.pow(10,-o)/c)),i=Math.round(t*a),r/a<e&&++r,i/a>t&&--i,a=-a):(r=Math.round(e/(a=Math.pow(10,o)*c)),i=Math.round(t/a),r*a<e&&++r,i*a>t&&--i),i<r&&.5<=n&&n<2)?nm(e,t,2*n):[r,i,a]}function ng(e,t,n){return nm(e*=1,t*=1,n*=1)[2]}function ny(e,t,n){t*=1,e*=1,n*=1;let r=t<e,i=r?ng(t,e,n):ng(e,t,n);return(r?-1:1)*(i<0?-(1/i):i)}function nb(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nk(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function n_(e){let t,n,r;function i(e,r,a=0,s=e.length){if(a<s){if(0!==t(r,r))return s;do{let t=a+s>>>1;0>n(e[t],r)?a=t+1:s=t}while(a<s)}return a}return 2!==e.length?(t=nb,n=(t,n)=>nb(e(t),n),r=(t,n)=>e(t)-n):(t=e===nb||e===nk?e:nx,n=e,r=e),{left:i,center:function(e,t,n=0,a=e.length){let s=i(e,t,n,a-1);return s>n&&r(e[s-1],t)>-r(e[s],t)?s-1:s},right:function(e,r,i=0,a=e.length){if(i<a){if(0!==t(r,r))return a;do{let t=i+a>>>1;0>=n(e[t],r)?i=t+1:a=t}while(i<a)}return i}}}function nx(){return 0}let nE=n_(nb),nT=nE.right;nE.left,n_(function(e){return null===e?NaN:+e}).center;function nA(e,t){return e*=1,t*=1,function(n){return Math.round(e*(1-n)+t*n)}}function nv(e){return+e}var nw=[0,1];function nS(e){return e}function nC(e,t){var n;return(t-=e*=1)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})}function nN(e,t,n){var r=e[0],i=e[1],a=t[0],s=t[1];return i<r?(r=nC(i,r),a=n(s,a)):(r=nC(r,i),a=n(a,s)),function(e){return a(r(e))}}function nI(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=nC(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(t){var n=nT(e,t,1,r)-1;return a[n](i[n](t))}}function nD(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function nO(){return(function(){var e,t,n,r,i,a,s=nw,o=nw,l=function e(t,n){var r,i,a=typeof n;return null==n||"boolean"===a?tp(n):("number"===a?eL:"string"===a?(i=e5(n))?(n=i,tm):tk:n instanceof e5?tm:n instanceof Date?function(e,t){var n=new Date;return e*=1,t*=1,function(r){return n.setTime(e*(1-r)+t*r),n}}:!ArrayBuffer.isView(r=n)||r instanceof DataView?Array.isArray(n)?function(t,n){var r,i=n?n.length:0,a=t?Math.min(i,t.length):0,s=Array(a),o=Array(i);for(r=0;r<a;++r)s[r]=e(t[r],n[r]);for(;r<i;++r)o[r]=n[r];return function(e){for(r=0;r<a;++r)o[r]=s[r](e);return o}}:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(t,n){var r,i={},a={};for(r in(null===t||"object"!=typeof t)&&(t={}),(null===n||"object"!=typeof n)&&(n={}),n)r in t?i[r]=e(t[r],n[r]):a[r]=n[r];return function(e){for(r in i)a[r]=i[r](e);return a}}:eL:function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(a){for(n=0;n<r;++n)i[n]=e[n]*(1-a)+t[n]*a;return i}})(t,n)},c=nS;function u(){var e,t,n,l=Math.min(s.length,o.length);return c!==nS&&(e=s[0],t=s[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?nI:nN,i=a=null,h}function h(t){return null==t||isNaN(t*=1)?n:(i||(i=r(s.map(e),o,l)))(e(c(t)))}return h.invert=function(n){return c(t((a||(a=r(o,s.map(e),eL)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,nv),u()):s.slice()},h.range=function(e){return arguments.length?(o=Array.from(e),u()):o.slice()},h.rangeRound=function(e){return o=Array.from(e),l=nA,u()},h.clamp=function(e){return arguments.length?(c=!!e||nS,u()):c!==nS},h.interpolate=function(e){return arguments.length?(l=e,u()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,r){return e=n,t=r,u()}})()(nS,nS)}let nM=new Date,nL=new Date;function nR(e,t,n,r){function i(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,a)=>{let s,o=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r)||!(a>0))return o;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>nR(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(nM.setTime(+t),nL.setTime(+r),e(nM),e(nL),Math.floor(n(nM,nL))),i.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null),i}let nP=nR(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);nP.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?nR(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):nP:null,nP.range;let nF=nR(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());nF.range;let nB=nR(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());nB.range;let nH=nR(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());nH.range;let nU=nR(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());nU.range;let nj=nR(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());nj.range;let n$=nR(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);n$.range;let nz=nR(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);nz.range;let nG=nR(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function nK(e){return nR(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}nG.range;let nq=nK(0),nY=nK(1),nW=nK(2),nV=nK(3),nX=nK(4),nQ=nK(5),nZ=nK(6);function nJ(e){return nR(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}nq.range,nY.range,nW.range,nV.range,nX.range,nQ.range,nZ.range;let n0=nJ(0),n1=nJ(1),n2=nJ(2),n3=nJ(3),n5=nJ(4),n4=nJ(5),n9=nJ(6);n0.range,n1.range,n2.range,n3.range,n5.range,n4.range,n9.range;let n6=nR(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());n6.range;let n8=nR(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());n8.range;let n7=nR(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());n7.every=e=>isFinite(e=Math.floor(e))&&e>0?nR(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,n7.range;let re=nR(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function rt(e,t,n,r,i,a){let s=[[nF,1,1e3],[nF,5,5e3],[nF,15,15e3],[nF,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function o(t,n,r){let i=Math.abs(n-t)/r,a=n_(([,,e])=>e).right(s,i);if(a===s.length)return e.every(ny(t/31536e6,n/31536e6,r));if(0===a)return nP.every(Math.max(ny(t,n,r),1));let[o,l]=s[i/s[a-1][2]<s[a][2]/i?a-1:a];return o.every(l)}return[function(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&"function"==typeof n.range?n:o(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a},o]}re.every=e=>isFinite(e=Math.floor(e))&&e>0?nR(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,re.range;let[rn,rr]=rt(re,n8,n0,nG,nj,nH),[ri,ra]=rt(n7,n6,nq,n$,nU,nB);function rs(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ro(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function rl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var rc={"-":"",_:" ",0:"0"},ru=/^\s*\d+/,rh=/^%/,rp=/[\\^$*+?|[\]().{}]/g;function rd(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function rf(e){return e.replace(rp,"\\$&")}function rm(e){return RegExp("^(?:"+e.map(rf).join("|")+")","i")}function rg(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function ry(e,t,n){var r=ru.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rb(e,t,n){var r=ru.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function rk(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function r_(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function rx(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function rE(e,t,n){var r=ru.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function rT(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function rA(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function rv(e,t,n){var r=ru.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function rw(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rS(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rC(e,t,n){var r=ru.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function rN(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function rI(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function rD(e,t,n){var r=ru.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function rO(e,t,n){var r=ru.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function rM(e,t,n){var r=ru.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rL(e,t,n){var r=rh.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rR(e,t,n){var r=ru.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function rP(e,t,n){var r=ru.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function rF(e,t){return rd(e.getDate(),t,2)}function rB(e,t){return rd(e.getHours(),t,2)}function rH(e,t){return rd(e.getHours()%12||12,t,2)}function rU(e,t){return rd(1+n$.count(n7(e),e),t,3)}function rj(e,t){return rd(e.getMilliseconds(),t,3)}function r$(e,t){return rj(e,t)+"000"}function rz(e,t){return rd(e.getMonth()+1,t,2)}function rG(e,t){return rd(e.getMinutes(),t,2)}function rK(e,t){return rd(e.getSeconds(),t,2)}function rq(e){var t=e.getDay();return 0===t?7:t}function rY(e,t){return rd(nq.count(n7(e)-1,e),t,2)}function rW(e){var t=e.getDay();return t>=4||0===t?nX(e):nX.ceil(e)}function rV(e,t){return e=rW(e),rd(nX.count(n7(e),e)+(4===n7(e).getDay()),t,2)}function rX(e){return e.getDay()}function rQ(e,t){return rd(nY.count(n7(e)-1,e),t,2)}function rZ(e,t){return rd(e.getFullYear()%100,t,2)}function rJ(e,t){return rd((e=rW(e)).getFullYear()%100,t,2)}function r0(e,t){return rd(e.getFullYear()%1e4,t,4)}function r1(e,t){var n=e.getDay();return rd((e=n>=4||0===n?nX(e):nX.ceil(e)).getFullYear()%1e4,t,4)}function r2(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rd(t/60|0,"0",2)+rd(t%60,"0",2)}function r3(e,t){return rd(e.getUTCDate(),t,2)}function r5(e,t){return rd(e.getUTCHours(),t,2)}function r4(e,t){return rd(e.getUTCHours()%12||12,t,2)}function r9(e,t){return rd(1+nz.count(re(e),e),t,3)}function r6(e,t){return rd(e.getUTCMilliseconds(),t,3)}function r8(e,t){return r6(e,t)+"000"}function r7(e,t){return rd(e.getUTCMonth()+1,t,2)}function ie(e,t){return rd(e.getUTCMinutes(),t,2)}function it(e,t){return rd(e.getUTCSeconds(),t,2)}function ir(e){var t=e.getUTCDay();return 0===t?7:t}function ii(e,t){return rd(n0.count(re(e)-1,e),t,2)}function ia(e){var t=e.getUTCDay();return t>=4||0===t?n5(e):n5.ceil(e)}function is(e,t){return e=ia(e),rd(n5.count(re(e),e)+(4===re(e).getUTCDay()),t,2)}function io(e){return e.getUTCDay()}function il(e,t){return rd(n1.count(re(e)-1,e),t,2)}function ic(e,t){return rd(e.getUTCFullYear()%100,t,2)}function iu(e,t){return rd((e=ia(e)).getUTCFullYear()%100,t,2)}function ih(e,t){return rd(e.getUTCFullYear()%1e4,t,4)}function ip(e,t){var n=e.getUTCDay();return rd((e=n>=4||0===n?n5(e):n5.ceil(e)).getUTCFullYear()%1e4,t,4)}function id(){return"+0000"}function im(){return"%"}function ig(e){return+e}function iy(e){return Math.floor(e/1e3)}function ib(e){return new Date(e)}function ik(e){return e instanceof Date?+e:+new Date(+e)}function i_(){return ns.apply((function e(t,n,r,i,a,s,o,l,c,u){var h=nO(),p=h.invert,d=h.domain,f=u(".%L"),m=u(":%S"),g=u("%I:%M"),y=u("%I %p"),b=u("%a %d"),k=u("%b %d"),_=u("%B"),x=u("%Y");function E(e){return(c(e)<e?f:l(e)<e?m:o(e)<e?g:s(e)<e?y:i(e)<e?a(e)<e?b:k:r(e)<e?_:x)(e)}return h.invert=function(e){return new Date(p(e))},h.domain=function(e){return arguments.length?d(Array.from(e,ik)):d().map(ib)},h.ticks=function(e){var n=d();return t(n[0],n[n.length-1],null==e?10:e)},h.tickFormat=function(e,t){return null==t?E:u(t)},h.nice=function(e){var t,r,i,a,s,o,l,c=d();return e&&"function"==typeof e.range||(e=n(c[0],c[c.length-1],null==e?10:e)),e?d((t=c,r=e,t=t.slice(),a=0,s=t.length-1,o=t[a],(l=t[s])<o&&(i=a,a=s,s=i,i=o,o=l,l=i),t[a]=r.floor(o),t[s]=r.ceil(l),t)):h},h.copy=function(){return nD(h,e(t,n,r,i,a,s,o,l,c,u))},h})(ri,ra,n7,n6,nq,n$,nU,nB,nF,ec).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}ec=(el=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,s=e.shortDays,o=e.months,l=e.shortMonths,c=rm(i),u=rg(i),h=rm(a),p=rg(a),d=rm(s),f=rg(s),m=rm(o),g=rg(o),y=rm(l),b=rg(l),k={a:function(e){return s[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return o[e.getMonth()]},c:null,d:rF,e:rF,f:r$,g:rJ,G:r1,H:rB,I:rH,j:rU,L:rj,m:rz,M:rG,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ig,s:iy,S:rK,u:rq,U:rY,V:rV,w:rX,W:rQ,x:null,X:null,y:rZ,Y:r0,Z:r2,"%":im},_={a:function(e){return s[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return o[e.getUTCMonth()]},c:null,d:r3,e:r3,f:r8,g:iu,G:ip,H:r5,I:r4,j:r9,L:r6,m:r7,M:ie,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ig,s:iy,S:it,u:ir,U:ii,V:is,w:io,W:il,x:null,X:null,y:ic,Y:ih,Z:id,"%":im},x={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return A(e,t,n,r)},d:rS,e:rS,f:rM,g:rT,G:rE,H:rN,I:rN,j:rC,L:rO,m:rw,M:rI,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:rv,Q:rR,s:rP,S:rD,u:rb,U:rk,V:r_,w:ry,W:rx,x:function(e,t,r){return A(e,n,t,r)},X:function(e,t,n){return A(e,r,t,n)},y:rT,Y:rE,Z:rA,"%":rL};function E(e,t){return function(n){var r,i,a,s=[],o=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++o<c;)37===e.charCodeAt(o)&&(s.push(e.slice(l,o)),null!=(i=rc[r=e.charAt(++o)])?r=e.charAt(++o):i="e"===r?" ":"0",(a=t[r])&&(r=a(n,i)),s.push(r),l=o+1);return s.push(e.slice(l,o)),s.join("")}}function T(e,t){return function(n){var r,i,a=rl(1900,void 0,1);if(A(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(!t||"Z"in a||(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=ro(rl(a.y,0,1))).getUTCDay())>4||0===i?n1.ceil(r):n1(r),r=nz.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=rs(rl(a.y,0,1))).getDay())>4||0===i?nY.ceil(r):nY(r),r=n$.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:+("W"in a)),i="Z"in a?ro(rl(a.y,0,1)).getUTCDay():rs(rl(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,ro(a)):rs(a)}}function A(e,t,n,r){for(var i,a,s=0,o=t.length,l=n.length;s<o;){if(r>=l)return -1;if(37===(i=t.charCodeAt(s++))){if(!(a=x[(i=t.charAt(s++))in rc?t.charAt(s++):i])||(r=a(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return k.x=E(n,k),k.X=E(r,k),k.c=E(t,k),_.x=E(n,_),_.X=E(r,_),_.c=E(t,_),{format:function(e){var t=E(e+="",k);return t.toString=function(){return e},t},parse:function(e){var t=T(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=T(e+="",!0);return t.toString=function(){return e},t}}}({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"]})).format,el.parse,el.utcFormat,el.utcParse;let ix=function(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function iE(e){return"string"==typeof e?new Q([[document.querySelector(e)]],[document.documentElement]):new Q([[e]],X)}function iT(e){return function(){return e}}let iA=Math.abs,iv=Math.atan2,iw=Math.cos,iS=Math.max,iC=Math.min,iN=Math.sin,iI=Math.sqrt,iD=Math.PI,iO=iD/2,iM=2*iD;function iL(e){return e>=1?iO:e<=-1?-iO:Math.asin(e)}let iR=Math.PI,iP=2*iR,iF=iP-1e-6;function iB(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class iH{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?iB:function(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return iB;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e*=1,t*=1,n*=1,r*=1,(i*=1)<0)throw Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,o=n-e,l=r-t,c=a-e,u=s-t,h=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(h>1e-6)if(Math.abs(u*o-l*c)>1e-6&&i){let p=n-a,d=r-s,f=o*o+l*l,m=Math.sqrt(f),g=Math.sqrt(h),y=i*Math.tan((iR-Math.acos((f+h-(p*p+d*d))/(2*m*g)))/2),b=y/g,k=y/m;Math.abs(b-1)>1e-6&&this._append`L${e+b*c},${t+b*u}`,this._append`A${i},${i},0,0,${+(u*p>c*d)},${this._x1=e+k*o},${this._y1=t+k*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,i,a){if(e*=1,t*=1,n*=1,a=!!a,n<0)throw Error(`negative radius: ${n}`);let s=n*Math.cos(r),o=n*Math.sin(r),l=e+s,c=t+o,u=1^a,h=a?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%iP+iP),h>iF?this._append`A${n},${n},0,1,${u},${e-s},${t-o}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:h>1e-6&&this._append`A${n},${n},0,${+(h>=iR)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n*=1}v${+r}h${-n}Z`}toString(){return this._}}function iU(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new iH(t)}function ij(e){return e.innerRadius}function i$(e){return e.outerRadius}function iz(e){return e.startAngle}function iG(e){return e.endAngle}function iK(e){return e&&e.padAngle}function iq(e,t,n,r,i,a,s){var o=e-n,l=t-r,c=(s?a:-a)/iI(o*o+l*l),u=c*l,h=-c*o,p=e+u,d=t+h,f=n+u,m=r+h,g=(p+f)/2,y=(d+m)/2,b=f-p,k=m-d,_=b*b+k*k,x=i-a,E=p*m-f*d,T=(k<0?-1:1)*iI(iS(0,x*x*_-E*E)),A=(E*k-b*T)/_,v=(-E*b-k*T)/_,w=(E*k+b*T)/_,S=(-E*b+k*T)/_,C=A-g,N=v-y,I=w-g,D=S-y;return C*C+N*N>I*I+D*D&&(A=w,v=S),{cx:A,cy:v,x01:-u,y01:-h,x11:A*(i/x-1),y11:v*(i/x-1)}}function iY(){var e=ij,t=i$,n=iT(0),r=null,i=iz,a=iG,s=iK,o=null,l=iU(c);function c(){var c,u,h=+e.apply(this,arguments),p=+t.apply(this,arguments),d=i.apply(this,arguments)-iO,f=a.apply(this,arguments)-iO,m=iA(f-d),g=f>d;if(o||(o=c=l()),p<h&&(u=p,p=h,h=u),p>1e-12)if(m>iM-1e-12)o.moveTo(p*iw(d),p*iN(d)),o.arc(0,0,p,d,f,!g),h>1e-12&&(o.moveTo(h*iw(f),h*iN(f)),o.arc(0,0,h,f,d,g));else{var y,b,k=d,_=f,x=d,E=f,T=m,A=m,v=s.apply(this,arguments)/2,w=v>1e-12&&(r?+r.apply(this,arguments):iI(h*h+p*p)),S=iC(iA(p-h)/2,+n.apply(this,arguments)),C=S,N=S;if(w>1e-12){var I=iL(w/h*iN(v)),D=iL(w/p*iN(v));(T-=2*I)>1e-12?(I*=g?1:-1,x+=I,E-=I):(T=0,x=E=(d+f)/2),(A-=2*D)>1e-12?(D*=g?1:-1,k+=D,_-=D):(A=0,k=_=(d+f)/2)}var O=p*iw(k),M=p*iN(k),L=h*iw(E),R=h*iN(E);if(S>1e-12){var P,F=p*iw(_),B=p*iN(_),H=h*iw(x),U=h*iN(x);if(m<iD)if(P=function(e,t,n,r,i,a,s,o){var l=n-e,c=r-t,u=s-i,h=o-a,p=h*l-u*c;if(!(p*p<1e-12))return p=(u*(t-a)-h*(e-i))/p,[e+p*l,t+p*c]}(O,M,H,U,F,B,L,R)){var j,$=O-P[0],z=M-P[1],G=F-P[0],K=B-P[1],q=1/iN(((j=($*G+z*K)/(iI($*$+z*z)*iI(G*G+K*K)))>1?0:j<-1?iD:Math.acos(j))/2),Y=iI(P[0]*P[0]+P[1]*P[1]);C=iC(S,(h-Y)/(q-1)),N=iC(S,(p-Y)/(q+1))}else C=N=0}A>1e-12?N>1e-12?(y=iq(H,U,O,M,p,N,g),b=iq(F,B,L,R,p,N,g),o.moveTo(y.cx+y.x01,y.cy+y.y01),N<S?o.arc(y.cx,y.cy,N,iv(y.y01,y.x01),iv(b.y01,b.x01),!g):(o.arc(y.cx,y.cy,N,iv(y.y01,y.x01),iv(y.y11,y.x11),!g),o.arc(0,0,p,iv(y.cy+y.y11,y.cx+y.x11),iv(b.cy+b.y11,b.cx+b.x11),!g),o.arc(b.cx,b.cy,N,iv(b.y11,b.x11),iv(b.y01,b.x01),!g))):(o.moveTo(O,M),o.arc(0,0,p,k,_,!g)):o.moveTo(O,M),h>1e-12&&T>1e-12?C>1e-12?(y=iq(L,R,F,B,h,-C,g),b=iq(O,M,H,U,h,-C,g),o.lineTo(y.cx+y.x01,y.cy+y.y01),C<S?o.arc(y.cx,y.cy,C,iv(y.y01,y.x01),iv(b.y01,b.x01),!g):(o.arc(y.cx,y.cy,C,iv(y.y01,y.x01),iv(y.y11,y.x11),!g),o.arc(0,0,h,iv(y.cy+y.y11,y.cx+y.x11),iv(b.cy+b.y11,b.cx+b.x11),g),o.arc(b.cx,b.cy,C,iv(b.y11,b.x11),iv(b.y01,b.x01),!g))):o.arc(0,0,h,E,x,g):o.lineTo(L,R)}else o.moveTo(0,0);if(o.closePath(),c)return o=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-iD/2;return[iw(r)*n,iN(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:iT(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:iT(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:iT(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:iT(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:iT(+e),c):i},c.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:iT(+e),c):a},c.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:iT(+e),c):s},c.context=function(e){return arguments.length?(o=null==e?null:e,c):o},c}function iW(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function iV(e){this._context=e}function iX(e){return new iV(e)}function iQ(e){return e[0]}function iZ(e){return e[1]}function iJ(e,t){var n=iT(!0),r=null,i=iX,a=null,s=iU(o);function o(o){var l,c,u,h=(o=iW(o)).length,p=!1;for(null==r&&(a=i(u=s())),l=0;l<=h;++l)!(l<h&&n(c=o[l],l,o))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(c,l,o),+t(c,l,o));if(u)return a=null,u+""||null}return e="function"==typeof e?e:void 0===e?iQ:iT(e),t="function"==typeof t?t:void 0===t?iZ:iT(t),o.x=function(t){return arguments.length?(e="function"==typeof t?t:iT(+t),o):e},o.y=function(e){return arguments.length?(t="function"==typeof e?e:iT(+e),o):t},o.defined=function(e){return arguments.length?(n="function"==typeof e?e:iT(!!e),o):n},o.curve=function(e){return arguments.length?(i=e,null!=r&&(a=i(r)),o):i},o.context=function(e){return arguments.length?(null==e?r=a=null:a=i(r=e),o):r},o}function i0(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function i1(e){return e}function i2(){var e=i1,t=i0,n=null,r=iT(0),i=iT(iM),a=iT(0);function s(s){var o,l,c,u,h,p=(s=iW(s)).length,d=0,f=Array(p),m=Array(p),g=+r.apply(this,arguments),y=Math.min(iM,Math.max(-iM,i.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/p,a.apply(this,arguments)),k=b*(y<0?-1:1);for(o=0;o<p;++o)(h=m[f[o]=o]=+e(s[o],o,s))>0&&(d+=h);for(null!=t?f.sort(function(e,n){return t(m[e],m[n])}):null!=n&&f.sort(function(e,t){return n(s[e],s[t])}),o=0,c=d?(y-p*k)/d:0;o<p;++o,g=u)u=g+((h=m[l=f[o]])>0?h*c:0)+k,m[l]={data:s[l],index:o,value:h,startAngle:g,endAngle:u,padAngle:b};return m}return s.value=function(t){return arguments.length?(e="function"==typeof t?t:iT(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,n=null,s):t},s.sort=function(e){return arguments.length?(n=e,t=null,s):n},s.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:iT(+e),s):r},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:iT(+e),s):i},s.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:iT(+e),s):a},s}function i3(){}function i5(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function i4(e){this._context=e}function i9(e){return new i4(e)}function i6(e){this._context=e}function i8(e){return new i6(e)}function i7(e){this._context=e}function ae(e){return new i7(e)}iH.prototype,Array.prototype.slice,iV.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(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},i4.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:i5(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(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:i5(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},i6.prototype={areaStart:i3,areaEnd:i3,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(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:i5(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},i7.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(e,t){switch(e*=1,t*=1,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+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:i5(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class at{constructor(e,t){this._context=e,this._x=t}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(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function an(e){return new at(e,!0)}function ar(e){return new at(e,!1)}function ai(e,t){this._basis=new i4(e),this._beta=t}ai.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],s=e[n]-i,o=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*s),this._beta*t[l]+(1-this._beta)*(a+r*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};let aa=function e(t){function n(e){return 1===t?new i4(e):new ai(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function as(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ao(e,t){this._context=e,this._k=(1-t)/6}ao.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:as(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:as(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let al=function e(t){function n(e){return new ao(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ac(e,t){this._context=e,this._k=(1-t)/6}ac.prototype={areaStart:i3,areaEnd:i3,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(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:as(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let au=function e(t){function n(e){return new ac(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ah(e,t){this._context=e,this._k=(1-t)/6}ah.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(e,t){switch(e*=1,t*=1,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:as(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ap=function e(t){function n(e){return new ah(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ad(e,t,n){var r=e._x1,i=e._y1,a=e._x2,s=e._y2;if(e._l01_a>1e-12){var o=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,s=(s*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,s,e._x2,e._y2)}function af(e,t){this._context=e,this._alpha=t}af.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(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,r=this._y2-t;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(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ad(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let am=function e(t){function n(e){return t?new af(e,t):new ao(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ag(e,t){this._context=e,this._alpha=t}ag.prototype={areaStart:i3,areaEnd:i3,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(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,r=this._y2-t;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=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ad(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ay=function e(t){function n(e){return t?new ag(e,t):new ac(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ab(e,t){this._context=e,this._alpha=t}ab.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(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,r=this._y2-t;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:ad(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ak=function e(t){function n(e){return t?new ab(e,t):new ah(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function a_(e){this._context=e}function ax(e){return new a_(e)}function aE(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0);return((a<0?-1:1)+(s<0?-1:1))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs((a*i+s*r)/(r+i)))||0}function aT(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function aA(e,t,n){var r=e._x0,i=e._y0,a=e._x1,s=e._y1,o=(a-r)/3;e._context.bezierCurveTo(r+o,i+o*t,a-o,s-o*n,a,s)}function av(e){this._context=e}function aw(e){this._context=new aS(e)}function aS(e){this._context=e}function aC(e){return new av(e)}function aN(e){return new aw(e)}function aI(e){this._context=e}function aD(e){var t,n,r=e.length-1,i=Array(r),a=Array(r),s=Array(r);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(t=0,a[r-1]=(e[r]+i[r-1])/2;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function aO(e){return new aI(e)}function aM(e,t){this._context=e,this._t=t}function aL(e){return new aM(e,.5)}function aR(e){return new aM(e,0)}function aP(e){return new aM(e,1)}function aF(e,t,n){this.k=e,this.x=t,this.y=n}a_.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e*=1,t*=1,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},av.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:aA(this,this._t0,aT(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t*=1,(e*=1)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,aA(this,aT(this,n=aE(this,e,t)),n);break;default:aA(this,this._t0,n=aE(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(aw.prototype=Object.create(av.prototype)).point=function(e,t){av.prototype.point.call(this,t,e)},aS.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}},aI.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=aD(e),i=aD(t),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},aM.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(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},aF.prototype={constructor:aF,scale:function(e){return 1===e?this:new aF(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new aF(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new aF(1,0,0);aF.prototype},36088:e=>{function t(e){if(!e)return"";if(!/\r/.test(e))return e;for(e=e.replace(/\r+\n/gm,"\n");/\r./.test(e);)e=e.replace(/^([^\r\n]*)\r+([^\r\n]+)/gm,function(e,t,n){return n+t.slice(n.length)});return e}function n(e){if(!/\r/.test(e))return e;for(var t=e.split("\r"),n=[];t.length>0;){var r=function(e){for(var t=0,n=0;n<e.length;n++)e[t].length<=e[n].length&&(t=n);return t}(t);n.push(t[r]),t=t.slice(r+1)}return n.join("\r")}e.exports=t,e.exports.escapeCarriageReturn=t,e.exports.escapeCarriageReturnSafe=function(e){if(!e)return"";if(!/\r/.test(e))return e;if(!/\n/.test(e))return n(e);var r=(e=e.replace(/\r+\n/gm,"\n")).lastIndexOf("\n");return t(e.slice(0,r))+"\n"+n(e.slice(r+1))}},36829:(e,t,n)=>{"use strict";var r,i;n.d(t,{$g:()=>F,PH:()=>m,Qj:()=>r,RY:()=>M,Z6:()=>h,cF:()=>a,fI:()=>p,iX:()=>R,rr:()=>L,uY:()=>l});let a=1024,s=0;class o{constructor(e,t){this.from=e,this.to=t}}class l{constructor(e={}){this.id=s++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=h.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}l.closedBy=new l({deserialize:e=>e.split(" ")}),l.openedBy=new l({deserialize:e=>e.split(" ")}),l.group=new l({deserialize:e=>e.split(" ")}),l.isolate=new l({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw RangeError("Invalid value for isolate: "+e);return e||"auto"}}),l.contextHash=new l({perNode:!0}),l.lookAhead=new l({perNode:!0}),l.mounted=new l({perNode:!0});class c{constructor(e,t,n,r=!1){this.tree=e,this.overlay=t,this.parser=n,this.bracketed=r}static get(e){return e&&e.props&&e.props[l.mounted.id]}}let u=Object.create(null);class h{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):u,n=!!e.top|2*!!e.skipped|4*!!e.error|8*(null==e.name),r=new h(e.name||"",t,e.id,n);if(e.props){for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(l.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(l.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}h.none=new h("",Object.create(null),0,8);class p{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let r=null;for(let t of e){let e=t(n);if(e){r||(r=Object.assign({},n.props));let t=e[1],i=e[0];i.combine&&i.id in r&&(t=i.combine(r[i.id],t)),r[i.id]=t}}t.push(r?new h(n.name,r,n.id,n.flags):n)}return new p(t)}}let d=new WeakMap,f=new WeakMap;(i=r||(r={}))[i.ExcludeBuffers=1]="ExcludeBuffers",i[i.IncludeAnonymous=2]="IncludeAnonymous",i[i.IgnoreMounts=4]="IgnoreMounts",i[i.IgnoreOverlays=8]="IgnoreOverlays",i[i.EnterBracketed=16]="EnterBracketed";class m{constructor(e,t,n,r,i){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,i&&i.length)for(let[e,t]of(this.props=Object.create(null),i))this.props["number"==typeof e?e:e.id]=t}toString(){let e=c.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let n=e.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new C(this.topNode,e)}cursorAt(e,t=0,n=0){let r=new C(d.get(this)||this.topNode);return r.moveTo(e,t),d.set(this,r._tree),r}get topNode(){return new x(this,0,0,null)}resolve(e,t=0){let n=k(d.get(this)||this.topNode,e,t,!1);return d.set(this,n),n}resolveInner(e,t=0){let n=k(f.get(this)||this.topNode,e,t,!0);return f.set(this,n),n}resolveStack(e,t=0){return function(e,t,n){let r=e.resolveInner(t,n),i=null;for(let e=r instanceof x?r:r.context.parent;e;e=e.parent)if(e.index<0){let a=e.parent;(i||(i=[r])).push(a.resolve(t,n)),e=a}else{let a=c.get(e.tree);if(a&&a.overlay&&a.overlay[0].from<=t&&a.overlay[a.overlay.length-1].to>=t){let s=new x(a.tree,a.overlay[0].from+e.from,-1,e);(i||(i=[r])).push(k(s,t,n,!1))}}return i?w(i):r}(this,e,t)}iterate(e){let{enter:t,leave:n,from:i=0,to:a=this.length}=e,s=e.mode||0,o=(s&r.IncludeAnonymous)>0;for(let e=this.cursor(s|r.IncludeAnonymous);;){let r=!1;if(e.from<=a&&e.to>=i&&(!o&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;r=!0}for(;r&&n&&(o||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;r=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:O(h.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new m(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new m(h.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=a,reused:s=[],minRepeatType:o=r.types.length}=e,c=Array.isArray(n)?new g(n,n.length):n,u=r.types,h=0,p=0;function d(e,t,n,i,a,s,o,l,c){let u=[],h=[];for(;e.length>i;)u.push(e.pop()),h.push(t.pop()+n-a);e.push(f(r.types[o],u,h,s-a,l-s,c)),t.push(a-n)}function f(e,t,n,r,i,a,s){if(a){let e=[l.contextHash,a];s=s?[e].concat(s):[e]}if(i>25){let e=[l.lookAhead,i];s=s?[e].concat(s):[e]}return new m(e,t,n,r,s)}let b=[],k=[];for(;c.pos>0;)!function e(t,n,a,g,b,k){let{id:_,start:x,end:E,size:T}=c,A=p,v=h;if(T<0){if(c.next(),-1==T){let e=s[_];a.push(e),g.push(x-t);return}if(-3==T){h=_;return}if(-4==T){p=_;return}else throw RangeError(`Unrecognized record size: ${T}`)}let w=u[_],S,C,N=x-t;if(E-x<=i&&(C=function(e,t){let n=c.fork(),r=0,a=0,s=0,l=n.end-i,u={size:0,start:0,skip:0};n:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){u.size=r,u.start=a,u.skip=s,s+=4,r+=4,n.next();continue}let c=n.pos-e;if(e<0||c<i||n.start<l)break;let h=4*(n.id>=o),p=n.start;for(n.next();n.pos>c;){if(n.size<0)if(-3==n.size||-4==n.size)h+=4;else break n;else n.id>=o&&(h+=4);n.next()}a=p,r+=e,s+=h}return(t<0||r==e)&&(u.size=r,u.start=a,u.skip=s),u.size>4?u:void 0}(c.pos-n,b))){let e=new Uint16Array(C.size-C.skip),n=c.pos-C.size,i=e.length;for(;c.pos>n;)i=function e(t,n,r){let{id:i,start:a,end:s,size:l}=c;if(c.next(),l>=0&&i<o){let o=r;if(l>4){let i=c.pos-(l-4);for(;c.pos>i;)r=e(t,n,r)}n[--r]=o,n[--r]=s-t,n[--r]=a-t,n[--r]=i}else -3==l?h=i:-4==l&&(p=i);return r}(C.start,e,i);S=new y(e,E-C.start,r),N=C.start-t}else{let t=c.pos-T;c.next();let n=[],a=[],s=_>=o?_:-1,u=0,h=E;for(;c.pos>t;)s>=0&&c.id==s&&c.size>=0?(c.end<=h-i&&(d(n,a,x,u,c.end,h,s,A,v),u=n.length,h=c.end),c.next()):k>2500?function(e,t,n,a){let s=[],o=0,l=-1;for(;c.pos>t;){let{id:e,start:t,end:n,size:r}=c;if(r>4)c.next();else if(l>-1&&t<l)break;else l<0&&(l=n-i),s.push(e,t,n),o++,c.next()}if(o){let t=new Uint16Array(4*o),i=s[s.length-2];for(let e=s.length-3,n=0;e>=0;e-=3)t[n++]=s[e],t[n++]=s[e+1]-i,t[n++]=s[e+2]-i,t[n++]=n;n.push(new y(t,s[2]-i,r)),a.push(i-e)}}(x,t,n,a):e(x,t,n,a,s,k+1);if(s>=0&&u>0&&u<n.length&&d(n,a,x,u,x,h,s,A,v),n.reverse(),a.reverse(),s>-1&&u>0){let e=function(e,t){return(n,r,i)=>{let a=0,s=n.length-1,o,c;if(s>=0&&(o=n[s])instanceof m){if(!s&&o.type==e&&o.length==i)return o;(c=o.prop(l.lookAhead))&&(a=r[s]+o.length+c)}return f(e,n,r,i,a,t)}}(w,v);S=O(w,n,a,0,n.length,0,E-x,e,e)}else S=f(w,n,a,E-x,A-E,v)}a.push(S),g.push(N)}(e.start||0,e.bufferStart||0,b,k,-1,0);let _=null!=(t=e.length)?t:b.length?k[0]+b[0].length:0;return new m(u[e.topID],b.reverse(),k.reverse(),_)}(e)}}m.empty=new m(h.none,[],[],0);class g{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new g(this.buffer,this.index)}}class y{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return h.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(e+=4))return i;let a=[];for(;e<n;)a.push(this.childString(e)),e=this.buffer[e+3];return i+"("+a.join(",")+")"}findChild(e,t,n,r,i){let{buffer:a}=this,s=-1;for(let o=e;o!=t&&(!b(i,r,a[o+1],a[o+2])||(s=o,!(n>0)));o=a[o+3]);return s}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),a=0;for(let s=e,o=0;s<t;){i[o++]=r[s++],i[o++]=r[s++]-n;let t=i[o++]=r[s++]-n;i[o++]=r[s++]-e,a=Math.max(a,t)}return new y(i,a,this.set)}}function b(e,t,n,r){switch(e){case -2:return n<t;case -1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function k(e,t,n,i){for(var a;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!i&&e instanceof x&&e.index<0?null:e.parent;if(!t)return e;e=t}let s=i?0:r.IgnoreOverlays;if(i)for(let r=e,i=r.parent;i;i=(r=i).parent)r instanceof x&&r.index<0&&(null==(a=i.enter(t,n,s))?void 0:a.from)!=r.from&&(e=i);for(;;){let r=e.enter(t,n,s);if(!r)return e;e=r}}class _{cursor(e=0){return new C(this,e)}getChild(e,t=null,n=null){let r=E(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return E(this,e,t,n)}resolve(e,t=0){return k(this,e,t,!1)}resolveInner(e,t=0){return k(this,e,t,!0)}matchContext(e){return T(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}}class x extends _{constructor(e,t,n,r){super(),this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,i,a=0){for(let s=this;;){for(let{children:o,positions:l}=s._tree,u=t>0?o.length:-1;e!=u;e+=t){let u=o[e],h=l[e]+s.from,p;if(a&r.EnterBracketed&&u instanceof m&&(p=c.get(u))&&!p.overlay&&p.bracketed&&n>=h&&n<=h+u.length||b(i,n,h,h+u.length)){if(u instanceof y){if(a&r.ExcludeBuffers)continue;let o=u.findChild(0,u.buffer.length,t,n-h,i);if(o>-1)return new v(new A(s,u,e,h),null,o)}else if(a&r.IncludeAnonymous||!u.type.isAnonymous||N(u)){let o;if(!(a&r.IgnoreMounts)&&(o=c.get(u))&&!o.overlay)return new x(o.tree,h,e,s);let l=new x(u,h,e,s);return a&r.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?u.children.length-1:0,t,n,i,a)}}}if(a&r.IncludeAnonymous||!s.type.isAnonymous||(e=s.index>=0?s.index+t:t<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,n=0){let i;if(!(n&r.IgnoreOverlays)&&(i=c.get(this._tree))&&i.overlay){let a=e-this.from,s=n&r.EnterBracketed&&i.bracketed;for(let{from:e,to:n}of i.overlay)if((t>0||s?e<=a:e<a)&&(t<0||s?n>=a:n>a))return new x(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function E(e,t,n,r){let i=e.cursor(),a=[];if(!i.firstChild())return a;if(null!=n){for(let e=!1;!e;)if(e=i.type.is(n),!i.nextSibling())return a}for(;;){if(null!=r&&i.type.is(r))return a;if(i.type.is(t)&&a.push(i.node),!i.nextSibling())return null==r?a:[]}}function T(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class A{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class v extends _{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new v(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,n=0){if(n&r.ExcludeBuffers)return null;let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return a<0?null:new v(this.context,this,a)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new v(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new v(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let a=n.buffer[this.index+1];e.push(n.slice(r,i,a)),t.push(0)}return new m(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function w(e){if(!e.length)return null;let t=0,n=e[0];for(let r=1;r<e.length;r++){let i=e[r];(i.from>n.from||i.to<n.to)&&(n=i,t=r)}let r=n instanceof x&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new S(i,n)}class S{constructor(e,t){this.heads=e,this.node=t}get next(){return w(this.heads)}}class C{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~r.EnterBracketed,e instanceof x)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof x?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&r.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&r.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&r.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(i.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=i)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let i=t+e,a=e<0?-1:n._tree.children.length;i!=a;i+=e){let e=n._tree.children[i];if(this.mode&r.IncludeAnonymous||e instanceof y||!e.type.isAnonymous||N(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)n:for(let r=this.index,i=this.stack.length;i>=0;){for(let a=e;a;a=a._parent)if(a.index==r){if(r==this.index)return a;t=a,n=i+1;break n}r=this.stack[--i]}for(let e=n;e<this.stack.length;e++)t=new v(this.buffer,t,this.stack[e]);return this.bufferNode=new v(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&t&&t(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return T(this.node.parent,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return T(this._tree,e,r);let a=n[t.buffer[this.stack[i]]];if(!a.isAnonymous){if(e[r]&&e[r]!=a.name)return!1;r--}}return!0}}function N(e){return e.children.some(e=>e instanceof y||!e.type.isAnonymous||N(e))}let I=new WeakMap;function D(e,t){if(!e.isAnonymous||t instanceof y||t.type!=e)return 1;let n=I.get(t);if(null==n){for(let r of(n=1,t.children)){if(r.type!=e||!(r instanceof m)){n=1;break}n+=D(e,r)}I.set(t,n)}return n}function O(e,t,n,r,i,a,s,o,l){let c=0;for(let n=r;n<i;n++)c+=D(e,t[n]);let u=Math.ceil(1.5*c/8),h=[],p=[];return!function t(n,r,i,s,o){for(let c=i;c<s;){let i=c,d=r[c],f=D(e,n[c]);for(c++;c<s;c++){let t=D(e,n[c]);if(f+t>=u)break;f+=t}if(c==i+1){if(f>u){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+o);continue}h.push(n[i])}else{let t=r[c-1]+n[c-1].length-d;h.push(O(e,n,r,i,c,d,t,null,l))}p.push(d+o-a)}}(t,n,r,i,0),(o||l)(h,p,s)}class M{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof v?this.setBuffer(e.context.buffer,e.index,t):e instanceof x&&this.map.set(e.tree,t)}get(e){return e instanceof v?this.getBuffer(e.context.buffer,e.index):e instanceof x?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class L{constructor(e,t,n,r,i=!1,a=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=!!i|2*!!a}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new L(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,a=e.length?e[0]:null;for(let s=0,o=0,l=0;;s++){let c=s<t.length?t[s]:null,u=c?c.fromA:1e9;if(u-o>=n)for(;a&&a.from<u;){let t=a;if(o>=t.from||u<=t.to||l){let e=Math.max(t.from,o)-l,n=Math.min(t.to,u)-l;t=e>=n?null:new L(e,n,t.tree,t.offset+l,s>0,!!c)}if(t&&r.push(t),a.to>u)break;a=i<e.length?e[i++]:null}if(!c)break;o=c.toA,l=c.toA-c.toB}return r}}class R{startParse(e,t,n){return"string"==typeof e&&(e=new P(e)),n=n?n.length?n.map(e=>new o(e.from,e.to)):[new o(0,0)]:[new o(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class P{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function F(e){return(t,n,r,i)=>new $(t,e,n,r,i)}class B{constructor(e,t,n,r,i,a){this.parser=e,this.parse=t,this.overlay=n,this.bracketed=r,this.target=i,this.from=a}}function H(e){if(!e.length||e.some(e=>e.from>=e.to))throw RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class U{constructor(e,t,n,r,i,a,s,o){this.parser=e,this.predicate=t,this.mounts=n,this.index=r,this.start=i,this.bracketed=a,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}let j=new l({perNode:!0});class ${constructor(e,t,n,r,i){this.nest=t,this.input=n,this.fragments=r,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new m(e.type,e.children,e.positions,e.length,e.propValues.concat([[j,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[l.mounted.id]=new c(t,e.overlay,e.parser,e.bracketed),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new K(this.fragments),t=null,n=null,i=new C(new x(this.baseTree,this.ranges[0].from,0,null),r.IncludeAnonymous|r.IgnoreMounts);n:for(let r,a;;){let s=!0,l;if(null!=this.stoppedAt&&i.from>=this.stoppedAt)s=!1;else if(e.hasNode(i)){if(t){let e=t.mounts.find(e=>e.frag.from<=i.from&&e.frag.to>=i.to&&e.mount.overlay);if(e)for(let n of e.mount.overlay){let r=n.from+e.pos,a=n.to+e.pos;r>=i.from&&a<=i.to&&!t.ranges.some(e=>e.from<a&&e.to>r)&&t.ranges.push({from:r,to:a})}}s=!1}else if(n&&(a=function(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}(n.ranges,i.from,i.to)))s=2!=a;else if(!i.type.isAnonymous&&(r=this.nest(i,this.input))&&(i.from<i.to||!r.overlay)){!i.tree&&(function(e){let{node:t}=e,n=[],r=t.context.buffer;do n.push(e.index),e.parent();while(!e.tree);let i=e.tree,a=i.children.indexOf(r),s=i.children[a],o=s.buffer,l=[a];for(let r of(i.children[a]=function e(r,i,a,c,u,h){let p=n[h],d=[],f=[];z(s,r,p,d,f,c);let g=o[p+1],y=o[p+2];l.push(d.length);let b=h?e(p+4,o[p+3],s.set.types[o[p]],g,y-g,h-1):t.toTree();return d.push(b),f.push(g-c),z(s,o[p+3],i,d,f,c),new m(a,d,f,u)}(0,o.length,h.none,0,s.length,n.length-1),l)){let t=e.tree.children[r],n=e.tree.positions[r];e.yield(new x(t,n+e.from,r,e._tree))}}(i),t&&t.depth++,n&&n.depth++);let a=e.findMounts(i.from,r.parser);if("function"==typeof r.overlay)t=new U(r.parser,r.overlay,a,this.inner.length,i.from,!!r.bracketed,i.tree,t);else{let e=q(this.ranges,r.overlay||(i.from<i.to?[new o(i.from,i.to)]:[]));e.length&&H(e),(e.length||!r.overlay)&&this.inner.push(new B(r.parser,e.length?r.parser.startParse(this.input,Y(a,e),e):r.parser.startParse(""),r.overlay?r.overlay.map(e=>new o(e.from-i.from,e.to-i.from)):null,!!r.bracketed,i.tree,e.length?e[0].from:i.from)),r.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):s=!1}}else if(t&&(l=t.predicate(i))&&(!0===l&&(l=new o(i.from,i.to)),l.from<l.to)){let e=t.ranges.length-1;e>=0&&t.ranges[e].to==l.from?t.ranges[e]={from:t.ranges[e].from,to:l.to}:t.ranges.push(l)}if(s&&i.firstChild())t&&t.depth++,n&&n.depth++;else for(;!i.nextSibling();){if(!i.parent())break n;if(t&&!--t.depth){let e=q(this.ranges,t.ranges);e.length&&(H(e),this.inner.splice(t.index,0,new B(t.parser,t.parser.startParse(this.input,Y(t.mounts,e),e),t.ranges.map(e=>new o(e.from-t.start,e.to-t.start)),t.bracketed,t.target,e[0].from))),t=t.prev}!n||--n.depth||(n=n.prev)}}}}function z(e,t,n,r,i,a){if(t<n){let s=e.buffer[t+1];r.push(e.slice(t,n,s)),i.push(s-a)}}class G{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(r.IncludeAnonymous|r.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from<n;)if(t.to>=e&&t.enter(n,1,r.IgnoreOverlays|r.ExcludeBuffers));else if(t.to<=e)t.next(!1)||(this.done=!0);else break}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&0==t.positions[0]&&t.children[0]instanceof m)t=t.children[0];else break}return!1}}class K{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=null!=(t=n.tree.prop(j))?t:n.to,this.inner=new G(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!=(e=t.tree.prop(j))?e:t.to,this.inner=new G(t.tree,-t.offset)}}findMounts(e,t){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let i=null==(n=e.tree)?void 0:n.prop(l.mounted);if(i&&i.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let n=this.fragments[t];if(n.from>=e.to)break;n.tree==this.curFrag.tree&&r.push({frag:n,pos:e.from-n.offset,mount:i})}}}return r}}function q(e,t){let n=null,r=t;for(let i=1,a=0;i<e.length;i++){let s=e[i-1].to,l=e[i].from;for(;a<r.length;a++){let e=r[a];if(e.from>=l)break;!(e.to<=s)&&(n||(r=n=t.slice()),e.from<s?(n[a]=new o(e.from,s),e.to>l&&n.splice(a+1,0,new o(l,e.to))):e.to>l?n[a--]=new o(l,e.to):n.splice(a--,1))}}return r}function Y(e,t){let n=[];for(let{pos:r,mount:i,frag:a}of e){let e=r+(i.overlay?i.overlay[0].from:0),s=e+i.tree.length,l=Math.max(a.from,e),c=Math.min(a.to,s);if(i.overlay){let s=function(e,t,n,r){let i=0,a=0,s=!1,l=!1,c=-1e9,u=[];for(;;){let h=i==e.length?1e9:s?e[i].to:e[i].from,p=a==t.length?1e9:l?t[a].to:t[a].from;if(s!=l){let e=Math.max(c,n),t=Math.min(h,p,r);e<t&&u.push(new o(e,t))}if(1e9==(c=Math.min(h,p)))break;h==c&&(s?(s=!1,i++):s=!0),p==c&&(l?(l=!1,a++):l=!0)}return u}(t,i.overlay.map(e=>new o(e.from+r,e.to+r)),l,c);for(let t=0,r=l;;t++){let o=t==s.length,l=o?c:s[t].from;if(l>r&&n.push(new L(r,l,i.tree,-e,a.from>=r||a.openStart,a.to<=l||a.openEnd)),o)break;r=s[t].to}}else n.push(new L(l,c,i.tree,-e,a.from>=e||a.openStart,a.to<=s||a.openEnd))}return n}},36887:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});let r=/[ \t\n\f\r]/g;function i(e){return"object"==typeof e?"text"===e.type&&a(e.value):a(e)}function a(e){return""===e.replace(r,"")}},38033:(e,t,n)=>{"use strict";n.d(t,{O:()=>s,X:()=>o});var r=n(32563),i=n(97096),a=n(32165),s=(0,a.K2)(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},"getSubGraphTitleMargins");async function o(e,t){let n=e.getElementsByTagName("img");if(!n||0===n.length)return;let s=""===t.replace(/<img[^>]*>/g,"").trim();await Promise.all([...n].map(e=>new Promise(t=>{function n(){if(e.style.display="flex",e.style.flexDirection="column",s){let t=(0,i.D7)().fontSize?(0,i.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[n=i.UI.fontSize]=(0,r.I5)(t),a=5*n+"px";e.style.minWidth=a,e.style.maxWidth=a}else e.style.width="100%";t(e)}(0,a.K2)(n,"setupImage"),setTimeout(()=>{e.complete&&n()}),e.addEventListener("error",n),e.addEventListener("load",n)})))}(0,a.K2)(o,"configureLabelImages")},38609:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(49339),i=n(38635),a=n(68289);let s=/[A-Z]/g,o=/-[a-z]/g,l=/^data[-\w.:]+$/i;function c(e,t){let n=(0,a.S)(t),c=t,p=i.R;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&l.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(o,h);c="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!o.test(e)){let n=e.replace(s,u);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}p=r.E}return new p(c,t)}function u(e){return"-"+e.toLowerCase()}function h(e){return e.charAt(1).toUpperCase()}},38635:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});class r{constructor(e,t){this.attribute=t,this.property=e}}r.prototype.attribute="",r.prototype.booleanish=!1,r.prototype.boolean=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.commaSeparated=!1,r.prototype.defined=!1,r.prototype.mustUseProperty=!1,r.prototype.number=!1,r.prototype.overloadedBoolean=!1,r.prototype.property="",r.prototype.spaceSeparated=!1,r.prototype.space=void 0},39326:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},s=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},o=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,h=arguments[0],p=1,d=arguments.length,f=!1;for("boolean"==typeof h&&(f=h,h=arguments[1]||{},p=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});p<d;++p)if(t=arguments[p],null!=t)for(n in t)r=l(h,n),h!==(i=l(t,n))&&(f&&i&&(s(i)||(c=a(i)))?(c?(c=!1,u=r&&a(r)?r:[]):u=r&&s(r)?r:{},o(h,{name:n,newValue:e(f,u,i)})):void 0!==i&&o(h,{name:n,newValue:i}));return h}},40550:(e,t,n)=>{"use strict";function r(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;t<arguments.length;t++)!function e(t,n){if("string"==typeof n)t.appendChild(document.createTextNode(n));else if(null==n);else if(null!=n.nodeType)t.appendChild(n);else if(Array.isArray(n))for(var r=0;r<n.length;r++)e(t,n[r]);else throw RangeError("Unsupported child node: "+n)}(e,arguments[t]);return e}n.d(t,{A:()=>r})},41161:(e,t,n)=>{"use strict";function r(e,t,n,r){let i,a=e.length,s=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)(i=r.slice(s,s+1e4)).unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:()=>i,m:()=>r})},42112:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let 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:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e,hsl2rgb:({h:e,s:t,l:n},i)=>{if(!t)return 2.55*n;e/=360,t/=100;let a=(n/=100)<.5?n*(1+t):n+t-n*t,s=2*n-a;switch(i){case"r":return 255*r.hue2rgb(s,a,e+1/3);case"g":return 255*r.hue2rgb(s,a,e);case"b":return 255*r.hue2rgb(s,a,e-1/3)}},rgb2hsl:({r:e,g:t,b:n},r)=>{let i=Math.max(e/=255,t/=255,n/=255),a=Math.min(e,t,n),s=(i+a)/2;if("l"===r)return 100*s;if(i===a)return 0;let o=i-a;if("s"===r)return 100*(s>.5?o/(2-i-a):o/(i+a));switch(i){case e:return((t-n)/o+6*(t<n))*60;case t:return((n-e)/o+2)*60;case n:return((e-t)/o+4)*60;default:return -1}}},i={channel:r,lang:{clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10},unit:{dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}}},43328:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>nO});var r=n(21354),i=n(14759),a=n(3628);n(72475),n(85774),n(63886),n(38033),n(17541);var s=n(88774),o=n(32563),l=n(97096),c=n(32165),u=n(23638),h=n(33948),p="comm",d="rule",f="decl",m="@keyframes",g="@layer",y=Math.abs,b=String.fromCharCode;function k(e,t,n){return e.replace(t,n)}function _(e,t){return 0|e.charCodeAt(t)}function x(e,t,n){return e.slice(t,n)}function E(e){return e.length}function T(e,t){return t.push(e),e}function A(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function v(e,t,n,r){switch(e.type){case g:if(e.children.length)break;case"@import":case"@namespace":case f:return e.return=e.return||e.value;case p:return"";case m:return e.return=e.value+"{"+A(e.children,r)+"}";case d:if(!E(e.value=e.props.join(",")))return""}return E(n=A(e.children,r))?e.return=e.value+"{"+n+"}":""}var w=1,S=1,C=0,N=0,I=0,D="";function O(e,t,n,r,i,a,s,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:w,column:S,length:s,return:"",siblings:o}}function M(){return I=N<C?_(D,N++):0,S++,10===I&&(S=1,w++),I}function L(){return _(D,N)}function R(e){switch(e){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 P(e){var t,n;return(t=N-1,n=function e(t){for(;M();)switch(I){case t:return N;case 34:case 39:34!==t&&39!==t&&e(I);break;case 40:41===t&&e(t);break;case 92:M()}return N}(91===e?e+2:40===e?e+1:e),x(D,t,n)).trim()}function F(e,t,n,r,i,a,s,o,l,c,u,h){for(var p=i-1,f=0===i?a:[""],m=f.length,g=0,b=0,_=0;g<r;++g)for(var E=0,T=x(e,p+1,p=y(b=s[g])),A=e;E<m;++E)(A=(b>0?f[E]+" "+T:k(T,/&\f/g,f[E])).trim())&&(l[_++]=A);return O(e,t,n,0===i?d:o,l,c,u,h)}function B(e,t,n,r,i){return O(e,t,n,f,x(e,0,r),x(e,r+1,-1),r,i)}var H=n(91992),U=n(87789),j=n(9101),$=n(32174),z=n(95683);function G(e){if(null==e)return!0;if((0,j.X)(e))return("function"==typeof e.splice||"string"==typeof e||!!(0,U.P)(e)||!!(0,z.i)(e)||!!(0,$.N)(e))&&0===e.length;if("object"==typeof e){let t;if(e instanceof Map||e instanceof Set)return 0===e.size;let n=Object.keys(e);return(t=e?.constructor,e===("function"==typeof t?t.prototype:Object.prototype))?0===n.filter(e=>"constructor"!==e).length:0===n.length}return!0}var K={id:"c4",detector:(0,c.K2)(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:(0,c.K2)(async()=>{let{diagram:e}=await n.e(3837).then(n.bind(n,83837));return{id:"c4",diagram:e}},"loader")},q="flowchart",Y=(0,c.K2)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-wrapper"&&t?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(e),"detector"),W=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2419).then(n.bind(n,82419));return{id:q,diagram:e}},"loader"),V={id:q,detector:Y,loader:W},X="flowchart-v2",Q=(0,c.K2)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-d3"&&(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),!!/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(e)),"detector"),Z=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2419).then(n.bind(n,82419));return{id:X,diagram:e}},"loader"),J={id:X,detector:Q,loader:Z},ee={id:"er",detector:(0,c.K2)(e=>/^\s*erDiagram/.test(e),"detector"),loader:(0,c.K2)(async()=>{let{diagram:e}=await n.e(3325).then(n.bind(n,23325));return{id:"er",diagram:e}},"loader")},et="gitGraph",en=(0,c.K2)(e=>/^\s*gitGraph/.test(e),"detector"),er=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(7959)]).then(n.bind(n,77959));return{id:et,diagram:e}},"loader"),ei={id:et,detector:en,loader:er},ea="gantt",es=(0,c.K2)(e=>/^\s*gantt/.test(e),"detector"),eo=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2623).then(n.bind(n,52623));return{id:ea,diagram:e}},"loader"),el={id:ea,detector:es,loader:eo},ec="info",eu=(0,c.K2)(e=>/^\s*info/.test(e),"detector"),eh=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(498)]).then(n.bind(n,70498));return{id:ec,diagram:e}},"loader"),ep={id:ec,detector:eu,loader:eh},ed={id:"pie",detector:(0,c.K2)(e=>/^\s*pie/.test(e),"detector"),loader:(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(83)]).then(n.bind(n,70083));return{id:"pie",diagram:e}},"loader")},ef="quadrantChart",em=(0,c.K2)(e=>/^\s*quadrantChart/.test(e),"detector"),eg=(0,c.K2)(async()=>{let{diagram:e}=await n.e(6922).then(n.bind(n,36922));return{id:ef,diagram:e}},"loader"),ey={id:ef,detector:em,loader:eg},eb="xychart",ek=(0,c.K2)(e=>/^\s*xychart(-beta)?/.test(e),"detector"),e_=(0,c.K2)(async()=>{let{diagram:e}=await n.e(394).then(n.bind(n,20394));return{id:eb,diagram:e}},"loader"),ex={id:eb,detector:ek,loader:e_},eE="requirement",eT=(0,c.K2)(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),eA=(0,c.K2)(async()=>{let{diagram:e}=await n.e(3079).then(n.bind(n,73079));return{id:eE,diagram:e}},"loader"),ev={id:eE,detector:eT,loader:eA},ew="sequence",eS=(0,c.K2)(e=>/^\s*sequenceDiagram/.test(e),"detector"),eC=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(4954),n.e(1960)]).then(n.bind(n,36346));return{id:ew,diagram:e}},"loader"),eN={id:ew,detector:eS,loader:eC},eI="class",eD=(0,c.K2)((e,t)=>t?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(e),"detector"),eO=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(5567),n.e(5074)]).then(n.bind(n,85074));return{id:eI,diagram:e}},"loader"),eM={id:eI,detector:eD,loader:eO},eL="classDiagram",eR=(0,c.K2)((e,t)=>!!/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(e),"detector"),eP=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(5567),n.e(5034)]).then(n.bind(n,75034));return{id:eL,diagram:e}},"loader"),eF={id:eL,detector:eR,loader:eP},eB="state",eH=(0,c.K2)((e,t)=>t?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(e),"detector"),eU=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(2821),n.e(6121),n.e(5749),n.e(3997)]).then(n.bind(n,53997));return{id:eB,diagram:e}},"loader"),ej={id:eB,detector:eH,loader:eU},e$="stateDiagram",ez=(0,c.K2)((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),eG=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(5749),n.e(7343)]).then(n.bind(n,27343));return{id:e$,diagram:e}},"loader"),eK={id:e$,detector:ez,loader:eG},eq="journey",eY=(0,c.K2)(e=>/^\s*journey/.test(e),"detector"),eW=(0,c.K2)(async()=>{let{diagram:e}=await n.e(3274).then(n.bind(n,43274));return{id:eq,diagram:e}},"loader"),eV={id:eq,detector:eY,loader:eW},eX={draw:(0,c.K2)((e,t,n)=>{c.Rm.debug("rendering svg for syntax error\n");let i=(0,r.D)(t),a=i.append("g");i.attr("viewBox","0 0 2412 512"),(0,l.a$)(i,100,512,!0),a.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"),a.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"),a.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"),a.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"),a.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"),a.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"),a.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"),a.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")},eQ={db:{},renderer:eX,parser:{parse:(0,c.K2)(()=>{},"parse")}},eZ="flowchart-elk",eJ=(0,c.K2)((e,t={})=>!!(/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk")&&(t.layout="elk",!0),"detector"),e0=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2419).then(n.bind(n,82419));return{id:eZ,diagram:e}},"loader"),e1={id:eZ,detector:eJ,loader:e0},e2="timeline",e3=(0,c.K2)(e=>/^\s*timeline/.test(e),"detector"),e5=(0,c.K2)(async()=>{let{diagram:e}=await n.e(1413).then(n.bind(n,21413));return{id:e2,diagram:e}},"loader"),e4={id:e2,detector:e3,loader:e5},e9="mindmap",e6=(0,c.K2)(e=>/^\s*mindmap/.test(e),"detector"),e8=(0,c.K2)(async()=>{let{diagram:e}=await n.e(3506).then(n.bind(n,3506));return{id:e9,diagram:e}},"loader"),e7={id:e9,detector:e6,loader:e8},te="kanban",tt=(0,c.K2)(e=>/^\s*kanban/.test(e),"detector"),tn=(0,c.K2)(async()=>{let{diagram:e}=await n.e(7547).then(n.bind(n,67547));return{id:te,diagram:e}},"loader"),tr={id:te,detector:tt,loader:tn},ti="sankey",ta=(0,c.K2)(e=>/^\s*sankey(-beta)?/.test(e),"detector"),ts=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2729).then(n.bind(n,22729));return{id:ti,diagram:e}},"loader"),to={id:ti,detector:ta,loader:ts},tl="packet",tc=(0,c.K2)(e=>/^\s*packet(-beta)?/.test(e),"detector"),tu=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(4491)]).then(n.bind(n,14491));return{id:tl,diagram:e}},"loader"),th={id:tl,detector:tc,loader:tu},tp="radar",td=(0,c.K2)(e=>/^\s*radar-beta/.test(e),"detector"),tf=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(7006)]).then(n.bind(n,77006));return{id:tp,diagram:e}},"loader"),tm={id:tp,detector:td,loader:tf},tg="block",ty=(0,c.K2)(e=>/^\s*block(-beta)?/.test(e),"detector"),tb=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(2821),n.e(6696)]).then(n.bind(n,26696));return{id:tg,diagram:e}},"loader"),tk={id:tg,detector:ty,loader:tb},t_="treeView",tx=(0,c.K2)(e=>/^\s*treeView-beta/.test(e),"detector"),tE=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(532)]).then(n.bind(n,90532));return{id:t_,diagram:e}},"loader"),tT={id:t_,detector:tx,loader:tE},tA="architecture",tv=(0,c.K2)(e=>/^\s*architecture/.test(e),"detector"),tw=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8747),n.e(8863),n.e(8489)]).then(n.bind(n,18489));return{id:tA,diagram:e}},"loader"),tS={id:tA,detector:tv,loader:tw},tC="eventmodeling",tN=(0,c.K2)(e=>/^\s*eventmodeling/.test(e),"detector"),tI=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(7648)]).then(n.bind(n,77648));return{id:tC,diagram:e}},"loader"),tD={id:tC,detector:tN,loader:tI},tO="ishikawa",tM=(0,c.K2)(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),tL=(0,c.K2)(async()=>{let{diagram:e}=await n.e(5403).then(n.bind(n,25403));return{id:tO,diagram:e}},"loader"),tR={id:tO,detector:tM,loader:tL},tP="venn",tF=(0,c.K2)(e=>/^\s*venn-beta/.test(e),"detector"),tB=(0,c.K2)(async()=>{let{diagram:e}=await n.e(2947).then(n.bind(n,22947));return{id:tP,diagram:e}},"loader"),tH={id:tP,detector:tF,loader:tB},tU="treemap",tj=(0,c.K2)(e=>/^\s*treemap/.test(e),"detector"),t$=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(1643)]).then(n.bind(n,91643));return{id:tU,diagram:e}},"loader"),tz={id:tU,detector:tj,loader:t$},tG="wardley-beta",tK=(0,c.K2)(e=>/^\s*wardley-beta/i.test(e),"detector"),tq=(0,c.K2)(async()=>{let{diagram:e}=await Promise.all([n.e(8184),n.e(8863),n.e(547)]).then(n.bind(n,40547));return{id:tG,diagram:e}},"loader"),tY={id:tG,detector:tK,loader:tq},tW=!1,tV=(0,c.K2)(()=>{tW||(tW=!0,(0,l.Js)("error",eQ,e=>"error"===e.toLowerCase().trim()),(0,l.Js)("---",{db:{clear:(0,c.K2)(()=>{},"clear")},styles:{},renderer:{draw:(0,c.K2)(()=>{},"draw")},parser:{parse:(0,c.K2)(()=>{throw 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,c.K2)(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),(0,l.Xd)(e1,e7,tS),(0,l.Xd)(K,tr,eF,eM,ee,el,ep,ed,ev,eN,J,V,e4,ei,eK,ej,eV,ey,to,th,ex,tk,tD,tT,tm,tR,tz,tH,tY))},"addDiagrams"),tX=(0,c.K2)(async()=>{c.Rm.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(l.mW).map(async([e,{detector:t,loader:n}])=>{if(n)try{(0,l.Gs)(e)}catch{try{let{diagram:e,id:r}=await n();(0,l.Js)(r,e,t)}catch(t){throw c.Rm.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete l.mW[e],t}}}))).filter(e=>"rejected"===e.status);if(e.length>0){for(let t of(c.Rm.error(`Failed to load ${e.length} external diagrams`),e))c.Rm.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");function tQ(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function tZ(e,t,n,r){if(void 0!==e.insert){if(n){let t=`chart-desc-${r}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(n)}if(t){let n=`chart-title-${r}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}(0,c.K2)(tQ,"setA11yDiagramInfo"),(0,c.K2)(tZ,"addSVGa11yTitleDescription");var tJ=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{(0,c.K2)(this,"Diagram")}static async fromText(t,n={}){let r=(0,l.zj)(),i=(0,l.Ch)(t,r);t=(0,o.C4)(t)+"\n";try{(0,l.Gs)(i)}catch{let e=(0,l.J$)(i);if(!e)throw new l.C0(`Diagram ${i} not found.`);let{id:t,diagram:n}=await e();(0,l.Js)(t,n)}let{db:a,parser:s,renderer:c,init:u}=(0,l.Gs)(i);return s.parser&&(s.parser.yy=a),a.clear?.(),u?.(r),n.title&&a.setDiagramTitle?.(n.title),await s.parse(t),new e(i,t,a,s,c)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},t0=[],t1=(0,c.K2)(()=>{t0.forEach(e=>{e()}),t0=[]},"attachFunctions"),t2=(0,c.K2)(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function t3(e){let t=e.match(l.EJ);if(!t)return{text:e,metadata:{}};let n=(0,i.H)(t[1],{schema:i.r})??{};n="object"!=typeof n||Array.isArray(n)?{}:n;let r={};return n.displayMode&&(r.displayMode=n.displayMode.toString()),n.title&&(r.title=n.title.toString()),n.config&&(r.config=n.config),{text:e.slice(t[0].length),metadata:r}}(0,c.K2)(t3,"extractFrontMatter");var t5=(0,c.K2)(e=>e.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,n)=>"<"+t+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),t4=(0,c.K2)(e=>{let{text:t,metadata:n}=t3(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||(a.gantt={}),a.gantt.displayMode=r),{title:i,config:a,text:t}},"processFrontmatter"),t9=(0,c.K2)(e=>{let t=o._K.detectInit(e)??{},n=o._K.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:e})=>"wrap"===e):n?.type==="wrap"&&(t.wrap=!0),{text:(0,o.vU)(e),directive:t}},"processDirectives");function t6(e){let t=t4(t5(e)),n=t9(t.text),r=(0,o.$t)(t.config,n.directive);return{code:e=t2(n.text),title:t.title,config:r}}function t8(e){return btoa(Array.from(new TextEncoder().encode(e),e=>String.fromCodePoint(e)).join(""))}(0,c.K2)(t6,"preprocessDiagram"),(0,c.K2)(t8,"toBase64");var t7=["foreignobject"],ne=["dominant-baseline"];function nt(e){let t=t6(e);return(0,l.cL)(),(0,l.xA)(t.config??{}),t}async function nn(e,t){tV();try{let{code:t,config:n}=nt(e);return{diagramType:(await nf(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}(0,c.K2)(nt,"processAndSetConfigs"),(0,c.K2)(nn,"parse");var nr=(0,c.K2)((e,t,n=[])=>{let r=(0,l.Df)(`{ ${n.join(" !important; ")} !important; }`);return`.${e} ${t} ${r}`},"cssImportantStyles"),ni=(0,c.K2)((e,t=new Map)=>{let n=new CSSStyleSheet;if(void 0!==e.fontFamily&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),void 0!==e.altFontFamily&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=(0,l.E)(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(e=>{G(e.styles)||r.forEach(t=>{n.insertRule(nr(e.id,t,e.styles),n.cssRules.length)}),G(e.textStyles)||n.insertRule(nr(e.id,"tspan",(e?.textStyles||[]).map(e=>e.replace("color","fill"))),n.cssRules.length)})}let r="";if(void 0!==e.themeCSS)if("function"==typeof n.replaceSync){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=(0,l.KG)(t)+"\n"}else r+=`${e.themeCSS}
|
|
103
|
+
`;return r+(0,l.KG)(n)},"createCssStyles"),na=(0,c.K2)((e,t)=>{var n,r,i,a,s;return A((i=function e(t,n,r,i,a,s,o,l,c){for(var u,h,d,f,m=0,g=0,y=o,A=0,v=0,C=0,H=1,U=1,j=1,$=0,z=0,G="",K=a,q=s,Y=i,W=G;U;)switch(C=z,z=M()){case 40:108!=C&&58==_(W,y-1)?($++,W+="("):W+=P(z);break;case 41:$--,W+=")";break;case 34:case 39:case 91:W+=P(z);break;case 9:case 10:case 13:case 32:if($>0){W+=b(z);break}W+=function(e){for(;I=L();)if(I<33)M();else break;return R(e)>2||R(I)>3?"":" "}(C);break;case 92:W+=function(e,t){for(var n;--t&&M()&&!(I<48)&&!(I>102)&&(!(I>57)||!(I<65))&&(!(I>70)||!(I<97)););return n=N+(t<6&&32==L()&&32==M()),x(D,e,n)}(N-1,7);continue;case 47:switch(L()){case 42:case 47:T((u=function(e,t){for(;M();)if(e+I===57)break;else if(e+I===84&&47===L())break;return"/*"+x(D,t,N-1)+"*"+b(47===e?e:M())}(M(),N),h=n,d=r,f=c,O(u,h,d,p,b(I),x(u,2,-2),0,f)),c),(5==R(C||1)||5==R(L()||1))&&E(W)&&" "!==x(W,-1,void 0)&&(W+=" ");break;default:W+="/"}break;case 123*H:l[m++]=E(W)*j;case 125*H:case 59:case 0:if($>0&&z){W+=b(z);break}switch(z){case 0:case 125:U=0;case 59+g:-1==j&&(W=k(W,/\f/g,"")),v>0&&(E(W)-y||0===H)&&T(v>32?B(W+";",i,r,y-1,c):B(k(W," ","")+";",i,r,y-2,c),c);break;case 59:W+=";";default:if(T(Y=F(W,n,r,m,g,a,l,G,K=[],q=[],y,s),s),123===z)if(0===g)e(W,n,Y,Y,K,s,y,l,q);else{switch(A){case 99:if(110===_(W,3))break;case 108:if(97===_(W,2))break;default:g=0;case 100:case 109:case 115:}g?e(t,Y,Y,i&&T(F(t,Y,Y,0,0,a,l,G,a,K=[],y,q),q),a,q,y,l,i?K:q):e(W,Y,Y,Y,[""],q,0,l,q)}}m=g=v=0,H=j=1,G=W="",y=o;break;case 58:y=1+E(W),v=C;default:if(H<1){if(123==z)--H;else if(125==z&&0==H++&&125==(I=N>0?_(D,--N):0,S--,10===I&&(S=1,w--),I))continue}switch(W+=b(z),z*H){case 38:j=g>0?1:(W+="\f",-1);break;case 44:if($>0)break;l[m++]=(E(W)-1)*j,j=1;break;case 64:45===L()&&(W+=P(M())),A=L(),g=y=E(G=W+=function(e){for(;!R(L());)M();return x(D,e,N)}(N)),z++;break;case 45:45===C&&2==E(W)&&(H=0)}}return s}("",null,null,null,[""],(r=n=`${e}{${t}}`,w=S=1,C=E(D=r),N=0,n=[]),0,[0],n),D="",i),(s=(a=[(0,c.K2)(function(t,n,r,i){"rule"===t.type&&Array.isArray(t.props)?t.parent&&t.parent.type===m||(t.props=t.props.map(t=>t.startsWith(e)?t:`${e} ${t}`)):t.type.startsWith("@")&&(["@media","@supports",g,"@scope","@container","@starting-style",m].includes(t.type)||(c.Rm.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=p))},"addNamespace"),v]).length,function(e,t,n,r){for(var i="",o=0;o<s;o++)i+=a[o](e,t,n,r)||"";return i}))},"compileCSS"),ns=(0,c.K2)((e,t,n,r)=>{let i=ni(e,n),a=(0,l.tM)(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r);return na(r,a)},"createUserStyles"),no=(0,c.K2)((e="",t,n)=>{let r=e;return n||t||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(r=(0,o.Sm)(r)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),nl=(0,c.K2)((e="",t)=>{let n=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":"100%",r=t8(`<body style="margin:0">${e}</body>`);return`<iframe style="width:100%;height:${n};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${r}" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
|
104
|
+
The "iframe" tag is not supported by your browser.
|
|
105
|
+
</iframe>`},"putIntoIFrame"),nc=(0,c.K2)((e,t,n,r,i)=>{let a=e.append("div");a.attr("id",n),r&&a.attr("style",r);let s=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&s.attr("xmlns:xlink",i),s.append("g"),e},"appendDivSvgG");function nu(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,c.K2)(nu,"sandboxedIframe");var nh=(0,c.K2)((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},"removeExistingElements"),np=(0,c.K2)(async function(e,t,n){let r,i;tV();let a=nt(t);t=a.code;let s=(0,l.zj)();c.Rm.debug(s),t.length>(s?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let o=`#${e}`,u="i"+e,p="#"+u,d="d"+e,f="#"+d,m=(0,c.K2)(()=>{let e=y?p:f,t=(0,h.Ltv)(e).node();t&&"remove"in t&&t.remove()},"removeTempElements"),g=(0,h.Ltv)(document.body),y="sandbox"===s.securityLevel,b="loose"===s.securityLevel,k=s.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),y){let e=nu((0,h.Ltv)(n),u);(g=(0,h.Ltv)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else g=(0,h.Ltv)(n);nc(g,e,d,`font-family: ${k}`,"http://www.w3.org/1999/xlink")}else{if(nh(document,e,d,u),y){let e=nu((0,h.Ltv)(document.body),u);(g=(0,h.Ltv)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else g=(0,h.Ltv)("body");nc(g,e,d)}try{r=await tJ.fromText(t,{title:a.title})}catch(e){if(s.suppressErrorRendering)throw m(),e;r=await tJ.fromText("error"),i=e}let _=g.select(f).node(),x=r.type,E=_.firstChild,T=E.firstChild,A=ns(s,x,r.renderer.getClasses?.(t,r),o),v=document.createElement("style");v.innerHTML=A,E.insertBefore(v,T);try{await r.renderer.draw(t,e,"11.15.0",r)}catch(n){throw s.suppressErrorRendering?m():eX.draw(t,e,"11.15.0"),n}nm(x,g.select(`${f} svg`),r.db.getAccTitle?.(),r.db.getAccDescription?.()),g.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let w=g.select(f).node().innerHTML;if(c.Rm.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),w=no(w,y,(0,l._3)(s.arrowMarkerAbsolute)),y?w=nl(w,g.select(f+" svg").node()):b||(w=H.A.sanitize(w,{ADD_TAGS:t7,ADD_ATTR:ne,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),t1(),i)throw i;return m(),{diagramType:x,svg:w,bindFunctions:r.db.bindFunctions}},"render");function nd(e={}){let t=(0,l.hH)({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,l.wZ)(t),t?.theme&&t.theme in l.H$?t.themeVariables=l.H$[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=l.H$.default.getThemeVariables(t.themeVariables));let n="object"==typeof t?(0,l.UU)(t):(0,l.Q2)();(0,c.He)(n.logLevel),tV()}(0,c.K2)(nd,"initialize");var nf=(0,c.K2)((e,t={})=>{let{code:n}=t6(e);return tJ.fromText(n,t)},"getDiagramFromText");function nm(e,t,n,r){tQ(t,e),tZ(t,n,r,t.attr("id"))}(0,c.K2)(nm,"addA11yInfo");var ng=Object.freeze({render:np,parse:nn,getDiagramFromText:nf,initialize:nd,getConfig:l.zj,setConfig:l.Nk,getSiteConfig:l.Q2,updateSiteConfig:l.B6,reset:(0,c.K2)(()=>{(0,l.cL)()},"reset"),globalReset:(0,c.K2)(()=>{(0,l.cL)(l.sb)},"globalReset"),defaultConfig:l.sb});(0,c.He)((0,l.zj)().logLevel),(0,l.cL)((0,l.zj)());var ny=(0,c.K2)((e,t,n)=>{c.Rm.warn(e),(0,o.dq)(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),nb=(0,c.K2)(async function(e={querySelector:".mermaid"}){try{await nk(e)}catch(t){if((0,o.dq)(t)&&c.Rm.error(t.str),nD.parseError&&nD.parseError(t),!e.suppressErrors)throw c.Rm.error("Use the suppressErrors option to suppress these errors"),t}},"run"),nk=(0,c.K2)(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){let r,i,a=ng.getConfig();if(c.Rm.debug(`${!e?"No ":""}Callback function found`),n)r=n;else if(t)r=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");c.Rm.debug(`Found ${r.length} diagrams`),a?.startOnLoad!==void 0&&(c.Rm.debug("Start On Load: "+a?.startOnLoad),ng.updateSiteConfig({startOnLoad:a?.startOnLoad}));let s=new o._K.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),l=[];for(let t of Array.from(r)){if(c.Rm.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let n=`mermaid-${s.next()}`;i=t.innerHTML,i=(0,u.T)(o._K.entityDecode(i)).trim().replace(/<br\s*\/?>/gi,"<br/>");let r=o._K.detectInit(i);r&&c.Rm.debug("Detected early reinit: ",r);try{let{svg:r,bindFunctions:a}=await nN(n,i,t);t.innerHTML=r,e&&await e(n),a&&a(t)}catch(e){ny(e,l,nD.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),n_=(0,c.K2)(function(e){ng.initialize(e)},"initialize"),nx=(0,c.K2)(async function(e,t,n){c.Rm.warn("mermaid.init is deprecated. Please use run instead."),e&&n_(e);let r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof t?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await nb(r)},"init"),nE=(0,c.K2)(async(e,{lazyLoad:t=!0}={})=>{tV(),(0,l.Xd)(...e),!1===t&&await tX()},"registerExternalDiagrams"),nT=(0,c.K2)(function(){if(nD.startOnLoad){let{startOnLoad:e}=ng.getConfig();e&&nD.run().catch(e=>c.Rm.error("Mermaid failed to initialize",e))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",nT,!1);var nA=(0,c.K2)(function(e){nD.parseError=e},"setParseErrorHandler"),nv=[],nw=!1,nS=(0,c.K2)(async()=>{if(!nw){for(nw=!0;nv.length>0;){let e=nv.shift();if(e)try{await e()}catch(e){c.Rm.error("Error executing queue",e)}}nw=!1}},"executeQueue"),nC=(0,c.K2)(async(e,t)=>new Promise((n,r)=>{let i=(0,c.K2)(()=>new Promise((i,a)=>{ng.parse(e,t).then(e=>{i(e),n(e)},e=>{c.Rm.error("Error parsing",e),nD.parseError?.(e),a(e),r(e)})}),"performCall");nv.push(i),nS().catch(r)}),"parse"),nN=(0,c.K2)((e,t,n)=>new Promise((r,i)=>{let a=(0,c.K2)(()=>new Promise((a,s)=>{ng.render(e,t,n).then(e=>{a(e),r(e)},e=>{c.Rm.error("Error parsing",e),nD.parseError?.(e),s(e),i(e)})}),"performCall");nv.push(a),nS().catch(i)}),"render"),nI=(0,c.K2)(()=>Object.keys(l.mW).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),nD={startOnLoad:!0,mermaidAPI:ng,parse:nC,render:nN,init:nx,run:nb,registerExternalDiagrams:nE,registerLayoutLoaders:a.sO,initialize:n_,parseError:void 0,contentLoaded:nT,setParseErrorHandler:nA,detectType:l.Ch,registerIconPacks:s.pC,getRegisteredDiagramsMetadata:nI},nO=nD},44015:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});let r="u"<typeof Symbol?"__ͼ":Symbol.for("ͼ"),i="u"<typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),a="u">typeof globalThis?globalThis:"u">typeof window?window:{};class s{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}for(let t in e)!function e(t,i,a,s){let o=[],l=/^@(\w+)\b/.exec(t[0]),c=l&&"keyframes"==l[1];if(l&&null==i)return a.push(t[0]+";");for(let n in i){let s=i[n];if(/&/.test(n))e(n.split(/,\s*/).map(e=>t.map(t=>e.replace(/&/,t))).reduce((e,t)=>e.concat(t)),s,a);else if(s&&"object"==typeof s){if(!l)throw RangeError("The value of a property ("+n+") should be a primitive value.");e(r(n),s,o,c)}else null!=s&&o.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+s+";")}(o.length||c)&&a.push((n&&!l&&!s?t.map(n):t).join(", ")+" {"+o.join(" ")+"}")}(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=a[r]||1;return a[r]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let r=e[i],a=n&&n.nonce;r?a&&r.setNonce(a):r=new l(e,a),r.mount(Array.isArray(t)?t:[t],e)}}let o=new Map;class l{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=o.get(n);if(t)return e[i]=t;this.sheet=new r.CSSStyleSheet,o.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[i]=this}mount(e,t){let n=this.sheet,r=0,i=0;for(let t=0;t<e.length;t++){let a=e[t],s=this.modules.indexOf(a);if(s<i&&s>-1&&(this.modules.splice(s,1),i--,s=-1),-1==s){if(this.modules.splice(i++,0,a),n)for(let e=0;e<a.rules.length;e++)n.insertRule(a.rules[e],r++)}else{for(;i<s;)r+=this.modules[i++].rules.length;r+=a.rules.length,i++}}if(n)0>t.adoptedStyleSheets.indexOf(this.sheet)&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e;let n=t.head||t;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}},44542:(e,t,n)=>{"use strict";n.d(t,{Ar:()=>c,Gw:()=>eo,OO:()=>eh,_5:()=>s,et:()=>l,yU:()=>eu});var r=n(27071),i=n(89561),a=n(46732);class s{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=(0,a.mv)(this.state).resolveInner(this.pos,-1);for(;t&&0>e.indexOf(t.name);)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(p(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t,n){"abort"==e&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}}function o(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function l(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e<r.length;e++)n[r[e]]=!0}let r=o(t)+o(n)+"*$";return[RegExp("^"+r),new RegExp(r)]}(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function c(e,t){return n=>{for(let t=(0,a.mv)(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}class u{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}}function h(e){return e.selection.main.from}function p(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],a="$"!=r[r.length-1];return i||a?RegExp(`${i?"^":""}(?:${r})${a?"$":""}`,null!=(n=e.flags)?n:e.ignoreCase?"i":""):e}let d=r.YH.define(),f=new WeakMap;function m(e){if(!Array.isArray(e))return e;let t=f.get(e);return t||f.set(e,t=l(e)),t}let g=r.Pe.define(),y=r.Pe.define();class b{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=(0,r.vS)(e,t),i=(0,r.Fh)(n);this.chars.push(n);let a=e.slice(t,t+i),s=a.toUpperCase();this.folded.push((0,r.vS)(s==a?a.toLowerCase():s,0)),t+=i}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:i,precise:a,byWord:s}=this;if(1==t.length){let i=(0,r.vS)(e,0),a=(0,r.Fh)(i),s=a==e.length?0:-100;if(i==t[0]);else{if(i!=n[0])return null;s+=-200}return this.ret(s,[0,a])}let o=e.indexOf(this.pattern);if(0==o)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=t.length,c=0;if(o<0){for(let a=0,s=Math.min(e.length,200);a<s&&c<l;){let s=(0,r.vS)(e,a);(s==t[c]||s==n[c])&&(i[c++]=a),a+=(0,r.Fh)(s)}if(c<l)return null}let u=0,h=0,p=!1,d=0,f=-1,m=-1,g=/[a-z]/.test(e),y=!0;for(let i=0,c=Math.min(e.length,200),b=0;i<c&&h<l;){let c=(0,r.vS)(e,i);o<0&&(u<l&&c==t[u]&&(a[u++]=i),d<l&&(c==t[d]||c==n[d]?(0==d&&(f=i),m=i+1,d++):d=0));let k,_=c<255?c>=48&&c<=57||c>=97&&c<=122?2:+(c>=65&&c<=90):(k=(0,r.MK)(c))!=k.toLowerCase()?1:2*(k!=k.toUpperCase());(!i||1==_&&g||0==b&&0!=_)&&(t[h]==c||n[h]==c&&(p=!0)?s[h++]=i:s.length&&(y=!1)),b=_,i+=(0,r.Fh)(c)}return h==l&&0==s[0]&&y?this.result(-100+(p?-200:0),s,e):d==l&&0==f?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):o>-1?this.ret(-700-e.length,[o,o+this.pattern.length]):d==l?this.ret(-900-e.length,[f,m]):h==l?this.result(-100+(p?-200:0)+-700+(y?0:-1100),s,e):2==t.length?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,t,n){let i=[],a=0;for(let e of t){let t=e+(this.astral?(0,r.Fh)((0,r.vS)(n,e)):1);a&&i[a-1]==e?i[a-1]=t:(i[a++]=e,i[a++]=t)}return this.ret(e-n.length,i)}}class k{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return null==n?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}}let _=r.sj.define({combine:e=>(0,r.QR)(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:E,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>x(e(n),t(n)),optionClass:(e,t)=>n=>x(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})});function x(e,t){return e?t?e+" "+t:e:t}function E(e,t,n,r,a,s){let o=e.textDirection==i.OP.RTL,l=o,c=!1,u="top",h,p,d=t.left-a.left,f=a.right-t.right,m=r.right-r.left,g=r.bottom-r.top;if(l&&d<Math.min(m,f)?l=!1:!l&&f<Math.min(m,d)&&(l=!0),m<=(l?d:f))h=Math.max(a.top,Math.min(n.top,a.bottom-g))-t.top,p=Math.min(400,l?d:f);else{c=!0,p=Math.min(400,(o?t.right:a.right-t.left)-30);let e=a.bottom-t.bottom;e>=g||e>t.top?h=n.bottom-t.top:(u="bottom",h=t.bottom-n.top)}let y=(t.bottom-t.top)/s.offsetHeight,b=(t.right-t.left)/s.offsetWidth;return{style:`${u}: ${h/y}px; max-width: ${p/b}px`,class:"cm-completionInfo-"+(c?o?"left-narrow":"right-narrow":l?"left":"right")}}let T=r.Pe.define();function A(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.ceil((e-t)/n);return{from:e-r*n,to:e-(r-1)*n}}class v{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:i,selected:a}=r.open,s=e.state.facet(_);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement("span");i.className="cm-completionLabel";let a=e.displayLabel||e.label,s=0;for(let e=0;e<r.length;){let t=r[e++],n=r[e++];t>s&&i.appendChild(document.createTextNode(a.slice(s,t)));let o=i.appendChild(document.createElement("span"));o.appendChild(document.createTextNode(a.slice(t,n))),o.className="cm-completionMatchedText",s=n}return s<a.length&&i.appendChild(document.createTextNode(a.slice(s))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort((e,t)=>e.position-t.position).map(e=>e.render)}(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=A(i.length,a,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",n=>{let{options:r}=e.state.field(t).open;for(let t=n.target,i;t&&t!=this.dom;t=t.parentNode)if("LI"==t.nodeName&&(i=/-(\d+)$/.exec(t.id))&&+i[1]<r.length){this.applyCompletion(e,r[+i[1]]),n.preventDefault();return}if(n.target==this.list){let t=this.list.classList.contains("cm-completionListIncompleteTop")&&n.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains("cm-completionListIncompleteBottom")&&n.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;null!=t&&(e.dispatch({effects:T.of(t)}),n.preventDefault())}}),this.dom.addEventListener("focusout",t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(_).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:y.of(null)})}),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){let{options:i,selected:a,disabled:s}=n.open;r.open&&r.open.options==i||(this.range=A(i.length,a,e.state.facet(_).maxRenderedOptions),this.showOptions(i,n.id)),this.updateSel(),s!=(null==(t=r.open)?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=A(t.options.length,t.selected,this.view.state.facet(_).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:a}=r;if(!a)return;let s="string"==typeof a?document.createTextNode(a):a(r);if(!s)return;"then"in s?s.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)}).catch(e=>(0,i.c_)(this.view.state,e,"completion info")):(this.addInfoPane(s,r),n.setAttribute("aria-describedby",this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",n.id="cm-completionInfo-"+Math.floor(65535*Math.random()).toString(16),null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){var t,n;let r,i,a,s=null;for(let t=this.list.firstChild,n=this.range.from;t;t=t.nextSibling,n++)"LI"==t.nodeName&&t.id?n==e?t.hasAttribute("aria-selected")||(t.setAttribute("aria-selected","true"),s=t):t.hasAttribute("aria-selected")&&(t.removeAttribute("aria-selected"),t.removeAttribute("aria-describedby")):n--;return s&&(t=this.list,n=s,r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),a=r.height/t.offsetHeight,i.top<r.top?t.scrollTop-=(r.top-i.top)/a:i.bottom>r.bottom&&(t.scrollTop+=(i.bottom-r.bottom)/a)),s}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(_).positionInfo(this.view,t,r,n,i,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,n){let r=document.createElement("ul");r.id=t,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions")),r.addEventListener("mousedown",e=>{e.target==r&&e.preventDefault()});let i=null;for(let a=n.from;a<n.to;a++){let{completion:s,match:o}=e[a],{section:l}=s;if(l){let e="string"==typeof l?l:l.name;e!=i&&(a>n.from||0==n.from)&&(i=e,"string"!=typeof l&&l.header?r.appendChild(l.header(l)):r.appendChild(document.createElement("completion-section")).textContent=e)}let c=r.appendChild(document.createElement("li"));c.id=t+"-"+a,c.setAttribute("role","option");let u=this.optionClass(s);for(let e of(u&&(c.className=u),this.optionContent)){let t=e(s,this.view.state,this.view,o);t&&c.appendChild(t)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function w(e){return 100*(e.boost||0)+10*!!e.apply+5*!!e.info+ +!!e.type}class S{constructor(e,t,n,r,i,a){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=a}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new S(this.options,D(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,i,a){if(r&&!a&&e.some(e=>e.isPending))return r.setDisabled();let s=function(e,t){let n=[],r=null,i=null,a=e=>{n.push(e);let{section:t}=e.completion;if(t){r||(r=[]);let e="string"==typeof t?t:t.name;r.some(t=>t.name==e)||r.push("string"==typeof t?{name:e}:t)}},s=t.facet(_);for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(!1===r.result.filter)for(let t of r.result.options)a(new u(t,r.source,e?e(t):[],1e9-n.length));else{let n=t.sliceDoc(r.from,r.to),o,l=s.filterStrict?new k(n):new b(n);for(let t of r.result.options)if(o=l.match(t.label)){let n=t.displayLabel?e?e(t,o.matched):[]:o.matched,s=o.score+(t.boost||0);if(a(new u(t,r.source,n,s)),"object"==typeof t.section&&"dynamic"===t.section.rank){let{name:e}=t.section;i||(i=Object.create(null)),i[e]=Math.max(s,i[e]||-1e9)}}}}if(r){let e=Object.create(null),t=0;for(let n of r.sort((e,t)=>("dynamic"===e.rank&&"dynamic"===t.rank?i[t.name]-i[e.name]:0)||("number"==typeof e.rank?e.rank:1e9)-("number"==typeof t.rank?t.rank:1e9)||(e.name<t.name?-1:1)))t-=1e5,e[n.name]=t;for(let t of n){let{section:n}=t.completion;n&&(t.score+=e["string"==typeof n?n:n.name])}}let o=[],l=null,c=s.compareCompletions;for(let e of n.sort((e,t)=>t.score-e.score||c(e.completion,t.completion))){let t=e.completion;l&&l.label==t.label&&l.detail==t.detail&&(null==l.type||null==t.type||l.type==t.type)&&l.apply==t.apply&&l.boost==t.boost?w(e.completion)>w(l)&&(o[o.length-1]=e):o.push(e),l=e.completion}return o}(e,t);if(!s.length)return r&&e.some(e=>e.isPending)?r.setDisabled():null;let o=t.facet(_).selectOnOpen?0:-1;if(r&&r.selected!=o&&-1!=r.selected){let e=r.options[r.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){o=t;break}}return new S(s,D(n,o),{pos:e.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:H,above:i.aboveCursor},r?r.timestamp:Date.now(),o,!1)}map(e){return new S(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new S(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class C{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new C(O,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(_),r=(n.override||t.languageDataAt("autocomplete",h(t)).map(m)).map(t=>(this.active.find(e=>e.source==t)||new L(t,+!!this.active.some(e=>0!=e.state))).update(e,n));r.length==this.active.length&&r.every((e,t)=>e==this.active[t])&&(r=this.active);let i=this.open,a=e.effects.some(e=>e.is(P));for(let s of(i&&e.docChanged&&(i=i.map(e.changes)),e.selection||r.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult();)n++;for(;r<t.length&&!t[r].hasResult();)r++;let i=n==e.length,a=r==t.length;if(i||a)return i==a;if(e[n++].result!=t[r++].result)return!1}}(r,this.active)||a?i=S.build(r,t,this.id,i,n,a):i&&i.disabled&&!r.some(e=>e.isPending)&&(i=null),!i&&r.every(e=>!e.isPending)&&r.some(e=>e.hasResult())&&(r=r.map(e=>e.hasResult()?new L(e.source,0):e)),e.effects))s.is(T)&&(i=i&&i.setSelected(s.value,this.id));return r==this.active&&i==this.open?this:new C(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?N:I}}let N={"aria-autocomplete":"list"},I={};function D(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}let O=[];function M(e,t){if(e.isUserEvent("input.complete")){let n=e.annotation(d);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent("input.type");return n&&t.activateOnTyping?5:n?1:e.isUserEvent("delete.backward")?2:e.selection?8:16*!!e.docChanged}class L{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return 1==this.state}update(e,t){let n=M(e,t),r=this;for(let t of((8&n||16&n&&this.touches(e))&&(r=new L(r.source,0)),4&n&&0==r.state&&(r=new L(this.source,1)),r=r.updateFor(e,n),e.effects))if(t.is(g))r=new L(r.source,1,t.value);else if(t.is(y))r=new L(r.source,0);else if(t.is(P))for(let e of t.value)e.source==r.source&&(r=e);return r}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(h(e.state))}}class R extends L{constructor(e,t,n,r,i,a){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=a}hasResult(){return!0}updateFor(e,t){var n;if(!(3&t))return this.map(e.changes);let r=this.result;r.map&&!e.changes.empty&&(r=r.map(r,e.changes));let i=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),o=h(e.state);if(o>a||!r||2&t&&(h(e.startState)==this.from||o<this.limit))return new L(this.source,4&t?1:0);let l=e.changes.mapPos(this.limit);return!function(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return"function"==typeof e?e(i,n,r,t):p(e,!0).test(i)}(r.validFor,e.state,i,a)?r.update&&(r=r.update(r,i,a,new s(e.state,o,!1)))?new R(this.source,this.explicit,l,r,r.from,null!=(n=r.to)?n:h(e.state)):new L(this.source,1,this.explicit):new R(this.source,this.explicit,l,r,i,a)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new R(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new L(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}let P=r.Pe.define({map:(e,t)=>e.map(e=>e.map(t))}),F=r.sU.define({create:()=>C.start(),update:(e,t)=>e.update(t),provide:e=>[i.DK.from(e,e=>e.tooltip),i.Lz.contentAttributes.from(e,e=>e.attrs)]});function B(e,t){let n=t.completion.apply||t.completion.label,i=e.state.field(F).active.find(e=>e.source==t.source);return i instanceof R&&("string"==typeof n?e.dispatch({...function(e,t,n,i){let{main:a}=e.selection,s=n-a.from,o=i-a.from;return{...e.changeByRange(l=>{if(l!=a&&n!=i&&e.sliceDoc(l.from+s,l.from+o)!=e.sliceDoc(n,i))return{range:l};let c=e.toText(t);return{changes:{from:l.from+s,to:i==a.from?l.to:l.from+o,insert:c},range:r.OF.cursor(l.from+s+c.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}(e.state,n,i.from,i.to),annotations:d.of(t.completion)}):n(e,t.completion,i.from,i.to),!0)}let H=e=>new v(e,F,B);function U(e,t="option"){return n=>{let r=n.state.field(F,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(_).interactionDelay)return!1;let a=1,s;"page"==t&&(s=(0,i.Eg)(n,r.open.tooltip))&&(a=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:o}=r.open.options,l=r.open.selected>-1?r.open.selected+a*(e?1:-1):e?0:o-1;return l<0?l="page"==t?0:o-1:l>=o&&(l="page"==t?o-1:0),n.dispatch({effects:T.of(l)}),!0}}let j=e=>!!e.state.field(F,!1)&&(e.dispatch({effects:g.of(!0)}),!0);class ${constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}let z=i.Z9.fromClass(class{constructor(e){for(let t of(this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0,e.state.field(F).active))t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(F),n=e.state.facet(_);if(!e.selectionSet&&!e.docChanged&&e.startState.field(F)==t)return;let r=e.transactions.some(e=>{let t=M(e,n);return 8&t||(e.selection||e.docChanged)&&!(3&t)});for(let t=0;t<this.running.length;t++){let n=this.running[t];if(r||n.context.abortOnDocChange&&e.docChanged||n.updates.length+e.transactions.length>50&&Date.now()-n.time>1e3){for(let e of n.context.abortListeners)try{e()}catch(e){(0,i.c_)(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(g)))&&(this.pendingStart=!0);let a=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),a):-1,0!=this.composing)for(let t of e.transactions)t.isUserEvent("input.type")?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(F);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(_).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=h(t),r=new s(t,n,e.explicit,this.view),a=new $(e,r);this.running.push(a),Promise.resolve(e.source(r)).then(e=>{a.context.aborted||(a.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:y.of(null)}),(0,i.c_)(this.view.state,e)})}scheduleAccept(){this.running.every(e=>void 0!==e.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(_).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(_),r=this.view.state.field(F);for(let i=0;i<this.running.length;i++){let a=this.running[i];if(void 0===a.done)continue;if(this.running.splice(i--,1),a.done){let r=h(a.updates.length?a.updates[0].startState:this.view.state),i=Math.min(r,a.done.from+ +!a.active.explicit),s=new R(a.active.source,a.active.explicit,i,a.done,a.done.from,null!=(e=a.done.to)?e:r);for(let e of a.updates)s=s.update(e,n);if(s.hasResult()){t.push(s);continue}}let s=r.active.find(e=>e.source==a.active.source);if(s&&s.isPending)if(null==a.done){let e=new L(a.active.source,0);for(let t of a.updates)e=e.update(t,n);e.isPending||t.push(e)}else this.startQuery(s)}(t.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:P.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(F,!1);if(t&&t.tooltip&&this.view.state.facet(_).closeOnBlur){let n=t.open&&(0,i.Eg)(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||setTimeout(()=>this.view.dispatch({effects:y.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:g.of(!1)}),20),this.composing=0}}}),G="object"==typeof navigator&&/Win/.test(navigator.platform),K=r.Nb.highest(i.Lz.domEventHandlers({keydown(e,t){let n=t.state.field(F,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(G&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(e=>e.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&B(t,r),!1}})),q=i.Lz.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center",cursor:"pointer"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Y{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}}class W{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,r.iR.TrackDel),n=e.mapPos(this.to,1,r.iR.TrackDel);return null==t||null==n?null:new W(this.field,t,n)}}class V{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],i=e.doc.lineAt(t),s=/^\s*/.exec(i.text)[0];for(let i of this.lines){if(n.length){let n=s,o=/^\t*/.exec(i)[0].length;for(let t=0;t<o;t++)n+=e.facet(a.Xt);r.push(t+n.length-o),i=n+i.slice(o)}n.push(i),t+=i.length+1}return{text:n,ranges:this.fieldPositions.map(e=>new W(e.field,r[e.line]+e.from,r[e.line]+e.to))}}static parse(e){let t=[],n=[],r=[],i;for(let a of e.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(a);){let e=i[1]?+i[1]:null,s=i[2]||i[3]||"",o=-1,l=s.replace(/\\[{}]/g,e=>e[1]);for(let n=0;n<t.length;n++)(null!=e?t[n].seq==e:l&&t[n].name==l)&&(o=n);if(o<0){let n=0;for(;n<t.length&&(null==e||null!=t[n].seq&&t[n].seq<e);)n++;for(let i of(t.splice(n,0,{seq:e,name:l}),o=n,r))i.field>=o&&i.field++}for(let e of r)if(e.line==n.length&&e.from>i.index){let t=i[2]?3+(i[1]||"").length:2;e.from-=t,e.to-=t}r.push(new Y(o,n.length,i.index,i.index+l.length)),a=a.slice(0,i.index)+s+a.slice(i.index+i[0].length)}a=a.replace(/\\([{}])/g,(e,t,i)=>{for(let e of r)e.line==n.length&&e.from>i&&(e.from--,e.to--);return t}),n.push(a)}return new V(n,r)}}let X=i.NZ.widget({widget:new class extends i.xO{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),Q=i.NZ.mark({class:"cm-snippetField"});class Z{constructor(e,t){this.ranges=e,this.active=t,this.deco=i.NZ.set(e.map(e=>(e.from==e.to?X:Q).range(e.from,e.to)),!0)}map(e){let t=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;t.push(r)}return new Z(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}}let J=r.Pe.define({map:(e,t)=>e&&e.map(t)}),ee=r.Pe.define(),et=r.sU.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(J))return n.value;if(n.is(ee)&&e)return new Z(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>i.Lz.decorations.from(e,e=>e?e.deco:i.NZ.none)});function en(e,t){return r.OF.create(e.filter(e=>e.field==t).map(e=>r.OF.range(e.from,e.to)))}function er(e){return({state:t,dispatch:n})=>{let r=t.field(et,!1);if(!r||e<0&&0==r.active)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(t=>t.field==i+e);return n(t.update({selection:en(r.ranges,i),effects:J.of(a?null:new Z(r.ranges,i)),scrollIntoView:!0})),!0}}let ei=[{key:"Tab",run:er(1),shift:er(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(et,!1)&&(t(e.update({effects:J.of(null)})),!0)}],ea=r.sj.define({combine:e=>e.length?e[0]:ei}),es=r.Nb.highest(i.w4.compute([ea],e=>e.facet(ea)));function eo(e,t){let n;return{...t,apply:(n=V.parse(e),(e,t,i,a)=>{let{text:s,ranges:o}=n.instantiate(e.state,i),{main:l}=e.state.selection,c={changes:{from:i,to:a==l.from?l.to:a,insert:r.EY.of(s)},scrollIntoView:!0,annotations:t?[d.of(t),r.ZX.userEvent.of("input.complete")]:void 0};if(o.length&&(c.selection=en(o,0)),o.some(e=>e.field>0)){let t=new Z(o,0),n=c.effects=[J.of(t)];void 0===e.state.field(et,!1)&&n.push(r.Pe.appendConfig.of([et,es,el,q]))}e.dispatch(e.state.update(c))})}}let el=i.Lz.domEventHandlers({mousedown(e,t){let n=t.state.field(et,!1),r;if(!n||null==(r=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let i=n.ranges.find(e=>e.from<=r&&e.to>=r);return!!i&&i.field!=n.active&&(t.dispatch({selection:en(n.ranges,i.field),effects:J.of(n.ranges.some(e=>e.field>i.field)?new Z(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),ec=new class extends r.FB{};ec.startSide=1,ec.endSide=-1;function eu(e={}){return[K,F,_.of(e),z,ep,q]}"object"==typeof navigator&&navigator.userAgent;let eh=[{key:"Ctrl-Space",run:j},{mac:"Alt-`",run:j},{mac:"Alt-i",run:j},{key:"Escape",run:e=>{let t=e.state.field(F,!1);return!!t&&!!t.active.some(e=>0!=e.state)&&(e.dispatch({effects:y.of(null)}),!0)}},{key:"ArrowDown",run:U(!0)},{key:"ArrowUp",run:U(!1)},{key:"PageDown",run:U(!0,"page")},{key:"PageUp",run:U(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(F,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(_).interactionDelay)&&B(e,t.open.options[t.open.selected])}}],ep=r.Nb.highest(i.w4.computeN([_],e=>e.facet(_).defaultKeymap?[eh]:[]))},44673:e=>{e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},46732:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>F,EI:()=>I,KB:()=>O,Oh:()=>M,Q0:()=>h,Q_:()=>ep,TM:()=>p,Xt:()=>C,Yy:()=>v,Zt:()=>eo,_Y:()=>H,_v:()=>D,b_:()=>$,bj:()=>f,cr:()=>ee,iB:()=>c,jU:()=>em,mv:()=>m,mz:()=>U,nq:()=>b,p9:()=>u,t:()=>j,t$:()=>w,tp:()=>N,y9:()=>ei,yd:()=>z});var r,i=n(36829),a=n(27071),s=n(89561),o=n(32638),l=n(44015);let c=new i.uY;function u(e){return a.sj.define({combine:e?t=>t.concat(e):void 0})}let h=new i.uY;class p{constructor(e,t,n=[],r=""){this.data=e,this.name=r,a.$t.prototype.hasOwnProperty("tree")||Object.defineProperty(a.$t.prototype,"tree",{get(){return m(this)}}),this.parser=t,this.extension=[A.of(this),a.$t.languageData.of((e,t,n)=>{let r=d(e,t,n),i=r.type.prop(c);if(!i)return[];let a=e.facet(i),s=r.type.prop(h);if(s){let i=r.resolve(t-r.from,n);for(let t of s)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(a)}}return a})].concat(n)}isActiveAt(e,t,n=-1){return d(e,t,n).type.prop(c)==this.data}findRegions(e){let t=e.facet(A);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(c)==this.data)return void n.push({from:t,to:t+e.length});let a=e.prop(i.uY.mounted);if(a){if(a.tree.prop(c)==this.data){if(a.overlay)for(let e of a.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}else if(a.overlay){let e=n.length;if(r(a.tree,a.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let a=e.children[n];a instanceof i.PH&&r(a,e.positions[n]+t)}};return r(m(e),0),n}get allowsNesting(){return!0}}function d(e,t,n){let r=e.facet(A),a=m(e).topNode;if(!r||r.allowsNesting)for(let e=a;e;e=e.enter(t,n,i.Qj.ExcludeBuffers|i.Qj.EnterBracketed))e.type.isTop&&(a=e);return a}p.setState=a.Pe.define();class f extends p{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=u(e.languageData);return new f(t,e.parser.configure({props:[c.add(e=>e.isTop?t:void 0)]}),e.name)}configure(e,t){return new f(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function m(e){let t=e.field(p.state,!1);return t?t.tree:i.PH.empty}class g{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let y=null;class b{constructor(e,t,n=[],r,i,a,s,o){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=a,this.skipped=s,this.scheduleOn=o,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new b(e,t,[],i.PH.empty,0,n,[],null)}startParse(){return this.parser.startParse(new g(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=i.PH.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(i.rr.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!=(n=this.parse.stoppedAt)?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(i.rr.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=y;y=this;try{return e()}finally{y=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=k(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:a,viewport:s,skipped:o}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i})),n=i.rr.applyChanges(n,t),r=i.PH.empty,a=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length)for(let t of(o=[],this.skipped)){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);n<r&&o.push({from:n,to:r})}}return new b(this.parser,t,n,r,a,s,o,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:n,to:r}=this.skipped[t];n<e.to&&r>e.from&&(this.fragments=k(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends i.iX{createParse(t,n,r){let a=r[0].from,s=r[r.length-1].to;return{parsedPos:a,advance(){let t=y;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=s,new i.PH(i.Z6.none,[],[],s-a)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return y}}function k(e,t,n){return i.rr.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class _{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new _(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=b.create(e.facet(A).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new _(n)}}p.state=a.sU.define({create:_.init,update(e,t){for(let e of t.effects)if(e.is(p.setState))return e.value;return t.startState.facet(A)!=t.state.facet(A)?_.init(t.state):e.apply(t)}});let x=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"u">typeof requestIdleCallback&&(x=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});let E="u">typeof navigator&&(null==(r=navigator.scheduling)?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,T=s.Z9.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(p.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(p.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=x(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(p.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let a=Date.now()+Math.min(this.chunkBudget,100,e&&!E?Math.max(25,e.timeRemaining()-5):1e9),s=i.context.treeLen<r&&n.doc.length>r+1e3,o=i.context.work(()=>E&&E()||Date.now()>a,r+1e5*!s);this.chunkBudget-=Date.now()-t,(o||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:p.setState.of(new _(i.context))})),this.chunkBudget>0&&!(o&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>(0,s.c_)(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),A=a.sj.define({combine:e=>e.length?e[0]:null,enables:e=>[p.state,T,s.Lz.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class v{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class w{constructor(e,t,n,r,i,a){this.name=e,this.alias=t,this.extensions=n,this.filename=r,this.loadFunc=i,this.support=a,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new w(e.name,(e.alias||[]).concat(e.name).map(e=>e.toLowerCase()),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let n of e)if(n.filename&&n.filename.test(t))return n;let n=/\.([^.]+)$/.exec(t);if(n){for(let t of e)if(t.extensions.indexOf(n[1])>-1)return t}return null}static matchLanguageName(e,t,n=!0){for(let n of(t=t.toLowerCase(),e))if(n.alias.some(e=>e==t))return n;if(n)for(let n of e)for(let e of n.alias){let r=t.indexOf(e);if(r>-1&&(e.length>2||!/\w/.test(t[r-1])&&!/\w/.test(t[r+e.length])))return n}return null}}let S=a.sj.define(),C=a.sj.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function N(e){let t=e.facet(C);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function I(e,t){let n="",r=e.tabSize,i=e.facet(C)[0];if(" "==i){for(;t>=r;)n+=" ",t-=r;i=" "}for(let e=0;e<t;e++)n+=i;return n}function D(e,t){for(let n of(e instanceof a.$t&&(e=new O(e)),e.state.facet(S))){let r=n(e,t);if(void 0!==r)return r}let n=m(e.state);return n.length>=t?function(e,t,n){let r=t.resolveStack(n),i=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t&&!(t.from<r.node.from||t.to>r.node.to||t.from==r.node.from&&t.type==r.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return L(r,e,n)}(e,n,t):null}class O{constructor(e,t={}){this.state=e,this.options=t,this.unit=N(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;if(null!=r&&r>=n.from&&r<=n.to)if(i&&r==e)return{text:"",from:e};else if(t<0?r<e:r<=e)return{text:n.text.slice(r-n.from),from:r};else return{text:n.text.slice(0,r-n.from),from:n.from};return n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.countColumn(n,e-r),a=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return a>-1&&(i+=a-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return(0,a.y$)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let M=new i.uY;function L(e,t,n){for(let r=e;r;r=r.next){let e=function(e){let t=e.type.prop(M);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(i.uY.closedBy))){let t=e.lastChild,n=t&&r.indexOf(t.name)>-1;return e=>B(e,!0,1,void 0,n&&!(e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak)?t.from:void 0)}return null==e.parent?R:null}(r.node);if(e)return e(P.create(t,n,r))}return 0}function R(){return 0}class P extends O{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new P(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(function(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return L(this.context.next,this.base,this.pos)}}function F({closing:e,align:t=!0,units:n=1}){return r=>B(r,t,n,e)}function B(e,t,n,r,i){let a=e.textAfter,s=a.match(/^\s*/)[0].length,o=r&&a.slice(s,s+r.length)==r||i==e.pos+s,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,a=e.state.doc.lineAt(n.from),s=null==i||i<=a.from?a.to:Math.min(a.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped){if(i.from>=s)return null;let e=/^ */.exec(a.text.slice(n.to-a.from))[0].length;return{from:n.from,to:n.to+e}}e=i.to}}(e):null;return l?o?e.column(l.from):e.column(l.to):e.baseIndent+(o?0:e.unit*n)}let H=e=>e.baseIndent;function U({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}let j=a.sj.define(),$=new i.uY;function z(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}function G(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}let K=a.Pe.define({map:G}),q=a.Pe.define({map:G}),Y=a.sU.define({create:()=>s.NZ.none,update(e,t){for(let n of(t.isUserEvent("delete")&&t.changes.iterChangedRanges((t,n)=>e=W(e,t,n)),e=e.map(t.changes),t.effects))if(n.is(K)&&!function(e,t,n){let r=!1;return e.between(t,t,(e,i)=>{e==t&&i==n&&(r=!0)}),r}(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(X),i=r?s.NZ.replace({widget:new J(r(t.state,n.value))}):Z;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(q)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));return t.selection&&(e=W(e,t.selection.main.head)),e},provide:e=>s.Lz.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(e,t)=>{n.push(e,t)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n<e.length;){let r=e[n++],i=e[n++];if("number"!=typeof r||"number"!=typeof i)throw RangeError("Invalid JSON for fold state");t.push(Z.range(r,i))}return s.NZ.set(t,!0)}});function W(e,t,n=t){let r=!1;return e.between(t,n,(e,i)=>{e<n&&i>t&&(r=!0)}),r?e.update({filterFrom:t,filterTo:n,filter:(e,r)=>e>=n||r<=t}):e}let V={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},X=a.sj.define({combine:e=>(0,a.QR)(e,V)});function Q(e,t){let{state:n}=e,r=n.facet(X),i=t=>{var n,r,i,a;let s,o=e.lineBlockAt(e.posAtDOM(t.target)),l=(n=e.state,r=o.from,i=o.to,s=null,null==(a=n.field(Y,!1))||a.between(r,i,(e,t)=>{(!s||s.from>e)&&(s={from:e,to:t})}),s);l&&e.dispatch({effects:q.of(l)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let a=document.createElement("span");return a.textContent=r.placeholderText,a.setAttribute("aria-label",n.phrase("folded code")),a.title=n.phrase("unfold"),a.className="cm-foldPlaceholder",a.onclick=i,a}let Z=s.NZ.replace({widget:new class extends s.xO{toDOM(e){return Q(e,null)}}});class J extends s.xO{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Q(e,this.value)}}s.wJ;class ee{constructor(e,t){let n;function r(e){let t=l.G.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,a=t.scope;this.scope=a instanceof p?e=>e.prop(c)==a.data:a?e=>e==a:void 0,this.style=(0,o.az)(e.map(e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=n?new l.G(n):null,this.themeType=t.themeType}static define(e,t){return new ee(e,t||{})}}let et=a.sj.define(),en=a.sj.define({combine:e=>e.length?[e[0]]:null});function er(e){let t=e.facet(et);return t.length?t:e.facet(en)}function ei(e,t){let n=[es],r;return e instanceof ee&&(e.module&&n.push(s.Lz.styleModule.of(e.module)),r=e.themeType),(null==t?void 0:t.fallback)?n.push(en.of(e)):r?n.push(et.computeN([s.Lz.darkTheme],t=>t.facet(s.Lz.darkTheme)==("dark"==r)?[e]:[])):n.push(et.of(e)),n}class ea{constructor(e){this.markCache=Object.create(null),this.tree=m(e.state),this.decorations=this.buildDeco(e,er(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=m(e.state),n=er(e.state),r=n!=er(e.startState),{viewport:i}=e.view,a=e.changes.mapPos(this.decoratedTo,1);t.length<i.to&&!r&&t.type==this.tree.type&&a>=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return s.NZ.none;let n=new a.vB;for(let{from:r,to:i}of e.visibleRanges)(0,o.DM)(this.tree,t,(e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=s.NZ.mark({class:r})))},r,i);return n.finish()}}let es=a.Nb.high(s.Z9.fromClass(ea,{decorations:e=>e.decorations})),eo=ee.define([{tag:o._A.meta,color:"#404740"},{tag:o._A.link,textDecoration:"underline"},{tag:o._A.heading,textDecoration:"underline",fontWeight:"bold"},{tag:o._A.emphasis,fontStyle:"italic"},{tag:o._A.strong,fontWeight:"bold"},{tag:o._A.strikethrough,textDecoration:"line-through"},{tag:o._A.keyword,color:"#708"},{tag:[o._A.atom,o._A.bool,o._A.url,o._A.contentSeparator,o._A.labelName],color:"#219"},{tag:[o._A.literal,o._A.inserted],color:"#164"},{tag:[o._A.string,o._A.deleted],color:"#a11"},{tag:[o._A.regexp,o._A.escape,o._A.special(o._A.string)],color:"#e40"},{tag:o._A.definition(o._A.variableName),color:"#00f"},{tag:o._A.local(o._A.variableName),color:"#30a"},{tag:[o._A.typeName,o._A.namespace],color:"#085"},{tag:o._A.className,color:"#167"},{tag:[o._A.special(o._A.variableName),o._A.macroName],color:"#256"},{tag:o._A.definition(o._A.propertyName),color:"#00c"},{tag:o._A.comment,color:"#940"},{tag:o._A.invalid,color:"#f00"}]),el="()[]{}",ec=s.NZ.mark({class:"cm-matchingBracket"}),eu=s.NZ.mark({class:"cm-nonmatchingBracket"});function eh(e){let t=[],n=e.matched?ec:eu;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}let ep=new i.uY;function ed(e,t,n){let r=e.prop(t<0?i.uY.openedBy:i.uY.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==+(t<0))return[n[r+t]]}return null}function ef(e){let t=e.type.prop(ep);return t?t(e.node):e}function em(e,t,n,r={}){let i=r.maxScanDistance||1e4,a=r.brackets||el,s=m(e),o=s.resolveInner(t,n);for(let e=o;e;e=e.parent){let r=ed(e.type,n,a);if(r&&e.from<e.to){let i=ef(e);if(i&&(n>0?t>=i.from&&t<i.to:t>i.from&&t<=i.to))return function(e,t,n,r,i){let a=t.parent,s={from:n.from,to:n.to},o=0,l=null==a?void 0:a.cursor();if(l&&(e<0?l.childBefore(t.from):l.childAfter(t.to)))do if(e<0?l.to<=t.from:l.from>=t.to){if(0==o&&r.indexOf(l.type.name)>-1&&l.from<l.to){let e=ef(l);return{start:s,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}else if(ed(l.type,e,i))o++;else if(ed(l.type,-e,i)){if(0==o){let e=ef(l);return{start:s,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}o--}}while(e<0?l.prevSibling():l.nextSibling());return{start:s,matched:!1}}(n,e,i,r,a)}}return function(e,t,n,r,i,a,s){if(n<0?!t:t==e.doc.length)return null;let o=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=s.indexOf(o);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),h=0;for(let e=0;!u.next().done&&e<=a;){let a=u.value;n<0&&(e+=a.length);let o=t+e*n;for(let e=n>0?0:a.length-1,t=n>0?a.length:-1;e!=t;e+=n){let t=s.indexOf(a[e]);if(!(t<0)&&r.resolveInner(o+e,1).type==i)if(t%2==0==n>0)h++;else{if(1==h)return{start:c,end:{from:o+e,to:o+e+1},matched:t>>1==l>>1};h--}}n>0&&(e+=a.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,s,o.type,i,a)}let eg=Object.create(null),ey=[i.Z6.none],eb=[],ek=Object.create(null),e_=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])e_[e]=function(e,t){let n=[];for(let r of t.split(" ")){let t=[];for(let n of r.split(".")){let r=e[n]||o._A[n];r?"function"==typeof r?t.length?t=t.map(r):ex(n,`Modifier ${n} used at start of tag`):t.length?ex(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:ex(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),a=r+" "+n.map(e=>e.id),s=ek[a];if(s)return s.id;let l=ek[a]=i.Z6.define({id:ey.length,name:r,props:[(0,o.pn)({[r]:n})]});return ey.push(l),l.id}(eg,t);function ex(e,t){eb.indexOf(e)>-1||(eb.push(e),console.warn(t))}s.OP.RTL,s.OP.LTR},48006:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});let r={};function i(e,t){let n=t||r;return a(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function a(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return s(e.children,t,n)}return Array.isArray(e)?s(e,t,n):""}function s(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=a(e[i],t,n);return r.join("")}},48250:(e,t,n)=>{"use strict";n.d(t,{YR:()=>i});var r=n(20768);function i(e,t,n,i){let a,s,o;"function"==typeof t&&"function"!=typeof n?(s=void 0,o=t,a=n):(s=t,o=n,a=i),(0,r.VG)(e,s,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},a)}},49339:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(38635),i=n(4800);let a=Object.keys(i);class s extends r.R{constructor(e,t,n,r){let s=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++s<a.length;){const e=a[s];!function(e,t,n){n&&(e[t]=n)}(this,a[s],(n&i[e])===i[e])}}}s.prototype.defined=!0},49359:(e,t,n)=>{"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}n.d(t,{W:()=>r})},49884:(e,t,n)=>{"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{D:()=>r})},50055:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var r=n(62835),i=n(4294);let a={partial:!0,tokenize:function(e,t,n){return function(t){return(0,i.On)(t)?(0,r.N)(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||(0,i.HP)(e)?t(e):n(e)}}}},50643:(e,t,n)=>{"use strict";n.d(t,{jH:()=>r.C});var r=n(12503)},50783:(e,t,n)=>{"use strict";n.d(t,{y:()=>a});var r=n(41161);let i={}.hasOwnProperty;function a(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let a,s=(i.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(a in o){i.call(s,a)||(s[a]=[]);let e=o[a];!function(e,t){let n=-1,i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);(0,r.m)(e,0,0,i)}(s[a],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}},51640:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});let r=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]},51705:(e,t,n)=>{"use strict";function r(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function i(e){return e.join(" ").trim()}n.d(t,{A:()=>i,q:()=>r})},52326:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(68448),i=n(64720);let a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(35!==e.charCodeAt(0))return;let t=e.match(a.re);if(!t)return;let n=t[1],i=parseInt(n,16),s=n.length,o=s%4==0,l=s>4,c=l?1:17,u=l?8:4,h=o?0:-1,p=l?255:15;return r.A.set({r:(i>>u*(h+3)&p)*c,g:(i>>u*(h+2)&p)*c,b:(i>>u*(h+1)&p)*c,a:o?(i&p)*c/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a}=e;return a<1?`#${i.Y[Math.round(t)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}${i.Y[Math.round(255*a)]}`:`#${i.Y[Math.round(t)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}`}};var s=n(42112);let o={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:e=>{let t=e.match(o.hueRe);if(t){let[,e,n]=t;switch(n){case"grad":return s.A.channel.clamp.h(.9*parseFloat(e));case"rad":return s.A.channel.clamp.h(180*parseFloat(e)/Math.PI);case"turn":return s.A.channel.clamp.h(360*parseFloat(e))}}return s.A.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(104!==t&&72!==t)return;let n=e.match(o.re);if(!n)return;let[,i,a,l,c,u]=n;return r.A.set({h:o._hue2deg(i),s:s.A.channel.clamp.s(parseFloat(a)),l:s.A.channel.clamp.l(parseFloat(l)),a:c?s.A.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${s.A.lang.round(t)}, ${s.A.lang.round(n)}%, ${s.A.lang.round(r)}%, ${i})`:`hsl(${s.A.lang.round(t)}, ${s.A.lang.round(n)}%, ${s.A.lang.round(r)}%)`}},l={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:e=>{e=e.toLowerCase();let t=l.colors[e];if(t)return a.parse(t)},stringify:e=>{let t=a.stringify(e);for(let e in l.colors)if(l.colors[e]===t)return e}},c={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:e=>{let t=e.charCodeAt(0);if(114!==t&&82!==t)return;let n=e.match(c.re);if(!n)return;let[,i,a,o,l,u,h,p,d]=n;return r.A.set({r:s.A.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:s.A.channel.clamp.g(l?2.55*parseFloat(o):parseFloat(o)),b:s.A.channel.clamp.b(h?2.55*parseFloat(u):parseFloat(u)),a:p?s.A.channel.clamp.a(d?parseFloat(p)/100:parseFloat(p)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${s.A.lang.round(t)}, ${s.A.lang.round(n)}, ${s.A.lang.round(r)}, ${s.A.lang.round(i)})`:`rgb(${s.A.lang.round(t)}, ${s.A.lang.round(n)}, ${s.A.lang.round(r)})`}},u={format:{keyword:l,hex:a,rgb:c,rgba:c,hsl:o,hsla:o},parse:e=>{if("string"!=typeof e)return e;let t=a.parse(e)||c.parse(e)||o.parse(e)||l.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(i.Z.HSL)||void 0===e.data.r?o.stringify(e):!(e.a<1)&&Number.isInteger(e.r)&&Number.isInteger(e.g)&&Number.isInteger(e.b)?a.stringify(e):c.stringify(e)}},52618:(e,t,n)=>{"use strict";function r(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}n.d(t,{i:()=>r})},52634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||i.test(c)||n.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(a,l)).replace(r,o))}},53228:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/pdf.worker.min.29aaf158.mjs"},54615:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var r=n(23091),i=n(78750),a=n(4294);function s(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let s=e.charCodeAt(n),o="";if(37===s&&(0,a.lV)(e.charCodeAt(n+1))&&(0,a.lV)(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){let t=e.charCodeAt(n+1);s<56320&&t>56319&&t<57344?(o=String.fromCharCode(s,t),i=1):o="�"}else o=String.fromCharCode(s);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function o(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function l(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var c=n(48250),u=n(7370);function h(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function p(e){let t=e.spread;return null==t?e.children.length>1:t}function d(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let f={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=s(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),l=e.footnoteCounts.get(i);void 0===l?(l=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,l+=1,e.footnoteCounts.set(i,l);let c={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,c);let u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return h(e,t);let i={src:s(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:s(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return h(e,t);let i={href:s(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:s(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=p(n[r])}return t}(n):p(t),a={},s=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){let e=r[o];(i||0!==o||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?s.push(e):s.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&s.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=(0,u.PW)(t.children[1]),s=(0,u.Y)(t.children[t.children.length-1]);a&&s&&(r.position={start:a,end:s}),i.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,s=a?a.length:t.children.length,o=-1,l=[];for(;++o<s;){let n=t.children[o],r={},s=a?a[o]:void 0;s&&(r.align=s);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(d(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(d(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:m,yaml:m,definition:m,footnoteDefinition:m};function m(){}let g={}.hasOwnProperty,y={};function b(e,t){e.position&&(t.position=(0,u.G1)(e))}function k(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&a&&Object.assign(n.properties,(0,i.Ay)(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function _(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function x(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function E(e,t){let n,a,u,h,p=(n=t||y,a=new Map,u=new Map,h={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=h.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=x(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=x(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:k,definitionById:a,footnoteById:u,footnoteCounts:new Map,footnoteOrder:[],handlers:{...f,...n.handlers},one:function(e,t){let n=e.type,r=h.handlers[n];if(g.call(h.handlers,n)&&r)return r(h,e,t);if(h.options.passThrough&&h.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=(0,i.Ay)(n);return r.children=h.all(e),r}return(0,i.Ay)(e)}return(h.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(g.call(n,"hProperties")||g.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(h,e,t)},options:n,patch:b,wrap:_},(0,c.YR)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?a:u,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),h),d=p.one(e,void 0),m=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||o,r=e.options.footnoteBackLabel||l,a=e.options.footnoteLabel||"Footnotes",c=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},h=[],p=-1;for(;++p<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[p]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=s(o.toLowerCase()),c=0,u=[],d=e.footnoteCounts.get(o);for(;void 0!==d&&++c<=d;){u.length>0&&u.push({type:"text",value:" "});let e="string"==typeof n?n:n(p,c);"string"==typeof e&&(e={type:"text",value:e}),u.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+l+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(p,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=a[a.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...u)}else a.push(...u);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+l},children:e.wrap(a,!0)};e.patch(i,m),h.push(m)}if(0!==h.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...(0,i.Ay)(u),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(h,!0)},{type:"text",value:"\n"}]}}(p),E=Array.isArray(d)?{type:"root",children:d}:d||{type:"root",children:[]};return m&&((0,r.ok)("children"in E),E.children.push({type:"text",value:"\n"},m)),E}function T(e,t){return e&&"run"in e?async function(n,r){let i=E(n,{file:r,...t});await e.run(i,r)}:function(n,r){return E(n,{file:r,...e||t})}}},56424:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(28830);class i extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let i="",a={},s=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?i=e:!a.cause&&e&&(s=!0,i=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=(0,r.L)(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}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},60598:(e,t,n)=>{"use strict";function r(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function i(e){return Object.prototype.toString.call(e)}function a(e){return"[object Function]"===i(e)}function s(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var o={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var r=e.slice(t);return(n.re.http||(n.re.http=RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r))?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return(n.re.no_http||(n.re.no_http=RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return(n.re.mailto||(n.re.mailto=RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r))?r.match(n.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(){return function(e,t){t.normalize(e)}}function h(e){var t=e.re=n(8047)(e.__opts__),r=e.__tlds__.slice();function o(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(o(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(o(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(o(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(o(t.tpl_host_fuzzy_test),"i");var l=[];function c(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r,s={validate:null,link:null};if(e.__compiled__[t]=s,"[object Object]"===i(n)){"[object RegExp]"===i(n.validate)?(r=n.validate,s.validate=function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}):a(n.validate)?s.validate=n.validate:c(t,n),a(n.normalize)?s.normalize=n.normalize:n.normalize?c(t,n):s.normalize=u();return}if("[object String]"===i(n))return void l.push(t);c(t,n)}}),l.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:u()};var h=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(s).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+h+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+h+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),e.__index__=-1,e.__text_cache__=""}function p(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function d(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||o.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=r({},o,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},h(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,h(this),this},f.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},f.prototype.test=function(e){var t,n,r,i,a,s,o,l;if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;if(this.re.schema_test.test(e)){for((o=this.re.schema_search).lastIndex=0;null!==(t=o.exec(e));)if(i=this.testSchemaAt(e,t[2],o.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(a=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s)),this.__index__>=0},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),h(this),this},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},62388:(e,t,n)=>{"use strict";n.d(t,{BN:()=>i,E3:()=>r,xT:()=>c});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},a="u">typeof navigator&&/Mac/.test(navigator.platform),s="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),o=0;o<10;o++)r[48+o]=r[96+o]=String(o);for(var o=1;o<=24;o++)r[o+111]="F"+o;for(var o=65;o<=90;o++)r[o]=String.fromCharCode(o+32),i[o]=String.fromCharCode(o);for(var l in r)i.hasOwnProperty(l)||(i[l]=r[l]);function c(e){var t=!(a&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||s&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}},62835:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(4294);function i(e,t,n,i){let a=i?i-1:1/0,s=0;return function(i){return(0,r.On)(i)?(e.enter(n),function i(o){return(0,r.On)(o)&&s++<a?(e.consume(o),i):(e.exit(n),t(o))}(i)):t(i)}}},64463:e=>{e.exports=/[\0-\x1F\x7F-\x9F]/},64720:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i,Z:()=>a});var r=n(42112);let i={};for(let e=0;e<=255;e++)i[e]=r.A.unit.dec2hex(e);let a={ALL:0,RGB:1,HSL:2}},64907:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(42112),i=n(52326);let a=(e,t,n)=>{let a=i.A.parse(e),s=a[t],o=r.A.channel.clamp[t](s+n);return s!==o&&(a[t]=o),i.A.stringify(a)}},68195:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(64907);let i=(e,t)=>(0,r.A)(e,"l",-t)},68289:(e,t,n)=>{"use strict";function r(e){return e.toLowerCase()}n.d(t,{S:()=>r})},68420:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(42112),i=n(52326);let a=(e,t)=>{let n=i.A.parse(e);for(let e in t)n[e]=r.A.channel.clamp[e](t[e]);return i.A.stringify(n)}},68448:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(42112),i=n(64720);class a{constructor(){this.type=i.Z.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=i.Z.ALL}is(e){return this.type===e}}class s{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new a}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=i.Z.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:i}=e;void 0===t&&(e.h=r.A.channel.rgb2hsl(e,"h")),void 0===n&&(e.s=r.A.channel.rgb2hsl(e,"s")),void 0===i&&(e.l=r.A.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r:t,g:n,b:i}=e;void 0===t&&(e.r=r.A.channel.hsl2rgb(e,"r")),void 0===n&&(e.g=r.A.channel.hsl2rgb(e,"g")),void 0===i&&(e.b=r.A.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,t=e.r;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"r")):t}get g(){let e=this.data,t=e.g;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"g")):t}get b(){let e=this.data,t=e.b;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"b")):t}get h(){let e=this.data,t=e.h;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"h")):t}get s(){let e=this.data,t=e.s;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"s")):t}get l(){let e=this.data,t=e.l;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}let o=new s({r:0,g:0,b:0,a:0},"transparent")},72148:(e,t,n)=>{"use strict";n.d(t,{T:()=>h});var r=n(56424);let i=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');l(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else s<0&&(n=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(i=a):(o=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)},a=function(e){let t;if(l(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},s=function(e){let t;l(e);let n=e.length,r=-1,i=0,a=-1,s=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?a<0?a=n:1!==s&&(s=1):a>-1&&(s=-1)}return a<0||r<0||0===s||1===s&&a===r-1&&a===i+1?"":e.slice(a,r)},o=function(...e){var t;let n,r,i,a=-1;for(;++a<e.length;)l(e[a]),e[a]&&(i=void 0===i?e[a]:i+"/"+e[a]);return void 0===i?".":(l(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",a=0,s=-1,o=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(s===l-1||1===o);else if(s!==l-1&&2===o){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),s=l,o=0;continue}}else if(i.length>0){i="",a=0,s=l,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),a=l-s-1;s=l,o=0}else 46===n&&o>-1?o++:o=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function l(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function c(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let u=["history","path","basename","stem","extname","dirname"];class h{constructor(e){let t,n;t=e?c(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<u.length;){const e=u[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)u.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?i(this.path):void 0}set basename(e){d(e,"basename"),p(e,"basename"),this.path=o(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?a(this.path):void 0}set dirname(e){f(this.basename,"dirname"),this.path=o(e||"",this.basename)}get extname(){return"string"==typeof this.path?s(this.path):void 0}set extname(e){if(p(e,"extname"),f(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=o(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){c(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!c(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),d(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?i(this.path,this.extname):void 0}set stem(e){d(e,"stem"),p(e,"stem"),this.path=o(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let i=new r.o(e,t,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function p(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function d(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function f(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}},72152:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(52326),i=n(13222);let a=(e,t=100)=>{let n=r.A.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,((e,t,n=50)=>{let{r:a,g:s,b:o,a:l}=r.A.parse(e),{r:c,g:u,b:h,a:p}=r.A.parse(t),d=n/100,f=2*d-1,m=l-p,g=((f*m==-1?f:(f+m)/(1+f*m))+1)/2,y=1-g;return(0,i.A)(a*g+c*y,s*g+u*y,o*g+h*y,l*d+p*(1-d))})(n,e,t)}},72475:(e,t,n)=>{"use strict";n.d(t,{IU:()=>_,Jo:()=>O,T_:()=>A,g0:()=>ei,jP:()=>E});var r=n(85774),i=n(63886),a=n(38033),s=n(17541),o=n(88774),l=n(32563),c=n(97096),u=n(32165),h=n(33948),p=n(94529),d=(0,u.K2)((e,t,n,r,i,a=!1,s)=>{t.arrowTypeStart&&g(e,"start",t.arrowTypeStart,n,r,i,a,s),t.arrowTypeEnd&&g(e,"end",t.arrowTypeEnd,n,r,i,a,s)},"addEdgeMarkers"),f={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{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}},m=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],g=(0,u.K2)((e,t,n,r,i,a,s=!1,o)=>{let l=f[n],c=l&&m.includes(l.type);if(!l)return void u.Rm.warn(`Unknown arrow type: ${n}`);let h=l.type,p=`${i}_${a}-${h}${"start"===t?"Start":"End"}${s&&c?"-margin":""}`;if(o&&""!==o.trim()){let n=o.replace(/[^\dA-Za-z]/g,"_"),i=`${p}_${n}`;if(!document.getElementById(i)){let e=document.getElementById(p);if(e){let t=e.cloneNode(!0);t.id=i,t.querySelectorAll("path, circle, line").forEach(e=>{e.setAttribute("stroke",o),l.fill&&e.setAttribute("fill",o)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${i})`)}else e.attr(`marker-${t}`,`url(${r}#${p})`)},"addEdgeMarker"),y=(0,u.K2)(e=>"string"==typeof e?e:(0,c.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),b=new Map,k=new Map,_=(0,u.K2)(()=>{b.clear(),k.clear()},"clear"),x=(0,u.K2)(e=>e?"string"==typeof e?e:e.reduce((e,t)=>e+";"+t,""):"","getLabelStyles"),E=(0,u.K2)(async(e,t)=>{let n,a=(0,c.D7)(),l=(0,c.E)(a),{labelStyles:p}=(0,s.GX)(t);t.labelStyle=p;let d=e.insert("g").attr("class","edgeLabel"),f=d.insert("g").attr("class","label").attr("data-id",t.id),m="markdown"===t.labelType,g=await (0,o.GZ)(e,t.label,{style:x(t.labelStyle),useHtmlLabels:l,addSvgBackground:!0,isNode:!1,markdown:m,width:void 0},a);f.node().appendChild(g),u.Rm.info("abc82",t,t.labelType);let y=g.getBBox(),_=y;if(l){let e=g.children[0],t=(0,h.Ltv)(g);_=y=e.getBoundingClientRect(),t.attr("width",y.width),t.attr("height",y.height)}else{let e=(0,h.Ltv)(g).select("text").node();e&&"function"==typeof e.getBBox&&(_=e.getBBox())}if(f.attr("transform",(0,r.Wg)(_,l)),b.set(t.id,d),t.width=y.width,t.height=y.height,t.startLabelLeft){let a=e.insert("g").attr("class","edgeTerminals"),s=a.insert("g").attr("class","inner"),o=await (0,i.DA)(s,t.startLabelLeft,x(t.labelStyle)||"",!1,!1);n=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,h.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,r.Wg)(c,l)),k.get(t.id)||k.set(t.id,{}),k.get(t.id).startLeft=a,T(n,t.startLabelLeft)}if(t.startLabelRight){let a=e.insert("g").attr("class","edgeTerminals"),s=a.insert("g").attr("class","inner"),o=await (0,i.DA)(s,t.startLabelRight,x(t.labelStyle)||"",!1,!1);n=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,h.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,r.Wg)(c,l)),k.get(t.id)||k.set(t.id,{}),k.get(t.id).startRight=a,T(n,t.startLabelRight)}if(t.endLabelLeft){let a=e.insert("g").attr("class","edgeTerminals"),s=a.insert("g").attr("class","inner"),o=await (0,i.DA)(a,t.endLabelLeft,x(t.labelStyle)||"",!1,!1);n=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,h.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,r.Wg)(c,l)),k.get(t.id)||k.set(t.id,{}),k.get(t.id).endLeft=a,T(n,t.endLabelLeft)}if(t.endLabelRight){let a=e.insert("g").attr("class","edgeTerminals"),s=a.insert("g").attr("class","inner"),o=await (0,i.DA)(a,t.endLabelRight,x(t.labelStyle)||"",!1,!1);n=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,h.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,r.Wg)(c,l)),k.get(t.id)||k.set(t.id,{}),k.get(t.id).endRight=a,T(n,t.endLabelRight)}return g},"insertEdgeLabel");function T(e,t){(0,c.E)((0,c.D7)())&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}(0,u.K2)(T,"setTerminalWidth");var A=(0,u.K2)((e,t)=>{u.Rm.debug("Moving label abc88 ",e.id,e.label,b.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath,r=(0,c.D7)(),{subGraphTitleTotalMargin:i}=(0,a.O)(r);if(e.label){let r=b.get(e.id),a=e.x,s=e.y;if(n){let r=l._K.calcLabelPosition(n);u.Rm.debug("Moving label "+e.label+" from (",a,",",s,") to (",r.x,",",r.y,") abc88"),t.updatedPath&&(a=r.x,s=r.y)}r.attr("transform",`translate(${a}, ${s+i/2})`)}if(e.startLabelLeft){let t=k.get(e.id).startLeft,r=e.x,i=e.y;if(n){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeStart,"start_left",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.startLabelRight){let t=k.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeStart,"start_right",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=k.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeEnd,"end_left",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.endLabelRight){let t=k.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeEnd,"end_right",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}},"positionEdgeLabel"),v=(0,u.K2)((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),s=e.width/2,o=e.height/2;return i>=s||a>=o},"outsideNode"),w=(0,u.K2)((e,t,n)=>{u.Rm.debug(`intersection calc abc89:
|
|
106
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
107
|
+
insidePoint : ${JSON.stringify(n)}
|
|
108
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let r=e.x,i=e.y,a=Math.abs(r-n.x),s=e.width/2,o=n.x<t.x?s-a:s+a,l=e.height/2,c=Math.abs(t.y-n.y),h=Math.abs(t.x-n.x);if(Math.abs(i-t.y)*s>Math.abs(r-t.x)*l){let e=n.y<t.y?t.y-l-i:i-l-t.y;o=h*e/c;let r={x:n.x<t.x?n.x+o:n.x-h+o,y:n.y<t.y?n.y+c-e:n.y-c+e};return 0===o&&(r.x=t.x,r.y=t.y),0===h&&(r.x=t.x),0===c&&(r.y=t.y),u.Rm.debug(`abc89 top/bottom calc, Q ${c}, q ${e}, R ${h}, r ${o}`,r),r}{let e=c*(o=n.x<t.x?t.x-s-r:r-s-t.x)/h,i=n.x<t.x?n.x+h-o:n.x-h+o,a=n.y<t.y?n.y+e:n.y-e;return u.Rm.debug(`sides calc abc89, Q ${c}, q ${e}, R ${h}, r ${o}`,{_x:i,_y:a}),0===o&&(i=t.x,a=t.y),0===h&&(i=t.x),0===c&&(a=t.y),{x:i,y:a}}},"intersection"),S=(0,u.K2)((e,t)=>{u.Rm.warn("abc88 cutPathAtIntersect",e,t);let n=[],r=e[0],i=!1;return e.forEach(e=>{if(u.Rm.info("abc88 checking point",e,t),v(t,e)||i)u.Rm.warn("abc88 outside",e,r),r=e,i||n.push(e);else{let a=w(t,r,e);u.Rm.debug("abc88 inside",e,r,a),u.Rm.debug("abc88 intersection",a,t);let s=!1;n.forEach(e=>{s=s||e.x===a.x&&e.y===a.y}),n.some(e=>e.x===a.x&&e.y===a.y)?u.Rm.warn("abc88 no intersect",a,n):n.push(a),i=!0}}),u.Rm.debug("returning points",n),n},"cutPathAtIntersect");function C(e){let t=[],n=[];for(let r=1;r<e.length-1;r++){let i=e[r-1],a=e[r],s=e[r+1];i.x===a.x&&a.y===s.y&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-i.y)>5?(t.push(a),n.push(r)):i.y===a.y&&a.x===s.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-s.y)>5&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}(0,u.K2)(C,"extractCornerPoints");var N=(0,u.K2)(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},"findAdjacentPoint"),I=(0,u.K2)(function(e){let{cornerPointPositions:t}=C(e),n=[];for(let r=0;r<e.length;r++)if(t.includes(r)){let t=e[r-1],i=e[r+1],a=e[r],s=N(t,a,5),o=N(i,a,5),l=o.x-s.x,c=o.y-s.y;n.push(s);let h=2*Math.sqrt(2),p={x:a.x,y:a.y};Math.abs(i.x-t.x)>10&&Math.abs(i.y-t.y)>=10?(u.Rm.debug("Corner point fixing",Math.abs(i.x-t.x),Math.abs(i.y-t.y)),p=a.x===s.x?{x:l<0?s.x-5+h:s.x+5-h,y:c<0?s.y-h:s.y+h}:{x:l<0?s.x-h:s.x+h,y:c<0?s.y-5+h:s.y+5-h}):u.Rm.debug("Corner point skipping fixing",Math.abs(i.x-t.x),Math.abs(i.y-t.y)),n.push(p,o)}else n.push(e[r]);return n},"fixCorners"),D=(0,u.K2)((e,t,n)=>{let r=Array(Math.floor((e-t-n)/4)).fill("2 2").join(" ");return`0 ${t} ${r} ${n}`},"generateDashArray"),O=(0,u.K2)(function(e,t,n,i,a,o,f,m=!1){let g,b;if(!f)throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:k}=(0,c.D7)(),_=t.points,x=!1,E=[];for(let e in t.cssCompiledStyles)(0,s.KX)(e)||E.push(t.cssCompiledStyles[e]);u.Rm.debug("UIO intersect check",t.points,o.x,a.x),o.intersect&&a.intersect&&!m&&((_=_.slice(1,t.points.length-1)).unshift(a.intersect(_[0])),u.Rm.debug("Last point UIO",t.start,"--\x3e",t.end,_[_.length-1],o,o.intersect(_[_.length-1])),_.push(o.intersect(_[_.length-1])));let T=btoa(JSON.stringify(_));t.toCluster&&(u.Rm.info("to cluster abc88",n.get(t.toCluster)),_=S(t.points,n.get(t.toCluster).node),x=!0),t.fromCluster&&(u.Rm.debug("from cluster abc88",n.get(t.fromCluster),JSON.stringify(_,null,2)),_=S(_.reverse(),n.get(t.fromCluster).node).reverse(),x=!0);let A=_.filter(e=>!Number.isNaN(e.y)),v=y(t.curve);"rounded"!==v&&(A=I(A));let w=h.lUB;switch(v){case"linear":case"rounded":w=h.lUB;break;case"basis":default:w=h.qrM;break;case"cardinal":w=h.y8u;break;case"bumpX":w=h.Wi0;break;case"bumpY":w=h.PGM;break;case"catmullRom":w=h.oDi;break;case"monotoneX":w=h.nVG;break;case"monotoneY":w=h.uxU;break;case"natural":w=h.Xf2;break;case"step":w=h.GZz;break;case"stepAfter":w=h.UPb;break;case"stepBefore":w=h.dyv}let{x:C,y:N}=(0,r.RI)(t),O=(0,h.n8j)().x(C).y(N).curve(w);switch(t.thickness){case"normal":default:g="edge-thickness-normal";break;case"thick":g="edge-thickness-thick";break;case"invisible":g="edge-thickness-invisible"}switch(t.pattern){case"solid":default:g+=" edge-pattern-solid";break;case"dotted":g+=" edge-pattern-dotted";break;case"dashed":g+=" edge-pattern-dashed"}let L="rounded"===v?M(R(A,t),5):O(A),P=Array.isArray(t.style)?t.style:[t.style],F=P.find(e=>e?.startsWith("stroke:")),B="";t.animate&&(B="edge-animation-fast"),t.animation&&(B="edge-animation-"+t.animation);let H=!1;if("handDrawn"===t.look){let n=p.A.svg(e);Object.assign([],A);let r=n.path(L,{roughness:.3,seed:k});g+=" transition";let i=(b=(0,h.Ltv)(r).select("path").attr("id",`${f}-${t.id}`).attr("class"," "+g+(t.classes?" "+t.classes:"")+(B?" "+B:"")).attr("style",P?P.reduce((e,t)=>e+";"+t,""):"")).attr("d");b.attr("d",i),e.node().appendChild(b.node())}else{let n=E.join(";"),i=P?P.reduce((e,t)=>e+t+";",""):"",a=(n?n+";"+i+";":i)+";"+(P?P.reduce((e,t)=>e+";"+t,""):"");b=e.append("path").attr("d",L).attr("id",`${f}-${t.id}`).attr("class"," "+g+(t.classes?" "+t.classes:"")+(B?" "+B:"")).attr("style",a),F=a.match(/stroke:([^;]+)/)?.[1],H=!0===t.animate||!!t.animation||n.includes("animation");let s=b.node(),o="function"==typeof s.getTotalLength?s.getTotalLength():0,l=r.Nq[t.arrowTypeStart]||0,c=r.Nq[t.arrowTypeEnd]||0;if("neo"===t.look&&!H){let e="dotted"===t.pattern||"dashed"===t.pattern?D(o,l,c):`0 ${l} ${o-l-c} ${c}`,n=`stroke-dasharray: ${e}; stroke-dashoffset: 0;`;b.attr("style",n+b.attr("style"))}}b.attr("data-edge",!0),b.attr("data-et","edge"),b.attr("data-id",t.id),b.attr("data-points",T),b.attr("data-look",(0,l.KL)(t.look)),t.showPoints&&A.forEach(t=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",t.x).attr("cy",t.y)});let U="";((0,c.D7)().flowchart.arrowMarkerAbsolute||(0,c.D7)().state.arrowMarkerAbsolute)&&(U=(U=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),u.Rm.info("arrowTypeStart",t.arrowTypeStart),u.Rm.info("arrowTypeEnd",t.arrowTypeEnd);let j=!H&&t?.look==="neo";d(b,t,U,f,i,j,F);let $=Math.floor(_.length/2),z=_[$];l._K.isLabelCoordinateInPath(z,b.attr("d"))||(x=!0);let G={};return x&&(G.updatedPath=_),G.originalPath=t.points,G},"insertEdge");function M(e,t){if(e.length<2)return"";let n="",r=e.length;for(let i=0;i<r;i++){let a=e[i],s=e[i-1],o=e[i+1];if(0===i)n+=`M${a.x},${a.y}`;else if(i===r-1)n+=`L${a.x},${a.y}`;else{let e=a.x-s.x,r=a.y-s.y,i=o.x-a.x,l=o.y-a.y,c=Math.hypot(e,r),u=Math.hypot(i,l);if(c<1e-5||u<1e-5){n+=`L${a.x},${a.y}`;continue}let h=e/c,p=r/c,d=i/u,f=l/u,m=Math.acos(Math.max(-1,Math.min(1,h*d+p*f)));if(m<1e-5||1e-5>Math.abs(Math.PI-m)){n+=`L${a.x},${a.y}`;continue}let g=Math.min(t/Math.sin(m/2),c/2,u/2),y=a.x-h*g,b=a.y-p*g,k=a.x+d*g,_=a.y+f*g;n+=`L${y},${b}Q${a.x},${a.y} ${k},${_}`}}return n}function L(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let n=t.x-e.x,r=t.y-e.y;return{angle:Math.atan2(r,n),deltaX:n,deltaY:r}}function R(e,t){let n=e.map(e=>({...e}));if(e.length>=2&&r.hq[t.arrowTypeStart]){let i=r.hq[t.arrowTypeStart],a=e[0],{angle:s}=L(a,e[1]),o=i*Math.cos(s),l=i*Math.sin(s);n[0].x=a.x+o,n[0].y=a.y+l}let i=e.length;if(i>=2&&r.hq[t.arrowTypeEnd]){let a=r.hq[t.arrowTypeEnd],s=e[i-1],{angle:o}=L(e[i-2],s),l=a*Math.cos(o),c=a*Math.sin(o);n[i-1].x=s.x-l,n[i-1].y=s.y-c}return n}(0,u.K2)(M,"generateRoundedPath"),(0,u.K2)(L,"calculateDeltaAndAngle"),(0,u.K2)(R,"applyMarkerOffsetsToPoints");var P=(0,u.K2)((e,t,n,r)=>{t.forEach(t=>{er[t](e,n,r)})},"insertMarkers"),F=(0,u.K2)((e,t,n)=>{u.Rm.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionEnd").attr("class","marker extension "+t).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"),e.append("marker").attr("id",n+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),B=(0,u.K2)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionStart").attr("class","marker composition "+t).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"),e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionEnd").attr("class","marker composition "+t).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"),e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),H=(0,u.K2)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).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"),e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).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"),e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),U=(0,u.K2)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).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"),e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).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"),e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),j=(0,u.K2)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),$=(0,u.K2)((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-pointEnd").attr("class","marker "+t).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"),e.append("marker").attr("id",n+"_"+t+"-pointStart").attr("class","marker "+t).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"),e.append("marker").attr("id",n+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),z=(0,u.K2)((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-circleEnd").attr("class","marker "+t).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"),e.append("marker").attr("id",n+"_"+t+"-circleStart").attr("class","marker "+t).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"),e.append("marker").attr("id",n+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),G=(0,u.K2)((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-crossEnd").attr("class","marker cross "+t).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"),e.append("marker").attr("id",n+"_"+t+"-crossStart").attr("class","marker cross "+t).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"),e.append("marker").attr("id",n+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",n+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),K=(0,u.K2)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-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"),q=(0,u.K2)((e,t,n)=>{let{themeVariables:r}=(0,c.zj)(),{transitionColor:i}=r;e.append("defs").append("marker").attr("id",n+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${i}`)},"barbNeo"),Y=(0,u.K2)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).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"),e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).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"),W=(0,u.K2)((e,t,n)=>{let r=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).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");let i=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).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"),V=(0,u.K2)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).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"),e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).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"),X=(0,u.K2)((e,t,n)=>{let r=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).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");let i=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).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"),Q=(0,u.K2)((e,t,n)=>{let{themeVariables:r}=(0,c.zj)(),{strokeWidth:i}=r;e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${i}`),e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${i}`)},"only_one_neo"),Z=(0,u.K2)((e,t,n)=>{let{themeVariables:r}=(0,c.zj)(),{strokeWidth:i,mainBkg:a}=r,s=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");s.append("circle").attr("fill",a??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${i}`).attr("r",6),s.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${i}`);let o=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",a??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${i}`).attr("r",6),o.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${i}`)},"zero_or_one_neo"),J=(0,u.K2)((e,t,n)=>{let{themeVariables:r}=(0,c.zj)(),{strokeWidth:i}=r;e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${i}`),e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${i}`)},"one_or_more_neo"),ee=(0,u.K2)((e,t,n)=>{let{themeVariables:r}=(0,c.zj)(),{strokeWidth:i,mainBkg:a}=r,s=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",a??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${i}`),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${i}`);let o=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",a??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${i}`),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${i}`)},"zero_or_more_neo"),et=(0,u.K2)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
109
|
+
L20,10
|
|
110
|
+
M20,10
|
|
111
|
+
L0,20`)},"requirement_arrow"),en=(0,u.K2)((e,t,n)=>{let{themeVariables:r}=(0,c.zj)(),{strokeWidth:i}=r;e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${i}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
112
|
+
L20,10
|
|
113
|
+
M20,10
|
|
114
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),er={extension:F,composition:B,aggregation:H,dependency:U,lollipop:j,point:$,circle:z,cross:G,barb:K,barbNeo:q,only_one:Y,zero_or_one:W,one_or_more:V,zero_or_more:X,only_one_neo:Q,zero_or_one_neo:Z,one_or_more_neo:J,zero_or_more_neo:ee,requirement_arrow:et,requirement_contains:(0,u.K2)((e,t,n)=>{let r=e.append("defs").append("marker").attr("id",n+"_"+t+"-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"),requirement_arrow_neo:en,requirement_contains_neo:(0,u.K2)((e,t,n)=>{let{themeVariables:r}=(0,c.zj)(),{strokeWidth:i}=r,a=e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),a.selectAll("*").attr("stroke-width",`${i}`)},"requirement_contains_neo")},ei=P},73129:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});let r=function(e){var t,n;if(null==e)return a;if("function"==typeof e)return i(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,i(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,i(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function i(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function a(){return!0}},74059:(e,t,n)=>{"use strict";n.d(t,{bM:()=>g});var r=n(89561),i=n(46732),a=n(32638);let s="#e06c75",o="#abb2bf",l="#7d8799",c="#d19a66",u="#2c313a",h="#282c34",p="#353a42",d="#528bff",f=r.Lz.theme({"&":{color:o,backgroundColor:h},".cm-content":{caretColor:d},".cm-cursor, .cm-dropCursor":{borderLeftColor:d},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:o},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:h,color:l,border:"none"},".cm-activeLineGutter":{backgroundColor:u},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:p},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:p,borderBottomColor:p},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:u,color:o}}},{dark:!0}),m=i.cr.define([{tag:a._A.keyword,color:"#c678dd"},{tag:[a._A.name,a._A.deleted,a._A.character,a._A.propertyName,a._A.macroName],color:s},{tag:[a._A.function(a._A.variableName),a._A.labelName],color:"#61afef"},{tag:[a._A.color,a._A.constant(a._A.name),a._A.standard(a._A.name)],color:c},{tag:[a._A.definition(a._A.name),a._A.separator],color:o},{tag:[a._A.typeName,a._A.className,a._A.number,a._A.changed,a._A.annotation,a._A.modifier,a._A.self,a._A.namespace],color:"#e5c07b"},{tag:[a._A.operator,a._A.operatorKeyword,a._A.url,a._A.escape,a._A.regexp,a._A.link,a._A.special(a._A.string)],color:"#56b6c2"},{tag:[a._A.meta,a._A.comment],color:l},{tag:a._A.strong,fontWeight:"bold"},{tag:a._A.emphasis,fontStyle:"italic"},{tag:a._A.strikethrough,textDecoration:"line-through"},{tag:a._A.link,color:l,textDecoration:"underline"},{tag:a._A.heading,fontWeight:"bold",color:s},{tag:[a._A.atom,a._A.bool,a._A.special(a._A.variableName)],color:c},{tag:[a._A.processingInstruction,a._A.string,a._A.inserted],color:"#98c379"},{tag:a._A.invalid,color:"#ffffff"}]),g=[f,(0,i.y9)(m)]},76548:(e,t,n)=>{"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{B:()=>r})},77322:(e,t,n)=>{"use strict";n.d(t,{D:()=>B});var r=n(78115),i=n(84709);function a(e,t){let n=function(e,t){switch(e.nodeType){case 1:return function(e,t){let n=e.namespaceURI,a=n===i.t.svg?r.s:r.h,o=n===i.t.html?e.tagName.toLowerCase():e.tagName,l=n===i.t.html&&"template"===o?e.content:e,c=e.getAttributeNames(),u={},h=-1;for(;++h<c.length;)u[c[h]]=e.getAttribute(c[h])||"";return a(o,u,s(l,t))}(e,t);case 3:return{type:"text",value:e.nodeValue||""};case 8:return{type:"comment",value:e.nodeValue||""};case 9:case 11:return function(e,t){return{type:"root",children:s(e,t)}}(e,t);case 10:return{type:"doctype"};default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function s(e,t){let n=e.childNodes,r=[],i=-1;for(;++i<n.length;){let e=a(n[i],t);void 0!==e&&r.push(e)}return r}let o=new DOMParser;var l=n(73129);let c=function(e,t,n){let r=(0,l.C)(n);if(!e||!e.type||!e.children)throw Error("Expected parent node");if("number"==typeof t){if(t<0||t===1/0)throw Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},u=function(e){if(null==e)return p;if("string"==typeof e){var t;return t=e,h(function(e){return e.tagName===t})}if("object"==typeof e){var n=e;let t=[],r=-1;for(;++r<n.length;)t[r]=u(n[r]);return h(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}if("function"==typeof e)return h(e);throw Error("Expected function, string, or array as `test`")};function h(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&"tagName"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function p(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}let d=/\n/g,f=/[\t ]+/g,m=u("br"),g=u(function(e){return"td"===e.tagName||"th"===e.tagName}),y=u("p"),b=u("tr"),k=u(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),_=u(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function x(e,t){let n,r=String(e.value),i=[],a=[],s=0;for(;s<=r.length;){d.lastIndex=s;let e=d.exec(r),n=e&&"index"in e?e.index:r.length;i.push(function(e,t,n){let r,i=[],a=0;for(;a<e.length;){f.lastIndex=a;let n=f.exec(e);r=n?n.index:e.length,a||r||!n||t||i.push(""),a!==r&&i.push(e.slice(a,r)),a=n?r+n[0].length:r}return a===r||n||i.push(""),i.join(" ")}(r.slice(s,n).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==s||t.breakBefore,n!==r.length||t.breakAfter)),s=n+1}let o=-1;for(;++o<i.length;)8203===i[o].charCodeAt(i[o].length-1)||o<i.length-1&&8203===i[o+1].charCodeAt(0)?(a.push(i[o]),n=void 0):i[o]?("number"==typeof n&&a.push(n),a.push(i[o]),n=0):(0===o||o===i.length-1)&&a.push(0);return a}function E(e,t){if("element"===e.type){let n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}var T=n(71876),A=n(20768);let v={},w=[];function S(e){let t=e||v;return function(e,n){(0,A.VG)(e,"element",function(e,r){var i,s,l;let u,h,p=Array.isArray(e.properties.className)?e.properties.className:w,d=p.includes("language-math"),f=p.includes("math-display"),v=p.includes("math-inline"),S=f;if(!d&&!f&&!v)return;let C=r[r.length-1],N=e;if("code"===e.tagName&&d&&C&&"element"===C.type&&"pre"===C.tagName&&(N=C,C=r[r.length-2],S=!0),!C)return;let I=function(e,t){let n,r="children"in e?e.children:[],i=_(e),a=E(e,{whitespace:(t||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),s=[];("text"===e.type||"comment"===e.type)&&s.push(...x(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<r.length;)s.push(...function e(t,n,r){return"element"===t.type?function(t,n,r){let i,a,s=E(t,r),o=t.children||[],l=-1,u=[];if(k(t))return u;for(m(t)||b(t)&&c(n,t,b)?a="\n":y(t)?(i=2,a=2):_(t)&&(i=1,a=1);++l<o.length;)u=u.concat(e(o[l],t,{whitespace:s,breakBefore:l?void 0:i,breakAfter:l<o.length-1?m(o[l+1]):a}));return g(t)&&c(n,t,g)&&u.push(" "),i&&u.unshift(i),a&&u.push(a),u}(t,n,r):"text"===t.type?"normal"===r.whitespace?x(t,r):[String(t.value)]:[]}(r[o],e,{whitespace:a,breakBefore:o?void 0:i,breakAfter:o<r.length-1?m(r[o+1]):i}));let l=[];for(o=-1;++o<s.length;){let e=s[o];"number"==typeof e?void 0!==n&&e>n&&(n=e):e&&(void 0!==n&&n>-1&&l.push("\n".repeat(n)||" "),n=-1,l.push(e))}return l.join("")}(N,{whitespace:"pre"});try{h=T.default.renderToString(I,{...t,displayMode:S,throwOnError:!0})}catch(a){let i=a.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...r,e],cause:a,place:e.position,ruleId:i,source:"rehype-katex"});try{h=T.default.renderToString(I,{...t,displayMode:S,strict:"ignore",throwOnError:!1})}catch{h=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(a)},children:[{type:"text",value:I}]}]}}"string"==typeof h&&(h=(i=h,s={fragment:!0},a(s?.fragment?(l=i,(u=document.createElement("template")).innerHTML=l,u.content):o.parseFromString(i,"text/html"),{})||{type:"root",children:[]}).children);let D=C.children.indexOf(N);return C.children.splice(D,1,...h),A._Z})}}var C=n(23091),N=n(7659),I=n(62835),D=n(4294);let O={tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(e.consume(r),s++,t):s<2?n(r):(e.exit("mathFlowFenceSequence"),(0,I.N)(e,o,"whitespace")(r))}(t)};function o(t){return null===t||(0,D.HP)(t)?l(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||(0,D.HP)(r)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),l(r)):36===r?n(r):(e.consume(r),t)}(t))}function l(n){return(e.exit("mathFlowFence"),r.interrupt)?t(n):e.attempt(M,c,p)(n)}function c(t){return e.attempt({tokenize:d,partial:!0},p,u)(t)}function u(t){return(a?(0,I.N)(e,h,"linePrefix",a+1):h)(t)}function h(t){return null===t?p(t):(0,D.HP)(t)?e.attempt(M,c,p)(t):(e.enter("mathFlowValue"),function t(n){return null===n||(0,D.HP)(n)?(e.exit("mathFlowValue"),h(n)):(e.consume(n),t)}(t))}function p(n){return e.exit("mathFlow"),t(n)}function d(e,t,n){let i=0;return(0,I.N)(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(i++,e.consume(r),t):i<s?n(r):(e.exit("mathFlowFenceSequence"),(0,I.N)(e,a,"whitespace")(r))}(t)},"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(r){return null===r||(0,D.HP)(r)?(e.exit("mathFlowFence"),t(r)):n(r)}}},concrete:!0,name:"mathFlow"},M={tokenize:function(e,t,n){let r=this;return function(n){return null===n?t(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};function L(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[i][1].type="mathTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function R(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}let P={};function F(e){let t,n=e||P,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push({flow:{36:O},text:{36:(null==(t=(n||{}).singleDollarTextMath)&&(t=!0),{tokenize:function(e,n,r){let i,a,s=0;return function(n){return e.enter("mathText"),e.enter("mathTextSequence"),function n(i){return 36===i?(e.consume(i),s++,n):s<2&&!t?r(i):(e.exit("mathTextSequence"),o(i))}(n)};function o(t){return null===t?r(t):36===t?(a=e.enter("mathTextSequence"),i=0,function t(r){return 36===r?(e.consume(r),i++,t):i===s?(e.exit("mathTextSequence"),e.exit("mathText"),n(r)):(a.type="mathTextData",l(r))}(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),o):(0,D.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(e.enter("mathTextData"),l(t))}function l(t){return null===t||32===t||36===t||(0,D.HP)(t)?(e.exit("mathTextData"),o(t)):(e.consume(t),l)}},resolve:L,previous:R,name:"mathText"})}}),a.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.stack[this.stack.length-1];(0,C.ok)("math"===n.type),this.exit(e),n.value=t;let r=n.data.hChildren[0];(0,C.ok)("element"===r.type),(0,C.ok)("code"===r.tagName),r.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];(0,C.ok)("math"===t.type),t.meta=e},mathFlowValue:e,mathText:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,C.ok)("inlineMath"===n.type),this.exit(e),n.value=t,n.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),s.push(function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),n.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,n,r){let i=e.value||"",a=n.createTracker(r),s="$".repeat(Math.max((0,N.D)(i,"$")+1,2)),o=n.enter("mathFlow"),l=a.move(s);if(e.meta){let t=n.enter("mathFlowMeta");l+=a.move(n.safe(e.meta,{after:"\n",before:l,encode:["$"],...a.current()})),t()}return l+=a.move("\n"),i&&(l+=a.move(i+"\n")),l+=a.move(s),o(),l},inlineMath:n}};function n(e,n,r){let i=e.value||"",a=1;for(!t&&a++;RegExp("(^|[^$])"+"\\$".repeat(a)+"([^$]|$)").test(i);)a++;let s="$".repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=" "+i+" ");let o=-1;for(;++o<r.unsafe.length;){let e,t=r.unsafe[o];if(!t.atBreak)continue;let n=r.compilePattern(t);for(;e=n.exec(i);){let t=e.index;10===i.codePointAt(t)&&13===i.codePointAt(t-1)&&t--,i=i.slice(0,t)+" "+i.slice(e.index+1)}}return s+i+s}}(n))}var B=function(e={}){var t,n;return{name:"katex",type:"math",remarkPlugin:[F,{singleDollarTextMath:null!=(t=e.singleDollarTextMath)&&t}],rehypePlugin:[S,{errorColor:null!=(n=e.errorColor)?n:"var(--color-muted-foreground)"}],getStyles:()=>"katex/dist/katex.min.css"}}()},78115:(e,t,n)=>{"use strict";n.d(t,{h:()=>h,s:()=>p});var r=n(4918),i=n(86994);let a=/[#.]/g;var s=n(38609),o=n(68289),l=n(51705);function c(e,t,n){let r=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,o,...c){let h;if(null==n)h={type:"root",children:[]},c.unshift(o);else{let p=(h=function(e,t){let n,r,i=e||"",s={},o=0;for(;o<i.length;){a.lastIndex=o;let e=a.exec(i),t=i.slice(o,e?e.index:i.length);t&&(n?"#"===n?s.id=t:Array.isArray(s.className)?s.className.push(t):s.className=[t]:r=t,o+=t.length),e&&(n=e[0],o++)}return{type:"element",tagName:r||t||"div",properties:s,children:[]}}(n,t)).tagName.toLowerCase(),d=r?r.get(p):void 0;if(h.tagName=d||p,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;for(let e of n)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(o))c.unshift(o);else for(let[t,n]of Object.entries(o))!function(e,t,n,r){let a,o=(0,s.I)(e,n);if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;a=r}else a="boolean"==typeof r?r:"string"==typeof r?o.spaceSeparated?(0,l.q)(r):o.commaSeparated?(0,i.q)(r):o.commaOrSpaceSeparated?(0,l.q)((0,i.q)(r).join(" ")):u(o,o.property,r):Array.isArray(r)?[...r]:"style"===o.property?function(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(u(o,o.property,t));a=e}"className"===o.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[o.property]=a}}(e,h.properties,t,n)}for(let e of c)!function e(t,n){if(null==n);else if("number"==typeof n||"string"==typeof n)t.push({type:"text",value:String(n)});else if(Array.isArray(n))for(let r of n)e(t,r);else if("object"==typeof n&&"type"in n)"root"===n.type?e(t,n.children):t.push(n);else throw Error("Expected node, nodes, or string, got `"+n+"`")}(h.children,e);return"element"===h.type&&"template"===h.tagName&&(h.content={type:"root",children:h.children},h.children=[]),h}}function u(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||(0,o.S)(n)===(0,o.S)(t)))return!0}return n}let h=c(r.qy,"div"),p=c(r.JW,"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"])},78140:(e,t,n)=>{"use strict";n.d(t,{H:()=>T});var r=n(86994),i=n(23091);let a=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,o={};function l(e,t){return((t||o).jsx?s:a).test(e)}var c=n(36887),u=n(4918),h=n(38609);let p={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 d=n(51705),f=n(32682),m=n(7370),g=n(56424);let y={}.hasOwnProperty,b=new Map,k=/[A-Z]/g,_=new Set(["table","tbody","thead","tfoot","tr"]),x=new Set(["td","th"]),E="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function T(e,t){var n,r,i,a;let s;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=o,r=t.jsxDEV,s=function(e,t,i,a){let s=Array.isArray(i.children),o=(0,m.PW)(e);return r(t,i,a,s,{columnNumber:o?o.column-1:void 0,fileName:n,lineNumber:o?o.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,a=t.jsxs,s=function(e,t,n,r){let s=Array.isArray(n.children)?a:i;return r?s(t,n,r):s(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?u.JW:u.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=A(l,e,void 0);return c&&"string"!=typeof c?c:l.create(e,l.Fragment,{children:c||void 0},void 0)}function A(e,t,n){var a,s,o,l,m,b,T,A,D;let O,M,L,R,P,F,B,H,U,j,$;return"element"===t.type?(a=e,s=t,o=n,M=O=a.schema,"svg"===s.tagName.toLowerCase()&&"html"===O.space&&(a.schema=u.JW),a.ancestors.push(s),L=C(a,s.tagName,!1),R=function(e,t){let n,i,a={};for(i in t.properties)if("children"!==i&&y.call(t.properties,i)){let s=function(e,t,n){let i=(0,h.I)(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?(0,r.A)(n):(0,d.A)(n)),"style"===i.property){let t="object"==typeof n?n:function(e,t){try{return f(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new g.o("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=E+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)y.call(e,t)&&(n[function(e){let t=e.replace(k,I);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&i.space?p[i.property]||i.property:i.attribute,n]}}(e,i,t.properties[i]);if(s){let[r,i]=s;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof i&&x.has(t.tagName)?n=i:a[r]=i}}return n&&((a.style||(a.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),a}(a,s),P=S(a,s),_.has(s.tagName)&&(P=P.filter(function(e){return"string"!=typeof e||!(0,c.m)(e)})),v(a,R,L,s),w(R,P),a.ancestors.pop(),a.schema=O,a.create(s,L,R,o)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return(0,i.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}N(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(l=e,m=t,b=n,B=F=l.schema,"svg"===m.name&&"html"===F.space&&(l.schema=u.JW),l.ancestors.push(m),H=null===m.name?l.Fragment:C(l,m.name,!0),U=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];(0,i.ok)("ExpressionStatement"===t.type);let a=t.expression;(0,i.ok)("ObjectExpression"===a.type);let s=a.properties[0];(0,i.ok)("SpreadElement"===s.type),Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else N(e,t.position);else{let a,s=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];(0,i.ok)("ExpressionStatement"===t.type),a=e.evaluater.evaluateExpression(t.expression)}else N(e,t.position);else a=null===r.value||r.value;n[s]=a}return n}(l,m),j=S(l,m),v(l,U,H,m),w(U,j),l.ancestors.pop(),l.schema=F,l.create(m,H,U,b)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);N(e,t.position)}(e,t):"root"===t.type?(T=e,A=t,D=n,w($={},S(T,A)),T.create(A,T.Fragment,$,D)):"text"===t.type?t.value:void 0}function v(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function w(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function S(e,t){let n=[],r=-1,i=e.passKeys?new Map:b;for(;++r<t.children.length;){let a,s=t.children[r];if(e.passKeys){let e="element"===s.type?s.tagName:"mdxJsxFlowElement"===s.type||"mdxJsxTextElement"===s.type?s.name:void 0;if(e){let t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}let o=A(e,s,a);void 0!==o&&n.push(o)}return n}function C(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),a=-1;for(;++a<n.length;){let t=l(n[a])?{type:"Identifier",name:n[a]}:{type:"Literal",value:n[a]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(a&&"Literal"===t.type),optional:!1}:t}(0,i.ok)(e,"always a result"),r=e}else r=l(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return y.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);N(e)}function N(e,t){let n=new g.o("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=E+"#cannot-handle-mdx-estrees-without-createevaluater",n}function I(e){return"-"+e.toLowerCase()}},78437:(e,t,n)=>{"use strict";function r(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}n.d(t,{b:()=>r})},78750:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u});let r="object"==typeof self?self:globalThis,i=e=>{var t;let n,i;return(t=new Map,n=(e,n)=>(t.set(n,e),e),i=a=>{if(t.has(a))return t.get(a);let[s,o]=e[a];switch(s){case 0:case -1:return n(o,a);case 1:{let e=n([],a);for(let t of o)e.push(i(t));return e}case 2:{let e=n({},a);for(let[t,n]of o)e[i(t)]=i(n);return e}case 3:return n(new Date(o),a);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),a)}case 5:{let e=n(new Map,a);for(let[t,n]of o)e.set(i(t),i(n));return e}case 6:{let e=n(new Set,a);for(let t of o)e.add(i(t));return e}case 7:{let{name:e,message:t}=o;return n(new r[e](t),a)}case 8:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new r[s](o),a)})(0)},{toString:a}={},{keys:s}=Object,o=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=a.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},l=([e,t])=>0===e&&("function"===t||"symbol"===t),c=(e,{json:t,lossy:n}={})=>{var r,i,a;let c,u,h=[];return(r=!(t||n),i=!!t,a=new Map,c=(e,t)=>{let n=h.push(e)-1;return a.set(t,n),n},u=e=>{if(a.has(e))return a.get(e);let[t,n]=o(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return c([-1],e)}return c([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),c([n,[...t]],e)}let r=[],i=c([t,r],e);for(let t of e)r.push(u(t));return i}case 2:{if(n)switch(n){case"BigInt":return c([n,e.toString()],e);case"Boolean":case"Number":case"String":return c([n,e.valueOf()],e)}if(i&&"toJSON"in e)return u(e.toJSON());let a=[],h=c([t,a],e);for(let t of s(e))(r||!l(o(e[t])))&&a.push([u(t),u(e[t])]);return h}case 3:return c([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return c([t,{source:n,flags:r}],e)}case 5:{let n=[],i=c([t,n],e);for(let[t,i]of e)(r||!(l(o(t))||l(o(i))))&&n.push([u(t),u(i)]);return i}case 6:{let n=[],i=c([t,n],e);for(let t of e)(r||!l(o(t)))&&n.push(u(t));return i}}let{message:h}=e;return c([t,{name:n,message:h}],e)})(e),h},u="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?i(c(e,t)):structuredClone(e):(e,t)=>i(c(e,t))},79204:(e,t,n)=>{"use strict";n.d(t,{A:()=>eM});var r=n(49884),i=n(23091),a=n(4294),s=n(20768),o=n(73129);let l="phrasing",c=["autolink","link","image","label"];function u(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function h(e){this.config.enter.autolinkProtocol.call(this,e)}function p(e){this.config.exit.autolinkProtocol.call(this,e)}function d(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,i.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function f(e){this.config.exit.autolinkEmail.call(this,e)}function m(e){this.exit(e)}function g(e){!function(e,t,n){let r=(0,o.C)((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),a=-1;for(;++a<i.length;)(0,s.VG)(e,"text",l);function l(e,t){let n,s=-1;for(;++s<t.length;){let e=t[s],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[a][0],s=i[a][1],o=0,l=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let h=r.exec(e.value);for(;h;){let n=h.index,i={index:h.index,input:h.input,stack:[...t,e]},a=s(...h,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(o!==n&&u.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),o=n+h[0].length,c=!0),!r.global)break;h=r.exec(e.value)}return c?(o<e.value.length&&u.push({type:"text",value:e.value.slice(o)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,y],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,b]],{ignore:["link","linkReference"]})}function y(e,t,n,i,a){let s,o="";if(!k(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),(s=n.split(".")).length<2||s[s.length-1]&&(/_/.test(s[s.length-1])||!/[a-zA-Z\d]/.test(s[s.length-1]))||s[s.length-2]&&(/_/.test(s[s.length-2])||!/[a-zA-Z\d]/.test(s[s.length-2])))return!1;let l=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")"),a=(0,r.D)(e,"("),s=(0,r.D)(e,")");for(;-1!==i&&a>s;)e+=n.slice(0,i+1),i=(n=n.slice(i+1)).indexOf(")"),s++;return[e,n]}(n+i);if(!l[0])return!1;let c={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[c,{type:"text",value:l[1]}]:c}function b(e,t,n,r){return!(!k(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function k(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,a.Ny)(n)||(0,a.es)(n))&&(!t||47!==n)}var _=n(76548);function x(){this.buffer()}function E(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function T(){this.buffer()}function A(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.identifier=(0,_.B)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function w(e){this.exit(e)}function S(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.identifier=(0,_.B)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function C(e){this.exit(e)}function N(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]")}function I(e,t,n){return 0===t?e:D(e,t,n)}function D(e,t,n){return(n?"":" ")+e}N.peek=function(){return"["};let O=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function M(e){this.enter({type:"delete",children:[]},e)}function L(e){this.exit(e)}function R(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function P(e){return e.length}function F(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}R.peek=function(){return"~"};n(7659);var B=n(84693);n(48250);n(48006);function H(e,t,n){let r=e.value||"",i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){let e,t=n.unsafe[a],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}H.peek=function(){return"`"};(0,o.C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let U=function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),a=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let s=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));let o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?a:a+" ".repeat(s-a.length))+e});return l(),c};function j(e){let t=e._align;(0,i.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function $(e){this.exit(e),this.data.inTable=void 0}function z(e){this.enter({type:"tableRow",children:[]},e)}function G(e){this.exit(e)}function K(e){this.enter({type:"tableCell",children:[]},e)}function q(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Y));let n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function Y(e,t){return"|"===t?t:e}function W(e){let t=this.stack[this.stack.length-2];(0,i.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function V(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,i.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,a=-1;for(;++a<i.length;){let e=i[a];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function X(e,t,n,r){let i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let l=U(e,t,n,{...r,...o.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+s})),l}var Q=n(50783);let Z={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},J={tokenize:function(e,t,n){let r,i,s;return o;function o(t){return 46===t||95===t?e.check(et,c,l)(t):null===t||(0,a.Ee)(t)||(0,a.Ny)(t)||45!==t&&(0,a.es)(t)?c(t):(s=!0,e.consume(t),o)}function l(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!s?n(e):t(e)}},partial:!0},ee={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?s(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(et,t,s)(o):null===o||(0,a.Ee)(o)||(0,a.Ny)(o)?t(o):(e.consume(o),i)}function s(t){return 41===t&&r++,e.consume(t),i}},partial:!0},et={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),s):93===o?(e.consume(o),i):60===o||null===o||(0,a.Ee)(o)||(0,a.Ny)(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||(0,a.Ee)(e)||(0,a.Ny)(e)?t(e):r(e)}function s(t){return(0,a.CW)(t)?function t(i){return 59===i?(e.consume(i),r):(0,a.CW)(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},en={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return(0,a.lV)(e)?n(e):t(e)}},partial:!0},er={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!el.call(r,r.previous)||ep(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Z,e.attempt(J,e.attempt(ee,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:el},ei={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",s=!1;return function(t){return(72===t||104===t)&&ec.call(r,r.previous)&&!ep(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if((0,a.CW)(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),s)?c:(s=!0,l):n(t)}function c(t){return null===t||(0,a.JQ)(t)||(0,a.Ee)(t)||(0,a.Ny)(t)||(0,a.es)(t)?n(t):e.attempt(J,e.attempt(ee,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:ec},ea={name:"emailAutolink",tokenize:function(e,t,n){let r,i,s=this;return function(t){return!eh(t)||!eu.call(s,s.previous)||ep(s.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return eh(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(en,c,l)(t):45===t||95===t||(0,a.lV)(t)?(i=!0,e.consume(t),o):c(t)}function l(t){return e.consume(t),r=!0,o}function c(o){return i&&r&&(0,a.CW)(s.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:eu},es={},eo=48;for(;eo<123;)es[eo]=ea,58==++eo?eo=65:91===eo&&(eo=97);function el(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||(0,a.Ee)(e)}function ec(e){return!(0,a.CW)(e)}function eu(e){return!(47===e||eh(e))}function eh(e){return 43===e||45===e||46===e||95===e||(0,a.lV)(e)}function ep(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}es[43]=ea,es[45]=ea,es[46]=ea,es[95]=ea,es[72]=[ea,ei],es[104]=[ea,ei],es[87]=[ea,er],es[119]=[ea,er];var ed=n(50055),ef=n(62835);let em={tokenize:function(e,t,n){let r=this;return(0,ef.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function eg(e,t,n){let r,i=this,a=i.events.length,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;a--;){let e=i.events[a][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!r||!r._balanced)return n(a);let o=(0,_.B)(i.sliceSerialize({start:r.end,end:i.now()}));return 94===o.codePointAt(0)&&s.includes(o.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function ey(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function eb(e,t,n){let r,i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(l){if(o>999||93===l&&!r||null===l||91===l||(0,a.Ee)(l))return n(l);if(93===l){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return s.includes((0,_.B)(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return(0,a.Ee)(l)||(r=!0),o++,e.consume(l),92===l?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}}function ek(e,t,n){let r,i,s=this,o=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(l>999||93===t&&!i||null===t||91===t||(0,a.Ee)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,_.B)(s.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return(0,a.Ee)(t)||(i=!0),l++,e.consume(t),92===t?h:u}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),(0,ef.N)(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function e_(e,t,n){return e.check(ed.B,t,e.attempt(em,t,n))}function ex(e){e.exit("gfmFootnoteDefinition")}var eE=n(41161),eT=n(49359);class eA{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function ev(e,t,n){let r,i=this,s=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?k:l;return a===k&&i.parser.lazy[i.now().line]?n(e):a(e)};function l(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,o+=1),c(n)}function c(t){return null===t?n(t):(0,a.HP)(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):(0,a.On)(t)?(0,ef.N)(e,c,"whitespace")(t):(o+=1,r&&(r=!1,s+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,c):(e.enter("data"),u(t))}function u(t){return null===t||124===t||(0,a.Ee)(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?h:u)}function h(t){return 92===t||124===t?(e.consume(t),u):u(t)}function p(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,a.On)(t))?(0,ef.N)(e,d,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t)}function d(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):n(t)}function f(t){return(0,a.On)(t)?(0,ef.N)(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(o+=1,g(t)):null===t||(0,a.HP)(t)?b(t):n(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(n))}(t)):n(t)}function y(t){return(0,a.On)(t)?(0,ef.N)(e,b,"whitespace")(t):b(t)}function b(i){if(124===i)return d(i);if(null===i||(0,a.HP)(i))return r&&s===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function k(t){return e.enter("tableRow"),_(t)}function _(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),_):null===n||(0,a.HP)(n)?(e.exit("tableRow"),t(n)):(0,a.On)(n)?(0,ef.N)(e,_,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||(0,a.Ee)(t)?(e.exit("data"),_(t)):(e.consume(t),92===t?E:x)}function E(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function ew(e,t){let n,r,i,a=-1,s=!0,o=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0,p=new eA;for(;++a<e.length;){let d=e[a],f=d[1];"enter"===d[0]?"tableHead"===f.type?(u=!1,0!==h&&(eC(p,t,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(a,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(s=!0,i=void 0,l=[0,0,0,0],c=[0,a+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(a,0,[["enter",r,t]])),o="tableDelimiterRow"===f.type?2:r?3:1):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(s=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=eS(p,t,l,o,void 0,i),l=[0,0,0,0]),c[2]=a)):"tableCellDivider"===f.type&&(s?s=!1:(0!==l[1]&&(c[0]=c[1],i=eS(p,t,l,o,void 0,i)),c=[(l=c)[1],a,0,0])):"tableHead"===f.type?(u=!0,h=a):"tableRow"===f.type||"tableDelimiterRow"===f.type?(h=a,0!==l[1]?(c[0]=c[1],i=eS(p,t,l,o,a,i)):0!==c[1]&&(i=eS(p,t,c,o,a,i)),o=0):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(c[3]=a)}for(0!==h&&eC(p,t,h,n,r),p.consume(t.events),a=-1;++a<t.events.length;){let e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,a))}return e}function eS(e,t,n,r,i,a){0!==n[0]&&(a.end=Object.assign({},eN(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));let s=eN(t.events,n[1]);if(a={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){let i=eN(t.events,n[2]),a=eN(t.events,n[3]),s={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",s,t]]),2!==r){let r=t.events[n[2]],i=t.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){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(a.end=Object.assign({},eN(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function eC(e,t,n,r,i){let a=[],s=eN(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function eN(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let eI={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return(0,a.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):n(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return(0,a.HP)(r)?t(r):(0,a.On)(r)?e.check({tokenize:eD},t,n)(r):n(r)}}};function eD(e,t,n){return(0,ef.N)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let eO={};function eM(e){var t;let n,r,i,a=e||eO,s=this.data(),o=s.micromarkExtensions||(s.micromarkExtensions=[]),y=s.fromMarkdownExtensions||(s.fromMarkdownExtensions=[]),b=s.toMarkdownExtensions||(s.toMarkdownExtensions=[]);o.push((t=a,(0,Q.y)([{text:es},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ek,continuation:{tokenize:e_},exit:ex}},text:{91:{name:"gfmFootnoteCall",tokenize:eb},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eg,resolveTo:ey}}},(n=(t||{}).singleTilde,r={name:"strikethrough",tokenize:function(e,t,r){let i=this.previous,a=this.events,s=0;return function(o){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(o):(e.enter("strikethroughSequenceTemporary"),function a(o){let l=(0,B.S)(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!n)return r(o);let c=e.exit("strikethroughSequenceTemporary"),u=(0,B.S)(o);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,t(o)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],o=t.parser.constructs.insideSpan.null;o&&(0,eE.m)(s,s.length,0,(0,eT.W)(o,e.slice(r+1,n),t)),(0,eE.m)(s,s.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,eE.m)(e,r-1,n-r+3,s),n=r+s.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==n&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:ev,resolveAll:ew}}},{text:{91:eI}}]))),y.push([{transforms:[g],enter:{literalAutolink:u,literalAutolinkEmail:h,literalAutolinkHttp:h,literalAutolinkWww:h},exit:{literalAutolink:m,literalAutolinkEmail:f,literalAutolinkHttp:p,literalAutolinkWww:d}},{enter:{gfmFootnoteCallString:x,gfmFootnoteCall:E,gfmFootnoteDefinitionLabelString:T,gfmFootnoteDefinition:A},exit:{gfmFootnoteCallString:v,gfmFootnoteCall:w,gfmFootnoteDefinitionLabelString:S,gfmFootnoteDefinition:C}},{canContainEols:["delete"],enter:{strikethrough:M},exit:{strikethrough:L}},{enter:{table:j,tableData:K,tableHeader:K,tableRow:z},exit:{codeText:q,table:$,tableData:G,tableHeader:G,tableRow:G}},{exit:{taskListCheckValueChecked:W,taskListCheckValueUnchecked:W,paragraph:V}}]),b.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:l,notInConstruct:c},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:l,notInConstruct:c},{character:":",before:"[ps]",after:"\\/",inConstruct:l,notInConstruct:c}]},(i=!1,a&&a.firstLineBlank&&(i=!0),{handlers:{footnoteDefinition:function(e,t,n,r){let a=n.createTracker(r),s=a.move("[^"),o=n.enter("footnoteDefinition"),l=n.enter("label");return s+=a.move(n.safe(n.associationId(e),{before:s,after:"]"})),l(),s+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),s+=a.move((i?"\n":" ")+n.indentLines(n.containerFlow(e,a.current()),i?D:I))),o(),s},footnoteReference:N},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:O}],handlers:{delete:R}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=H(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return o(function(e,t,n){let r=e.children,i=-1,a=[],s=t.enter("table");for(;++i<r.length;)a[i]=l(r[i],t,n);return s(),a}(e,n,r),e.align)},tableCell:s,tableRow:function(e,t,n,r){let i=o([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function s(e,t,n,r){let i=n.enter("tableCell"),s=n.enter("phrasing"),o=n.containerPhrasing(e,{...r,before:a,after:a});return s(),i(),o}function o(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||P,a=[],s=[],o=[],l=[],c=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>c&&(c=e[u].length);++a<e[u].length;){var h;let s=null==(h=e[u][a])?"":String(h);if(!1!==n.alignDelimiters){let e=i(s);r[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(s)}s[u]=t,o[u]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++p<c;)a[p]=F(r[p]);else{let e=F(r);for(;++p<c;)a[p]=e}p=-1;let d=[],f=[];for(;++p<c;){let e=a[p],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length),s=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[p]&&(l[p]=i),f[p]=i),d[p]=s}s.splice(1,0,d),o.splice(1,0,f),u=-1;let m=[];for(;++u<s.length;){let e=s[u],t=o[u];p=-1;let r=[];for(;++p<c;){let i=e[p]||"",s="",o="";if(!1!==n.alignDelimiters){let e=l[p]-(t[p]||0),n=a[p];114===n?s=" ".repeat(e):99===n?e%2?(s=" ".repeat(e/2+.5),o=" ".repeat(e/2-.5)):o=s=" ".repeat(e/2):o=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||p)&&r.push(" "),!1!==n.alignDelimiters&&r.push(s),r.push(i),!1!==n.alignDelimiters&&r.push(o),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||p!==c-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){let r=e.children,i=-1,a=[],o=t.enter("tableRow");for(;++i<r.length;)a[i]=s(r[i],e,t,n);return o(),a}}(a),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:X}}]})}},82086:(e,t,n)=>{"use strict";let r,i,a,s;n.d(t,{h:()=>U});let o="emphasisSequence",l="strongSequence";var c,u=n(23091);function h(e){return!!(e&&e>=55296&&e<=56319)}function p(e){return!!(e&&e>=56320&&e<=57343)}function d(e,t,n){if(t._bufferIndex<2)return e;let r=n({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return r&&r>=65536?r:e}var f=class{cachedValue=void 0;constructor(e,t,n){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n}value(){return void 0===this.cachedValue&&(this.cachedValue=function(e,t,n){let r=e>=65536?2:1;if(t._bufferIndex<1+r)return null;let i=t._bufferIndex-r-2,a=n({start:{...t,_bufferIndex:i>=0?i:0},end:{...t,_bufferIndex:t._bufferIndex-r}}),s=a.charCodeAt(a.length-1);if(Number.isNaN(s))return null;if(a.length<2||s<56320||57343<s)return s;let o=a.codePointAt(0);return o&&o>=65536?o:s}(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function m(e,t,n){let r=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}let g=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],y=[12288,12288,65281,65376,65504,65510],b=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],k=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],_=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],x=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=2*i;if(t<e[a])r=i-1;else{if(!(t>e[a+1]))return!0;n=i+1}}return!1},[E,T]=function(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(19968>=i&&19968<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}(_),A=w(/\p{P}|\p{S}/u),v=w(/\s/);function w(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCodePoint(t))}}function S(e){return(e&r.cjkPunctuation)==2}function C(e){return!!(e&r.cjk)}function N(e){return!!(e&r.spaceOrPunctuation)}var I=n(4294);function D(e){if(null===e||(0,I.Ee)(e)||v(e))return 1;let t=0;if(e>=4352){if(null!==e&&e>=65024&&e<=65038)return r.nonEmojiGeneralUseVS;switch(function(e){if(!e||e<4352)return!1;switch(function(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`);return function(e){return!(e<161)&&!(e>1114109)&&x(g,e)?"ambiguous":!(e<12288)&&!(e>65510)&&x(y,e)?"fullwidth":!(e<8361)&&!(e>65518)&&x(b,e)?"halfwidth":!(e<32)&&!(e>10630)&&x(k,e)?"narrow":e>=E&&e<=T||!(e<4352)&&!(e>262141)&&x(_,e)?"wide":"neutral"}(e)}(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e));case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999&&null;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}(e)){case null:return r.ivs;case!0:t|=r.cjk}}return A(e)&&(t|=2),t}function O(e,t,n){if(e!==r.nonEmojiGeneralUseVS)return e;let i=t(),a=D(i);return!i||1&a?e:65025===n&&i&&!(i<8216)&&(8216===i||8217===i||8220===i||8221===i)?r.cjkPunctuation:a&~r.ivs}(c=r||(r={})).spaceOrPunctuation=3,c.cjk=4096,c.cjkPunctuation=4098,c.ivs=8192,c.cjkOrIvs=12288,c.nonEmojiGeneralUseVS=16384,c.variationSelector=24576,c.ivsToCjkRightShift=1;var M=n(41161),L=n(49359);let R={name:"attention",resolveAll:function(e,t){let n,r,i,a,s,c,h,p,d=-1;for(;++d<e.length;)if("enter"===e[d][0]&&"attentionSequence"===e[d][1].type&&e[d][1]._close){for(n=d;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[d][1]).charCodeAt(0)){if((e[n][1]._close||e[d][1]._open)&&(e[d][1].end.offset-e[d][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[d][1].end.offset-e[d][1].start.offset)%3))continue;c=e[n][1].end.offset-e[n][1].start.offset>1&&e[d][1].end.offset-e[d][1].start.offset>1?2:1;let f={...e[n][1].end},m={...e[d][1].start};P(f,-c),P(m,c),a={type:c>1?l:o,start:f,end:{...e[n][1].end}},s={type:c>1?l:o,start:{...e[d][1].start},end:m},i={type:c>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[d][1].start}},r={type:c>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[n][1].end={...a.start},e[d][1].start={...s.end},h=[],e[n][1].end.offset-e[n][1].start.offset&&(h=(0,M.V)(h,[["enter",e[n][1],t],["exit",e[n][1],t]])),h=(0,M.V)(h,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),(0,u.ok)(t.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),h=(0,M.V)(h,(0,L.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,d),t)),h=(0,M.V)(h,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[d][1].end.offset-e[d][1].start.offset?(p=2,h=(0,M.V)(h,[["enter",e[d][1],t],["exit",e[d][1],t]])):p=0,(0,M.m)(e,n-1,d-n+3,h),d=n+h.length-p-2;break}}for(d=-1;++d<e.length;)"attentionSequence"===e[d][1].type&&(e[d][1].type="data");return e},tokenize:function(e,t){let n,i=this.parser.constructs.attentionMarkers.null,{now:a,sliceSerialize:s,previous:o}=this,l=p(o)?d(o,a(),s):o,c=D(l),g=new f(l,a(),s),y=O(c,g.value.bind(g),l);return function(o){return(0,u.ok)(42===o||95===o,"expected asterisk or underscore"),n=o,e.enter("attentionSequence"),function o(c){if(c===n)return e.consume(c),o;let p=e.exit("attentionSequence"),d=D(h(c)?m(c,a(),s):c);(0,u.ok)(i,"expected `attentionMarkers` to be populated");let f=S(y),g=f||!!(1&y),b=S(d),k=b||!!(1&d),_=!!(y&r.cjkOrIvs),x=!k||b&&(g||_)||i.includes(c),E=!g||f&&(k||C(d))||i.includes(l);return p._open=!!(42===n?x:x&&(N(y)||!E)),p._close=!!(42===n?E:E&&(N(d)||!x)),t(c)}(o)}}};function P(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var F=n(48250),B=new Set(["。",".",",","、","?","!",":",";","(",")","【","】","「","」","『","』","〈","〉","《","》"]),H=/^(https?:\/\/|mailto:|www\.)/i,U=(s=[...i=[function(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push({text:{42:R,95:R},insideSpan:{null:[R]}})}],...a=[()=>e=>{(0,F.YR)(e,"link",(e,t,n)=>{if(!n||"number"!=typeof t||!(e=>{if(1!==e.children.length)return!1;let t=e.children[0];return"text"===t.type&&t.value===e.url})(e)||!H.test(e.url))return;let r=(e=>{let t=0;for(let n of e){if(B.has(n))return t;t+=n.length}return null})(e.url);if(null===r||0===r)return;let i=e.url.slice(0,r),a=e.url.slice(r),s={...e,url:i,children:[{type:"text",value:i}]};return n.children.splice(t,1,s,{type:"text",value:a}),t+1})},function(e){let t,n,i=this.data();(i.micromarkExtensions||(i.micromarkExtensions=[])).push((t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,i){let{now:a,sliceSerialize:s,previous:o}=this,l=p(o)?d(o,a(),s):o,c=D(l),g=new f(l,a(),s),y=O(c,g.value.bind(g),l),b=this.events,k=0;return function(o){return((0,u.ok)(126===o,"expected `~`"),126===l&&"characterEscape"!==b[b.length-1][1].type)?i(o):(e.enter("strikethroughSequenceTemporary"),function o(c){let u=D(l);if(126===c)return k>1?i(c):(e.consume(c),k++,o);if(k<2&&!t)return i(c);let p=e.exit("strikethroughSequenceTemporary"),d=D(h(c)?m(c,a(),s):c),f=S(y)||!!(1&y),g=S(d)||!!(1&d),b=C(y)||u===r.ivs;return p._open=!g||2===d&&(f||b),p._close=!f||2===u&&(g||C(d)),n(c)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],o=t.parser.constructs.insideSpan.null;o&&(0,M.m)(s,s.length,0,(0,L.W)(o,e.slice(r+1,n),t)),(0,M.m)(s,s.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,M.m)(e,r-1,n-r+3,s),n=r+s.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}))}]],{name:"cjk",type:"cjk",remarkPluginsBefore:i,remarkPluginsAfter:a,remarkPlugins:s})},82228:(e,t,n)=>{"use strict";n.d(t,{b6:()=>b,cL:()=>O,pw:()=>eC});var r=n(27071),i=n(89561),a=n(46732),s=n(36829);function o(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return!!i&&(r(n.update(i)),!0)}}let l=o(function(e,t,n=t.selection.ranges){let r=[],i=-1;r:for(let{from:e,to:a}of n){let n=r.length,s=1e9,o;for(let n=e;n<=a;){let l=t.doc.lineAt(n);if(void 0==o&&!(o=h(t,l.from).line))continue r;if(l.from>i&&(e==a||a>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,n=l.text.slice(e,e+o.length)==o?e:-1;e<l.text.length&&e<s&&(s=e),r.push({line:l,comment:n,token:o,indent:e,empty:t,single:!1})}n=l.to+1}if(s<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=s);r.length==n+1&&(r[n].single=!0)}if(2!=e&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:a,single:s}of r)(s||!a)&&e.push({from:t.from+i,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,a=r+i.length;" "==t.text[a-t.from]&&a++,e.push({from:r,to:a})}return{changes:e}}return null},0),c=o(p,0),u=o((e,t)=>p(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t)),0);function h(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}function p(e,t,n=t.selection.ranges){let r=n.map(e=>h(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>(function(e,{open:t,close:n},r,i){let a,s,o=e.sliceDoc(r-50,r),l=e.sliceDoc(i,i+50),c=/\s*$/.exec(o)[0].length,u=/^\s*/.exec(l)[0].length,h=o.length-c;if(o.slice(h-t.length,h)==t&&l.slice(u,u+n.length)==n)return{open:{pos:r-c,margin:c&&1},close:{pos:i+u,margin:u&&1}};i-r<=100?a=s=e.sliceDoc(r,i):(a=e.sliceDoc(r,r+50),s=e.sliceDoc(i-50,i));let p=/^\s*/.exec(a)[0].length,d=/\s*$/.exec(s)[0].length,f=s.length-d-n.length;return a.slice(p,p+t.length)==t&&s.slice(f,f+n.length)==n?{open:{pos:r+p+t.length,margin:+!!/\s/.test(a.charAt(p+t.length))},close:{pos:i-d-n.length,margin:+!!/\s/.test(s.charAt(f-1))}}:null})(t,r[n],e.from,e.to));if(2!=e&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]))};if(1!=e&&i.some(e=>e)){let e=[];for(let t=0,n;t<i.length;t++)if(n=i[t]){let i=r[t],{open:a,close:s}=n;e.push({from:a.pos-i.open.length,to:a.pos+a.margin},{from:s.pos-s.margin,to:s.pos+i.close.length})}return{changes:e}}return null}let d=r.YH.define(),f=r.YH.define(),m=r.sj.define(),g=r.sj.define({combine:e=>(0,r.QR)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),y=r.sU.define({create:()=>D.empty,update(e,t){let n=t.state.facet(g),i=t.annotation(d);if(i){let r=A.fromTransaction(t,i.selection),a=i.side,s=0==a?e.undone:e.done;return s=r?v(s,s.length,n.minDepth,r):C(s,t.startState.selection),new D(0==a?i.rest:s,0==a?s:i.rest)}let a=t.annotation(f);if(("full"==a||"before"==a)&&(e=e.isolate()),!1===t.annotation(r.ZX.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let s=A.fromTransaction(t),o=t.annotation(r.ZX.time),l=t.annotation(r.ZX.userEvent);return s?e=e.addChanges(s,o,l,n,t):t.selection&&(e=e.addSelection(t.startState.selection,o,l,n.newGroupDelay)),("full"==a||"after"==a)&&(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new D(e.done.map(A.fromJSON),e.undone.map(A.fromJSON))});function b(e={}){return[y,g.of(e),i.Lz.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?_:"historyRedo"==e.inputType?x:null;return!!n&&(e.preventDefault(),n(t))}})]}function k(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(y,!1);if(!i)return!1;let a=i.pop(e,n,t);return!!a&&(r(a),!0)}}let _=k(0,!1),x=k(1,!1),E=k(0,!0),T=k(1,!0);class A{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new A(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null==(e=this.changes)?void 0:e.toJSON(),mapped:null==(t=this.mapped)?void 0:t.toJSON(),startSelection:null==(n=this.startSelection)?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new A(e.changes&&r.VR.fromJSON(e.changes),[],e.mapped&&r.Gu.fromJSON(e.mapped),e.startSelection&&r.OF.fromJSON(e.startSelection),e.selectionsAfter.map(r.OF.fromJSON))}static fromTransaction(e,t){let n=S;for(let t of e.startState.facet(m)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new A(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,S)}static selection(e){return new A(void 0,S,void 0,void 0,e)}}function v(e,t,n,r){let i=e.slice(t+1>n+20?t-n-1:0,t);return i.push(r),i}function w(e,t){return e.length?t.length?e.concat(t):e:t}let S=[];function C(e,t){if(!e.length)return[A.selection([t])];{let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),v(e,e.length-1,1e9,n.setSelAfter(r)))}}function N(e,t){if(!e.length)return e;let n=e.length,i=S;for(;n;){let a=function(e,t,n){let i=w(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):S,n);if(!e.changes)return A.selection(i);let a=e.changes.map(t),s=t.mapDesc(e.changes,!0),o=e.mapped?e.mapped.composeDesc(s):s;return new A(a,r.Pe.mapEffects(e.effects,t),o,e.startSelection.map(s),i)}(e[n-1],t,i);if(a.changes&&!a.changes.empty||a.effects.length){let t=e.slice(0,n);return t[n-1]=a,t}t=a.mapped,n--,i=a.selectionsAfter}return i.length?[A.selection(i)]:S}let I=/^(input\.type|delete)($|\.)/;class D{constructor(e,t,n=0,r){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new D(this.done,this.undone):this}addChanges(e,t,n,i,a){var s,o;let l,c,u=this.done,h=u[u.length-1];return new D(u=h&&h.changes&&!h.changes.empty&&e.changes&&(!n||I.test(n))&&(!h.selectionsAfter.length&&t-this.prevTime<i.newGroupDelay&&i.joinToEvent(a,(s=h.changes,o=e.changes,l=[],c=!1,s.iterChangedRanges((e,t)=>l.push(e,t)),o.iterChangedRanges((e,t,n,r)=>{for(let e=0;e<l.length;){let t=l[e++],i=l[e++];r>=t&&n<=i&&(c=!0)}}),c))||"input.type.compose"==n)?v(u,u.length-1,i.minDepth,new A(e.changes.compose(h.changes),w(r.Pe.mapEffects(e.effects,h.changes),h.effects),h.mapped,h.startSelection,S)):v(u,u.length,i.minDepth,e),S,t,n)}addSelection(e,t,n,r){var i;let a=this.done.length?this.done[this.done.length-1].selectionsAfter:S;return a.length>0&&t-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(i=a[a.length-1],i.ranges.length==e.ranges.length&&0===i.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length)?this:new D(C(this.done,e),this.undone,t,n)}addMapping(e){return new D(N(this.done,e),N(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],a=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length){let n,s;return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:d.of({side:e,rest:(n=r[r.length-1],(s=r.slice())[r.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),s),selection:a}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0})}{if(!i.changes)return null;let n=1==r.length?S:r.slice(0,r.length-1);return i.mapped&&(n=N(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:d.of({side:e,rest:n,selection:a}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}}}D.empty=new D(S,S);let O=[{key:"Mod-z",run:_,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:x,preventDefault:!0},{linux:"Ctrl-Shift-z",run:x,preventDefault:!0},{key:"Mod-u",run:E,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:T,preventDefault:!0}];function M(e,t){return r.OF.create(e.ranges.map(t),e.mainIndex)}function L(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function R({state:e,dispatch:t},n){let r=M(e.selection,n);return!r.eq(e.selection,!0)&&(t(L(e,r)),!0)}function P(e,t){return r.OF.cursor(t?e.to:e.from)}function F(e,t){return R(e,n=>n.empty?e.moveByChar(n,t):P(n,t))}function B(e){return e.textDirectionAt(e.state.selection.main.head)==i.OP.LTR}let H=e=>F(e,!B(e)),U=e=>F(e,B(e));function j(e,t){return R(e,n=>n.empty?e.moveByGroup(n,t):P(n,t))}function $(e,t,n){let i,o,l=(0,a.mv)(e).resolveInner(t.head),c=n?s.uY.closedBy:s.uY.openedBy;for(let r=t.head;;){let t=n?l.childAfter(r):l.childBefore(r);if(!t)break;!function(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}(e,t,c)?r=n?t.to:t.from:l=t}return o=l.type.prop(c)&&(i=n?(0,a.jU)(e,l.from,1):(0,a.jU)(e,l.to,-1))&&i.matched?n?i.end.to:i.end.from:n?l.to:l.from,r.OF.cursor(o,n?-1:1)}function z(e,t){return R(e,n=>{if(!n.empty)return P(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}"u">typeof Intl&&Intl.Segmenter;let G=e=>z(e,!1),K=e=>z(e,!0);function q(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,a;if(t){for(let t of e.state.facet(i.Lz.scrollMargins)){let i=t(e);(null==i?void 0:i.top)&&(n=Math.max(null==i?void 0:i.top,n)),(null==i?void 0:i.bottom)&&(r=Math.max(null==i?void 0:i.bottom,r))}a=e.scrollDOM.clientHeight-n-r}else a=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,a-5)}}function Y(e,t){let n,r=q(e),{state:a}=e,s=M(a.selection,n=>n.empty?e.moveVertically(n,t,r.height):P(n,t));if(s.eq(a.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(a.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),l=o.top+r.marginTop,c=o.bottom-r.marginBottom;t&&t.top>l&&t.bottom<c&&(n=i.Lz.scrollIntoView(s.main.head,{y:"start",yMargin:t.top-l}))}return e.dispatch(L(a,s),{effects:n}),!0}let W=e=>Y(e,!1),V=e=>Y(e,!0);function X(e,t,n){let i=e.lineBlockAt(t.head),a=e.moveToLineBoundary(t,n);if(a.head==t.head&&a.head!=(n?i.to:i.from)&&(a=e.moveToLineBoundary(t,n,!1)),!n&&a.head==i.from&&i.length){let n=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;n&&t.head!=i.from+n&&(a=r.OF.cursor(i.from+n))}return a}function Q(e,t){let n=M(e.state.selection,e=>{let n=t(e);return r.OF.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0,n.assoc)});return!n.eq(e.state.selection)&&(e.dispatch(L(e.state,n)),!0)}function Z(e,t){return Q(e,n=>e.moveByChar(n,t))}let J=e=>Z(e,!B(e)),ee=e=>Z(e,B(e));function et(e,t){return Q(e,n=>e.moveByGroup(n,t))}function en(e,t){return Q(e,n=>e.moveVertically(n,t))}let er=e=>en(e,!1),ei=e=>en(e,!0);function ea(e,t){return Q(e,n=>e.moveVertically(n,t,q(e).height))}let es=e=>ea(e,!1),eo=e=>ea(e,!0),el=({state:e,dispatch:t})=>(t(L(e,{anchor:0})),!0),ec=({state:e,dispatch:t})=>(t(L(e,{anchor:e.doc.length})),!0),eu=({state:e,dispatch:t})=>(t(L(e,{anchor:e.selection.main.anchor,head:0})),!0),eh=({state:e,dispatch:t})=>(t(L(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function ep(e,t){let{state:n}=e,i=n.selection,a=n.selection.ranges.slice();for(let r of n.selection.ranges){let i=n.doc.lineAt(r.head);if(t?i.to<e.state.doc.length:i.from>0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.head<i.from||r.head>i.to){a.some(e=>e.head==r.head)||a.push(r);break}if(r.head==n.head)break;n=r}}return a.length!=i.ranges.length&&(e.dispatch(L(n,r.OF.create(a,a.length-1))),!0)}function ed(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:a}=e,s=a.changeByRange(i=>{let{from:a,to:s}=i;if(a==s){let r=t(i);r<a?(n="delete.backward",r=ef(e,r,!1)):r>a&&(n="delete.forward",r=ef(e,r,!0)),a=Math.min(a,r),s=Math.max(s,r)}else a=ef(e,a,!1),s=ef(e,s,!0);return a==s?{range:i}:{changes:{from:a,to:s},range:r.OF.cursor(a,a<i.head?-1:1)}});return!s.changes.empty&&(e.dispatch(a.update(s,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?i.Lz.announce.of(a.phrase("Selection deleted")):void 0})),!0)}function ef(e,t,n){if(e instanceof i.Lz)for(let r of e.state.facet(i.Lz.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}let em=(e,t,n)=>ed(e,i=>{let s=i.from,{state:o}=e,l=o.doc.lineAt(s),c,u;if(n&&!t&&s>l.from&&s<l.from+200&&!/[^ \t]/.test(c=l.text.slice(0,s-l.from))){if(" "==c[c.length-1])return s-1;let e=(0,r.y$)(c,o.tabSize)%(0,a.tp)(o)||(0,a.tp)(o);for(let t=0;t<e&&" "==c[c.length-1-t];t++)s--;u=s}else(u=(0,r.zK)(l.text,s-l.from,t,t)+l.from)==s&&l.number!=(t?o.doc.lines:1)?u+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(l.text.slice(u-l.from,s-l.from))&&(u=(0,r.zK)(l.text,u-l.from,!1,!1)+l.from);return u}),eg=e=>em(e,!1,!0),ey=e=>em(e,!0,!1),eb=(e,t)=>ed(e,n=>{let i=n.head,{state:a}=e,s=a.doc.lineAt(i),o=a.charCategorizer(i);for(let e=null;;){if(i==(t?s.to:s.from)){i==n.head&&s.number!=(t?a.doc.lines:1)&&(i+=t?1:-1);break}let l=(0,r.zK)(s.text,i-s.from,t)+s.from,c=s.text.slice(Math.min(i,l)-s.from,Math.max(i,l)-s.from),u=o(c);if(null!=e&&u!=e)break;(" "!=c||i!=n.head)&&(e=u),i=l}return i}),ek=e=>eb(e,!1);function e_(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(r.empty||r.to!=a.from||(a=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=a.to,e.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function ex(e,t,n){if(e.readOnly)return!1;let i=[],a=[];for(let t of e_(e)){if(n?t.to==e.doc.length:0==t.from)continue;let s=e.doc.lineAt(n?t.to+1:t.from-1),o=s.length+1;if(n)for(let n of(i.push({from:t.to,to:s.to},{from:t.from,insert:s.text+e.lineBreak}),t.ranges))a.push(r.OF.range(Math.min(e.doc.length,n.anchor+o),Math.min(e.doc.length,n.head+o)));else for(let n of(i.push({from:s.from,to:t.from},{from:t.to,insert:e.lineBreak+s.text}),t.ranges))a.push(r.OF.range(n.anchor-o,n.head-o))}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:r.OF.create(a,e.selection.mainIndex),userEvent:"move.line"})),!0)}function eE(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of e_(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}let eT=ev(!1),eA=ev(!0);function ev(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=t.changeByRange(n=>{let{from:i,to:o}=n,l=t.doc.lineAt(i),c=!e&&i==o&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=(0,a.mv)(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),o;return r&&i&&r.to<=t&&i.from>=t&&(o=r.type.prop(s.uY.closedBy))&&o.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}(t,i);e&&(i=o=(o<=l.to?l:t.doc.lineAt(o)).to);let u=new a.KB(t,{simulateBreak:i,simulateDoubleBreak:!!c}),h=(0,a._v)(u,i);for(null==h&&(h=(0,r.y$)(/^\s*/.exec(t.doc.lineAt(i).text)[0],t.tabSize));o<l.to&&/\s/.test(l.text[o-l.from]);)o++;c?{from:i,to:o}=c:i>l.from&&i<l.from+100&&!/\S/.test(l.text.slice(0,i))&&(i=l.from);let p=["",(0,a.EI)(t,h)];return c&&p.push((0,a.EI)(t,u.lineIndent(l.from,-1))),{changes:{from:i,to:o,insert:r.EY.of(p)},range:r.OF.cursor(i+1+p[1].length)}});return n(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function ew(e,t){let n=-1;return e.changeByRange(i=>{let a=[];for(let r=i.from;r<=i.to;){let s=e.doc.lineAt(r);s.number>n&&(i.empty||i.to>s.from)&&(t(s,a,i),n=s.number),r=s.to+1}let s=e.changes(a);return{changes:a,range:r.OF.range(s.mapPos(i.anchor,1),s.mapPos(i.head,1))}})}let eS=[{key:"Ctrl-b",run:H,shift:J,preventDefault:!0},{key:"Ctrl-f",run:U,shift:ee},{key:"Ctrl-p",run:G,shift:er},{key:"Ctrl-n",run:K,shift:ei},{key:"Ctrl-a",run:e=>R(e,t=>r.OF.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>Q(e,t=>r.OF.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>R(e,t=>r.OF.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>Q(e,t=>r.OF.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:ey},{key:"Ctrl-h",run:eg},{key:"Ctrl-k",run:e=>ed(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)})},{key:"Ctrl-Alt-h",run:ek},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:r.EY.of(["",""])},range:r.OF.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,i=e.doc.lineAt(n),a=n==i.from?n-1:(0,r.zK)(i.text,n-i.from,!1)+i.from,s=n==i.to?n+1:(0,r.zK)(i.text,n-i.from,!0)+i.from;return{changes:{from:a,to:s,insert:e.doc.slice(n,s).append(e.doc.slice(a,n))},range:r.OF.cursor(s)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:V}],eC=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>R(e,t=>$(e.state,t,!B(e))),shift:e=>Q(e,t=>$(e.state,t,!B(e)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>R(e,t=>$(e.state,t,B(e))),shift:e=>Q(e,t=>$(e.state,t,B(e)))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>ex(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>eE(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>ex(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>eE(e,t,!0)},{key:"Mod-Alt-ArrowUp",run:e=>ep(e,!1)},{key:"Mod-Alt-ArrowDown",run:e=>ep(e,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,i=null;return n.ranges.length>1?i=r.OF.create([n.main]):n.main.empty||(i=r.OF.create([r.OF.cursor(n.main.head)])),!!i&&(t(L(e,i)),!0)}},{key:"Mod-Enter",run:eA},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=e_(e).map(({from:t,to:n})=>r.OF.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:r.OF.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=M(e.selection,t=>{let n=(0,a.mv)(e),i=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=i.node.from&&e.node.to<=i.node.to&&(i=e)}for(let e=i;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return r.OF.range(n.to,n.from)}return t});return!n.eq(e.selection)&&(t(L(e,n)),!0)},preventDefault:!0},{key:"Mod-[",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(ew(e,(t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let s=(0,r.y$)(i,e.tabSize),o=0,l=(0,a.EI)(e,Math.max(0,s-(0,a.tp)(e)));for(;o<i.length&&o<l.length&&i.charCodeAt(o)==l.charCodeAt(o);)o++;n.push({from:t.from+o,to:t.from+i.length,insert:l.slice(o)})}),{userEvent:"delete.dedent"})),!0)},{key:"Mod-]",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(ew(e,(t,n)=>{n.push({from:t.from,insert:e.facet(a.Xt)})}),{userEvent:"input.indent"})),!0)},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new a.KB(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),i=ew(e,(t,i,s)=>{let o=(0,a._v)(r,t.from);if(null==o)return;/\S/.test(t.text)||(o=0);let l=/^\s*/.exec(t.text)[0],c=(0,a.EI)(e,o);(l!=c||s.from<t.from+l.length)&&(n[t.from]=o,i.push({from:t.from,to:t.from+l.length,insert:c}))});return i.changes.empty||t(e.update(i,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(e_(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=M(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>{let n,i;return n=!1,i=M(e.selection,t=>{let i=(0,a.jU)(e,t.head,-1)||(0,a.jU)(e,t.head,1)||t.head>0&&(0,a.jU)(e,t.head-1,1)||t.head<e.doc.length&&(0,a.jU)(e,t.head+1,-1);if(!i||!i.end)return t;n=!0;let s=i.start.from==t.head?i.end.to:i.end.from;return r.OF.cursor(s)}),!!n&&(t(L(e,i)),!0)}},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=h(e.state,n.from);return r.line?l(e):!!r.block&&u(e)}},{key:"Alt-A",run:c},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat([{key:"ArrowLeft",run:H,shift:J,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>j(e,!B(e)),shift:e=>et(e,!B(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>R(e,t=>X(e,t,!B(e))),shift:e=>Q(e,t=>X(e,t,!B(e))),preventDefault:!0},{key:"ArrowRight",run:U,shift:ee,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>j(e,B(e)),shift:e=>et(e,B(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>R(e,t=>X(e,t,B(e))),shift:e=>Q(e,t=>X(e,t,B(e))),preventDefault:!0},{key:"ArrowUp",run:G,shift:er,preventDefault:!0},{mac:"Cmd-ArrowUp",run:el,shift:eu},{mac:"Ctrl-ArrowUp",run:W,shift:es},{key:"ArrowDown",run:K,shift:ei,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ec,shift:eh},{mac:"Ctrl-ArrowDown",run:V,shift:eo},{key:"PageUp",run:W,shift:es},{key:"PageDown",run:V,shift:eo},{key:"Home",run:e=>R(e,t=>X(e,t,!1)),shift:e=>Q(e,t=>X(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:el,shift:eu},{key:"End",run:e=>R(e,t=>X(e,t,!0)),shift:e=>Q(e,t=>X(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:ec,shift:eh},{key:"Enter",run:eT,shift:eT},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:eg,shift:eg,preventDefault:!0},{key:"Delete",run:ey,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:ek,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>eb(e,!0),preventDefault:!0},{mac:"Mod-Backspace",run:e=>ed(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),preventDefault:!0},{mac:"Mod-Delete",run:e=>ed(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),preventDefault:!0}].concat(eS.map(e=>({mac:e.key,run:e.run,shift:e.shift}))))},82948:(e,t,n)=>{"use strict";n.d(t,{A:()=>eT});var r={};n.r(r),n.d(r,{attentionMarkers:()=>ed,contentInitial:()=>eo,disable:()=>ef,document:()=>es,flow:()=>ec,flowInitial:()=>el,insideSpan:()=>ep,string:()=>eu,text:()=>eh});var i=n(48006),a=n(41161);class s{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&o(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),o(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),o(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);o(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);o(this.left,t.reverse())}}}function o(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function l(e){let t,n,r,i,o,l,c,u={},h=-1,p=new s(e);for(;++h<p.length;){for(;h in u;)h=u[h];if(t=p.get(h),h&&"chunkFlow"===t[1].type&&"listItemPrefix"===p.get(h-1)[1].type&&((r=0)<(l=t[1]._tokenizer.events).length&&"lineEndingBlank"===l[r][1].type&&(r+=2),r<l.length&&"content"===l[r][1].type))for(;++r<l.length&&"content"!==l[r][1].type;)"chunkText"===l[r][1].type&&(l[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(u,function(e,t){let n,r,i=e.get(t)[1],a=e.get(t)[2],s=t-1,o=[],l=i._tokenizer;!l&&(l=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let c=l.events,u=[],h={},p=-1,d=i,f=0,m=0,g=[0];for(;d;){for(;e.get(++s)[1]!==d;);o.push(s),!d._tokenizer&&(n=a.sliceStream(d),d.next||n.push(null),r&&l.defineSkip(d.start),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=d,d=d.next}for(d=i;++p<c.length;)"exit"===c[p][0]&&"enter"===c[p-1][0]&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(m=p+1,g.push(m),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(l.events=[],d?(d._tokenizer=void 0,d.previous=void 0):g.pop(),p=g.length;p--;){let t=c.slice(g[p],g[p+1]),n=o.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),p=-1;++p<u.length;)h[f+u[p][0]]=f+u[p][1],f+=u[p][1]-u[p][0]-1;return h}(p,h)),h=u[h],c=!0);else if(t[1]._container){for(r=h,n=void 0;r--;)if("lineEnding"===(i=p.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(p.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...p.get(n)[1].start},(o=p.slice(n,h)).unshift(t),p.splice(n,h-n+1,o))}}return(0,a.m)(e,0,1/0,p.slice(0)),!c}var c=n(50783),u=n(62835),h=n(4294);let p={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,u.N)(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return(0,h.HP)(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},d={tokenize:function(e){let t,n,r,i=this,s=[],o=0;return l;function l(t){if(o<s.length){let n=s[o];return i.containerState=n[1],e.attempt(n[0].continuation,c,u)(t)}return u(t)}function c(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&_();let r=i.events.length,s=r;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){n=i.events[s][1].end;break}k(o);let l=r;for(;l<i.events.length;)i.events[l][1].end={...n},l++;return(0,a.m)(i.events,s+1,0,i.events.slice(r)),i.events.length=l,u(e)}return l(e)}function u(n){if(o===s.length){if(!t)return m(n);if(t.currentConstruct&&t.currentConstruct.concrete)return y(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(f,p,d)(n)}function p(e){return t&&_(),k(o),m(e)}function d(e){return i.parser.lazy[i.now().line]=o!==s.length,r=i.now().offset,y(e)}function m(t){return i.containerState={},e.attempt(f,g,y)(t)}function g(e){return o++,s.push([i.currentConstruct,i.containerState]),m(e)}function y(r){if(null===r){t&&_(),k(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){b(e.exit("chunkFlow"),!0),k(0),e.consume(n);return}return(0,h.HP)(n)?(e.consume(n),b(e.exit("chunkFlow")),o=0,i.interrupt=void 0,l):(e.consume(n),t)}(r)}function b(e,s){let l=i.sliceStream(e);if(s&&l.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(l),i.parser.lazy[e.start.line]){let e,n,s=t.events.length;for(;s--;)if(t.events[s][1].start.offset<r&&(!t.events[s][1].end||t.events[s][1].end.offset>r))return;let l=i.events.length,c=l;for(;c--;)if("exit"===i.events[c][0]&&"chunkFlow"===i.events[c][1].type){if(e){n=i.events[c][1].end;break}e=!0}for(k(o),s=l;s<i.events.length;)i.events[s][1].end={...n},s++;(0,a.m)(i.events,c+1,0,i.events.slice(l)),i.events.length=s}}function k(t){let n=s.length;for(;n-- >t;){let t=s[n];i.containerState=t[1],t[0].exit.call(i,e)}s.length=t}function _(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},f={tokenize:function(e,t,n){return(0,u.N)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var m=n(50055);let g={resolve:function(e){return l(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,h.HP)(t)?e.check(y,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},y={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,u.N)(e,i,"linePrefix")};function i(i){if(null===i||(0,h.HP)(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},b={tokenize:function(e){let t=this,n=e.attempt(m.B,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,(0,u.N)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(g,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},k={resolveAll:T()},_=E("string"),x=E("text");function E(e){return{resolveAll:T("text"===e?A:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,s);return a;function a(e){return l(e)?i(e):s(e)}function s(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),o)}function o(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),o)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function T(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function A(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],a=t.sliceStream(i),s=a.length,o=-1,l=0;for(;s--;){let e=a[s];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)l++,o--;if(o)break;o=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let a={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:i.start._bufferIndex+o,_index:i.start._index+s,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}let v={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){var s;return e.enter("thematicBreak"),r=s=a,function a(s){return s===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,h.On)(n)?(0,u.N)(e,a,"whitespace")(n):a(n))}(s)):i>=3&&(null===s||(0,h.HP)(s))?(e.exit("thematicBreak"),t(s)):n(s)}(s)}}},w={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(m.B,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,u.N)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,h.On)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(C,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,u.N)(e,e.attempt(w,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,h.BM)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(v,n,o)(t):o(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,h.BM)(i)&&++s<10?(e.consume(i),t):(!r.interrupt||s<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),o(i)):n(i)}(t)}return n(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(m.B,r.interrupt?n:l,e.attempt(S,u,c))}function l(e){return r.containerState.initialBlankLine=!0,a++,u(e)}function c(t){return(0,h.On)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},S={partial:!0,tokenize:function(e,t,n){let r=this;return(0,u.N)(e,function(e){let i=r.events[r.events.length-1];return!(0,h.On)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},C={partial:!0,tokenize:function(e,t,n){let r=this;return(0,u.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},N={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,h.On)(t)?(0,u.N)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(N,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,h.On)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function I(e,t,n,r,i,a,s,o,l){let c=l||1/0,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),p):null===t||32===t||41===t||(0,h.JQ)(t)?n(t):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),m(t))};function p(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(o),p(t)):null===t||60===t||(0,h.HP)(t)?n(t):(e.consume(t),92===t?f:d)}function f(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function m(i){return!u&&(null===i||41===i||(0,h.Ee)(i))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,m):41===i?(e.consume(i),u--,m):null===i||32===i||40===i||(0,h.JQ)(i)?n(i):(e.consume(i),92===i?g:m)}function g(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function D(e,t,n,r,i,a){let s,o=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),c};function c(p){return l>999||null===p||91===p||93===p&&!s||94===p&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):93===p?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(0,h.HP)(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(t){return null===t||91===t||93===t||(0,h.HP)(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!(0,h.On)(t)),92===t?p:u)}function p(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function O(e,t,n,r,i,a){let s;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,o):n(t)};function o(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===s?(e.exit(a),o(s)):null===t?n(t):(0,h.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,u.N)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||(0,h.HP)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?p:c)}function p(t){return t===s||92===t?(e.consume(t),c):c(t)}}function M(e,t){let n;return function r(i){return(0,h.HP)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,h.On)(i)?(0,u.N)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var L=n(76548);let R={partial:!0,tokenize:function(e,t,n){return function(t){return(0,h.Ee)(t)?M(e,r)(t):n(t)};function r(t){return O(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,h.On)(t)?(0,u.N)(e,a,"whitespace")(t):a(t)}function a(e){return null===e||(0,h.HP)(e)?t(e):n(e)}}},P={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,u.N)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):(0,h.HP)(n)?e.attempt(F,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,h.HP)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},F={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,h.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,u.N)(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):(0,h.HP)(e)?i(e):n(e)}}},B={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var s;let o,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){o="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,s=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,h.On)(n)?(0,u.N)(e,a,"lineSuffix")(n):a(n))}(s)):n(t)};function a(r){return null===r||(0,h.HP)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},H=["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"],U=["pre","script","style","textarea"],j={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(m.B,t,n)}}},$={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return(0,h.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},z={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},G={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s};function s(t){return e.enter("codeFencedFence"),(0,h.On)(t)?(0,u.N)(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=o?(e.exit("codeFencedFenceSequence"),(0,h.On)(i)?(0,u.N)(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||(0,h.HP)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},s=0,o=0;return function(t){var a;let c;return a=t,s=(c=i.events[i.events.length-1])&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0,r=a,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o<3?n(i):(e.exit("codeFencedFenceSequence"),(0,h.On)(i)?(0,u.N)(e,l,"whitespace")(i):l(i))}(a)};function l(a){return null===a||(0,h.HP)(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(z,p,g)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,h.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):(0,h.On)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,u.N)(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function c(t){return null===t||(0,h.HP)(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,h.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function p(t){return e.attempt(a,g,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return s>0&&(0,h.On)(t)?(0,u.N)(e,m,"linePrefix",s+1)(t):m(t)}function m(t){return null===t||(0,h.HP)(t)?e.check(z,p,g)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,h.HP)(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),t)}(t))}function g(n){return e.exit("codeFenced"),t(n)}}},K=document.createElement("i");function q(e){let t="&"+e+";";K.innerHTML=t;let n=K.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let Y={name:"characterReference",tokenize:function(e,t,n){let r,i,a=this,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=h.lV,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=h.ok,c):(e.enter("characterReferenceValue"),r=7,i=h.BM,c(t))}function c(o){if(59===o&&s){let r=e.exit("characterReferenceValue");return i!==h.lV||q(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return i(o)&&s++<r?(e.consume(o),c):n(o)}}},W={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return(0,h.ol)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},V={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,u.N)(e,t,"linePrefix")}}};var X=n(49359);let Q={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&(0,a.m)(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,s,o=e.length,l=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(i=o);let c={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},h={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[i-2][1].start}};return s=[["enter",c,t],["enter",u,t]],s=(0,a.V)(s,e.slice(r+1,r+l+3)),s=(0,a.V)(s,[["enter",h,t]]),s=(0,a.V)(s,(0,X.W)(t.parser.constructs.insideSpan.null,e.slice(r+l+4,i-3),t)),s=(0,a.V)(s,[["exit",h,t],e[i-2],e[i-1],["exit",u,t]]),s=(0,a.V)(s,e.slice(i+1)),s=(0,a.V)(s,[["exit",c,t]]),(0,a.m)(e,r,e.length,s),e},tokenize:function(e,t,n){let r,i,a=this,s=a.events.length;for(;s--;)if(("labelImage"===a.events[s][1].type||"labelLink"===a.events[s][1].type)&&!a.events[s][1]._balanced){r=a.events[s][1];break}return function(t){return r?r._inactive?u(t):(i=a.parser.defined.includes((0,L.B)(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o):n(t)};function o(t){return 40===t?e.attempt(Z,c,i?c:u)(t):91===t?e.attempt(J,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(ee,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},Z={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return(0,h.Ee)(t)?M(e,i)(t):i(t)}function i(t){return 41===t?c(t):I(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return(0,h.Ee)(t)?M(e,o)(t):c(t)}function s(e){return n(e)}function o(t){return 34===t||39===t||40===t?O(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return(0,h.Ee)(t)?M(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},J={tokenize:function(e,t,n){let r=this;return function(t){return D.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes((0,L.B)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},ee={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},et={name:"labelStartImage",resolveAll:Q.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};var en=n(84693);let er={name:"attention",resolveAll:function(e,t){let n,r,i,s,o,l,c,u,h=-1;for(;++h<e.length;)if("enter"===e[h][0]&&"attentionSequence"===e[h][1].type&&e[h][1]._close){for(n=h;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[h][1]).charCodeAt(0)){if((e[n][1]._close||e[h][1]._open)&&(e[h][1].end.offset-e[h][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[h][1].end.offset-e[h][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1;let p={...e[n][1].end},d={...e[h][1].start};ei(p,-l),ei(d,l),s={type:l>1?"strongSequence":"emphasisSequence",start:p,end:{...e[n][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[h][1].start},end:d},i={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[h][1].start}},r={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[n][1].end={...s.start},e[h][1].start={...o.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=(0,a.V)(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=(0,a.V)(c,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=(0,a.V)(c,(0,X.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,h),t)),c=(0,a.V)(c,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[h][1].end.offset-e[h][1].start.offset?(u=2,c=(0,a.V)(c,[["enter",e[h][1],t],["exit",e[h][1],t]])):u=0,(0,a.m)(e,n-1,h-n+3,c),h=n+c.length-u-2;break}}for(h=-1;++h<e.length;)"attentionSequence"===e[h][1].type&&(e[h][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=(0,en.S)(i);return function(s){return n=s,e.enter("attentionSequence"),function s(o){if(o===n)return e.consume(o),s;let l=e.exit("attentionSequence"),c=(0,en.S)(o),u=!c||2===c&&a||r.includes(o),h=!a||2===a&&c||r.includes(i);return l._open=!!(42===n?u:u&&(a||!h)),l._close=!!(42===n?h:h&&(c||!u)),t(o)}(s)}}};function ei(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let ea={name:"labelStartLink",resolveAll:Q.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},es={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:N},eo={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,D.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function a(t){return(r=(0,L.B)(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return(0,h.Ee)(t)?M(e,o)(t):o(t)}function o(t){return I(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(R,c,c)(t)}function c(t){return(0,h.On)(t)?(0,u.N)(e,p,"whitespace")(t):p(t)}function p(a){return null===a||(0,h.HP)(a)?(e.exit("definition"),i.parser.defined.push(r),t(a)):n(a)}}}},el={[-2]:P,[-1]:P,32:P},ec={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,s=3;return"whitespace"===e[3][1].type&&(s+=2),i-2>s&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(s===i-1||i-4>s&&"whitespace"===e[i-2][1].type)&&(i-=s+1===i?2:4),i>s&&(n={type:"atxHeadingText",start:e[s][1].start,end:e[i][1].end},r={type:"chunkText",start:e[s][1].start,end:e[i][1].end,contentType:"text"},(0,a.m)(e,s,i-s+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var a;return e.enter("atxHeading"),a=i,e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||(0,h.Ee)(a)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||(0,h.HP)(r)?(e.exit("atxHeading"),t(r)):(0,h.On)(r)?(0,u.N)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,h.Ee)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(a)}}},42:v,45:[B,v],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,a,s,o,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,f):63===s?(e.consume(s),r=3,l.interrupt?t:M):(0,h.CW)(s)?(e.consume(s),a=String.fromCharCode(s),m):n(s)}function u(i){return 45===i?(e.consume(i),r=2,p):91===i?(e.consume(i),r=5,s=0,d):(0,h.CW)(i)?(e.consume(i),r=4,l.interrupt?t:M):n(i)}function p(r){return 45===r?(e.consume(r),l.interrupt?t:M):n(r)}function d(r){let i="CDATA[";return r===i.charCodeAt(s++)?(e.consume(r),s===i.length)?l.interrupt?t:v:d:n(r)}function f(t){return(0,h.CW)(t)?(e.consume(t),a=String.fromCharCode(t),m):n(t)}function m(s){if(null===s||47===s||62===s||(0,h.Ee)(s)){let o=47===s,c=a.toLowerCase();return!o&&!i&&U.includes(c)?(r=1,l.interrupt?t(s):v(s)):H.includes(a.toLowerCase())?(r=6,o)?(e.consume(s),g):l.interrupt?t(s):v(s):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(s):i?function t(n){return(0,h.On)(n)?(e.consume(n),t):T(n)}(s):y(s))}return 45===s||(0,h.lV)(s)?(e.consume(s),a+=String.fromCharCode(s),m):n(s)}function g(r){return 62===r?(e.consume(r),l.interrupt?t:v):n(r)}function y(t){return 47===t?(e.consume(t),T):58===t||95===t||(0,h.CW)(t)?(e.consume(t),b):(0,h.On)(t)?(e.consume(t),y):T(t)}function b(t){return 45===t||46===t||58===t||95===t||(0,h.lV)(t)?(e.consume(t),b):k(t)}function k(t){return 61===t?(e.consume(t),_):(0,h.On)(t)?(e.consume(t),k):y(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,x):(0,h.On)(t)?(e.consume(t),_):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,h.Ee)(n)?k(n):(e.consume(n),t)}(t)}function x(t){return t===o?(e.consume(t),o=null,E):null===t||(0,h.HP)(t)?n(t):(e.consume(t),x)}function E(e){return 47===e||62===e||(0,h.On)(e)?y(e):n(e)}function T(t){return 62===t?(e.consume(t),A):n(t)}function A(t){return null===t||(0,h.HP)(t)?v(t):(0,h.On)(t)?(e.consume(t),A):n(t)}function v(t){return 45===t&&2===r?(e.consume(t),N):60===t&&1===r?(e.consume(t),I):62===t&&4===r?(e.consume(t),L):63===t&&3===r?(e.consume(t),M):93===t&&5===r?(e.consume(t),O):(0,h.HP)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(j,R,w)(t)):null===t||(0,h.HP)(t)?(e.exit("htmlFlowData"),w(t)):(e.consume(t),v)}function w(t){return e.check($,S,R)(t)}function S(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||(0,h.HP)(t)?w(t):(e.enter("htmlFlowData"),v(t))}function N(t){return 45===t?(e.consume(t),M):v(t)}function I(t){return 47===t?(e.consume(t),a="",D):v(t)}function D(t){if(62===t){let n=a.toLowerCase();return U.includes(n)?(e.consume(t),L):v(t)}return(0,h.CW)(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),D):v(t)}function O(t){return 93===t?(e.consume(t),M):v(t)}function M(t){return 62===t?(e.consume(t),L):45===t&&2===r?(e.consume(t),M):v(t)}function L(t){return null===t||(0,h.HP)(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),L)}function R(n){return e.exit("htmlFlow"),t(n)}}},61:B,95:v,96:G,126:G},eu={38:Y,92:W},eh={[-5]:V,[-4]:V,[-3]:V,33:et,38:Y,42:er,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,h.CW)(t)?(e.consume(t),a):64===t?n(t):o(t)}function a(t){return 43===t||45===t||46===t||(0,h.lV)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,s):(43===n||45===n||46===n||(0,h.lV)(n))&&r++<32?(e.consume(n),t):(r=0,o(n))}(t)):o(t)}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,h.JQ)(r)?n(r):(e.consume(r),s)}function o(t){return 64===t?(e.consume(t),l):(0,h.cx)(t)?(e.consume(t),o):n(t)}function l(i){return(0,h.lV)(i)?function i(a){return 46===a?(e.consume(a),r=0,l):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||(0,h.lV)(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a,s=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),E):63===t?(e.consume(t),_):(0,h.CW)(t)?(e.consume(t),A):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,m):(0,h.CW)(t)?(e.consume(t),k):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function p(t){return null===t?n(t):45===t?(e.consume(t),d):(0,h.HP)(t)?(a=p,O(t)):(e.consume(t),p)}function d(t){return 45===t?(e.consume(t),f):p(t)}function f(e){return 62===e?D(e):45===e?d(e):p(e)}function m(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?g:m):n(t)}function g(t){return null===t?n(t):93===t?(e.consume(t),y):(0,h.HP)(t)?(a=g,O(t)):(e.consume(t),g)}function y(t){return 93===t?(e.consume(t),b):g(t)}function b(t){return 62===t?D(t):93===t?(e.consume(t),b):g(t)}function k(t){return null===t||62===t?D(t):(0,h.HP)(t)?(a=k,O(t)):(e.consume(t),k)}function _(t){return null===t?n(t):63===t?(e.consume(t),x):(0,h.HP)(t)?(a=_,O(t)):(e.consume(t),_)}function x(e){return 62===e?D(e):_(e)}function E(t){return(0,h.CW)(t)?(e.consume(t),T):n(t)}function T(t){return 45===t||(0,h.lV)(t)?(e.consume(t),T):function t(n){return(0,h.HP)(n)?(a=t,O(n)):(0,h.On)(n)?(e.consume(n),t):D(n)}(t)}function A(t){return 45===t||(0,h.lV)(t)?(e.consume(t),A):47===t||62===t||(0,h.Ee)(t)?v(t):n(t)}function v(t){return 47===t?(e.consume(t),D):58===t||95===t||(0,h.CW)(t)?(e.consume(t),w):(0,h.HP)(t)?(a=v,O(t)):(0,h.On)(t)?(e.consume(t),v):D(t)}function w(t){return 45===t||46===t||58===t||95===t||(0,h.lV)(t)?(e.consume(t),w):function t(n){return 61===n?(e.consume(n),S):(0,h.HP)(n)?(a=t,O(n)):(0,h.On)(n)?(e.consume(n),t):v(n)}(t)}function S(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,C):(0,h.HP)(t)?(a=S,O(t)):(0,h.On)(t)?(e.consume(t),S):(e.consume(t),N)}function C(t){return t===r?(e.consume(t),r=void 0,I):null===t?n(t):(0,h.HP)(t)?(a=C,O(t)):(e.consume(t),C)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,h.Ee)(t)?v(t):(e.consume(t),N)}function I(e){return 47===e||62===e||(0,h.Ee)(e)?v(e):n(e)}function D(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return(0,h.On)(t)?(0,u.N)(e,L,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),a(t)}}}],91:ea,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,h.HP)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},W],93:Q,95:er,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),s(n))}(t)};function s(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),s):96===l?(i=e.enter("codeTextSequence"),r=0,function n(s){return 96===s?(e.consume(s),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(s)):(i.type="codeTextData",o(s))}(l)):(0,h.HP)(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),s):(e.enter("codeTextData"),o(l))}function o(t){return null===t||32===t||96===t||(0,h.HP)(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),o)}}}},ep={null:[er,k]},ed={null:[42,95]},ef={null:[]},em=/[\0\t\n\r]/g;function eg(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let ey=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function eb(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return eg(n.slice(t?2:1),t?16:10)}return q(n)||e}var ek=n(28830);let e_={}.hasOwnProperty;function ex(e){return{line:e.line,column:e.column,offset:e.offset}}function eE(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+(0,ek.L)({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+(0,ek.L)({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+(0,ek.L)({start:t.start,end:t.end})+") is still open")}function eT(e){let t=this;t.parser=function(n){var s,o;let u,f,m,g;return"object"==typeof(s={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=s,s=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(b),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(m),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(f),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:r(f,a),codeText:r(function(){return{type:"inlineCode",value:""}},a),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(g),hardBreakTrailing:r(g),htmlFlow:r(y,a),htmlFlowData:u,htmlText:r(y,a),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:r(b),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(k,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(k),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:r(m),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){h.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){h.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:h,characterReferenceMarkerHexadecimal:d,characterReferenceMarkerNumeric:d,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=eg(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=q(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=ex(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.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(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:h,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:h,data:h,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,L.B)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(p),hardBreakTrailing:o(p),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:h,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:h,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(ey,eb),n.identifier=(0,L.B)(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=ex(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),h.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,L.B)(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(e_.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},i={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:a,resume:c,data:n},o=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?o.push(u):u=function(e,t,n){let r,i,a,s,o=t-1,l=-1,c=!1;for(;++o<=n;){let t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||l||a||(a=o),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=o;for(i=void 0;s--;){let t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=s}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||o,0,["exit",r,t[2]]),o++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(o,0,["enter",i,t[2]]),o++,n++,a=void 0,s=!0}}}return e[t][1]._spread=c,n}(e,o.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];e_.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},i),e[u][1])}if(i.tokenStack.length>0){let e=i.tokenStack[i.tokenStack.length-1];(e[1]||eE).call(i,void 0,e[0])}for(r.position={start:ex(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ex(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:ex(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||eE).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+(0,ek.L)({start:e.start,end:e.end})+"): it’s not open");n.position.end=ex(e.end)}function c(){return(0,i.d)(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:ex(e.start),end:void 0},t.push(n)),this.stack.push(n)}function h(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ex(e.end)}function p(){this.data.atHardBreak=!0}function d(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function y(){return{type:"html",value:""}}function b(){return{type:"link",title:null,url:"",children:[]}}function k(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(o)(function(e){for(;!l(e););return e}((function(e){let t={constructs:(0,c.y)([r,...(e||{}).extensions||[]]),content:n(p),defined:[],document:n(d),flow:n(b),lazy:{},string:n(_),text:n(x)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},s=[],o=[],l=[],c={attempt:g(function(e,t){y(e,t.from)}),check:g(m),consume:function(e){(0,h.HP)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),l.push(n),n},exit:function(e){let t=l.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:g(m,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,b()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let a,s=e[r];if("string"==typeof s)a=s;else switch(s){case -5:a="\r";break;case -4:a="\n";break;case -3:a="\r\n";break;case -2:a=t?" ":" ";break;case -1:if(!t&&n)continue;a=" ";break;default:a=String.fromCharCode(s)}n=-2===s,i.push(a)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=(0,a.V)(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),p=p(t)}else p=p(n)}}(),null!==o[o.length-1])?[]:(y(t,0),u.events=(0,X.W)(s,u.events,u),u.events)}},p=t.tokenize.call(u,c);return t.resolveAll&&s.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;if(r===a)n=[e[r].slice(i,s)];else{if(n=e.slice(r,a),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}s>0&&n.push(e[a].slice(0,s))}return n}(o,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function m(e,t){t.restore()}function g(e,t){return function(n,i,a){var s;let o,h,p,d;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(s=n,function(e){let t=null!==e&&s[e],n=null!==e&&s.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(o=e,h=0,0===e.length)?a:g(e[h])}function g(e){return function(n){let i,a,s,o,h;return(i=f(),a=u.previous,s=u.currentConstruct,o=u.events.length,h=Array.from(l),d={from:o,restore:function(){r=i,u.previous=a,u.currentConstruct=s,u.events.length=o,l=h,b()}},p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?k(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,y,k)(n)}}function y(t){return e(p,d),i}function k(e){return(d.restore(),++h<o.length)?g(o[h]):a}}}function y(e,t){e.resolveAll&&!s.includes(e)&&s.push(e),e.resolve&&(0,a.m)(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function b(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(o).document().write((f=1,m="",g=!0,function(e,t,n){let r,i,a,s,o,l=[];for(e=m+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),a=0,m="",g&&(65279===e.charCodeAt(0)&&a++,g=void 0);a<e.length;){if(em.lastIndex=a,s=(r=em.exec(e))&&void 0!==r.index?r.index:e.length,o=e.charCodeAt(s),!r){m=e.slice(a);break}if(10===o&&a===s&&u)l.push(-3),u=void 0;else switch(u&&(l.push(-5),u=void 0),a<s&&(l.push(e.slice(a,s)),f+=s-a),o){case 0:l.push(65533),f++;break;case 9:for(i=4*Math.ceil(f/4),l.push(-2);f++<i;)l.push(-1);break;case 10:l.push(-4),f=1;break;default:u=!0,f=1}a=s+1}return n&&(u&&l.push(-5),m&&l.push(m),l.push(null)),l})(n,s,!0))))}}},83438:(e,t,n)=>{"use strict";function r(e){return null==e||"object"!=typeof e&&"function"!=typeof e}n.d(t,{s:()=>r})},84485:(e,t,n)=>{"use strict";t.J=function(e){if(!e)return r.BLANK_URL;var t,n=i(e.trim());do t=(n=i(n=n.replace(r.ctrlCharactersRegex,"").replace(r.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)}).replace(r.htmlCtrlEntityRegex,"").replace(r.ctrlCharactersRegex,"").replace(r.whitespaceEscapeCharsRegex,"").trim())).match(r.ctrlCharactersRegex)||n.match(r.htmlEntitiesRegex)||n.match(r.htmlCtrlEntityRegex)||n.match(r.whitespaceEscapeCharsRegex);while(t&&t.length>0);var a=n;if(!a)return r.BLANK_URL;if(r.relativeFirstCharacters.indexOf(a[0])>-1)return a;var s=a.trimStart(),o=s.match(r.urlSchemeRegex);if(!o)return a;var l=o[0].toLowerCase().trim();if(r.invalidProtocolRegex.test(l))return r.BLANK_URL;var c=s.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return c;if("http:"===l||"https:"===l){if(!URL.canParse(c))return r.BLANK_URL;var u=new URL(c);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return c};var r=n(25208);function i(e){try{return decodeURIComponent(e)}catch(t){return e}}},84693:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(4294);function i(e){return null===e||(0,r.Ee)(e)||(0,r.Ny)(e)?1:(0,r.es)(e)?2:void 0}},84709:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r={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/"}},85774:(e,t,n)=>{"use strict";n.d(t,{Nq:()=>s,RI:()=>c,Wg:()=>i,hq:()=>a});var r=n(32165),i=(0,r.K2)((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";let n=e.x??0,r=e.y??0;return"translate("+-(n+e.width/2)+", "+-(r+e.height/2)+")"},"computeLabelTransform"),a={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},s={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function o(e,t){if(void 0===e||void 0===t)return{angle:0,deltaX:0,deltaY:0};e=l(e),t=l(t);let[n,r]=[e.x,e.y],[i,a]=[t.x,t.y],s=i-n,o=a-r;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}(0,r.K2)(o,"calculateDeltaAndAngle");var l=(0,r.K2)(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),c=(0,r.K2)(e=>({x:(0,r.K2)(function(t,n,r){let i=0,s=l(r[0]).x<l(r[r.length-1]).x?"left":"right";if(0===n&&Object.hasOwn(a,e.arrowTypeStart)){let{angle:t,deltaX:n}=o(r[0],r[1]);i=a[e.arrowTypeStart]*Math.cos(t)*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(a,e.arrowTypeEnd)){let{angle:t,deltaX:n}=o(r[r.length-1],r[r.length-2]);i=a[e.arrowTypeEnd]*Math.cos(t)*(n>=0?1:-1)}let c=Math.abs(l(t).x-l(r[r.length-1]).x),u=Math.abs(l(t).y-l(r[r.length-1]).y),h=Math.abs(l(t).x-l(r[0]).x),p=Math.abs(l(t).y-l(r[0]).y),d=a[e.arrowTypeStart],f=a[e.arrowTypeEnd];if(c<f&&c>0&&u<f){let e=f+1-c;e*="right"===s?-1:1,i-=e}if(h<d&&h>0&&p<d){let e=d+1-h;e*="right"===s?-1:1,i+=e}return l(t).x+i},"x"),y:(0,r.K2)(function(t,n,r){let i=0,s=l(r[0]).y<l(r[r.length-1]).y?"down":"up";if(0===n&&Object.hasOwn(a,e.arrowTypeStart)){let{angle:t,deltaY:n}=o(r[0],r[1]);i=a[e.arrowTypeStart]*Math.abs(Math.sin(t))*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(a,e.arrowTypeEnd)){let{angle:t,deltaY:n}=o(r[r.length-1],r[r.length-2]);i=a[e.arrowTypeEnd]*Math.abs(Math.sin(t))*(n>=0?1:-1)}let c=Math.abs(l(t).y-l(r[r.length-1]).y),u=Math.abs(l(t).x-l(r[r.length-1]).x),h=Math.abs(l(t).y-l(r[0]).y),p=Math.abs(l(t).x-l(r[0]).x),d=a[e.arrowTypeStart],f=a[e.arrowTypeEnd];if(c<f&&c>0&&u<f){let e=f+1-c;e*="up"===s?-1:1,i-=e}if(h<d&&h>0&&p<d){let e=d+1-h;e*="up"===s?-1:1,i+=e}return l(t).y+i},"y")}),"getLineFunctionsWithOffset")},86994:(e,t,n)=>{"use strict";function r(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function i(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{A:()=>i,q:()=>r})},87789:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});let r="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||function(){return this}()||Function("return this")();function i(e){return void 0!==r.Buffer&&r.Buffer.isBuffer(e)}},88774:(e,t,n)=>{"use strict";n.d(t,{W6:()=>e2,GZ:()=>e6,WY:()=>ej,pC:()=>eB,Gc:()=>eR});var r=n(32563),i=n(97096),a=n(32165);let s=(e,t)=>!!e&&!!((t&&""===e.prefix||e.prefix)&&e.name),o=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),c=Object.freeze({...o,...l}),u=Object.freeze({...c,body:"",hidden:!1});function h(e,t){let n,r,i=(n={},!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0),(r=((e.rotate||0)+(t.rotate||0))%4)&&(n.rotate=r),n);for(let n in u)n in l?n in e&&!(n in i)&&(i[n]=l[n]):n in t?i[n]=t[n]:n in e&&(i[n]=e[n]);return i}function p(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function s(e){a=h(r[e]||i[e],a)}return s(t),n.forEach(s),h(e,a)}let d=Object.freeze({...Object.freeze({width:null,height:null}),...l}),f=/(-?[0-9.]*[0-9]+[0-9.]*)/g,m=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function g(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;let r=e.split(f);if(null===r||!r.length)return e;let i=[],a=r.shift(),s=m.test(a);for(;;){if(s){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(void 0===(a=r.shift()))return i.join("");s=!s}}let y=/\sid="(\S+)"/g,b=new Map;var k=n(33948);function _(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var x=_(),E={exec:()=>null};function T(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(v.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var A=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),v={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+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},w=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,S=/(?:[*+-]|\d{1,9}[.)])/,C=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,N=T(C).replace(/bull/g,S).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(),I=T(C).replace(/bull/g,S).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(),D=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,O=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,M=T(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",O).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),L=T(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,S).getRegex(),R="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",P=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,F=T("^ {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[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",P).replace("tag",R).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),B=T(D).replace("hr",w).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",R).getRegex(),H={blockquote:T(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",B).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:M,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:w,html:F,lheading:N,list:L,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:B,table:E,text:/^[^\n]+/},U=T("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",w).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\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",R).getRegex(),j={...H,lheading:I,table:U,paragraph:T(D).replace("hr",w).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",U).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",R).getRegex()},$={...H,html:T("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",P).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:E,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:T(D).replace("hr",w).replace("heading",` *#{1,6} *[^
|
|
115
|
+
]`).replace("lheading",N).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},z=/^( {2,}|\\)\n(?!\s*$)/,G=/[\p{P}\p{S}]/u,K=/[\s\p{P}\p{S}]/u,q=/[^\s\p{P}\p{S}]/u,Y=T(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,K).getRegex(),W=/(?!~)[\p{P}\p{S}]/u,V=T(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",A?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),X=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Q=T(X,"u").replace(/punct/g,G).getRegex(),Z=T(X,"u").replace(/punct/g,W).getRegex(),J="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ee=T(J,"gu").replace(/notPunctSpace/g,q).replace(/punctSpace/g,K).replace(/punct/g,G).getRegex(),et=T(J,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,W).getRegex(),en=T("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,q).replace(/punctSpace/g,K).replace(/punct/g,G).getRegex(),er=T(/\\(punct)/,"gu").replace(/punct/g,G).getRegex(),ei=T(/^<(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(),ea=T(P).replace("(?:--\x3e|$)","--\x3e").getRegex(),es=T("^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",ea).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,el=T(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",eo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ec=T(/^!?\[(label)\]\[(ref)\]/).replace("label",eo).replace("ref",O).getRegex(),eu=T(/^!?\[(ref)\](?:\[\])?/).replace("ref",O).getRegex(),eh=T("reflink|nolink(?!\\()","g").replace("reflink",ec).replace("nolink",eu).getRegex(),ep=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ed={_backpedal:E,anyPunctuation:er,autolink:ei,blockSkip:V,br:z,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:E,emStrongLDelim:Q,emStrongRDelimAst:ee,emStrongRDelimUnd:en,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:el,nolink:eu,punctuation:Y,reflink:ec,reflinkSearch:eh,tag:es,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:E},ef={...ed,link:T(/^!?\[(label)\]\((.*?)\)/).replace("label",eo).getRegex(),reflink:T(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",eo).getRegex()},em={...ed,emStrongRDelimAst:et,emStrongLDelim:Z,url:T(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ep).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\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:T(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ep).getRegex()},eg={...em,br:T(z).replace("{2,}","*").getRegex(),text:T(em.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ey={normal:H,gfm:j,pedantic:$},eb={normal:ed,gfm:em,breaks:eg,pedantic:ef},ek={"&":"&","<":"<",">":">",'"':""","'":"'"},e_=e=>ek[e];function ex(e,t){if(t){if(v.escapeTest.test(e))return e.replace(v.escapeReplace,e_)}else if(v.escapeTestNoEncode.test(e))return e.replace(v.escapeReplaceNoEncode,e_);return e}function eE(e){try{e=encodeURI(e).replace(v.percentDecode,"%")}catch{return null}return e}function eT(e,t){let n=e.replace(v.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(v.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(v.slashPipe,"|");return n}function eA(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n)if(a!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function ev(e,t,n,r,i){let a=t.href,s=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}var ew=class{options;rules;lexer;constructor(e){this.options=e||x}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:eA(e,`
|
|
116
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(`
|
|
117
|
+
`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
118
|
+
`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=eA(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:eA(t[0],`
|
|
119
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=eA(t[0],`
|
|
120
|
+
`).split(`
|
|
121
|
+
`),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],s;for(s=0;s<e.length;s++)if(this.rules.other.blockquoteStart.test(e[s]))a.push(e[s]),t=!0;else if(t)break;else a.push(e[s]);e=e.slice(s);let o=a.join(`
|
|
122
|
+
`),l=o.replace(this.rules.other.blockquoteSetextReplace,`
|
|
123
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
124
|
+
${o}`:o,r=r?`${r}
|
|
125
|
+
${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let t=u.raw+`
|
|
126
|
+
`+e.join(`
|
|
127
|
+
`),a=this.blockquote(t);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-u.text.length)+a.text;break}if(u?.type==="list"){let t=u.raw+`
|
|
128
|
+
`+e.join(`
|
|
129
|
+
`),a=this.list(t);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-u.raw.length)+a.raw,e=t.substring(i.at(-1).raw.length).split(`
|
|
130
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[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 a=this.rules.other.listItemRegex(n),s=!1;for(;e;){let n=!1,r="",o="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split(`
|
|
131
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split(`
|
|
132
|
+
`,1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,o=l.trimStart()):u?h=t[1].length+1:(h=(h=t[2].search(this.rules.other.nonSpaceChar))>4?1:h,o=l.slice(h),h+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+`
|
|
133
|
+
`,e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),a=this.rules.other.headingBeginRegex(h),s=this.rules.other.htmlBeginRegex(h);for(;e;){let p=e.split(`
|
|
134
|
+
`,1)[0],d;if(c=p,d=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||s.test(c)||t.test(c)||n.test(c))break;if(d.search(this.rules.other.nonSpaceChar)>=h||!c.trim())o+=`
|
|
135
|
+
`+d.slice(h);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||n.test(l))break;o+=`
|
|
136
|
+
`+c}u||c.trim()||(u=!0),r+=p+`
|
|
137
|
+
`,e=e.substring(p.length+1),l=d.slice(h)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0));let p=null,d;this.options.gfm&&(p=this.rules.other.listIsTask.exec(o))&&(d="[ ] "!==p[0],o=o.replace(this.rules.other.listReplaceTask,"")),i.items.push({type:"list_item",raw:r,task:!!p,checked:d,loose:!1,text:o,tokens:[]}),i.raw+=r}let o=i.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=eT(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
138
|
+
`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(eT(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
139
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=eA(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if("("===e[n])t++;else if(")"===e[n]&&--t<0)return n;return t>0?-2:-1}(t[2]);if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ev(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ev(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,s=n,o=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(a=[...i].length,r[3]||r[4]){s+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){o+=a;continue}if((s-=a)>0)continue;a=Math.min(a,a+s+o);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},eS=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||x,this.options.tokenizer=this.options.tokenizer||new ew,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 t={other:v,block:ey.normal,inline:eb.normal};this.options.pedantic?(t.block=ey.pedantic,t.inline=eb.pedantic):this.options.gfm&&(t.block=ey.gfm,this.options.breaks?t.inline=eb.breaks:t.inline=eb.gfm),this.tokenizer.rules=t}static get rules(){return{block:ey,inline:eb}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(v.carriageReturn,`
|
|
140
|
+
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(v.tabCharGlobal," ").replace(v.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=`
|
|
141
|
+
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
|
|
142
|
+
`)?"":`
|
|
143
|
+
`)+r.raw,n.text+=`
|
|
144
|
+
`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
|
|
145
|
+
`)?"":`
|
|
146
|
+
`)+r.raw,n.text+=`
|
|
147
|
+
`+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},t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
|
|
148
|
+
`)?"":`
|
|
149
|
+
`)+r.raw,a.text+=`
|
|
150
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`
|
|
151
|
+
`)?"":`
|
|
152
|
+
`)+r.raw,n.text+=`
|
|
153
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(r));)n=i[2]?i[2].length:0,r=r.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,s="";for(;e;){let n;if(a||(s=""),a=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,r,s))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0;let r=t.at(-1);r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},eC=class{options;parser;constructor(e){this.options=e||x}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(v.notSpaceStart)?.[0],i=e.replace(v.endingNewline,"")+`
|
|
154
|
+
`;return r?'<pre><code class="language-'+ex(r)+'">'+(n?i:ex(i,!0))+`</code></pre>
|
|
155
|
+
`:"<pre><code>"+(n?i:ex(i,!0))+`</code></pre>
|
|
156
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
157
|
+
${this.parser.parse(e)}</blockquote>
|
|
158
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
159
|
+
`}hr(e){return`<hr>
|
|
160
|
+
`}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+`>
|
|
161
|
+
`+r+"</"+i+`>
|
|
162
|
+
`}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+ex(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
|
|
163
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
164
|
+
`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
165
|
+
<thead>
|
|
166
|
+
`+t+`</thead>
|
|
167
|
+
`+r+`</table>
|
|
168
|
+
`}tablerow({text:e}){return`<tr>
|
|
169
|
+
${e}</tr>
|
|
170
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
171
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ex(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=eE(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+ex(t)+'"'),a+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=eE(e);if(null===i)return ex(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${ex(t)}"`),a+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ex(e.text)}},eN=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},eI=class e{options;renderer;textRenderer;constructor(e){this.options=e||x,this.options.renderer=this.options.renderer||new eC,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new eN}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"def":n+=this.renderer.def(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let a=i,s=this.renderer.text(a);for(;r+1<e.length&&"text"===e[r+1].type;)a=e[++r],s+=`
|
|
172
|
+
`+this.renderer.text(a);t?n+=this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):n+=s;continue}default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},eD=class{options;block;constructor(e){this.options=e||x}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?eS.lex:eS.lexInline}provideParser(){return this.block?eI.parse:eI.parseInline}},eO=new class{defaults=_();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=eI;Renderer=eC;TextRenderer=eN;Lexer=eS;Tokenizer=ew;Hooks=eD;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new eC(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ew(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new eD;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];eD.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&eD.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return i.call(t,n)})();let a=r.call(t,e);return i.call(t,a)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return eS.lex(e,t??this.defaults)}parser(e,t){return eI.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(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 t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await (i.hooks?await i.hooks.provideLexer():e?eS.lex:eS.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let s=await (i.hooks?await i.hooks.provideParser():e?eI.parse:eI.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(s):s})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?eS.lex:eS.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?eI.parse:eI.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
173
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+ex(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function eM(e,t){return eO.parse(e,t)}eM.options=eM.setOptions=function(e){return eO.setOptions(e),eM.defaults=eO.defaults,x=eM.defaults,eM},eM.getDefaults=_,eM.defaults=x,eM.use=function(...e){return eO.use(...e),eM.defaults=eO.defaults,x=eM.defaults,eM},eM.walkTokens=function(e,t){return eO.walkTokens(e,t)},eM.parseInline=eO.parseInline,eM.Parser=eI,eM.parser=eI.parse,eM.Renderer=eC,eM.TextRenderer=eN,eM.Lexer=eS,eM.lexer=eS.lex,eM.Tokenizer=ew,eM.Hooks=eD,eM.parse=eM,eM.options,eM.setOptions,eM.use,eM.walkTokens,eM.parseInline,eI.parse,eS.lex;var eL=n(23638),eR={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},eP=new Map,eF=new Map,eB=(0,a.K2)(e=>{for(let t of e){if(!t.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(a.Rm.debug("Registering icon pack:",t.name),"loader"in t)eF.set(t.name,t.loader);else if("icons"in t)eP.set(t.name,t.icons);else throw a.Rm.error("Invalid icon loader:",t),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),eH=(0,a.K2)(async(e,t)=>{let n=((e,t,n,r="")=>{let i=e.split(":");if("@"===e.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){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!s(a)?null:a}let a=i[0],o=a.split("-");if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!s(e)?null:e}if(n&&""===r){let e={provider:r,prefix:"",name:a};return t&&!s(e,n)?null:e}return null})(e,!0,void 0!==t);if(!n)throw Error(`Invalid icon name: ${e}`);let r=n.prefix||t;if(!r)throw Error(`Icon name must contain a prefix: ${e}`);let i=eP.get(r);if(!i){let e=eF.get(r);if(!e)throw Error(`Icon set not found: ${n.prefix}`);try{i={...await e(),prefix:r},eP.set(r,i)}catch(e){throw a.Rm.error(e),Error(`Failed to load icon set: ${n.prefix}`)}}let o=function(e,t){var n;let r,i,a;if(e.icons[t])return p(e,t,[]);let s=(n=[t],r=e.icons,i=e.aliases||Object.create(null),a=Object.create(null),(n||Object.keys(r).concat(Object.keys(i))).forEach(function e(t){if(r[t])return a[t]=[];if(!(t in a)){a[t]=null;let n=i[t]&&i[t].parent,r=n&&e(n);r&&(a[t]=[n].concat(r))}return a[t]}),a)[t];return s?p(e,t,s):null}(i,n.name);if(!o)throw Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),eU=(0,a.K2)(async e=>{try{return await eH(e),!0}catch{return!1}},"isIconAvailable"),ej=(0,a.K2)(async(e,t,n)=>{var r;let s,o,l,u,h,p,f,m,k,_,x,E,T,A;try{s=await eH(e,t?.fallbackPrefix)}catch(e){a.Rm.error(e),s=eR}let v=(r=s,u={...c,...r},h={...d,...t},p={left:u.left,top:u.top,width:u.width,height:u.height},f=u.body,[u,h].forEach(e=>{var t,n,r,i;let a,s,o=[],l=e.hFlip,c=e.vFlip,u=e.rotate;switch(l?c?u+=2:(o.push("translate("+(p.width+p.left).toString()+" "+(0-p.top).toString()+")"),o.push("scale(-1 1)"),p.top=p.left=0):c&&(o.push("translate("+(0-p.left).toString()+" "+(p.height+p.top).toString()+")"),o.push("scale(1 -1)"),p.top=p.left=0),u<0&&(u-=4*Math.floor(u/4)),u%=4){case 1:o.unshift("rotate(90 "+(a=p.height/2+p.top).toString()+" "+a.toString()+")");break;case 2:o.unshift("rotate(180 "+(p.width/2+p.left).toString()+" "+(p.height/2+p.top).toString()+")");break;case 3:o.unshift("rotate(-90 "+(a=p.width/2+p.left).toString()+" "+a.toString()+")")}u%2==1&&(p.left!==p.top&&(a=p.left,p.left=p.top,p.top=a),p.width!==p.height&&(a=p.width,p.width=p.height,p.height=a)),o.length&&(t=f,n='<g transform="'+o.join(" ")+'">',r=(s=function(e,t="defs"){let n="",r=e.indexOf("<"+t);for(;r>=0;){let i=e.indexOf(">",r),a=e.indexOf("</"+t);if(-1===i||-1===a)break;let s=e.indexOf(">",a);if(-1===s)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(s+1)}return{defs:n,content:e}}(t)).defs,i=n+s.content+"</g>",f=r?"<defs>"+r+"</defs>"+i:i)}),m=h.width,k=h.height,_=p.width,x=p.height,null===m?o=g(l=null===k?"1em":"auto"===k?x:k,_/x):(o="auto"===m?_:m,l=null===k?g(o,x/_):"auto"===k?x:k),E={},(T=(e,t)=>{"unset"!==t&&"undefined"!==t&&"none"!==t&&(E[e]=t.toString())})("width",o),T("height",l),E.viewBox=(A=[p.left,p.top,_,x]).join(" "),{attributes:E,viewBox:A,body:f}),w=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(function(e){let t,n=[];for(;t=y.exec(e);)n.push(t[1]);if(!n.length)return e;let r="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return n.forEach(t=>{var n;let i,a=(n=(n=t).replace(/[0-9]+$/,"")||"a",i=b.get(n)||0,b.set(n,i+1),i?`${n}${i}`:n),s=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+r+"$3")}),e=e.replace(RegExp(r,"g"),"")}(v.body),{...v.attributes,...n});return(0,i.jZ)(w,(0,i.zj)())},"getIconSVG");function e$(e,{markdownAutoWrap:t}){let n=e.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n");return(0,eL.T)(n)}function ez(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(e=>({content:e,type:"normal"}))??[])}function eG(e,t={}){let n=e$(e,t),r=eM.lexer(n),i=[[]],s=0;function o(e,t="normal"){"text"===e.type?e.text.split("\n").forEach((e,n)=>{0!==n&&(s++,i.push([])),e.split(" ").forEach(e=>{(e=e.replace(/'/g,"'"))&&i[s].push({content:e,type:t})})}):"strong"===e.type||"em"===e.type?e.tokens.forEach(t=>{o(t,e.type)}):"html"===e.type&&i[s].push({content:e.text,type:"normal"})}return(0,a.K2)(o,"processNode"),r.forEach(e=>{"paragraph"===e.type?e.tokens?.forEach(e=>{o(e)}):"html"===e.type?i[s].push({content:e.text,type:"normal"}):i[s].push({content:e.raw,type:"normal"})}),i}function eK(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}function eq(e,{markdownAutoWrap:t}={}){let n=eM.lexer(e);function r(e){if("text"===e.type)return!1===t?e.text.replace(/\n */g,"<br/>").replace(/ /g," "):e.text.replace(/\n */g,"<br/>");if("strong"===e.type)return`<strong>${e.tokens?.map(r).join("")}</strong>`;if("em"===e.type)return`<em>${e.tokens?.map(r).join("")}</em>`;if("paragraph"===e.type)return`<p>${e.tokens?.map(r).join("")}</p>`;if("space"===e.type)return"";else if("html"===e.type)return`${e.text}`;else if("escape"===e.type)return e.text;return a.Rm.warn(`Unsupported markdown: ${e.type}`),e.raw}return(0,a.K2)(r,"output"),n.map(r).join("")}function eY(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}function eW(e,t){return eV(e,[],eY(t.content),t.type)}function eV(e,t,n,r){if(0===n.length)return[{content:t.join(""),type:r},{content:"",type:r}];let[i,...a]=n,s=[...t,i];return e([{content:s.join(""),type:r}])?eV(e,s,a,r):(0===t.length&&i&&(t.push(i),n.shift()),[{content:t.join(""),type:r},{content:n.join(""),type:r}])}function eX(e,t){if(e.some(({content:e})=>e.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return eQ(e,t)}function eQ(e,t,n=[],r=[]){if(0===e.length)return r.length>0&&n.push(r),n.length>0?n:[];let i="";" "===e[0].content&&(i=" ",e.shift());let a=e.shift()??{content:" ",type:"normal"},s=[...r];if(""!==i&&s.push({content:i,type:"normal"}),s.push(a),t(s))return eQ(e,t,n,s);if(r.length>0)n.push(r),e.unshift(a);else if(a.content){let[r,i]=eW(t,a);n.push([r]),i.content&&e.unshift(i)}return eQ(e,t,n)}function eZ(e,t){t&&e.attr("style",t)}async function eJ(e,t,n,r,a=!1,s=(0,i.zj)()){let o=e.append("foreignObject");o.attr("width",`${Math.min(10*n,16384)}px`),o.attr("height",`${Math.min(10*n,16384)}px`);let l=o.append("xhtml:div"),c=(0,i.Wi)(t.label)?await (0,i.dj)(t.label.replace(i.Y2.lineBreakRegex,"\n"),s):(0,i.jZ)(t.label,s),u=t.isNode?"nodeLabel":"edgeLabel",h=l.append("span");h.html(c),eZ(h,t.labelStyle),h.attr("class",`${u} ${r}`),eZ(l,t.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),n!==1/0&&(l.style("max-width",n+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&l.attr("class","labelBkg");let p=l.node().getBoundingClientRect();return p.width===n&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",n+"px"),p=l.node().getBoundingClientRect()),o.node()}function e0(e,t,n,r=!1){let i=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*n-.1+"em").attr("dy",n+"em");return r&&i.attr("text-anchor","middle"),i}function e1(e,t,n){let r=e.append("text"),i=e0(r,1,t);e4(i,n);let a=i.node().getComputedTextLength();return r.remove(),a}function e2(e,t,n){let r=e.append("text"),i=e0(r,1,t);e4(i,[{content:n,type:"normal"}]);let a=i.node()?.getBoundingClientRect();return a&&r.remove(),a}function e3(e,t,n,r=!1,i=!1){let s=t.append("g"),o=s.insert("rect").attr("class","background").attr("style","stroke: none"),l=s.append("text").attr("y","-10.1");i&&l.attr("text-anchor","middle");let c=0;for(let t of n){let n=(0,a.K2)(t=>e1(s,1.1,t)<=e,"checkWidth");for(let e of n(t)?[t]:eX(t,n))e4(e0(l,c,1.1,i),e),c++}if(!r)return l.node();{let e=l.node().getBBox();return o.attr("x",e.x-2).attr("y",e.y-2).attr("width",e.width+4).attr("height",e.height+4),s.node()}}function e5(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return e}})}function e4(e,t){e.text(""),t.forEach((t,n)=>{let r=e.append("tspan").attr("font-style","em"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===n?r.text(e5(t.content)):r.text(" "+e5(t.content))})}async function e9(e,t={}){let n=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,r,a)=>(n.push((async()=>{let n=`${r}:${a}`;return await eU(n)?await ej(n,void 0,{class:"label-icon"}):`<i class='${(0,i.jZ)(e,t).replace(":"," ")}'></i>`})()),e));let r=await Promise.all(n);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>r.shift()??"")}(0,a.K2)(e$,"preprocessMarkdown"),(0,a.K2)(ez,"nonMarkdownToLines"),(0,a.K2)(eG,"markdownToLines"),(0,a.K2)(eK,"nonMarkdownToHTML"),(0,a.K2)(eq,"markdownToHTML"),(0,a.K2)(eY,"splitTextToChars"),(0,a.K2)(eW,"splitWordToFitWidth"),(0,a.K2)(eV,"splitWordToFitWidthRecursion"),(0,a.K2)(eX,"splitLineToFitWidth"),(0,a.K2)(eQ,"splitLineToFitWidthRecursion"),(0,a.K2)(eZ,"applyStyle"),(0,a.K2)(eJ,"addHtmlSpan"),(0,a.K2)(e0,"createTspan"),(0,a.K2)(e1,"computeWidthOfText"),(0,a.K2)(e2,"computeDimensionOfText"),(0,a.K2)(e3,"createFormattedText"),(0,a.K2)(e5,"decodeHTMLEntities"),(0,a.K2)(e4,"updateTextContentAndStyles"),(0,a.K2)(e9,"replaceIconSubstring");var e6=(0,a.K2)(async(e,t="",{style:n="",isTitle:s=!1,classes:o="",useHtmlLabels:l=!0,markdown:c=!0,isNode:u=!0,width:h=200,addSvgBackground:p=!1}={},d)=>{if(a.Rm.debug("XYZ createText",t,n,s,o,l,u,"addSvgBackground: ",p),l){let a=c?eq(t,d):eK(t),s=await e9((0,r.Sm)(a),d),l=t.replace(/\\\\/g,"\\"),f={isNode:u,label:(0,i.Wi)(t)?l:s,labelStyle:n.replace("fill:","color:")};return await eJ(e,f,h,o,p,d)}{let i=(0,r.Sm)(t.replace(/<br\s*\/?>/g,"<br/>")),a=e3(h,e,c?eG(i.replace("<br>","<br/>"),d):ez(i),!!t&&p,!u);if(u){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));let e=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,k.Ltv)(a).attr("style",e)}else{let e=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,k.Ltv)(a).select("rect").attr("style",e.replace(/background:/g,"fill:"));let t=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,k.Ltv)(a).select("text").attr("style",t)}return s?(0,k.Ltv)(a).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,k.Ltv)(a).selectAll("tspan.text-outer-tspan").classed("row",!0),a}},"createText")},89315:e=>{"use strict";let t=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]],n=/(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&|%[A-Fa-f0-9]{2})+)/gm;class r{static escapeForHtml(e){return new r().escapeForHtml(e)}static linkify(e){return new r().linkify(e)}static ansiToHtml(e,t){return new r().ansiToHtml(e,t)}static ansiToJson(e,t){return new r().ansiToJson(e,t)}static ansiToText(e){return new r().ansiToText(e)}constructor(){this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0,this.decorations=[]}setupPalette(){this.PALETTE_COLORS=[];for(let e=0;e<2;++e)for(let n=0;n<8;++n)this.PALETTE_COLORS.push(t[e][n].color);let e=[0,95,135,175,215,255],n=(t,n,r)=>e[t]+", "+e[n]+", "+e[r];for(let e=0;e<6;++e)for(let t=0;t<6;++t)for(let r=0;r<6;++r)this.PALETTE_COLORS.push(n(e,t,r));let r=8;for(let e=0;e<24;++e,r+=10)this.PALETTE_COLORS.push(r+", "+r+", "+r)}escapeForHtml(e){return e.replace(/[&<>\"]/gm,e=>"&"==e?"&":'"'==e?""":"<"==e?"<":">"==e?">":"")}linkify(e){return e.replace(n,e=>`<a href="${e}">${e}</a>`)}ansiToHtml(e,t){return this.process(e,t,!0)}ansiToJson(e,t){return(t=t||{}).json=!0,t.clearLine=!1,this.process(e,t,!0)}ansiToText(e){return this.process(e,{},!1)}process(e,t,n){let r=e.split(/\033\[/),i=r.shift();null==t&&(t={}),t.clearLine=/\r/.test(e);let a=r.map(e=>this.processChunk(e,t,n));if(t&&t.json){let e=this.processChunkJson("");return e.content=i,e.clearLine=t.clearLine,a.unshift(e),t.remove_empty&&(a=a.filter(e=>!e.isEmpty())),a}return a.unshift(i),a.join("")}processChunkJson(e,n,r){let i=(n=void 0===n?{}:n).use_classes=void 0!==n.use_classes&&n.use_classes,a=n.key=i?"class":"color",s={content:e,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:n.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:()=>!s.content},o=e.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!o)return s;s.content=o[4];let l=o[2].split(";");if(""!==o[1]||"m"!==o[3]||!r)return s;for(;l.length>0;){let e=parseInt(l.shift());if(isNaN(e)||0===e)this.fg=this.bg=null,this.decorations=[];else if(1===e)this.decorations.push("bold");else if(2===e)this.decorations.push("dim");else if(3===e)this.decorations.push("italic");else if(4===e)this.decorations.push("underline");else if(5===e)this.decorations.push("blink");else if(7===e)this.decorations.push("reverse");else if(8===e)this.decorations.push("hidden");else if(9===e)this.decorations.push("strikethrough");else if(21===e)this.removeDecoration("bold");else if(22===e)this.removeDecoration("bold"),this.removeDecoration("dim");else if(23===e)this.removeDecoration("italic");else if(24===e)this.removeDecoration("underline");else if(25===e)this.removeDecoration("blink");else if(27===e)this.removeDecoration("reverse");else if(28===e)this.removeDecoration("hidden");else if(29===e)this.removeDecoration("strikethrough");else if(39===e)this.fg=null;else if(49===e)this.bg=null;else if(e>=30&&e<38)this.fg=t[0][e%10][a];else if(e>=90&&e<98)this.fg=t[1][e%10][a];else if(e>=40&&e<48)this.bg=t[0][e%10][a];else if(e>=100&&e<108)this.bg=t[1][e%10][a];else if(38===e||48===e){let n=38===e;if(l.length>=1){let e=l.shift();if("5"===e&&l.length>=1){let e=parseInt(l.shift());if(e>=0&&e<=255)if(i){let r=e>=16?"ansi-palette-"+e:t[+(e>7)][e%8].class;n?this.fg=r:this.bg=r}else this.PALETTE_COLORS||this.setupPalette(),n?this.fg=this.PALETTE_COLORS[e]:this.bg=this.PALETTE_COLORS[e]}else if("2"===e&&l.length>=3){let e=parseInt(l.shift()),t=parseInt(l.shift()),r=parseInt(l.shift());if(e>=0&&e<=255&&t>=0&&t<=255&&r>=0&&r<=255){let a=e+", "+t+", "+r;i?n?(this.fg="ansi-truecolor",this.fg_truecolor=a):(this.bg="ansi-truecolor",this.bg_truecolor=a):n?this.fg=a:this.bg=a}}}}}return null===this.fg&&null===this.bg&&0===this.decorations.length||(s.fg=this.fg,s.bg=this.bg,s.fg_truecolor=this.fg_truecolor,s.bg_truecolor=this.bg_truecolor,s.decorations=this.decorations,s.decoration=this.decorations.slice(-1).pop()||null,s.was_processed=!0),s}processChunk(e,n,r){n=n||{};let i=this.processChunkJson(e,n,r),a=n.use_classes;if(i.decorations=i.decorations.filter(e=>{if("reverse"===e){i.fg||(i.fg=t[0][7][a?"class":"color"]),i.bg||(i.bg=t[0][0][a?"class":"color"]);let e=i.fg;i.fg=i.bg,i.bg=e;let n=i.fg_truecolor;return i.fg_truecolor=i.bg_truecolor,i.bg_truecolor=n,i.isInverted=!0,!1}return!0}),n.json)return i;if(i.isEmpty())return"";if(!i.was_processed)return i.content;let s=[],o=[],l=[],c={},u=e=>{let t,n=[];for(t in e)e.hasOwnProperty(t)&&n.push("data-"+t+'="'+this.escapeForHtml(e[t])+'"');return n.length>0?" "+n.join(" "):""};return(i.isInverted&&(c["ansi-is-inverted"]="true"),i.fg&&(a?(s.push(i.fg+"-fg"),null!==i.fg_truecolor&&(c["ansi-truecolor-fg"]=i.fg_truecolor,i.fg_truecolor=null)):s.push("color:rgb("+i.fg+")")),i.bg&&(a?(s.push(i.bg+"-bg"),null!==i.bg_truecolor&&(c["ansi-truecolor-bg"]=i.bg_truecolor,i.bg_truecolor=null)):s.push("background-color:rgb("+i.bg+")")),i.decorations.forEach(e=>{a?o.push("ansi-"+e):"bold"===e?o.push("font-weight:bold"):"dim"===e?o.push("opacity:0.5"):"italic"===e?o.push("font-style:italic"):"hidden"===e?o.push("visibility:hidden"):"strikethrough"===e?l.push("line-through"):l.push(e)}),l.length&&o.push("text-decoration:"+l.join(" ")),a)?'<span class="'+s.concat(o).join(" ")+'"'+u(c)+">"+i.content+"</span>":'<span style="'+s.concat(o).join(";")+'"'+u(c)+">"+i.content+"</span>"}removeDecoration(e){let t=this.decorations.indexOf(e);t>=0&&this.decorations.splice(t,1)}}e.exports=r},91992:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>ec});let i=Object.entries,a=Object.setPrototypeOf,s=Object.isFrozen,o=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,c=Object.freeze,u=Object.seal,h=Object.create,p="u">typeof Reflect&&Reflect,d=p.apply,f=p.construct;c||(c=function(e){return e}),u||(u=function(e){return e}),d||(d=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),f||(f=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});let m=R(Array.prototype.forEach),g=R(Array.prototype.lastIndexOf),y=R(Array.prototype.pop),b=R(Array.prototype.push),k=R(Array.prototype.splice),_=Array.isArray,x=R(String.prototype.toLowerCase),E=R(String.prototype.toString),T=R(String.prototype.match),A=R(String.prototype.replace),v=R(String.prototype.indexOf),w=R(String.prototype.trim),S=R(Number.prototype.toString),C=R(Boolean.prototype.toString),N="u"<typeof BigInt?null:R(BigInt.prototype.toString),I="u"<typeof Symbol?null:R(Symbol.prototype.toString),D=R(Object.prototype.hasOwnProperty),O=R(Object.prototype.toString),M=R(RegExp.prototype.test),L=(el=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f(el,t)});function R(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return d(e,t,r)}}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;if(a&&a(e,null),!_(t))return e;let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){let e=n(i);e!==i&&(s(t)||(t[r]=e),i=e)}e[i]=!0}return e}function F(e){let t=h(null);for(let a of i(e)){var n=function(e){if(Array.isArray(e))return e}(a)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,a,s=[],o=!0,l=!1;try{i=(t=t.call(e)).next,!1;for(;!(o=(n=i.call(t)).done)&&(s.push(n.value),2!==s.length);o=!0);}catch(e){l=!0,r=e}finally{try{if(!o&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(a)||function(e){if(e){if("string"==typeof e)return r(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,2):void 0}}(a)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let i=n[0],s=n[1];D(e,i)&&(_(s)?t[i]=function(e){for(let t=0;t<e.length;t++)D(e,t)||(e[t]=null);return e}(s):s&&"object"==typeof s&&s.constructor===Object?t[i]=F(s):t[i]=s)}return t}function B(e,t){for(;null!==e;){let n=l(e,t);if(n){if(n.get)return R(n.get);if("function"==typeof n.value)return R(n.value)}e=o(e)}return function(){return null}}let H=c(["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","search","section","select","shadow","slot","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"]),U=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),j=c(["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"]),$=c(["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"]),z=c(["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"]),G=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),K=c(["#text"]),q=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Y=c(["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","mask-type","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"]),W=c(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),V=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),X=u(/{{[\w\W]*|^[\w\W]*}}/g),Q=u(/<%[\w\W]*|^[\w\W]*%>/g),Z=u(/\${[\w\W]*/g),J=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),ee=u(/^aria-[\-\w]+$/),et=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),en=u(/^(?:\w+script|data):/i),er=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ei=u(/^html$/i),ea=u(/^[a-z][.\w]*(-[.\w]+)+$/i),es=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},eo=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var el,ec=function e(){let t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,r=t=>e(t);if(r.version="3.4.7",r.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return r.isSupported=!1,r;let a=n.document,s=a,o=s.currentScript;n.DocumentFragment;let l=n.HTMLTemplateElement,u=n.Node,p=n.Element,d=n.NodeFilter;void 0===n.NamedNodeMap&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let f=n.DOMParser,R=n.trustedTypes,el=p.prototype,ec=B(el,"cloneNode"),eu=B(el,"remove"),eh=B(el,"nextSibling"),ep=B(el,"childNodes"),ed=B(el,"parentNode"),ef=B(el,"shadowRoot"),em=B(el,"attributes"),eg=u&&u.prototype?B(u.prototype,"nodeType"):null,ey=u&&u.prototype?B(u.prototype,"nodeName"):null;if("function"==typeof l){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let eb="",ek=a,e_=ek.implementation,ex=ek.createNodeIterator,eE=ek.createDocumentFragment,eT=ek.getElementsByTagName,eA=s.importNode,ev=eo();r.isSupported="function"==typeof i&&"function"==typeof ed&&e_&&void 0!==e_.createHTMLDocument;let ew=et,eS=null,eC=P({},[...H,...U,...j,...z,...K]),eN=null,eI=P({},[...q,...Y,...W,...V]),eD=Object.seal(h(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}})),eO=null,eM=null,eL=Object.seal(h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eR=!0,eP=!0,eF=!1,eB=!0,eH=!1,eU=!0,ej=!1,e$=!1,ez=!1,eG=!1,eK=!1,eq=!1,eY=!0,eW=!1,eV="user-content-",eX=!0,eQ=!1,eZ={},eJ=null,e0=P({},["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"]),e1=null,e2=P({},["audio","video","img","source","image","track"]),e3=null,e5=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),e4="http://www.w3.org/1998/Math/MathML",e9="http://www.w3.org/2000/svg",e6="http://www.w3.org/1999/xhtml",e8=e6,e7=!1,te=null,tt=P({},[e4,e9,e6],E),tn=P({},["mi","mo","mn","ms","mtext"]),tr=P({},["annotation-xml"]),ti=P({},["title","style","font","a","script"]),ta=null,ts=["application/xhtml+xml","text/html"],to=null,tl=null,tc=a.createElement("form"),tu=function(e){return e instanceof RegExp||e instanceof Function},th=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tl&&tl===e)return;e&&"object"==typeof e||(e={}),e=F(e),to="application/xhtml+xml"===(ta=-1===ts.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?E:x,eS=D(e,"ALLOWED_TAGS")&&_(e.ALLOWED_TAGS)?P({},e.ALLOWED_TAGS,to):eC,eN=D(e,"ALLOWED_ATTR")&&_(e.ALLOWED_ATTR)?P({},e.ALLOWED_ATTR,to):eI,te=D(e,"ALLOWED_NAMESPACES")&&_(e.ALLOWED_NAMESPACES)?P({},e.ALLOWED_NAMESPACES,E):tt,e3=D(e,"ADD_URI_SAFE_ATTR")&&_(e.ADD_URI_SAFE_ATTR)?P(F(e5),e.ADD_URI_SAFE_ATTR,to):e5,e1=D(e,"ADD_DATA_URI_TAGS")&&_(e.ADD_DATA_URI_TAGS)?P(F(e2),e.ADD_DATA_URI_TAGS,to):e2,eJ=D(e,"FORBID_CONTENTS")&&_(e.FORBID_CONTENTS)?P({},e.FORBID_CONTENTS,to):e0,eO=D(e,"FORBID_TAGS")&&_(e.FORBID_TAGS)?P({},e.FORBID_TAGS,to):F({}),eM=D(e,"FORBID_ATTR")&&_(e.FORBID_ATTR)?P({},e.FORBID_ATTR,to):F({}),eZ=!!D(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?F(e.USE_PROFILES):e.USE_PROFILES),eR=!1!==e.ALLOW_ARIA_ATTR,eP=!1!==e.ALLOW_DATA_ATTR,eF=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eB=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eH=e.SAFE_FOR_TEMPLATES||!1,eU=!1!==e.SAFE_FOR_XML,ej=e.WHOLE_DOCUMENT||!1,eG=e.RETURN_DOM||!1,eK=e.RETURN_DOM_FRAGMENT||!1,eq=e.RETURN_TRUSTED_TYPE||!1,ez=e.FORCE_BODY||!1,eY=!1!==e.SANITIZE_DOM,eW=e.SANITIZE_NAMED_PROPS||!1,eX=!1!==e.KEEP_CONTENT,eQ=e.IN_PLACE||!1,ew=!function(e){try{return M(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?et:e.ALLOWED_URI_REGEXP,e8="string"==typeof e.NAMESPACE?e.NAMESPACE:e6,tn=D(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?F(e.MATHML_TEXT_INTEGRATION_POINTS):P({},["mi","mo","mn","ms","mtext"]),tr=D(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?F(e.HTML_INTEGRATION_POINTS):P({},["annotation-xml"]);let n=D(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?F(e.CUSTOM_ELEMENT_HANDLING):h(null);if(eD=h(null),D(n,"tagNameCheck")&&tu(n.tagNameCheck)&&(eD.tagNameCheck=n.tagNameCheck),D(n,"attributeNameCheck")&&tu(n.attributeNameCheck)&&(eD.attributeNameCheck=n.attributeNameCheck),D(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(eD.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),eH&&(eP=!1),eK&&(eG=!0),eZ&&(eS=P({},K),eN=h(null),!0===eZ.html&&(P(eS,H),P(eN,q)),!0===eZ.svg&&(P(eS,U),P(eN,Y),P(eN,V)),!0===eZ.svgFilters&&(P(eS,j),P(eN,Y),P(eN,V)),!0===eZ.mathMl&&(P(eS,z),P(eN,W),P(eN,V))),eL.tagCheck=null,eL.attributeCheck=null,D(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eL.tagCheck=e.ADD_TAGS:_(e.ADD_TAGS)&&(eS===eC&&(eS=F(eS)),P(eS,e.ADD_TAGS,to))),D(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eL.attributeCheck=e.ADD_ATTR:_(e.ADD_ATTR)&&(eN===eI&&(eN=F(eN)),P(eN,e.ADD_ATTR,to))),D(e,"ADD_URI_SAFE_ATTR")&&_(e.ADD_URI_SAFE_ATTR)&&P(e3,e.ADD_URI_SAFE_ATTR,to),D(e,"FORBID_CONTENTS")&&_(e.FORBID_CONTENTS)&&(eJ===e0&&(eJ=F(eJ)),P(eJ,e.FORBID_CONTENTS,to)),D(e,"ADD_FORBID_CONTENTS")&&_(e.ADD_FORBID_CONTENTS)&&(eJ===e0&&(eJ=F(eJ)),P(eJ,e.ADD_FORBID_CONTENTS,to)),eX&&(eS["#text"]=!0),ej&&P(eS,["html","head","body"]),eS.table&&(P(eS,["tbody"]),delete eO.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');eb=(t=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===t&&(t=es(R,o)),null!==t&&"string"==typeof eb&&(eb=t.createHTML(""));(ev.uponSanitizeElement.length>0||ev.uponSanitizeAttribute.length>0)&&eS===eC&&(eS=F(eS)),ev.uponSanitizeAttribute.length>0&&eN===eI&&(eN=F(eN)),c&&c(e),tl=e},tp=P({},[...U,...j,...$]),td=P({},[...z,...G]),tf=function(e){let t=ed(e);t&&t.tagName||(t={namespaceURI:e8,tagName:"template"});let n=x(e.tagName),r=x(t.tagName);return!!te[e.namespaceURI]&&(e.namespaceURI===e9?t.namespaceURI===e6?"svg"===n:t.namespaceURI===e4?"svg"===n&&("annotation-xml"===r||tn[r]):!!tp[n]:e.namespaceURI===e4?t.namespaceURI===e6?"math"===n:t.namespaceURI===e9?"math"===n&&tr[r]:!!td[n]:e.namespaceURI===e6?(t.namespaceURI!==e9||!!tr[r])&&(t.namespaceURI!==e4||!!tn[r])&&!td[n]&&(ti[n]||!tp[n]):"application/xhtml+xml"===ta&&!!te[e.namespaceURI])},tm=function(e){b(r.removed,{element:e});try{ed(e).removeChild(e)}catch(t){eu(e)}},tg=function(e,t){try{b(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(eG||eK)try{tm(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ty=function(e){let n=null,r=null;if(ez)e="<remove></remove>"+e;else{let t=T(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===ta&&e8===e6&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?t.createHTML(e):e;if(e8===e6)try{n=new f().parseFromString(i,ta)}catch(e){}if(!n||!n.documentElement){n=e_.createDocument(e8,"template",null);try{n.documentElement.innerHTML=e7?eb:i}catch(e){}}let s=n.body||n.documentElement;return(e&&r&&s.insertBefore(a.createTextNode(r),s.childNodes[0]||null),e8===e6)?eT.call(n,ej?"html":"body")[0]:ej?n.documentElement:s},tb=function(e){return ex.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},tk=function(e){e.normalize();let t=ex.call(e.ownerDocument||e,e,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;){let e=n.data;m([X,Q,Z],t=>{e=A(e,t," ")}),n.data=e,n=t.nextNode()}},t_=function(e){let t=ey?ey(e):null;return"string"==typeof t&&"form"===to(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==em(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eg(e)||e.childNodes!==ep(e))},tx=function(e){if(!eg||"object"!=typeof e||null===e)return!1;try{return 11===eg(e)}catch(e){return!1}},tE=function(e){if(!eg||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eg(e)}catch(e){return!1}};function tT(e,t,n){m(e,e=>{e.call(r,t,n,tl)})}let tA=function(e){let t=null;if(tT(ev.beforeSanitizeElements,e,null),t_(e))return tm(e),!0;let n=to(e.nodeName);if(tT(ev.uponSanitizeElement,e,{tagName:n,allowedTags:eS}),eU&&e.hasChildNodes()&&!tE(e.firstElementChild)&&M(/<[/\w!]/g,e.innerHTML)&&M(/<[/\w!]/g,e.textContent)||eU&&e.namespaceURI===e6&&"style"===n&&tE(e.firstElementChild)||7===e.nodeType||eU&&8===e.nodeType&&M(/<[/\w]/g,e.data))return tm(e),!0;if(eO[n]||!(eL.tagCheck instanceof Function&&eL.tagCheck(n))&&!eS[n]){if(!eO[n]&&tS(n)&&(eD.tagNameCheck instanceof RegExp&&M(eD.tagNameCheck,n)||eD.tagNameCheck instanceof Function&&eD.tagNameCheck(n)))return!1;if(eX&&!eJ[n]){let t=ed(e),n=ep(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=ec(n[i],!0);t.insertBefore(r,eh(e))}}}return tm(e),!0}return(eg?eg(e):e.nodeType)===1&&!tf(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&M(/<\/no(script|embed|frames)/i,e.innerHTML)?(tm(e),!0):(eH&&3===e.nodeType&&(t=e.textContent,m([X,Q,Z],e=>{t=A(t,e," ")}),e.textContent!==t&&(b(r.removed,{element:e.cloneNode()}),e.textContent=t)),tT(ev.afterSanitizeElements,e,null),!1)},tv=function(e,t,n){if(eM[t]||eY&&("id"===t||"name"===t)&&(n in a||n in tc))return!1;let r=eN[t]||eL.attributeCheck instanceof Function&&eL.attributeCheck(t,e);if(eP&&!eM[t]&&M(J,t));else if(eR&&M(ee,t));else if(!r||eM[t]){if(!(tS(e)&&(eD.tagNameCheck instanceof RegExp&&M(eD.tagNameCheck,e)||eD.tagNameCheck instanceof Function&&eD.tagNameCheck(e))&&(eD.attributeNameCheck instanceof RegExp&&M(eD.attributeNameCheck,t)||eD.attributeNameCheck instanceof Function&&eD.attributeNameCheck(t,e))||"is"===t&&eD.allowCustomizedBuiltInElements&&(eD.tagNameCheck instanceof RegExp&&M(eD.tagNameCheck,n)||eD.tagNameCheck instanceof Function&&eD.tagNameCheck(n))))return!1}else if(e3[t]);else if(M(ew,A(n,er,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===v(n,"data:")&&e1[e]);else if(eF&&!M(en,A(n,er,"")));else if(n)return!1;return!0},tw=P({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tS=function(e){return!tw[x(e)]&&M(ea,e)},tC=function(e){tT(ev.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||t_(e))return;let i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eN,forceKeepAttr:void 0},a=n.length;for(;a--;){let s=n[a],o=s.name,l=s.namespaceURI,c=s.value,u=to(o),h="value"===o?c:w(c);if(i.attrName=u,i.attrValue=h,i.keepAttr=!0,i.forceKeepAttr=void 0,tT(ev.uponSanitizeAttribute,e,i),h=i.attrValue,eW&&("id"===u||"name"===u)&&0!==v(h,eV)&&(tg(o,e),h=eV+h),eU&&M(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)||"attributename"===u&&T(h,"href")){tg(o,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr||!eB&&M(/\/>/i,h)){tg(o,e);continue}eH&&m([X,Q,Z],e=>{h=A(h,e," ")});let p=to(e.nodeName);if(!tv(p,u,h)){tg(o,e);continue}if(t&&"object"==typeof R&&"function"==typeof R.getAttributeType)if(l);else switch(R.getAttributeType(p,u)){case"TrustedHTML":h=t.createHTML(h);break;case"TrustedScriptURL":h=t.createScriptURL(h)}if(h!==c)try{l?e.setAttributeNS(l,o,h):e.setAttribute(o,h),t_(e)?tm(e):y(r.removed)}catch(t){tg(o,e)}}tT(ev.afterSanitizeAttributes,e,null)},tN=function(e){let t=null,n=tb(e);for(tT(ev.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(tT(ev.uponSanitizeShadowNode,t,null),tA(t),tC(t),tx(t.content)&&tN(t.content),(eg?eg(t):t.nodeType)===1){let e=ef?ef(t):t.shadowRoot;tx(e)&&(tI(e),tN(e))}tT(ev.afterSanitizeShadowDOM,e,null)},tI=function(e){let t=eg?eg(e):e.nodeType;if(1===t){let t=ef?ef(e):e.shadowRoot;tx(t)&&(tI(t),tN(t))}let n=ep?ep(e):e.childNodes;if(!n)return;let r=[];for(let e of(m(n,e=>{b(r,e)}),r))tI(e);if(1===t){let t=ey?ey(e):null;if("string"==typeof t&&"template"===to(t)){let t=e.content;tx(t)&&tI(t)}}};return r.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,a=null,o=null,l=null;if((e7=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tE(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return S(e);case"boolean":return C(e);case"bigint":return N?N(e):"0";case"symbol":return I?I(e):"Symbol()";case"undefined":default:return O(e);case"function":case"object":{if(null===e)return O(e);let t=B(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:O(n)}return O(e)}}}(e)))throw L("dirty is not a string, aborting");if(!r.isSupported)return e;if(e$||th(n),r.removed=[],"string"==typeof e&&(eQ=!1),eQ){let t=ey?ey(e):e.nodeName;if("string"==typeof t){let e=to(t);if(!eS[e]||eO[e])throw L("root node is forbidden and cannot be sanitized in-place")}if(t_(e))throw L("root node is clobbered and cannot be sanitized in-place");tI(e)}else if(tE(e))1===(a=(i=ty("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a),tI(a);else{if(!eG&&!eH&&!ej&&-1===e.indexOf("<"))return t&&eq?t.createHTML(e):e;if(!(i=ty(e)))return eG?null:eq?eb:""}i&&ez&&tm(i.firstChild);let c=tb(eQ?e:i);for(;o=c.nextNode();)tA(o),tC(o),tx(o.content)&&tN(o.content);if(eQ)return eH&&tk(e),e;if(eG){if(eH&&tk(i),eK)for(l=eE.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(eN.shadowroot||eN.shadowrootmode)&&(l=eA.call(s,l,!0)),l}let u=ej?i.outerHTML:i.innerHTML;return ej&&eS["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&M(ei,i.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+u),eH&&m([X,Q,Z],e=>{u=A(u,e," ")}),t&&eq?t.createHTML(u):u},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};th(e),e$=!0},r.clearConfig=function(){tl=null,e$=!1},r.isValidAttribute=function(e,t,n){return tl||th({}),tv(to(e),to(t),n)},r.addHook=function(e,t){"function"==typeof t&&b(ev[e],t)},r.removeHook=function(e,t){if(void 0!==t){let n=g(ev[e],t);return -1===n?void 0:k(ev[e],n,1)[0]}return y(ev[e])},r.removeHooks=function(e){ev[e]=[]},r.removeAllHooks=function(){ev=eo()},r}()},92509:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var r=n(43328),i={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},a=function(e={}){let t=!1,n={...i,...e.config},a={initialize(a){n={...i,...e.config,...a},r.default.initialize(n),t=!0},render:async(e,i)=>(t||(r.default.initialize(n),t=!0),await r.default.render(e,i))};return{name:"mermaid",type:"diagram",language:"mermaid",getMermaid:e=>(e&&a.initialize(e),a)}}()},94529:(e,t,n)=>{"use strict";function r(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,s=Math.cos(a),o=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*s-(n-i)*o+r,t[1]=(e-r)*o+(n-i)*s+i}}}function i(e,t){var n;let i=t.hachureAngle+90,a=t.hachureGap;a<0&&(a=4*t.strokeWidth),a=Math.round(Math.max(a,.1));let s=1;return t.roughness>=1&&((null==(n=t.randomizer)?void 0:n.next())||Math.random())>.7&&(s=a),function(e,t,n,i=1){let a=Math.max(t,.1),s=e[0]&&e[0][0]&&"number"==typeof e[0][0]?[e]:e,o=[0,0];if(n)for(let e of s)r(e,o,n);let l=function(e,t,n){let r=[];for(let t of e){var i,a;let e=[...t];i=e[0],a=e[e.length-1],i[0]===a[0]&&i[1]===a[1]||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}let s=[];t=Math.max(t,.1);let o=[];for(let e of r)for(let t=0;t<e.length-1;t++){let n=e[t],r=e[t+1];if(n[1]!==r[1]){let e=Math.min(n[1],r[1]);o.push({ymin:e,ymax:Math.max(n[1],r[1]),x:e===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(o.sort((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)),!o.length)return s;let l=[],c=o[0].ymin,u=0;for(;l.length||o.length;){if(o.length){let e=-1;for(let t=0;t<o.length&&!(o[t].ymin>c);t++)e=t;o.splice(0,e+1).forEach(e=>{l.push({s:c,edge:e})})}if((l=l.filter(e=>!(e.edge.ymax<=c))).sort((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x)),(1!==n||u%t==0)&&l.length>1)for(let e=0;e<l.length;e+=2){let t=e+1;if(t>=l.length)break;let n=l[e].edge,r=l[t].edge;s.push([[Math.round(n.x),c],[Math.round(r.x),c]])}c+=n,l.forEach(e=>{e.edge.x=e.edge.x+n*e.edge.islope}),u++}return s}(s,a,i);if(n){let e;for(let e of s)r(e,o,-n);e=[],l.forEach(t=>e.push(...t)),r(e,o,-n)}return l}(e,a,i,s||1)}n.d(t,{A:()=>V});class a{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=i(e,t);return{type:"fillSketch",ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}}function s(e){let t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}class o extends a{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth);let r=i(e,Object.assign({},t,{hachureGap:n=Math.max(n,.1)})),a=Math.PI/180*t.hachureAngle,o=[],l=.5*n*Math.cos(a),c=.5*n*Math.sin(a);for(let[e,t]of r)s([e,t])&&o.push([[e[0]-l,e[1]+c],[...t]],[[e[0]+l,e[1]-c],[...t]]);return{type:"fillSketch",ops:this.renderLines(o,t)}}}class l extends a{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}}class c{constructor(e){this.helper=e}fillPolygons(e,t){let n=i(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let o of e){let e=s(o),l=Math.ceil(e/r)-1,c=e-l*r,u=(o[0][0]+o[1][0])/2-r/4,h=Math.min(o[0][1],o[1][1]);for(let e=0;e<l;e++){let s=u-a+2*Math.random()*a,o=h+c+e*r-a+2*Math.random()*a,l=this.helper.ellipse(s,o,i,i,t);n.push(...l.ops)}}return{type:"fillSketch",ops:n}}}class u{constructor(e){this.helper=e}fillPolygons(e,t){let n=i(e,t);return{type:"fillSketch",ops:this.dashedLine(n,t)}}dashedLine(e,t){let n=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,r=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,i=[];return e.forEach(e=>{let a=s(e),o=Math.floor(a/(n+r)),l=(a+r-o*(n+r))/2,c=e[0],u=e[1];c[0]>u[0]&&(c=e[1],u=e[0]);let h=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let e=0;e<o;e++){let a=e*(n+r),s=a+n,o=[c[0]+a*Math.cos(h)+l*Math.cos(h),c[1]+a*Math.sin(h)+l*Math.sin(h)],u=[c[0]+s*Math.cos(h)+l*Math.cos(h),c[1]+s*Math.sin(h)+l*Math.sin(h)];i.push(...this.helper.doubleLineOps(o[0],o[1],u[0],u[1],t))}}),i}}class h{constructor(e){this.helper=e}fillPolygons(e,t){let n=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,r=t.zigzagOffset<0?n:t.zigzagOffset,a=i(e,t=Object.assign({},t,{hachureGap:n+r}));return{type:"fillSketch",ops:this.zigzagLines(a,r,t)}}zigzagLines(e,t,n){let r=[];return e.forEach(e=>{let i=Math.round(s(e)/(2*t)),a=e[0],o=e[1];a[0]>o[0]&&(a=e[1],o=e[0]);let l=Math.atan((o[1]-a[1])/(o[0]-a[0]));for(let e=0;e<i;e++){let i=2*e*t,s=2*(e+1)*t,o=Math.sqrt(2*Math.pow(t,2)),c=[a[0]+i*Math.cos(l),a[1]+i*Math.sin(l)],u=[a[0]+s*Math.cos(l),a[1]+s*Math.sin(l)],h=[c[0]+o*Math.cos(l+Math.PI/4),c[1]+o*Math.sin(l+Math.PI/4)];r.push(...this.helper.doubleLineOps(c[0],c[1],h[0],h[1],n),...this.helper.doubleLineOps(h[0],h[1],u[0],u[1],n))}}),r}}let p={};class d{constructor(e){this.seed=e}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}let f={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 m(e){let t=[],n=function(e){let t=[];for(;""!==e;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:0,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:1,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:2,text:""},t}(e),r="BOD",i=0,a=n[0];for(;2!==a.type;){let s=0,o=[];if("BOD"===r){if("M"!==a.text&&"m"!==a.text)return m("M0,0"+e);i++,s=f[a.text],r=a.text}else 1===a.type?s=f[r]:(i++,s=f[a.text],r=a.text);if(!(i+s<n.length))throw Error("Path data ended short");for(let e=i;e<i+s;e++){let t=n[e];if(1!==t.type)throw Error("Param not a number: "+r+","+t.text);o[o.length]=+t.text}if("number"!=typeof f[r])throw Error("Bad segment: "+r);{let e={key:r,data:o};t.push(e),i+=s,a=n[i],"M"===r&&(r="L"),"m"===r&&(r="l")}}return t}function g(e){let t=0,n=0,r=0,i=0,a=[];for(let{key:s,data:o}of e)switch(s){case"M":a.push({key:"M",data:[...o]}),[t,n]=o,[r,i]=o;break;case"m":t+=o[0],n+=o[1],a.push({key:"M",data:[t,n]}),r=t,i=n;break;case"L":a.push({key:"L",data:[...o]}),[t,n]=o;break;case"l":t+=o[0],n+=o[1],a.push({key:"L",data:[t,n]});break;case"C":a.push({key:"C",data:[...o]}),t=o[4],n=o[5];break;case"c":{let e=o.map((e,r)=>r%2?e+n:e+t);a.push({key:"C",data:e}),t=e[4],n=e[5];break}case"Q":a.push({key:"Q",data:[...o]}),t=o[2],n=o[3];break;case"q":{let e=o.map((e,r)=>r%2?e+n:e+t);a.push({key:"Q",data:e}),t=e[2],n=e[3];break}case"A":a.push({key:"A",data:[...o]}),t=o[5],n=o[6];break;case"a":t+=o[5],n+=o[6],a.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],t,n]});break;case"H":a.push({key:"H",data:[...o]}),t=o[0];break;case"h":t+=o[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...o]}),n=o[0];break;case"v":n+=o[0],a.push({key:"V",data:[n]});break;case"S":a.push({key:"S",data:[...o]}),t=o[2],n=o[3];break;case"s":{let e=o.map((e,r)=>r%2?e+n:e+t);a.push({key:"S",data:e}),t=e[2],n=e[3];break}case"T":a.push({key:"T",data:[...o]}),t=o[0],n=o[1];break;case"t":t+=o[0],n+=o[1],a.push({key:"T",data:[t,n]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=r,n=i}return a}function y(e){let t=[],n="",r=0,i=0,a=0,s=0,o=0,l=0;for(let{key:c,data:u}of e){switch(c){case"M":t.push({key:"M",data:[...u]}),[r,i]=u,[a,s]=u;break;case"C":t.push({key:"C",data:[...u]}),r=u[4],i=u[5],o=u[2],l=u[3];break;case"L":t.push({key:"L",data:[...u]}),[r,i]=u;break;case"H":r=u[0],t.push({key:"L",data:[r,i]});break;case"V":i=u[0],t.push({key:"L",data:[r,i]});break;case"S":{let e=0,a=0;"C"===n||"S"===n?(e=r+(r-o),a=i+(i-l)):(e=r,a=i),t.push({key:"C",data:[e,a,...u]}),o=u[0],l=u[1],r=u[2],i=u[3];break}case"T":{let[e,a]=u,s=0,c=0;"Q"===n||"T"===n?(s=r+(r-o),c=i+(i-l)):(s=r,c=i);let h=r+2*(s-r)/3,p=i+2*(c-i)/3,d=e+2*(s-e)/3,f=a+2*(c-a)/3;t.push({key:"C",data:[h,p,d,f,e,a]}),o=s,l=c,r=e,i=a;break}case"Q":{let[e,n,a,s]=u,c=r+2*(e-r)/3,h=i+2*(n-i)/3,p=a+2*(e-a)/3,d=s+2*(n-s)/3;t.push({key:"C",data:[c,h,p,d,a,s]}),o=e,l=n,r=a,i=s;break}case"A":{let e=Math.abs(u[0]),n=Math.abs(u[1]),a=u[2],s=u[3],o=u[4],l=u[5],c=u[6];0===e||0===n?(t.push({key:"C",data:[r,i,l,c,l,c]}),r=l,i=c):(r!==l||i!==c)&&((function e(t,n,r,i,a,s,o,l,c,u){let h=Math.PI*o/180,p=[],d=0,f=0,m=0,g=0;if(u)[d,f,m,g]=u;else{[t,n]=b(t,n,-h),[r,i]=b(r,i,-h);let e=(t-r)/2,o=(n-i)/2,u=e*e/(a*a)+o*o/(s*s);u>1&&(a*=u=Math.sqrt(u),s*=u);let p=a*a,y=s*s,k=(l===c?-1:1)*Math.sqrt(Math.abs((p*y-p*o*o-y*e*e)/(p*o*o+y*e*e)));m=k*a*o/s+(t+r)/2,g=-(k*s)*e/a+(n+i)/2,d=Math.asin(parseFloat(((n-g)/s).toFixed(9))),f=Math.asin(parseFloat(((i-g)/s).toFixed(9))),t<m&&(d=Math.PI-d),r<m&&(f=Math.PI-f),d<0&&(d=2*Math.PI+d),f<0&&(f=2*Math.PI+f),c&&d>f&&(d-=2*Math.PI),!c&&f>d&&(f-=2*Math.PI)}let y=f-d;if(Math.abs(y)>120*Math.PI/180){let t=f,n=r,l=i;p=e(r=m+a*Math.cos(f=c&&f>d?d+120*Math.PI/180*1:d+-(120*Math.PI/180*1)),i=g+s*Math.sin(f),n,l,a,s,o,0,c,[f,t,m,g])}y=f-d;let k=Math.cos(d),_=Math.cos(f),x=Math.tan(y/4),E=4/3*a*x,T=4/3*s*x,A=[t,n],v=[t+E*Math.sin(d),n-T*k],w=[r+E*Math.sin(f),i-T*_],S=[r,i];if(v[0]=2*A[0]-v[0],v[1]=2*A[1]-v[1],u)return[v,w,S].concat(p);{p=[v,w,S].concat(p);let e=[];for(let t=0;t<p.length;t+=3){let n=b(p[t][0],p[t][1],h),r=b(p[t+1][0],p[t+1][1],h),i=b(p[t+2][0],p[t+2][1],h);e.push([n[0],n[1],r[0],r[1],i[0],i[1]])}return e}})(r,i,l,c,e,n,a,s,o).forEach(function(e){t.push({key:"C",data:e})}),r=l,i=c);break}case"Z":t.push({key:"Z",data:[]}),r=a,i=s}n=c}return t}function b(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}let k={randOffset:function(e,t){return O(e,t)},randOffsetWithRange:function(e,t,n){return D(e,t,n)},ellipse:function(e,t,n,r,i){let a=T(n,r,i);return A(e,t,i,a).opset},doubleLineOps:function(e,t,n,r,i){return M(e,t,n,r,i,!0)}};function _(e,t,n,r,i){return{type:"path",ops:M(e,t,n,r,i)}}function x(e,t,n){let r=(e||[]).length;if(r>2){let i=[];for(let t=0;t<r-1;t++)i.push(...M(e[t][0],e[t][1],e[t+1][0],e[t+1][1],n));return t&&i.push(...M(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:"path",ops:i}}return 2===r?_(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:"path",ops:[]}}function E(e,t){if(e.length){let n="number"==typeof e[0][0]?[e]:e,r=R(n[0],+(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:R(n[0],1.5*(1+.22*t.roughness),N(t));for(let e=1;e<n.length;e++){let a=n[e];if(a.length){let e=R(a,+(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:R(a,1.5*(1+.22*t.roughness),N(t));for(let t of e)"move"!==t.op&&r.push(t);for(let e of n)"move"!==e.op&&i.push(e)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function T(e,t,n){let r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),i=2*Math.PI/Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),a=Math.abs(e/2),s=Math.abs(t/2),o=1-n.curveFitting;return a+=O(a*o,n),s+=O(s*o,n),{increment:i,rx:a,ry:s}}function A(e,t,n,r){let[i,a]=F(r.increment,e,t,r.rx,r.ry,1,r.increment*D(.1,D(.4,1,n),n),n),s=P(i,null,n);if(!n.disableMultiStroke&&0!==n.roughness){let[i]=F(r.increment,e,t,r.rx,r.ry,1.5,0,n),a=P(i,null,n);s=s.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function v(e,t,n,r,i,a,s,o,l){let c=Math.abs(n/2),u=Math.abs(r/2);c+=O(.01*c,l),u+=O(.01*u,l);let h=i,p=a;for(;h<0;)h+=2*Math.PI,p+=2*Math.PI;p-h>2*Math.PI&&(h=0,p=2*Math.PI);let d=Math.min(2*Math.PI/l.curveStepCount/2,(p-h)/2),f=B(d,e,t,c,u,h,p,1,l);if(!l.disableMultiStroke){let n=B(d,e,t,c,u,h,p,1.5,l);f.push(...n)}return s&&(o?f.push(...M(e,t,e+c*Math.cos(h),t+u*Math.sin(h),l),...M(e,t,e+c*Math.cos(p),t+u*Math.sin(p),l)):f.push({op:"lineTo",data:[e,t]},{op:"lineTo",data:[e+c*Math.cos(h),t+u*Math.sin(h)]})),{type:"path",ops:f}}function w(e,t){let n=y(g(m(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:s}of n)switch(e){case"M":a=[s[0],s[1]],i=[s[0],s[1]];break;case"L":r.push(...M(a[0],a[1],s[0],s[1],t)),a=[s[0],s[1]];break;case"C":{let[e,n,i,o,l,c]=s;r.push(...function(e,t,n,r,i,a,s,o){let l=[],c=[o.maxRandomnessOffset||1,(o.maxRandomnessOffset||1)+.3],u=[0,0],h=o.disableMultiStroke?1:2,p=o.preserveVertices;for(let d=0;d<h;d++)0===d?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(p?0:O(c[0],o)),s[1]+(p?0:O(c[0],o))]}),u=p?[i,a]:[i+O(c[d],o),a+O(c[d],o)],l.push({op:"bcurveTo",data:[e+O(c[d],o),t+O(c[d],o),n+O(c[d],o),r+O(c[d],o),u[0],u[1]]});return l}(e,n,i,o,l,c,a,t)),a=[l,c];break}case"Z":r.push(...M(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:"path",ops:r}}function S(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:"move",data:[r[0][0]+O(e,t),r[0][1]+O(e,t)]});for(let a=1;a<i;a++)n.push({op:"lineTo",data:[r[a][0]+O(e,t),r[a][1]+O(e,t)]})}}return{type:"fillPath",ops:n}}function C(e,t){return(function(e,t){let n=e.fillStyle||"hachure";if(!p[n])switch(n){case"zigzag":p[n]||(p[n]=new o(t));break;case"cross-hatch":p[n]||(p[n]=new l(t));break;case"dots":p[n]||(p[n]=new c(t));break;case"dashed":p[n]||(p[n]=new u(t));break;case"zigzag-line":p[n]||(p[n]=new h(t));break;default:p[n="hachure"]||(p[n]=new a(t))}return p[n]})(t,k).fillPolygons(e,t)}function N(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function I(e){return e.randomizer||(e.randomizer=new d(e.seed||0)),e.randomizer.next()}function D(e,t,n,r=1){return n.roughness*r*(I(n)*(t-e)+e)}function O(e,t,n=1){return D(-e,e,t,n)}function M(e,t,n,r,i,a=!1){let s=a?i.disableMultiStrokeFill:i.disableMultiStroke,o=L(e,t,n,r,i,!0,!1);if(s)return o;let l=L(e,t,n,r,i,!0,!0);return o.concat(l)}function L(e,t,n,r,i,a,s){let o=Math.pow(e-n,2)+Math.pow(t-r,2),l=Math.sqrt(o),c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>o&&(u=l/10);let h=u/2,p=.2+.2*I(i),d=i.bowing*i.maxRandomnessOffset*(r-t)/200,f=i.bowing*i.maxRandomnessOffset*(e-n)/200;d=O(d,i,c),f=O(f,i,c);let m=[],g=i.preserveVertices;return a&&(s?m.push({op:"move",data:[e+(g?0:O(h,i,c)),t+(g?0:O(h,i,c))]}):m.push({op:"move",data:[e+(g?0:O(u,i,c)),t+(g?0:O(u,i,c))]})),s?m.push({op:"bcurveTo",data:[d+e+(n-e)*p+O(h,i,c),f+t+(r-t)*p+O(h,i,c),d+e+2*(n-e)*p+O(h,i,c),f+t+2*(r-t)*p+O(h,i,c),n+(g?0:O(h,i,c)),r+(g?0:O(h,i,c))]}):m.push({op:"bcurveTo",data:[d+e+(n-e)*p+O(u,i,c),f+t+(r-t)*p+O(u,i,c),d+e+2*(n-e)*p+O(u,i,c),f+t+2*(r-t)*p+O(u,i,c),n+(g?0:O(u,i,c)),r+(g?0:O(u,i,c))]}),m}function R(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+O(t,n),e[0][1]+O(t,n)]),r.push([e[0][0]+O(t,n),e[0][1]+O(t,n)]);for(let i=1;i<e.length;i++)r.push([e[i][0]+O(t,n),e[i][1]+O(t,n)]),i===e.length-1&&r.push([e[i][0]+O(t,n),e[i][1]+O(t,n)]);return P(r,null,n)}function P(e,t,n){let r=e.length,i=[];if(r>3){let a=[],s=1-n.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+2<r;t++){let n=e[t];a[0]=[n[0],n[1]],a[1]=[n[0]+(s*e[t+1][0]-s*e[t-1][0])/6,n[1]+(s*e[t+1][1]-s*e[t-1][1])/6],a[2]=[e[t+1][0]+(s*e[t][0]-s*e[t+2][0])/6,e[t+1][1]+(s*e[t][1]-s*e[t+2][1])/6],a[3]=[e[t+1][0],e[t+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(t&&2===t.length){let e=n.maxRandomnessOffset;i.push({op:"lineTo",data:[t[0]+O(e,n),t[1]+O(e,n)]})}}else 3===r?(i.push({op:"move",data:[e[1][0],e[1][1]]}),i.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===r&&i.push(...L(e[0][0],e[0][1],e[1][0],e[1][1],n,!0,!0));return i}function F(e,t,n,r,i,a,s,o){let l=[],c=[];if(0===o.roughness){e/=4,c.push([t+r*Math.cos(-e),n+i*Math.sin(-e)]);for(let a=0;a<=2*Math.PI;a+=e){let e=[t+r*Math.cos(a),n+i*Math.sin(a)];l.push(e),c.push(e)}c.push([t+ +r,n+0*i]),c.push([t+r*Math.cos(e),n+i*Math.sin(e)])}else{let u=O(.5,o)-Math.PI/2;c.push([O(a,o)+t+.9*r*Math.cos(u-e),O(a,o)+n+.9*i*Math.sin(u-e)]);let h=2*Math.PI+u-.01;for(let s=u;s<h;s+=e){let e=[O(a,o)+t+r*Math.cos(s),O(a,o)+n+i*Math.sin(s)];l.push(e),c.push(e)}c.push([O(a,o)+t+r*Math.cos(u+2*Math.PI+.5*s),O(a,o)+n+i*Math.sin(u+2*Math.PI+.5*s)]),c.push([O(a,o)+t+.98*r*Math.cos(u+s),O(a,o)+n+.98*i*Math.sin(u+s)]),c.push([O(a,o)+t+.9*r*Math.cos(u+.5*s),O(a,o)+n+.9*i*Math.sin(u+.5*s)])}return[c,l]}function B(e,t,n,r,i,a,s,o,l){let c=a+O(.1,l),u=[];u.push([O(o,l)+t+.9*r*Math.cos(c-e),O(o,l)+n+.9*i*Math.sin(c-e)]);for(let a=c;a<=s;a+=e)u.push([O(o,l)+t+r*Math.cos(a),O(o,l)+n+i*Math.sin(a)]);return u.push([t+r*Math.cos(s),n+i*Math.sin(s)]),u.push([t+r*Math.cos(s),n+i*Math.sin(s)]),P(u,null,l)}function H(e,t=0){let n=e.length;if(n<3)throw Error("A curve must have at least three points.");let r=[];if(3===n)r.push([...e[0]],[...e[1]],[...e[2]],[...e[2]]);else{let n=[];n.push(e[0],e[0]);for(let t=1;t<e.length;t++)n.push(e[t]),t===e.length-1&&n.push(e[t]);let i=[],a=1-t;r.push([...n[0]]);for(let e=1;e+2<n.length;e++){let t=n[e];i[0]=[t[0],t[1]],i[1]=[t[0]+(a*n[e+1][0]-a*n[e-1][0])/6,t[1]+(a*n[e+1][1]-a*n[e-1][1])/6],i[2]=[n[e+1][0]+(a*n[e][0]-a*n[e+2][0])/6,n[e+1][1]+(a*n[e][1]-a*n[e+2][1])/6],i[3]=[n[e+1][0],n[e+1][1]],r.push(i[1],i[2],i[3])}}return r}function U(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function j(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function $(e,t,n,r,i){let a=i||[],s=e[t],o=e[n-1],l=0,c=1;for(let r=t+1;r<n-1;++r){let t=function(e,t,n){let r=U(t,n);if(0===r)return U(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return U(e,j(t,n,i=Math.max(0,Math.min(1,i))))}(e[r],s,o);t>l&&(l=t,c=r)}return Math.sqrt(l)>r?($(e,t,c+1,r,a),$(e,c,n,r,a)):(a.length||a.push(s),a.push(o)),a}function z(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n<i;n++)!function e(t,n,r,i){let a,s,o,l,c,u,h,p,d=i||[];if(a=t[n+0],s=t[n+1],o=t[n+2],l=t[n+3],c=3*s[0]-2*a[0]-l[0],c*=c,u=3*s[1]-2*a[1]-l[1],u*=u,h=3*o[0]-2*l[0]-a[0],h*=h,p=3*o[1]-2*l[1]-a[1],p*=p,c<h&&(c=h),u<p&&(u=p),c+u<r){let e=t[n+0];d.length?Math.sqrt(U(d[d.length-1],e))>1&&d.push(e):d.push(e),d.push(t[n+3])}else{let i=t[n+0],a=t[n+1],s=t[n+2],o=t[n+3],l=j(i,a,.5),c=j(a,s,.5),u=j(s,o,.5),h=j(l,c,.5),p=j(c,u,.5),f=j(h,p,.5);e([i,l,h,f],0,r,d),e([f,p,u,o],0,r,d)}return d}(e,3*n,t,r);return n&&n>0?$(r,0,r.length,n):r}let G="none";class K{constructor(e){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=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(0x80000000*Math.random())}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){let a=this._o(i);return this._d("line",[_(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){var a,s,o,l;let c=this._o(i),u=[],h=x([[a=e,s=t],[a+(o=n),s],[a+o,s+(l=r)],[a,s+l]],!0,c);if(c.fill){let i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];"solid"===c.fillStyle?u.push(S([i],c)):u.push(C([i],c))}return c.stroke!==G&&u.push(h),this._d("rectangle",u,c)}ellipse(e,t,n,r,i){let a=this._o(i),s=[],o=T(n,r,a),l=A(e,t,a,o);if(a.fill)if("solid"===a.fillStyle){let n=A(e,t,a,o).opset;n.type="fillPath",s.push(n)}else s.push(C([l.estimatedPoints],a));return a.stroke!==G&&s.push(l.opset),this._d("ellipse",s,a)}circle(e,t,n,r){let i=this.ellipse(e,t,n,n,r);return i.shape="circle",i}linearPath(e,t){let n=this._o(t);return this._d("linearPath",[x(e,!1,n)],n)}arc(e,t,n,r,i,a,s=!1,o){let l=this._o(o),c=[],u=v(e,t,n,r,i,a,s,!0,l);if(s&&l.fill)if("solid"===l.fillStyle){let s=Object.assign({},l);s.disableMultiStroke=!0;let o=v(e,t,n,r,i,a,!0,!1,s);o.type="fillPath",c.push(o)}else c.push(function(e,t,n,r,i,a,s){let o=Math.abs(n/2),l=Math.abs(r/2);o+=O(.01*o,s),l+=O(.01*l,s);let c=i,u=a;for(;c<0;)c+=2*Math.PI,u+=2*Math.PI;u-c>2*Math.PI&&(c=0,u=2*Math.PI);let h=(u-c)/s.curveStepCount,p=[];for(let n=c;n<=u;n+=h)p.push([e+o*Math.cos(n),t+l*Math.sin(n)]);return p.push([e+o*Math.cos(u),t+l*Math.sin(u)]),p.push([e,t]),C([p],s)}(e,t,n,r,i,a,l));return l.stroke!==G&&c.push(u),this._d("arc",c,l)}curve(e,t){let n=this._o(t),r=[],i=E(e,n);if(n.fill&&n.fill!==G)if("solid"===n.fillStyle){let t=E(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else{let t=[];if(e.length)for(let r of"number"==typeof e[0][0]?[e]:e)r.length<3?t.push(...r):3===r.length?t.push(...z(H([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...z(H(r),10,(1+n.roughness)/2));t.length&&r.push(C([t],n))}return n.stroke!==G&&r.push(i),this._d("curve",r,n)}polygon(e,t){let n=this._o(t),r=[],i=x(e,!0,n);return n.fill&&("solid"===n.fillStyle?r.push(S([e],n)):r.push(C([e],n))),n.stroke!==G&&r.push(i),this._d("polygon",r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let i=n.fill&&"transparent"!==n.fill&&n.fill!==G,a=n.stroke!==G,s=!!(n.simplification&&n.simplification<1),o=function(e,t){let n=y(g(m(e))),r=[],i=[],a=[0,0],s=[],o=()=>{s.length>=4&&i.push(...z(s,1)),s=[]},l=()=>{o(),i.length&&(r.push(i),i=[])};for(let{key:e,data:t}of n)switch(e){case"M":l(),a=[t[0],t[1]],i.push(a);break;case"L":o(),i.push([t[0],t[1]]);break;case"C":if(!s.length){let e=i.length?i[i.length-1]:a;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case"Z":o(),i.push([a[0],a[1]])}if(l(),!t)return r;let c=[];for(let e of r){let n=$(e,0,e.length,t);n.length&&c.push(n)}return c}(e,s?4-4*(n.simplification||1):(1+n.roughness)/2),l=w(e,n);if(i)if("solid"===n.fillStyle)if(1===o.length){let t=w(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else r.push(S(o,n));else r.push(C(o,n));return a&&(s?o.forEach(e=>{r.push(x(e,!1,n))}):r.push(l)),this._d("path",r,n)}opsToPath(e,t){let n="";for(let r of e.ops){let e="number"==typeof t&&t>=0?r.data.map(e=>+e.toFixed(t)):r.data;switch(r.op){case"move":n+=`M${e[0]} ${e[1]} `;break;case"bcurveTo":n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case"lineTo":n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case"path":t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:G};break;case"fillPath":t={d:this.opsToPath(e),stroke:G,strokeWidth:0,fill:n.fill||G};break;case"fillSketch":t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||G,strokeWidth:n,fill:G}}_mergedShape(e){return e.filter((e,t)=>0===t||"move"!==e.op)}}class q{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new K(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(let a of t)switch(a.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,a,i),r.restore();break;case"fillPath":{r.save(),r.fillStyle=n.fill||"";let t="curve"===e.shape||"polygon"===e.shape||"path"===e.shape?"evenodd":"nonzero";this._drawToContext(r,a,i,t),r.restore();break}case"fillSketch":this.fillSketch(r,a,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r="nonzero"){for(let r of(e.beginPath(),t.ops)){let t="number"==typeof n&&n>=0?r.data.map(e=>+e.toFixed(n)):r.data;switch(r.op){case"move":e.moveTo(t[0],t[1]);break;case"bcurveTo":e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case"lineTo":e.lineTo(t[0],t[1])}}"fillPath"===t.type?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,s=!1,o){let l=this.gen.arc(e,t,n,r,i,a,s,o);return this.draw(l),l}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){let n=this.gen.path(e,t);return this.draw(n),n}}let Y="http://www.w3.org/2000/svg";class W{constructor(e,t){this.svg=e,this.gen=new K(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(Y,"g"),a=e.options.fixedDecimalPlaceDigits;for(let s of t){let t=null;switch(s.type){case"path":(t=r.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(s,a)),t.setAttribute("stroke",n.stroke),t.setAttribute("stroke-width",n.strokeWidth+""),t.setAttribute("fill","none"),n.strokeLineDash&&t.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":(t=r.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(s,a)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",n.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(r,s,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);let i=e.createElementNS(Y,"path");return i.setAttribute("d",this.opsToPath(t,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(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,s=!1,o){let l=this.gen.arc(e,t,n,r,i,a,s,o);return this.draw(l)}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n)}path(e,t){let n=this.gen.path(e,t);return this.draw(n)}}var V={canvas:(e,t)=>new q(e,t),svg:(e,t)=>new W(e,t),generator:e=>new K(e),newSeed:()=>K.newSeed()}},95683:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(52618);function i(e){return(0,r.i)(e)}},96674:(e,t,n)=>{"use strict";function r(e){if(e)throw e}n.d(t,{l:()=>h});var i=n(39326),a=n(23091);function s(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}var o=n(72148);let l=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},c={}.hasOwnProperty;class u extends l{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=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(a,...s){let o=e[++n],l=-1;if(a)return void r(a);for(;++l<t.length;)(null===s[l]||void 0===s[l])&&(s[l]=t[l]);t=s,o?(function(e,t){let n;return function(...t){let a,s=e.length>t.length;s&&t.push(r);try{a=e.apply(this,t)}catch(e){if(s&&n)throw e;return r(e)}s||(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(o,i)(...s):r(null,...s)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new u,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(i(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(f("data",this.frozen),this.namespace[e]=t,this):c.call(this.namespace,e)&&this.namespace[e]||void 0:e?(f("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=y(e),n=this.parser||this.Parser;return p("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),p("process",this.parser||this.Parser),d("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let s=y(e),o=n.parse(s);function l(e,n){e||!n?i(e):r?r(n):((0,a.ok)(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(o,s,function(e,t,r){var i,a;if(e||!t||!r)return l(e);let s=n.stringify(t,r);"string"==typeof(i=s)||(a=i)&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a?r.value=s:r.result=s,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),p("processSync",this.parser||this.Parser),d("processSync",this.compiler||this.Compiler),this.process(e,function(e,i){n=!0,r(e),t=i}),g("processSync","process",n),(0,a.ok)(t,"we either bailed on an error or have a tree"),t}run(e,t,n){m(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,s){(0,a.ok)("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let o=y(t);r.run(e,o,function(t,r,o){let l=r||e;t?s(t):i?i(l):((0,a.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,l,o))})}}runSync(e,t){let n,i=!1;return this.run(e,t,function(e,t){r(e),n=t,i=!0}),g("runSync","run",i),(0,a.ok)(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=y(t),r=this.compiler||this.Compiler;return d("stringify",r),m(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(f("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function a(e){if(!("plugins"in e)&&!("settings"in e))throw 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");o(e.plugins),e.settings&&(r.settings=i(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)l(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;l(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function l(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,l=n[a][1];s(l)&&s(r)&&(r=i(!0,l,r)),n[a]=[e,r,...o]}}}}let h=new u().freeze();function p(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function d(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function f(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function m(e){if(!s(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function g(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function y(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new o.T(e)}},99007:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});let r={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]}},99507:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(64907);let i=(e,t)=>(0,r.A)(e,"l",t)},99634:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),a="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;a?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(21090))}}]);
|